function.c: Use rtx_sequence
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4 with a checked cast, in the region for where we know it's a
5 SEQUENCE. Use methods of rtx_sequence.
6
7 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8
9 * final.c (get_attr_length_1): Replace GET_CODE check with a
10 dyn_cast, introducing local "seq" and the use of methods of
11 rtx_sequence.
12 (shorten_branches): Likewise, introducing local "body_seq".
13 Strengthen local "inner_insn" from rtx to rtx_insn *.
14 (reemit_insn_block_notes): Replace GET_CODE check with a
15 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
16 Use methods of rtx_sequence.
17 (final_scan_insn): Likewise, introducing local "seq" for when
18 "body" is known to be a SEQUENCE, using its methods.
19
20 2014-08-27 David Malcolm <dmalcolm@redhat.com>
21
22 * except.c (can_throw_external): Strengthen local "seq" from rtx
23 to rtx_sequence *. Use methods of rtx_sequence.
24 (insn_nothrow_p): Likewise.
25
26 2014-08-27 David Malcolm <dmalcolm@redhat.com>
27
28 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
29 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
30 Use methods of rtx_sequence.
31 (scan_trace): Likewise for local "pat".
32
33 2014-08-27 David Malcolm <dmalcolm@redhat.com>
34
35 * coretypes.h (class rtx_sequence): Add forward declaration.
36 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
37 invariant: GET_CODE (X) == SEQUENCE.
38 (is_a_helper <rtx_sequence *>::test): New.
39 (is_a_helper <const rtx_sequence *>::test): New.
40 (rtx_sequence::len): New.
41 (rtx_sequence::element): New.
42 (rtx_sequence::insn): New.
43
44 2014-08-27 David Malcolm <dmalcolm@redhat.com>
45
46 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
47 rtx_insn_list **.
48 (alloc_INSN_LIST): Strengthen return type from rtx to
49 rtx_insn_list *.
50 (copy_INSN_LIST): Likewise for return type and param.
51 (concat_INSN_LIST): Likewise for both params and return type.
52 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
53 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
54 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
55 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
56
57 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
58 "implicit_sets", "control_uses", "clobbers" from rtx to
59 rtx_insn_list *.
60 (struct deps_desc): Likewise for fields "pending_read_insns",
61 "pending_write_insns", "pending_jump_insns",
62 "last_pending_memory_flush", "last_function_call",
63 "last_function_call_may_noreturn", "sched_before_next_call",
64 "sched_before_next_jump".
65 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
66 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
67
68 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
69 from rtx to rtx_insn_list *.
70 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
71 rtx_insn_list *.
72
73 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
74 to rtx_insn_list **.
75 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
76 rtx_insn_list *.
77 (queue_insn): Likewise for local "link".
78 (struct haifa_saved_data): Strengthen field "insn_queue" from
79 rtx * to rtx_insn_list **.
80 (save_backtrack_point): Update allocation of save->insn_queue to
81 reflect the strengthening of elements from rtx to rtx_insn_list *.
82 (queue_to_ready): Strengthen local "link" from rtx to
83 rtx_insn_list *; use methods "next" and "insn" when traversing the
84 list.
85 (early_queue_to_ready): Likewise for locals "link", "next_link",
86 "prev_link".
87 (schedule_block): Update allocation of insn_queue to reflect the
88 strengthening of elements from rtx to rtx_insn_list *. Strengthen
89 local "link" from rtx to rtx_insn_list *, and use methods when
90 working it.
91 (add_to_speculative_block): Strengthen locals "twins" and
92 "next_node" from rtx to rtx_insn_list *, and use methods when
93 working with them. Strengthen local "twin" from rtx to
94 rtx_insn *, eliminating a checked cast.
95 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
96 from rtx to rtx_insn_list *, and use methods when working with
97 them.
98
99 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
100 from rtx to rtx_insn_list *, adding a checked cast.
101 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
102 rtx_insn_list **.
103 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
104 "newlink" from rtx to rtx_insn_list *. Strengthen local
105 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
106 from rtx to rtx_insn *.
107 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
108 from rtx to rtx_insn_list *. Use methods of the latter class.
109 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
110 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
111 (remove_free_INSN_LIST_node): Strengthen return type and local
112 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
113 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
114 rtx_insn_list *, using "insn" method.
115
116 * sched-deps.c (add_dependence_list): Strengthen param "list"
117 from rtx to rtx_insn_list *, and use methods when working with it.
118 (add_dependence_list_and_free): Strengthen param "listp" from
119 rtx * to rtx_insn_list **.
120 (remove_from_dependence_list): Strenghten param "listp" from rtx *
121 to rtx_insn_list **, and use methods when working with *listp.
122 (remove_from_both_dependence_lists): Strengthen param "listp" from
123 rtx * to rtx_insn_list **
124 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
125 to rtx_insn_list **. Eliminate local "link", in favor of two new
126 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
127 respectively.
128 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
129 by introducing local "cond_deps".
130 (remove_from_deps): Strengthen param "insn" from rtx to
131 rtx_insn *.
132
133 * sched-rgn.c (concat_insn_mem_list): Strengthen param
134 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
135 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
136 Use methods of rtx_insn_list.
137
138 * store-motion.c (struct st_expr): Strengthen fields
139 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
140 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
141 rtx_insn_list *.
142 (find_moveable_store): Split out "tmp" into multiple more-tightly
143 scoped locals. Use methods of rtx_insn_list *.
144 (compute_store_table): Strengthen local "tmp" from rtx to
145 rtx_insn *. Use methods of rtx_insn_list *.
146
147 2014-08-27 David Malcolm <dmalcolm@redhat.com>
148
149 * coretypes.h (class rtx_insn_list): Add forward declaration.
150 * rtl.h (class rtx_insn_list): New subclass of rtx_def
151 (is_a_helper <rtx_insn_list *>::test): New.
152 (rtx_insn_list::next): New.
153 (rtx_insn_list::insn): New.
154 (gen_rtx_INSN_LIST): Add prototype.
155 * emit-rtl.c (gen_rtx_INSN_LIST): New.
156 * gengenrtl.c (special_rtx): Add INSN_LIST.
157
158 2014-08-27 David Malcolm <dmalcolm@redhat.com>
159
160 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
161 "prev" from rtx to rtx_insn *.
162
163 2014-08-27 David Malcolm <dmalcolm@redhat.com>
164
165 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
166 functions. Require merely an rtx for now, not an rtx_insn *.
167 (BLOCK_FOR_INSN): Likewise.
168 (INSN_LOCATION): Likewise.
169 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
170
171 2014-08-27 David Malcolm <dmalcolm@redhat.com>
172
173 * rtl.h (PATTERN): Convert this macro into a pair of inline
174 functions, for now, requiring const_rtx and rtx.
175
176 2014-08-27 David Malcolm <dmalcolm@redhat.com>
177
178 * target.def (unwind_emit): Strengthen param "insn" from rtx to
179 rtx_insn *.
180 (final_postscan_insn): Likewise.
181 (adjust_cost): Likewise.
182 (adjust_priority): Likewise.
183 (variable_issue): Likewise.
184 (macro_fusion_pair_p): Likewise.
185 (dfa_post_cycle_insn): Likewise.
186 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
187 (first_cycle_multipass_issue): Likewise.
188 (dfa_new_cycle): Likewise.
189 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
190 (speculate_insn): Likewise for param "insn".
191 (gen_spec_check): Likewise for params "insn" and "label".
192 (get_insn_spec_ds): Likewise for param "insn".
193 (get_insn_checked_ds): Likewise.
194 (dispatch_do): Likewise.
195 (dispatch): Likewise.
196 (cannot_copy_insn_p): Likewise.
197 (invalid_within_doloop): Likewise.
198 (legitimate_combined_insn): Likewise.
199 (needed): Likewise.
200 (after): Likewise.
201
202 * doc/tm.texi: Automatically updated to reflect changes to
203 target.def.
204
205 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
206 working with insn.
207 (schedule_block): Likewise.
208 (sched_init): Likewise.
209 (sched_speculate_insn): Strengthen param "insn" from rtx to
210 rtx_insn *.
211 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
212 working with insn.
213 * hooks.c (hook_bool_rtx_true): Rename to...
214 hook_bool_rtx_insn_true): ...this, and strengthen first param from
215 rtx to rtx_insn *.
216 (hook_constcharptr_const_rtx_null): Rename to...
217 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
218 first param from const_rtx to const rtx_insn *.
219 (hook_bool_rtx_int_false): Rename to...
220 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
221 param from rtx to rtx_insn *.
222 (hook_void_rtx_int): Rename to...
223 (hook_void_rtx_insn_int): ...this, and strengthen first param from
224 rtx to rtx_insn *.
225
226 * hooks.h (hook_bool_rtx_true): Rename to...
227 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
228 rtx to rtx_insn *.
229 (hook_bool_rtx_int_false): Rename to...
230 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
231 param from rtx to rtx_insn *.
232 (hook_void_rtx_int): Rename to...
233 (hook_void_rtx_insn_int): ...this, and strengthen first param from
234 rtx to rtx_insn *.
235 (hook_constcharptr_const_rtx_null): Rename to...
236 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
237 first param from const_rtx to const rtx_insn *.
238
239 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
240 and local "prev" from rtx to rtx_insn *.
241
242 * sched-int.h (sched_speculate_insn): Strengthen first param from
243 rtx to rtx_insn *.
244
245 * sel-sched.c (create_speculation_check): Likewise for local "label".
246 * targhooks.c (default_invalid_within_doloop): Strengthen param
247 "insn" from const_rtx to const rtx_insn *.
248 * targhooks.h (default_invalid_within_doloop): Strengthen param
249 from const_rtx to const rtx_insn *.
250
251 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
252 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
253
254 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
255 "insn".
256 (arc_invalid_within_doloop): Likewise, with const.
257
258 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
259 (arm_cannot_copy_insn_p): Likewise for param "insn".
260 (arm_unwind_emit): Likewise.
261
262 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
263 "dep_insn".
264
265 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
266 (c6x_variable_issue): Likewise. Removed now-redundant checked
267 cast.
268 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
269
270 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
271 Likewise for param "insn".
272 (epiphany_mode_after): Likewise.
273 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
274 params "insn", "dep_insn".
275 (epiphany_mode_needed): Likewise for param "insn".
276 (epiphany_mode_after): Likewise.
277
278 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
279 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
280 (ix86_avx_u128_mode_needed): Likewise.
281 (ix86_i387_mode_needed): Likewise.
282 (ix86_mode_needed): Likewise.
283 (ix86_avx_u128_mode_after): Likewise.
284 (ix86_mode_after): Likewise.
285 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
286 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
287 (ix86_adjust_priority): Likewise for param "insn".
288 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
289 (do_dispatch): Likewise.
290 (has_dispatch): Likewise.
291 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
292
293 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
294 reflect renaming of default hook implementation from
295 hook_constcharptr_const_rtx_null to
296 hook_constcharptr_const_rtx_insn_null.
297 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
298 rtx to rtx_insn *.
299 (ia64_variable_issue): Likewise for param "insn".
300 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
301 (ia64_dfa_new_cycle): Likewise.
302 (ia64_get_insn_spec_ds): Likewise.
303 (ia64_get_insn_checked_ds): Likewise.
304 (ia64_speculate_insn): Likewise.
305 (ia64_gen_spec_check): Likewise for params "insn", "label".
306 (ia64_asm_unwind_emit): Likewise for param "insn".
307
308 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
309
310 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
311 "insn", "def_insn".
312 (m68k_sched_variable_issue): Likewise for param "insn".
313
314 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
315 "def_insn".
316
317 * config/microblaze/microblaze.c (microblaze_adjust_cost):
318 Likewise for params "insn", "dep".
319
320 * config/mips/mips.c (mips_adjust_cost): Likewise.
321 (mips_variable_issue): Likewise for param "insn".
322 (mips_final_postscan_insn): Likewise.
323
324 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
325 for params "insn", "dep".
326
327 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
328 "dep_insn".
329 (pa_adjust_priority): Likewise for param "insn".
330
331 * config/picochip/picochip.c (picochip_sched_adjust_cost):
332 Likewise for params "insn", "dep_insn".
333
334 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
335 param "insn".
336 (rs6000_variable_issue): Likewise.
337 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
338 (rs6000_debug_adjust_cost): Likewise.
339 (rs6000_adjust_priority): Likewise for param "insn".
340 (rs6000_use_sched_lookahead_guard): Likewise.
341 (get_next_active_insn): Likewise for return type and both params.
342 (redefine_groups): Likewise for params "prev_head_insn", "tail"
343 and locals "insn", "next_insn".
344 (pad_groups): Likewise.
345
346 * config/s390/s390.c (s390_adjust_priority): Likewise for param
347 "insn".
348 (s390_cannot_copy_insn_p): Likewise.
349 (s390_sched_variable_issue): Likewise for third param, eliminating
350 checked cast.
351 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
352 default hook implementation from hook_constcharptr_const_rtx_null
353 to hook_constcharptr_const_rtx_insn_null.
354
355 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
356 from rtx to rtx_insn *.
357 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
358 (sh_variable_issue): Likewise for param "insn".
359 (sh_dfa_new_cycle): Likewise.
360 (sh_mode_needed): Likewise.
361 (sh_mode_after): Likewise.
362
363 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
364 params "insn", "dep_insn".
365 (hypersparc_adjust_cost): Likewise.
366 (sparc_adjust_cost): Likewise.
367
368 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
369 param, eliminated checked cast.
370 (spu_sched_adjust_cost): Likewise for first and third params.
371
372 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
373 params "insn" and "dep_insn" from rtx to rtx_insn *.
374
375 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
376
377 2014-08-27 David Malcolm <dmalcolm@redhat.com>
378
379 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
380 (set_is_load_p): ...this, updating to work on a SET pattern rather
381 than an insn.
382 (is_store_insn): Rename to...
383 (set_is_store_p): ...this, updating to work on a SET pattern
384 rather than an insn.
385 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
386 top of function to where it is needed. Rewrite the bogus
387 condition that checks for "insn" and "dep" being PARALLEL to
388 instead use single_set, introducing locals "insn_set" and
389 "dep_set". Given that we only ever returned "cost" for a non-pair
390 of SETs, bail out early if we don't have a pair of SET.
391 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
392 use the new locals "insn_set" and "dep_set", and update calls to
393 is_load_insn and is_store_insn to be calls to set_is_load_p and
394 set_is_store_p.
395
396 2014-08-27 Guozhi Wei <carrot@google.com>
397
398 PR target/62262
399 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
400 amount before using it.
401
402 2014-08-27 Richard Biener <rguenther@suse.de>
403
404 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
405 get_maxval_strlen inside a more useful API.
406 (gimple_fold_builtin_with_strlen): Remove and fold into ...
407 (gimple_fold_builtin): ... caller.
408 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
409 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
410 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
411 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
412 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
413 gimple_fold_builtin_sprintf): Adjust to compute maxval
414 themselves.
415
416 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
417
418 PR other/62248
419 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
420
421 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
422 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
423 Anna Tikhonova <anna.tikhonova@intel.com>
424 Ilya Tocar <ilya.tocar@intel.com>
425 Andrey Turetskiy <andrey.turetskiy@intel.com>
426 Ilya Verbin <ilya.verbin@intel.com>
427 Kirill Yukhin <kirill.yukhin@intel.com>
428 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
429
430 * config/i386/sse.md
431 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
432 Use `concat_tg_mode' attribute to determine asm register size.
433
434 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
436 Anna Tikhonova <anna.tikhonova@intel.com>
437 Ilya Tocar <ilya.tocar@intel.com>
438 Andrey Turetskiy <andrey.turetskiy@intel.com>
439 Ilya Verbin <ilya.verbin@intel.com>
440 Kirill Yukhin <kirill.yukhin@intel.com>
441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
442
443 * config/i386/sse.md
444 (define_mode_iterator VI48_AVX512VL): New.
445 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
446 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
447 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
448 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
449 with VI1): Change mode iterator.
450 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
451 with VI_ULOADSTORE_BW_AVX512VL): New.
452 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
453 with VI_ULOADSTORE_F_AVX512VL): Ditto.
454 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
455 with VI1): Change mode iterator.
456 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
457 with VI_ULOADSTORE_BW_AVX512VL): New.
458 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
459 with VI_ULOADSTORE_F_AVX512VL): Ditto.
460 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
461 with VI1): Change mode iterator.
462 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
463 with VI_ULOADSTORE_BW_AVX512VL): New.
464 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
465 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
466 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
467 (define_insn "<avx512>_storedqu<mode>_mask" with
468 VI48_AVX512VL): New.
469 (define_insn "<avx512>_storedqu<mode>_mask" with
470 VI12_AVX512VL): Ditto.
471
472 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
474 Anna Tikhonova <anna.tikhonova@intel.com>
475 Ilya Tocar <ilya.tocar@intel.com>
476 Andrey Turetskiy <andrey.turetskiy@intel.com>
477 Ilya Verbin <ilya.verbin@intel.com>
478 Kirill Yukhin <kirill.yukhin@intel.com>
479 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
480
481 * config/i386/sse.md
482 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
483 (define_mode_iterator VI48_AVX512BW): New.
484 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
485 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
486 with VI48_AVX2_48_AVX512F): New.
487 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
488 with VI2_AVX512VL): Ditto.
489
490 2014-08-27 Richard Biener <rguenther@suse.de>
491
492 PR middle-end/62239
493 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
494 (fold_builtin_3): Do not fold strcat_chk here.
495 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
496 from builtins.c.
497 (gimple_fold_builtin): Fold strcat_chk here.
498
499 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
500
501 * dwarf2out.h (dwarf2out_decl): Remove prototype.
502 * dwarf2out.c (dwarf2out_decl): Make static.
503
504 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
505
506 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
507
508 2014-08-26 David Malcolm <dmalcolm@redhat.com>
509
510 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
511 from rtx to rtx_insn *.
512 (cselib_lookup_from_insn): Likewise for final param.
513 (cselib_subst_to_values_from_insn): Likewise.
514 (cselib_add_permanent_equiv): Likewise.
515
516 * cselib.c (cselib_current_insn): Likewise for this variable.
517 (cselib_subst_to_values_from_insn): Likewise for param "insn".
518 (cselib_lookup_from_insn): Likewise.
519 (cselib_add_permanent_equiv): Likewise for param "insn" and local
520 "save_cselib_current_insn".
521 (cselib_process_insn): Replace use of NULL_RTX with NULL.
522
523 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
524 from rtx to rtx_insn *.
525
526 2014-08-26 David Malcolm <dmalcolm@redhat.com>
527
528 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
529 rtx_insn *.
530
531 2014-08-26 David Malcolm <dmalcolm@redhat.com>
532
533 * df.h (df_dump_insn_problem_function): Strengthen first param of
534 this callback from const_rtx to const rtx_insn *.
535 (struct df_insn_info): Strengthen field "insn" from rtx to
536 rtx_insn *.
537 (DF_REF_INSN): Eliminate this function, reinstating the older
538 macro definition.
539 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
540 (df_reg_defined): Likewise.
541 (df_find_use): Likewise.
542 (df_reg_used): Likewise.
543 (df_dump_insn_top): Strengthen param 1 from const_rtx to
544 const rtx_insn *.
545 (df_dump_insn_bottom): Likewise.
546 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
547 (df_insn_debug_regno): Likewise.
548 (debug_df_insn): Likewise.
549 (df_rd_simulate_one_insn): Likewise for param 2.
550 (df_word_lr_simulate_defs): Likewise for param 1.
551 (df_word_lr_simulate_uses): Likewise.
552 (df_md_simulate_one_insn): Likewise for param 2.
553 (df_simulate_find_noclobber_defs): Likewise for param 1.
554 (df_simulate_find_defs): Likewise.
555 (df_simulate_defs): Likewise.
556 (df_simulate_uses): Likewise.
557 (df_simulate_one_insn_backwards): Likewise for param 2.
558 (df_simulate_one_insn_forwards): Likewise.
559 (df_uses_create): Likewise for param 2.
560 (df_insn_create_insn_record): Likewise for param 1.
561 (df_insn_delete): Likewise.
562 (df_insn_rescan): Likewise.
563 (df_insn_rescan_debug_internal): Likewise.
564 (df_insn_change_bb): Likewise.
565 (df_notes_rescan): Likewise.
566 * rtl.h (remove_death): Likewise for param 2.
567 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
568 const rtx_insn *.
569 * sched-int.h (reemit_notes): Strengthen param from rtx to
570 rtx_insn *.
571 * valtrack.h (propagate_for_debug): Likewise for param 1.
572
573 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
574 local "tmp_rtx" from const_rtx to const rtx_insn *.
575 * combine.c (remove_death): Strengthen param "insn" from rtx to
576 rtx_insn *.
577 (move_deaths): Likewise for local "where_dead".
578 * cse.c (delete_trivially_dead_insns): Introduce local
579 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
580 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
581 rtx_insn *.
582 (df_reg_defined): Likewise.
583 (df_find_use): Likewise.
584 (df_reg_used): Likewise.
585 (df_dump_insn_problem_data): Strengthen param "insn" from
586 const_rtx to const rtx_insn *.
587 (df_dump_insn_top): Likewise.
588 (df_dump_insn_bottom): Likewise.
589 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
590 (df_insn_debug_regno): Likewise.
591 (debug_df_insn): Likewise.
592 (DF_REF_INSN): Delete.
593 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
594 from rtx to rtx_insn *.
595 (df_chain_insn_top_dump): Strengthen param "insn" from
596 const_rtx to const rtx_insn *.
597 (df_chain_insn_bottom_dump): Likewise.
598 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
599 rtx_insn *.
600 (df_word_lr_simulate_uses): Likewise.
601 (df_print_note): Likewise.
602 (df_remove_dead_and_unused_notes): Likewise.
603 (df_set_unused_notes_for_mw): Likewise.
604 (df_set_dead_notes_for_mw): Likewise.
605 (df_create_unused_note): Likewise.
606 (df_simulate_find_defs): Likewise.
607 (df_simulate_find_uses): Likewise.
608 (df_simulate_find_noclobber_defs): Likewise.
609 (df_simulate_defs): Likewise.
610 (df_simulate_uses): Likewise.
611 (df_simulate_one_insn_backwards): Likewise.
612 (df_simulate_one_insn_forwards): Likewise.
613 (df_md_simulate_one_insn): Likewise.
614 * df-scan.c (df_uses_create): Likewise.
615 (df_insn_create_insn_record): Likewise.
616 (df_insn_delete): Likewise.
617 (df_insn_rescan): Likewise.
618 (df_insn_rescan_debug_internal): Likewise.
619 (df_insn_change_bb): Likewise.
620 (df_notes_rescan): Likewise.
621 (df_refs_add_to_chains): Likewise.
622 (df_insn_refs_verify): Likewise.
623 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
624 when invoking df_insn_delete.
625 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
626 (set_unique_reg_note): Add checked cast.
627 * final.c (cleanup_subreg_operands): Likewise.
628 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
629 "insn" from rtx to rtx_insn *.
630 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
631 "last" from rtx to rtx_insn *.
632 * ira-emit.c (change_regs_in_insn): New function.
633 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
634 Invoke change_regs_in_insn rather than change_regs.
635 * ira.c (update_equiv_regs): Strengthen locals "insn",
636 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
637 for_each_rtx_in_insn rather than for_each_rtx.
638 * recog.c (confirm_change_group): Add checked casts.
639 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
640 Add checked cast.
641 (peep2_fill_buffer): Add checked cast.
642 * rtlanal.c (remove_note): Likewise.
643 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
644 locals "next" "end" from rtx to rtx_insn *.
645
646 2014-08-26 David Malcolm <dmalcolm@redhat.com>
647
648 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
649 to rtx_insn *.
650 (struct reg_use_data): Likewise for field "insn".
651 (insn_cost): Likewise for param.
652 (real_insn_for_shadow): Likewise for return type and param.
653 (increase_insn_priority): Likewise for param 1.
654 (debug_dependencies): Likewise for both params.
655
656 * haifa-sched.c (insn_delay): Likewise for param "insn".
657 (real_insn_for_shadow): Likewise for return type and param "insn".
658 (update_insn_after_change): Likewise for param "insn".
659 (recompute_todo_spec): Likewise for param "next" and locals "pro",
660 "other".
661 (insn_cost): Likewise for param "insn".
662 (increase_insn_priority): Likewise.
663 (calculate_reg_deaths): Likewise.
664 (setup_insn_reg_pressure_info): Likewise.
665 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
666 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
667 (model_recompute): Likewise.
668 (must_restore_pattern_p): Likewise for param "next".
669 (model_excess_cost): Likewise for param "insn".
670 (queue_remove): Likewise.
671 (adjust_priority): Likewise for param "prev".
672 (update_register_pressure): Likewise for param "insn".
673 (setup_insn_max_reg_pressure): Likewise for local "insn".
674 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
675 (model_add_to_schedule): Likewise.
676 (model_reset_queue_indices): Likewise for local "insn".
677 (unschedule_insns_until): Strengthen local "recompute_vec" from
678 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
679 "con" from rtx to rtx_insn *.
680 (restore_last_backtrack_point): Likewise for both locals "x". Add
681 checked casts.
682 (estimate_insn_tick): Likewise for param "insn".
683 (commit_schedule): Likewise for params "prev_head", "tail" and
684 local "x".
685 (verify_shadows): Likewise for locals "i1", "i2".
686 (dump_insn_stream): Likewise for params "head", "tail" and locals
687 "next_tail", "insn".
688 (schedule_block): Likewise for locals "insn", "x". Add a checked
689 cast.
690 (fix_inter_tick): Likewise for params "head", "tail".
691 (create_check_block_twin): Likewise for local "jump".
692 (haifa_change_pattern): Likewise for param "insn".
693 (haifa_speculate_insn): Likewise.
694 (dump_new_block_header): Likewise for params "head", "tail".
695 (fix_jump_move): Likewise for param "jump".
696 (move_block_after_check): Likewise.
697 (sched_init_insn_luid): Likewise for param "insn".
698 (sched_init_luids): Likewise for local "insn".
699 (insn_luid): Likewise for param "insn".
700 (init_h_i_d): Likewise.
701 (haifa_init_h_i_d): Likewise for local "insn".
702 (haifa_init_insn): Likewise for param "insn".
703 * sched-deps.c (add_dependence): Likewise for local "real_pro",
704 "other".
705 (create_insn_reg_use): Likewise for param "insn".
706 (setup_insn_reg_uses): Likewise. Add a checked cast.
707 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
708 "tail" from rtx to rtx_insn *.
709 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
710 "insn", "next_tail".
711
712 2014-08-26 David Malcolm <dmalcolm@redhat.com>
713
714 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
715 from rtx to rtx_insn *.
716 (model_add_to_schedule): Likewise for locals "start", "end",
717 "iter".
718
719 2014-08-26 David Malcolm <dmalcolm@redhat.com>
720
721 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
722 rtx_insn *.
723 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
724 "to" and locals "insn", "next", "copy". Remove now-redundant
725 checked cast.
726
727 2014-08-26 David Malcolm <dmalcolm@redhat.com>
728
729 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
730 rtx_insn * and param 4 from rtx * to rtx_insn **.
731 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
732 param 2 from rtx * to rtx_insn **.
733
734 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
735 rtx_insn * and final param from rtx * to rtx_insn **.
736
737 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
738 from rtx to rtx_insn *.
739 (try_head_merge_bb): Likewise for both locals named "move_upto".
740 * df-problems.c (can_move_insns_across): Likewise for params
741 "from", "to", "across_from", "across_to" and locals "insn",
742 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
743 rtx_insn **.
744 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
745 from rtx to rtx_insn *.
746 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
747 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
748 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
749 rtx_insn *.
750 (noce_try_abs): Likewise.
751 (noce_get_condition): Likewise for param "jump". Strengthen param
752 "earliest" from rtx * to rtx_insn **.
753 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
754 rtx_insn *.
755 (find_cond_trap): Likewise.
756 (dead_or_predicable): Likewise for local "earliest".
757 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
758 checked cast.
759 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
760 and local "prev". Strengthen param "earliest" from rtx * to
761 rtx_insn **.
762 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
763 Strengthen param "earliest" from rtx * to rtx_insn **.
764
765 2014-08-26 David Malcolm <dmalcolm@redhat.com>
766
767 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
768 "to" and local "insn" from rtx to rtx_insn *.
769
770 2014-08-26 David Malcolm <dmalcolm@redhat.com>
771
772 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
773 from rtx to rtx_insn *.
774 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
775 (code_motion_path_driver): Likewise for local "last_insn".
776 (simplify_changed_insns): Likewise for local "insn".
777
778 2014-08-26 David Malcolm <dmalcolm@redhat.com>
779
780 * rtl.h (push_to_sequence): Strengthen param from rtx to
781 rtx_insn *.
782 (push_to_sequence2): Likewise for both params.
783 (delete_insns_since): Likewise for param.
784 (reorder_insns_nobb): Likewise for all three params.
785 (set_new_first_and_last_insn): Likewise for both params.
786
787 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
788 rtx_insn *. Remove now-redundant cast.
789 (set_last_insn): Likewise.
790
791 * builtins.c (expand_builtin_return): Strengthen local
792 "call_fusage" from rtx to rtx_insn *.
793 * cfgrtl.c (create_basic_block_structure): Likewise for local
794 "after".
795 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
796 "first", "last" and local "insn".
797 (delete_insns_since): Likewise for param "from".
798 (reorder_insns_nobb): Likewise for params "from", "to", "after"
799 and local "x".
800 (push_to_sequence): Likewise for param "first" and local "last".
801 (push_to_sequence2): Likewise for params "first" and "last".
802 * lra.c (emit_add3_insn): Likewise for local "last".
803 (lra_emit_add): Likewise.
804 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
805 "last_insn".
806 (process_address_1): Likewise for locals "insn", last".
807 * modulo-sched.c (ps_first_note): Likewise for return type.
808 * optabs.c (expand_binop_directly): Likewise for param "last".
809
810 2014-08-26 David Malcolm <dmalcolm@redhat.com>
811
812 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
813 to rtx_insn*.
814 * emit-rtl.c (get_last_insn_anywhere): Likewise.
815
816 2014-08-26 David Malcolm <dmalcolm@redhat.com>
817
818 * function.h (struct sequence_stack): Strengthen fields "first"
819 and "last" from rtx to rtx_insn *.
820 (struct emit_status): Likewise for fields "x_first_insn" and
821 "x_last_insn".
822
823 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
824 (set_first_insn): Add checked cast.
825 (get_last_insn): Remove now-redundant checked cast.
826 (set_last_insn): Add checked cast.
827
828 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
829 "saved_first" and "saved_last" from rtx to rtx_insn *.
830
831 2014-08-26 David Malcolm <dmalcolm@redhat.com>
832
833 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
834 (unlink_insn_chain): Strengthen both params from rtx to
835 rtx_insn *.
836
837 * cfgrtl.c (cfg_layout_function_header): Likewise for this
838 variable.
839 (unlink_insn_chain): Likewise for params "first" and "last".
840 Remove now-redundant checked cast.
841 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
842 (fixup_reorder_chain): Strengthen local "insn" from rtx to
843 rtx_insn *.
844 * emit-rtl.c (link_insn_into_chain): Likewise for all three
845 params.
846 (add_insn): Likewise for param "insn" and local "prev".
847 (add_insn_after_nobb): Likewise for both params and local "next".
848 (add_insn_before_nobb): Likewise for both params and local "prev".
849 (add_insn_after): Rename param "after" to "uncast_after",
850 introducing local "after" with another checked cast.
851 (add_insn_before): Rename params "insn" and "before", giving them
852 "uncast_" prefixes, adding the old names back using checked casts.
853 (emit_note_after): Likewise for param "after".
854 (emit_note_before): Likewise for param "before".
855 (emit_label): Add a checked cast.
856
857 2014-08-26 David Malcolm <dmalcolm@redhat.com>
858
859 * cselib.h (cselib_record_sets_hook): Strengthen initial param
860 "insn" from rtx to rtx_insn *.
861
862 * cselib.c (cselib_record_sets_hook): Likewise.
863
864 * var-tracking.c (add_with_sets): Likewise, renaming back from
865 "uncast_insn" to "insn" and eliminating the checked cast from rtx
866 to rtx_insn *.
867
868 2014-08-26 David Malcolm <dmalcolm@redhat.com>
869
870 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
871 and "header_" from rtx to rtx_insn *.
872 (struct basic_block_d): Likewise for field "head_" within "x"
873 field of union basic_block_il_dependent.
874 (BB_HEAD): Drop function...
875 (SET_BB_HEAD): ...and this function in favor of...
876 (BB_HEAD): ...reinstate macro.
877 (BB_END): Drop function...
878 (SET_BB_END): ...and this function in favor of...
879 (BB_END): ...reinstate macro.
880 (BB_HEADER): Drop function...
881 (SET_BB_HEADER): ...and this function in favor of...
882 (BB_HEADER): ...reinstate macro.
883
884 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
885 (fix_crossing_unconditional_branches): Likewise.
886 * caller-save.c (save_call_clobbered_regs): Likewise.
887 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
888 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
889 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
890 (merge_blocks_move_successor_nojumps): Likewise.
891 (outgoing_edges_match): Update use of for_each_rtx to
892 for_each_rtx_in_insn.
893 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
894 (expand_gimple_cond): Likewise.
895 (expand_gimple_tailcall): Likewise.
896 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
897 SET_BB_END.
898 (construct_exit_block): Drop use of SET_BB_END.
899 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
900 rtx_insn *.
901 (delete_insn): Rename param "insn" to "uncast_insn", introducing
902 a new local "insn" with a checked cast to rtx_insn *. Drop use of
903 SET_BB_HEAD and SET_BB_END.
904 (create_basic_block_structure): Drop use of SET_BB_HEAD and
905 SET_BB_END.
906 (rtl_delete_block): Drop use of SET_BB_HEAD.
907 (rtl_split_block): Drop use of SET_BB_END.
908 (emit_nop_for_unique_locus_between): Likewise.
909 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
910 (block_label): Drop use of SET_BB_HEAD.
911 (fixup_abnormal_edges): Drop use of SET_BB_END.
912 (record_effective_endpoints): Drop use of SET_BB_HEADER.
913 (relink_block_chain): Likewise.
914 (fixup_reorder_chain): Drop use of SET_BB_END.
915 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
916 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
917 rtx_insn **. Drop use of SET_BB_HEADER.
918 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
919 SET_BB_HEAD.
920 (BB_HEAD): Delete this function.
921 (SET_BB_HEAD): Likewise.
922 (BB_END): Likewise.
923 (SET_BB_END): Likewise.
924 (BB_HEADER): Likewise.
925 (SET_BB_HEADER): Likewise.
926 * emit-rtl.c (add_insn_after): Rename param "insn" to
927 "uncast_insn", adding a new local "insn" and a checked cast to
928 rtx_insn *. Drop use of SET_BB_END.
929 (remove_insn): Strengthen locals "next" and "prev" from rtx to
930 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
931 (reorder_insns): Drop use of SET_BB_END.
932 (emit_insn_after_1): Strengthen param "first" and locals "last",
933 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
934 (emit_pattern_after_noloc): Add checked cast.
935 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
936 (restore_other_notes): Likewise.
937 (move_insn): Likewise.
938 (sched_extend_bb): Likewise.
939 (fix_jump_move): Likewise.
940 * ifcvt.c (noce_process_if_block): Likewise.
941 (dead_or_predicable): Likewise.
942 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
943 * reg-stack.c (change_stack): Drop use of SET_BB_END.
944 * sel-sched-ir.c (sel_move_insn): Likewise.
945 * sel-sched.c (move_nop_to_previous_block): Likewise.
946
947 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
948 SET_BB_END.
949 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
950
951 2014-08-26 David Malcolm <dmalcolm@redhat.com>
952
953 * basic-block.h (create_basic_block_structure): Strengthen params
954 1 "head" and 2 "end" from rtx to rtx_insn *.
955 * cfgrtl.c (create_basic_block_structure): Likewise.
956 (rtl_create_basic_block): Update casts from void * to rtx to
957 rtx_insn *, so that we can pass them as rtx_insn * to
958 create_basic_block_structure.
959 * sel-sched-ir.c (sel_create_basic_block): Likewise.
960
961 2014-08-26 David Malcolm <dmalcolm@redhat.com>
962
963 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
964 rtx_insn **.
965 (check_for_inc_dec): Strengthen param "insn" from rtx to
966 rtx_insn *.
967
968 * cselib.h (cselib_process_insn): Likewise.
969
970 * cselib.c (cselib_record_sets): Likewise.
971 (cselib_process_insn): Likewise.
972
973 * dse.c (struct insn_info): Likewise for field "insn".
974 (check_for_inc_dec_1): Likewise for local "insn".
975 (check_for_inc_dec): Likewise for param "insn".
976 (scan_insn): Likewise.
977 (dse_step1): Likewise for local "insn".
978
979 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
980 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
981
982 2014-08-26 David Malcolm <dmalcolm@redhat.com>
983
984 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
985 from rtx to rtx_insn *.
986 (DEP_PRO): Delete this function and...
987 (SET_DEP_PRO): ...this function in favor of...
988 (DEP_PRO): ...reinstate this macro.
989 (DEP_CON): Delete this function and...
990 (SET_DEP_CON): ...this function in favor of...
991 (DEP_CON): ...reinstate this old macro.
992 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
993 (init_dep): Likewise.
994 (set_priorities): Likewise for both params.
995 (sd_copy_back_deps): Likewise for params 1 and 2.
996
997 * haifa-sched.c (priority): Likewise for param "insn" and local
998 "next".
999 (set_priorities): Likewise for params "head" and "tail" and local
1000 "insn".
1001 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1002 local "consumer".
1003 (add_to_speculative_block): Add a checked cast.
1004 (create_check_block_twin): Drop use of SET_DEP_CON.
1005 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1006 rtx to rtx_insn *.
1007
1008 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1009 Drop use of SET_DEP_PRO
1010 (init_dep): Strengthen params "pro" and "con" from rtx to
1011 rtx_insn *.
1012 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1013 use of SET_DEP_CON.
1014 (DEP_PRO): Delete.
1015 (DEP_CON): Delete.
1016 (SET_DEP_PRO): Delete.
1017 (SET_DEP_CON): Delete.
1018
1019 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1020
1021 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1022 from rtx to rtx_insn *.
1023 (VINSN_INSN_RTX): Eliminate rvalue function and...
1024 (SET_VINSN_INSN): ...lvalue function in favor of...
1025 (VINSN_INSN_RTX): reinstate this old macro.
1026
1027 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1028 in favor of VINSN_INSN_RTX.
1029 (VINSN_INSN_RTX): Delete this function.
1030 (SET_VINSN_INSN_RTX): Likewise.
1031
1032 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1033
1034 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1035 (BND_TO): Delete this function and...
1036 (SET_BND_TO): ...this functions in favor of...
1037 (BND_TO): ...reinstating this macro.
1038 (struct _fence): Strengthen field "executing_insns" from
1039 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1040 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1041 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1042 and param "insn" from rtx to insn_t.
1043 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1044 rtx_insn *.
1045
1046 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1047 vec<rtx_insn *> .
1048 (rtx_vec_t): Likewise.
1049 (struct sched_deps_info_def): Strengthen param of "start_insn"
1050 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1051 "note_mem_dep" callback and first param of "note_dep" callback.
1052
1053 * haifa-sched.c (add_to_speculative_block): Strengthen param
1054 "insn" from rtx to rtx_insn *.
1055 (clear_priorities): Likewise.
1056 (calc_priorities): Likewise for local "insn".
1057
1058 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1059 Remove redundant checked cast.
1060 (haifa_note_mem_dep): Likewise for param "pending_insn".
1061 (haifa_note_dep): Likewise for param "elem".
1062 (note_mem_dep): Likewise for param "e".
1063 (sched_analyze_1): Add checked casts.
1064 (sched_analyze_2): Likewise.
1065
1066 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1067 from rtx to rtx_insn *.
1068 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1069 from vec<rtx> * to vec<rtx_insn *> *.
1070
1071 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1072 scaffolding.
1073 (flist_add): Strengthen param "executing_insns" from
1074 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1075 (advance_deps_context): Remove now-redundant checked cast.
1076 (init_fences): Replace uses of NULL_RTX with NULL.
1077 (merge_fences): Strengthen params "last_scheduled_insn" and
1078 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1079 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1080 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1081 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1082 an instruction, rather than doing double-duty as a pattern.
1083 (return_nop_to_pool): Update for change of insn_t.
1084 (deps_init_id): Remove now-redundant checked cast.
1085 (struct sched_scan_info_def): Strengthen param of "init_insn"
1086 callback from rtx to insn_t.
1087 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1088 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1089 NULL.
1090 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1091 "end" from rtx to rtx_insn *.
1092 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1093 (rtx insn_rtx, bool force_unique_p)
1094 (BND_TO): Delete function.
1095 (SET_BND_TO): Delete function.
1096
1097 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1098 rtx to rtx_insn *.
1099 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1100 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1101 rtx to rtx_insn *.
1102 (undo_transformations): Likewise for param "insn".
1103 (update_liveness_on_insn): Likewise.
1104 (compute_live_below_insn): Likewise for param "insn" and local
1105 "succ".
1106 (update_data_sets): Likewise for param "insn".
1107 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1108 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1109 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1110 rtx_insn *.
1111 (move_cond_jump): Likewise for param "insn".
1112 (move_cond_jump): Drop use of SET_BND_TO.
1113 (compute_av_set_on_boundaries): Likewise.
1114 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1115 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1116 from rtx to rtx_insn *.
1117 (maybe_emit_renaming_copy): Likewise for param "insn".
1118 (maybe_emit_speculative_check): Likewise.
1119 (handle_emitting_transformations): Likewise.
1120 (remove_insn_from_stream): Likewise.
1121 (code_motion_process_successors): Strengthen local "succ" from rtx
1122 to insn_t.
1123
1124 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1125
1126 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1127 ilist_t, not _xlist_t;
1128 (ILIST_INSN): Define in terms of new union field "insn".
1129 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1130 _XLIST_NEXT.
1131 (struct _list_node): Add new field "insn" to the union, of type
1132 insn_t.
1133 (ilist_add): Replace macro with an inline function, requiring an
1134 insn_t.
1135 (ilist_remove): Define this macro directly in terms of
1136 _list_remove, rather than indirectly via _xlist_remove.
1137 (ilist_clear): Likewise, in terms of _list_clear rather than
1138 _xlist_clear.
1139 (ilist_is_in_p): Replace macro with an inline function, requiring
1140 an insn_t.
1141 (_list_iter_cond_insn): New function.
1142 (ilist_iter_remove): Define this macro directly in terms of
1143 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1144 (ilist_iterator): Define directly in terms of _list_iterator
1145 rather than indirectly through _xlist_iterator.
1146 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1147 than in terms of _FOR_EACH_X.
1148 (FOR_EACH_INSN_1): Likewise.
1149
1150 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1151
1152 PR target/60606
1153 PR target/61330
1154 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1155 DECL_HARD_REGISTER and return for invalid register specifications.
1156 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1157 DECL_HARD_REGISTER, call expand_one_error_var.
1158 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1159 CC_REGNUM with non-MODE_CC modes.
1160 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1161
1162 2014-08-26 Marek Polacek <polacek@redhat.com>
1163
1164 PR c/61271
1165 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1166
1167 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1168
1169 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1170 qi cost; add di cost.
1171 (cortexa57_addrcost_table): Likewise.
1172
1173 2014-08-26 Marek Polacek <polacek@redhat.com>
1174
1175 PR c/61271
1176 * expr.c (is_aligning_offset): Remove logical not.
1177
1178 2014-08-26 Marek Polacek <polacek@redhat.com>
1179
1180 PR c/61271
1181 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1182 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1183
1184 2014-08-26 Richard Biener <rguenther@suse.de>
1185
1186 PR tree-optimization/62175
1187 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1188 expand possibly trapping operations.
1189
1190 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1191
1192 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1193 "insn" from rtx to rtx_insn *.
1194 (permute_load): Likewise for param "insn".
1195 (permute_store): Likewise.
1196 (handle_special_swappables): Likewise for local "insn".
1197 (replace_swap_with_copy): Likewise for locals "insn" and
1198 "new_insn".
1199 (rs6000_analyze_swaps): Likewise for local "insn".
1200
1201 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1202
1203 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1204 to rtx_insn *.
1205
1206 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1207
1208 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1209 "note_list" from rtx to rtx_insn *.
1210 (BB_NOTE_LIST): Replace this function and...
1211 (SET_BB_NOTE_LIST): ...this function with...
1212 (BB_NOTE_LIST): ...the former macro implementation.
1213
1214 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1215 local "from_start" from rtx to rtx_insn *. Strengthen param
1216 "to_endp" from rtx * to rtx_insn **.
1217
1218 * haifa-sched.c (concat_note_lists): Likewise.
1219 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1220 BB_NOTE_LIST.
1221 (sel_restore_notes): Likewise.
1222 (move_bb_info): Likewise.
1223 (BB_NOTE_LIST): Delete this function.
1224 (SET_BB_NOTE_LIST): Delete this function.
1225 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1226 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1227
1228 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1229
1230 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1231 from rtx * to rtx_insn **.
1232 (reorder2): Likewise.
1233 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1234 from rtx to rtx_insn *.
1235
1236 * doc/tm.texi: Update mechanically for above change to target.def.
1237
1238 * sched-int.h (note_list): Strengthen this variable from rtx to
1239 rtx_insn *.
1240 (remove_notes): Likewise for both params.
1241 (restore_other_notes): Likewise for return type and first param.
1242 (struct ready_list): Strengthen field "vec" from rtx * to
1243 rtx_insn **.
1244 (struct dep_replacement): Strenghten field "insn" from rtx to
1245 rtx_insn *.
1246 (struct deps_desc): Likewise for fields "last_debug_insn",
1247 "last_args_size".
1248 (struct haifa_sched_info): Likewise for callback field
1249 "can_schedule_ready_p"'s param, for first param of "new_ready"
1250 callback field, for both params of "rank" callback field, for
1251 first field of "print_insn" callback field (with a const), for
1252 both params of "contributes_to_priority" callback, for param
1253 of "insn_finishes_block_p" callback, for fields "prev_head",
1254 "next_tail", "head", "tail", for first param of "add_remove_insn"
1255 callback, for first param of "begin_schedule_ready" callback, for
1256 both params of "begin_move_insn" callback, and for second param
1257 of "advance_target_bb" callback.
1258 (add_dependence): Likewise for params 1 and 2.
1259 (sched_analyze): Likewise for params 2 and 3.
1260 (deps_analyze_insn): Likewise for param 2.
1261 (ready_element): Likewise for return type.
1262 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1263 (try_ready): Strenghten param from rtx to rtx_insn *.
1264 (sched_emit_insn): Likewise for return type.
1265 (record_delay_slot_pair): Likewise for params 1 and 2.
1266 (add_delay_dependencies): Likewise for param.
1267 (contributes_to_priority): Likewise for both params.
1268 (find_modifiable_mems): Likewise.
1269
1270 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1271 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1272 "first_older_only_insn" from rtx to rtx_insn *.
1273 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1274 rtx_insn **.
1275
1276 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1277 "last_scheduled_iter0" from rtx to rtx_insn *.
1278 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1279 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1280 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1281 "insn" from rtx to rtx_insn *.
1282 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1283 rtx_insn **.
1284 (c6x_sched_reorder2): Strengthen param "ready" and locals
1285 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1286 "insn" from rtx to rtx_insn *.
1287 (c6x_variable_issue): Add a checked cast when assigning from insn
1288 to ss.last_scheduled_iter0.
1289 (split_delayed_branch): Strengthen param "insn" and local "i1"
1290 from rtx to rtx_insn *.
1291 (split_delayed_nonbranch): Likewise.
1292 (undo_split_delayed_nonbranch): Likewise for local "insn".
1293 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1294 "entry_after", "end_packet", "head_insn", "tail_insn",
1295 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1296 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1297 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1298 but add a checked cast on loop->start_label. Consolidate calls to
1299 avoid assigning result of gen_spkernel to "insn", now an
1300 rtx_insn *.
1301
1302 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1303 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1304 rtx to rtx_insn *.
1305 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1306 rtx_insn **. Strengthen locals "top", "next" from rtx to
1307 rtx_insn *.
1308 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1309 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1310 (add_parameter_dependencies): Strengthen params "call", "head" and
1311 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1312 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1313 (add_dependee_for_func_arg): Likewise for param "arg" and local
1314 "insn".
1315 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1316 "tail" and locals "insn", "first_arg".
1317
1318 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1319 for params "head", "tail" and locals "insn", "next", "next_tail".
1320 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1321 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1322 "insn", "lowest", "highest" from rtx to rtx_insn *.
1323 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1324 rtx_insn **.
1325 (ia64_sched_reorder2): Likewise.
1326
1327 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1328 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1329 from rtx * to rtx_insn **.
1330 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1331 rtx_insn **.
1332 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1333 rtx_insn *.
1334 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1335 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1336 to rtx_insn *.
1337
1338 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1339 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1340 to rtx_insn *.
1341 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1342 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1343 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1344 rtx_insn **.
1345 (vr4130_reorder): Likewise.
1346 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1347 rtx to rtx_insn *.
1348 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1349 rtx_insn **.
1350 (mips_sched_reorder): Likewise.
1351 (mips_sched_reorder2): Likewise.
1352
1353 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1354
1355 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1356 Strengthen local "tmp" from rtx to rtx_insn *.
1357 (rs6000_sched_reorder2): Likewise.
1358
1359 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1360 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1361 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1362 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1363
1364 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1365 "tmp2" from rtx to rtx_insn *.
1366 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1367 Strengthen local "insn" from rtx to rtx_insn *.
1368 (ready_reorder): Strengthen param "ready" from rtx * to
1369 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1370 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1371 (sh_reorder2): Likewise.
1372
1373 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1374 local "insn" from rtx to rtx_insn *.
1375
1376 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1377 rtx_insn *.
1378 (scheduled_insns): Strengthen this variable from vec<rtx> to
1379 vec<rtx_insn *>.
1380 (set_modulo_params): Likewise for locals "i1", "i2".
1381 (record_delay_slot_pair): Likewise for params "i1", "i2".
1382 (add_delay_dependencies): Likewise for param "insn".
1383 (cond_clobbered_p): Likewise.
1384 (recompute_todo_spec): Likewise for local "prev".
1385 (last_scheduled_insn): Likewise for this variable.
1386 (nonscheduled_insns_begin): Likewise.
1387 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1388 rtx_insn **.
1389 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1390 rtx_insn *.
1391 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1392 Strengthen local "insn" from rtx to rtx_insn *.
1393 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1394 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1395 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1396 (ready_remove_first): Likewise for return type and local "t".
1397 (ready_element): Likewise for return type.
1398 (ready_remove): Likewise for return type and local "t".
1399 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1400 (check_clobbered_conditions): Strengthen local "x" from rtx to
1401 rtx_insn *, adding a checked cast.
1402 (schedule_insn): Likewise for param "insn".
1403 (remove_notes): Likewise for params "head", "tail" and locals
1404 "next_tail", "insn", "next".
1405 (struct haifa_saved_data): Likewise for fields
1406 "last_scheduled_insn", "nonscheduled_insns_begin".
1407 (save_backtrack_point): Update for change to field "vec" of
1408 struct ready_list.
1409 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1410 rtx_insn **.
1411 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1412 from rtx to rtx_insn *
1413 (resolve_dependencies): Strengthen param "insn" from rtx to
1414 rtx_insn *
1415 (restore_other_notes): Likewise for return type, for param "head"
1416 and local "note_head".
1417 (undo_all_replacements): Likewise for local "insn".
1418 (first_nonscheduled_insn): Likewise for return type and local "insn".
1419 (queue_to_ready): Likewise for local "insn", adding checked casts.
1420 (early_queue_to_ready): Likewise for local "insn".
1421 (debug_ready_list_1): Strengthen local "p" from rtx * to
1422 rtx_insn **.
1423 (move_insn): Strengthen param "insn" and local "note" from rtx to
1424 rtx_insn *
1425 (insn_finishes_cycle_p): Likewise for param "insn".
1426 (max_issue): Likewise for local "insn".
1427 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1428 to rtx_insn **.
1429 (commit_schedule): Strengthen param "prev_head" and local "insn"
1430 from rtx to rtx_insn *
1431 (prune_ready_list): Likewise for local "insn".
1432 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1433 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1434 (set_priorities): Likewise for local "prev_head".
1435 (try_ready): Likewise for param "next".
1436 (fix_tick_ready): Likewise.
1437 (change_queue_index): Likewise.
1438 (sched_extend_ready_list): Update for change to field "vec" of
1439 struct ready_list.
1440 (generate_recovery_code): Strengthen param "insn" from rtx to
1441 rtx_insn *.
1442 (begin_speculative_block): Likewise.
1443 (create_check_block_twin): Likewise for param "insn" and locals
1444 "label", "check", "twin". Introduce local "check_pat" to avoid
1445 "check" being used as a plain rtx before being used as an insn.
1446 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1447 extracting elements from ready_list.
1448 (sched_remove_insn): Strengthen param "insn" from rtx to
1449 rtx_insn *.
1450 (sched_emit_insn): Likewise for return type.
1451 (ready_remove_first_dispatch): Likewise for return type and local
1452 "insn".
1453
1454 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1455
1456 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1457 const rtx_insn *.
1458
1459 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1460 from rtx to rtx_insn *.
1461 (add_dependence_list): Likewise for param "insn". Add a checked
1462 cast.
1463 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1464 to rtx_insn *. Strengthen param "list_p" from rtx * to
1465 rtx_insn **.
1466 (chain_to_prev_insn): Strengthen param "insn" and locals
1467 "prec_nonnote", "i" from rtx to rtx_insn *.
1468 (flush_pending_lists): Likewise for param "insn".
1469 (cur_insn): Likewise for this variable.
1470 (haifa_start_insn): Add a checked cast.
1471 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1472 (sched_analyze_reg): Likewise for param "insn".
1473 (sched_analyze_1): Likewise.
1474 (sched_analyze_2): Likewise. Add checked casts.
1475 (sched_analyze_insn): Likewise. Also for local "prev".
1476 (deps_analyze_insn): Likewise for param "insn".
1477 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1478 (add_dependence_1): Likewise for params "insn", "elem".
1479 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1480 (parse_add_or_inc): Likewise for param "insn".
1481 (find_inc): Likewise for local "inc_cand".
1482 (find_modifiable_mems): Likewise for params "head", "tail" and
1483 locals "insn", "next_tail".
1484
1485 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1486 (begin_schedule_ready): Likewise for param "insn".
1487 (begin_move_insn): Likewise for params "insn" and "last".
1488 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1489 const rtx_insn *.
1490 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1491 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1492 (ebb_add_remove_insn): Likewise for param "insn".
1493 (advance_target_bb): Likewise.
1494
1495 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1496 "insn".
1497 (check_live): Likewise for param "insn".
1498 (init_ready_list): Likewise for local "insn".
1499 (can_schedule_ready_p): Likewise for param "insn".
1500 (begin_schedule_ready): Likewise.
1501 (new_ready): Likewise for param "next".
1502 (rgn_print_insn): Likewise for param "insn".
1503 (rgn_rank): Likewise for params "insn1", "insn2".
1504 (contributes_to_priority): Likewise for params "next", "insn".
1505 (rgn_insn_finishes_block_p): Likewise for param "insn".
1506 (add_branch_dependences): Likewise for params "head", "tail" and
1507 locals "insn", "last".
1508 (rgn_add_remove_insn): Likewise for param "insn".
1509 (advance_target_bb): Likewise.
1510
1511 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1512 const_rtx to const rtx_insn *.
1513
1514 * sel-sched-dump.h (sel_print_insn): Likewise.
1515
1516 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1517 (deps_init_id): Likewise.
1518
1519 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1520 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1521 rtx_insn **.
1522
1523 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1524
1525 * output.h (final_start_function): Strengthen param 1 from rtx to
1526 rtx_insn *.
1527
1528 * final.c (final_start_function): Likewise, renaming back from
1529 "uncast_first" to "first", and dropping the checked cast from rtx
1530 to rtx_insn *.
1531
1532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1533
1534 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1535 * final.c (final): Likewise. Rename param back from
1536 "uncast_first" to "first" and eliminate the checked cast from rtx
1537 to rtx_insn *.
1538
1539 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1540
1541 * output.h (shorten_branches): Strengthen param from rtx to
1542 rtx_insn *.
1543
1544 * final.c (shorten_branches): Likewise, renaming param back from
1545 "uncast_first" to "first", and dropping the checked cast from rtx
1546 to rtx_insn *.
1547
1548 * genattr.c (gen_attr): Likewise when writing out the prototype of
1549 shorten_branches.
1550
1551 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1552
1553 * sched-int.h (struct haifa_sched_info): Strengthen fields
1554 "prev_head" and "next_tail" from rtx to rtx_insn *.
1555
1556 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1557
1558 * rtl.h (rtx_jump_table_data::get_labels): New method.
1559 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1560 with use of the new rtx_jump_table_data::get_labels method.
1561 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1562 to rtx_jump_table_data *. Simplify by using get_labels method.
1563 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1564 a dyn_cast, introducing local "table", using it to replace
1565 label-lookup logic with a get_labels method call.
1566 (patch_jump_insn): Simplify using get_labels method.
1567 * dwarf2cfi.c (create_trace_edges): Likewise.
1568 * rtlanal.c (label_is_jump_target_p): Likewise.
1569
1570 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1571
1572 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1573 to rtx_insn *.
1574
1575 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1576 (unshare_all_rtl_again): Likewise, also for local "p".
1577
1578 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1579
1580 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1581 to rtx_insn *.
1582 * cfgrtl.c (delete_insn_and_edges): Likewise.
1583
1584 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1585
1586 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1587 from rtx to rtx_insn *.
1588
1589 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1590
1591 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1592
1593 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1594 locals "returnjump", "epilogue_end", "insn", "next".
1595
1596 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1597 "returnjump" from rtx * to rtx_insn **.
1598 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1599
1600 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1601
1602 * basic-block.h (struct edge_def). Strengthen "r" within
1603 union edge_def_insns from rtx to rtx_insn *.
1604
1605 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1606 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1607 rtx_insn *.
1608 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1609 from rtx to rtx_insn *.
1610 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1611 rtx_insn *.
1612 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1613 (reg_used_on_edge): Likewise.
1614 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1615 (gt_pch_nx): New overload for rtx_insn *&.
1616 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1617 from rtx to rtx_insn *.
1618
1619 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1620
1621 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1622 from rtx to rtx_insn *.
1623 (BB_FOOTER): Replace function with access macro.
1624 (SET_BB_FOOTER): Delete.
1625
1626 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1627 with BB_FOOTER.
1628 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1629 (emit_barrier_after_bb): Likewise.
1630 (record_effective_endpoints): Likewise.
1631 (relink_block_chain): Likewise.
1632 (fixup_fallthru_exit_predecessor): Likewise.
1633 (cfg_layout_duplicate_bb): Likewise.
1634 (cfg_layout_split_block): Likewise.
1635 (cfg_layout_delete_block): Likewise.
1636 (cfg_layout_merge_blocks): Likewise.
1637 (BB_FOOTER): Delete function.
1638 (SET_BB_FOOTER): Delete function.
1639 * combine.c (update_cfg_for_uncondjump): Replace uses of
1640 SET_BB_FOOTER with BB_FOOTER.
1641
1642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1643
1644 * except.h (struct eh_landing_pad_d): Strengthen field
1645 "landing_pad" from rtx to rtx_code_label *.
1646
1647 * except.c (sjlj_emit_dispatch_table): Likewise for param
1648 "dispatch_label"
1649 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1650
1651 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1652
1653 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1654 first param from rtx to rtx_insn *.
1655 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1656 field "set_frame_ptr_insn".
1657 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1658 "csend" from rtx to rtx_code_label *.
1659 (xtensa_expand_atomic): Likewise for local "csloop".
1660 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1661 rtx_insn *.
1662 (xtensa_call_tls_desc): Likewise for return type and locals
1663 "call_insn", "insns".
1664 (xtensa_legitimize_tls_address): Likewise for local "insns".
1665 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1666
1667 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1668
1669 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1670 first param from rtx to rtx_insn *.
1671 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1672 "insn".
1673
1674 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1675
1676 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1677 Strengthen param 1 from rtx to rtx_insn *.
1678 (tilepro_output_cbranch): Likewise.
1679 (tilepro_adjust_insn_length): Likewise.
1680 (tilepro_final_prescan_insn): Likewise for sole param.
1681
1682 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1683 Likewise for local "last".
1684 (cbranch_predicted_p): Likewise for param "insn".
1685 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1686 (tilepro_output_cbranch_with_opcode): Likewise.
1687 (tilepro_output_cbranch): Likewise.
1688 (frame_emit_load): Likewise for return type and locals "seq",
1689 "insn".
1690 (emit_sp_adjust): Likewise for return type and local "insn".
1691 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1692 "insn".
1693 (tilepro_adjust_insn_length): Likewise for param "insn".
1694 (next_insn_to_bundle): Likewise for return type and params
1695 "r", "end".
1696 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1697 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1698 local "new_insns".
1699 (match_addli_pcrel): Likewise for param "insn".
1700 (replace_addli_pcrel): Likewise.
1701 (match_auli_pcrel): Likewise.
1702 (replace_auli_pcrel): Likewise.
1703 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1704 "next_insn".
1705 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1706 "queue", "next_queue", "prev".
1707 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1708 (tilepro_final_prescan_insn): Likewise for param "insn".
1709
1710 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1711
1712 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1713 Strengthen param 1 from rtx to rtx_insn *.
1714 (tilegx_output_cbranch): Likewise.
1715 (tilegx_adjust_insn_length): Likewise.
1716 (tilegx_final_prescan_insn): Likewise for sole param.
1717
1718 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1719 or local "last".
1720 (cbranch_predicted_p): Likewise for param "insn".
1721 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1722 (tilegx_output_cbranch_with_opcode): Likewise.
1723 (tilegx_output_cbranch): Likewise.
1724 (frame_emit_load): Likewise for return type.
1725 (set_frame_related_p): Likewise for locals "seq", "insn".
1726 (emit_sp_adjust): Likewise for return type, and for local "insn".
1727 Introduce local "pat" for use in place of "insn" where the latter
1728 isn't an instruction.
1729 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1730 from rtx to rtx_insn *.
1731 (tilegx_adjust_insn_length): Likewise for param "insn".
1732 (next_insn_to_bundle): Likewise for return type and params "r" and
1733 "end".
1734 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1735 "end".
1736 (replace_insns): Likewise for params "old_insn", "new_insns".
1737 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1738 "new_insns".
1739 (replace_mov_pcrel_step2): Likewise.
1740 (replace_mov_pcrel_step3): Likewise.
1741 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1742 "next_insn".
1743 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1744 "queue", "next_queue", "prev".
1745 (tilegx_output_mi_thunk): Likewise for local "insn".
1746 (tilegx_final_prescan_insn): Likewise for param "insn".
1747
1748 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1749
1750 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1751 rtx to rtx_insn *.
1752 (frame_emit_load): Likewise.
1753 (frame_emit_add_imm): Likewise, also for local "insn".
1754 (spu_expand_prologue): Likewise for local "insn".
1755 (struct spu_bb_info): Likewise for field "prop_jump".
1756 (emit_nop_for_insn): Likewise for param "insn" and local
1757 "new_insn".
1758 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1759 "hbr_insn".
1760 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1761 locals "hint", "insn".
1762 (get_branch_target): Likewise for param "branch".
1763 (insn_clobbers_hbr): Likewise for param "insn".
1764 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1765 locals "insn", "before_4", "before_16".
1766 (insert_hbrp): Likewise for local "insn".
1767 (spu_machine_dependent_reorg): Likewise for locals "branch",
1768 "insn", "next", "bbend".
1769 (uses_ls_unit): Likewise for param "insn".
1770 (get_pipe): Likewise.
1771 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1772 introducing a checked cast.
1773 (spu_sched_adjust_cost): Likewise for params "insn" and
1774 "dep_insn".
1775 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1776 (spu_sms_res_mii): Likewise.
1777
1778 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1779
1780 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1781 from rtx to rtx_insn *.
1782 (output_cbranch): Likewise for param 6.
1783 (output_return): Likewise for param 1.
1784 (output_sibcall): Likewise.
1785 (output_v8plus_shift): Likewise.
1786 (output_v8plus_mult): Likewise.
1787 (output_v9branch): Likewise for param 7.
1788 (output_cbcond): Likewise for param 3.
1789
1790 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1791 for local "insn".
1792 (sparc_legitimize_pic_address): Likewise.
1793 (sparc_emit_call_insn): Likewise.
1794 (emit_save_or_restore_regs): Likewise.
1795 (emit_window_save): Likewise for return type and local "insn".
1796 (sparc_expand_prologue): Likewise for local "insn".
1797 (sparc_flat_expand_prologue): Likewise.
1798 (output_return): Likewise for param "insn".
1799 (output_sibcall): Likewise for param "insn" and local "delay".
1800 (output_ubranch): Likewise for param "insn".
1801 (output_cbranch): Likewise.
1802 (output_cbcond): Likewise.
1803 (output_v9branch): Likewise.
1804 (output_v8plus_shift): Likewise.
1805 (sparc_output_mi_thunk): Likewise for local "insn".
1806 (get_some_local_dynamic_name): Likewise.
1807 (output_v8plus_mult): Likewise for param "insn".
1808
1809 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1810
1811 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1812 from rtx to rtx_insn *.
1813 (output_branchy_insn): Likewise for param 3.
1814 (output_far_jump): Likewise for param 1.
1815 (final_prescan_insn): Likewise.
1816 (sh_insn_length_adjustment): Likewise for sole param.
1817
1818 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1819 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1820 rtx_code_label *.
1821 (sh_emit_compare_and_set): Likewise for local "lab".
1822 (output_far_jump): Strengthen param "insn" and local "prev" from
1823 rtx to rtx_insn *.
1824 (output_branchy_insn): Likewise for param "insn" and local
1825 "next_insn".
1826 (output_ieee_ccmpeq): Likewise for param "insn".
1827 (struct label_ref_list_d): Strengthen field "label" from rtx to
1828 rtx_code_label *.
1829 (pool_node): Likewise.
1830 (pool_window_label): Likewise for this global.
1831 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1832 (dump_table): Strengthen params "start", "barrier" and local
1833 "scan" from rtx to rtx_insn *.
1834 (broken_move): Likewise for param "insn".
1835 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1836 Strengthen param "first_mova" from rtx * to rtx_insn **.
1837 (mova_p): Likewise for param "insn".
1838 (fixup_mova): Likewise for param "mova".
1839 (find_barrier): Likewise for return type, params "mova" and
1840 "from", and locals "barrier_before_mova", "found_barrier",
1841 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1842 "label" from rtx to rtx_code_label *.
1843 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1844 rtx to rtx_insn *.
1845 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1846 (split_branches): Likewise for param "first" and local "insn".
1847 (final_prescan_insn): Likewise for param "insn".
1848 (sequence_insn_p): Likewise for locals "prev", "next".
1849 (sh_insn_length_adjustment): Likewise for param "insn".
1850 (sh_can_redirect_branch): Likewise for local "insn".
1851 (find_r0_life_regions): Likewise for locals "end", "insn".
1852 (sh_output_mi_thunk): Likewise for local "insns".
1853
1854 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1855
1856 * config/score/score.c (score_output_mi_thunk): Strengthen local
1857 "insn" from rtx to rtx_insn *.
1858 (score_prologue): Likewise.
1859
1860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1861
1862 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1863 1 from rtx to rtx_insn *.
1864 (s390_emit_jump): Likewise for return type.
1865 (s390_emit_call): Likewise.
1866 (s390_load_got): Likewise.
1867
1868 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1869 variable.
1870 (s390_match_ccmode): Likewise for param "insn".
1871 (s390_emit_jump): Likewise for return type.
1872 (s390_split_branches): Likewise for local "label".
1873 (struct constant): Strengthen field "label" from rtx to
1874 rtx_code_label *.
1875 (struct constant_pool): Likewise for field "label". Strengthen
1876 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1877 rtx_insn *.
1878 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1879 insns.
1880 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1881 (s390_end_pool): Likewise.
1882 (s390_dump_pool): Likewise for local "insn".
1883 (s390_mainpool_start): Likewise.
1884 (s390_chunkify_start): Likewise.
1885 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1886 with insns. Strengthen locals "label", "jump", "barrier", "next",
1887 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1888 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1889 rtx_insn *.
1890 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1891 "jump", "label", "next_insn".
1892 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1893 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1894 "tbegin_insn".
1895 (s390_load_got): Likewise for return type and local "insns".
1896 (s390_save_gprs_to_fprs): Likewise for local "insn".
1897 (s390_restore_gprs_from_fprs): Likewise.
1898 (pass_s390_early_mach::execute): Likewise.
1899 (s390_emit_prologue): Likewise for local "insns".
1900 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1901 rtx_code_label *.
1902 (s390_emit_call): Strengthen return type and local "insn" from
1903 rtx to rtx_insn *.
1904 (s390_emit_tpf_eh_return): Likewise for local "insn".
1905 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1906 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1907 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1908 local "cur_insn".
1909 (s390_non_addr_reg_read_p): Likewise for param "insn".
1910 (find_cond_jump): Likewise for return type and param "insn".
1911 (s390_swap_cmp): Likewise for param "insn".
1912 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1913 "prev_insn", "next_insn".
1914 (s390_reorg): Likewise for locals "insn", "target".
1915 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1916 (s390_sched_variable_issue): For now, rename param "insn" to
1917 "uncast_insn", introducing a checked cast.
1918 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1919 insn.
1920 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1921 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1922
1923 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1924
1925 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1926 param from rtx to rtx_insn *.
1927 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1928
1929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1930
1931 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1932 4 from rtx to rtx_insn *.
1933 (rs6000_final_prescan_insn): Likewise for first param.
1934 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1935 local "insn".
1936 (rs6000_get_some_local_dynamic_name): Likewise.
1937 (output_cbranch): Likewise for param "insn".
1938 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1939 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1940 (rs6000_emit_allocate_stack): Likewise for local "insn".
1941 (load_cr_save): Likewise.
1942 (restore_saved_cr): Likewise.
1943 (restore_saved_lr): Likewise.
1944 (emit_cfa_restores): Likewise.
1945 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1946 "deleted_debug_label".
1947 (rs6000_output_mi_thunk): Likewise for local "insn".
1948 (rs6000_final_prescan_insn): Likewise for param "insn".
1949
1950 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1951
1952 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1953 Strengthen param "insn" from rtx to rtx_insn *.
1954 * config/picochip/picochip.c (picochip_current_prescan_insn):
1955 Likewise for this variable.
1956 (picochip_final_prescan_insn): Likewise for param "insn".
1957
1958 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1959
1960 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1961 from rtx to rtx_insn *.
1962 (pa_output_indirect_call): Likewise.
1963 (pa_adjust_insn_length): Likewise.
1964 (pa_attr_length_millicode_call): Likewise.
1965 (pa_attr_length_call): Likewise.
1966 (pa_attr_length_indirect_call): Likewise.
1967
1968 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1969 "insn".
1970 (pa_attr_length_millicode_call): Likewise.
1971 (pa_attr_length_call): Likewise.
1972 (pa_output_call): Likewise.
1973 (pa_attr_length_indirect_call): Likewise.
1974 (pa_output_indirect_call): Likewise.
1975
1976 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1977
1978 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1979 Strengthen first param from rtx to rtx_insn *.
1980 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1981 param "insn".
1982
1983 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1984
1985 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1986 type from rtx to rtx_insn *.
1987 (mips_expand_call): Likewise.
1988 (mips_adjust_insn_length): Likewise for first param.
1989 (mips_output_conditional_branch): Likewise.
1990 (mips_output_order_conditional_branch): Likewise.
1991 (mips_final_prescan_insn): Likewise.
1992
1993 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1994 rtx_insn * for the SEQUENCE case.
1995 (SEQ_END): Likewise.
1996 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1997 (mips_emit_call_insn): Likewise, also for local "insn".
1998 (mips16_gp_pseudo_reg): Likewise for local "scan".
1999 (mips16_build_call_stub): Likewise for return type and for local
2000 "insn". Introduce a new local "pattern" so that "insn" can indeed
2001 be an insn.
2002 (mips_expand_call): Strengthen return type and local "insn" from
2003 rtx to rtx_insn *.
2004 (mips_block_move_loop): Strengthen local "label" from rtx to
2005 rtx_code_label *.
2006 (mips_expand_synci_loop): Likewise for locals "label",
2007 "end_label".
2008 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2009 rtx_insn *.
2010 (mips16e_collect_argument_saves): Likewise for locals "insn",
2011 "next".
2012 (mips_find_gp_ref): Likewise for param of callback for "pred"
2013 param, and for local "insn".
2014 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2015 (mips_insn_has_flexible_gp_ref_p): Likewise.
2016 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2017 local "insn".
2018 (mips_epilogue_set_cfa): Likewise for local "insn".
2019 (mips_expand_epilogue): Likewise.
2020 (mips_adjust_insn_length): Likewise for param "insn".
2021 (mips_output_conditional_branch): Likewise.
2022 (mips_output_order_conditional_branch): Likewise.
2023 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2024 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2025 "falu2_turn_enabled_insn".
2026 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2027 "done_label" from rtx to rtx_code_label *.
2028 (struct mips16_constant): Likewise for field "label".
2029 (mips16_add_constant): Likewise for return type.
2030 (mips16_emit_constants_1): Strengthen return type and param "insn"
2031 from rtx to rtx_insn *.
2032 (mips16_emit_constants): Likewise for param "insn".
2033 (mips16_insn_length): Likewise.
2034 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2035 to rtx_code_label *.
2036 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2037 from rtx to rtx_insn *.
2038 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2039 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2040 (r10k_simplify_address): Strengthen param "insn" and local
2041 "def_insn" from rtx to rtx_insn *.
2042 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2043 rtx_insn *.
2044 (r10k_needs_protection_p_1): Update target type of cast of data
2045 from to rtx to rtx_insn *.
2046 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2047 rtx * to rtx_insn **.
2048 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2049 rtx_insn *.
2050 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2051 (mips_call_expr_from_insn): Likewise for param "insn".
2052 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2053 (mips_find_pic_call_symbol): Likewise for param "insn".
2054 (mips_annotate_pic_calls): Likewise for local "insn".
2055 (mips_sim_insn): Likewise for this variable.
2056 (struct mips_sim): Likewise for field "insn" within elements of
2057 last_set array.
2058 (mips_sim_wait_reg): Likewise for param "insn".
2059 (mips_sim_wait_regs): Likewise.
2060 (mips_sim_wait_units): Likewise.
2061 (mips_sim_wait_insn): Likewise.
2062 (mips_sim_issue_insn): Likewise.
2063 (mips_sim_finish_insn): Likewise.
2064 (mips_seq_time): Likewise for param "seq" and local "insn".
2065 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2066 locals "first", "second".
2067 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2068 "last", "last2", "next".
2069 (mips_avoid_hazard): Likewise for params "after", "insn".
2070 (mips_reorg_process_insns): Likewise for locals "insn",
2071 "last_insn", "subinsn", "next_insn".
2072 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2073 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2074 "jump_sequence".
2075 (mips_output_mi_thunk): Likewise for local "insn".
2076 (mips_final_prescan_insn): Likewise for param "insn".
2077
2078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2079
2080 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2081 Strengthen return type and local "insns" from rtx to rtx_insn *.
2082 (microblaze_legitimize_tls_address): Likewise for local "insns".
2083 (microblaze_block_move_loop): Strengthen local "label" from rtx
2084 to rtx_code_label *.
2085 (microblaze_expand_prologue): Strengthen two locals named "insn"
2086 from rtx to rtx_insn *.
2087 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2088 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2089 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2090 to rtx_code_label *.
2091
2092 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2093
2094 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2095 param from rtx to rtx_insn *.
2096 (mep_reuse_lo): Likewise for third param.
2097 (mep_use_post_modify_p): Likewise for first param.
2098 (mep_core_address_length): Likewise.
2099 (mep_cop_address_length): Likewise.
2100 (mep_final_prescan_insn): Likewise.
2101 (mep_store_data_bypass_p): Likewise for both params.
2102 (mep_mul_hilo_bypass_p): Likewise.
2103 (mep_ipipe_ldc_p): Likewise for param.
2104
2105 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2106 (mep_rewrite_mult): Likewise.
2107 (mep_rewrite_mulsi3): Likewise.
2108 (mep_rewrite_maddsi3): Likewise.
2109 (mep_reuse_lo_p_1): Likewise.
2110 (mep_reuse_lo_p): Likewise.
2111 (mep_frame_expr): Likewise.
2112 (mep_make_parallel): Likewise for both params.
2113 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2114 local "insn".
2115 (mep_use_post_modify_p): Likewise for param "insn".
2116 (mep_core_address_length): Likewise.
2117 (mep_cop_address_length): Likewise.
2118 (mep_reg_set_in_function): Likewise for local "insn".
2119 (mep_asm_without_operands_p): Likewise.
2120 (F): Likewise for return type and param "x".
2121 (add_constant): Likewise for local "insn".
2122 (maybe_dead_move): Likewise for return type and local "insn".
2123 (mep_expand_prologue): Likewise for local "insn".
2124 (mep_final_prescan_insn): Likewise for param "insn".
2125 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2126 "next", "follow", "x".
2127 (mep_insert_repeat_label_last): Likewise for return type, param
2128 "last_insn", and locals "next", "prev". Strengthen param "label"
2129 from rtx to rtx_code_label *.
2130 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2131 rtx_insn *.
2132 (struct mep_doloop_end): Likewise for fields "insn" and
2133 "fallthrough".
2134 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2135 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2136 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2137 rtx_insn *.
2138 (mep_invert_branch): Likewise for params "insn" and "after".
2139 (mep_reorg_erepeat): Likewise for param "insns" and locals
2140 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2141 "l" from rtx to rtx_code_label *.
2142 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2143 from rtx to rtx_insn *.
2144 (mep_reorg_addcombine): Likewise for param "insns" and locals
2145 "i", "n".
2146 (add_sp_insn_p): Likewise for param "insn".
2147 (mep_reorg_noframe): Likewise for param "insns" and locals
2148 "start_frame_insn", "end_frame_insn", "next".
2149 (mep_reorg): Likewise for local "insns".
2150 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2151 cast.
2152 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2153 (mep_mul_hilo_bypass_p): Likewise.
2154 (mep_ipipe_ldc_p): Likewise for param "insn".
2155 (mep_make_bundle): Likewise for return type, param "cop" and local
2156 "insn", splitting out the latter into a new local "seq" for when it
2157 is a SEQUENCE rather than an insn.
2158 (core_insn_p): Likewise for param "insn".
2159 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2160 "last", "first", "note", "prev", "core_insn".
2161
2162 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2163
2164 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2165 rtx to rtx_insn *.
2166 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2167 (m68k_final_prescan_insn): Likewise for first param.
2168
2169 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2170 (m68k_set_frame_related): Likewise for param "insn".
2171 (output_btst): Likewise for param "insn".
2172 (m68k_final_prescan_insn): Likewise.
2173 (m68k_move_to_reg): Likewise for local "insn".
2174 (m68k_call_tls_get_addr): Likewise for local "insns".
2175 (m68k_call_m68k_read_tp): Likewise.
2176 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2177 (m68k_output_mi_thunk): Likewise for local "insn".
2178
2179 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2180
2181 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2182 first param from rtx to rtx_insn *.
2183 (iq2000_adjust_insn_length): Likewise.
2184 (iq2000_output_conditional_branch): Likewise.
2185 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2186 "insn" and local "nop_insn".
2187 (iq2000_annotate_frame_insn): Likewise for param "insn".
2188 (iq2000_expand_prologue): Likewise for both locals "insn".
2189 (iq2000_adjust_insn_length): Likewise for param "insn".
2190 (iq2000_output_conditional_branch): Likewise.
2191
2192 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2193
2194 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2195 "insns" from rtx to rtx_insn *.
2196 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2197 (struct spill_fill_data): Likewise for field "init_after" and for
2198 elements of array field "prev_insn".
2199 (spill_restore_mem): Likewise for locals "insn", "first".
2200 (do_spill): Likewise for local "insn".
2201 (do_restore): Likewise.
2202 (ia64_expand_prologue): Likewise.
2203 (ia64_expand_epilogue): Likewise.
2204 (emit_insn_group_barriers): Likewise for locals "insn",
2205 "last_label".
2206 (emit_all_insn_group_barriers): Likewise for locals "insn",
2207 "last".
2208 (dfa_stop_insn): Likewise for this global.
2209 (dfa_pre_cycle_insn): Likewise.
2210 (ia64_nop): Likewise.
2211 (final_emit_insn_group_barriers): Likewise for locals "insn",
2212 "last".
2213 (emit_predicate_relation_info): Likewise for locals "head", "n",
2214 "insn", "b", "a".
2215 (ia64_reorg): Likewise for local "insn".
2216 (ia64_output_mi_thunk): Likewise.
2217 (expand_vec_perm_interleave_2): Likewise for local "seq".
2218
2219 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2220
2221 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2222 param 1 "insn" from rtx to rtx_insn *.
2223 (ix86_use_lea_for_mov): Likewise.
2224 (ix86_avoid_lea_for_addr): Likewise.
2225 (ix86_split_lea_for_addr): Likewise.
2226 (ix86_lea_for_add_ok): Likewise.
2227 (ix86_output_call_insn): Likewise.
2228
2229 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2230 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2231 (ix86_output_function_epilogue): Likewise for locals "insn",
2232 "deleted_debug_label".
2233 (legitimize_tls_address): Likewise for local "insn".
2234 (get_some_local_dynamic_name): Likewise.
2235 (increase_distance): Likewise for params "prev", "next".
2236 (distance_non_agu_define_in_bb): Likewise for params "insn",
2237 "start" and locals "prev", "next".
2238 (distance_non_agu_define): Likewise for param "insn".
2239 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2240 locals "next", "prev".
2241 (distance_agu_use): Likewise for param "insn".
2242 (ix86_lea_outperforms): Likewise.
2243 (ix86_ok_to_clobber_flags): Likewise.
2244 (ix86_avoid_lea_for_add): Likewise.
2245 (ix86_use_lea_for_mov): Likewise.
2246 (ix86_avoid_lea_for_addr): Likewise.
2247 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2248 (ix86_split_lea_for_addr): Likewise for param "insn".
2249 (ix86_lea_for_add_ok): Likewise for param "insn".
2250 (ix86_expand_carry_flag_compare): Likewise for local
2251 "compare_seq".
2252 (ix86_expand_int_movcc): Likewise.
2253 (ix86_output_call_insn): Likewise for param "insn".
2254 (ix86_output_call_insn): Likewise for local "i".
2255 (x86_output_mi_thunk): Introduce local "insn", using it in place
2256 of "tmp" when dealing with insns.
2257 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2258 "start".
2259 (ix86_pad_returns): Likewise for locals "ret", "prev".
2260 (ix86_count_insn_bb): Likewise for local "insn".
2261 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2262 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2263 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2264 (expand_vec_perm_interleave2): Likewise for local "seq".
2265 (expand_vec_perm_vperm2f128_vblend): Likewise.
2266 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2267 call to for_each_rtx with for_each_rtx_in_insn.
2268
2269 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2270
2271 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2272 "label" from rtx to rtx_code_label *.
2273 (ix86_expand_prologue): Likewise.
2274 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2275 "varargs_label".
2276 (ix86_split_idivmod): Likewise for locals "end_label" and
2277 "qimode_label".
2278 (ix86_expand_branch): Likewise for local "label2".
2279 (ix86_expand_aligntest): Likewise for return type and local "label".
2280 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2281 "top_label".
2282 (expand_movmem_epilogue): Likewise for the various locals named
2283 "label".
2284 (expand_setmem_epilogue): Likewise.
2285 (expand_small_movmem_or_setmem): Likewise for local "label".
2286 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2287 Strengthen param "done_label" from rtx * to rtx_code_label **.
2288 Strengthen locals "loop_label" and "label" from rtx to
2289 rtx_code_label *.
2290 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2291 Likewise for locals "loop_label", "label".
2292 (ix86_expand_set_or_movmem): Likewise for locals "label",
2293 "jump_around_label", "hot_label".
2294 (ix86_expand_strlensi_unroll_1): Likewise for locals
2295 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2296 "end_2_label".
2297 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2298 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2299 "label2", "jump_label".
2300 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2301 local "label".
2302 (ix86_expand_lfloorceil): Likewise for local "label".
2303 (ix86_expand_rint): Likewise.
2304 (ix86_expand_floorceildf_32): Likewise.
2305 (ix86_expand_floorceil): Likewise.
2306 (ix86_expand_rounddf_32): Likewise.
2307 (ix86_expand_trunc): Likewise.
2308 (ix86_expand_truncdf_32): Likewise.
2309 (ix86_expand_round): Likewise.
2310
2311 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2312
2313 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2314 first param from rtx to rtx_insn *.
2315 (h8300_insn_length_from_table): Likewise.
2316 * config/h8300/h8300.c (F): Likewise for return type and param
2317 "x".
2318 (Fpa): Add a checked cast to rtx_insn *.
2319 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2320 rtx_insn *.
2321 (final_prescan_insn): Likewise for param "insn".
2322 (h8300_binary_length): Likewise.
2323 (h8300_insn_length_from_table): Likewise.
2324
2325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2326
2327 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2328 Strengthen first param "insn" from rtx to rtx_insn *.
2329
2330 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2331 Likewise.
2332 (frame_insn): Likewise for return type. Introduce local "insn"
2333 for use in place of local "x" for use as an rtx_insn *.
2334 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2335 (epiphany_expand_prologue): Likewise for local "insn".
2336 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2337 * config/epiphany/resolve-sw-modes.c
2338 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2339 "seq".
2340
2341 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2342
2343 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2344 param from rtx to rtx_insn *.
2345 (c6x_final_prescan_insn): Likewise for first param.
2346
2347 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2348 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2349 (c6x_expand_compare): Strengthen local "insns" from rtx to
2350 rtx_insn *.
2351 (c6x_get_unit_specifier): Likewise for param "insn".
2352 (c6x_print_unit_specifier_field): Likewise.
2353 (c6x_final_prescan_insn): Likewise.
2354 (emit_add_sp_const): Likewise for local "insn".
2355 (c6x_expand_prologue): Likewise.
2356
2357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2358
2359 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2360 param 1 from rtx to rtx_insn *.
2361 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2362 the various locals named "insn".
2363 (expand_epilogue_reg_restore): Likewise.
2364 (frame_related_constant_load): Likewise.
2365 (add_to_reg): Likewise.
2366 (emit_link_insn): Likewise.
2367 (do_link): Likewise.
2368 (expand_interrupt_handler_prologue): Likewise.
2369 (branch_dest): Likewise for param "branch".
2370 (asm_conditional_branch): Likewise for param "insn".
2371 (gen_one_bundle): Likewise for elements of param "slot" and local
2372 "t".
2373 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2374 elements of local "slot".
2375 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2376 "queue", "next_queue", "prev".
2377 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2378 (add_sched_insns_for_speculation): Likewise for local "insn".
2379
2380 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2381
2382 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2383 from rtx to rtx_insn *.
2384 (output_movhi): Likewise.
2385 (output_movsisf): Likewise.
2386 (avr_out_tstsi): Likewise.
2387 (avr_out_tsthi): Likewise.
2388 (avr_out_tstpsi): Likewise.
2389 (avr_out_compare): Likewise.
2390 (avr_out_compare64): Likewise.
2391 (avr_out_movpsi): Likewise.
2392 (ashlqi3_out): Likewise.
2393 (ashlhi3_out): Likewise.
2394 (ashlsi3_out): Likewise.
2395 (ashrqi3_out): Likewise.
2396 (ashrhi3_out): Likewise.
2397 (ashrsi3_out): Likewise.
2398 (lshrqi3_out): Likewise.
2399 (lshrhi3_out): Likewise.
2400 (lshrsi3_out): Likewise.
2401 (avr_out_ashlpsi3): Likewise.
2402 (avr_out_ashrpsi3): Likewise.
2403 (avr_out_lshrpsi3): Likewise.
2404 (avr_out_fract): Likewise.
2405 (avr_out_sbxx_branch): Likewise.
2406 (avr_out_round): Likewise.
2407 (avr_out_xload): Likewise.
2408 (avr_out_movmem): Likewise.
2409 (adjust_insn_length): Likewise.
2410 (avr_out_lpm): Likewise.
2411 (reg_unused_after): Likewise.
2412 (_reg_unused_after): Likewise.
2413 (avr_jump_mode): Likewise for second param.
2414 (jump_over_one_insn): Likewise for first param.
2415 (avr_final_prescan_insn): Likewise.
2416 (out_shift_with_cnt): Likewise for second param.
2417
2418 * config/avr/avr.c (get_sequence_length): Likewise for param
2419 "insns" and local "insn".
2420 (emit_push_byte): Likewise for local "insn".
2421 (emit_push_sfr): Likewise.
2422 (avr_prologue_setup_frame): Likewise for locals "insn",
2423 "fp_plus_insns", "sp_plus_insns".
2424 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2425 "sp_plus_insns".
2426 (avr_jump_mode): Likewise for param "insn".
2427 (avr_final_prescan_insn): Likewise.
2428 (avr_find_unused_d_reg): Likewise.
2429 (avr_out_lpm_no_lpmx): Likewise.
2430 (avr_out_lpm): Likewise.
2431 (avr_out_xload): Likewise.
2432 (output_movqi): Likewise.
2433 (output_movhi): Likewise.
2434 (out_movqi_r_mr): Likewise.
2435 (out_movhi_r_mr): Likewise.
2436 (out_movsi_r_mr): Likewise.
2437 (out_movsi_mr_r): Likewise.
2438 (output_movsisf): Likewise.
2439 (avr_out_load_psi): Likewise.
2440 (avr_out_store_psi): Likewise.
2441 (avr_out_movpsi): Likewise.
2442 (out_movqi_mr_r): Likewise.
2443 (avr_out_movhi_mr_r_xmega): Likewise.
2444 (out_movhi_mr_r): Likewise.
2445 (compare_condition): Likewise for param "insn" and local "next".
2446 (compare_sign_p): Likewise for param "insn".
2447 (compare_diff_p): Likewise.
2448 (compare_eq_p): Likewise.
2449 (avr_out_compare): Likewise.
2450 (avr_out_compare64): Likewise.
2451 (avr_out_tsthi): Likewise.
2452 (avr_out_tstpsi): Likewise.
2453 (avr_out_tstsi): Likewise.
2454 (out_shift_with_cnt): Likewise.
2455 (ashlqi3_out): Likewise.
2456 (ashlhi3_out): Likewise.
2457 (avr_out_ashlpsi3): Likewise.
2458 (ashlsi3_out): Likewise.
2459 (ashrqi3_out): Likewise.
2460 (ashrhi3_out): Likewise.
2461 (avr_out_ashrpsi3): Likewise.
2462 (ashrsi3_out): Likewise.
2463 (lshrqi3_out): Likewise.
2464 (lshrhi3_out): Likewise.
2465 (avr_out_lshrpsi3): Likewise.
2466 (lshrsi3_out): Likewise.
2467 (avr_out_fract): Likewise.
2468 (avr_out_round): Likewise.
2469 (avr_adjust_insn_length): Likewise.
2470 (reg_unused_after): Likewise.
2471 (_reg_unused_after): Likewise.
2472 (avr_compare_pattern): Likewise.
2473 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2474 and locals "branch1", "branch2", "insn2", "jump".
2475 (avr_reorg): Likewise for local "insn".
2476 (avr_2word_insn_p): Likewise for param "insn".
2477 (jump_over_one_insn_p): Likewise.
2478 (avr_out_sbxx_branch): Likewise.
2479 (avr_out_movmem): Likewise.
2480
2481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2482
2483 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2484 param from rtx to rtx_insn *.
2485 (thumb1_final_prescan_insn): Likewise.
2486 (thumb2_final_prescan_insn): Likewise.
2487
2488 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2489 rtx to rtx_insn *.
2490 (struct minipool_node): Likewise for field "insn".
2491 (dump_minipool): Likewise for param "scan".
2492 (create_fix_barrier): Likewise for local "from". Strengthen local
2493 "label" from rtx to rtx_code_label *.
2494 (push_minipool_barrier): Strengthen param "insn" from rtx to
2495 rtx_insn *.
2496 (push_minipool_fix): Likewise.
2497 (note_invalid_constants): Likewise.
2498 (thumb2_reorg): Likewise for local "insn".
2499 (arm_reorg): Likewise.
2500 (thumb2_final_prescan_insn): Likewise for param
2501 "insn" and local "first_insn".
2502 (arm_final_prescan_insn): Likewise for param "insn" and locals
2503 "start_insn", "this_insn".
2504 (arm_debugger_arg_offset): Likewise for param "insn".
2505 (thumb1_emit_multi_reg_push): Likewise for return type and local
2506 "insn".
2507 (thumb1_final_prescan_insn): Likewise for param "insn".
2508 (thumb_far_jump_used_p): Likewise for local "insn".
2509 (thumb1_expand_prologue): Likewise.
2510 (arm_expand_epilogue_apcs_frame): Likewise.
2511 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2512 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2513 from rtx to rtx_code_label *.
2514 (arm_split_atomic_op): Likewise for local "label".
2515 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2516
2517 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2518
2519 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2520 first param from rtx to rtx_insn *.
2521 (arc_verify_short): Likewise.
2522 (arc_short_long): Likewise.
2523 (arc_need_delay): Likewise.
2524
2525 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2526 "target_insn".
2527 (arc_ccfsm_advance): Likewise for param "insn" and locals
2528 "start_insn", "this_insn".
2529 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2530 (arc_ccfsm_post_advance): Likewise for param "insn".
2531 (arc_next_active_insn): Likewise for return type and param "insn".
2532 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2533 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2534 (output_short_suffix): Likewise for local "insn".
2535 (arc_final_prescan_insn): Likewise for param "insn". Remove
2536 now-redundant checked cast.
2537 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2538 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2539 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2540 for use where lc_set became an insn.
2541 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2542 rtx to rtx_insn *.
2543 (arc_get_insn_variants): Likewise for local "prev".
2544 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2545 "next".
2546 (arc_predicate_delay_insns): Likewise for local "insn".
2547 (arc_pad_return): Likewise for local "prev". For now, add a
2548 checked cast when extracting the insn from "final_sequence".
2549 (arc_short_long): Likewise for param "insn".
2550 (arc_need_delay): Likewise for param "insn" and local "next".
2551 (arc_label_align): Likewise for locals "prev", "next".
2552
2553 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2554
2555 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2556 "insn" from rtx to rtx_insn *.
2557 (alpha_gp_save_rtx): Likewise for local "seq".
2558 (alpha_instantiate_decls): Likewise for local "top".
2559 (get_some_local_dynamic_name): Likewise for local "insn".
2560 (alpha_does_function_need_gp): Likewise.
2561 (set_frame_related_p): Likewise for return type and for locals
2562 "seq" and "insn".
2563 (emit_frame_store_1): Likewise for local "insn".
2564 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2565 (alpha_end_function): Likewise for local "insn".
2566 (alpha_output_mi_thunk_osf): Likewise.
2567 (alphaev4_insn_pipe): Likewise for param "insn".
2568 (alphaev5_insn_pipe): Likewise.
2569 (alphaev4_next_group): Likewise for return type and param 1
2570 "insn".
2571 (alphaev5_next_group): Likewise.
2572 (alpha_align_insns_1): Likewise for return type and param 1 of
2573 callback param "next_group", and for locals "i", "next", "prev",
2574 "where", "where2", "insn".
2575
2576 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2577
2578 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2579 rather than modifying the stmt.
2580
2581 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2582
2583 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2584 cgraph_state conversion.
2585
2586 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2587
2588 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2589 Strengthen local "insns" from rtx to rtx_insn *.
2590 (aarch64_set_frame_expr): Likewise for local "insn".
2591 (aarch64_save_or_restore_fprs): Likewise.
2592 (aarch64_save_or_restore_callee_save_registers): Likewise.
2593 (aarch64_expand_prologue): Likewise.
2594 (aarch64_expand_epilogue): Likewise.
2595 (aarch64_output_mi_thunk): Likewise.
2596 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2597 "label2" from rtx to rtx_code_label *.
2598 (aarch64_split_atomic_op): Likewise for local "label".
2599
2600 2014-08-25 Martin Liska <mliska@suse.cz>
2601
2602 * cgraph.h (symtab_node):
2603 (bool needed_p (void)): created from decide_is_symbol_needed
2604 (bool referred_to_p (void)): created from referred_to_p
2605 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2606 * cgraph.h (cgraph_node):
2607 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2608 (void expand (void)): created from expand_function
2609 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2610 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2611 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2612 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2613 * cgraph.h (varpool_node):
2614 (static void add (tree decl): created from varpool_add_new_variable
2615 * cgraph.h (cgraph_edge):
2616 void remove (void);
2617 (void remove_caller (void)): created from cgraph_edge_remove_caller
2618 (void remove_callee (void)): created from cgraph_edge_remove_callee
2619 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2620 created from cgraph_set_call_stmt
2621 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2622 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2623 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2624 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2625 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2626 created from cgraph_speculative_call_info
2627 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2628 int freq_scale, bool update_original)): created from cgraph_clone_edge
2629 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2630 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2631 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2632 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2633 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2634 (static void rebuild_references (void)): created from cgraph_rebuild_references
2635 * cgraph.h (symbol_table):
2636 (create_reference): renamed from add_reference
2637 (maybe_create_reference): renamed from maybe_add_reference
2638 (void register_symbol (symtab_node *node)): new function
2639 (void clear_asm_symbols (void)): new function
2640 (void unregister (symtab_node *node)): new function
2641 (void release_symbol (cgraph_node *node, int uid)): new function
2642 (cgraph_node * allocate_cgraph_symbol (void)): new function
2643 (void initialize (void)): created from cgraph_init
2644 (symtab_node *first_symbol (void)):new function
2645 (asm_node *first_asm_symbol (void)):new function
2646 (symtab_node *first_defined_symbol (void)):new function
2647 (varpool_node *first_variable (void)):new function
2648 (varpool_node *next_variable (varpool_node *node)):new function
2649 (varpool_node *first_static_initializer (void)):new function
2650 (varpool_node *next_static_initializer (varpool_node *node)):new function
2651 (varpool_node *first_defined_variable (void)):new function
2652 (varpool_node *next_defined_variable (varpool_node *node)):new function
2653 (cgraph_node *first_defined_function (void)):new function
2654 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2655 (cgraph_node *first_function (void)):new function
2656 (cgraph_node *next_function (cgraph_node *node)):new function
2657 (cgraph_node *first_function_with_gimple_body (void)):new function
2658 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2659 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2660 created from symtab_remove_unreachable_nodes
2661 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2662 (void process_new_functions (void)): created from cgraph_process_new_functions
2663 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2664 (bool output_variables (void)): created from varpool_node::output_variables
2665 (void output_asm_statements (void)): created from output_asm_statements
2666 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2667 (void compile (void)): created from compile
2668 (void output_weakrefs (void)): created from output_weakrefs
2669 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2670 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2671 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2672 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2673 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2674 created from cgraph_next_function_with_gimple_body
2675 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2676 created from cgraph_remove_edge_removal_hook
2677 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2678 created from cgraph_add_node_removal_hook
2679 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2680 created from cgraph_remove_node_removal_hook
2681 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2682 created from varpool_add_node_removal_hook
2683 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2684 created from varpool_remove_node_removal_hook
2685 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2686 created from cgraph_add_function_insertion_hook
2687 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2688 created from cgraph_remove_function_insertion_hook
2689 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2690 created from varpool_add_variable_insertion_hook
2691 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2692 created from varpool_remove_variable_insertion_hook
2693 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2694 created from cgraph_add_edge_duplication_hook
2695 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2696 created from cgraph_remove_edge_duplication_hook
2697 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2698 created from cgraph_add_node_duplication_hook
2699 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2700 created from cgraph_remove_node_duplication_hook
2701 (void call_edge_removal_hooks (cgraph_edge *e)):
2702 created from cgraph_call_edge_removal_hooks
2703 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2704 created from call_function_insertion_hooks
2705 (void call_cgraph_removal_hooks (cgraph_node *node)):
2706 created from cgraph_call_node_removal_hooks
2707 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2708 created from cgraph_node::call_duplication_hooks
2709 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2710 created from cgraph_call_edge_duplication_hooks
2711 (void call_varpool_removal_hooks (varpool_node *node)):
2712 created from varpool_call_node_removal_hooks
2713 (void call_varpool_insertion_hooks (varpool_node *node)):
2714 created from varpool_call_variable_insertion_hooks
2715 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2716 created from insert_to_assembler_name_hash
2717 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2718 created from unlink_from_assembler_name_hash
2719 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2720 created from symtab_prevail_in_asm_name_hash
2721 (void symtab_initialize_asm_name_hash (void)):
2722 created from symtab_initialize_asm_name_hash
2723 (void change_decl_assembler_name (tree decl, tree name)):
2724 created from change_decl_assembler_name
2725 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2726 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2727 created from decl_assembler_name_hash
2728 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2729 created from decl_assembler_name_equal
2730 (static hashval_t hash_node_by_assembler_name (const void *p)):
2731 created from hash_node_by_assembler_name
2732 (static int eq_assembler_name (const void *p1, const void *p2)):
2733 created from eq_assembler_name
2734
2735 2014-08-25 Marek Polacek <polacek@redhat.com>
2736
2737 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2738
2739 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2740
2741 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2742 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2743 SWI1248_AVX512BW mode iterator.
2744
2745 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2746
2747 PR target/62111
2748 * config/sh/predicates.md (general_extend_operand): Disable
2749 TRUNCATE before reload completes.
2750
2751 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2752
2753 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2754
2755 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2756
2757 PR target/61996
2758 * config/sh/sh.opt (musermode): Allow negative form.
2759 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2760 targets that don't support it.
2761 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2762 Document -mno-usermode option.
2763
2764 2014-08-24 Kito Cheng <kito@0xlab.org>
2765
2766 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2767 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2768 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2769 * doc/tm.texi: Regenerate.
2770
2771 2014-08-24 Kito Cheng <kito@0xlab.org>
2772
2773 * ira.c: Fix typo in comment.
2774
2775 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2776
2777 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2778 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2779
2780 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2781
2782 PR target/62038
2783 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2784 last_address when the current function is a thunk.
2785 (pa_asm_output_mi_thunk): When we don't have named sections or they
2786 are not being used, check that thunk can reach the stub table with a
2787 short branch.
2788
2789 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2790
2791 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2792 rtx_insn *.
2793 (pass_web::execute): Likewise for local "insn".
2794
2795 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2796
2797 * var-tracking.c (struct micro_operation_def): Strengthen field
2798 "insn" from rtx to rtx_insn *.
2799 (struct emit_note_data_def): Likewise.
2800 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2801 (vt_stack_adjustments): Likewise for local "insn".
2802 (adjust_insn): Likewise for param "insn".
2803 (val_store): Likewise.
2804 (val_resolve): Likewise.
2805 (struct count_use_info): Likewise for field "insn".
2806 (log_op_type): Likewise for param "insn".
2807 (reverse_op): Likewise.
2808 (prepare_call_arguments): Likewise.
2809 (add_with_sets): The initial param takes an insn, but we can't
2810 yet strengthen it from rtx to rtx_insn * since it's used as a
2811 cselib_record_sets_hook callback. For now rename initial param
2812 from "insn" to "uncast_insn", and introduce a local "insn" of
2813 the stronger rtx_insn * type, with a checked cast.
2814 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2815 rtx_insn *.
2816 (emit_note_insn_var_location): Likewise.
2817 (emit_notes_for_changes): Likewise.
2818 (emit_notes_for_differences): Likewise.
2819 (next_non_note_insn_var_location): Likewise for return type and
2820 for param "insn".
2821 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2822 (vt_initialize): Likewise for local "insn".
2823 (delete_debug_insns): Likewise for locals "insn" and "next".
2824
2825 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2826
2827 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2828 rtx_insn *.
2829 (mark_constant_pool): Likewise for local "insn".
2830
2831 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2832
2833 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2834 rtx to rtx_insn *.
2835 (dead_debug_promote_uses): Likewise.
2836 (dead_debug_insert_temp): Likewise.
2837
2838 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2839
2840 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2841 from const_rtx to const rtx_insn *.
2842 (store_killed_after): Likewise. Strengthen locals "last", "act"
2843 from rtx to rtx_insn *.
2844 (store_killed_before): Strengthen param "insn" from const_rtx to
2845 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2846 (find_moveable_store): Strengthen param "insn" from rtx to
2847 rtx_insn *.
2848 (compute_store_table): Likewise for local "insn".
2849 (insert_insn_start_basic_block): Likewise for param "insn" and
2850 locals "prev", "before", "insn".
2851 (insert_store): For now, add a checked cast to rtx_insn * on the
2852 result of gen_move_insn.
2853 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2854 to rtx_insn *.
2855 (replace_store_insn): Likewise. For now, add a checked cast to
2856 rtx_insn * on the result of gen_move_insn.
2857
2858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2859
2860 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2861 rtx_insn *.
2862 (expand_sjlj_dispatch_table): Likewise.
2863
2864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2865
2866 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2867 "insn" from rtx to rtx_insn *.
2868
2869 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2870
2871 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2872 "insn" from rtx to rtx_insn *.
2873 (dup_block_and_redirect): Likewise for param 3 "before".
2874
2875 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2876 from rtx to rtx_insn *.
2877 (move_insn_for_shrink_wrap): Likewise.
2878 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2879 (dup_block_and_redirect): Likewise for param "before" and local
2880 "insn".
2881 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2882 "end".
2883 (convert_to_simple_return): Likewise for local "start".
2884
2885 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2886 Strengthen local "insn" from rtx to rtx_insn *, for use when
2887 invoking requires_stack_frame_p.
2888
2889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2890
2891 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2892 rtx_insn *.
2893 (speculate_expr): Likewise for locals "orig_insn_rtx",
2894 "spec_insn_rtx".
2895 (eq_transformed_insns): Likewise for locals "i1", "i2".
2896 (check_for_new_jump): Likewise for return type and local "end".
2897 (find_new_jump): Likewise for return type and local "jump".
2898 (sel_split_edge): Likewise for local "jump".
2899 (sel_create_recovery_block): Likewise.
2900 (sel_redirect_edge_and_branch_force): Likewise.
2901 (sel_redirect_edge_and_branch): Likewise.
2902
2903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2904
2905 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2906 "new_insn" from rtx to rtx_insn *.
2907 (create_insn_rtx_with_rhs): Likewise for return type and for local
2908 "insn_rtx".
2909 (create_insn_rtx_with_lhs): Likewise.
2910 (create_speculation_check): Likewise for local "insn_rtx".
2911 (implicit_clobber_conflict_p): Likewise for local "insn".
2912 (get_expr_cost): Likewise.
2913 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2914 (move_cond_jump): Likewise for locals "next", "prev", "link",
2915 "head", "from", "to".
2916
2917 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2918
2919 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2920 "next" from rtx to rtx_insn *.
2921 (find_conditional_protection): Likewise for local "next".
2922 (is_conditionally_protected): Likewise for local "insn1".
2923 (is_pfree): Likewise for locals "insn1", "insn2".
2924
2925 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2926
2927 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2928 from rtx to rtx_insn *.
2929
2930 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2931 locals "insn1", "insn2" from rtx to rtx_insn *.
2932 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2933 locals "insn", "prev", "last_jump", "next_tail".
2934 (schedule_ebb): Likewise for params "head", "tail".
2935 (schedule_ebbs): Likewise for locals "tail", "head".
2936
2937 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2938 to rtx_insn on "last_insn" in one of the invocations of
2939 schedule_ebb.
2940
2941 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2942
2943 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2944 "elem", "insn" from rtx to rtx_insn *.
2945 (change_spec_dep_to_hard): Likewise.
2946 (get_back_and_forw_lists): Likewise for local "con".
2947 (sd_add_dep): Likewise for locals "elem", "insn".
2948 (sd_resolve_dep): Likewise for locals "pro", "con".
2949 (sd_unresolve_dep): Likewise.
2950 (sd_delete_dep): Likewise.
2951 (chain_to_prev_insn): Likewise for local "pro".
2952 (find_inc): Likewise for locals "pro", "con".
2953
2954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2955
2956 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2957 to rtx_insn *.
2958 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2959 const rtx_insn *.
2960 (modified_between_p): Strengthen local "insn" from rtx to
2961 rtx_insn *.
2962 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2963 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2964 const rtx_insn *.
2965
2966 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2967
2968 * resource.c (next_insn_no_annul): Strengthen local "next" from
2969 rtx to rtx_insn *.
2970 (mark_referenced_resources): Likewise for local "insn".
2971
2972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2973
2974 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2975 to rtx_insn *.
2976 (find_reloads): Likewise for param 1.
2977 (subst_reloads): Likewise for sole param.
2978 (find_equiv_reg): Likwise for param 2.
2979 (regno_clobbered_p): Likwise for param 2.
2980 (reload): Likewise for param 1.
2981
2982 * caller-save.c (save_call_clobbered_regs): Strengthen local
2983 "insn" from rtx to rtx_insn *.
2984 (insert_one_insn): Likewise for local "insn".
2985
2986 * reload.c (this_insn): Likewise for this global.
2987 (find_reloads): Likewise for param "insn".
2988 (find_reloads_toplev): Likewise.
2989 (find_reloads_address): Likewise.
2990 (subst_reg_equivs): Likewise.
2991 (update_auto_inc_notes): Likewise.
2992 (find_reloads_address_1): Likewise.
2993 (find_reloads_subreg_address): Likewise.
2994 (subst_reloads): Likewise.
2995 (find_equiv_reg): Likewise, also for local "p".
2996 (regno_clobbered_p): Likewise for param "insn".
2997
2998 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2999 array.
3000 (spill_reg_store): Likewise for the elements of this array.
3001 (remove_init_insns): Likewise for local "equiv_insn".
3002 (will_delete_init_insn_p): Likewise for param "insn".
3003 (reload): Likewise for param ""first" and local "insn".
3004 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3005 rtx_insn *.
3006 (calculate_elim_costs_all_insns): Likewise.
3007 (delete_caller_save_insns): Likewise.
3008 (spill_failure): Likewise for param "insn".
3009 (delete_dead_insn): Likewise.
3010 (set_label_offsets): Likewise.
3011 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3012 "prev_insn".
3013 (elimination_costs_in_insn): Likewise for param "insn".
3014 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3015 when referring to an insn.
3016 (set_initial_label_offsets): Likewise.
3017 (set_offsets_for_label): Strengthen param "insn" from rtx to
3018 rtx_insn *.
3019 (init_eliminable_invariants): Likewise for param "first" and local
3020 "insn".
3021 (fixup_eh_region_note): Likewise for param "insn".
3022 (reload_as_needed): Likewise for locals "prev", "insn",
3023 "old_next", "old_prev", "next".
3024 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3025 "last".
3026 (reload_inheritance_insn): Strengthen elements of this array from
3027 rtx to rtx_insn *.
3028 (failed_reload): Likewise for param "insn".
3029 (choose_reload_regs): Likewise for local "insn". Replace use of
3030 NULL_RTX with NULL when referring to an insn.
3031 (input_reload_insns): Strengthen elements of this array from rtx
3032 to rtx_insn *.
3033 (other_input_address_reload_insns): Likewise for this global.
3034 (other_input_reload_insns): Likewise for this global.
3035 (input_address_reload_insns): Likwise for the elements of this
3036 array.
3037 (inpaddr_address_reload_insns): Likwise for the elements of this
3038 array.
3039 (output_reload_insns): Likewise for the elements of this array.
3040 (output_address_reload_insns): Likewise for the elements of this
3041 array.
3042 (outaddr_address_reload_insns): Likewise for the elements of this
3043 array.
3044 (operand_reload_insns): Likewise for this global.
3045 (other_operand_reload_insns): Likewise for this global.
3046 (other_output_reload_insns): Likewise for the elements of this
3047 array.
3048 (new_spill_reg_store): Likewise for the elements of this
3049 array.
3050 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3051 Strengthen local "where" from rtx * to rtx_insn **.
3052 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3053 from rtx to rtx_insn *.
3054 (do_input_reload): Likewise for local "insn".
3055 (do_output_reload): Likewise for local "insn".
3056 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3057 (emit_insn_if_valid_for_reload): Likewise for return type and local
3058 "last". Add checked cast to rtx_insn when returning "insn" since
3059 this has been through emit_insn.
3060 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3061 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3062 returning "insn" since it's been through
3063 emit_insn_if_valid_for_reload at this point.
3064 (delete_output_reload): Strengthen param "insn" and locals
3065 "output_reload_insn", "i2" from rtx to rtx_insn *.
3066 (delete_address_reloads): Likewise for params "dead_insn",
3067 "current_insn" and locals "prev", "next".
3068 (delete_address_reloads_1): Likewise for params "dead_insn",
3069 "current_insn" and locals "prev", "i2".
3070 (inc_for_reload): Likewise for locals "last", "add_insn".
3071 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3072 rtx_insn *.
3073
3074 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3075 param of this duplicate of the prototype from reload.h
3076
3077 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3078
3079 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3080 rtx to rtx_insn *.
3081 (regstat_bb_compute_calls_crossed): Likewise.
3082
3083 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3084
3085 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3086 to rtx_insn *.
3087 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3088 with an insn.
3089 (regrename_analyze): Strengthen local "insn" from rtx to
3090 rtx_insn *.
3091 (scan_rtx_reg): Likewise for param "insn".
3092 (scan_rtx_address): Likewise.
3093 (scan_rtx): Likewise.
3094 (restore_operands): Likewise.
3095 (record_out_operands): Likewise.
3096 (build_def_use): Likewise for local "insn". Replace use of
3097 NULL_RTX with NULL when dealing with an insn.
3098
3099 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3100
3101 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3102 * reginfo.c (reg_scan): Likewise, also for local "insn".
3103 (reg_scan_mark_refs): Likewise for param "insn".
3104 (init_subregs_of_mode): Likewise for local "insn".
3105
3106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3107
3108 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3109 "insn" from rtx to rtx_insn *.
3110 (replace_oldest_value_reg): Likewise for param "insn".
3111 (replace_oldest_value_addr): Likewise.
3112 (replace_oldest_value_mem): Likewise.
3113 (apply_debug_insn_changes): Likewise for local "last_insn".
3114 (copyprop_hardreg_forward_1): Likewise for local "insn".
3115
3116 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3117
3118 * reg-stack.c (next_flags_user): Strengthen return type and param
3119 "insn" from rtx to rtx_insn *.
3120 (straighten_stack): Likewise for param "insn".
3121 (check_asm_stack_operands): Likewise.
3122 (remove_regno_note): Likewise.
3123 (emit_pop_insn): Likewise for return type, param "insn", local
3124 "pop_insn".
3125 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3126 "limit" from rtx to rtx_insn *.
3127 (swap_to_top): Likewise for param "insn".
3128 (move_for_stack_reg): Likewise.
3129 (move_nan_for_stack_reg): Likewise.
3130 (swap_rtx_condition): Likewise.
3131 (compare_for_stack_reg): Likewise.
3132 (subst_all_stack_regs_in_debug_insn): Likewise.
3133 (subst_stack_regs_pat): Likewise, and local "insn2".
3134 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3135 rtx_insn *.
3136 (subst_stack_regs): Likewise.
3137 (change_stack): Likewise.
3138 (convert_regs_1): Likewise for locals "insn", "next".
3139
3140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3141
3142 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3143 rtx_insn *.
3144 (combine_set_extension): Likewise for param "curr_insn".
3145 (transform_ifelse): Likewise for param "def_insn".
3146 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3147 from vec<rtx> * to vec<rtx_insn *> *.
3148 (is_cond_copy_insn): Likewise for param "insn".
3149 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3150 to vec<rtx_insn *>.
3151 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3152 local "def_insn" from rtx to rtx_insn *.
3153 (get_sub_rtx): Likewise for param "def_insn".
3154 (merge_def_and_ext): Likewise.
3155 (combine_reaching_defs): Likewise.
3156 (add_removable_extension): Likewise for param "insn".
3157 (find_removable_extensions): Likewise for local "insn".
3158 (find_and_remove_re): Likewise for locals "curr_insn" and
3159 "def_insn". Strengthen locals "reinsn_del_list" and
3160 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3161
3162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3163
3164 * recog.c (split_insn): Strengthen param "insn" and locals
3165 "first", "last" from rtx to rtx_insn *.
3166 (split_all_insns): Likewise for locals "insn", "next".
3167 (split_all_insns_noflow): Likewise.
3168
3169 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3170
3171 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3172 const rtx_insn *.
3173 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3174 (debug_rtx_find): Likewise for param 1 "x".
3175
3176 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3177 const_rtx to const rtx_insn *. Likewise for local "insn".
3178 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3179 (debug_rtx_find): Likewise for param 1 "x".
3180 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3181 from const_rtx to const rtx_insn * within the appropriate cases of
3182 the switch statement.
3183
3184 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3185 Strengthen local "insns" from rtx to rtx_insn * since this is
3186 passed to a call to debug_rtx_list.
3187
3188 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3189
3190 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3191 to rtx_insn *.
3192
3193 * function.c (stack_protect_epilogue): Add checked cast to
3194 rtx_insn for now when invoking predict_insn_def.
3195
3196 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3197 rtx_insn *.
3198 (predict_insn_def): Likewise.
3199 (rtl_predict_edge): Likewise for local "last_insn".
3200 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3201 const rtx_insn *.
3202 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3203 to rtx_insn *.
3204 (bb_estimate_probability_locally): Likewise for local "last_insn".
3205 (expensive_function_p): Likewise for local "insn".
3206
3207 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3208 local "jmp", since this is used when invoking predict_insn_def.
3209
3210 2014-08-22 Marek Polacek <polacek@redhat.com>
3211
3212 PR c++/62199
3213 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3214
3215 2014-08-22 Marek Polacek <polacek@redhat.com>
3216
3217 PR c/61271
3218 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3219 a comparison in parens.
3220 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3221 in parens.
3222
3223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3224
3225 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3226 rtx_insn *.
3227
3228 * cprop.c (fis_get_condition): Likewise.
3229
3230 * postreload.c (reload_cse_regs): Likewise for param "first".
3231 (reload_cse_simplify): Likewise for param "insn".
3232 (reload_cse_regs_1): Likewise for local "insn".
3233 (reload_cse_simplify_set): Likewise for param "insn".
3234 (reload_cse_simplify_operands): Likewise.
3235 (struct reg_use): Likewise for field "insn".
3236 (reload_combine_purge_insn_uses): Likewise for param "insn".
3237 (fixup_debug_insns): Likewise for params "from", "to" and local
3238 "insn".
3239 (try_replace_in_use): Likewise for local "use_insn".
3240 (reload_combine_recognize_const_pattern): Likewise for param
3241 "insn" and locals "add_moved_after_insn", "use_insn".
3242 (reload_combine_recognize_pattern): Likewise for param "insn" and
3243 local "prev".
3244 (reload_combine): Likewise for locals "insn", "prev".
3245 (reload_combine_note_use): Likewise for param "insn".
3246 (move2add_use_add2_insn): Likewise.
3247 (move2add_use_add3_insn): Likewise.
3248 (reload_cse_move2add): Likewise, also for local "next".
3249 (move2add_note_store): Likewise for local "insn".
3250
3251 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3252
3253 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3254 rtx to rtx_insn *.
3255 (struct unoccr): Likewise.
3256 (struct modifies_mem): Likewise.
3257 (alloc_mem): Likewise for local "insn".
3258 (insert_expr_in_table): Likewise for param "insn".
3259 (dump_expr_hash_table_entry): Likewise for local "insn".
3260 (oprs_unchanged_p): Likewise for param "insn".
3261 (load_killed_in_block_p): Likewise for local "setter".
3262 (record_last_reg_set_info): Likewise for param "insn".
3263 (record_last_reg_set_info_regno): Likewise.
3264 (record_last_mem_set_info): Likewise.
3265 (record_last_set_info): Likewise for local "last_set_insn".
3266 (record_opr_changes): Likewise for param "insn".
3267 (hash_scan_set): Likewise.
3268 (compute_hash_table): Likewise for local "insn".
3269 (get_avail_load_store_reg): Likewise for param "insn".
3270 (eliminate_partially_redundant_load): Likewise, also for locals
3271 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3272 RTX for insns.
3273 (eliminate_partially_redundant_loads): Likewise for local "insn".
3274
3275 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3276
3277 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3278 rtx to rtx_insn *.
3279 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3280 (expand_twoval_unop): Likewise for locals entry_last", "last".
3281 (expand_twoval_binop): Likewise.
3282 (expand_twoval_binop_libfunc): Likewise for local "insns".
3283 (widen_leading): Likewise for local "last".
3284 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3285 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3286 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3287 (expand_parity): Likewise for locals "last" and "seq".
3288 (expand_ffs): Likewise for local "seq". Strengthen local
3289 "nonzero_label" from rtx to rtx_code_label *.
3290 (expand_absneg_bit): Strengthen local "insns" from rtx to
3291 rtx_insn *.
3292 (expand_unop_direct): Likewise for local "last".
3293 (expand_unop): Likewise for locals "last", "insns".
3294 (expand_abs_nojump): Likewise for local "last".
3295 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3296 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3297 rtx_insn *.
3298 (expand_copysign_absneg): Strengthen local "label" from rtx to
3299 rtx_code_label *.
3300 (expand_copysign_bit): Strengthen local "insns" from rtx to
3301 rtx_insn *.
3302 (struct no_conflict_data): Likewise for fields "first", "insn".
3303 (emit_libcall_block_1): Likewise for param "insns" and locals
3304 "next", "last", "insn".
3305 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3306 on "insns" when invoking emit_libcall_block_1. Ultimately we
3307 want to strengthen insns itself.
3308 (prepare_cmp_insn): Strengthen local "last" from rtx to
3309 rtx_insn *.
3310 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3311 (prepare_float_lib_cmp): Likewise for local "insns".
3312 (emit_conditional_move): Likewise for local "last".
3313 (emit_conditional_add): Likewise.
3314 (have_sub2_insn): Likewise for local "seq".
3315 (expand_float): Likewise for local "insns". Strengthen locals
3316 "label", "neglabel" from rtx to rtx_code_label *.
3317 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3318 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3319 (expand_fixed_convert): Likewise for local "insns" (to
3320 rtx_insn *).
3321 (expand_sfix_optab): Likewise for local "last".
3322 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3323 to rtx_code_label *.
3324 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3325 from rtx to rtx_insn *.
3326 (expand_atomic_fetch_op): Likewise for local "insn".
3327 (maybe_legitimize_operand_same_code): Likewise for local "last".
3328 (maybe_legitimize_operands): Likewise.
3329
3330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3331
3332 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3333 "insn" from rtx to rtx_insn *.
3334 (ps_rtl_insn): Likewise for return type.
3335 (doloop_register_get): Likewise for params "head", "tail" and
3336 locals "insn", "first_insn_not_to_check".
3337 (schedule_reg_move): Likewise for local "this_insn".
3338 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3339 of gen_move_insn for now.
3340 (reset_sched_times): Strengthen local "insn" from rtx to
3341 rtx_insn *.
3342 (permute_partial_schedule): Likewise.
3343 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3344 (dump_insn_location): Likewise for param "insn".
3345 (loop_canon_p): Likewise for local "insn".
3346 (sms_schedule): Likewise.
3347 (print_partial_schedule): Likewise.
3348 (ps_has_conflicts): Likewise.
3349
3350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3351
3352 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3353 "tailp" from rtx * to rtx_insn **.
3354
3355 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3356 from rtx to rtx_insn *.
3357 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3358 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3359 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3360 rtx to rtx_insn *.
3361 * modulo-sched.c (const_iteration_count): Strengthen return type
3362 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3363 use of NULL_RTX with NULL when working with insns.
3364 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3365 to rtx_insn *.
3366 (sms_schedule): Likewise.
3367 * sched-rgn.c (init_ready_list): Likewise, also for locals
3368 "src_head" and "src_next_tail".
3369 (compute_block_dependences): Likewise.
3370 (free_block_dependencies): Likewise.
3371 (debug_rgn_dependencies): Likewise.
3372 (free_rgn_deps): Likewise.
3373 (compute_priorities): Likewise.
3374 (schedule_region): Likewise.
3375 * sel-sched.c (find_ebb_boundaries): Likewise.
3376
3377 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3378 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3379
3380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3381
3382 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3383 from rtx to rtx_insn *.
3384 (new_seginfo): Likewise for param "insn".
3385 (create_pre_exit): Likewise for locals "last_insn",
3386 "before_return_copy", "return_copy".
3387 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3388 "mode_set".
3389
3390 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3391
3392 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3393 from rtx to rtx_insn *.
3394 (lra_push_insn): Likewise for 1st param.
3395 (lra_push_insn_and_update_insn_regno_info): Likewise.
3396 (lra_pop_insn): Likewise for return type.
3397 (lra_invalidate_insn_data): Likewise for 1st param.
3398 (lra_set_insn_deleted): Likewise.
3399 (lra_delete_dead_insn): Likewise.
3400 (lra_process_new_insns): Likewise for first 3 params.
3401 (lra_set_insn_recog_data): Likewise for 1st param.
3402 (lra_update_insn_recog_data): Likewise.
3403 (lra_set_used_insn_alternative): Likewise.
3404 (lra_invalidate_insn_regno_info): Likewise.
3405 (lra_update_insn_regno_info): Likewise.
3406 (lra_former_scratch_operand_p): Likewise.
3407 (lra_eliminate_regs_1): Likewise.
3408 (lra_get_insn_recog_data): Likewise.
3409
3410 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3411 rtx to rtx_insn *.
3412
3413 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3414 "mv1" and "mv2".
3415 (substitute_within_insn): New.
3416 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3417 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3418 Replace call to "substitute" with call to substitute_within_insn.
3419
3420 * lra-constraints.c (curr_insn): Strengthen from rtx to
3421 rtx_insn *.
3422 (get_equiv_with_elimination): Likewise for param "insn".
3423 (match_reload): Strengthen params "before" and "after" from rtx *
3424 to rtx_insn **.
3425 (emit_spill_move): Likewise for return type. Add a checked cast
3426 to rtx_insn * on result of gen_move_insn for now.
3427 (check_and_process_move): Likewise for local "before". Replace
3428 NULL_RTX with NULL when referring to insns.
3429 (process_addr_reg): Strengthen params "before" and "after" from
3430 rtx * to rtx_insn **.
3431 (insert_move_for_subreg): Likewise.
3432 (simplify_operand_subreg): Strengthen locals "before" and "after"
3433 from rtx to rtx_insn *.
3434 (process_address_1): Strengthen params "before" and "after" from
3435 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3436 rtx to rtx_insn *.
3437 (process_address): Strengthen params "before" and "after" from
3438 rtx * to rtx_insn **.
3439 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3440 (curr_insn_transform): Strengthen locals "before" and "after"
3441 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3442 to insns.
3443 (loc_equivalence_callback): Update cast of "data", changing
3444 resulting type from rtx to rtx_insn *.
3445 (substitute_pseudo_within_insn): New.
3446 (inherit_reload_reg): Strengthen param "insn" from rtx to
3447 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3448 NULL when referring to insns. Add a checked cast to rtx_insn *
3449 when using usage_insn to invoke lra_update_insn_regno_info.
3450 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3451 likewise for locals "restore", "save". Add checked casts to
3452 rtx_insn * when using usage_insn to invoke
3453 lra_update_insn_regno_info and lra_process_new_insns. Replace
3454 NULL_RTX with NULL when referring to insns.
3455 (split_if_necessary): Strengthen param "insn" from rtx to
3456 rtx_insn *.
3457 (update_ebb_live_info): Likewise for params "head", "tail" and local
3458 "prev_insn".
3459 (get_last_insertion_point): Likewise for return type and local "insn".
3460 (get_live_on_other_edges): Likewise for local "last".
3461 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3462 "prev_insn", "next_insn", "restore".
3463 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3464 (undo_optional_reloads): Likewise for local "insn".
3465
3466 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3467 "insn".
3468 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3469 insns.
3470 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3471 rtx_insn *.
3472 (spill_pseudos): Likewise for local "insn".
3473 (init_elimination): Likewise.
3474 (process_insn_for_elimination): Likewise for param "insn".
3475
3476 * lra-lives.c (curr_insn): Likewise.;
3477
3478 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3479 (remove_pseudos): Likewise for param "insn".
3480 (spill_pseudos): Likewise for local "insn".
3481 (lra_final_code_change): Likewise for locals "insn", "curr".
3482
3483 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3484 (lra_set_insn_deleted): Likewise.
3485 (lra_delete_dead_insn): Likewise, and for local "prev".
3486 (new_insn_reg): Likewise for param "insn".
3487 (lra_set_insn_recog_data): Likewise.
3488 (lra_update_insn_recog_data): Likewise.
3489 (lra_set_used_insn_alternative): Likewise.
3490 (get_insn_freq): Likewise.
3491 (invalidate_insn_data_regno_info): Likewise.
3492 (lra_invalidate_insn_regno_info): Likewise.
3493 (lra_update_insn_regno_info): Likewise.
3494 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3495 vec<rtx_insn *>.
3496 (lra_push_insn_1): Strengthen param "insn" from rtx to
3497 rtx_insn *.
3498 (lra_push_insn): Likewise.
3499 (lra_push_insn_and_update_insn_regno_info): Likewise.
3500 (lra_pop_insn): Likewise for return type and local "insn".
3501 (push_insns): Likewise for params "from", "to", and local "insn".
3502 (setup_sp_offset): Likewise for params "from", "last" and locals
3503 "before", "insn".
3504 (lra_process_new_insns): Likewise for params "insn", "before",
3505 "after" and local "last".
3506 (struct sloc): Likewise for field "insn".
3507 (lra_former_scratch_operand_p): Likewise for param "insn".
3508 (remove_scratches): Likewise for locals "insn", "last".
3509 (check_rtl): Likewise for local "insn".
3510 (add_auto_inc_notes): Likewise for param "insn".
3511 (update_inc_notes): Likewise for local "insn".
3512 (lra): Replace NULL_RTX with NULL when referring to insn.
3513
3514 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3515
3516 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3517 to rtx_insn *.
3518 (resolve_reg_notes): Likewise.
3519 (resolve_simple_move): Likewise for return type, param "insn", and
3520 locals "insns", "minsn".
3521 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3522 (resolve_use): Likewise.
3523 (resolve_debug): Likewise.
3524 (find_decomposable_shift_zext): Likewise.
3525 (resolve_shift_zext): Likewise for return type, param "insn", and
3526 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3527 (decompose_multiword_subregs): Likewise for local "insn",
3528 "orig_insn", "decomposed_shift", "end".
3529
3530 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3531
3532 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3533 param "insns" from rtx to rtx_insn *.
3534
3535 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3536 rtx to rtx_insn *.
3537 (struct iv_to_split): Likewise.
3538 (loop_exit_at_end_p): Likewise for local "insn".
3539 (split_edge_and_insert): Likewise for param "insns".
3540 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3541 and locals "seq", "jump".
3542 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3543 "branch_code"; update invocations of compare_and_jump_seq to
3544 eliminate NULL_RTX in favor of NULL.
3545 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3546 rtx to rtx_insn *.
3547 (reset_debug_uses_in_loop): Likewise.
3548 (analyze_insn_to_expand_var): Likewise for param "insn".
3549 (analyze_iv_to_split_insn): Likewise.
3550 (analyze_insns_in_loop): Likewise for local "insn".
3551 (insert_base_initialization): Likewise for param
3552 "insn" and local "seq".
3553 (split_iv): Likewise for param "insn" and local "seq".
3554 (expand_var_during_unrolling): Likewise for param "insn".
3555 (insert_var_expansion_initialization): Likewise for local "seq".
3556 (combine_var_copies_in_loop_exit): Likewise.
3557 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3558 "insn".
3559 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3560 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3561 "next".
3562
3563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3564
3565 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3566 rtx_insn *.
3567 (iv_analyze_result): Likewise.
3568 (iv_analyze_expr): Likewise.
3569 (biv_p): Likewise.
3570
3571 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3572 local "def_insn" from rtx to rtx_insn *.
3573 (get_biv_step_1): Likewise for local "insn".
3574 (iv_analyze_expr): Likewise for param "insn".
3575 (iv_analyze_def): Likewise for local "insn".
3576 (iv_analyze_op): Likewise for param "insn".
3577 (iv_analyze): Likewise.
3578 (iv_analyze_result): Likewise.
3579 (biv_p): Likewise.
3580 (suitable_set_for_replacement): Likewise.
3581 (simplify_using_initial_values): Likewise for local "insn".
3582 (iv_number_of_iterations): Likewise for param "insn".
3583 (check_simple_exit): Add checked cast to rtx_insn when invoking
3584 iv_number_of_iterations for now (until get_condition is
3585 strengthened).
3586
3587 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3588 "insn" from rtx to rtx_insn *.
3589 (analyze_insns_in_loop): Likewise for local "insn".
3590
3591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3592
3593 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3594 to rtx_insn *.
3595 (struct invariant): Likewise.
3596 (hash_invariant_expr_1): Likewise for param "insn".
3597 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3598 (find_exits): Likewise for local "insn".
3599 (create_new_invariant): Likewise for param "insn".
3600 (check_dependencies): Likewise.
3601 (find_invariant_insn): Likewise.
3602 (record_uses): Likewise.
3603 (find_invariants_insn): Likewise.
3604 (find_invariants_bb): Likewise for local "insn".
3605 (get_pressure_class_and_nregs): Likewise for param "insn".
3606 (calculate_loop_reg_pressure): Likewise for local "insn".
3607
3608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3609
3610 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3611 to rtx_insn *.
3612 (add_test): Likewise for locals "seq", "jump".
3613 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3614
3615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3616
3617 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3618 rtx_insn *.
3619 (rebuild_jump_labels_chain): Likewise for param "chain".
3620
3621 * cfgexpand.c (pass_expand::execute): Add checked cast to
3622 rtx_insn * when calling rebuild_jump_labels_chain in region where
3623 we know e->insns.r is non-NULL.
3624
3625 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3626 rtx_insn *.
3627 (rebuild_jump_labels): Likewise.
3628 (rebuild_jump_labels_chain): Likewise for param "chain".
3629 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3630 (init_label_info): Likewise for param "f".
3631 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3632 "prev_nonjump_insn".
3633 (mark_all_labels): Likewise for param "f" and locals "insn",
3634 "prev_nonjump_insn".
3635
3636 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3637
3638 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3639 from rtx to rtx_insn *insn.
3640 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3641 (ira_add_allocno_copy): Likewise.
3642 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3643 rtx to rtx_insn *.
3644 (ira_create_copy): Likewise.
3645 (ira_add_allocno_copy): Likewise.
3646 (create_bb_allocnos): Likewise for local "insn".
3647 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3648 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3649 process_regs_for_copy for rtx_insn * param.
3650 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3651 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3652 process_regs_for_copy for rtx_insn * param.
3653 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3654 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3655 (record_operand_costs): Likewise.
3656 (scan_one_insn): Likewise for return type, and for param "insn".
3657 (process_bb_for_costs): Likewise for local "insn".
3658 (process_bb_node_for_hard_reg_moves): Likewise.
3659 * ira-emit.c (struct move): Likewise for field "insn".
3660 (create_move): Eliminate use of NULL_RTX when dealing with an
3661 rtx_insn *.
3662 (emit_move_list): Strengthen return type and locals "result",
3663 "insn" from rtx to rtx_insn *insn.
3664 (emit_moves): Likewise for locals "insns", "tmp".
3665 (ira_emit): Likewise for local "insn".
3666 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3667 "insn".
3668 (find_call_crossed_cheap_reg): Likewise.
3669 (process_bb_node_lives): Likewise for local "insn".
3670 * ira.c (decrease_live_ranges_number): Likewise.
3671 (compute_regs_asm_clobbered): Likewise.
3672 (build_insn_chain): Likewise.
3673 (find_moveable_pseudos): Likewise, also locals "def_insn",
3674 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3675 to rtx_insn **. Add a checked cast when assigning from
3676 "closest_use" into closest_uses array in a region where we know
3677 it's a non-NULL insn.
3678 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3679 to rtx_insn *.
3680 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3681 "last_interesting_insn", "uin".
3682 (move_unallocated_pseudos): Likewise for locals "def_insn",
3683 "move_insn", "newinsn".
3684
3685 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3686
3687 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3688 Strengthen locals "done_label", "do_error" from rtx to
3689 rtx_code_label *.
3690 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3691 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3692 rtx_code_label *.
3693 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3694 "done_label", "do_error" to rtx_code_label * and local "last" to
3695 rtx_insn *.
3696 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3697 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3698 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3699 "after_lopart_neg", "do_overflow", "hipart_different" to
3700 rtx_code_label * and local "last" to rtx_insn *.
3701
3702 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3703
3704 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3705 "insn" and "move_insn" from rtx to rtx_insn *.
3706
3707 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3708
3709 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3710 rtx_insn *.
3711 (cheap_bb_rtx_cost_p): Likewise.
3712 (first_active_insn): Likewise for return type and local "insn".
3713 (last_active_insn): Likewise for return type and locals "insn",
3714 "head".
3715 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3716 "insn_b".
3717 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3718 "seq".
3719 (noce_try_move): Likewise for local "seq".
3720 (noce_try_store_flag): Likewise.
3721 (noce_try_store_flag_constants): Likewise.
3722 (noce_try_addcc): Likewise.
3723 (noce_try_store_flag_mask): Likewise.
3724 (noce_try_cmove): Likewise.
3725 (noce_try_minmax): Likewise.
3726 (noce_try_abs): Likewise.
3727 (noce_try_sign_mask): Likewise.
3728 (noce_try_bitop): Likewise.
3729 (noce_can_store_speculate_p): Likewise for local "insn".
3730 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3731 seq".
3732 (check_cond_move_block): Likewise for local "insn".
3733 (cond_move_convert_if_block): Likewise.
3734 (cond_move_process_if_block): Likewise for locals "seq",
3735 "loc_insn".
3736 (noce_find_if_block): Likewise for local "jump".
3737 (merge_if_block): Likewise for local "last".
3738 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3739 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3740 (block_has_only_trap): Likewise for return type and local "trap".
3741 (find_if_case_1): Likewise for local "jump".
3742 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3743 "insn".
3744
3745 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3746
3747 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3748 "last_insn", "loop_end" from rtx to rtx_insn *.
3749
3750 * hw-doloop.c (scan_loop): Likewise for local "insn".
3751 (discover_loop): Likewise for param "tail_insn".
3752 (discover_loops): Likewise for local "tail".
3753
3754 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3755 cast to rtx_insn * when assigning from an rtx local to a
3756 hwloop_info's "last_insn" field.
3757
3758 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3759
3760 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3761 (add_delay_dependencies): Strengthen local "pro" from rtx to
3762 rtx_insn *.
3763 (recompute_todo_spec): Likewise.
3764 (dep_cost_1): Likewise for locals "insn", "used".
3765 (schedule_insn): Likewise for local "dbg".
3766 (schedule_insn): Likewise for locals "pro", "next".
3767 (unschedule_insns_until): Likewise for local "con".
3768 (restore_pattern): Likewise for local "next".
3769 (estimate_insn_tick): Likewise for local "pro".
3770 (resolve_dependencies): Likewise for local "next".
3771 (fix_inter_tick): Likewise.
3772 (fix_tick_ready): Likewise for local "pro".
3773 (add_to_speculative_block): Likewise for locals "check", "twin",
3774 "pro".
3775 (sched_extend_bb): Likewise for locals "end", "insn".
3776 (init_before_recovery): Likewise for local "x".
3777 (sched_create_recovery_block): Likewise for local "barrier".
3778 (create_check_block_twin): Likewise for local "pro".
3779 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3780 "consumer".
3781 (unlink_bb_notes): Update for change to type of bb_header.
3782 Strengthen locals "prev", "label", "note", "next" from rtx to
3783 rtx_insn *.
3784 (clear_priorities): Likewise for local "pro".
3785
3786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3787
3788 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3789 rtx_insn *.
3790 (test_insn): Likewise for this global.
3791 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3792 const rtx_insn *.
3793 (oprs_anticipatable_p): Likewise.
3794 (oprs_available_p): Likewise.
3795 (insert_expr_in_table): Strengthen param "insn" from rtx to
3796 rtx_insn *.
3797 (hash_scan_set): Likewise.
3798 (hash_scan_clobber): Likewise.
3799 (hash_scan_call): Likewise.
3800 (hash_scan_insn): Likewise.
3801 (compute_hash_table_work): Likewise for local "insn".
3802 (process_insert_insn): Likewise for return type and local "pat".
3803 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3804 "pat", "pat_end", "maybe_cc0_setter".
3805 (pre_edge_insert): Likewise for local "insn".
3806 (pre_insert_copy_insn): Likewise for param "insn".
3807 (pre_insert_copies): Likewise for local "insn".
3808 (struct set_data): Likewise for field "insn".
3809 (single_set_gcse): Likewise for param "insn".
3810 (gcse_emit_move_after): Likewise.
3811 (pre_delete): Likewise for local "insn".
3812 (update_bb_reg_pressure): Likewise for param "from" and local
3813 "insn".
3814 (should_hoist_expr_to_dom): Likewise for param "from".
3815 (hoist_code): Likewise for local "insn".
3816 (get_pressure_class_and_nregs): Likewise for param "insn".
3817 (calculate_bb_reg_pressure): Likewise for local "insn".
3818 (compute_ld_motion_mems): Likewise.
3819
3820 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3821
3822 * genpeep.c (main): Rename param back from "uncast_ins1" to
3823 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3824 checked cast.
3825
3826 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3827
3828 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3829
3830 PR target/62195
3831 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3832 documentation to state it is only for VSX operations.
3833
3834 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3835 constraint only active if VSX.
3836
3837 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3838 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3839 (lfiwzx): Likewise.
3840
3841 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3842
3843 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3844 Strengthen local "insn" from rtx to rtx_insn *.
3845 (use_killed_between): Likewise for param "target_insn".
3846 (all_uses_available_at): Likewise for param "target_insn" and
3847 local "next".
3848 (update_df_init): Likewise for params "def_insn", "insn".
3849 (update_df): Likewise for param "insn".
3850 (try_fwprop_subst): Likewise for param "def_insn" and local
3851 "insn".
3852 (free_load_extend): Likewise for param "insn".
3853 (forward_propagate_subreg): Likewise for param "def_insn" and
3854 local "use_insn".
3855 (forward_propagate_asm): Likewise for param "def_insn" and local
3856 "use_insn".
3857 (forward_propagate_and_simplify): Likewise for param "def_insn"
3858 and local "use_insn".
3859 (forward_propagate_into): Likewise for locals "def_insn" and
3860 "use_insn".
3861
3862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3863
3864 * function.c (emit_initial_value_sets): Strengthen local "seq"
3865 from rtx to rtx_insn *.
3866 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3867 local "seq".
3868 (instantiate_virtual_regs): Likewise for local "insn".
3869 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3870 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3871 (expand_function_end): Likewise for locals "insn" and "seq".
3872 (epilogue_done): Likewise for local "insn".
3873 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3874 "last", "trial".
3875 (reposition_prologue_and_epilogue_notes): Likewise for locals
3876 "insn", "last", "note", "first".
3877 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3878 (pass_match_asm_constraints::execute): Likewise for local "insn".
3879
3880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3881
3882 * output.h (final_scan_insn): Strengthen return type from rtx to
3883 rtx_insn *.
3884 (final_forward_branch_p): Likewise for param.
3885 (current_output_insn): Likewise for this global.
3886
3887 * final.c (rtx debug_insn): Likewise for this variable.
3888 (current_output_insn): Likewise.
3889 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3890 adding "insn" back in as an rtx_insn * with a checked cast, so
3891 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3892 first param.
3893 (compute_alignments): Strengthen local "label" from rtx to
3894 rtx_insn *.
3895 (shorten_branches): Rename param from "first" to "uncast_first",
3896 introducing a new local rtx_insn * "first" using a checked cast to
3897 effectively strengthen "first" from rtx to rtx_insn * without
3898 affecting the type signature. Strengthen locals "insn", "seq",
3899 "next", "label" from rtx to rtx_insn *.
3900 (change_scope): Strengthen param "orig_insn" and local "insn" from
3901 rtx to rtx_insn *.
3902 (final_start_function): Rename param from "first" to "uncast_first",
3903 introducing a new local rtx_insn * "first" using a checked cast to
3904 effectively strengthen "first" from rtx to rtx_insn * without
3905 affecting the type signature. Strengthen local "insn" from rtx to
3906 rtx_insn *.
3907 (dump_basic_block_info): Strengthen param "insn" from rtx to
3908 rtx_insn *.
3909 (final): Rename param from "first" to "uncast_first",
3910 introducing a new local rtx_insn * "first" using a checked cast to
3911 effectively strengthen "first" from rtx to rtx_insn * without
3912 affecting the type signature. Strengthen locals "insn", "next"
3913 from rtx to rtx_insn *.
3914 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3915 rtx_insn *.
3916 (call_from_call_insn): Strengthen param "insn" from rtx to
3917 rtx_call_insn *.
3918 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3919 introducing a new local rtx_insn * "insn" using a checked cast to
3920 effectively strengthen "insn" from rtx to rtx_insn * without
3921 affecting the type signature. Strengthen return type and locals
3922 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3923 now-redundant checked cast to rtx_insn * from both invocations of
3924 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3925 introducing a local "call_insn" for use when invoking
3926 call_from_call_insn.
3927 (notice_source_line): Strengthen param "insn" from rtx to
3928 rtx_insn *.
3929 (leaf_function_p): Likewise for local "insn".
3930 (final_forward_branch_p): Likewise.
3931 (leaf_renumber_regs): Likewise for param "first".
3932 (rest_of_clean_state): Likewise for locals "insn" and "next".
3933 (self_recursive_call_p): Likewise for param "insn".
3934 (collect_fn_hard_reg_usage): Likewise for local "insn".
3935 (get_call_fndecl): Likewise for param "insn".
3936 (get_call_cgraph_rtl_info): Likewise.
3937 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3938 introducing a new local rtx_insn * "insn" using a checked cast to
3939 effectively strengthen "insn" from rtx to rtx_insn * without
3940 affecting the type signature.
3941
3942 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3943 cast when assigning from param "insn" to current_output_insn.
3944 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3945 so that we can assign it back to current_output_insn.
3946
3947 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3948
3949 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3950 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3951 atmxt540s and atmxt540sreva devices.
3952 * config/avr/avr-tables.opt: Regenerate.
3953 * config/avr/t-multilib: Regenerate.
3954 * doc/avr-mmcu.texi: Regenerate.
3955
3956 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3957
3958 * expr.c (convert_move): Strengthen local "insns" from rtx to
3959 rtx_insn *.
3960 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3961 "top_label" from rtx to rtx_code_label *.
3962 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3963 rtx_insn *.
3964 (emit_single_push_insn): Likewise for locals "prev", "last".
3965 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3966 to rtx_code_label *.
3967 (store_constructor): Likewise for locals "loop_start", "loop_end".
3968 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3969 rtx_insn *.
3970 (expand_expr_real_2): Likewise.
3971 (expand_expr_real_1): Strengthen local "label" from rtx to
3972 rtx_code_label *.
3973
3974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3975
3976 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3977 from rtx to rtx_insn *.
3978 (store_bit_field_1): Likewise.
3979 (extract_bit_field_1): Likewise.
3980 (expand_mult_const): Likewise for local "insns".
3981 (expmed_mult_highpart): Strengthen local "label" from rtx to
3982 rtx_code_label *.
3983 (expand_smod_pow2): Likewise.
3984 (expand_sdiv_pow2): Likewise.
3985 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3986 rtx_insn *. Strengthen locals "label", "label1", "label2",
3987 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3988 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3989 (emit_store_flag): Likewise.
3990 (emit_store_flag_force): Strengthen local "label" from rtx to
3991 rtx_code_label *.
3992 (do_cmp_and_jump): Likewise for param "label".
3993
3994 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3995
3996 * explow.c (force_reg): Strengthen local "insn" from rtx to
3997 rtx_insn *.
3998 (adjust_stack_1): Likewise.
3999 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4000 "final_label", "available_label", "space_available" from rtx to
4001 rtx_code_label *.
4002 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4003 (anti_adjust_stack_and_probe): Likewise.
4004
4005 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4006
4007 * except.h (sjlj_emit_function_exit_after): Strengthen param
4008 "after" from rtx to rtx_insn *. This is only called with
4009 result of get_last_insn (in function.c) so type-change should be
4010 self-contained.
4011
4012 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4013 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4014 to rtx_insn *. These fields are only used from except.c so this
4015 type-change should be self-contained to this patch.
4016
4017 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4018 local "last" from rtx to rtx_insn *.
4019 (dw2_build_landing_pads): Likewise for local "seq".
4020 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4021 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4022 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4023 rtx to rtx_insn *.
4024 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4025 to rtx_insn *.
4026 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4027 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4028 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4029 referring to an insn. Strengthen local "dispatch_label" from
4030 rtx to rtx_code_label *.
4031 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4032 rtx_insn *.
4033 (expand_eh_return): Strengthen local "around_label" from
4034 rtx to rtx_code_label *.
4035 (convert_to_eh_region_ranges): Strengthen locals "iter",
4036 "last_action_insn", "first_no_action_insn",
4037 "first_no_action_insn_before_switch",
4038 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4039
4040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4041
4042 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4043 from rtx to rtx_insn *.
4044 (cached_next_real_insn): Likewise.
4045 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4046 working with insns.
4047 (dwarf2out_var_location): Strengthen locals "next_real",
4048 "next_note", "expected_next_loc_note", "last_start", "insn" from
4049 rtx to rtx_insn *.
4050
4051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4052
4053 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4054 from rtx to rtx_insn *.
4055 (create_pseudo_cfg): Likewise for local "insn".
4056
4057 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4058
4059 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4060 from rtx to rtx_insn *.
4061 (df_bb_regno_last_def_find): Likewise.
4062
4063 * df-problems.c (df_rd_bb_local_compute): Likewise.
4064 (df_lr_bb_local_compute): Likewise.
4065 (df_live_bb_local_compute): Likewise.
4066 (df_chain_remove_problem): Likewise.
4067 (df_chain_create_bb): Likewise.
4068 (df_word_lr_bb_local_compute): Likewise.
4069 (df_remove_dead_eq_notes): Likewise for param "insn".
4070 (df_note_bb_compute): Likewise for local "insn".
4071 (simulate_backwards_to_point): Likewise.
4072 (df_md_bb_local_compute): Likewise.
4073
4074 * df-scan.c (df_scan_free_bb_info): Likewise.
4075 (df_scan_start_dump): Likewise.
4076 (df_scan_start_block): Likewise.
4077 (df_install_ref_incremental): Likewise for local "insn".
4078 (df_insn_rescan_all): Likewise.
4079 (df_reorganize_refs_by_reg_by_insn): Likewise.
4080 (df_reorganize_refs_by_insn_bb): Likewise.
4081 (df_recompute_luids): Likewise.
4082 (df_bb_refs_record): Likewise.
4083 (df_update_entry_exit_and_calls): Likewise.
4084 (df_bb_verify): Likewise.
4085
4086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4087
4088 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4089 "first_note" from rtx to rtx_insn *.
4090 (get_node_of_insn): Likewise for param 2 "insn".
4091 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4092
4093 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4094 rtx_insn *.
4095 (mem_write_insn_p): Likewise.
4096 (mem_access_insn_p): Likewise.
4097 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4098 (def_has_ccmode_p): Likewise for param "insn".
4099 (add_cross_iteration_register_deps): Likewise for locals
4100 "def_insn" and "use_insn".
4101 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4102 (build_intra_loop_deps): Likewise for local "src_insn".
4103 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4104 to rtx_insn *.
4105 (get_node_of_insn): Likewise for param "insn".
4106
4107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4108
4109 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4110 (deletable_insn_p): Strengthen param "insn" from rtx to
4111 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4112 find_call_stack_args, since this is guarded by CALL_P (insn).
4113 (marked_insn_p): Strengthen param "insn" from rtx to
4114 rtx_insn *.
4115 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4116 invoking find_call_stack_args, since this is guarded by
4117 CALL_P (insn).
4118 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4119 rtx_insn *; we know this is an insn since this was called by
4120 mark_nonreg_stores.
4121 (mark_nonreg_stores_2): Likewise.
4122 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4123 rtx_insn *.
4124 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4125 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4126 to rtx_insn *.
4127 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4128 from rtx to rtx_insn *.
4129 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4130 "next", "ref_insn".
4131 (delete_unmarked_insns): Likewise for locals "insn", "next".
4132 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4133 (mark_reg_dependencies): Likewise for param "insn".
4134 (rest_of_handle_ud_dce): Likewise for local "insn".
4135 (word_dce_process_block): Likewise.
4136 (dce_process_block): Likewise.
4137
4138 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4139
4140 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4141 from rtx to rtx_insn *.
4142 (struct change_cc_mode_args): Likewise for field "insn".
4143 (this_insn): Strengthen from rtx to rtx_insn *.
4144 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4145 with insn.
4146 (validate_canon_reg): Strengthen param "insn" from rtx to
4147 rtx_insn *.
4148 (canon_reg): Likewise.
4149 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4150 dealing with insn.
4151 (record_jump_equiv): Strengthen param "insn" from rtx to
4152 rtx_insn *.
4153 (try_back_substitute_reg): Likewise, also for locals "prev",
4154 "bb_head".
4155 (find_sets_in_insn): Likewise for param "insn".
4156 (canonicalize_insn): Likewise.
4157 (cse_insn): Likewise. Add a checked cast.
4158 (invalidate_from_clobbers): Likewise for param "insn".
4159 (invalidate_from_sets_and_clobbers): Likewise.
4160 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4161 dealing with insn.
4162 (cse_prescan_path): Strengthen local "insn" from rtx to
4163 rtx_insn *.
4164 (cse_extended_basic_block): Likewise for locals "insn" and
4165 "prev_insn".
4166 (cse_main): Likewise for param "f".
4167 (check_for_label_ref): Likewise for local "insn".
4168 (set_live_p): Likewise for second param ("insn").
4169 (insn_live_p): Likewise for first param ("insn") and for local
4170 "next".
4171 (cse_change_cc_mode_insn): Likewise for first param "insn".
4172 (cse_change_cc_mode_insns): Likewise for first and second params
4173 "start" and "end".
4174 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4175 and "end".
4176 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4177 "cc_src_insn".
4178
4179 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4180 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4181 Anna Tikhonova <anna.tikhonova@intel.com>
4182 Ilya Tocar <ilya.tocar@intel.com>
4183 Andrey Turetskiy <andrey.turetskiy@intel.com>
4184 Ilya Verbin <ilya.verbin@intel.com>
4185 Kirill Yukhin <kirill.yukhin@intel.com>
4186 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4187
4188 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4189 New.
4190 * config/i386/sse.md
4191 (define_mode_iterator VI248_AVX2): Delete.
4192 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4193 (define_mode_iterator VI48_AVX2): Ditto.
4194 (define_insn <shift_insn><mode>3): Delete.
4195 (define_insn "<shift_insn><mode>3<mask_name>" with
4196 VI2_AVX2_AVX512BW): New.
4197 (define_insn "<shift_insn><mode>3<mask_name>" with
4198 VI48_AVX2): Ditto.
4199
4200 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4202 Anna Tikhonova <anna.tikhonova@intel.com>
4203 Ilya Tocar <ilya.tocar@intel.com>
4204 Andrey Turetskiy <andrey.turetskiy@intel.com>
4205 Ilya Verbin <ilya.verbin@intel.com>
4206 Kirill Yukhin <kirill.yukhin@intel.com>
4207 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4208
4209 * config/i386/sse.md
4210 (define_mode_iterator VI4F_BRCST32x2): New.
4211 (define_mode_attr 64x2_mode): Ditto.
4212 (define_mode_attr 32x2mode): Ditto.
4213 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4214 with VI4F_BRCST32x2): Ditto.
4215 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4216 with V16FI mode iterator): Ditto.
4217 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4218 with V16FI): Ditto.
4219 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4220 with VI8F_BRCST64x2): Ditto.
4221
4222 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4223 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4224 Anna Tikhonova <anna.tikhonova@intel.com>
4225 Ilya Tocar <ilya.tocar@intel.com>
4226 Andrey Turetskiy <andrey.turetskiy@intel.com>
4227 Ilya Verbin <ilya.verbin@intel.com>
4228 Kirill Yukhin <kirill.yukhin@intel.com>
4229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4230
4231 * config/i386/sse.md
4232 (define_mode_iterator VI8_AVX512VL): New.
4233 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4234
4235 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4236
4237 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4238 (define_mode_iterator V48_AVX512VL): New.
4239 (define_mode_iterator V12_AVX512VL): Ditto.
4240 (define_insn <avx512>_load<mode>_mask): Split into two similar
4241 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4242 Refactor output template.
4243 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4244
4245 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4246
4247 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4248 rtx_insn *.
4249 (reg_available_p): Likewise for param "insn".
4250 (insert_set_in_table): Likewise.
4251 (hash_scan_set): Likewise.
4252 (hash_scan_insn): Likewise.
4253 (make_set_regs_unavailable): Likewise.
4254 (compute_hash_table_work): Likewise for local "insn".
4255 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4256 const rtx_insn *.
4257 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4258 (try_replace_reg): Likewise.
4259 (find_avail_set): Likewise.
4260 (cprop_jump): Likewise for params "setcc", "jump".
4261 (constprop_register): Likewise for param "insn".
4262 (cprop_insn): Likewise.
4263 (do_local_cprop): Likewise.
4264 (local_cprop_pass): Likewise for local "insn".
4265 (bypass_block): Likewise for params "setcc" and "jump".
4266 (bypass_conditional_jumps): Likewise for locals "setcc" and
4267 "insn".
4268 (one_cprop_pass): Likewise for local "insn".
4269
4270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4271
4272 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4273 from rtx to rtx_insn *.
4274 (struct comparison): Likewise, also for field "prev_clobber".
4275 (conforming_compare): Likewise for param "insn".
4276 (arithmetic_flags_clobber_p): Likewise.
4277 (find_flags_uses_in_insn): Likewise.
4278 (find_comparison_dom_walker::before_dom_children): Likewise for
4279 locals "insn", "next", "last_clobber".
4280 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4281
4282 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4283
4284 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4285 "insn" from rtx to rtx_insn *.
4286 (single_set_for_csa): Likewise for param "insn".
4287 (record_one_stack_ref): Likewise.
4288 (try_apply_stack_adjustment): Likewise.
4289 (struct record_stack_refs_data): Likewise for field "insn".
4290 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4291 (prev_active_insn_bb): Likewise for return type and param "insn".
4292 (next_active_insn_bb): Likewise.
4293 (force_move_args_size_note): Likewise for params "prev" and "last"
4294 and locals "test", "next_candidate", "prev_candidate".
4295 (combine_stack_adjustments_for_block): Strengthen locals
4296 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4297 rtx_insn *.
4298
4299 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4300
4301 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4302 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4303 (subst_insn): Likewise for this variable.
4304 (added_links_insn): Likewise.
4305 (struct insn_link): Likewise for field "insn".
4306 (alloc_insn_link): Likewise for param "insn".
4307 (struct undobuf): Likewise for field "other_insn".
4308 (find_single_use): Likewise for param "insn" and local "next".
4309 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4310 (delete_noop_moves): Likewise for locals "insn", "next".
4311 (create_log_links): Likewise for locals "insn", "use_insn".
4312 Strengthen local "next_use" from rtx * to rtx_insn **.
4313 (insn_a_feeds_b): Likewise for params "a", "b".
4314 (combine_instructions): Likewise for param "f" and locals "insn",
4315 "next", "prev", "first", "last_combined_insn", "link", "link1",
4316 "temp". Replace use of NULL_RTX with NULL when referring to
4317 insns.
4318 (setup_incoming_promotions): Likewise for param "first"
4319 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4320 (can_combine_p): Likewise for params "insn", "i3", "pred",
4321 "pred2", "succ", "succ2" and for local "p".
4322 (combinable_i3pat): Likewise for param "i3".
4323 (cant_combine_insn_p): Likewise for param "insn".
4324 (likely_spilled_retval_p): Likewise.
4325 (adjust_for_new_dest): Likewise.
4326 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4327 (try_combine): Likewise for return type and for params "i3", "i2",
4328 "i1", "i0", "last_combined_insn", and for locals "insn",
4329 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4330 "i0_insn". Eliminate local "tem" in favor of new locals
4331 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4332 checked cast for now to rtx_insn * on the return type of
4333 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4334 insns.
4335 (find_split_point): Strengthen param "insn" from rtx to
4336 rtx_insn *.
4337 (simplify_set): Likewise for local "other_insn".
4338 (recog_for_combine): Likewise for param "insn".
4339 (record_value_for_reg): Likewise.
4340 (record_dead_and_set_regs_1): Likewise for local
4341 "record_dead_insn".
4342 (record_dead_and_set_regs): Likewise for param "insn".
4343 (record_promoted_value): Likewise.
4344 (check_promoted_subreg): Likewise.
4345 (get_last_value_validate): Likewise.
4346 (reg_dead_at_p): Likewise.
4347 (move_deaths): Likewise for param "to_insn".
4348 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4349 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4350 in favor of new locals "tem_note" and "tem_insn", the latter being
4351 an rtx_insn *.
4352 (distribute_links): Strengthen locals "place", "insn" from rtx to
4353 rtx_insn *.
4354
4355 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4356
4357 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4358 than a const_rtx.
4359 (can_delete_label_p): Require a const rtx_code_label * rather than
4360 a const_rtx.
4361 (delete_insn): Add checked cast to rtx_code_label * when we know
4362 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4363 rtx to rtx_insn *.
4364 (delete_insn_chain): Strengthen locals "prev" and "current" from
4365 rtx to rtx_insn *. Add a checked cast when assigning from
4366 "finish" (strengthening the params will come later). Add a
4367 checked cast to rtx_note * in region where we know
4368 NOTE_P (current).
4369 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4370 rtx_insn *.
4371 (compute_bb_for_insn): Likewise.
4372 (free_bb_for_insn): Likewise for local "insn".
4373 (compute_bb_for_insn): Likewise.
4374 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4375 local "insn" from rtx to rtx_insn *
4376 (flow_active_insn_p): Require a const rtx_insn * rather than a
4377 const_rtx.
4378 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4379 rtx_insn *.
4380 (can_fallthru): Likewise for locals "insn" and "insn2".
4381 (bb_note): Likewise for local "note".
4382 (first_insn_after_basic_block_note): Likewise for local "note" and
4383 for return type.
4384 (rtl_split_block): Likewise for locals "insn" and "next".
4385 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4386 "end".
4387 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4388 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4389 "prev", "tmp".
4390 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4391 them), "kill_from", "barrier", "new_insn".
4392 (patch_jump_insn): Likewise for params "insn", "old_label".
4393 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4394 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4395 "old_label", "new_label".
4396 (rtl_tidy_fallthru_edge): Likewise for local "q".
4397 (rtl_split_edge): Likewise for locals "before", "last".
4398 (commit_one_edge_insertion): Likewise for locals "before",
4399 "after", "insns", "tmp", "last", adding a checked cast where
4400 currently necessary.
4401 (commit_edge_insertions): Likewise.
4402 (rtl_dump_bb): Likewise for locals "insn", "last".
4403 (print_rtl_with_bb): Likewise for local "x".
4404 (rtl_verify_bb_insns): Likewise for local "x".
4405 (rtl_verify_bb_pointers): Likewise for local "insn".
4406 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4407 "head", "end".
4408 (rtl_verify_fallthru): Likewise for local "insn".
4409 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4410 (purge_dead_edges): Likewise for local "insn".
4411 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4412 (skip_insns_after_block): Likewise for return type and for locals
4413 "insn", "last_insn", "next_head", "prev".
4414 (record_effective_endpoints): Likewise for locals "next_insn",
4415 "insn", "end".
4416 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4417 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4418 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4419 (duplicate_insn_chain): For now, add checked cast from rtx to
4420 rtx_insn * when returning insn.
4421 (cfg_layout_duplicate_bb): Likewise for local "insn".
4422 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4423 "prev", "remaints".
4424 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4425 (rtl_block_empty_p): Likewise.
4426 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4427 "split_point", "last".
4428 (rtl_block_ends_with_call_p): Likewise for local "insn".
4429 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4430 const rtx_insn *.
4431 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4432 "split_at_insn" from rtx to rtx_insn *.
4433 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4434 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4435 to const rtx_insn *.
4436 (rtl_account_profile_record): Likewise.
4437
4438 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4439
4440 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4441 rtx to rtx_insn *.
4442 (average_num_loop_insns): Likewise.
4443 (init_set_costs): Likewise for local "seq".
4444 (seq_cost): Likewise for param "seq", from const_rtx to const
4445 rtx_insn *.
4446
4447 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4448
4449 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4450 rtx to rtx_insn *.
4451
4452 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4453
4454 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4455 "f1" and "f2" from rtx * to rtx_insn **.
4456 (flow_find_head_matching_sequence): Likewise.
4457
4458 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4459 "cbranch_insn" from rtx to rtx_insn *.
4460 (thread_jump): Likewise for local "insn".
4461 (try_forward_edges): Likewise for local "last".
4462 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4463 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4464 "real_b_end".
4465 (can_replace_by): Likewise for params "i1", "i2".
4466 (old_insns_match_p): Likewise.
4467 (merge_notes): Likewise.
4468 (walk_to_nondebug_insn): Likewise for param "i1".
4469 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4470 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4471 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4472 (flow_find_head_matching_sequence): Strengthen params "f1" and
4473 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4474 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4475 rtx_insn *.
4476 (outgoing_edges_match): Likewise for locals "last1", "last2".
4477 (try_crossjump_to_edge): Likewise for local "insn".
4478 Replace call to for_each_rtx with for_each_rtx_in_insn.
4479
4480 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4481 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4482 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4483 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4484 (try_optimize_cfg): Strengthen local "last" from rtx to
4485 rtx_insn *.
4486 (delete_dead_jumptables): Likewise for locals "insn", "next",
4487 "label".
4488
4489 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4490 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4491 "rtx else_first_tail", to reflect the basic-block.h changes above.
4492
4493 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4494
4495 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4496 rtx_insn *.
4497 (purge_dead_tablejump_edges): Likewise.
4498 (find_bb_boundaries): Likewise for locals "insn", "end",
4499 "flow_transfer_insn".
4500
4501 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4502
4503 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4504 "ins" and "prev" from rtx to rtx_insn *.
4505
4506 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4507
4508 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4509 rtx_insn *.
4510 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4511 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4512 "scan_start".
4513 (load_register_parameters): Likewise for local "before_arg".
4514 (check_sibcall_argument_overlap): Likewise for param "insn".
4515 (expand_call): Likewise for locals "normal_call_insns",
4516 "tail_call_insns", "insns", "before_call", "after_args",
4517 "before_arg", "last", "prev". Strengthen one of the "last" from
4518 rtx to rtx_call_insn *.
4519 (fixup_tail_calls): Strengthen local "insn" from rtx to
4520 rtx_insn *.
4521 (emit_library_call_value_1): Likewise for locals "before_call" and
4522 "last".
4523
4524 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4525
4526 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4527 and "last" from rtx to rtx_insn *.
4528 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4529 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4530 rtx_call_insn *.
4531 (expand_errno_check): Strengthen local "lab" from rtx to
4532 rtx_code_label *.
4533 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4534 rtx_insn *.
4535 (expand_builtin_mathfn_2): Likewise.
4536 (expand_builtin_mathfn_ternary): Likewise.
4537 (expand_builtin_mathfn_3): Likewise.
4538 (expand_builtin_interclass_mathfn): Likewise for local "last".
4539 (expand_builtin_int_roundingfn): Likewise for local "insns".
4540 (expand_builtin_int_roundingfn_2): Likewise.
4541 (expand_builtin_strlen): Likewise for local "before_strlen".
4542 (expand_builtin_strncmp): Likewise for local "seq".
4543 (expand_builtin_signbit): Likewise for local "last".
4544 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4545 from rtx to rtx_code_label *.
4546 (expand_stack_restore): Strengthen local "prev" from rtx to
4547 rtx_insn *.
4548
4549 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4550
4551 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4552 to rtx_insn *.
4553 (struct btr_def_s): Likewise.
4554 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4555 const rtx_insn *.
4556 (add_btr_def): Likewise.
4557 (new_btr_user): Likewise.
4558 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4559 rtx to rtx_insn *.
4560 (link_btr_uses): Likewise.
4561 (move_btr_def): Likewise for locals "insp", "old_insn",
4562 "new_insn". Add checked cast to rtx_insn * for now on result of
4563 gen_move_insn.
4564 (can_move_up): Strengthen param "insn" from const_rtx to
4565 const rtx_insn *.
4566
4567 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4568
4569 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4570 rtx_insn *.
4571 (get_uncond_jump_length): Likewise for locals "label", "jump".
4572 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4573 "jump", "insn".
4574 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4575 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4576 (find_jump_block): Likewise for local "insn".
4577 (fix_crossing_conditional_branches): Likewise for locals
4578 "old_jump", "new_jump".
4579 (fix_crossing_unconditional_branches): Likewise for locals
4580 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4581 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4582
4583 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4584
4585 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4586 rtx to rtx_insn *.
4587 (struct mem_insn): Likewise for field "insn".
4588 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4589 (reg_next_inc_use): Likewise.
4590 (reg_next_def): Likewise.
4591 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4592 from rtx to rtx_insn *.
4593 (move_insn_before): Likewise for param "next_insn" and local "insns".
4594 (attempt_change): Likewise for local "mov_insn".
4595 (try_merge): Likewise for param "last_insn".
4596 (get_next_ref): Likewise for return type and local "insn".
4597 Strengthen param "next_array" from rtx * to rtx_insn **.
4598 (parse_add_or_inc): Strengthen param "insn" from rtx to
4599 rtx_insn *.
4600 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4601 the latter).
4602 (merge_in_block): Likewise for locals "insn", "curr",
4603 "other_insn".
4604 (pass_inc_dec::execute): Update allocations of the arrays to
4605 reflect the stronger types.
4606
4607 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4608
4609 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4610 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4611 from rtx to rtx_code_label *.
4612
4613 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4614
4615 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4616 to rtx_insn *.
4617
4618 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4619
4620 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4621 generated a warning and prevented bootstrapping the compiler.
4622
4623 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4624
4625 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4626 rtx_insn *.
4627
4628 * jump.c (delete_related_insns): Likewise, also for locals "next"
4629 and "prev".
4630
4631 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4632
4633 * genautomata.c (output_internal_insn_latency_func): When writing
4634 the function "internal_insn_latency" to insn-automata.c,
4635 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4636 allowing the optional guard function of (define_bypass) clauses to
4637 expect a pair of rtx_insn *, rather than a pair of rtx.
4638 (output_insn_latency_func): When writing the function
4639 "insn_latency", add an "uncast_" prefix to params "insn" and
4640 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4641 using checked casts from the params, thus enabling the above
4642 change to the generated "internal_insn_latency" function.
4643
4644 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4645
4646 PR tree-optimization/62091
4647 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4648 handle correctly arrays.
4649 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4650 inheritance binfos.
4651 (record_known_type): Walk into inner type.
4652 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4653 condition on no type changes.
4654
4655 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4656
4657 * genattrtab.c (write_attr_get): Within the generated get_attr_
4658 functions, rename param "insn" to "uncast_insn" and reintroduce
4659 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4660 is an rtx_insn * within insn-attrtab.c
4661
4662 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4663
4664 * output.h (peephole): Strengthen return type from rtx to
4665 rtx_insn *.
4666 * rtl.h (delete_for_peephole): Likewise for both params.
4667 * genpeep.c (main): In generated "peephole" function, strengthen
4668 return type and local "insn" from rtx to rtx_insn *. For now,
4669 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4670 rtx_insn *, with a checked cast.
4671 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4672 locals "insn", "next", "prev" from rtx to rtx_insn *.
4673
4674 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4675
4676 PR tree-optimization/62112
4677 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4678 * gimple-iterator.h (gsi_replace): Return bool.
4679 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4680 moved from ref_may_alias_global_p.
4681 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4682 New overloads.
4683 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4684 (stmt_kills_ref_p_1): Rename...
4685 (stmt_kills_ref_p): ... to this.
4686 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4687 stmt_kills_ref_p): Declare.
4688 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4689 Move the self-assignment case...
4690 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4691
4692 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4693
4694 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4695
4696 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4697 "after". For now, don't strengthen param "trial", which requires
4698 adding checked casts when returning it.
4699
4700 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4701
4702 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4703 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4704 "var_location" hook from rtx to rtx_insn *.
4705 (debug_nothing_rtx): Delete in favor of...
4706 (debug_nothing_rtx_code_label): New prototype.
4707 (debug_nothing_rtx_rtx): Delete unused prototype.
4708 (debug_nothing_rtx_insn): New prototype.
4709
4710 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4711 invoking debug_hooks->var_location (in two places, one in a NOTE
4712 case of a switch statement, the other guarded by a CALL_P
4713 conditional. Add checked cast to rtx_code_label * when invoking
4714 debug_hooks->label (within CODE_LABEL case of switch statement).
4715
4716 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4717 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4718 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4719 (xcoff_debug_hooks): Likewise.
4720 * debug.c (do_nothing_debug_hooks): Likewise.
4721 (debug_nothing_rtx): Delete in favor of...
4722 (debug_nothing_rtx_insn): New function.
4723 (debug_nothing_rtx_rtx): Delete unused function.
4724 (debug_nothing_rtx_code_label): New function.
4725 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4726 debug_nothing_rtx to debug_nothing_rtx_code_label.
4727 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4728 to rtx_insn *.
4729 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4730 debug_nothing_rtx to debug_nothing_rtx_insn.
4731 (sdbout_label): Strengthen param "insn" from rtx to
4732 rtx_code_label *.
4733 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4734 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4735 "var_location" hook from debug_nothing_rtx to
4736 debug_nothing_rtx_insn.
4737
4738 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4739
4740 * recog.h (insn_output_fn): Update this function typedef to match
4741 the changes below to the generated output functions, strengthening
4742 the 2nd param from rtx to rtx_insn *.
4743
4744 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4745 insn when invoking an output function, to match the new signature
4746 of insn_output_fn with a stronger second param.
4747
4748 * genconditions.c (write_header): In the generated code for
4749 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4750 to match the other changes in this patch.
4751
4752 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4753 the generated "gen_" functions from rtx to rtx_insn * within their
4754 implementations.
4755
4756 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4757 the subfunctions within the generated "recog_", "split", "peephole2"
4758 function trees from rtx to rtx_insn *. For now, the top-level
4759 generated functions ("recog", "split", "peephole2") continue to
4760 take a plain rtx for "insn", to avoid introducing dependencies on
4761 other patches. Rename this 2nd param from "insn" to
4762 "uncast_insn", and reintroduce "insn" as a local variable of type
4763 rtx_insn *, initialized at the top of the generated function with
4764 a checked cast on "uncast_insn".
4765 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4766 the generated "gen_" functions from rtx to rtx_insn * within their
4767 prototypes.
4768
4769 * genoutput.c (process_template): Strengthen the 2nd param within
4770 the generated "output_" functions "insn" from rtx to rtx_insn *.
4771
4772 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4773
4774 * tree-profile.c (tree_profiling): Skip external functions
4775 when doing coverage instrumentation.
4776 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4777
4778 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4779
4780 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4781 (vec_mergee): Likewise.
4782 (vec_mergeo): Likewise.
4783 (vec_cntlz): Likewise.
4784 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4785 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4786 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4787 VMRGEW, and VMRGOW.
4788 * doc/extend.texi: Document various forms of vec_cpsgn,
4789 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4790 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4791 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4792 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4793 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4794
4795 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4796
4797 * config/rs6000/rs6000.c (context.h): New include.
4798 (tree-pass.h): Likewise.
4799 (make_pass_analyze_swaps): New decl.
4800 (rs6000_option_override): Register pass_analyze_swaps.
4801 (swap_web_entry): New subsclass of web_entry_base (df.h).
4802 (special_handling_values): New enum.
4803 (union_defs): New function.
4804 (union_uses): Likewise.
4805 (insn_is_load_p): Likewise.
4806 (insn_is_store_p): Likewise.
4807 (insn_is_swap_p): Likewise.
4808 (rtx_is_swappable_p): Likewise.
4809 (insn_is_swappable_p): Likewise.
4810 (chain_purpose): New enum.
4811 (chain_contains_only_swaps): New function.
4812 (mark_swaps_for_removal): Likewise.
4813 (swap_const_vector_halves): Likewise.
4814 (adjust_subreg_index): Likewise.
4815 (permute_load): Likewise.
4816 (permute_store): Likewise.
4817 (handle_special_swappables): Likewise.
4818 (replace_swap_with_copy): Likewise.
4819 (dump_swap_insn_table): Likewise.
4820 (rs6000_analyze_swaps): Likewise.
4821 (pass_data_analyze_swaps): New pass_data.
4822 (pass_analyze_swaps): New rtl_opt_pass.
4823 (make_pass_analyze_swaps): New function.
4824 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4825
4826 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4827
4828 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4829 type from rtx to rtx_insn *.
4830 (create_copy_of_insn_rtx): Likewise.
4831 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4832 (create_copy_of_insn_rtx): Likewise, also for local "res".
4833
4834 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4835
4836 * rtl.h (find_first_parameter_load): Strengthen return type from
4837 rtx to rtx_insn *.
4838 * rtlanal.c (find_first_parameter_load): Strengthen return type
4839 from rtx to rtx_insn *. Add checked cast for now, to postpone
4840 strengthening the params.
4841
4842 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4843
4844 PR fortran/44054
4845 * diagnostic.c: Set default caret.
4846 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4847 line is needed.
4848 * diagnostic.h (struct diagnostic_context):
4849
4850 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4851
4852 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4853 (sel_bb_head): Strengthen return type insn_t (currently just an
4854 rtx) to rtx_insn *.
4855 (sel_bb_end): Likewise.
4856
4857 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4858 (sel_bb_head): Strengthen return type and local "head" from
4859 insn_t (currently just an rtx) to rtx_insn *.
4860 (sel_bb_end): Likewise for return type.
4861 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4862 working with insn.
4863
4864 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4865
4866 * basic-block.h (get_last_bb_insn): Strengthen return type from
4867 rtx to rtx_insn *.
4868 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4869 end".
4870
4871 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4872
4873 PR fortran/44054
4874 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4875 to here ...
4876 (diagnostic_report_diagnostic): ... from here.
4877 * toplev.c (general_init): Move code to c-family.
4878
4879 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4880
4881 * df.h (web_entry_base): Replace existing struct web_entry with a
4882 new class web_entry_base with only the predecessor member.
4883 (unionfind_root): Remove declaration and move to class member.
4884 (unionfind_union): Remove declaration and move to friend
4885 function.
4886 (union_defs): Remove declaration.
4887 * web.c (web_entry_base::unionfind_root): Modify to be member
4888 function and adjust accessors.
4889 (unionfind_union): Modify to be friend function and adjust
4890 accessors.
4891 (web_entry): New subclass of web_entry_base containing the reg
4892 member.
4893 (union_match_dups): Modify for struct -> class changes.
4894 (union_defs): Likewise.
4895 (entry_register): Likewise.
4896 (pass_web::execute): Likewise.
4897
4898 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4899
4900 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4901 builtin define __VEC_ELEMENT_REG_ORDER__.
4902
4903 2014-08-20 Martin Jambor <mjambor@suse.cz>
4904 Wei Mi <wmi@google.com>
4905
4906 PR ipa/60449
4907 PR middle-end/61776
4908 * tree-ssa-operands.c (update_stmt_operands): Remove
4909 MODIFIED_NORETURN_CALLS.
4910 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4911 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4912 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4913 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4914 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4915 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4916 (gimple_call_set_ctrl_altering): New func.
4917 (gimple_call_ctrl_altering_p): Ditto.
4918 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4919 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4920 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4921 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4922 remove MODIFIED_NORETURN_CALLS.
4923
4924 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4925
4926 * coverage.c (coverage_compute_profile_id): Return non-0;
4927 also handle symbols with unique name.
4928 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4929
4930 2014-08-20 Steve Ellcey <sellcey@mips.com>
4931
4932 PR middle-end/49191
4933 * doc/sourcebuild.texi (non_strict_align): New.
4934
4935 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4936
4937 * cgraphunit.c (ipa_passes, compile): Reshedule
4938 symtab_remove_unreachable_nodes passes; update comments.
4939 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4940 TODO_remove_functions before the pass; the functions ought to be
4941 already removed.
4942 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4943 TODO_remove_functions.
4944 * passes.c (pass_data_early_local_passes): Do not schedule function
4945 removal.
4946 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4947
4948 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4949
4950 PR c/59304
4951 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4952 before setting the option.
4953 * diagnostic.c (diagnostic_classify_diagnostic): Record
4954 command-line status.
4955
4956 2014-08-20 Richard Biener <rguenther@suse.de>
4957
4958 PR lto/62190
4959 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4960 to build uint{16,32,64}_type_node.
4961
4962 2014-08-20 Terry Guo <terry.guo@arm.com>
4963
4964 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4965 with immediate_operand.
4966
4967 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4968
4969 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4970 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4971 NULL.
4972
4973 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4974
4975 PR preprocessor/51303
4976 * incpath.c (remove_duplicates): Use cpp_warning.
4977
4978 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4979
4980 PR c/60975
4981 PR c/53063
4982 * doc/options.texi (CPP): Document it.
4983 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4984 * optc-gen.awk: Handle CPP.
4985 * opth-gen.awk: Likewise.
4986
4987 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4988
4989 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4990 rtx_insn *.
4991 (duplicate_insn_chain): Likewise.
4992 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4993 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4994 checked cast for now (until we can strengthen the params in the
4995 same way).
4996 (duplicate_insn_chain): Likewise.
4997
4998 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4999
5000 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5001 rtx_insn *.
5002 (prev_cc0_setter): Likewise.
5003
5004 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5005 rtx_insn *, adding checked casts for now as necessary.
5006 (prev_cc0_setter): Likewise.
5007
5008 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5009
5010 * expr.h (emit_move_insn): Strengthen return type from rtx to
5011 rtx_insn *.
5012 (emit_move_insn_1): Likewise.
5013 (emit_move_complex_push): Likewise.
5014 (emit_move_complex_parts): Likewise.
5015
5016 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5017 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5018 with insns.
5019 (emit_move_complex_push): Strengthen return type from rtx to
5020 rtx_insn *.
5021 (emit_move_complex): Likewise, also for local "ret".
5022 (emit_move_ccmode): Likewise.
5023 (emit_move_multi_word): Likewise for return type and locals
5024 "last_insn", "seq".
5025 (emit_move_insn_1): Likewise for return type and locals "result",
5026 "ret".
5027 (emit_move_insn): Likewise for return type and local "last_insn".
5028 (compress_float_constant): Likewise.
5029
5030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5031
5032 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5033 from rtx to rtx_insn *.
5034
5035 * rtl.h (emit_insn_before): Likewise.
5036 (emit_insn_before_noloc): Likewise.
5037 (emit_insn_before_setloc): Likewise.
5038 (emit_jump_insn_before): Likewise.
5039 (emit_jump_insn_before_noloc): Likewise.
5040 (emit_jump_insn_before_setloc): Likewise.
5041 (emit_call_insn_before): Likewise.
5042 (emit_call_insn_before_noloc): Likewise.
5043 (emit_call_insn_before_setloc): Likewise.
5044 (emit_debug_insn_before): Likewise.
5045 (emit_debug_insn_before_noloc): Likewise.
5046 (emit_debug_insn_before_setloc): Likewise.
5047 (emit_label_before): Likewise.
5048 (emit_insn_after): Likewise.
5049 (emit_insn_after_noloc): Likewise.
5050 (emit_insn_after_setloc): Likewise.
5051 (emit_jump_insn_after): Likewise.
5052 (emit_jump_insn_after_noloc): Likewise.
5053 (emit_jump_insn_after_setloc): Likewise.
5054 (emit_call_insn_after): Likewise.
5055 (emit_call_insn_after_noloc): Likewise.
5056 (emit_call_insn_after_setloc): Likewise.
5057 (emit_debug_insn_after): Likewise.
5058 (emit_debug_insn_after_noloc): Likewise.
5059 (emit_debug_insn_after_setloc): Likewise.
5060 (emit_label_after): Likewise.
5061 (emit_insn): Likewise.
5062 (emit_debug_insn): Likewise.
5063 (emit_jump_insn): Likewise.
5064 (emit_call_insn): Likewise.
5065 (emit_label): Likewise.
5066 (gen_clobber): Likewise.
5067 (emit_clobber): Likewise.
5068 (gen_use): Likewise.
5069 (emit_use): Likewise.
5070 (emit): Likewise.
5071
5072 (emit_barrier_before): Strengthen return type from rtx to
5073 rtx_barrier *.
5074 (emit_barrier_after): Likewise.
5075 (emit_barrier): Likewise.
5076
5077 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5078 from rtx to rtx_insn *. Add checked casts for now when converting
5079 "last" from rtx to rtx_insn *.
5080 (emit_insn_before_noloc): Likewise for return type.
5081 (emit_jump_insn_before_noloc): Likewise.
5082 (emit_call_insn_before_noloc): Likewise.
5083 (emit_debug_insn_before_noloc): Likewise.
5084 (emit_barrier_before): Strengthen return type and local "insn"
5085 from rtx to rtx_barrier *.
5086 (emit_label_before): Strengthen return type from rtx to
5087 rtx_insn *. Add checked cast for now when returning param
5088 (emit_pattern_after_noloc): Strengthen return type from rtx to
5089 rtx_insn *. Add checked casts for now when converting "last" from
5090 rtx to rtx_insn *.
5091 (emit_insn_after_noloc): Strengthen return type from rtx to
5092 rtx_insn *.
5093 (emit_jump_insn_after_noloc): Likewise.
5094 (emit_call_insn_after_noloc): Likewise.
5095 (emit_debug_insn_after_noloc): Likewise.
5096 (emit_barrier_after): Strengthen return type from rtx to
5097 rtx_barrier *.
5098 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5099 Add checked cast for now when converting "label" from rtx to
5100 rtx_insn *.
5101 (emit_pattern_after_setloc): Strengthen return type from rtx to
5102 rtx_insn *. Add checked casts for now when converting "last" from
5103 rtx to rtx_insn *.
5104 (emit_pattern_after): Strengthen return type from rtx to
5105 rtx_insn *.
5106 (emit_insn_after_setloc): Likewise.
5107 (emit_insn_after): Likewise.
5108 (emit_jump_insn_after_setloc): Likewise.
5109 (emit_jump_insn_after): Likewise.
5110 (emit_call_insn_after_setloc): Likewise.
5111 (emit_call_insn_after): Likewise.
5112 (emit_debug_insn_after_setloc): Likewise.
5113 (emit_debug_insn_after): Likewise.
5114 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5115 when converting "last" from rtx to rtx_insn *.
5116 (emit_pattern_before): Strengthen return type from rtx to
5117 rtx_insn *.
5118 (emit_insn_before_setloc): Likewise.
5119 (emit_insn_before): Likewise.
5120 (emit_jump_insn_before_setloc): Likewise.
5121 (emit_jump_insn_before): Likewise.
5122 (emit_call_insn_before_setloc): Likewise.
5123 (emit_call_insn_before): Likewise.
5124 (emit_debug_insn_before_setloc): Likewise.
5125 (emit_debug_insn_before): Likewise.
5126 (emit_insn): Strengthen return type and locals "last", "insn",
5127 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5128 within cases where we know we have an insn.
5129 (emit_debug_insn): Likewise.
5130 (emit_jump_insn): Likewise.
5131 (emit_call_insn): Strengthen return type and local "insn" from rtx
5132 to rtx_insn *.
5133 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5134 a checked cast to rtx_insn * for now on "label".
5135 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5136 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5137 (emit_use): Likewise.
5138 (gen_use): Likewise, also for local "seq".
5139 (emit): Likewise for return type and local "insn".
5140 (rtx_insn): Likewise for return type and local "new_rtx".
5141
5142 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5143 from rtx to rtx_barrier *.
5144
5145 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5146 changed return type from rtx to rtx_insn *, we must update
5147 "emit_fn" type, and this in turn means updating...
5148 (frame_insn): ...this. Strengthen return type from rtx to
5149 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5150
5151 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5152
5153 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5154 rtx to rtx_jump_table_data *. Also for local.
5155 * rtl.h (emit_jump_table_data): Likewise.
5156
5157 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5158
5159 * basic-block.h (create_basic_block_structure): Strengthen third
5160 param "bb_note" from rtx to rtx_note *.
5161 * rtl.h (emit_note_before): Strengthen return type from rtx to
5162 rtx_note *.
5163 (emit_note_after): Likewise.
5164 (emit_note): Likewise.
5165 (emit_note_copy): Likewise. Also, strengthen param similarly.
5166 * function.h (struct rtl_data): Strengthen field
5167 "x_stack_check_probe_note" from rtx to rtx_note *.
5168
5169 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5170 from rtx to rtx_note *.
5171 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5172 "bb_note" from rtx to rtx_note *.
5173 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5174 when calling emit_note_copy.
5175 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5176 rtx_note *.
5177 (emit_note_after): Likewise.
5178 (emit_note_before): Likewise.
5179 (emit_note_copy): Likewise. Also, strengthen param similarly.
5180 (emit_note): Likewise.
5181 * except.c (emit_note_eh_region_end): Likewise for return type.
5182 Strengthen local "next" from rtx to rtx_insn *.
5183 (convert_to_eh_region_ranges): Strengthen local "note"
5184 from rtx to rtx_note *.
5185 * final.c (change_scope): Likewise.
5186 (reemit_insn_block_notes): Likewise, for both locals named "note".
5187 Also, strengthen local "insn" from rtx to rtx_insn *.
5188 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5189 rtx to rtx_note *.
5190 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5191 strengthen local "seq" from rtx to rtx_insn *.
5192 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5193 to rtx_note *.
5194 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5195 vec<rtx_note *>.
5196 (get_bb_note_from_pool): Strengthen return type from rtx to
5197 rtx_note *.
5198 (sel_create_basic_block): Strengthen local "new_bb_note" from
5199 insn_t to rtx_note *.
5200 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5201 "note" from rtx to rtx_note *.
5202 (emit_notes_in_bb): Likewise.
5203
5204 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5205
5206 * function.h (struct rtl_data): Strengthen field
5207 "x_parm_birth_insn" from rtx to rtx_insn *.
5208 * function.c (struct assign_parm_data_all): Strengthen fields
5209 "first_conversion_insn" and "last_conversion_insn" from rtx to
5210 rtx_insn *.
5211
5212 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5213
5214 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5215 to rtx_insn *; also for local "var_end_seq".
5216 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5217 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5218 "insn".
5219 (expand_gimple_cond): Likewise for locals "last2" and "last".
5220 (mark_transaction_restart_calls): Likewise for local "insn".
5221 (expand_gimple_stmt): Likewise for return type and locals "last"
5222 and "insn".
5223 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5224 (avoid_complex_debug_insns): Likewise for param "insn".
5225 (expand_debug_locations): Likewise for locals "insn", "last",
5226 "prev_insn" and "insn2".
5227 (expand_gimple_basic_block): Likewise for local "last".
5228 (construct_exit_block): Likewise for locals "head", "end",
5229 "orig_end".
5230 (pass_expand::execute): Likewise for locals "var_seq",
5231 "var_ret_seq", "next".
5232
5233 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5234
5235 * asan.h (asan_emit_stack_protection): Strengthen return type from
5236 rtx to rtx_insn *.
5237 * asan.c (asan_emit_stack_protection): Likewise. Add local
5238 "insns" to hold the return value.
5239
5240 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5241
5242 * basic-block.h (bb_note): Strengthen return type from rtx to
5243 rtx_note *.
5244 * sched-int.h (bb_note): Likewise.
5245 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5246
5247 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5248
5249 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5250 rtx_insn *.
5251
5252 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5253 "insn" from rtx to rtx_insn *.
5254 (make_debug_insn_raw): Strengthen return type from rtx to
5255 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5256 (make_jump_insn_raw): Strengthen return type from rtx to
5257 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5258 (make_call_insn_raw): Strengthen return type from rtx to
5259 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5260 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5261 callback from rtx to rtx_insn *; likewise for local "insn" and
5262 "next", adding a checked cast to rtx_insn in the relevant cases of
5263 the switch statement.
5264 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5265 callback from rtx to rtx_insn *.
5266 (emit_pattern_after_setloc): Likewise.
5267 (emit_pattern_after): Likewise.
5268 (emit_pattern_before_setloc): Likewise.
5269 (emit_pattern_before): Likewise.
5270
5271 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5272
5273 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5274 rtx_call_insn *.
5275 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5276 accepting an rtx_insn *.
5277 (last_call_insn): Strengthen return type from rtx to
5278 rtx_call_insn *.
5279
5280 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5281
5282 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5283 "insns" from rtx to rtx_insn *.
5284 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5285 locals "insn" and "prev".
5286
5287 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5288
5289 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5290 rtx_jump_table_data **.
5291
5292 * cfgbuild.c (make_edges): Introduce local "table", using it in
5293 place of "tmp" for jump table data.
5294 (find_bb_boundaries): Strengthen local "table" from rtx to
5295 rtx_jump_table_data *.
5296 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5297 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5298 (try_crossjump_to_edge): Likewise.
5299 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5300 "table".
5301 (patch_jump_insn): Introduce local "table", using it in place of
5302 "tmp" for jump table data.
5303 (force_nonfallthru_and_redirect): Introduce local "table", so that
5304 call to tablejump_p can receive an rtx_jump_table_data **. Update
5305 logic around the call to overwrite "note" appropriately if
5306 tablejump_p returns non-zero.
5307 (get_last_bb_insn): Introduce local "table", using it in place of
5308 "tmp" for jump table data.
5309 * dwarf2cfi.c (create_trace_edges): Likewise.
5310
5311 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5312 from rtx to rtx_jump_table_data *.
5313 (create_fix_barrier): Strengthen local "tmp" from rtx to
5314 rtx_jump_table_data *.
5315 (arm_reorg): Likewise for local "table".
5316
5317 * config/s390/s390.c (s390_chunkify_start): Likewise.
5318
5319 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5320
5321 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5322 rtx to rtx_jump_table_data *.
5323
5324 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5325 rtx_jump_table_data **. Add a checked cast when writing through
5326 the pointer: we know there that local "table" is non-NULL and that
5327 JUMP_TABLE_DATA_P (table) holds.
5328 (label_is_jump_target_p): Introduce local "table", using it in
5329 place of "tmp" for jump table data.
5330
5331 2014-08-19 Marek Polacek <polacek@redhat.com>
5332
5333 PR c++/62153
5334 * doc/invoke.texi: Document -Wbool-compare.
5335
5336 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5337
5338 * rtl.h (entry_of_function): Strengthen return type from rtx to
5339 rtx_insn *.
5340 * cfgrtl.c (entry_of_function): Likewise.
5341
5342 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5343
5344 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5345 rtx_insn *, adding a checked cast for now.
5346 (get_last_insn): Likewise.
5347
5348 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5349
5350 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5351 rtx_code_label *.
5352
5353 * emit-rtl.c (gen_label_rtx): Likewise.
5354
5355 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5356
5357 * rtl.h (previous_insn): Strengthen return type from rtx to
5358 rtx_insn *.
5359 (next_insn): Likewise.
5360 (prev_nonnote_insn): Likewise.
5361 (prev_nonnote_insn_bb): Likewise.
5362 (next_nonnote_insn): Likewise.
5363 (next_nonnote_insn_bb): Likewise.
5364 (prev_nondebug_insn): Likewise.
5365 (next_nondebug_insn): Likewise.
5366 (prev_nonnote_nondebug_insn): Likewise.
5367 (next_nonnote_nondebug_insn): Likewise.
5368 (prev_real_insn): Likewise.
5369 (next_real_insn): Likewise.
5370 (prev_active_insn): Likewise.
5371 (next_active_insn): Likewise.
5372
5373 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5374 rtx_insn *, adding a checked cast.
5375 (previous_insn): Likewise.
5376 (next_nonnote_insn): Likewise.
5377 (next_nonnote_insn_bb): Likewise.
5378 (prev_nonnote_insn): Likewise.
5379 (prev_nonnote_insn_bb): Likewise.
5380 (next_nondebug_insn): Likewise.
5381 (prev_nondebug_insn): Likewise.
5382 (next_nonnote_nondebug_insn): Likewise.
5383 (prev_nonnote_nondebug_insn): Likewise.
5384 (next_real_insn): Likewise.
5385 (prev_real_insn): Likewise.
5386 (next_active_insn): Likewise.
5387 (prev_active_insn): Likewise.
5388
5389 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5390 param "stepfunc" so that it returns an rtx_insn * rather than an
5391 rtx, to track the change to prev_nonnote_insn_bb, which is the
5392 only function this is called with.
5393 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5394
5395 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5396
5397 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5398 assert.
5399
5400 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5401
5402 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5403 (class rtx_nonjump_insn): Likewise.
5404 (class rtx_jump_insn): Likewise.
5405 (class rtx_call_insn): Likewise.
5406 (class rtx_jump_table_data): Likewise.
5407 (class rtx_barrier): Likewise.
5408 (class rtx_code_label): Likewise.
5409 (class rtx_note): Likewise.
5410
5411 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5412 adding the invariant DEBUG_INSN_P (X).
5413 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5414 the invariant NONJUMP_INSN_P (X).
5415 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5416 the invariant JUMP_P (X).
5417 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5418 the invariant CALL_P (X).
5419 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5420 invariant JUMP_TABLE_DATA_P (X).
5421 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5422 invariant BARRIER_P (X).
5423 (class rtx_code_label): New, a subclass of rtx_insn, adding
5424 the invariant LABEL_P (X).
5425 (class rtx_note): New, a subclass of rtx_insn, adding
5426 the invariant NOTE_P(X).
5427 (is_a_helper <rtx_debug_insn *>::test): New.
5428 (is_a_helper <rtx_nonjump_insn *>::test): New.
5429 (is_a_helper <rtx_jump_insn *>::test): New.
5430 (is_a_helper <rtx_call_insn *>::test): New.
5431 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5432 overloaded for both rtx and rtx_insn *.
5433 (is_a_helper <rtx_barrier *>::test): New.
5434 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5435 for both rtx and rtx_insn *.
5436 (is_a_helper <rtx_note *>::test): New.
5437
5438 2014-08-19 Marek Polacek <polacek@redhat.com>
5439
5440 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5441 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5442 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5443 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5444
5445 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5446
5447 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5448 rtx_insn *. To help with transition, for now, convert from an
5449 access macro into a pair of functions: BND_TO, returning an
5450 rtx_insn *, and...
5451 (SET_BND_TO): New function, for use where BND_TO is used as an
5452 lvalue.
5453
5454 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5455 SET_BND_TO.
5456 (BND_TO): New function, adding a checked cast.
5457 (SET_BND_TO): New function.
5458
5459 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5460 SET_BND_TO.
5461 (compute_av_set_on_boundaries): Likewise.
5462
5463 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5464
5465 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5466 destination if it is used in source.
5467 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5468 (*popcount<mode>2_falsedep_1): Likewise.
5469
5470 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5471
5472 PR other/62168
5473 * configure.ac: Set install_gold_as_default to no first.
5474 * configure: Regenerated.
5475
5476 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5477
5478 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5479 "note_list" field will eventually be an rtx_insn *. To help with
5480 transition, for now, convert from an access macro into a pair of
5481 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5482 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5483 used as an lvalue.
5484
5485 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5486 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5487
5488 * sel-sched-ir.c (init_bb): Likewise.
5489 (sel_restore_notes): Likewise.
5490 (move_bb_info): Likewise.
5491 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5492 (SET_BB_NOTE_LIST): New function.
5493
5494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5495
5496 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5497 field will eventually be an rtx_insn *. To help with transition,
5498 for now, convert from an access macro into a pair of functions:
5499 VINSN_INSN_RTX, returning an rtx_insn *, and...
5500 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5501 is used as an lvalue.
5502
5503 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5504 SET_VINSN_INSN_RTX where it's used as an lvalue.
5505 (VINSN_INSN_RTX): New function.
5506 (SET_VINSN_INSN_RTX): New function.
5507
5508 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5509
5510 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5511 eventually be rtx_insn *, but to help with transition, for now,
5512 convert from an access macro into a pair of functions: DEP_PRO
5513 returning an rtx_insn * and...
5514 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5515 lvalue, returning an rtx&.
5516 (DEP_CON): Analogous changes to DEP_PRO above.
5517 (SET_DEP_CON): Likewise.
5518
5519 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5520 an lvalue to SET_DEP_CON.
5521 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5522 (sd_copy_back_deps): Likewise for DEP_CON.
5523 (DEP_PRO): New function, adding a checked cast for now.
5524 (DEP_CON): Likewise.
5525 (SET_DEP_PRO): New function.
5526 (SET_DEP_CON): Likewise.
5527
5528 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5529
5530 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5531 (extra_options): Add i386/cygwin.opt.
5532 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5533 (CPP_SPEC): Accept -pthread.
5534 (LINK_SPEC): Ditto.
5535 (GOMP_SELF_SPECS): Update comment.
5536 * config/i386/cygwin.opt: New file for -pthread flag.
5537
5538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5539
5540 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5541 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5542 that we can return an rtx_insn *.
5543
5544 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5545
5546 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5547 when building executables, not DLLs. Add --large-address-aware
5548 under the same conditions.
5549 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5550 when building executables, not DLLs. Add --large-address-aware
5551 under the same conditions when using -m32.
5552
5553 * config/i386/cygwin-stdint.h: Throughout, make type
5554 definitions dependent on target architecture, not host.
5555
5556 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5557
5558 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5559 the return type from rtx to rtx_insn *, which will enable various
5560 conversions in followup patches. For now this is is done by a
5561 checked cast.
5562 (NEXT_INSN): Likewise.
5563 (SET_PREV_INSN): Convert to an inline function. This is intended
5564 for use as an lvalue, and so returns an rtx& to allow in-place
5565 modification.
5566 (SET_NEXT_INSN): Likewise.
5567
5568 2014-07-08 Mark Wielaard <mjw@redhat.com>
5569
5570 PR debug/59051
5571 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5572
5573 2014-08-19 Marek Polacek <polacek@redhat.com>
5574
5575 PR c/61271
5576 * cgraphunit.c (handle_alias_pairs): Fix condition.
5577
5578 2014-08-19 Richard Biener <rguenther@suse.de>
5579
5580 * gimple-fold.c (fold_gimple_assign): Properly build a
5581 null-pointer constant when devirtualizing addresses.
5582
5583 2014-07-07 Mark Wielaard <mjw@redhat.com>
5584
5585 * dwarf2out.c (decl_quals): New function.
5586 (modified_type_die): Take one cv_quals argument instead of two,
5587 one for const and one for volatile.
5588 (add_type_attribute): Likewise.
5589 (generic_parameter_die): Call add_type_attribute with one modifier
5590 argument.
5591 (base_type_for_mode): Likewise.
5592 (add_bounds_info): Likewise.
5593 (add_subscript_info): Likewise.
5594 (gen_array_type_die): Likewise.
5595 (gen_descr_array_type_die): Likewise.
5596 (gen_entry_point_die): Likewise.
5597 (gen_enumeration_type_die): Likewise.
5598 (gen_formal_parameter_die): Likewise.
5599 (gen_subprogram_die): Likewise.
5600 (gen_variable_die): Likewise.
5601 (gen_const_die): Likewise.
5602 (gen_field_die): Likewise.
5603 (gen_pointer_type_die): Likewise.
5604 (gen_reference_type_die): Likewise.
5605 (gen_ptr_to_mbr_type_die): Likewise.
5606 (gen_inheritance_die): Likewise.
5607 (gen_subroutine_type_die): Likewise.
5608 (gen_typedef_die): Likewise.
5609 (force_type_die): Likewise.
5610
5611 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5612
5613 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5614 if unset.
5615 * configure: Regenerate.
5616
5617 2014-08-19 Richard Biener <rguenther@suse.de>
5618
5619 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5620 DECL_EXTERNALs in BLOCKs as non-references.
5621 * tree-streamer-out.c (streamer_write_chain): Likewise.
5622
5623 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5625 Anna Tikhonova <anna.tikhonova@intel.com>
5626 Ilya Tocar <ilya.tocar@intel.com>
5627 Andrey Turetskiy <andrey.turetskiy@intel.com>
5628 Ilya Verbin <ilya.verbin@intel.com>
5629 Kirill Yukhin <kirill.yukhin@intel.com>
5630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5631
5632 * config/i386/sse.md
5633 (define_mode_iterator VI48_AVX512F): Delete.
5634 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5635 (define_mode_iterator VI2_AVX512VL): Ditto.
5636 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5637 Delete.
5638 (define_insn
5639 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5640 New.
5641 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5642 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5643 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5644 with VI48_AVX512F_AVX512VL): New.
5645 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5646 with VI2_AVX512VL): Ditto.
5647
5648 2014-08-19 Marek Polacek <polacek@redhat.com>
5649
5650 * doc/invoke.texi: Document -Wc99-c11-compat.
5651
5652 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5653
5654 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5655 for rvalues, and...
5656 (SET_PREV_INSN): New macro, for use as an lvalue.
5657 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5658
5659 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5660 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5661 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5662 (fixup_abnormal_edges): Likewise.
5663 (unlink_insn_chain): Likewise.
5664 (fixup_reorder_chain): Likewise.
5665 (cfg_layout_delete_block): Likewise.
5666 (cfg_layout_merge_blocks): Likewise.
5667 * combine.c (update_cfg_for_uncondjump): Likewise.
5668 * emit-rtl.c (link_insn_into_chain): Likewise.
5669 (remove_insn): Likewise.
5670 (delete_insns_since): Likewise.
5671 (reorder_insns_nobb): Likewise.
5672 (emit_insn_after_1): Likewise.
5673 * final.c (rest_of_clean_state): Likewise.
5674 (final_scan_insn): Likewise.
5675 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5676 * haifa-sched.c (concat_note_lists): Likewise.
5677 (remove_notes): Likewise.
5678 (restore_other_notes): Likewise.
5679 (move_insn): Likewise.
5680 (unlink_bb_notes): Likewise.
5681 (restore_bb_notes): Likewise.
5682 * jump.c (delete_for_peephole): Likewise.
5683 * optabs.c (emit_libcall_block_1): Likewise.
5684 * reorg.c (emit_delay_sequence): Likewise.
5685 (fill_simple_delay_slots): Likewise.
5686 * sel-sched-ir.c (sel_move_insn): Likewise.
5687 (sel_remove_insn): Likewise.
5688 (get_bb_note_from_pool): Likewise.
5689 * sel-sched.c (move_nop_to_previous_block): Likewise.
5690
5691 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5692 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5693 (c6x_gen_bundles): Likewise.
5694 (hwloop_optimize): Likewise.
5695 * config/frv/frv.c (frv_function_prologue): Likewise.
5696 (frv_register_nop): Likewise.
5697 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5698 (ia64_reorg): Likewise.
5699 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5700 (mep_make_bundle): Likewise.
5701 (mep_bundle_insns): Likewise.
5702 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5703 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5704 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5705
5706 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5707
5708 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5709 return type from rtx to rtx_insn *.
5710 (BB_END): Likewise.
5711 (BB_HEADER): Likewise.
5712 (BB_FOOTER): Likewise.
5713 (SET_BB_HEAD): Convert to a function.
5714 (SET_BB_END): Likewise.
5715 (SET_BB_HEADER): Likewise.
5716 (SET_BB_FOOTER): Likewise.
5717
5718 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5719 Strengthen the return type from rtx to rtx_insn *. For now, this
5720 is done by adding a checked cast, but this will eventually
5721 become a field lookup.
5722 (BB_END): Likewise.
5723 (BB_HEADER): Likewise.
5724 (BB_FOOTER): Likewise.
5725 (SET_BB_HEAD): New function, from macro of same name. This is
5726 intended for use as an lvalue, and so returns an rtx& to allow
5727 in-place modification.
5728 (SET_BB_END): Likewise.
5729 (SET_BB_HEADER): Likewise.
5730 (SET_BB_FOOTER): Likewise.
5731
5732 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5733
5734 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5735 for rvalues, and...
5736 (SET_BB_HEAD): New macro, for use as a lvalue.
5737 (BB_END, SET_BB_END): Likewise.
5738 (BB_HEADER, SET_BB_HEADER): Likewise.
5739 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5740
5741 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5742 of BB_* macros into SET_BB_* macros.
5743 (fix_crossing_unconditional_branches): Likewise.
5744 * caller-save.c (save_call_clobbered_regs): Likewise.
5745 (insert_one_insn): Likewise.
5746 * cfgbuild.c (find_bb_boundaries): Likewise.
5747 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5748 (outgoing_edges_match): Likewise.
5749 (try_optimize_cfg): Likewise.
5750 * cfgexpand.c (expand_gimple_cond): Likewise.
5751 (expand_gimple_tailcall): Likewise.
5752 (expand_gimple_basic_block): Likewise.
5753 (construct_exit_block): Likewise.
5754 * cfgrtl.c (delete_insn): Likewise.
5755 (create_basic_block_structure): Likewise.
5756 (rtl_delete_block): Likewise.
5757 (rtl_split_block): Likewise.
5758 (emit_nop_for_unique_locus_between): Likewise.
5759 (rtl_merge_blocks): Likewise.
5760 (block_label): Likewise.
5761 (try_redirect_by_replacing_jump): Likewise.
5762 (emit_barrier_after_bb): Likewise.
5763 (fixup_abnormal_edges): Likewise.
5764 (record_effective_endpoints): Likewise.
5765 (relink_block_chain): Likewise.
5766 (fixup_reorder_chain): Likewise.
5767 (fixup_fallthru_exit_predecessor): Likewise.
5768 (cfg_layout_duplicate_bb): Likewise.
5769 (cfg_layout_split_block): Likewise.
5770 (cfg_layout_delete_block): Likewise.
5771 (cfg_layout_merge_blocks): Likewise.
5772 * combine.c (update_cfg_for_uncondjump): Likewise.
5773 * emit-rtl.c (add_insn_after): Likewise.
5774 (remove_insn): Likewise.
5775 (reorder_insns): Likewise.
5776 (emit_insn_after_1): Likewise.
5777 * haifa-sched.c (get_ebb_head_tail): Likewise.
5778 (restore_other_notes): Likewise.
5779 (move_insn): Likewise.
5780 (sched_extend_bb): Likewise.
5781 (fix_jump_move): Likewise.
5782 * ifcvt.c (noce_process_if_block): Likewise.
5783 (dead_or_predicable): Likewise.
5784 * ira.c (update_equiv_regs): Likewise.
5785 * reg-stack.c (change_stack): Likewise.
5786 * sel-sched-ir.c (sel_move_insn): Likewise.
5787 * sel-sched.c (move_nop_to_previous_block): Likewise.
5788
5789 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5790 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5791
5792 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5793
5794 * rtl.h (for_each_rtx_in_insn): New function.
5795 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5796
5797 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5798
5799 * coretypes.h (class rtx_insn): Add forward declaration.
5800
5801 * rtl.h: Include is-a.h.
5802 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5803 workaround to ensure gengtype knows inheritance is occurring,
5804 whilst continuing to use the pre-existing special-casing for
5805 rtx_def.
5806 (class rtx_insn): New subclass of rtx_def, adding the
5807 invariant that we're dealing with something we can sanely use
5808 INSN_UID, NEXT_INSN, PREV_INSN on.
5809 (is_a_helper <rtx_insn *>::test): New.
5810 (is_a_helper <const rtx_insn *>::test): New.
5811
5812 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5813
5814 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5815
5816 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5817
5818 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5819 comdats as extern.
5820
5821 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5822
5823 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5824 to BUILT_IN_UNREACHABLE.
5825
5826 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5827
5828 PR target/62011
5829 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5830 New tune flag.
5831 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5832 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5833 (ffs<mode>2): Do not expand with tzcnt for
5834 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5835 (ffssi2_no_cmove): Ditto.
5836 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5837 (ctz<mode>2): New expander.
5838 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5839 (*ctz<mode>2_falsedep): New insn.
5840 (*ctz<mode>2): Rename from ctz<mode>2.
5841 (clz<mode>2_lzcnt): New expander.
5842 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5843 (*clz<mode>2_lzcnt_falsedep): New insn.
5844 (*clz<mode>2): Rename from ctz<mode>2.
5845 (popcount<mode>2): New expander.
5846 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5847 (*popcount<mode>2_falsedep): New insn.
5848 (*popcount<mode>2): Rename from ctz<mode>2.
5849 (*popcount<mode>2_cmp): Remove.
5850 (*popcountsi2_cmp_zext): Ditto.
5851
5852 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5853
5854 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5855 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5856 * config/microblaze/microblaze.h
5857 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5858
5859 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5860
5861 PR other/62168
5862 * configure.ac: Set install_gold_as_default to no for
5863 --enable-gold=no.
5864 * configure: Regenerated.
5865
5866 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5867
5868 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5869 * config.in: Add undef of HAVE_isl.
5870 * configure: Regenerate.
5871 * configure.ac: Add definition of HAVE_isl.
5872 * graphite-blocking.c: Add checking of HAVE_isl.
5873 * graphite-dependences.c: Likewise.
5874 * graphite-interchange.c: Likewise.
5875 * graphite-isl-ast-to-gimple.c: Likewise.
5876 * graphite-optimize-isl.c: Likewise.
5877 * graphite-poly.c: Likewise.
5878 * graphite-scop-detection.c: Likewise.
5879 * graphite-sese-to-poly.c: Likewise.
5880 * graphite.c: Likewise.
5881 * toplev.c: Replace the checking of HAVE_cloog with the checking
5882 of HAVE_isl.
5883
5884 2014-08-18 Richard Biener <rguenther@suse.de>
5885
5886 PR tree-optimization/62090
5887 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5888 (fold_builtin_3): Do not fold snprintf.
5889 (fold_builtin_4): Likewise.
5890 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5891 moved from builtins.c.
5892 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5893 (gimple_fold_builtin): Do not fold sprintf here.
5894
5895 2014-08-18 Richard Biener <rguenther@suse.de>
5896
5897 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5898 code to ...
5899 (maybe_canonicalize_mem_ref_addr): ... this function.
5900 (fold_stmt_1): Apply it here before all simplification.
5901
5902 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5903
5904 PR ipa/61800
5905 * cgraph.h (cgraph_node::create_indirect_edge): Add
5906 compute_indirect_info param.
5907 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5908 indirect_info only when it is required.
5909 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5910 indirect_info fore cloned indirect edge.
5911
5912 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5914 Anna Tikhonova <anna.tikhonova@intel.com>
5915 Ilya Tocar <ilya.tocar@intel.com>
5916 Andrey Turetskiy <andrey.turetskiy@intel.com>
5917 Ilya Verbin <ilya.verbin@intel.com>
5918 Kirill Yukhin <kirill.yukhin@intel.com>
5919 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5920
5921 * config/i386/sse.md
5922 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5923 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5924
5925 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5927 Anna Tikhonova <anna.tikhonova@intel.com>
5928 Ilya Tocar <ilya.tocar@intel.com>
5929 Andrey Turetskiy <andrey.turetskiy@intel.com>
5930 Ilya Verbin <ilya.verbin@intel.com>
5931 Kirill Yukhin <kirill.yukhin@intel.com>
5932 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5933
5934 * config/i386/sse.md
5935 (define_mode_iterator VF1_AVX512VL): New.
5936 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5937 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5938 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/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5950 * config/i386/i386.md
5951 (define_code_iterator any_float): New.
5952 (define_code_attr floatsuffix): New.
5953 * config/i386/sse.md
5954 (define_mode_iterator VF1_128_256VL): New.
5955 (define_mode_iterator VF2_512_256VL): New.
5956 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5957 TARGET check.
5958 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5959 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5960 New.
5961 (define_mode_attr qq2pssuff): New.
5962 (define_mode_attr sselongvecmode): New.
5963 (define_mode_attr sselongvecmodelower): New.
5964 (define_mode_attr sseintvecmode3): New.
5965 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5966 New.
5967 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5968 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5969 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5970 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5971
5972 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5974 Anna Tikhonova <anna.tikhonova@intel.com>
5975 Ilya Tocar <ilya.tocar@intel.com>
5976 Andrey Turetskiy <andrey.turetskiy@intel.com>
5977 Ilya Verbin <ilya.verbin@intel.com>
5978 Kirill Yukhin <kirill.yukhin@intel.com>
5979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5980
5981 * config/i386/sse.md
5982 (define_mode_iterator VF2_AVX512VL): New.
5983 (define_mode_attr sseintvecmode2): New.
5984 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5985 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5986 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5987 (define_insn
5988 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5989 Ditto.
5990 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5991 Ditto.
5992 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5993 Ditto.
5994
5995 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5997 Anna Tikhonova <anna.tikhonova@intel.com>
5998 Ilya Tocar <ilya.tocar@intel.com>
5999 Andrey Turetskiy <andrey.turetskiy@intel.com>
6000 Ilya Verbin <ilya.verbin@intel.com>
6001 Kirill Yukhin <kirill.yukhin@intel.com>
6002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6003
6004 * config/i386/i386.md
6005 (define_insn "*movoi_internal_avx"): Add evex version.
6006 (define_insn "*movti_internal"): Ditto.
6007
6008 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6009 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6010 Anna Tikhonova <anna.tikhonova@intel.com>
6011 Ilya Tocar <ilya.tocar@intel.com>
6012 Andrey Turetskiy <andrey.turetskiy@intel.com>
6013 Ilya Verbin <ilya.verbin@intel.com>
6014 Kirill Yukhin <kirill.yukhin@intel.com>
6015 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6016
6017 * config/i386/i386.md
6018 (define_attr "isa"): Add avx512dq, noavx512dq.
6019 (define_attr "enabled"): Ditto.
6020 * config/i386/sse.md
6021 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6022
6023 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6024 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6025 Anna Tikhonova <anna.tikhonova@intel.com>
6026 Ilya Tocar <ilya.tocar@intel.com>
6027 Andrey Turetskiy <andrey.turetskiy@intel.com>
6028 Ilya Verbin <ilya.verbin@intel.com>
6029 Kirill Yukhin <kirill.yukhin@intel.com>
6030 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6031
6032 * config/i386/i386.c
6033 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6034 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6035 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6036 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6037 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6038 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6039 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6040 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6041 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6042 * config/i386/sse.md
6043 (define_mode_iterator VMOVE): Allow V4TI mode.
6044 (define_mode_iterator V_AVX512VL): New.
6045 (define_mode_iterator V): New handling for AVX512VL.
6046 (define_insn "avx512f_load<mode>_mask"): Delete.
6047 (define_insn "<avx512>_load<mode>_mask"): New.
6048 (define_insn "avx512f_store<mode>_mask"): Delete.
6049 (define_insn "<avx512>_store<mode>_mask"): New.
6050
6051
6052 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6053
6054 PR sanitizer/62089
6055 * asan.c (instrument_derefs): Fix bitfield check.
6056
6057 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6058
6059 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6060 * config/rs6000/htm.md (ttest): Remove clobber.
6061 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6062 (and_operand): Reformat.
6063 (and_2rld_operand): New predicate.
6064 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6065 parameter.
6066 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6067 parameter. Handle AND directly.
6068 (rs6000_split_logical_di): Remove last parameter.
6069 (rs6000_split_logical): Remove last parameter. Remove obsolete
6070 comment.
6071 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6072 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6073 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6074 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6075 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6076 and 5 anonymous splitters): Delete.
6077 (and<mode>3): New expander.
6078 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6079 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6080 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6081 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6082 (floatdisf2_internal1): Remove clobbers.
6083 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6084 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6085 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6086 (and<mode>3 for BOOL_128): Remove clobber.
6087 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6088 rs6000_split_logical.
6089 (*bool<mode>3_internal for BOOL_128): Adjust call of
6090 rs6000_split_logical.
6091 (*boolc<mode>3_internal1 for BOOL_128,
6092 *boolc<mode>3_internal2 for BOOL_128,
6093 *boolcc<mode>3_internal1 for BOOL_128,
6094 *boolcc<mode>3_internal2 for BOOL_128,
6095 *eqv<mode>3_internal1 for BOOL_128,
6096 *eqv<mode>3_internal2 for BOOL_128,
6097 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6098 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6099 clobber.
6100 (*vec_reload_and_reg_<mptrsize>): Delete.
6101
6102 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6103
6104 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6105 and split, *boolccsi3_internal3 and split): Delete.
6106 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6107 *boolccdi3_internal3 and split): Delete.
6108 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6109 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6110
6111 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6112
6113 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6114 and split, *boolcsi3_internal3 and split): Delete.
6115 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6116 *boolcdi3_internal3 and split): Delete.
6117 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6118
6119 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6120
6121 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6122 <'u'>: Also support printing the low-order 16 bits.
6123 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6124 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6125 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6126 *booldi3_internal3 and split): Delete.
6127 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6128 *bool<mode>3_dot2): New.
6129 (two anonymous define_splits for non_logical_cint_operand): Merge.
6130
6131 2014-08-17 Marek Polacek <polacek@redhat.com>
6132 Manuel López-Ibáñez <manu@gcc.gnu.org>
6133
6134 PR c/62059
6135 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6136 (diagnostic_show_locus): Don't print caret diagnostic
6137 if a column is larger than the line_width.
6138
6139 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6140
6141 * common.opt: Make the ISL AST generator to be the main code generator
6142 of Graphite.
6143
6144 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6145
6146 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6147
6148 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6149
6150 PR target/61641
6151 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6152 Declare.
6153 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6154 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6155 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6156 Define.
6157 * config/pa/pa.md (begin_brtab): Delete insn.
6158 (end_brtab): Likewise.
6159
6160 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6161
6162 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6163
6164 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6165
6166 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6167 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6168 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6169 (get_dynamic_type): Remove.
6170 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6171 (clear_speculation): Bring to ipa-deivrt.h
6172 (get_class_context): Rename to ...
6173 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6174 (contains_type_p): Update.
6175 (get_dynamic_type): Rename to ...
6176 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6177 (possible_polymorphic_call_targets): UPdate.
6178 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6179 * ipa-prop.c (ipa_analyze_call_uses): Update.
6180
6181 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6182
6183 * doc/invoke.texi (SH options): Document missing processor variant
6184 options. Remove references to Hitachi. Undocument deprecated mspace
6185 option.
6186
6187 2014-08-15 Jason Merrill <jason@redhat.com>
6188
6189 * tree.c (type_hash_canon): Uncomment assert.
6190
6191 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6192
6193 * input.h (in_system_header_at): Add comment.
6194
6195 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6196
6197 PR fortran/44054
6198 * diagnostic.c (build_message_string): Make it extern.
6199 * diagnostic.h (build_message_string): Make it extern.
6200
6201 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6202
6203 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6204 load/store from/to non-floating class pseudo.
6205
6206 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6207
6208 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6209
6210 2014-08-15 Richard Biener <rguenther@suse.de>
6211
6212 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6213 (get_constraint_for_ssa_var): Remove dead code.
6214 (get_constraint_for_1): Adjust.
6215 (find_what_var_points_to): Likewise.
6216 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6217
6218 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6219
6220 PR target/61878
6221 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6222 (_mm512_mask_cmpge_epu32_mask): Ditto.
6223 (_mm512_cmpge_epu32_mask): Ditto.
6224 (_mm512_mask_cmpge_epi64_mask): Ditto.
6225 (_mm512_cmpge_epi64_mask): Ditto.
6226 (_mm512_mask_cmpge_epu64_mask): Ditto.
6227 (_mm512_cmpge_epu64_mask): Ditto.
6228 (_mm512_mask_cmple_epi32_mask): Ditto.
6229 (_mm512_cmple_epi32_mask): Ditto.
6230 (_mm512_mask_cmple_epu32_mask): Ditto.
6231 (_mm512_cmple_epu32_mask): Ditto.
6232 (_mm512_mask_cmple_epi64_mask): Ditto.
6233 (_mm512_cmple_epi64_mask): Ditto.
6234 (_mm512_mask_cmple_epu64_mask): Ditto.
6235 (_mm512_cmple_epu64_mask): Ditto.
6236 (_mm512_mask_cmplt_epi32_mask): Ditto.
6237 (_mm512_cmplt_epi32_mask): Ditto.
6238 (_mm512_mask_cmplt_epu32_mask): Ditto.
6239 (_mm512_cmplt_epu32_mask): Ditto.
6240 (_mm512_mask_cmplt_epi64_mask): Ditto.
6241 (_mm512_cmplt_epi64_mask): Ditto.
6242 (_mm512_mask_cmplt_epu64_mask): Ditto.
6243 (_mm512_cmplt_epu64_mask): Ditto.
6244 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6245 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6246 (_mm512_cmpneq_epu32_mask): Ditto.
6247 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6248 (_mm512_cmpneq_epi64_mask): Ditto.
6249 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6250 (_mm512_cmpneq_epu64_mask): Ditto.
6251 (_mm512_castpd_ps): Ditto.
6252 (_mm512_castpd_si512): Ditto.
6253 (_mm512_castps_pd): Ditto.
6254 (_mm512_castps_si512): Ditto.
6255 (_mm512_castsi512_ps): Ditto.
6256 (_mm512_castsi512_pd): Ditto.
6257 (_mm512_castpd512_pd128): Ditto.
6258 (_mm512_castps512_ps128): Ditto.
6259 (_mm512_castsi512_si128): Ditto.
6260 (_mm512_castpd512_pd256): Ditto.
6261 (_mm512_castps512_ps256): Ditto.
6262 (_mm512_castsi512_si256): Ditto.
6263 (_mm512_castpd128_pd512): Ditto.
6264 (_mm512_castps128_ps512): Ditto.
6265 (_mm512_castsi128_si512): Ditto.
6266 (_mm512_castpd256_pd512): Ditto.
6267 (_mm512_castps256_ps512): Ditto.
6268 (_mm512_castsi256_si512): Ditto.
6269 (_mm512_cmpeq_epu32_mask): Ditto.
6270 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6271 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6272 (_mm512_cmpeq_epu64_mask): Ditto.
6273 (_mm512_cmpgt_epu32_mask): Ditto.
6274 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6275 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6276 (_mm512_cmpgt_epu64_mask): Ditto.
6277 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6278 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6279 * config/i386/i386.c (enum ix86_builtins): Add
6280 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6281 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6282 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6283 (bdesc_args): Add __builtin_ia32_si512_256si,
6284 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6285 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6286 __builtin_ia32_pd512_pd.
6287 (ix86_expand_args_builtin): Handle new FTYPEs.
6288 * config/i386/sse.md (castmode): Add 512-bit modes.
6289 (AVX512MODE2P): New.
6290 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6291 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6292
6293 2014-08-15 Richard Biener <rguenther@suse.de>
6294
6295 * fold-const.c (tree_swap_operands_p): Put all constants
6296 last, also strip sign-changing NOPs when considering further
6297 canonicalization. Canonicalize also when optimizing for size.
6298
6299 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6300
6301 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6302 one_match > zero_match case to just before simple_sequence.
6303
6304 2014-08-15 Richard Biener <rguenther@suse.de>
6305
6306 * data-streamer.h (streamer_string_index, string_for_index):
6307 Remove.
6308 * data-streamer-out.c (streamer_string_index): Make static.
6309 * data-streamer-in.c (string_for_index): Likewise.
6310 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6311 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6312
6313 2014-08-15 Richard Biener <rguenther@suse.de>
6314
6315 PR tree-optimization/62031
6316 * tree-data-ref.c (dr_analyze_indices): Do not set
6317 DR_UNCONSTRAINED_BASE.
6318 (dr_may_alias_p): All indirect accesses have to go the
6319 formerly DR_UNCONSTRAINED_BASE path.
6320 * tree-data-ref.h (struct indices): Remove
6321 unconstrained_base member.
6322 (DR_UNCONSTRAINED_BASE): Remove.
6323
6324 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6325
6326 PR middle-end/62092
6327 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6328 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6329 in OMP_CLAUSE_MAP in some outer target region.
6330
6331 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6332
6333 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6334 name_expansion_cache.
6335 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6336 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6337 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6338 (difference_cannot_overflow_p): New parameter. Use affine
6339 expansion for equality check.
6340 (iv_elimination_compare_lt): Pass new argument.
6341
6342 2014-08-14 DJ Delorie <dj@redhat.com>
6343
6344 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6345 variables to the accumulator.
6346
6347 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6348 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6349 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6350 with far-far moves.
6351
6352 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6353 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6354 (umulqihi3_virt): Likewise.
6355 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6356 (umulqihi3_real): Likewise.
6357
6358 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6359
6360 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6361
6362 PR tree-optimization/62091
6363 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6364 function_entry_reached.
6365 (walk_aliased_vdefs): Clear it here.
6366 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6367
6368 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6369
6370 * ipa-utils.h (compare_virtual_tables): Declare.
6371 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6372
6373 2014-08-14 Marek Polacek <polacek@redhat.com>
6374
6375 DR 458
6376 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6377 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6378
6379 2014-08-14 Tom de Vries <tom@codesourcery.com>
6380
6381 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6382
6383 2014-08-14 Tom de Vries <tom@codesourcery.com>
6384
6385 PR rtl-optimization/62004
6386 PR rtl-optimization/62030
6387 * ifcvt.c (rtx_interchangeable_p): New function.
6388 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6389 * emit-rtl.h (mem_attrs_eq_p): Declare.
6390
6391 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6392
6393 * graphite-scop-detection.c:
6394 Add inclusion of cp-tree.h.
6395 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6396 in case they are pointers to object types
6397
6398 2014-08-14 Richard Biener <rguenther@suse.de>
6399
6400 * BASE-VER: Change to 5.0.0
6401
6402 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6404 Anna Tikhonova <anna.tikhonova@intel.com>
6405 Ilya Tocar <ilya.tocar@intel.com>
6406 Andrey Turetskiy <andrey.turetskiy@intel.com>
6407 Ilya Verbin <ilya.verbin@intel.com>
6408 Kirill Yukhin <kirill.yukhin@intel.com>
6409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6410
6411 * config/i386/sse.md (define_mode_attr avx512): New.
6412 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6413 V4DI modes.
6414 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6415 (define_mode_attr ssse3_avx2): Ditto.
6416 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6417 (define_mode_attr avx2_avx512bw): New.
6418 (define_mode_attr ssedoublemodelower): New.
6419 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6420 V32HI, V64QI modes.
6421 (define_mode_attr ssebytemode): Allow V8DI modes.
6422 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6423 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6424 (define_mode_attr ssePSmode2): New.
6425 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6426 V16HI, V32HI modes.
6427 (define_mode_attr dbpsadbwmode): New.
6428 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6429 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6430 (vi8_sse4_1_avx2_avx512): New.
6431 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6432 mode attribute.
6433 (define_mode_attr blendbits): Move before its immediate use.
6434
6435 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6436 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6437 Anna Tikhonova <anna.tikhonova@intel.com>
6438 Ilya Tocar <ilya.tocar@intel.com>
6439 Andrey Turetskiy <andrey.turetskiy@intel.com>
6440 Ilya Verbin <ilya.verbin@intel.com>
6441 Kirill Yukhin <kirill.yukhin@intel.com>
6442 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6443
6444 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6445 * config/i386/subst.md
6446 (define_mode_iterator SUBST_V): Update.
6447 (define_mode_iterator SUBST_A): Ditto.
6448 (define_subst_attr "mask_operand7"): New.
6449 (define_subst_attr "mask_operand10"): New.
6450 (define_subst_attr "mask_operand_arg34") : New.
6451 (define_subst_attr "mask_expand_op3"): New.
6452 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6453 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6454 (define_subst_attr "mask_avx512vl_condition"): New.
6455 (define_subst_attr "round_mask_operand4"): Ditto.
6456 (define_subst_attr "round_mask_scalar_op3"): Delete.
6457 (define_subst_attr "round_mask_op4"): New.
6458 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6459 V16SImode.
6460 (define_subst_attr "round_modev8sf_condition"): New.
6461 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6462 <MODE>mode.
6463 (define_subst_attr "round_saeonly_mask_operand4"): New.
6464 (define_subst_attr "round_saeonly_mask_op4"): New.
6465 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6466 V8DImode, V16SImode.
6467 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6468 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6469 (define_subst_attr "mask_expand4_args"): New.
6470 (define_subst "mask_expand4"): New.
6471
6472 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6474 Anna Tikhonova <anna.tikhonova@intel.com>
6475 Ilya Tocar <ilya.tocar@intel.com>
6476 Andrey Turetskiy <andrey.turetskiy@intel.com>
6477 Ilya Verbin <ilya.verbin@intel.com>
6478 Kirill Yukhin <kirill.yukhin@intel.com>
6479 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6480
6481 * config/i386/i386.md
6482 (define_attr "isa"): Add avx512bw,noavx512bw.
6483 (define_attr "enabled"): Ditto.
6484 (define_split): Add 32/64-bit mask logic.
6485 (define_insn "*k<logic>qi"): New.
6486 (define_insn "*k<logic>hi"): New.
6487 (define_insn "*anddi_1"): Add mask version.
6488 (define_insn "*andsi_1"): Ditto.
6489 (define_insn "*<code><mode>_1"): Ditto.
6490 (define_insn "*<code>hi_1"): Ditto.
6491 (define_insn "kxnor<mode>"): New.
6492 (define_insn "kunpcksi"): New.
6493 (define_insn "kunpckdi"): New.
6494 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6495 (define_insn "*one_cmplhi2_1"): Ditto.
6496
6497 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6498 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6499 Anna Tikhonova <anna.tikhonova@intel.com>
6500 Ilya Tocar <ilya.tocar@intel.com>
6501 Andrey Turetskiy <andrey.turetskiy@intel.com>
6502 Ilya Verbin <ilya.verbin@intel.com>
6503 Kirill Yukhin <kirill.yukhin@intel.com>
6504 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6505
6506 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6507 V32HImode.
6508
6509 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6510 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6511 Anna Tikhonova <anna.tikhonova@intel.com>
6512 Ilya Tocar <ilya.tocar@intel.com>
6513 Andrey Turetskiy <andrey.turetskiy@intel.com>
6514 Ilya Verbin <ilya.verbin@intel.com>
6515 Kirill Yukhin <kirill.yukhin@intel.com>
6516 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6517
6518 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6519 registers.
6520 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6521 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6522 xmm/ymm16+ when availble.
6523 * config/i386/i386.h
6524 (HARD_REGNO_NREGS): Add mask regs.
6525 (VALID_AVX512F_REG_MODE): Ditto.
6526 (VALID_AVX512F_REG_MODE) : Define.
6527 (VALID_MASK_AVX512BW_MODE): Ditto.
6528 (reg_class) (MASK_REG_P(X)): Define.
6529 * config/i386/i386.md: Do not split long moves with mask register,
6530 use kmovb if avx512bw is availible.
6531 (movdi_internal): Handle mask registers.
6532
6533 2014-08-14 Richard Biener <rguenther@suse.de>
6534
6535 PR tree-optimization/62081
6536 * tree-ssa-loop.c (pass_fix_loops): New pass.
6537 (pass_tree_loop::gate): Do not fixup loops here.
6538 * tree-pass.h (make_pass_fix_loops): Declare.
6539 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6540
6541 2014-08-14 Richard Biener <rguenther@suse.de>
6542
6543 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6544 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6545
6546 2014-08-14 Richard Biener <rguenther@suse.de>
6547
6548 PR tree-optimization/62090
6549 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6550 (fold_builtin_2): Do not fold sprintf.
6551 (fold_builtin_3): Likewise.
6552 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6553 moved from builtins.c.
6554 (gimple_fold_builtin): Fold sprintf.
6555
6556 2014-08-14 Richard Biener <rguenther@suse.de>
6557
6558 PR rtl-optimization/62079
6559 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6560 run cleanup_cfg.
6561
6562 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6563
6564 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6565 current_function_decl.
6566
6567 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6568
6569 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6570 cgraph_function_node to cgraph_node::function_symbol
6571 refactoring.
6572
6573 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6574
6575 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6576 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6577
6578 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6579
6580 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6581 warning.
6582
6583 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6584
6585 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6586 generator.
6587
6588 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6589
6590 PR target/62025
6591 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6592 any registers that are used in mem_insn.
6593
6594 2014-08-12 Steve Ellcey <sellcey@mips.com>
6595
6596 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6597
6598 2014-08-12 Steve Ellcey <sellcey@mips.com>
6599
6600 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6601 (MULTILIB_DIRNAMES): Ditto.
6602 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6603 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6604 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6605 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6606 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6607 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6608
6609 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6610
6611 PR target/61413
6612 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6613 of __ARM_SIZEOF_WCHAR_T.
6614
6615 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6616
6617 PR target/62098
6618 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6619 Remove unnecessary attributes.
6620
6621 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6622
6623 * internal-fn.c (init_internal_fns): Fix off-by-one.
6624
6625 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6626 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6627 Anna Tikhonova <anna.tikhonova@intel.com>
6628 Ilya Tocar <ilya.tocar@intel.com>
6629 Andrey Turetskiy <andrey.turetskiy@intel.com>
6630 Ilya Verbin <ilya.verbin@intel.com>
6631 Kirill Yukhin <kirill.yukhin@intel.com>
6632 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6633
6634 * config/i386/i386.c (standard_sse_constant_opcode): Use
6635 vpxord/vpternlog if avx512 is availible.
6636
6637 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6638
6639 PR middle-end/62103
6640 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6641 bitfields, that is when size doesn't match the size of type or the
6642 size of the constructor.
6643
6644 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6645
6646 * config/rs6000/constraints.md (wh constraint): New constraint,
6647 for FP registers if direct move is available.
6648 (wi constraint): New constraint, for VSX/FP registers that can
6649 handle 64-bit integers.
6650 (wj constraint): New constraint for VSX/FP registers that can
6651 handle 64-bit integers for direct moves.
6652 (wk constraint): New constraint for VSX/FP registers that can
6653 handle 64-bit doubles for direct moves.
6654 (wy constraint): Make documentation match implementation.
6655
6656 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6657 scalar_in_vmx_p field to simplify tests of whether SFmode or
6658 DFmode can go in the Altivec registers.
6659 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6660 (rs6000_setup_reg_addr_masks): Likewise.
6661 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6662 field, and wh/wi/wj/wk constraints.
6663 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6664 the wh/wi/wj/wk constraints.
6665 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6666 upper registers, prefer VSX registers unless the operation is a
6667 memory operation with REG+OFFSET addressing.
6668
6669 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6670 DImode. Change SFmode to use ww constraint instead of d to allow
6671 SF registers in the upper registers.
6672 (VSr2): Likewise.
6673 (VSr3): Likewise.
6674 (VSr5): Fix thinko in comment.
6675 (VSa): New mode attribute that is an alternative to wa, that
6676 returns the VSX register class that a mode can go in, but may not
6677 be the preferred register class.
6678 (VS_64dm): New mode attribute for appropriate register classes for
6679 referencing 64-bit elements of vectors for direct moves and normal
6680 moves.
6681 (VS_64reg): Likewise.
6682 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6683 register allocator to only registers the data type can handle.
6684 (vsx_le_perm_load_<mode>): Likewise.
6685 (vsx_le_perm_store_<mode>): Likewise.
6686 (vsx_xxpermdi2_le_<mode>): Likewise.
6687 (vsx_xxpermdi4_le_<mode>): Likewise.
6688 (vsx_lxvd2x2_le_<mode>): Likewise.
6689 (vsx_lxvd2x4_le_<mode>): Likewise.
6690 (vsx_stxvd2x2_le_<mode>): Likewise.
6691 (vsx_add<mode>3): Likewise.
6692 (vsx_sub<mode>3): Likewise.
6693 (vsx_mul<mode>3): Likewise.
6694 (vsx_div<mode>3): Likewise.
6695 (vsx_tdiv<mode>3_internal): Likewise.
6696 (vsx_fre<mode>2): Likewise.
6697 (vsx_neg<mode>2): Likewise.
6698 (vsx_abs<mode>2): Likewise.
6699 (vsx_nabs<mode>2): Likewise.
6700 (vsx_smax<mode>3): Likewise.
6701 (vsx_smin<mode>3): Likewise.
6702 (vsx_sqrt<mode>2): Likewise.
6703 (vsx_rsqrte<mode>2): Likewise.
6704 (vsx_tsqrt<mode>2_internal): Likewise.
6705 (vsx_fms<mode>4): Likewise.
6706 (vsx_nfma<mode>4): Likewise.
6707 (vsx_eq<mode>): Likewise.
6708 (vsx_gt<mode>): Likewise.
6709 (vsx_ge<mode>): Likewise.
6710 (vsx_eq<mode>_p): Likewise.
6711 (vsx_gt<mode>_p): Likewise.
6712 (vsx_ge<mode>_p): Likewise.
6713 (vsx_xxsel<mode>): Likewise.
6714 (vsx_xxsel<mode>_uns): Likewise.
6715 (vsx_copysign<mode>3): Likewise.
6716 (vsx_float<VSi><mode>2): Likewise.
6717 (vsx_floatuns<VSi><mode>2): Likewise.
6718 (vsx_fix_trunc<mode><VSi>2): Likewise.
6719 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6720 (vsx_x<VSv>r<VSs>i): Likewise.
6721 (vsx_x<VSv>r<VSs>ic): Likewise.
6722 (vsx_btrunc<mode>2): Likewise.
6723 (vsx_b2trunc<mode>2): Likewise.
6724 (vsx_floor<mode>2): Likewise.
6725 (vsx_ceil<mode>2): Likewise.
6726 (vsx_<VS_spdp_insn>): Likewise.
6727 (vsx_xscvspdp): Likewise.
6728 (vsx_xvcvspuxds): Likewise.
6729 (vsx_float_fix_<mode>2): Likewise.
6730 (vsx_set_<mode>): Likewise.
6731 (vsx_extract_<mode>_internal1): Likewise.
6732 (vsx_extract_<mode>_internal2): Likewise.
6733 (vsx_extract_<mode>_load): Likewise.
6734 (vsx_extract_<mode>_store): Likewise.
6735 (vsx_splat_<mode>): Likewise.
6736 (vsx_xxspltw_<mode>): Likewise.
6737 (vsx_xxspltw_<mode>_direct): Likewise.
6738 (vsx_xxmrghw_<mode>): Likewise.
6739 (vsx_xxmrglw_<mode>): Likewise.
6740 (vsx_xxsldwi_<mode>): Likewise.
6741 (vsx_xscvdpspn): Tighten constraints to only use register classes
6742 the types use.
6743 (vsx_xscvspdpn): Likewise.
6744 (vsx_xscvdpspn_scalar): Likewise.
6745
6746 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6747 wj, and wk constraints.
6748 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6749 general purpose registers.
6750
6751 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6752 direct moves.
6753 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6754 DImode instead of wm. Use wk constraint for direct move of DFmode
6755 instead of wm.
6756 (extendsidi2_lfiwax): Likewise.
6757 (lfiwax): Likewise.
6758 (lfiwzx): Likewise.
6759 (movdi_internal64): Likewise.
6760
6761 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6762 wk constraints. Make the wy constraint documentation match them
6763 implementation.
6764
6765 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6766
6767 Replacement of isl_int by isl_val
6768 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6769 (compute_bounds_for_param): use isl_val instead of isl_int
6770 (compute_bounds_for_loop): likewise
6771 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6772 (build_linearized_memory_access): use isl_val instead of isl_int
6773 (pdr_stride_in_loop): likewise
6774 * graphite-optimize-isl.c:
6775 (getPrevectorMap): use isl_val instead of isl_int
6776 * graphite-poly.c:
6777 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6778 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6779 (extern the_isl_ctx): declare
6780 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6781 (extract_affine_gmp): likewise
6782 (wrap): likewise
6783 (build_loop_iteration_domains): likewise
6784 (add_param_constraints): likewise
6785
6786 2014-08-11 Richard Biener <rguenther@suse.de>
6787
6788 PR tree-optimization/62075
6789 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6790 handle uses in patterns.
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_AVX512VL_SET): Define.
6803 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6804 (ix86_handle_option): Handle OPT_mavx512vl.
6805 * config/i386/cpuid.h (bit_AVX512VL): Define.
6806 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6807 set -mavx512vl accordingly.
6808 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6809 OPTION_MASK_ISA_AVX512VL.
6810 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6811 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6812 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6813 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6814 * config/i386/i386.h (TARGET_AVX512VL): Define.
6815 (TARGET_AVX512VL_P(x)): Ditto.
6816 * config/i386/i386.opt: Add mavx512vl.
6817
6818 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6819
6820 PR tree-optimization/62073
6821 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6822 a basic block.
6823
6824 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6826 Anna Tikhonova <anna.tikhonova@intel.com>
6827 Ilya Tocar <ilya.tocar@intel.com>
6828 Andrey Turetskiy <andrey.turetskiy@intel.com>
6829 Ilya Verbin <ilya.verbin@intel.com>
6830 Kirill Yukhin <kirill.yukhin@intel.com>
6831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6832
6833 * common/config/i386/i386-common.c
6834 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6835 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6836 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6837 (ix86_handle_option): Handle OPT_mavx512bw.
6838 * config/i386/cpuid.h (bit_AVX512BW): Define.
6839 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6840 set -mavx512bw accordingly.
6841 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6842 OPTION_MASK_ISA_AVX512BW.
6843 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6844 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6845 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6846 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6847 * config/i386/i386.h (TARGET_AVX512BW): Define.
6848 (TARGET_AVX512BW_P(x)): Ditto.
6849 * config/i386/i386.opt: Add mavx512bw.
6850
6851 2014-08-11 Richard Biener <rguenther@suse.de>
6852
6853 PR tree-optimization/62070
6854 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6855 Remove SSA checking.
6856
6857 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6858
6859 * asan.c (asan_check_flags): New enum.
6860 (build_check_stmt_with_calls): Removed function.
6861 (build_check_stmt): Split inlining logic to
6862 asan_expand_check_ifn.
6863 (instrument_derefs): Rename parameter.
6864 (instrument_mem_region_access): Rename parameter.
6865 (instrument_strlen_call): Likewise.
6866 (asan_expand_check_ifn): New function.
6867 (asan_instrument): Remove old code.
6868 (pass_sanopt::execute): Change handling of
6869 asan-instrumentation-with-call-threshold.
6870 (asan_clear_shadow): Fix formatting.
6871 (asan_function_start): Likewise.
6872 (asan_emit_stack_protection): Likewise.
6873 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6874 Update description.
6875 * internal-fn.c (expand_ASAN_CHECK): New function.
6876 * internal-fn.def (ASAN_CHECK): New internal function.
6877 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6878 Update description.
6879 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6880 * tree.c: Small comment fix.
6881
6882 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6883
6884 * gimple.c (gimple_call_fnspec): Support internal functions.
6885 (gimple_call_return_flags): Use const.
6886 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6887 * internal-fn.def: Add fnspec information.
6888 * internal-fn.h (internal_fn_fnspec): New function.
6889 (init_internal_fns): Declare new function.
6890 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6891 (init_internal_fns): New function.
6892 * tree-core.h: Update macro call.
6893 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6894
6895 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6896
6897 * lto-streamer.h (struct output_block::symbol): Change from
6898 struct symtab_node to plain symtab_node.
6899 (referenced_from_this_partition_p): Change first parameter
6900 from struct symtab_node to plain symtab_node.
6901
6902 2014-08-10 Marek Polacek <polacek@redhat.com>
6903
6904 PR c/51849
6905 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6906
6907 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6908
6909 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6910 DECL correctly; do not give up on types in static storage.
6911
6912 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6913
6914 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6915
6916 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6917
6918 * graphite-isl-ast-to-gimple.c:
6919 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6920
6921 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6922
6923 2014-08-08 Guozhi Wei <carrot@google.com>
6924
6925 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6926
6927 2014-08-08 Cary Coutant <ccoutant@google.com>
6928
6929 * dwarf2out.c (get_skeleton_type_unit): Remove.
6930 (output_skeleton_debug_sections): Remove skeleton type units.
6931 (output_comdat_type_unit): Likewise.
6932 (dwarf2out_finish): Likewise.
6933
6934 2014-08-07 Yi Yang <ahyangyi@google.com>
6935
6936 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6937
6938 2014-08-08 Richard Biener <rguenther@suse.de>
6939
6940 * lto-streamer.h (struct lto_input_block): Make it a class
6941 with a constructor.
6942 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6943 (struct lto_function_header, struct lto_simple_header,
6944 struct lto_simple_header_with_strings,
6945 struct lto_decl_header, struct lto_function_header): Make
6946 a simple inheritance hieararchy. Remove unused fields.
6947 (struct lto_asm_header): Remove.
6948 * lto-streamer-out.c (produce_asm): Adjust.
6949 (lto_output_toplevel_asms): Likewise.
6950 (produce_asm_for_decls): Likewise.
6951 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6952 * data-streamer-in.c (string_for_index): Likewise.
6953 * ipa-inline-analysis.c (inline_read_section): Likewise.
6954 * ipa-prop.c (ipa_prop_read_section): Likewise.
6955 (read_replacements_section): Likewise.
6956 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6957 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6958 (lto_destroy_simple_input_block): Likewise.
6959 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6960 (lto_input_toplevel_asms): Likewise.
6961
6962 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6964 Anna Tikhonova <anna.tikhonova@intel.com>
6965 Ilya Tocar <ilya.tocar@intel.com>
6966 Andrey Turetskiy <andrey.turetskiy@intel.com>
6967 Ilya Verbin <ilya.verbin@intel.com>
6968 Kirill Yukhin <kirill.yukhin@intel.com>
6969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6970
6971 * common/config/i386/i386-common.c
6972 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6973 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6974 (ix86_handle_option): Handle OPT_mavx512dq.
6975 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6976 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6977 set -mavx512dq accordingly.
6978 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6979 OPTION_MASK_ISA_AVX512DQ.
6980 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6981 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6982 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6983 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6984 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6985 (TARGET_AVX512DQ_P(x)): Ditto.
6986 * config/i386/i386.opt: Add mavx512dq.
6987
6988 2014-08-08 Richard Biener <rguenther@suse.de>
6989
6990 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6991 target_percent, target_percent_s): Export.
6992 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6993 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6994 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6995 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6996 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6997 Move to gimple-fold.c.
6998 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6999 strcat and strcpy.
7000 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7001 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7002 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7003 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7004 (rewrite_call_expr_array): Remove.
7005 (fold_builtin_sprintf_chk): Likewise.
7006 (fold_builtin_snprintf_chk): Likewise.
7007 (fold_builtin_varargs): Remove handling of sprintf_chk,
7008 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7009 (gimple_fold_builtin_sprintf_chk): Remove.
7010 (gimple_fold_builtin_snprintf_chk): Likewise.
7011 (gimple_fold_builtin_varargs): Likewise.
7012 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7013 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7014 * gimple.c (gimple_seq_add_seq_without_update): New function.
7015 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7016 * gimple-fold.c: Include output.h.
7017 (gsi_replace_with_seq_vops): New function, split out from ...
7018 (gimplify_and_update_call_from_tree): ... here.
7019 (replace_call_with_value): New function.
7020 (replace_call_with_call_and_fold): Likewise.
7021 (var_decl_component_p): Moved from builtins.c.
7022 (gimple_fold_builtin_memory_op): Moved from builtins.c
7023 fold_builtin_memory_op and rewritten to GIMPLE.
7024 (gimple_fold_builtin_memset): Likewise.
7025 (gimple_fold_builtin_strcpy): Likewise.
7026 (gimple_fold_builtin_strncpy): Likewise.
7027 (gimple_fold_builtin_strcat): Likewise.
7028 (gimple_fold_builtin_fputs): Likewise.
7029 (gimple_fold_builtin_memory_chk): Likewise.
7030 (gimple_fold_builtin_stxcpy_chk): Likewise.
7031 (gimple_fold_builtin_stxncpy_chk): Likewise.
7032 (gimple_fold_builtin_snprintf_chk): Likewise.
7033 (gimple_fold_builtin_sprintf_chk): Likewise.
7034 (gimple_fold_builtin_strlen): New function.
7035 (gimple_fold_builtin_with_strlen): New function split out from
7036 gimple_fold_builtin.
7037 (gimple_fold_builtin): Change signature and handle
7038 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7039 here. Call gimple_fold_builtin_with_strlen.
7040 (gimple_fold_call): Adjust.
7041
7042 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7043
7044 * calls.c (precompute_arguments): Check
7045 promoted_for_signed_and_unsigned_p and set the promoted mode.
7046 (promoted_for_signed_and_unsigned_p): New function.
7047 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7048 and set the promoted mode.
7049 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7050 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7051 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7052
7053
7054 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7055
7056 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7057 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7058 (expand_call): Likewise.
7059 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7060 to get promoted mode.
7061 * combine.c (record_promoted_value): Skip > 0 comparison with
7062 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7063 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7064 of SUBREG_PROMOTED_UNSIGNED_P.
7065 (convert_modes): Likewise.
7066 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7067 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7068 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7069 SUBREG_PROMOTED_UNSIGNED_SET.
7070 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7071 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7072 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7073 SUBREG_PROMOTED_SET.
7074 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7075 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7076 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7077 of SUBREG_PROMOTED_UNSIGNED_P.
7078 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7079 (SUBREG_PROMOTED_SET): New define.
7080 (SUBREG_PROMOTED_GET): Likewise.
7081 (SUBREG_PROMOTED_SIGN): Likewise.
7082 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7083 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7084 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7085 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7086 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7087 (nonzero_bits1): Skip > 0 comparison with the results as
7088 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7089 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7090 of !SUBREG_PROMOTED_UNSIGNED_P.
7091 * simplify-rtx.c (simplify_unary_operation_1): Use new
7092 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7093 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7094 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7095 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7096
7097 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7098
7099 * ipa-devirt.c: Include gimple-pretty-print.h
7100 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7101 further tests.
7102 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7103 (get_polymorphic_call_info): Fix return value
7104 (type_change_info): New sturcture based on ipa-prop
7105 variant.
7106 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7107 based on ipa-prop variant.
7108 (extr_type_from_vtbl_ptr_store): New function
7109 based on ipa-prop variant.
7110 (record_known_type): New function.
7111 (check_stmt_for_type_change): New function.
7112 (get_dynamic_type): New function.
7113 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7114 * tree-ssa-pre.c: ipa-utils.h
7115 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7116 machinery; sanity check with ipa-prop devirtualization.
7117 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7118 polymorphic flag.
7119
7120 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7121
7122 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7123 * alias.c, cfgexpand.c, cgraphbuild.c,
7124 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7125 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7126 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7127 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7128 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7129 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7130 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7131 dse.c, except.c, gengtype.c, gimple-expr.c,
7132 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7133 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7134 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7135 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7136 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7137 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7138 pointer-set.h.
7139 * pointer-set.c: Remove file.
7140 * pointer-set.h: Remove file.
7141
7142 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7143
7144 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7145 * config/arm/types.md (f_sels, f_seld): Delete.
7146
7147 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7148
7149 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7150 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7151 (aarch64_movdi_<mode>high): Likewise.
7152 (aarch64_mov<mode>high_di): Likewise.
7153 (aarch64_movdi_<mode>low): Likewise.
7154 (aarch64_mov<mode>low_di): Likewise.
7155 (aarch64_movtilow_tilow): Likewise.
7156 Add comment explaining usage of fp,simd attributes and of
7157 TARGET_FLOAT and TARGET_SIMD.
7158
7159 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7160 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7161
7162 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7163 Use MOVN when one of the half-words is 0xffff.
7164
7165 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7166
7167 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7168
7169 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7170
7171 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7172 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7173 (rfs_str): String corresponding to RFS_* constants.
7174 (rank_for_schedule_stats_t): New typedef.
7175 (rank_for_schedule_stats): New static variable.
7176 (rfs_result): New static function.
7177 (rank_for_schedule): Track statistics for deciding heuristics.
7178 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7179 static functions.
7180 (ready_sort): Use them for debug printouts.
7181 (schedule_block): Init statistics state. Print statistics on
7182 rank_for_schedule decisions.
7183
7184 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7185
7186 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7187
7188 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7189
7190 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7191 constraint.
7192
7193 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7194
7195 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7196 function to not conflict.
7197 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7198 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7199 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7200 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7201 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7202 of pointer_map.
7203
7204 2014-08-07 Marek Polacek <polacek@redhat.com>
7205
7206 * fold-const.c (fold_binary_loc): Add folding of
7207 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7208
7209 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7210
7211 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7212 instead of type size.
7213 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7214
7215 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7216
7217 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7218 (*thumb1_movqi_insn): Likewise.
7219 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7220
7221 2014-08-07 Tom de Vries <tom@codesourcery.com>
7222
7223 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7224 (glibc_2_11_or_earlier): Remove effective-target keywords.
7225
7226 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7227
7228 * config/arm/arm.c (bdesc_2arg): Fix typo.
7229 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7230
7231 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7232
7233 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7234
7235 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7236
7237 PR debug/61923
7238 * haifa-sched.c (advance_one_cycle): Fix dump.
7239 (schedule_block): Don't advance cycle if we are already at the
7240 beginning of the cycle.
7241
7242 2014-08-06 Martin Jambor <mjambor@suse.cz>
7243
7244 PR ipa/61393
7245 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7246
7247 2014-08-06 Richard Biener <rguenther@suse.de>
7248
7249 PR lto/62034
7250 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7251 SCCs here.
7252 (lto_input_tree): Pop SCCs here.
7253
7254 2014-08-06 Richard Biener <rguenther@suse.de>
7255
7256 PR tree-optimization/61320
7257 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7258 handle misaligned loads.
7259
7260 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7261
7262 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7263 (aarch64_expand_vec_perm_const): Check for dup before zip.
7264
7265 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7266
7267 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7268 CONST_INT_P instead of GET_CODE and compare.
7269 (aarch64_select_cc_mode): Likewise.
7270 (aarch64_print_operand): Likewise.
7271 (aarch64_rtx_costs): Likewise.
7272 (aarch64_simd_valid_immediate): Likewise.
7273 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7274 (aarch64_simd_emit_pair_result_insn): Likewise.
7275
7276 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7277
7278 * gdbhooks.py (find_gcc_source_dir): New helper function.
7279 (class PassNames): New class, locating and parsing passes.def.
7280 (class BreakOnPass): New command "break-on-pass".
7281
7282 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7283
7284 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7285 getting olde.
7286
7287 2014-08-05 Richard Biener <rguenther@suse.de>
7288
7289 PR rtl-optimization/61672
7290 * emit-rtl.h (mem_attrs_eq_p): Declare.
7291 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7292 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7293 * cfgcleanup.c (merge_memattrs): Likewise.
7294 Include emit-rtl.h.
7295
7296 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7297
7298 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7299 rather than singleton vectors.
7300 (vqdmlsls_lane_s32): Likewise.
7301
7302 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7303
7304 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7305 Use VSDQ_HSI mode iterator.
7306 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7307 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7308 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7309 Use BUILTIN_VDQHS macro.
7310 (sqrdmulh_laneq): Likewise.
7311 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7312 (vqdmlals_laneq_s32): Likewise.
7313 (vqdmlslh_laneq_s16): Likewise.
7314 (vqdmlsls_laneq_s32): Likewise.
7315 (vqdmulhh_laneq_s16): Likewise.
7316 (vqdmulhs_laneq_s32): Likewise.
7317 (vqrdmulhh_laneq_s16): Likewise.
7318 (vqrdmulhs_laneq_s32): Likewise.
7319
7320 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7321
7322 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7323 (vmuld_laneq_f64): Likewise.
7324 (vmuls_laneq_f32): Likewise.
7325 (vmul_n_f64): Likewise.
7326 (vmuld_lane_f64): Reimplement in C.
7327 (vmuls_lane_f32): Likewise.
7328
7329 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7330
7331 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7332 to reservation.
7333 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7334
7335 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7336
7337 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7338 (rbitsi2): Likewise.
7339 (*arm_rev): Set predicable and predicable_short_it attributes.
7340
7341 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7342
7343 * convert.c (convert_to_integer): Guard transformation to lrint by
7344 -fno-math-errno.
7345
7346 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7347
7348 * config/aarch64/aarch64-builtins.c
7349 (aarch64_simd_builtin_type_mode): Delete.
7350 (v8qi_UP): Remap to V8QImode.
7351 (v4hi_UP): Remap to V4HImode.
7352 (v2si_UP): Remap to V2SImode.
7353 (v2sf_UP): Remap to V2SFmode.
7354 (v1df_UP): Remap to V1DFmode.
7355 (di_UP): Remap to DImode.
7356 (df_UP): Remap to DFmode.
7357 (v16qi_UP):V16QImode.
7358 (v8hi_UP): Remap to V8HImode.
7359 (v4si_UP): Remap to V4SImode.
7360 (v4sf_UP): Remap to V4SFmode.
7361 (v2di_UP): Remap to V2DImode.
7362 (v2df_UP): Remap to V2DFmode.
7363 (ti_UP): Remap to TImode.
7364 (ei_UP): Remap to EImode.
7365 (oi_UP): Remap to OImode.
7366 (ci_UP): Map to CImode.
7367 (xi_UP): Remap to XImode.
7368 (si_UP): Remap to SImode.
7369 (sf_UP): Remap to SFmode.
7370 (hi_UP): Remap to HImode.
7371 (qi_UP): Remap to QImode.
7372 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7373 (VAR1): Build builtin name.
7374 (aarch64_init_simd_builtins): Remove dead code.
7375
7376 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7377
7378 * graphite-isl-ast-to-gimple.c:
7379 (set_options): New function.
7380 (scop_to_isl_ast): Add calling of set_options.
7381
7382 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7383
7384 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7385 (analyze_iv_to_split_insn): Don't initialize them.
7386 (get_ivts_expr): Removed.
7387 (allocate_basic_variable, insert_base_initialization): Use
7388 SET_SRC instead of *get_ivts_expr.
7389 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7390
7391 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7392
7393 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7394 (translate_isl_ast_for_loop): Add checking of the
7395 flag_loop_parallelize_all.
7396 (ast_build_before_for): New function.
7397 (scop_to_isl_ast): Add checking of the
7398 flag_loop_parallelize_all.
7399 * graphite-dependences.c: Move the defenition of the
7400 scop_get_dependences from graphite-optimize-isl.c to this file.
7401 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7402 (carries_deps): Add checking of the x's value.
7403 * graphite-optimize-isl.c: Move the defenition of the
7404 scop_get_dependences to graphite-dependences.c.
7405 * graphite-poly.h: Add declarations of scop_get_dependences
7406 and carries_deps.
7407
7408 2014-08-04 Rohit <rohitarulraj@freescale.com>
7409
7410 PR target/60102
7411 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7412 names.
7413 (alt_reg_names): Likewise.
7414 (rs6000_dwarf_register_span): For SPE high registers, replace
7415 dwarf register numbers with GCC hard register numbers.
7416 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7417 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7418 register number for the corresponding GCC hard register number.
7419 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7420 newly added GCC hard register numbers for SPE high registers.
7421 (DWARF_FRAME_REGISTERS): Likewise.
7422 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7423 (DWARF_FRAME_REGNUM): Likewise.
7424 (FIXED_REGISTERS): Likewise.
7425 (CALL_USED_REGISTERS): Likewise.
7426 (CALL_REALLY_USED_REGISTERS): Likewise.
7427 (REG_ALLOC_ORDER): Likewise.
7428 (enum reg_class): Likewise.
7429 (REG_CLASS_NAMES): Likewise.
7430 (REG_CLASS_CONTENTS): Likewise.
7431 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7432
7433 2014-08-04 Richard Biener <rguenther@suse.de>
7434
7435 * gimple-fold.h (gimple_fold_builtin): Remove.
7436 * gimple-fold.c (gimple_fold_builtin): Make static.
7437 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7438 fold_stmt, not gimple_fold_builtin.
7439
7440 2014-08-04 Martin Liska <mliska@suse.cz>
7441
7442 * cgraph.h (csi_end_p): Removed.
7443 (csi_next): Likewise.
7444 (csi_node): Likewise.
7445 (csi_start): Likewise.
7446 (cgraph_node_in_set_p): Likewise.
7447 (cgraph_node_set_size): Likewise.
7448 (vsi_end_p): Likewise.
7449 (vsi_next): Likewise.
7450 (vsi_node): Likewise.
7451 (vsi_start): Likewise.
7452 (varpool_node_set_size): Likewise.
7453 (cgraph_node_set_nonempty_p): Likewise.
7454 (varpool_node_set_nonempty_p): Likewise.
7455 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7456 cgraph_node_set.
7457 * ipa-inline-transform.c: Likewise.
7458 * ipa-utils.c (cgraph_node_set_new): Removed.
7459 (cgraph_node_set_add): Likewise.
7460 (cgraph_node_set_remove): Likewise.
7461 (cgraph_node_set_find): Likewise.
7462 (dump_cgraph_node_set): Likewise.
7463 (debug_cgraph_node_set): Likewise.
7464 (free_cgraph_node_set): Likewise.
7465 (varpool_node_set_new): Likewise.
7466 (varpool_node_set_add): Likewise.
7467 (varpool_node_set_remove): Likewise.
7468 (varpool_node_set_find): Likewise.
7469 (dump_varpool_node_set): Likewise.
7470 (free_varpool_node_set): Likewise.
7471 (debug_varpool_node_set): Likewise.
7472 * tree-emutls.c (struct tls_var_data):
7473 (emutls_index): Removed.
7474 (emutls_decl): Likewise.
7475 (gen_emutls_addr): Function implementation uses newly added
7476 hash_map<varpool_node *, tls_var_data>.
7477 (clear_access_vars): Likewise.
7478 (create_emultls_var): Likewise.
7479 (ipa_lower_emutls): Likewise.
7480 (reset_access): New function.
7481
7482 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7483
7484 * config/i386/i386.c (ix86_option_override_internal): Add
7485 PTA_RDRND and PTA_MOVBE for bdver4.
7486
7487 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7488 James Greenhalgh <james.greenhalgh@arm.com>
7489
7490 * doc/md.texi (clrsb): Document.
7491 (clz): Change reference to x into operand 1.
7492 (ctz): Likewise.
7493 (popcount): Likewise.
7494
7495 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7496
7497 PR target/61713
7498 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7499 move to subtarget in serial version if result is ignored.
7500
7501 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7502 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7503
7504 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7505 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7506 (sched_analyze_insn): Update use of try_group_insn to
7507 sched_macro_fuse_insns.
7508 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7509 arguments that are not conditional jumps.
7510
7511 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7512
7513 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7514 family information. Handle BTVER2 cpu with cpuid family value.
7515
7516 2014-08-04 Tom de Vries <tom@codesourcery.com>
7517
7518 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7519 (glibc_2_11_or_earlier): Document effective-target keywords.
7520
7521 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7522
7523 * ipa-devirt.c (odr_type_warn_count): Add type.
7524 (possible_polymorphic_call_targets): Set it.
7525 (ipa_devirt): Use it.
7526
7527 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7528
7529 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7530 Document.
7531 * ipa-devirt.c: Include hash-map.h
7532 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7533 (clear_speculation): Break out of ...
7534 (get_class_context): ... here; speed up handling obviously useless
7535 speculations.
7536 (odr_type_warn_count, decl_warn_count): New structures.
7537 (final_warning_record): New structure.
7538 (final_warning_records): New static variable.
7539 (possible_polymorphic_call_targets): Cleanup handling of
7540 speculative info; do not build speculation when user do not care;
7541 record info about warnings when asked for.
7542 (add_decl_warning): New function.
7543 (type_warning_cmp): New function.
7544 (decl_warning_cmp): New function.
7545 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7546 (gate): Enable pass when warnings are requested.
7547 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7548 options.
7549
7550 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7551
7552 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7553 Fix cast.
7554 (hash_map::remove): New method.
7555 (hash_map::traverse): New method.
7556 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7557 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7558 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7559 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7560 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7561 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7562 pointer_map.
7563
7564 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7565
7566 * hash-set.h: new File.
7567 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7568 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7569 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7570 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7571 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7572 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7573 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7574 varpool.c: Use hash_set instead of pointer_set.
7575
7576 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7577
7578 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7579
7580 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7581
7582 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7583 for frame access when strict_p is false.
7584
7585 2014-08-01 Renlin Li <renlin.li@arm.com>
7586 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7587
7588 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7589 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7590 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7591 Declaration.
7592 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7593 predicate.
7594 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7595 aarch64_mem_pair_offset.
7596
7597 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7598
7599 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7600 offset.
7601 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7602 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7603
7604 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7605
7606 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7607
7608 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7609
7610 PR regression/61510
7611 * cgraphunit.c (analyze_functions): Use get_create rather than get
7612 for decls which are clones of abstract functions.
7613
7614 2014-08-01 Martin Liska <mliska@suse.cz>
7615
7616 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7617 * ipa-prop.h (count_formal_params): Global function created from static.
7618 * ipa-prop.c (count_formal_params): Likewise.
7619 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7620 profiles for semantically equivalent functions.
7621 * passes.c (do_per_function): If we load body of a function
7622 during WPA, this condition should behave same.
7623 * varpool.c (ctor_for_folding): More tolerant assert for variable
7624 aliases created during WPA.
7625
7626 2014-08-01 Martin Liska <mliska@suse.cz>
7627
7628 * doc/invoke.texi (Options That Control Optimization): Documentation
7629 for -foptimize-strlen introduced. Optimization levels default options
7630 fixed.
7631
7632 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7633
7634 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7635 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7636 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7637 type to bool.
7638 * stor-layout.h (min_align_of_type): New prototype.
7639 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7640 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7641 check.
7642 * ubsan.c: Include builtins.h.
7643 (ubsan_expand_bounds_ifn): Change return type to bool,
7644 always return true.
7645 (ubsan_expand_null_ifn): Change return type to bool, change
7646 argument to gimple_stmt_iterator *. Handle both null and alignment
7647 sanitization, take type from ckind argument's type rather than
7648 first argument.
7649 (instrument_member_call): Removed.
7650 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7651 Handle both null and alignment sanitization, don't say whole
7652 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7653 call instead of 2 argument.
7654 (instrument_null): Adjust instrument_mem_ref caller. Don't
7655 instrument calls here.
7656 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7657 like SANITIZE_NULL.
7658 * stor-layout.c (min_align_of_type): New function.
7659 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7660 Or it into SANITIZE_UNDEFINED.
7661 * doc/invoke.texi (-fsanitize=alignment): Document.
7662
7663 2014-07-31 Andi Kleen <ak@linux.intel.com>
7664
7665 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7666
7667 2014-07-31 Andi Kleen <ak@linux.intel.com>
7668
7669 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7670 inchash.
7671 (vn_reference_compute_hash): Dito.
7672 (vn_nary_op_compute_hash): Dito.
7673 (vn_phi_compute_hash): Dito.
7674 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7675
7676 2014-07-31 Andi Kleen <ak@linux.intel.com>
7677
7678 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7679 Rename to inchash:add_expr_commutative. Convert to inchash.
7680 (iterative_hash_hashable_expr): Rename to
7681 inchash:add_hashable_expr. Convert to inchash.
7682 (avail_expr_hash): Dito.
7683
7684 2014-07-31 Andi Kleen <ak@linux.intel.com>
7685
7686 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7687 Convert to inchash.
7688
7689 2014-07-31 Andi Kleen <ak@linux.intel.com>
7690
7691 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7692
7693 2014-07-31 Andi Kleen <ak@linux.intel.com>
7694
7695 * Makefile.in (OBJS): Add rtlhash.o
7696 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7697 (loc_checksum): Dito.
7698 (loc_checksum_ordered): Dito.
7699 (hash_loc_operands): Dito.
7700 (hash_locs): Dito.
7701 (hash_loc_list): Dito.
7702 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7703 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7704 * rtlhash.c: New file.
7705 * rtlhash.h: New file.
7706
7707 2014-07-31 Andi Kleen <ak@linux.intel.com>
7708
7709 * inchash.h (inchash): Change inchash class to namespace.
7710 (class hash): ... Rename from inchash.
7711 (add_object): Move from macro to class template.
7712 * lto-streamer-out.c (hash_tree): Change inchash
7713 to inchash::hash.
7714 * tree.c (build_type_attribute_qual_variant): Dito.
7715 (type_hash_list): Dito.
7716 (attribute_hash_list): Dito.
7717 (iterative_hstate_expr): Rename to inchash::add_expr
7718 (build_range_type_1): Change inchash to inchash::hash
7719 and use hash::add_expr.
7720 (build_array_type_1): Dito.
7721 (build_function_type): Dito
7722 (build_method_type_directly): Dito.
7723 (build_offset_type): Dito.
7724 (build_complex_type): Dito.
7725 (make_vector_type): Dito.
7726 * tree.h (iterative_hash_expr): Dito.
7727
7728 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7729
7730 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7731
7732 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7733
7734 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7735 correct alphabetical position.
7736 (vpaddd_f64): Rewrite using builtins.
7737 (vpaddd_s64): Move to correct alphabetical position.
7738 (vpaddd_u64): New.
7739
7740 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7741
7742 PR target/61844
7743 * config/sh/sh.c (sh_legitimate_address_p,
7744 sh_legitimize_reload_address): Handle reg+reg address modes when
7745 ALLOW_INDEXED_ADDRESS is false.
7746 * config/sh/predicates.md (general_movsrc_operand,
7747 general_movdst_operand): Likewise.
7748
7749 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7750
7751 * config/aarch64/aarch64-builtins.c
7752 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7753 BYTES_BIG_ENDIAN.
7754
7755 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7756
7757 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7758 the generated mask based on BYTES_BIG_ENDIAN.
7759 (aarch64_simd_check_vect_par_cnst_half): New.
7760 * config/aarch64/aarch64-protos.h
7761 (aarch64_simd_check_vect_par_cnst_half): New.
7762 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7763 the check out to aarch64_simd_check_vect_par_cnst_half.
7764 (vect_par_cnst_lo_half): Likewise.
7765 * config/aarch64/aarch64-simd.md
7766 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7767 (move_hi_quad_<mode>): Always generate a low mask.
7768
7769 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7770
7771 * doc/invoke.texi (AVR Options): Add documentation about
7772 __AVR_DEVICE_NAME__ built-in macro.
7773
7774 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7775
7776 PR target/61948
7777 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7778 constraints are satisfied.
7779 (<shift>di3_neon): Likewise.
7780
7781 2014-07-31 Richard Biener <rguenther@suse.de>
7782
7783 PR tree-optimization/61964
7784 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7785 by structural equality.
7786
7787 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7788
7789 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7790 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7791 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7792 New enums.
7793 * gcc.c (sanitize_spec_function): Support new option.
7794 (SANITIZER_SPEC): Remove now redundant check.
7795 * opts.c (common_handle_option): Support new option.
7796 (finish_options): Check for incompatibilities.
7797 * toplev.c (process_options): Split userspace-specific checks.
7798
7799 2014-07-31 Richard Biener <rguenther@suse.de>
7800
7801 * lto-streamer.h (struct output_block): Remove global.
7802 (struct data_in): Remove labels, num_named_labels and
7803 num_unnamed_labels.
7804 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7805 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7806
7807 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7808
7809 PR c++/60517
7810 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7811 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7812 (isolate_path): New argument to avoid inserting a trap.
7813 (find_implicit_erroneous_behaviour): Handle returning the address
7814 of a local variable.
7815 (find_explicit_erroneous_behaviour): Likewise.
7816
7817 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7818
7819 PR lto/61868
7820 * toplev.c (init_random_seed): Move piece of code never called to
7821 set_random_seed.
7822 (set_random_seed): see above.
7823
7824 2014-07-31 Tom de Vries <tom@codesourcery.com>
7825
7826 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7827
7828 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7829
7830 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7831 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7832
7833 2014-07-31 Richard Biener <rguenther@suse.de>
7834
7835 * data-streamer.h (streamer_write_data_stream): Declare here,
7836 renamed from ...
7837 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7838 * lto-cgraph.c (lto_output_node): Adjust.
7839 (lto_output_varpool_node): Likewise.
7840 * data-streamer-out.c (streamer_string_index): Likewise.
7841 (streamer_write_data_stream, lto_append_block): Move from ...
7842 * lto-section-out.c (lto_output_data_stream,
7843 lto_append_block): ... here.
7844
7845 2014-07-30 Mike Stump <mikestump@comcast.net>
7846
7847 * configure.ac: Also check for popen.
7848 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7849 * configure: Regenerate.
7850 * config.in: Regenerate.
7851
7852 2014-07-30 Martin Jambor <mjambor@suse.cz>
7853
7854 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7855 parameter to gimple.
7856
7857 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7858
7859 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7860 address as second parameter to __tpf_eh_return routine.
7861
7862 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7863
7864 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7865 Thumb2.
7866
7867 2014-07-30 Tom Tromey <tromey@redhat.com>
7868
7869 PR c/59855
7870 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7871 * doc/extend.texi (Type Attributes): Document designated_init
7872 attribute.
7873
7874 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7875
7876 * graphite-isl-ast-to-gimple.c:
7877 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7878 (gcc_expression_from_isl_expression): Pass type to
7879 gcc_expression_from_isl_ast_expr_id.
7880
7881 2014-07-30 Richard Biener <rguenther@suse.de>
7882
7883 * lto-streamer.h (lto_write_data): New function.
7884 * langhooks.c (lhd_append_data): Do not free block.
7885 * lto-section-out.c (lto_write_data): New function writing
7886 raw data to the current section.
7887 (lto_write_stream): Adjust for langhook semantic change.
7888 (lto_destroy_simple_output_block): Write header directly.
7889 * lto-opts.c (lto_write_options): Write options directly.
7890 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7891 (lto_output_toplevel_asms): Likewise.
7892 (copy_function_or_variable): Copy data directly.
7893 (write_global_references): Output index table directly.
7894 (lto_output_decl_state_refs): Likewise.
7895 (write_symbol): Write data directly.
7896 (produce_symtab): Adjust.
7897 (produce_asm_for_decls): Output header and refs directly.
7898
7899 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7900
7901 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7902 to speculative_targets
7903 (get_class_context): Fix handling of contextes without outer type;
7904 avoid matching non-polymorphic types in LTO.
7905 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7906 parameter to speculative_targetsp; handle speculation.
7907 (dump_possible_polymorphic_call_targets): Update dumping.
7908
7909 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7910
7911 * common.opt (Wodr): Enable by default.
7912
7913 2014-07-29 Olivier Hainque <hainque@adacore.com>
7914
7915 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7916
7917 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7918
7919 PR bootstrap/61914
7920 * gengtype.c (strtoken): New function.
7921 (create_user_defined_type): Replace strtok with strtoken.
7922
7923 2014-07-29 Nathan Sidwell <nathan@acm.org>
7924
7925 * gcov-io.c (gcov_var): Make hidden.
7926 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7927 (gcov_do_dump): Declare.
7928 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7929
7930 2014-07-29 Martin Jambor <mjambor@suse.cz>
7931
7932 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7933 parameter to gimple.
7934 (sra_modify_assign): Likewise.
7935
7936 2014-07-29 Richard Biener <rguenther@suse.de>
7937
7938 PR middle-end/52478
7939 * expr.c (expand_expr_real_2): Revert last change.
7940
7941 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7942
7943 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7944 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7945 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7946 call.
7947 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7948 (contains_type_p): Forward declare.
7949 (polymorphic_call_target_hasher::hash): Hash speculative info.
7950 (polymorphic_call_target_hasher::equal): Compare speculative info.
7951 (get_class_context): Handle speuclation.
7952 (contains_type_p): Update.
7953 (get_polymorphic_call_info_for_decl): Update.
7954 (walk_ssa_copies): Break out from ...
7955 (get_polymorphic_call_info): ... here; set speculative context
7956 before giving up.
7957 * ipa-prop.c (ipa_write_indirect_edge_info,
7958 ipa_read_indirect_edge_info): Stream speculative context.
7959 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7960 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7961 SPECULATIVE_MAYBE_DERIVED_TYPE).
7962 (possible_polymorphic_call_targets overriders): Update.
7963 (dump_possible_polymorphic_call_targets overriders): Update.
7964 (dump_possible_polymorphic_call_target_p overriders): Update.
7965
7966 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7967
7968 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7969 ipa-devirt path; fix thinko there.
7970
7971 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7972
7973 * config/i386/i386.c (ix86_return_in_memory): Replace one
7974 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7975
7976 2014-07-28 Marek Polacek <polacek@redhat.com>
7977
7978 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7979
7980 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7981
7982 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7983 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7984 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7985 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7986 (USE_LD_AS_NEEDED): Likewise.
7987 (ASM_APP_ON): Likewise.
7988 (ASM_APP_OFF): Likewise.
7989 (TARGET_POSIX_IO): Likewise.
7990 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7991 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7992 (USE_LD_AS_NEEDED): Likewise.
7993 (ASM_APP_ON): Likewise.
7994 (ASM_APP_OFF): Likewise.
7995 (TARGET_POSIX_IO): Likewise.
7996
7997 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7998
7999 PR middle-end/61734
8000 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8001 operators other than the equality operators.
8002
8003 2014-07-28 Richard Biener <rguenther@suse.de>
8004
8005 PR middle-end/52478
8006 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8007 sure to register SImode ones, not only >= word_mode ones.
8008 * expr.c (expand_expr_real_2): When expanding -ftrapv
8009 binops do not use OPTAB_LIB_WIDEN.
8010
8011 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8012
8013 PR middle-end/61919
8014 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8015 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8016 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8017 inserting them in the insn stream.
8018
8019 2014-07-28 Marek Polacek <polacek@redhat.com>
8020
8021 PR middle-end/61913
8022 * common.opt (Wodr): Add Var.
8023
8024 2014-07-28 Richard Biener <rguenther@suse.de>
8025
8026 PR tree-optimization/61921
8027 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8028 if there is a varpool node before dereferencing it.
8029
8030 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8031
8032 * graphite-sese-to-poly.c:
8033 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8034 id of the pbb), which contains pointer to the pbb1.
8035
8036 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8037
8038 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8039
8040 * graphite-isl-ast-to-gimple.c:
8041 (graphite_create_new_guard): New function.
8042 (translate_isl_ast_node_if): New function.
8043 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8044
8045 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8046
8047 2014-07-27 Anthony Green <green@moxielogic.com>
8048
8049 * config.gcc: Add moxie-*-moxiebox* configuration.
8050 * config/moxie/moxiebox.h: New file.
8051
8052 2014-07-26 Andrew Pinski <apinski@cavium.com>
8053
8054 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8055 from the read only register.
8056
8057 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8058
8059 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8060 as the allocation class if it isn't likely to be spilled.
8061
8062 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8063
8064 * rtl.h (tls_referenced_p): Declare.
8065 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8066 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8067 (mips_cannot_force_const_mem): Use tls_referenced_p.
8068 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8069 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8070 instead of pa_tls_referenced_p.
8071 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8072 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8073 (pa_legitimate_constant_p): Likewise.
8074 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8075 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8076 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8077 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8078 rs6000_tls_referenced_p.
8079 (rs6000_tls_symbol_ref_1): Delete.
8080
8081 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8082
8083 PR target/44551
8084 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8085 Optimize inverse of a VEC_CONCAT.
8086
8087 2014-07-25 Xinliang David Li <davidxl@google.com>
8088
8089 * params.def: New parameter.
8090 * coverage.c (get_coverage_counts): Check new flag.
8091 (coverage_compute_profile_id): Check new flag.
8092 (coverage_begin_function): Check new flag.
8093 (coverage_end_function): Check new flag.
8094 * value-prof.c (coverage_node_map_initialized_p): New function.
8095 (init_node_map): Populate map with all functions.
8096 * doc/invoke.texi: Document new parameter.
8097
8098 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8099 Richard Biener <rguenther@suse.de>
8100
8101 * lto-streamer-out.c (struct sccs): Turn to ...
8102 (class DFS): ... this one; refactor the DFS walk so it can
8103 be re-done on per-SCC basis.
8104 (DFS::DFS): New constructor.
8105 (DFS::~DFS): New destructor.
8106 (hash_tree): Add new MAP argument holding in-SCC hash values;
8107 remove POINTER_TYPE hashing hack.
8108 (scc_entry_compare): Rename to ...
8109 (DFS::scc_entry_compare): ... this one.
8110 (hash_scc): Rename to ...
8111 (DFS::hash_scc): ... this one; pass output_block instead
8112 of streamer_cache; work harder to get unique and stable SCC
8113 hashes.
8114 (DFS_write_tree): Rename to ...
8115 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8116 (lto_output_tree): Update.
8117
8118 2014-07-25 Andi Kleen <ak@linux.intel.com>
8119
8120 * lto-streamer-out.c (hash_tree): Convert to inchash.
8121
8122 2014-07-25 Andi Kleen <ak@linux.intel.com>
8123
8124 * tree.c (build_type_attribute_qual_variant): Use inchash.
8125 (type_hash_list): Dito.
8126 (attribute_hash_list): Dito
8127 (iterative_hstate_expr): Dito.
8128 (iterative_hash_expr): Dito.
8129 (build_range_type_1): Dito.
8130 (build_array_type_1): Dito.
8131 (build_function_type): Dito.
8132 (build_method_type_directly): Dito.
8133 (build_offset_type): Dito.
8134 (build_complex_type): Dito.
8135 (make_vector_type): Dito.
8136 * tree.h (iterative_hash_expr): Add compat wrapper.
8137 (iterative_hstate_expr): Add.
8138
8139 2014-07-25 Andi Kleen <ak@linux.intel.com>
8140
8141 * Makefile.in (OBJS): Add inchash.o.
8142 (PLUGIN_HEADERS): Add inchash.h.
8143 * ipa-devirt.c: Include inchash.h.
8144 * lto-streamer-out.c: Dito.
8145 * tree-ssa-dom.c: Dito.
8146 * tree-ssa-pre.c: Dito.
8147 * tree-ssa-sccvn.c: Dito.
8148 * tree-ssa-tail-merge.c: Dito.
8149 * asan.c: Dito.
8150 * tree.c (iterative_hash_hashval_t): Move to ...
8151 (iterative_hash_host_wide_int): Move to ...
8152 * inchash.c: Here. New file.
8153 * tree.h (iterative_hash_hashval_t): Move to ...
8154 (iterative_hash_host_wide_int): Move to ...
8155 * inchash.h: Here. New file.
8156
8157 2014-07-25 Richard Biener <rguenther@suse.de>
8158
8159 PR middle-end/61762
8160 PR middle-end/61894
8161 * fold-const.c (native_encode_int): Add and handle offset
8162 parameter to do partial encodings of expr.
8163 (native_encode_fixed): Likewise.
8164 (native_encode_real): Likewise.
8165 (native_encode_complex): Likewise.
8166 (native_encode_vector): Likewise.
8167 (native_encode_string): Likewise.
8168 (native_encode_expr): Likewise.
8169 * fold-const.c (native_encode_expr): Add offset parameter
8170 defaulting to -1.
8171 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8172 (fold_ctor_reference): Handle all reads from tcc_constant
8173 ctors.
8174
8175 2014-07-25 Richard Biener <rguenther@suse.de>
8176
8177 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8178 as possibly unused.
8179
8180 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8181
8182 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8183
8184 2014-07-24 Kyle McMartin <kyle@redhat.com>
8185
8186 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8187
8188 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8189
8190 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8191 Add prototype.
8192 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8193 function.
8194 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8195 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8196 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8197
8198 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8199
8200 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8201 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8202 aggregate types. Instead, *all* aggregate types, except for single-
8203 element or homogeneous float/vector aggregates, are quadword-aligned
8204 if required by their type alignment. Issue -Wpsabi note when a type
8205 is now treated differently than before.
8206
8207 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8208
8209 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8210 does not fit fully into floating-point registers, and there is still
8211 space in the register parameter area, use GPRs to pass those parts
8212 of the argument. Issue -Wpsabi note if any parameter is now treated
8213 differently than before.
8214 (rs6000_arg_partial_bytes): Update.
8215
8216 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8217
8218 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8219
8220 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8221
8222 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8223 * toplev.c (initialize_rtl): Don't use it. Move previously
8224 "language-dependent" calls to...
8225 (backend_init): ...here.
8226 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8227 Assert that RTL initialization hasn't happend yet.
8228
8229 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8230
8231 PR rtl-optimization/61629
8232 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8233 they have already been initialized.
8234
8235 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8236
8237 PR middle-end/61268
8238 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8239 DECL_INCOMING_RTL and entry_parm.
8240 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8241 * calls.c (load_register_parameters): Likewise argument values.
8242 (emit_library_call_value_1, store_one_arg): Likewise argument
8243 save areas.
8244 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8245 stack slot.
8246 * explow.c (validize_mem): Modify the argument in-place.
8247
8248 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8249
8250 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8251 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8252
8253 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8254
8255 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8256 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8257
8258 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8259
8260 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8261 (aarch64_save_callee_saves): New parameter "skip_wb".
8262 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8263
8264 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8265
8266 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8267 "wb_candidate2".
8268 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8269
8270 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8271
8272 * graphite-isl-ast-to-gimple.c:
8273 (graphite_create_new_loop): Add calling of isl_id_free to properly
8274 decrement reference counts.
8275
8276 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8277
8278 2014-07-24 Martin Liska <mliska@suse.cz>
8279 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8280 function used.
8281 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8282 (rs6000_code_end): Likewise.
8283
8284 2014-07-24 Martin Liska <mliska@suse.cz>
8285
8286 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8287 symtab_node funtion used.
8288 (rs6000_xcoff_declare_object_name): Likewise.
8289
8290 2014-07-24 Martin Liska <mliska@suse.cz>
8291
8292 * cgraphunit.c (compile): Correct function used.
8293
8294 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8295
8296 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8297 as non-indexable.
8298
8299 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8300
8301 PR lto/61802
8302 * varasm.c (bss_initializer_p): Handle offlined ctors.
8303 (align_variable, get_variable_align): Likewise.
8304 (make_decl_one_only): Likewise.
8305 (default_binds_local_p_1): Likewise.
8306 (decl_binds_to_current_def_p): Likewise.
8307 (get_variable_section): Get constructor if it is offlined.
8308 (assemble_variable_contents): Sanity check that the caller
8309 streamed in the ctor in LTO.
8310
8311 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8312
8313 * graphite-isl-ast-to-gimple.c:
8314 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8315 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8316 isl_ast_op_pdiv_r to the different case.
8317
8318 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8319
8320 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8321
8322 PR middle-end/61876
8323 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8324 when flag_errno_math is on.
8325
8326 2014-07-24 Martin Liska <mliska@suse.cz>
8327
8328 * cgraph.h (varpool_node):
8329 (availability get_availability (void)):
8330 created from cgraph_variable_initializer_availability
8331 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8332 created from: cgraph_variable_initializer_availability
8333 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8334 (void finalize_named_section_flags (void)):
8335 created from varpool_finalize_named_section_flags
8336 (bool assemble_decl (void)): created from varpool_assemble_decl
8337 (void analyze (void)): created from varpool_analyze_node
8338 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8339 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8340 (void remove_initializer (void)): created from varpool_remove_initializer
8341 (tree get_constructor (void)): created from varpool_get_constructor
8342 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8343 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8344 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8345 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8346 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8347 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8348 (static bool output_variables (void)): created from varpool_output_variables
8349 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8350 created from varpool_extra_name_alias
8351 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8352 (static void dump_varpool (FILE *f)): created from dump_varpool
8353 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8354 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8355 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8356 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8357 (void assemble_aliases (void)): created from assemble_aliases
8358
8359 2014-07-24 Martin Liska <mliska@suse.cz>
8360
8361 * cgraph.h (symtab_node):
8362 (void register_symbol (void)): created from symtab_register_node
8363 (void remove (void)): created from symtab_remove_node
8364 (void dump (FILE *f)): created from dump_symtab_node
8365 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8366 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8367 (struct ipa_ref *add_reference (symtab_node *referred_node,
8368 enum ipa_ref_use use_type)): created from add_reference
8369 (struct ipa_ref *add_reference (symtab_node *referred_node,
8370 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8371 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8372 gimple stmt)): created from maybe_add_reference
8373 (bool semantically_equivalent_p (symtab_node *target)): created from
8374 symtab_semantically_equivalent_p
8375 (void remove_from_same_comdat_group (void)): created from
8376 remove_from_same_comdat_group
8377 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8378 symtab_add_to_same_comdat_group
8379 (void dissolve_same_comdat_group_list (void)): created from
8380 symtab_dissolve_same_comdat_group_list
8381 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8382 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8383 created from symtab_alias_ultimate_target
8384 (inline symtab_node *next_defined_symbol (void)): created from
8385 symtab_next_defined_symbol
8386 (bool resolve_alias (symtab_node *target)): created from
8387 symtab_resolve_alias
8388 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8389 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8390 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8391 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8392 (void set_section (const char *section)): created from set_section_1
8393 (enum availability get_availability (void)): created from symtab_node_availability
8394 (void make_decl_local (void)): created from symtab_make_decl_local
8395 (bool real_symbol_p (void)): created from symtab_read_node
8396 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8397 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8398 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8399 symtab_in_same_comdat_p;
8400 (bool address_taken_from_non_vtable_p (void)): created from
8401 address_taken_from_non_vtable_p
8402 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8403 (static void dump_table (FILE *)): created from dump_symtab
8404 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8405 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8406 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8407 symtab_used_from_object_file_p
8408 (void dump_base (FILE *)): created from dump_symtab_base
8409 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8410 (void unregister (void)): created from symtab_unregister_node
8411 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8412 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8413 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8414 symtab_nonoverwritable_alias_1
8415 * cgraph.h (cgraph_node):
8416 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8417 created from cgraph_remove_node_and_inline_clones
8418 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8419 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8420 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8421 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8422 created from cgraph_function_node
8423 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8424 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8425 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8426 created from cgraph_create_clone
8427 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8428 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8429 created from cgraph_create_virtual_clone
8430 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8431 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8432 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8433 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8434 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8435 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8436 created from cgraph_function_version_info
8437 (struct cgraph_function_version_info *insert_new_function_version (void)):
8438 created from insert_new_cgraph_node_version
8439 (struct cgraph_function_version_info *function_version (void)): created from
8440 get_cgraph_node_version
8441 (void analyze (void)): created from analyze_function
8442 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8443 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8444 tree real_alias) cgraph_add_thunk
8445 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8446 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8447 created from cgraph_function_or_thunk_node
8448 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8449 created from expand_thunk
8450 (void reset (void)): created from cgraph_reset_node
8451 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8452 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8453 (void remove (void)): created from cgraph_remove_node
8454 (void dump (FILE *f)): created from dump_cgraph_node
8455 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8456 (bool get_body (void)): created from cgraph_get_body
8457 (void release_body (void)): created from cgraph_release_function_body
8458 (void unnest (void)): created from cgraph_unnest_node
8459 (void make_local (void)): created from cgraph_make_node_local
8460 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8461 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8462 gcov_type count, int freq)): created from cgraph_create_edge
8463 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8464 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8465 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8466 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8467 created from cgraph_create_edge_including_clones
8468 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8469 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8470 (void remove_callers (void)): created from cgraph_node_remove_callers
8471 (void remove_callees (void)): created from cgraph_node_remove_callees
8472 (enum availability get_availability (void)): created from cgraph_function_body_availability
8473 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8474 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8475 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8476 (void call_duplication_hooks (cgraph_node *node2)): created from
8477 cgraph_call_node_duplication_hooks
8478 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8479 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8480 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8481 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8482 (void call_function_insertion_hooks (void)):
8483 created from cgraph_call_function_insertion_hooks
8484 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8485 (bool local_p (void)): created from cgraph_local_node
8486 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8487 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8488 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8489 (inline bool only_called_directly_or_aliased_p (void)):
8490 created from cgraph_only_called_directly_or_aliased_p
8491 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8492 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8493 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8494 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8495 (bool can_remove_if_no_direct_calls_p (void)):
8496 created from cgraph_can_remove_if_no_direct_calls_p
8497 (inline bool has_gimple_body_p (void)):
8498 created from cgraph_function_with_gimple_body_p
8499 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8500 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8501 (static inline void debug_cgraph (void)): created from debug_cgraph
8502 (static void record_function_versions (tree decl1, tree decl2)):
8503 created from record_function_versions
8504 (static void delete_function_version (tree decl)):
8505 created from delete_function_version
8506 (static void add_new_function (tree fndecl, bool lowered)):
8507 created from cgraph_add_new_function
8508 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8509 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8510 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8511 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8512 (static cgraph_node *get_for_asmname (tree asmname)):
8513 created from cgraph_node_for_asm
8514 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8515 created from cgraph_same_body_alias
8516 (static bool used_from_object_file_p_worker (cgraph_node *node,
8517 void *): new function
8518 (static bool non_local_p (cgraph_node *node, void *)):
8519 created from cgraph_non_local_node_p_1
8520 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8521 created from verify_cgraph
8522 (static bool make_local (cgraph_node *node, void *)):
8523 created from cgraph_make_node_local
8524 (static cgraph_node *create_alias (tree alias, tree target)):
8525 created from cgraph_create_function_alias
8526 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8527 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8528 created from cgraph_create_edge_1
8529 * cgraph.h (varpool_node):
8530 (void remove (void)): created from varpool_remove_node
8531 (void dump (FILE *f)): created from dump_varpool_node
8532
8533 2014-07-24 Richard Biener <rguenther@suse.de>
8534
8535 PR ipa/61823
8536 * tree-ssa-structalias.c (create_variable_info_for_1):
8537 Use varpool_get_constructor.
8538 (create_variable_info_for): Likewise.
8539
8540 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8541
8542 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8543 subtract outgoing area size when restoring stack_pointer_rtx.
8544
8545 2014-07-24 Nick Clifton <nickc@redhat.com>
8546
8547 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8548 that operations are taking place in parallel.
8549 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8550
8551 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8552
8553 * omp-low.c (extract_omp_for_data): Add missing break statement.
8554
8555 2014-07-24 Richard Biener <rguenther@suse.de>
8556
8557 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8558 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8559 and adjust MOVE_RATIO query accordingly.
8560 (estimate_num_insns): Adjust callers.
8561 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8562 * ipa-cp.c (gather_context_independent_values,
8563 estimate_local_effects): Likewise.
8564 * ipa-split.c (consider_split): Likewise.
8565
8566 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8567
8568 * config/i386/driver-i386.c: Remove names of unused arguments and
8569 unnecessary unused attributes.
8570 * config/i386/host-mingw32.c: Likewise.
8571 * config/i386/i386.c: Likewise.
8572 * config/i386/winnt-stubs.c: Likewise.
8573 * config/i386/winnt.c: Likewise.
8574
8575 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8576
8577 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8578 (aarch64_gen_loadwb_pair): New helper function.
8579 (aarch64_expand_epilogue): Simplify code using new helper functions.
8580 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8581
8582 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8583
8584 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8585 (aarch64_gen_storewb_pair): New helper function.
8586 (aarch64_expand_prologue): Simplify code using new helper functions.
8587 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8588
8589 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8590
8591 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8592 Rename to aarch64_save_callee_saves, remove restore code.
8593 (aarch64_restore_callee_saves): New function.
8594
8595 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8596
8597 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8598 (aarch64_save_callee_saves): New function to handle reg save
8599 for both core and vectore regs.
8600
8601 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8602
8603 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8604 (aarch64_gen_store_pair): New helper function.
8605 (aarch64_save_or_restore_callee_save_registers)
8606 (aarch64_save_or_restore_fprs): Use new helper functions.
8607
8608 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8609
8610 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8611 (aarch64_save_or_restore_callee_save_registers)
8612 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8613
8614 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8615
8616 * config/aarch64/aarch64.c
8617 (aarch64_save_or_restore_callee_save_registers)
8618 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8619
8620 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8621
8622 * config/aarch64/aarch64.c
8623 (aarch64_save_or_restore_callee_save_registers)
8624 (aarch64_save_or_restore_fprs): Remove 'increment'.
8625
8626 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8627
8628 * config/aarch64/aarch64.c
8629 (aarch64_save_or_restore_callee_save_registers)
8630 (aarch64_save_or_restore_fprs): Use register offset in
8631 cfun->machine->frame.reg_offset.
8632
8633 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8634
8635 * config/aarch64/aarch64.c
8636 (aarch64_save_or_restore_callee_save_registers)
8637 (aarch64_save_or_restore_fprs): Remove base_rtx.
8638
8639 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8640
8641 * config/aarch64/aarch64.c
8642 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8643 to 'start_offset'. Remove local variable 'start_offset'.
8644
8645 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8646
8647 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8648 type to HOST_WIDE_INT.
8649
8650 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8651
8652 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8653 (aarch64_save_or_restore_fprs)
8654 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8655
8656 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8657
8658 * config/arm/t-rtems-eabi: Add
8659 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8660 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8661 mbig-endian/mthumb/march=armv7-r, and
8662 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8663 multilibs.
8664
8665 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8666 Chris Johns <chrisj@rtems.org>
8667 Joel Sherrill <joel.sherrill@oarcorp.com>
8668
8669 * config.gcc: Add nios2-*-rtems*.
8670 * config/nios2/rtems.h: New file.
8671 * gcc/config/nios2/t-rtems: New file.
8672
8673 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8674
8675 PR target/61396
8676 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8677 constant numbers, not general constants.
8678 (rs6000_expand_vector_init): Ditto.
8679
8680 2014-07-23 Nathan Sidwell <nathan@acm.org>
8681
8682 * gcov-tool.c (gcov_list): Declare here.
8683 (set_gcov_list): Remove.
8684 (gcov_output_files): Set gcov_list directly.
8685
8686 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8687
8688 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8689
8690 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8691
8692 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8693 callee-saved registers are available for padding purpose
8694 and r3 is not mandatory, then prefer use those callee-saved
8695 instead of r3.
8696
8697 2014-07-23 Richard Biener <rguenther@suse.de>
8698
8699 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8700 * combine.c: Include statistics.h and params.h.
8701 (combine_instructions): Guard three and four insn combines
8702 with max-combine-insns value. Record statistics for combines
8703 performed.
8704 * doc/invoke.texi (max-combine-insns): Document new param.
8705
8706 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8707
8708 * graphite-isl-ast-to-gimple.c:
8709 (translate_isl_ast_node_block): New function.
8710 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8711
8712 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8713 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8714
8715 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8716
8717 * graphite-isl-ast-to-gimple.c:
8718 (get_max_schedule_dimensions): New function.
8719 (extend_schedule): Likewise.
8720 (generate_isl_schedule): Add calling of extend_schedule and
8721 get_max_schedule_dimensions.
8722
8723 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8724
8725 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8726 (case UNSPEC): Handle UNSPEC_RBIT.
8727
8728 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8729
8730 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8731 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8732
8733 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8734
8735 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8736
8737 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8738
8739 * graphite-isl-ast-to-gimple.c:
8740 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8741 (ivs_params_clear):
8742 (build_iv_mapping): New function.
8743 (translate_isl_ast_node_user): Likewise.
8744 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8745
8746 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8747 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8748 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8749
8750 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8751
8752 PR target/55701
8753 * config/arm/arm.md (setmem): New pattern.
8754 * config/arm/arm-protos.h (struct tune_params): New fields.
8755 (arm_gen_setmem): New prototype.
8756 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8757 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8758 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8759 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8760 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8761 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8762 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8763 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8764 (arm_const_inline_cost): New function.
8765 (arm_block_set_max_insns): New function.
8766 (arm_block_set_non_vect_profit_p): New function.
8767 (arm_block_set_vect_profit_p): New function.
8768 (arm_block_set_unaligned_vect): New function.
8769 (arm_block_set_aligned_vect): New function.
8770 (arm_block_set_unaligned_non_vect): New function.
8771 (arm_block_set_aligned_non_vect): New function.
8772 (arm_block_set_vect, arm_gen_setmem): New functions.
8773
8774 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8775
8776 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8777
8778 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8779
8780 PR target/61855
8781 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8782 out of #ifdef __OPTIMIZE__.
8783
8784 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8785
8786 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8787 different trapping status if -fnon-call-exceptions is enabled.
8788
8789 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8790
8791 * expr.c (store_field): Handle VOIDmode for calls that return values
8792 in multiple locations.
8793
8794 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8795
8796 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8797 (altivec_vsldoi_<mode>): Likewise.
8798
8799 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8800
8801 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8802 to the number of characters in the line.
8803
8804 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8805
8806 * graphite-isl-ast-to-gimple.c: Add using of
8807 build_nonstandard_integer_type instead of int128_integer_type_node.
8808
8809 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8810
8811 * toplev.c (output_stack_usage): Adjust the location of the warning.
8812
8813 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8814
8815 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8816 (*membar_storeload): Disable for LEON3.
8817
8818 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8819
8820 PR rtl-optimization/61461
8821 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8822
8823 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8824
8825 PR target/61794
8826 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8827 Fix instruction constraint.
8828 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8829
8830 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8831
8832 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8833
8834 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8835
8836 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8837 GNU coding standards.
8838 (nds32_register_move_cost): Likewise.
8839 (nds32_memory_move_cost): Likewise.
8840 (nds32_address_cost): Likewise.
8841
8842 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8843
8844 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8845
8846 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8847
8848 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8849 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8850 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8851 (HAVE_sync_compare_and_swapqi): Define.
8852 (HAVE_sync_compare_and_swaphi): Likewise.
8853 (HAVE_sync_compare_and_swapsi): Likewise.
8854
8855 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8856
8857 * config/mips/p5600.md: Add missing cpu tests.
8858
8859 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8860
8861 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8862 (vmla_f64): Likewise.
8863 (vfms_f64): Likewise.
8864 (vmls_f64): Likewise.
8865
8866 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8867
8868 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8869 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8870
8871 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8872
8873 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8874 (vmlal_high_lane_s32): Likewise.
8875 (vmlal_high_lane_u16): Likewise.
8876 (vmlal_high_lane_u32): Likewise.
8877 (vmlsl_high_lane_s16): Likewise.
8878 (vmlsl_high_lane_s32): Likewise.
8879 (vmlsl_high_lane_u16): Likewise.
8880 (vmlsl_high_lane_u32): Likewise.
8881
8882 2014-07-17 Terry Guo <terry.guo@arm.com>
8883
8884 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8885 (alus_reg): Renamed to alus_sreg.
8886 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8887 from alu_reg to alu_sreg. Change type of dsp instructions from
8888 alu_reg to alu_dsp_reg.
8889 * config/arm/thumb1.md: Likewise.
8890 * config/arm/thumb2.md: Likewise.
8891 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8892 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8893 with alu_sreg and alus_sreg.
8894 * config/arm/arm1026ejs.md (alu_op): Likewise.
8895 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8896 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8897 * config/arm/fa526.md (526_alu_op): Likewise.
8898 * config/arm/fa606te.md (606te_alu_op): Likewise.
8899 * config/arm/fa626te.md (626te_alu_op): Likewise.
8900 * config/arm/fa726te.md (726te_alu_op): Likewise.
8901 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8902 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8903 alu_sreg, alu_dsp_reg and alus_sreg.
8904 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8905 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8906 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8907 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8908 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8909 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8910 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8911 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8912 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8913 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8914 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8915 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8916 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8917 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8918 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8919 alus_reg to alus_sreg.
8920
8921 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8922
8923 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8924 infinity format.
8925
8926 2014-07-17 Richard Biener <rguenther@suse.de>
8927
8928 PR rtl-optimization/61801
8929 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8930 don't set reg_pending_barrier if it appears in a debug-insn.
8931
8932 2014-07-16 DJ Delorie <dj@redhat.com>
8933
8934 * config/rx/rx.c (rx_option_override): Fix alignment values.
8935 (rx_align_for_label): Likewise.
8936
8937 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8938
8939 PR target/61737.
8940 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8941 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8942 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8943 functions.
8944 (cris_print_index, cris_print_operand, cris_constant_index_p)
8945 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8946 (cris_address_cost): Ditto last CONSTANT_P.
8947 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8948 callers changed. Yield cris_offsettable_symbol for non-PIC
8949 constant symbolic expressions including labels. Yield cris_unspec
8950 for all unspecs.
8951 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8952 target to pic_offset_table_rtx for calls that will likely go
8953 through PLT, const0_rtx when they can't. All callers changed.
8954 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8955 symbolic expressions to be PICified. Remove second, redundant,
8956 assert on can_create_pseudo_p returning non-zero. Use
8957 replace_equiv_address_nv, not replace_equiv_address, for final
8958 operand update.
8959 * config/cris/cris.md ("movsi"): Move variable t to pattern
8960 toplevel. Adjust assert for new cris_symbol_type member. Use
8961 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8962 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8963 for lapc stricter.
8964 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8965 ("call", "call_value"): Use second incoming operand as a marker
8966 for pic-offset-table-register being used.
8967 ("*expanded_call_non_v32", "*expanded_call_v32")
8968 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8969 second incoming operand to CALL, match cris_call_type_marker.
8970 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8971 ("*expanded_call_side"): Ditto. Fix typo in comment.
8972 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8973 CONSTANT_P.
8974 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8975 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8976 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8977 users changed. Add members cris_offsettable_symbol and cris_unspec.
8978 (cris_symbol_type): Rename from cris_pic_symbol_type.
8979 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8980 just CONSTANT_P.
8981 * config/cris/cris-protos.h (cris_symbol_type_of,
8982 cris_expand_pic_call_address): Adjust prototypes.
8983 (cris_legitimate_constant_p): New prototype.
8984
8985 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8986 an existing tmake_file. Don't add t-slibgcc and t-linux.
8987
8988 2014-07-17 Jason Merrill <jason@redhat.com>
8989
8990 PR c++/61623
8991 * symtab.c (symtab_remove_from_same_comdat_group): Also
8992 set_comdat_group to NULL_TREE.
8993 (verify_symtab): Fix diagnostic.
8994
8995 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8996
8997 PR target/61662
8998 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8999
9000 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9001
9002 Support location tracking for built-in macro tokens
9003 * input.h (is_location_from_builtin_token): New function declaration.
9004 * input.c (is_location_from_builtin_token): New function definition.
9005 * toplev.c (general_init): Tell libcpp what the pre-defined
9006 spelling location for built-in tokens is.
9007
9008 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9009
9010 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9011 on the FUNCTION_DECL.
9012
9013 2014-07-16 Richard Biener <rguenther@suse.de>
9014
9015 PR other/61782
9016 * doc/extend.texi (always_inline): Clarify.
9017
9018 2014-07-15 Eric Christopher <echristo@gmail.com>
9019
9020 * doc/invoke.texi (Link Options): Document -z option.
9021
9022 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9023
9024 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9025 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9026
9027 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9028
9029 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9030
9031 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9032
9033 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9034 varpool_assemble_decl.
9035 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9036 true.
9037
9038 2014-07-15 Michael Matz <matz@suse.de>
9039
9040 PR rtl-optimization/61772
9041 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9042
9043 2014-07-15 Richard Biener <rguenther@suse.de>
9044
9045 * opts.c (default_options_table): Disable bit-ccp at -Og.
9046
9047 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9048
9049 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9050
9051 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9052
9053 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9054 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9055 call langhook for unknown declaration.
9056 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9057 * tree.h (DECL_ARGUMENTS): Update.
9058 * print-tree.c (print_node): Update.
9059 * tree-core.h (tree_decl_non_common): Remove arguments.
9060 (tree_function_decl): Add arguments.
9061
9062 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9063
9064 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9065
9066 2014-07-14 Richard Biener <rguenther@suse.de>
9067
9068 PR tree-optimization/61779
9069 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9070 simplifying a condition.
9071
9072 2014-07-14 Richard Biener <rguenther@suse.de>
9073
9074 * builtins.c (c_strlen): Make only_value == 2 really only
9075 affect warning generation.
9076
9077 2014-07-14 Richard Biener <rguenther@suse.de>
9078
9079 PR tree-optimization/61757
9080 PR tree-optimization/61783
9081 PR tree-optimization/61787
9082 * tree-ssa-dom.c (record_equality): Revert canonicalization
9083 change and add comment.
9084 (propagate_rhs_into_lhs): Revert previous fix, removing
9085 loop depth restriction again.
9086
9087 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9088
9089 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9090 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9091 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9092 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9093 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9094 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9095 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9096
9097 2014-07-14 Richard Biener <rguenther@suse.de>
9098
9099 * cgraph.h (decl_in_symtab_p): Make inline.
9100
9101 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9102
9103 PR middle-end/61294
9104 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9105
9106 PR target/61656
9107 * config/i386/i386.c (classify_argument): Don't merge classes above
9108 number of words.
9109
9110 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9111
9112 * cgraph.h (symtab_node): Add nonzero_address.
9113 (decl_in_symtab_p): Break out from ...
9114 (symtab_get_node): ... here.
9115 * fold-const.c: Include cgraph.h
9116 (tree_single_nonzero_warnv_p): Use symtab to determine
9117 if symbol is non-zero.
9118 * symtab.c (symtab_node::nonzero_address): New method.
9119
9120 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9121
9122 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9123 forgotten in previous commit.
9124
9125 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9126
9127 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9128 on builtin types.
9129 * ipa-devirt.c: Include stor-layout.h and intl.h
9130 (odr_subtypes_equivalent_p): New function.
9131 (warn_odr): New function.
9132 (warn_type_mismatch): New function.
9133 (odr_types_equivalent_p): New function.
9134 (add_type_duplicate): Use it.
9135 * common.opt (Wodr): New flag.
9136 * doc/invoke.texi (Wodr): Document new warning.
9137
9138 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9139
9140 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9141 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9142 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9143 (varpool_get_constructor): Push CTORS_IN timevar.
9144 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9145
9146 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9147
9148 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9149 Remove VOID_FTYPE_PUSHORT.
9150 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9151 Change code to USHORT_FTYPE_VOID.
9152 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9153 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9154 (ix86_atomic_assign_expand_fenv): Update for
9155 __builtin_ia32_fnstsw changes.
9156 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9157 (fnstsw): Change operand 0 to nonimmediate operand.
9158
9159 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9160
9161 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9162 (varpool_get_constructor): New function.
9163 (varpool_ctor_useable_for_folding_p): Break out from ...
9164 (ctor_for_folding): ... here; use varpool_get_constructor.
9165 (varpool_assemble_decl): Likewise.
9166 * lto-streamer.h (struct output_block): Turn cgraph_node
9167 to symbol filed.
9168 (lto_input_variable_constructor): Declare.
9169 * ipa-visibility.c (function_and_variable_visibility): Use
9170 varpool_get_constructor.
9171 * cgraph.h (varpool_get_constructor): Declare.
9172 (varpool_ctor_useable_for_folding_p): New function.
9173 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9174 parameter; return error_mark_node for non-trivial constructors.
9175 (lto_write_tree_1, DFS_write_tree): Update use of
9176 get_symbol_initial_value.
9177 (output_function): Update initialization of symbol.
9178 (output_constructor): New function.
9179 (copy_function): Rename to ..
9180 (copy_function_or_variable): ... this one; handle vars too.
9181 (lto_output): Output variable sections.
9182 * lto-streamer-in.c (input_constructor): New function.
9183 (lto_read_body): Rename from ...
9184 (lto_read_body_or_constructor): ... this one; handle vars too.
9185 (lto_input_variable_constructor): New function.
9186 * ipa-prop.c (ipa_prop_write_jump_functions,
9187 ipa_prop_write_all_agg_replacement): Update.
9188 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9189 (output_cgraph_opt_summary): Set symbol to NULL.
9190
9191 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9192
9193 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9194 non-polymorphic types.
9195 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9196 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9197 of types is not polymorphic.
9198
9199 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9200
9201 * lra-constraints.c (remove_inheritance_pseudos): Process
9202 destination pseudo too.
9203
9204 2014-07-11 Rong Xu <xur@google.com>
9205
9206 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9207 commit r212448.
9208
9209 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9210
9211 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9212 * config/avr/avr-devices.c (AVR_MCU): Same.
9213 (avr_mcu_types): add text start value to end of device list.
9214 * config/avr/avr-mcus.def: Add text section start for all devices.
9215 (ata5782): Add new avr5 device.
9216 (ata5831): Same.
9217 * config/avr/avr-tables.opt: Regenerate.
9218 * config/avr/avr.h: Add declaration for text section start handler.
9219 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9220 SPEC functions.
9221 (LINK_SPEC): Include text section start handler to linker spec.
9222 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9223 pass -Ttext option to linker if the text section start for the device
9224 is not zero.
9225 * config/avr/t-multilib: Regenerate.
9226 * doc/avr-mmcu.texi: Regenerate.
9227
9228 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9229
9230 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9231 * config/rs6000/aix52.h (LINK_SPEC): Same.
9232 * config/rs6000/aix53.h (LINK_SPEC): Same.
9233 * config/rs6000/aix61.h (LINK_SPEC): Same.
9234 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9235
9236 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9237
9238 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9239 (graphite_verify): New function.
9240 (ivs_params_clear): New function.
9241 (gcc_expression_from_isl_ast_expr_id): New function.
9242 (gcc_expression_from_isl_expr_int): New function.
9243 (binary_op_to_tree): New function.
9244 (ternary_op_to_tree): New function.
9245 (unary_op_to_tree): New function.
9246 (nary_op_to_tree): New function.
9247 (gcc_expression_from_isl_expr_op): New function.
9248 (gcc_expression_from_isl_expression): New function.
9249 (graphite_create_new_loop): New function.
9250 (translate_isl_ast_for_loop): New function.
9251 (get_upper_bound): New function.
9252 (graphite_create_new_loop_guard): New function.
9253 (translate_isl_ast_node_for): New function.
9254 (translate_isl_ast): New function.
9255 (add_parameters_to_ivs_params): New function.
9256 (scop_to_isl_ast): New parameter ip.
9257 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9258
9259 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9260
9261 * config/xtensa/predicates.md (call expander): Update for
9262 DECL_SECTION_NAME being string.
9263
9264 2014-07-11 Richard Biener <rguenther@suse.de>
9265
9266 PR middle-end/61473
9267 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9268 can be implemented with a single load followed by a single store.
9269 (c_strlen): Only warn when only_value is not 2.
9270
9271 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9272
9273 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9274
9275 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9276
9277 PR target/61561
9278 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9279 (*movhi_bytes): Likewise.
9280 (*arm_movqi_insn): Likewise.
9281
9282 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9283
9284 PR target/56858
9285 * config/alpha/alpha.c: Include tree-pass.h, context.h
9286 and pass_manager.h.
9287 (pass_data_handle_trap_shadows): New pass.
9288 (pass_handle_trap_shadows::gate): New pass gate function.
9289 (make_pass_handle_trap_shadows): New function.
9290 (rest_of_handle_trap_shadows): Ditto.
9291
9292 (alpha_align_insns_1): Rename from alpha_align_insns.
9293 (pass_data_align_insns): New pass.
9294 (pass_align_insns::gate): New pass gate function.
9295 (make_pass_aling_insns): New function.
9296 (rest_of_align_insns): Ditto.
9297 (alpha_align_insns): Ditto.
9298
9299 (alpha_option_override): Declare handle_trap_shadows info
9300 and align_insns_info. Register handle_trap_shadows and align_insns
9301 passes here.
9302 (alpha_reorg): Do not call alpha_trap_shadows and
9303 alpha_align_insn from here.
9304
9305 (alpha_pad_function_end): Do not skip BARRIERs.
9306
9307 2014-07-10 Rong Xu <xur@google.com>
9308
9309 Add gcov-tool: an offline gcda profile processing tool support.
9310 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9311 (gcov_is_error): Ditto.
9312 (gcov_read_string): Ditto.
9313 (gcov_read_sync): Ditto.
9314 * gcov-io.h: Move counter defines to gcov-counter.def.
9315 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9316 * coverage.c: Ditto.
9317 * gcov-tool.c: Offline gcda profile processing tool.
9318 (unlink_gcda_file): Remove one gcda file.
9319 (unlink_profile_dir): Remove gcda files from the profile path.
9320 (gcov_output_files): Output gcda files to an output dir.
9321 (profile_merge): Merge two profiles in directory.
9322 (print_merge_usage_message): Print merge usage.
9323 (merge_usage): Print merge usage and exit.
9324 (do_merge): Driver for profile merge sub-command.
9325 (profile_rewrite): Rewrite profile.
9326 (print_rewrite_usage_message): Print rewrite usage.
9327 (rewrite_usage): Print rewrite usage and exit.
9328 (do_rewrite): Driver for profile rewrite sub-command.
9329 (print_usage): Print gcov-info usage and exit.
9330 (print_version): Print gcov-info version.
9331 (process_args): Process arguments.
9332 (main): Main routine for gcov-tool.
9333 * Makefile.in: Build and install gcov-tool.
9334 * gcov-counter.def: New file split from gcov-io.h.
9335 * doc/gcc.texi: Include gcov-tool.texi.
9336 * doc/gcov-tool.texi: Document for gcov-tool.
9337
9338 2014-07-10 Richard Biener <rguenther@suse.de>
9339
9340 PR tree-optimization/61757
9341 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9342 (propagate_rhs_into_lhs): Revert part of last change.
9343
9344 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9345
9346 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9347 FUNCTION_DECLs.
9348
9349 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9350
9351 PR middle-end/53590
9352 * function.c (allocate_struct_function): Revert r188667 change.
9353
9354 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9355
9356 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9357
9358 * doc/install.texi: Remove links to defunct package providers for
9359 Solaris.
9360
9361 2014-07-09 Tom de Vries <tom@codesourcery.com>
9362
9363 * final.c (get_call_fndecl): Declare.
9364 (self_recursive_call_p): New function.
9365 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9366
9367 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9368
9369 * ipa-devirt.c (record_node): Walk through aliases.
9370
9371 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9372
9373 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9374
9375 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9376
9377 Revert:
9378 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9379
9380 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9381
9382 * ipa-visibility.c (function_and_variable_visibility): Remove
9383 temporary hack disabling local aliases on AIX.
9384
9385 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9386
9387 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9388 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9389
9390 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9391
9392 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9393 * rs6000/rs6000.c: Inline output of .set instruction.
9394 (declare_alias_data): New struct.
9395 (rs6000_declare_alias): New function.
9396 (rs6000_xcoff_declare_function_name): Use it.
9397 (rs6000_xcoff_declare_object_name): New function.
9398 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9399 (ASM_OUTPUT_DEF): Turn to empty definition.
9400
9401 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9402
9403 PR bootstrap/61679
9404 * hash-table.h: use hash_table::value_type instead of
9405 Descriptor::value_type in the return types of several methods.
9406
9407 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9408
9409 * tree-pass.h (pass_data): Remove has_execute member.
9410 * passes.c (execute_one_pass): Don't check pass->has_execute.
9411 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9412 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9413 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9414 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9415 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9416 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9417 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9418 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9419 gimple-low.c, gimple-ssa-isolate-paths.c,
9420 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9421 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9422 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9423 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9424 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9425 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9426 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9427 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9428 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9429 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9430 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9431 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9432 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9433 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9434 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9435 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9436 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9437 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9438 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9439 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9440 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9441 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9442 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9443 web.c: Remove initializer for pass_data::has_execute.
9444
9445 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9446
9447 * graphite-htab.h: Use hash_map instead of hash_table.
9448 * graphite-clast-to-gimple.c: Adjust.
9449 * passes.c: Use hash_map instead of hash_table.
9450 * sese.c: Likewise.
9451 * sese.h: Remove now unused code.
9452
9453 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9454
9455 PR target/61599
9456 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9457 than zero.
9458
9459 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9460
9461 PR rtl-optimization/61673
9462 * combine.c (simplify_comparison): Test just mode's sign bit
9463 in tmode rather than the sign bit and any bits above it.
9464
9465 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9466
9467 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9468 Add __isl_give to the declaration.
9469 (generate_isl_schedule): Likewise.
9470 (scop_to_isl_ast): Likewise.
9471
9472 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9473
9474 * config/arm/arm.c (cortexa5_extra_costs): New table.
9475 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9476
9477 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9478
9479 PR tree-optimization/61725
9480 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9481 range, use range_includes_zerop_p instead of integer_zerop on
9482 vr0->min, only use log2 of max if min is not negative.
9483
9484 2014-07-08 Richard Biener <rguenther@suse.de>
9485
9486 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9487 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9488 restriction on loop depth difference.
9489 (record_equality): Likewise.
9490 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9491 (loop_depth_of_name): Remove.
9492 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9493 restriction on loop depth difference.
9494 (init_copy_prop): Likewise.
9495
9496 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9497
9498 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9499 parameter.
9500 (walk_aliased_vdefs): Likewise.
9501 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9502 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9503 (detect_type_change_from_memory_writes): Check if entry was reached.
9504
9505 2014-07-08 Richard Biener <rguenther@suse.de>
9506
9507 PR tree-optimization/61681
9508 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9509 NONLOCAL inside ESCAPED.
9510
9511 2014-07-08 Richard Biener <rguenther@suse.de>
9512
9513 PR tree-optimization/61680
9514 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9515 Handle properly all read-write dependences with group accesses.
9516
9517 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9518
9519 PR tree-optimization/61576
9520 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9521 block containing reduction statement is predecessor of phi basi block.
9522
9523 2014-07-08 Marek Polacek <polacek@redhat.com>
9524
9525 PR c/60226
9526 * fold-const.c (round_up_loc): Change the parameter type.
9527 Remove assert.
9528 * fold-const.h (round_up_loc): Adjust declaration.
9529 * stor-layout.c (finalize_record_size): Check for too large types.
9530
9531 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9532
9533 * symtab.c: Include calls.h.
9534 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9535
9536 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9537
9538 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9539 little-endian code generation.
9540 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9541 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9542 (spe_evmergehilo): Rename to...
9543 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9544 (spe_evmergelo): Rename to...
9545 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9546 (spe_evmergelohi): Rename to...
9547 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9548 (spe_evmergehi, spe_evmergehilo): New expanders.
9549 (spe_evmergelo, spe_evmergelohi): Likewise.
9550 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9551 (*frob_tf_ti): Likewise.
9552 (*frob_<mode>_di_2): Likewise.
9553 (*frob_tf_di_8_2): Likewise.
9554 (*frob_di_<mode>): Likewise.
9555 (*frob_ti_tf): Likewise.
9556 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9557 (*frob_ti_<mode>_8_2): Likewise.
9558 (*frob_ti_tf_2): Likewise.
9559 (mov_si<mode>_e500_subreg0): Rename to...
9560 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9561 endianness only.
9562 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9563 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9564 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9565 the big endianness only.
9566 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9567 (*mov_si<mode>_e500_subreg0_2): Rename to...
9568 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9569 big big endianness only.
9570 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9571 (*mov_si<mode>_e500_subreg4): Rename to...
9572 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9573 endianness only.
9574 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9575 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9576 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9577 the big endianness only.
9578 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9579 pattern.
9580 (*mov_si<mode>_e500_subreg4_2): Rename to...
9581 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9582 endianness only.
9583 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9584 (*mov_sitf_e500_subreg8): Rename to...
9585 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9586 endianness only.
9587 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9588 (*mov_sitf_e500_subreg8_2): Rename to...
9589 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9590 endianness only.
9591 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9592 (*mov_sitf_e500_subreg12): Rename to...
9593 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9594 endianness only.
9595 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9596 (*mov_sitf_e500_subreg12_2): Rename to...
9597 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9598 endianness only.
9599 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9600
9601 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9602
9603 * asan.c (instrument_strlen_call): Do not instrument first byte
9604 in strlen if already instrumented.
9605
9606 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9607
9608 * config/arm/arm.opt (mwords-little-endian): Delete.
9609 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9610 of TARGET_LITTLE_WORDS.
9611 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9612 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9613 warning.
9614 * doc/invoke.texi: Remove references to -mwords-little-endian.
9615
9616 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9617
9618 * expmed.c (struct init_expmed_rtl): Change all fields but
9619 pow2 and cint from struct rtx_def to rtx.
9620 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9621 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9622 at the end again.
9623
9624 2014-07-06 Marek Polacek <polacek@redhat.com>
9625
9626 PR c/6940
9627 * doc/invoke.texi: Document -Wsizeof-array-argument.
9628
9629 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9630
9631 * wide-int.h (wide_int_storage): Change declaration from struct
9632 to class.
9633
9634 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9635
9636 * cgraph.c (cgraph_create_indirect_edge): Update call of
9637 get_polymorphic_call_info.
9638 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9639 (possible_polymorphic_call_targets): Add parameter call.
9640 (decl_maybe_in_construction_p): New predicate.
9641 (get_polymorphic_call_info): Add parameter call;
9642 use decl_maybe_in_construction_p.
9643 * gimple-fold.c (fold_gimple_assign): Update use of
9644 possible_polymorphic_call_targets.
9645 (gimple_fold_call): Likewise.
9646 * ipa-prop.c: Inlcude calls.h
9647 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9648 (param_type_may_change_p): New predicate.
9649 (detect_type_change_from_memory_writes): Break out from ...
9650 (detect_type_change): ... this one; use param_type_may_change_p.
9651 (detect_type_change_ssa): Use param_type_may_change_p.
9652 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9653
9654 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9655
9656 PR target/49423
9657 * config/arm/arm-protos.h (arm_legitimate_address_p,
9658 arm_is_constant_pool_ref): Add prototypes.
9659 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9660 (arm_is_constant_pool_ref) New function.
9661 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9662 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9663 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9664 operand. Remove pool_range and neg_pool_range attributes.
9665 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9666 pool_range and neg_pool_range attributes.
9667 * config/arm/constraints.md (Uh): New constraint.
9668 (Uq): Don't allow constant pool references.
9669
9670 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9671
9672 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9673 (move_lo_quad_internal_be_<mode>): Likewise.
9674 (move_lo_quad_<mode>): Convert to define_expand.
9675 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9676 (aarch64_simd_move_hi_quad_be_<mode>): New.
9677 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9678 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9679 (aarch64_combinez_be<mode>): New.
9680 (aarch64_combine<mode>): Convert to define_expand.
9681 (aarch64_combine_internal<mode>): New.
9682 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9683
9684 2014-07-04 Tom de Vries <tom@codesourcery.com>
9685
9686 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9687 combination of earlyclobber and read/write modifiers.
9688
9689 2014-07-04 Tom de Vries <tom@codesourcery.com>
9690
9691 * config/aarch64/aarch64-simd.md
9692 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9693
9694 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9695
9696 PR target/61714
9697 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9698
9699 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9700
9701 PR middle-end/61654
9702 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9703
9704 PR tree-optimization/61684
9705 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9706 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9707
9708 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9709 Kito Cheng <kito@0xlab.org>
9710 Monk Chiang <sh.chiang04@gmail.com>
9711
9712 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9713 (nds32_symbol_load_store_p): Move to ...
9714 (nds32_fp_as_gp_check_available): Move to ...
9715 * config/nds32/nds32-fp-as-gp.c: ... here.
9716 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9717 extern declaration.
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_expand_load_multiple): Move to ...
9724 (nds32_expand_store_multiple): Move to ...
9725 (nds32_expand_movmemqi): Move to ...
9726 * config/nds32/nds32-memory-manipulation.c: ... here.
9727
9728 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9729 Kito Cheng <kito@0xlab.org>
9730 Monk Chiang <sh.chiang04@gmail.com>
9731
9732 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9733 (nds32_output_casesi_pc_relative): Move to ...
9734 (nds32_output_casesi): Move to ...
9735 (nds32_mem_format): Move to ...
9736 (nds32_output_16bit_store): Move to ...
9737 (nds32_output_16bit_load): Move to ...
9738 (nds32_output_32bit_store): Move to ...
9739 (nds32_output_32bit_load): Move to ...
9740 (nds32_output_32bit_load_s): Move to ...
9741 (nds32_output_stack_push): Move to ...
9742 (nds32_output_stack_pop): Move to ...
9743 * config/nds32/nds32-md-auxiliary.c: ... here.
9744
9745 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9746 Ling-Hua Tseng <uranus@tinlans.org>
9747
9748 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9749 the purpose of this file.
9750
9751 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9752 Kito Cheng <kito@0xlab.org>
9753 Monk Chiang <sh.chiang04@gmail.com>
9754
9755 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9756 (nds32_address_cost): Move implementation to ...
9757 * config/nds32/nds32-cost.c: ... here.
9758 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9759 (nds32_address_cost_impl): Declare.
9760
9761 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9762 Kito Cheng <kito@0xlab.org>
9763 Monk Chiang <sh.chiang04@gmail.com>
9764
9765 * config/nds32/nds32.c
9766 (nds32_consecutive_registers_load_store_p): Move to ...
9767 (nds32_valid_multiple_load_store): Move to ...
9768 (nds32_valid_stack_push_pop): Move to ...
9769 (nds32_can_use_bclr_p): Move to ...
9770 (nds32_can_use_bset_p): Move to ...
9771 (nds32_can_use_btgl_p): Move to ...
9772 (nds32_can_use_bitci_p): Move to ...
9773 * config/nds32/nds32-predicates.c: ... here.
9774
9775 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9776 Kito Cheng <kito@0xlab.org>
9777 Monk Chiang <sh.chiang04@gmail.com>
9778
9779 * config/nds32/nds32.c
9780 (nds32_expand_builtin_null_ftype_reg): Move to ...
9781 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9782 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9783 (nds32_init_builtins): Move implementation to ...
9784 (nds32_expand_builtin): Move implementation to ...
9785 * config/nds32/nds32-intrinsic.c: ... here.
9786 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9787 (nds32_expand_builtin_impl): Declare.
9788
9789 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9790 Kito Cheng <kito@0xlab.org>
9791 Monk Chiang <sh.chiang04@gmail.com>
9792
9793 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9794 (nds32_emit_section_tail_template): Move to ...
9795 (nds32_emit_isr_jmptbl_section): Move to ...
9796 (nds32_emit_isr_vector_section): Move to ...
9797 (nds32_emit_isr_reset_conten): Move to ...
9798 (nds32_check_isr_attrs_conflict): Move to ...
9799 (nds32_construct_isr_vectors_information): Move to ...
9800 (nds32_asm_file_start): Move implementation to ...
9801 (nds32_asm_file_end): Move implementation to ...
9802 * config/nds32/nds32-isr.c: ... here.
9803 * config/nds32/nds32-protos.h
9804 (nds32_check_isr_attrs_conflict): Declare.
9805 (nds32_construct_isr_vectors_information): Declare.
9806 (nds32_asm_file_start_for_isr): Declare.
9807 (nds32_asm_file_end_for_isr): Declare.
9808
9809 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9810 Kito Cheng <kito@0xlab.org>
9811 Monk Chiang <sh.chiang04@gmail.com>
9812
9813 * config.gcc (nds32*): Add new modules to extra_objs.
9814 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9815 (nds32be-*-*): Likewise.
9816 * config/nds32/nds32-cost.c: New file.
9817 * config/nds32/nds32-fp-as-gp.c: New file.
9818 * config/nds32/nds32-intrinsic.c: New file.
9819 * config/nds32/nds32-isr.c: New file.
9820 * config/nds32/nds32-md-auxiliary.c: New file.
9821 * config/nds32/nds32-memory-manipulation.c: New file.
9822 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9823 * config/nds32/nds32-predicates.c: New file.
9824 * config/nds32/t-nds32: New file.
9825
9826 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9827
9828 PR tree-optimization/61682
9829 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9830 using cases and when one of the operands is equal to 1.
9831
9832 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9833
9834 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9835 ashr<mode>3): Correct mode of operands[2].
9836 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9837 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9838 Correct mode of operands[2]. Fix split condition.
9839
9840 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9841
9842 * arm.md (arch): Add armv6_or_vfpv3.
9843 (arch_enabled): Add test for the above.
9844 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9845 on VFP9.
9846 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9847
9848 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9849
9850 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9851 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9852 HWI 1 and negate the unsigned value.
9853 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9854 use AND instead of shift.
9855 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9856
9857 2014-07-03 Marek Polacek <polacek@redhat.com>
9858
9859 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9860 (-fsanitize=float-divide-by-zero): Move to the table with
9861 -fsanitize=undefined suboptions.
9862 (-fsanitize=float-cast-overflow): Likewise.
9863
9864 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9865
9866 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9867 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9868 endianness.
9869
9870 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9871
9872 * loop-invariant.c (struct invariant): Add a new member: eqno;
9873 (find_identical_invariants): Update eqno;
9874 (create_new_invariant): Init eqno;
9875 (get_inv_cost): Compute comp_cost with eqno;
9876
9877 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9878
9879 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9880 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9881 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9882 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9883 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9884
9885 2014-07-02 Christian Bruel <christian.bruel@st.com>
9886
9887 PR target/29349
9888 PR target/53513
9889 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9890 (make_preds_opaque): Delete.
9891 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9892 (commit_mode_sets): New function.
9893 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9894 Process all modes at once.
9895 * basic-block.h (pre_edge_lcm_avs): Declare.
9896 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9897 Call clear_aux_for_edges. Fix comments.
9898 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9899 (pre_edge_rev_lcm): Idem.
9900 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9901 parameter.
9902 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9903 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9904 Idem.
9905 * config/i386/i386.c (x96_emit_mode_set): Idem.
9906 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9907 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9908 (fpscr_toggle) Disallow from delay slot.
9909 * target.def (emit_mode_set): Add prev_mode parameter.
9910 * doc/tm.texi: Regenerate.
9911
9912 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9913
9914 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9915 variable i.
9916
9917 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9918
9919 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9920 vtable_pointer_value_to_vtable): Constify.
9921 (contains_polymorphic_type_p): Declare.
9922 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9923 vtable_pointer_value_to_vtable): Constify.
9924 (contains_polymorphic_type_p): New predicate.
9925 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9926 polymorphic types.
9927 (ipa_set_ancestor_jf): Likewise.
9928 (detect_type_change): Return false in easy cases.
9929 (compute_complex_assign_jump_func): Require type to contain
9930 polymorphic type.
9931 (compute_known_type_jump_func): Likewise.
9932
9933 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9934
9935 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9936 Remove.
9937 (type_in_anonymous_namespace_p): Constify argument.
9938 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9939 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9940 (main_odr_variant): New function.
9941 (hash_type_name): Make static; update assert; do not ICE on
9942 non-records.
9943 (types_same_for_odr): Bring here from tree.c; simplify and remove
9944 old structural comparing code that doesn't work for templates.
9945 (odr_hasher::equal): Update assert.
9946 (add_type_duplicate): Return true when bases should be computed;
9947 replace incomplete loader by complete; do not output duplicated
9948 warnings; do not ICE on non-records; set odr_violated flag.
9949 (get_odr_type): Be ready to replace incomplete type by complete
9950 one; work on ODR variants instead of main variants; reorder item
9951 in array so bases have still smaller indexes.
9952 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9953 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9954
9955 2014-07-01 Cary Coutant <ccoutant@google.com>
9956
9957 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9958 lookup.
9959 (resolve_addr_in_expr): When replacing the rtx in a location list
9960 entry, get a new address table entry.
9961 (dwarf2out_finish): Call index_location_lists even if there are no
9962 addr_index_table entries yet.
9963
9964 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9965
9966 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9967 change for not being obvious.
9968
9969 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9970
9971 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9972 unused argument.
9973
9974 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9975
9976 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9977 (vcagt_f64): Likewise.
9978 (vcale_f64): Likewise.
9979 (vcaled_f64): Likewise.
9980 (vcales_f32): Likewise.
9981 (vcalt_f64): Likewise.
9982 (vcaltd_f64): Likewise.
9983 (vcalts_f32): Likewise.
9984
9985 2014-07-01 Marek Polacek <polacek@redhat.com>
9986
9987 * doc/invoke.texi: Document -Wint-conversion.
9988
9989 2014-07-01 Marek Polacek <polacek@redhat.com>
9990
9991 PR c/58286
9992 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9993
9994 2014-07-01 Martin Liska <mliska@suse.cz>
9995
9996 IPA REF alias refactoring
9997 * cgraph.h (iterate_direct_aliases): New function.
9998 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9999 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10000 FOR_EACH_ALIAS added.
10001 (cgraph_for_node_and_aliases): Likewise.
10002 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10003 * ipa-inline.c (reset_edge_caches): Likewise.
10004 (update_caller_keys): Likewise.
10005 * trans-mem.c (ipa_tm_execute): Likewise.
10006 *varpool.c (varpool_analyze_node): Likewise.
10007 (varpool_for_node_and_aliases): Likewise.
10008 * ipa-ref.h (first_alias): New function.
10009 (last_alias): Likewise.
10010 (has_aliases_p): Likewise.
10011 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10012 is sensitive to IPA_REF_ALIASes.
10013 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10014 are put at the beginning of the list.
10015 (symtab_node::iterate_direct_aliases): New function.
10016
10017 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10018
10019 Revert:
10020 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10021 type is complete.
10022 (write_ts_type_common_tree_pointers): Do not stream fields not set
10023 for incomplete types; do not stream duplicated fields for variants;
10024 sanity check that variant and type match.
10025 (write_ts_type_non_common_tree_pointers): Likewise.
10026 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10027 TYPE_SIZE whether type is complete.
10028 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10029 write_ts_type_common_tree_pointers
10030 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10031
10032 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10033
10034 * var-tracking.c (add_stores): Return instead of asserting if old
10035 and new values for conditional store are the same.
10036
10037 2014-06-30 Richard Henderson <rth@redhat.com>
10038
10039 PR rtl-opt/61608
10040 PR target/39284
10041 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10042 the cfg if there were any changes.
10043 * passes.def: Revert move of peephole2 after reorder_blocks;
10044 move duplicate_computed_gotos before peephole2.
10045
10046 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10047
10048 * except.c (emit_note_eh_region_end): New helper function.
10049 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10050 emit EH_REGION_END note.
10051 * jump.c (cleanup_barriers): Do not split a call and its
10052 corresponding CALL_ARG_LOCATION note.
10053
10054 2014-06-30 Jeff Law <law@redhat.com>
10055
10056 PR tree-optimization/61607
10057 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10058 deeper into the SSA_NAME_VALUE chain.
10059
10060 2014-06-30 Marek Polacek <polacek@redhat.com>
10061
10062 * convert.c (convert_to_integer): Don't instrument conversions if the
10063 function has no_sanitize_undefined attribute.
10064 * ubsan.c: Don't run the ubsan pass if the function has
10065 no_sanitize_undefined attribute.
10066
10067 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10068
10069 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10070 -fsanitize=undefined suboptions.
10071
10072 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10073
10074 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10075 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10076 against bigendian and adjust indices.
10077
10078 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10079
10080 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10081
10082 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10083
10084 PR target/61633
10085 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10086 Add alternative; make early clobber. Adjust both split patterns
10087 to use operand 0 as the working register.
10088
10089 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10090
10091 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10092 as ira_object_id_map might be NULL, or 1.
10093
10094 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10095
10096 * loop-invariant.c (get_inv_cost): Handle register class.
10097 (gain_for_invariant): Check the register pressure of the inv
10098 and its overlapped register class, other than all.
10099
10100 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10101
10102 * doc/invoke.texi (Optimize Options): Fix descriptions of
10103 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10104
10105 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10106
10107 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10108 documentation.
10109
10110 2014-06-29 Tobias Grosser <tobias@grosser.es>
10111
10112 PR bootstrap/61650
10113 * graphite-isl-ast-to-gimple.c: Add missing guards.
10114
10115 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10116
10117 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10118 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10119 * flag-types.h: Add new enum fgraphite_generator.
10120 * graphite-isl-ast-to-gimple.c: New.
10121 * graphite-isl-ast-to-gimple.h: New.
10122 * graphite.c (graphite_transform_loops): Add choice of Graphite
10123 code generator, which depends on flag_graphite_code_gen.
10124
10125 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10126
10127 * graphite-dependences.c (subtract_commutative_associative_deps):
10128 Add NULL checking of the following variables: must_raw_no_source,
10129 may_raw_no_source, must_war_no_source, may_war_no_source,
10130 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10131 must_war, may_war, must_waw, may_waw.
10132
10133 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10134
10135 * graphite-clast-to-gimple.c: gloog is renamed to
10136 graphite_regenerate_ast_cloog. gloog_error is renamed to
10137 graphite_regenerate_error.
10138 * graphite-clast-to-gimple.h: The definition of the struct
10139 bb_pbb_def is moved to graphite-htab.h.
10140 Add inclusion of the hash-table.h.
10141 * graphite-htab.h: The declaration of the function gloog is moved
10142 to graphite-clast-to-gimple.h and renamed to
10143 graphite_regenerate_ast_cloog.
10144 * graphite.c (graphite_transform_loops): gloog is renamed
10145 to graphite_regenerate_ast_cloog.
10146
10147 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10148
10149 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10150 type is complete.
10151 (write_ts_type_common_tree_pointers): Do not stream fields not set
10152 for incomplete types; do not stream duplicated fields for variants;
10153 sanity check that variant and type match.
10154 (write_ts_type_non_common_tree_pointers): Likewise.
10155 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10156 TYPE_SIZE whether type is complete.
10157 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10158 write_ts_type_common_tree_pointers
10159 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10160
10161 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10162
10163 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10164
10165 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10166
10167 * tree-inline.c (remap_type_1): Do not duplicate fields
10168 that are shared in between type and its main variant.
10169
10170 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10171
10172 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10173 of the type.
10174 (ipa_set_ancestor_jf) Likewise.
10175 (check_stmt_for_type_change): Check that we work on main variant.
10176 (detect_type_change): Look into main variant.
10177 (compute_known_type_jump_func): Check that main variant has BINFO.
10178
10179 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10180
10181 * ipa-devirt.c (set_type_binfo): New function.
10182 (add_type_duplicate): Use it.
10183 (get_odr_type): Sanity check that binfos points to main variants.
10184 (get_class_context): Be sure the context's outer_type is main variant.
10185 (contains_type_p): Walk main variant.
10186 (get_polymorphic_call_info_for_decl): Set outer_type to be
10187 main variant.
10188 (get_polymorphic_call_info): Likewise.
10189 (possible_polymorphic_call_targets): Sanity check that we operate
10190 on main variant.
10191
10192 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10193
10194 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10195
10196 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10197
10198 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10199 accidental change due to wide-int branch merge.
10200
10201 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10202
10203 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10204 compressed debug support.
10205 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10206 * configure: Regenerate.
10207 * config.in: Regenerate.
10208 * common.opt (compressed_debug_sections): New enum.
10209 (gz, gz=): New options.
10210 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10211 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10212 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10213 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10214 LINK_COMPRESS_DEBUG_SPEC.
10215 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10216 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10217 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10218 (Debugging Options): Document -gz[=type].
10219
10220 2014-06-27 Martin Jambor <mjambor@suse.cz>
10221
10222 PR ipa/61160
10223 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10224 args_to_skip, use those from node instead. Copy args_to_skip and
10225 combined_args_to_skip from node to the new thunk.
10226 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10227 (cgraph_create_virtual_clone): Moved computation of
10228 combined_args_to_skip...
10229 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10230
10231 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10232
10233 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10234 redundant diagnostic machinary.
10235
10236 2014-06-27 Richard Biener <rguenther@suse.de>
10237
10238 * tree-ssa-math-opts.c (bswap_replace): Fix
10239 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10240
10241 2014-06-27 Martin Liska <mliska@suse.cz>
10242
10243 * gimple.h (gimple_location_safe): New function introduced.
10244 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10245 of gimple_location_safe replaces gimple_location.
10246 (gimple_fold_call): Likewise.
10247 * ipa-devirt.c (ipa_devirt): Likewise.
10248 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10249 * ipa.c (walk_polymorphic_call_targets): Likewise.
10250 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10251
10252 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10253
10254 PR tree-optimization/57233
10255 PR tree-optimization/61299
10256 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10257 functions.
10258 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10259 would be lowered to scalar shifts, check if corresponding
10260 shifts and vector BIT_IOR_EXPR are supported and don't lower
10261 or lower just to narrower vector type in that case.
10262 * expmed.c (expand_shift_1): Fix up handling of vector
10263 shifts and rotates.
10264
10265 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10266
10267 PR target/61586
10268 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10269
10270 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10271
10272 * doc/invoke.texi (-fsemantic-interposition): Document.
10273 * common.opt (fsemantic-interposition): New flag.
10274 * varasm.c (decl_replaceable_p): Use it.
10275
10276 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10277
10278 PR target/61542
10279 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10280 extraction other than index 3.
10281
10282 2014-06-26 Teresa Johnson <tejohnson@google.com>
10283
10284 * doc/invoke.texi: Fix typo.
10285 * dumpfile.c: Add support for documented -fdump-* options
10286 optimized/missed/note/optall.
10287
10288 2014-06-26 Martin Jambor <mjambor@suse.cz>
10289
10290 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10291 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10292 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10293 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10294 * opts.c (default_options_optimization): Set
10295 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10296 * doc/invoke.texi (allow-load-data-races)
10297 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10298 (allow-store-data-races): Document the new default.
10299
10300 2014-06-26 Martin Jambor <mjambor@suse.cz>
10301
10302 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10303 renamed to ipa_impossible_devirt_target. Fix typo.
10304 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10305 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10306 ipa_impossible_devirt_target.
10307
10308 2014-06-26 Richard Biener <rguenther@suse.de>
10309
10310 PR tree-optimization/61607
10311 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10312 explaining why we restrict copies on loop depth.
10313 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10314 on loop depth.
10315 (record_equivalences_from_phis): Instead add it here.
10316
10317 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10318
10319 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10320 (LTO_WRAPPER_OBJS): New variable.
10321 (lto-wrapper$(exeext)): Use it.
10322 * collect2.c: Include "collect-utils.h".
10323 (verbose, debug): Remove variables.
10324 (at_file_supplied): No longer static.
10325 (tool_name): New variable.
10326 (do_wait, fork_execute, maybe_unlink): Don't declare.
10327 (tool_cleanup): No longer static.
10328 (notice): Remove function.
10329 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10330 fork_execute calls.
10331 (collect_wait, do_wait, collect_execute): Remove functions.
10332 (maybe_unlink): No longer static.
10333 * collect2.h (verbose, debug): Don't declare.
10334 (at_file_supplied): Declare.
10335 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10336 changed.
10337 (collect_execute): Replace with implementation from collect2, plus a
10338 new arg use_atfile. All callers changed.
10339 (collect_wait): Replace with implementation from collect2.
10340 (maybe_unlink_file): Remove function.
10341 (fork_execute): Replace with implementation from collect2, plus a
10342 new arg use_atfile. All callers changed.
10343 (do_wait): Add call to utils_cleanup to the error path.
10344 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10345 (tool_cleanup): Adjust declarations.
10346 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10347 * tlink.c: Include "collect-utils.h".
10348 (tlink_execute): New arg use_atfile. All callers changed.
10349 (tlink_init, tlink_execute): Remove declarations.
10350
10351 * collect-utils.c (save_temps): New variable.
10352 (do_wait): Use it instead of debug. Use fatal_error.
10353 * collect-utils.h (save_temps): Declare.
10354 * collect2.c (verbose): Rename from vflag. All uses changed.
10355 (tool_cleanup): New function, copied from collect_atexit.
10356 (collect_atexit, handler): Just call it.
10357 * collect2.h (verbose): Declaration renamed from vflag.
10358 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10359 debug.
10360
10361 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10362 (lto-wrapper$(exeext)): Link with collect-utils.o.
10363 * collect-utils.c: New file.
10364 * collect-utils.h: New file.
10365 * lto-wrapper.c: Include "collect-utils.h".
10366 (args_name): Delete variable.
10367 (tool_name): New variable.
10368 (tool_cleanup): New function.
10369 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10370 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10371 (fork_execute): Remove functions.
10372
10373 2014-06-26 Nick Clifton <nickc@redhat.com>
10374
10375 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10376
10377 * doc/extend.texi (Function Attributes): Fix typo in description
10378 of RX vector attribute.
10379
10380 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10381
10382 * config.gcc (supported_defaults): Error when passing either
10383 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10384
10385 2014-06-26 Richard Biener <rguenther@suse.de>
10386
10387 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10388 propagating volatile pointers.
10389
10390 2014-06-26 Richard Biener <rguenther@suse.de>
10391
10392 PR tree-optimization/61607
10393 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10394 loop if we redirected its latch edge.
10395 (thread_block_1): Do not cancel loops prematurely.
10396
10397 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10398
10399 * toplev.c (backend_init_target): Move init_emit_regs and
10400 init_regs to...
10401 (backend_init) ... here; skip ira_init_once and backend_init_target.
10402 (target_reinit) ... and here; clear
10403 this_target_rtl->lang_dependent_initialized.
10404 (lang_dependent_init_target): Clear
10405 this_target_rtl->lang_dependent_initialized;
10406 break out rtl initialization to ...
10407 (initialize_rtl): ... here; call also backend_init_target
10408 and ira_init_once.
10409 * toplev.h (initialize_rtl): New function.
10410 * function.c: Include toplev.h
10411 (init_function_start): Call initialize_rtl.
10412 * rtl.h (target_rtl): Add target_specific_initialized,
10413 lang_dependent_initialized.
10414
10415 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10416 Jakub Jelinek <jakub@redhat.com>
10417
10418 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10419
10420 2014-06-25 Tom de Vries <tom@codesourcery.com>
10421
10422 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10423
10424 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10425
10426 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10427 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10428 Issue a strict overflow warning if appropriate.
10429
10430 2014-06-25 Martin Liska <mliska@suse.cz>
10431
10432 IPA REF refactoring
10433 * Makefile.in: Removed header file (ipa-ref-inline.h).
10434 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10435 called.
10436 (cgraph_speculative_call_info): Likewise.
10437 (cgraph_for_node_thunks_and_aliases): Likewise.
10438 (cgraph_for_node_and_aliases): Likewise.
10439 (verify_cgraph_node): Likewise.
10440 * cgraph.h: Batch of IPA REF functions become member functions of
10441 symtab_node: add_reference, maybe_add_reference, clone_references,
10442 clone_referring, clone_reference, find_reference,
10443 remove_stmt_references, remove_all_references,
10444 remove_all_referring, dump_references, dump_referring,
10445 has_alias_p, iterate_reference, iterate_referring.
10446 * cgraphbuild.c (record_reference): New IPA REF function used.
10447 (record_type_list): Likewise.
10448 (record_eh_tables): Likewise.
10449 (mark_address): Likewise.
10450 (mark_load): Likewise.
10451 (mark_store): Likewise.
10452 (pass_build_cgraph_edges): Likewise.
10453 (rebuild_cgraph_edge): Likewise.
10454 (cgraph_rebuild_references): Likewise.
10455 (pass_remove_cgraph_callee_edges): Likewise.
10456 * cgraphclones.c (cgraph_clone_node): Likewise.
10457 (cgraph_create_virtual_clone): Likewise.
10458 (cgraph_materialize_clone): Likewise.
10459 (cgraph_materialize_all_clones): Likewise.
10460 * cgraphunit.c (cgraph_reset_node): Likewise.
10461 (cgraph_reset_node): Likewise.
10462 (analyze_function): Likewise.
10463 (assemble_thunks_and_aliases): Likewise.
10464 (expand_function): Likewise.
10465 * ipa-comdats.c (propagate_comdat_group): Likewise.
10466 (enqueue_references): Likewise.
10467 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10468 (create_specialized_node): Likewise.
10469 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10470 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10471 * ipa-inline.c (reset_edge_caches): Likewise.
10472 (update_caller_keys): Likewise.
10473 (execute): Likewise.
10474 * ipa-prop.c (remove_described_reference): Likewise.
10475 (propagate_controlled_uses): Likewise.
10476 (ipa_edge_duplication_hook): Likewise.
10477 (ipa_modify_call_arguments): Likewise.
10478 * ipa-pure-const.c (propagate_pure_const): Likewise.
10479 * ipa-ref-inline.h: Header file removed, functions moved
10480 to symtab_node class.
10481 * ipa-ref.c (remove_reference): New class member function.
10482 (cannot_lead_to_return): New class member function.
10483 (referring_ref_list): Likewise.
10484 (referred_ref_list): Likewise.
10485 Rest of functions moved to symtab_node class.
10486 * ipa-ref.h: New member functions remove_reference,
10487 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10488 to ipa_ref class.
10489 ipa_ref_list class has new member functions: first_reference,
10490 first_referring, clear, nreferences.
10491 * ipa-reference.c (analyze_function): New IPA REF function used.
10492 (write_node_summary_p): Likewise.
10493 (ipa_reference_write_optimization_summary): Likewise.
10494 * ipa-split.c (split_function): Likewise.
10495 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10496 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10497 (function_and_variable_visibility): Likewise.
10498 * ipa.c (has_addr_references_p): Likewise.
10499 (process_references): Argument type changed.
10500 (symtab_remove_unreachable_nodes): New IPA REF function used.
10501 (process_references): Likewise.
10502 (set_writeonly_bit): Likewise.
10503 * lto-cgraph.c: Implementation of new symtab_node member functions
10504 that uses new IPA REF functions.
10505 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10506 function used.
10507 * lto-streamer-out.c (output_symbol_p): Likewise.
10508 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10509 changed.
10510 * symtab.c: Implementation of new IPA REF API.
10511 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10512 (ipa_tm_create_version): Likewise.
10513 (ipa_tm_execute): Likewise.
10514 * tree-emutls.c (gen_emutls_addr): Likewise.
10515 * tree-inline.c (copy_bb): Likewise.
10516 (delete_unreachable_blocks_update_callgraph): Likewise.
10517 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10518 (varpool_for_node_and_aliases): Likewise.
10519
10520 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10521
10522 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10523
10524 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10525
10526 PR bootstrap/61598
10527 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10528 tree_node * instead of tree_node *.
10529 (fold): Adjust.
10530 (print_fold_checksum): Likewise.
10531 (fold_check_failed): Likewise.
10532 (debug_fold_checksum): Likewise.
10533 (fold_build1_stat_loc): Likewise.
10534 (fold_build2_stat_loc): Likewise.
10535 (fold_build3_stat_loc): Likewise.
10536 (fold_build_call_array_loc): Likewise.
10537
10538 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10539
10540 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10541 implementation with call to...
10542 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10543 function.
10544 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10545 Declare.
10546
10547 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10548
10549 PR tree-optimization/57742
10550 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10551 after replacing the statement.
10552
10553 2014-06-25 Nick Clifton <nickc@redhat.com>
10554
10555 * config/v850/v850.c (GHS_default_section_names): Change to const
10556 char * type.
10557 (GHS_current_section_names): Likewise.
10558 (v850_insert_attributes): Do not build strings, just assign the
10559 names directly. Change the type of 'chosen_section' to const
10560 char*.
10561 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10562 directly to the array entry.
10563 * config/v850/v850.h (GHS_default_section_names): Change to const
10564 char * type.
10565 (GHS_current_section_names): Likewise.
10566
10567 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10568
10569 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10570 (LANG_HOOKS_DECLS): Add it.
10571 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10572 has correct type.
10573 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10574 * langhooks.h (struct lang_hooks_for_decls): Add
10575 omp_clause_linear_ctor hook.
10576 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10577 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10578 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10579 combined simd loop use omp_clause_linear_ctor hook.
10580
10581 2014-06-24 Cong Hou <congh@google.com>
10582
10583 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10584 pattern recognition.
10585 (type_conversion_p): PROMOTION is true if it's a type promotion
10586 conversion, and false otherwise. Return true if the given expression
10587 is a type conversion one.
10588 * tree-vectorizer.h: Adjust the number of patterns.
10589 * tree.def: Add SAD_EXPR.
10590 * optabs.def: Add sad_optab.
10591 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10592 * expr.c (expand_expr_real_2): Likewise.
10593 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10594 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10595 * optabs.c (optab_for_tree_code): Likewise.
10596 * tree-cfg.c (estimate_operator_cost): Likewise.
10597 * tree-ssa-operands.c (get_expr_operands): Likewise.
10598 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10599 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10600 * doc/generic.texi: Add document for SAD_EXPR.
10601 * doc/md.texi: Add document for ssad and usad.
10602
10603 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10604
10605 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10606 qualification in cast.
10607
10608 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10609
10610 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10611 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10612 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10613 (tree_function_decl): ... here.
10614 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10615 streaming of vindex to ...
10616 (write_ts_function_decl_tree_pointers): ... here.
10617 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10618 Do not stream DECL_VINDEX.
10619 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10620
10621 2014-06-24 Catherine Moore <clm@codesourcery.com>
10622 Sandra Loosemore <sandra@codesourcery.com>
10623
10624 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10625 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10626 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10627
10628 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10629
10630 * doc/invoke.texi (Warning Options): Remove duplicated
10631 -Wmaybe-uninitialized.
10632
10633 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10634
10635 PR tree-optimization/57742
10636 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10637 (handle_builtin_malloc, handle_builtin_memset): New functions.
10638 (strlen_optimize_stmt): Call them.
10639 * passes.def: Move strlen after loop+dom but before vrp.
10640
10641 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10642
10643 PR target/61570
10644 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10645 model family 6 CPU with has_longmode never use a CPU without
10646 64-bit support.
10647
10648 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10649
10650 PR target/61570
10651 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10652 the last change.
10653
10654 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10655
10656 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10657 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10658 pointer_map.
10659 * hash-map.h: New file.
10660 * ipa-comdats.c: Use hash_map instead of pointer_map.
10661 * ipa.c: Likewise.
10662 * lto-section-out.c: Adjust.
10663 * lto-streamer.h: Replace pointer_map with hash_map.
10664 * symtab.c (verify_symtab): Likewise.
10665 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10666 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10667 * tree-streamer.h: Likewise.
10668 * tree-streamer.c: Adjust.
10669 * pointer-set.h: Remove pointer_map.
10670
10671 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10672
10673 * hash-table.h: Add a template arg to choose between storing values
10674 and storing pointers to values, and then provide partial
10675 specializations for both.
10676 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10677 should store, not the type values should point to.
10678 * tree-into-ssa.c (var_info_hasher): Likewise.
10679 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10680 * tree-complex.c: Adjust.
10681 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10682 table instead of int_tree_map *.
10683 * tree-parloops.c: Adjust.
10684 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10685 type is being stored.
10686 * tree-vectorizer.c: Adjust.
10687
10688 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10689
10690 * hash-table.h: Remove a layer of indirection from hash_table so that
10691 it contains the hash table's data instead of a pointer to the data.
10692 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10693 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10694 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10695 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10696 fold-const.c, gcse.c, ggc-common.c,
10697 gimple-ssa-strength-reduction.c, gimplify.c,
10698 graphite-clast-to-gimple.c, graphite-dependences.c,
10699 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10700 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10701 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10702 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10703 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10704 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10705 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10706 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10707 tree-ssa-live.c, tree-ssa-loop-im.c,
10708 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10709 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10710 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10711 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10712 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10713 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10714 vtable-verify.c, vtable-verify.h: Adjust.
10715
10716 2014-06-24 Richard Biener <rguenther@suse.de>
10717
10718 PR tree-optimization/61572
10719 * tree-ssa-sink.c (statement_sink_location): Do not sink
10720 loads from hard registers.
10721
10722 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10723
10724 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10725 not mentioned in clauses use private clause if the iterator is
10726 declared in #pragma omp for simd, and when adding lastprivate
10727 instead, add it to the outer #pragma omp for too. Diagnose
10728 if the variable is private in outer context. For simd collapse > 1
10729 loops, replace all iterators with temporaries.
10730 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10731 same even in collapse > 1 loops.
10732
10733 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10734 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10735 non-NULL.
10736 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10737 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10738 non-NULL.
10739 (gimplify_adjust_omp_clauses): Likewise.
10740 * omp-low.c (lower_rec_simd_input_clauses,
10741 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10742 safelen the same as safelen(1).
10743 * tree-nested.c (convert_nonlocal_omp_clauses,
10744 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10745 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10746 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10747 Fixup handling of GIMPLE_OMP_TARGET.
10748 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10749 GIMPLE_OMP_TARGET.
10750
10751 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10752
10753 PR tree-optimization/61554
10754 * tree-ssa-propagate.c: Include "bitmap.h".
10755 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10756 properly update constructor/destructor.
10757 (substitute_and_fold_dom_walker::before_dom_children):
10758 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10759 need_eh_cleaup instead.
10760 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10761 need_eh_cleanup.
10762
10763 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10764
10765 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10766 * tree-pass.h (make_pass_ipa_single_use): New pass.
10767 * cgraph.h (used_by_single_function): New flag.
10768 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10769 Stream it.
10770 * passes.def (pass_ipa_single_use): Scedule.
10771 * ipa.c (BOTTOM): New macro.
10772 (meet): New function
10773 (propagate_single_user): New function.
10774 (ipa_single_use): New function.
10775 (pass_data_ipa_single_use): New pass.
10776 (pass_ipa_single_use): New pass.
10777 (pass_ipa_single_use::gate): New gate.
10778 (make_pass_ipa_single_use): New function.
10779
10780 2014-06-23 Kai Tietz <ktietz@redhat.com>
10781
10782 PR target/39284
10783 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10784 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10785
10786 2014-06-23 Richard Biener <rguenther@suse.de>
10787
10788 * tree-ssa-loop.c (gate_loop): New function.
10789 (pass_tree_loop::gate): Call it.
10790 (pass_data_tree_no_loop, pass_tree_no_loop,
10791 make_pass_tree_no_loop): New.
10792 * tree-vectorizer.c: Include tree-scalar-evolution.c
10793 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10794 required.
10795 (pass_slp_vectorize::clone): New method.
10796 * timevar.def (TV_TREE_NOLOOP): New.
10797 * tree-pass.h (make_pass_tree_no_loop): Declare.
10798 * passes.def (pass_tree_no_loop): New pass group with
10799 SLP vectorizer.
10800
10801 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10802
10803 PR target/61570
10804 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10805 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10806
10807 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10808
10809 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10810 "yes" where needed.
10811
10812 2014-06-23 Alan Modra <amodra@gmail.com>
10813
10814 PR bootstrap/61583
10815 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10816 to zero on debug statements.
10817
10818 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10819
10820 PR target/60825
10821 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10822 Ignore third operand if present by marking qualifier_internal.
10823
10824 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10825
10826 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10827 vector extension.
10828 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10829 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10830 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10831 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10832 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10833 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10834 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10835 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10836 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10837 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10838 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10839 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10840 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10841 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10842 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10843 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10844 logic in GCC vector extensions
10845
10846 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10847 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10848 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10849 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10850 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10851 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10852 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10853 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10854 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10855 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10856
10857 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10858
10859 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10860 extensions.
10861
10862 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10863 (vget_low_s64): Use __GET_LOW macro.
10864 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10865 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10866 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10867 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10868 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10869
10870 (vcombine_s64): Use GCC vector extensions; remove cast.
10871 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10872 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10873 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10874 Fix type signature; remove cast.
10875
10876 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10877
10878 PR target/60825
10879 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10880 V1DFmode.
10881 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10882 add V1DFmode
10883 (BUILTIN_VD1): New.
10884 (BUILTIN_VD_RE): Remove.
10885 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10886 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10887 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10888 variant but not df.
10889 (vreinterpretv1df*, vreinterpret*v1df): New.
10890 (vreinterpretdf*, vreinterpret*df): Remove.
10891 * config/aarch64/aarch64-simd.md (aarch64_create,
10892 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10893 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10894 (VD1): New.
10895 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10896 (vcreate_f64): Remove cast, use v1df builtin.
10897 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10898 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10899 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10900 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10901 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10902 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10903 add range check using __builtin_aarch64_im_lane_boundsi.
10904 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10905 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10906 type signature, use gcc vector extensions.
10907 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10908 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10909 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10910 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10911 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10912 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10913 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10914 vreinterpret_u64_f64): Use v1df builtin not df.
10915
10916 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10917
10918 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10919 vector registers.
10920
10921 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10922
10923 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10924 priority directly.
10925
10926 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10927
10928 * loop-invariant.c (pre_check_invariant_p): New function.
10929 (find_invariant_insn): Call pre_check_invariant_p.
10930
10931 2014-06-22 Richard Henderson <rth@redhat.com>
10932
10933 PR target/61565
10934 * compare-elim.c (struct comparison): Add eh_note.
10935 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10936 a redundant comparison in a different EH region. Purge EH edges if
10937 necessary.
10938
10939 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10940
10941 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10942 (var_shift): Use it.
10943 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10944 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10945 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10946 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10947 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10948 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10949 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10950 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10951 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10952 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10953 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10954 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10955 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10956 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10957 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10958 *rotldi3_internal15be): Use the new attribute. Merge register and
10959 integer alternatives.
10960
10961 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10962
10963 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10964 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10965 split, *ashrdi3_internal3 and split): Delete, merge into...
10966 (ashr<mode>3): New expander.
10967 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10968 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10969
10970 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10971
10972 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10973 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10974 *rotldi3_internal3 and split): Delete, merge into...
10975 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10976 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10977 Use "rotlw" extended mnemonic.
10978
10979 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10980
10981 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10982 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10983 and split, *ashldi3_internal3 and split): Delete, merge into...
10984 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10985 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10986
10987 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10988
10989 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10990 (lshrsi3, two anonymous define_insns and define_splits,
10991 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10992 *lshrdi3_internal3 and split): Delete, merge into...
10993 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10994 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10995
10996 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10997
10998 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10999 Remove "O" alternative.
11000
11001 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11002
11003 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11004 (mips_move_from_gpr_cost): Likewise.
11005 (mips_register_move_cost): Update accordingly.
11006 (mips_secondary_reload_class): Remove name of in_p.
11007
11008 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11009
11010 PR target/61503
11011 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11012 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11013
11014 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11015
11016 * config/nios2/nios2.c: Include "builtins.h".
11017
11018 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11019
11020 * cgraph.h (tls_model_names): New variable.
11021 * print-tree.c (print_node): Simplify.
11022 * varpool.c (tls_model_names): New variable.
11023 (dump_varpool_node): Output tls model.
11024
11025 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11026
11027 * ipa-visibility.c (function_and_variable_visibility): Disable
11028 temporarily local aliases for some targets.
11029
11030 2014-06-20 Marek Polacek <polacek@redhat.com>
11031
11032 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11033 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11034 into SANITIZE_UNDEFINED.
11035 * doc/invoke.texi: Describe -fsanitize=bounds.
11036 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11037 functions created in the FEs.
11038 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11039 (expand_UBSAN_BOUNDS): New function.
11040 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11041 * internal-fn.h: Don't define internal functions here.
11042 * opts.c (common_handle_option): Add -fsanitize=bounds.
11043 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11044 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11045 * tree-core.h: Define internal functions here.
11046 (struct tree_base): Add ifn field.
11047 * tree-pretty-print.c: Include "internal-fn.h".
11048 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11049 * tree.c (get_callee_fndecl): Likewise.
11050 (build_call_expr_internal_loc): New function.
11051 * tree.def (CALL_EXPR): Update description.
11052 * tree.h (CALL_EXPR_IFN): Define.
11053 (build_call_expr_internal_loc): Declare.
11054 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11055 types.
11056 (ubsan_type_descriptor): Change bool parameter to enum
11057 ubsan_print_style. Adjust the code. Add handling of
11058 UBSAN_PRINT_ARRAY.
11059 (ubsan_expand_bounds_ifn): New function.
11060 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11061 (ubsan_build_overflow_builtin): Likewise.
11062 (instrument_bool_enum_load): Likewise.
11063 (ubsan_instrument_float_cast): Likewise.
11064 * ubsan.h (enum ubsan_print_style): New enum.
11065 (ubsan_expand_bounds_ifn): Declare.
11066 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11067
11068 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11069
11070 * config/rs6000/rs6000.md: Append `DONE' to preparation
11071 statements of `bswap' pattern splitters.
11072
11073 2014-06-20 Tom de Vries <tom@codesourcery.com>
11074
11075 * target.def (call_fusage_contains_non_callee_clobbers): Update
11076 definition.
11077 * doc/tm.texi: Regenerate.
11078
11079 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11080 Max Ostapenko <m.ostapenko@partner.samsung.com>
11081
11082 PR sanitizer/61547
11083 * asan.c (instrument_strlen_call): Fixed instrumentation of
11084 trailing byte.
11085
11086 2014-06-20 Martin Jambor <mjambor@suse.cz>
11087
11088 PR ipa/61540
11089 * ipa-prop.c (impossible_devirt_target): New function.
11090 (try_make_edge_direct_virtual_call): Use it, also instead of
11091 asserting.
11092
11093 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11094 Max Ostapenko <m.ostapenko@partner.samsung.com>
11095
11096 PR sanitizer/61530
11097 * asan.c (build_check_stmt): Add condition.
11098
11099 2014-06-20 Martin Jambor <mjambor@suse.cz>
11100
11101 PR ipa/61211
11102 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11103 expanded clones.
11104
11105 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11106
11107 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11108 Update comments.
11109 (VCONQ): Make comment more helpful.
11110 (VCON): Delete.
11111 * config/aarch64/aarch64-simd.md
11112 (aarch64_sqdmulh_lane<mode>):
11113 Use VCOND for operands 2. Update lane checking and flipping logic.
11114 (aarch64_sqrdmulh_lane<mode>): Likewise.
11115 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11116 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11117 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11118 attribute of operand 3 to VCOND.
11119 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11120 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11121 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11122 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11123 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11124 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11125 define_insn.
11126 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11127 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11128 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11129 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11130 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11131 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11132 operand to VCOND. Update lane flipping and bounds checking logic.
11133 (aarch64_sqdmlal2_lane<mode>): Likewise.
11134 (aarch64_sqdmlsl_lane<mode>): Likewise.
11135 (aarch64_sqdmull_lane<mode>): Likewise.
11136 (aarch64_sqdmull2_lane<mode>): Likewise.
11137 (aarch64_sqdmlal_laneq<mode>):
11138 Replace VCON usage with VCONQ.
11139 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11140 (aarch64_sqdmlal2_laneq<mode>): Emit
11141 aarch64_sqdmlal2_laneq<mode>_internal insn.
11142 Replace VCON with VCONQ.
11143 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11144 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11145 (aarch64_sqdmull_laneq<mode>): Emit
11146 aarch64_sqdmull_laneq<mode>_internal insn.
11147 Replace VCON with VCONQ.
11148 (aarch64_sqdmull2_laneq<mode>): Emit
11149 aarch64_sqdmull2_laneq<mode>_internal insn.
11150 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11151 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11152 of 3rd argument to int16x4_t.
11153 (vqdmlalh_lane_s16): Likewise.
11154 (vqdmlslh_lane_s16): Likewise.
11155 (vqdmull_high_lane_s16): Likewise.
11156 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11157 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11158 (vqdmlsl_lane_s16): Likewise.
11159 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11160 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11161 (vqdmlals_lane_s32): Likewise.
11162 (vqdmlsls_lane_s32): Likewise.
11163 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11164 (vqdmulls_lane_s32): Likewise.
11165 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11166 (vqdmlsl_lane_s32): Likewise.
11167 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11168 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11169 (vqrdmulhh_lane_s16): Likewise.
11170 (vqdmlsl_high_lane_s16): Likewise.
11171 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11172 (vqdmlsl_high_lane_s32): Likewise.
11173 (vqrdmulhs_lane_s32): Likewise.
11174
11175 2014-06-20 Tom de Vries <tom@codesourcery.com>
11176
11177 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11178 get_call_reg_set_usage.
11179
11180 2014-06-20 Tom de Vries <tom@codesourcery.com>
11181
11182 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11183 it contains all call_used_regs.
11184
11185 2014-06-20 Tom de Vries <tom@codesourcery.com>
11186
11187 * final.c (collect_fn_hard_reg_usage): Add and use variable
11188 function_used_regs.
11189
11190 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11191
11192 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11193 (set_init_priority, get_init_priority, set_fini_priority,
11194 get_fini_priority): New methods.
11195 * tree.c (init_priority_for_decl): Remove.
11196 (init_ttree): Do not initialize init priority.
11197 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11198 (decl_priority_info): Remove.
11199 (decl_init_priority_insert): Rewrite.
11200 (decl_fini_priority_insert): Rewrite.
11201 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11202 tree_priority_map_marked_p): Remove.
11203 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11204 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11205 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11206 not output priorities.
11207 (pack_ts_function_decl_value_fields): Likewise.
11208 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11209 not input priorities.
11210 (unpack_ts_function_decl_value_fields): Likewise.
11211 * symtab.c (symbol_priority_map): Declare.
11212 (init_priority_hash): Declare.
11213 (symtab_unregister_node): Unregister from priority hash, too.
11214 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11215 New methods.
11216 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11217 (symbol_priority_info): New function.
11218 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11219 New methods.
11220 * tree-core.h (tree_priority_map): Remove.
11221
11222 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11223
11224 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11225 0xff to uint64_t before shifting it up.
11226
11227 2014-06-20 Julian Brown <julian@codesourcery.com>
11228 Chung-Lin Tang <cltang@codesourcery.com>
11229
11230 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11231 TARGET_THUMB1_ONLY. Add comments.
11232
11233 2014-06-19 Tom de Vries <tom@codesourcery.com>
11234
11235 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11236 return type to void.
11237 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11238
11239 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11240
11241 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11242 as "move", from depends_on.
11243
11244 2014-06-19 Terry Guo <terry.guo@arm.com>
11245
11246 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11247 stage.
11248
11249 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11250
11251 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11252 Remove cr5.
11253 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11254
11255 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11256
11257 PR target/61550
11258 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11259 addresses here if reload in progress or completed.
11260
11261 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11262
11263 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11264 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11265 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11266 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11267 (mips_register_priority): New function that implements the target
11268 hook TARGET_REGISTER_PRIORITY.
11269 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11270 (mips_lra_p): Likewise for TARGET_LRA_P.
11271 (TARGET_REGISTER_PRIORITY): Define macro.
11272 (TARGET_SPILL_CLASS): Likewise.
11273 (TARGET_LRA_P): Likewise.
11274 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11275 classes.
11276 (REG_CLASS_NAMES): Likewise.
11277 (REG_CLASS_CONTENTS): Likewise.
11278 (BASE_REG_CLASS): Use M16_SP_REGS.
11279 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11280 New set attribute to enable alternatives depending on the register
11281 allocator used.
11282 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11283 (*lea64): Disable pattern for MIPS16.
11284 * config/mips/mips.opt (mlra): New option.
11285
11286 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11287
11288 * lra-constraints.c (base_to_reg): New function.
11289 (process_address): Use new function.
11290
11291 2014-06-18 Tom de Vries <tom@codesourcery.com>
11292
11293 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11294 * config/aarch64/aarch64.c
11295 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11296 (aarch64_emit_call_insn): New function.
11297 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11298 of emit_call_insn.
11299 * config/aarch64/aarch64.md (define_expand "call_internal")
11300 (define_expand "call_value_internal", define_expand "sibcall_internal")
11301 (define_expand "sibcall_value_internal"): New.
11302 (define_expand "call", define_expand "call_value")
11303 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11304 expand variant and aarch64_emit_call_insn.
11305
11306 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11307 Tom de Vries <tom@codesourcery.com>
11308
11309 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11310 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11311 Redefine to true.
11312 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11313 clobbers to CALL_INSN_FUNCTION_USAGE.
11314 (define_expand "sibcall_internal")
11315 (define_expand "sibcall_value_internal"): New.
11316 (define_expand "call", define_expand "call_value"): Add argument to
11317 arm_emit_call_insn.
11318 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11319 (define_expand "sibcall_value"): Use sibcall_value_internal and
11320 arm_emit_call_insn.
11321
11322 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11323
11324 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11325
11326 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11327
11328 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11329 __udivmoddi4.
11330
11331 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11332
11333 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11334 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11335 annotations. Fix DWARF information.
11336
11337 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11338
11339 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11340 __udivmoddi4, and fixups for negative operands.
11341
11342 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11343
11344 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11345
11346 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11347
11348 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11349 to __udivmoddi4.
11350
11351 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11352
11353 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11354 manipulation.
11355
11356 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11357
11358 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11359 describing register usage on function entry and exit.
11360
11361 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11362
11363 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11364 (__aeabi_ldivmod): Fix whitespace.
11365
11366 2014-06-18 Andreas Schwab <schwab@suse.de>
11367
11368 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11369 Remove blank line after @item.
11370
11371 2014-06-18 Richard Henderson <rth@redhat.com>
11372
11373 PR target/61545
11374 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11375
11376 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11377
11378 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11379 POST_MODIFY for neon loads and stores.
11380 (arm_print_operand): Output post-index register for neon loads and
11381 stores.
11382
11383 2014-06-18 Richard Biener <rguenther@suse.de>
11384
11385 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11386
11387 2014-06-18 Richard Biener <rguenther@suse.de>
11388
11389 * tree-pass.h (make_pass_dce_loop): Remove.
11390 * passes.def: Replace pass_dce_loop with pass_dce.
11391 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11392 changed free niter estimates and reset the scev cache.
11393 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11394 make_pass_dce_loop): Remove.
11395 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11396 (fini_copy_prop): Return whether something changed. Always
11397 let substitute_and_fold perform DCE and free niter estimates
11398 and reset the scev cache if so.
11399 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11400 (pass_data_copy_prop): Do not unconditionally schedule
11401 cleanup-cfg or update-ssa.
11402
11403 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11404
11405 PR tree-optimization/61518
11406 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11407 reduction var is used in reduction stmt or phi-function only.
11408
11409 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11410
11411 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11412
11413 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11414
11415 PR tree-optimization/61517
11416 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11417 whose rhs's first tree is the source expression instead of the
11418 expression itself.
11419 (find_bswap_or_nop): Likewise.
11420 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11421 gimple stmt whose rhs's first tree is the source. In the memory source
11422 case, move the stmt to be replaced close to one of the original load to
11423 avoid the problem of a store between the load and the stmt's original
11424 location.
11425 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11426 signature.
11427
11428 2014-06-18 Andreas Schwab <schwab@suse.de>
11429
11430 PR rtl-optimization/54555
11431 * postreload.c (move2add_use_add2_insn): Substitute
11432 STRICT_LOW_PART only if it is cheaper.
11433
11434 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11435
11436 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11437 Do not use unspec as call operand. Use memory_operand instead of
11438 memory_nox32_operand and add "m" operand constraint. Disable
11439 pattern for TARGET_X32.
11440 (*sibcall_pop_memory): Ditto.
11441 (*sibcall_value_memory): Ditto.
11442 (*sibcall_value_pop_memory): Ditto.
11443 (sibcall peepholes): Merge SImode and DImode patterns using
11444 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11445 Disable pattern for TARGET_X32. Check if eliminated register is
11446 really dead after call insn. Generate call RTX without unspec operand.
11447 (sibcall_value peepholes): Ditto.
11448 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11449 instead of memory_nox32_operand. Check if eliminated register is
11450 really dead after call insn. Generate call RTX without unspec operand.
11451 (sibcall_value_pop peepholes): Ditto.
11452 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11453
11454 2014-06-18 Terry Guo <terry.guo@arm.com>
11455
11456 PR target/61544
11457 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11458 reach the head.
11459
11460 2014-06-18 Olivier Hainque <hainque@adacore.com>
11461
11462 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11463 memorization of the end of block source location.
11464 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11465 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11466 end source location info we have on the block entry/exit code we
11467 generate.
11468
11469 2014-06-18 Richard Biener <rguenther@suse.de>
11470
11471 * common.opt (fssa-phiopt): New option.
11472 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11473 but not with -Og.
11474 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11475 * doc/invoke.texi (-fssa-phiopt): Document.
11476
11477 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11478
11479 * genattrtab.c (n_bypassed): New variable.
11480 (process_bypasses): Initialise n_bypassed.
11481 Count number of bypassed reservations.
11482 (make_automaton_attrs): Allocate space for bypassed reservations
11483 rather than number of bypasses.
11484
11485 2014-06-18 Richard Biener <rguenther@suse.de>
11486
11487 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11488 we propagated anything.
11489 (substitute_and_fold_dom_walker::before_dom_children): Something
11490 changed if we propagated into PHI arguments.
11491 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11492 we removed a stmt.
11493
11494 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11495
11496 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11497 vector case.
11498 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11499 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11500 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11501 Introduces alternative way of loads group permutaions.
11502 (vect_transform_grouped_load): Try alternative way of permutations.
11503
11504 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11505
11506 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11507 changed in ORT_TARGET region, don't jump to do_outer.
11508 (struct gimplify_adjust_omp_clauses_data): New type.
11509 (gimplify_adjust_omp_clauses_1): Adjust for data being
11510 a struct gimplify_adjust_omp_clauses_data pointer instead
11511 of tree *. Pass pre_p as a new argument to
11512 lang_hooks.decls.omp_finish_clause hook.
11513 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11514 splay_tree_foreach to pass both list_p and pre_p.
11515 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11516 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11517 gimplify_adjust_omp_clauses callers.
11518 * langhooks.c (lhd_omp_finish_clause): New function.
11519 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11520 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11521 * langhooks.h (struct lang_hooks_for_decls): Add a new
11522 gimple_seq * argument to omp_finish_clause hook.
11523 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11524 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11525 (scan_omp_parallel, lower_omp_for): When adding
11526 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11527 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11528 * tree-nested.c (convert_nonlocal_omp_clauses,
11529 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11530 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11531
11532 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11533
11534 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11535 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11536
11537 2014-06-17 Xinliang David Li <davidxl@google.com>
11538
11539 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11540 * passes.c (pass_init_dump_file): Do not set initialize
11541 flag to false unconditionally.
11542
11543 2014-06-17 Richard Biener <rguenther@suse.de>
11544
11545 * genopinit.c (main): Use vec<>::qsort method.
11546 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11547 Likewise.
11548 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11549
11550 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11551
11552 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11553 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11554 (mips_move_to_gpr_cost): Remove ST_REGS case.
11555 (mips_move_from_gpr_cost): Likewise.
11556 (mips_register_move_cost): Likewise.
11557 (mips_secondary_reload_class): Likewise.
11558
11559 2014-06-17 Richard Biener <rguenther@suse.de>
11560
11561 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11562 (pass_all_optimizations): Move 3rd copy-prop pass from after
11563 fre to before ifcombine/phiopt.
11564
11565 2014-06-17 Richard Biener <rguenther@suse.de>
11566
11567 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11568 and allow all blocks to be forwarders.
11569
11570 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11571
11572 PR target/61483
11573 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11574 variable 'size'; calculate 'size' right in the front; use
11575 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11576 pcum->aapcs_stack_words.
11577
11578 2014-06-17 Nick Clifton <nickc@redhat.com>
11579
11580 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11581 (umulhi3, mulsidi3, umulsidi3): Likewise.
11582
11583 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11584
11585 PR middle-end/61508
11586 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11587 check for section name.
11588
11589 2014-06-17 Richard Biener <rguenther@suse.de>
11590
11591 * tree-ssa-propagate.c: Include domwalk.h.
11592 (substitute_and_fold): Outline main worker into a domwalker ...
11593 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11594 Schedule stmts we can fully propagate for removal. Remove
11595 poor-mans DCE.
11596 (substitute_and_fold): Apply a dominator walk to perform
11597 substitution. Process stmts scheduled for removal here.
11598
11599 2014-06-17 Richard Biener <rguenther@suse.de>
11600
11601 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11602 of PHI node moving.
11603
11604 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11605
11606 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11607 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11608 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11609 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11610 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11611 TARGET_HARD_FLOAT.
11612 (get_fpscr) : Likewise.
11613
11614 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11615
11616 PR rtl-optimization/61325
11617 * lra-constraints.c (valid_address_p): Add forward declaration.
11618 (simplify_operand_subreg): Check address validity before and after
11619 alter_reg of memory subreg.
11620
11621 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11622
11623 * config/i386/i386.c (decide_alg): Correctly handle
11624 maximum size of stringop algorithm.
11625
11626 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11627
11628 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11629
11630 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11631
11632 PR rtl-optimization/61522
11633 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11634
11635 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11636
11637 Revert:
11638 * symtab.c (symtab_node::reset_section): New method.
11639 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11640 for localization.
11641 * cgraph.h (reset_section): Declare.
11642 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11643 do not consider comdat locals.
11644 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11645 for new symbol.
11646 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11647 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11648 reset sections of symbols dragged out of the comdats.
11649 (function_and_variable_visibility): Reset sections of
11650 localized symbols.
11651
11652 2014-06-16 Richard Biener <rguenther@suse.de>
11653
11654 PR tree-optimization/61482
11655 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11656 [-INF(OVF), +INF(OVF)] range.
11657
11658 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11659
11660 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11661 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11662 handling 32-bit multiplication.
11663
11664 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11665
11666 PR middle-end/61430
11667 * lra-lives.c (process_bb_lives): Skip creating copy during
11668 insn scan when src/dest has constrained to same regno.
11669
11670 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11671
11672 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11673 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11674
11675 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11676
11677 * asan.c (check_func): New function.
11678 (maybe_create_ssa_name): Likewise.
11679 (build_check_stmt_with_calls): Likewise.
11680 (use_calls_p): Likewise.
11681 (report_error_func): Change interface.
11682 (build_check_stmt): Allow non-integer lengths; add support
11683 for new parameter.
11684 (asan_instrument): Likewise.
11685 (instrument_mem_region_access): Moved code to build_check_stmt.
11686 (instrument_derefs): Likewise.
11687 (instrument_strlen_call): Likewise.
11688 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11689 * doc/invoke.texi: Describe new parameter.
11690 * params.def: Define new parameter.
11691 * params.h: Likewise.
11692 * sanitizer.def: Describe new builtins.
11693
11694 2014-06-16 Richard Biener <rguenther@suse.de>
11695
11696 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11697 Make all defs available at the end.
11698 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11699
11700 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11701
11702 PR plugins/45078
11703 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11704
11705 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11706
11707 PR bootstrap/61516
11708 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11709 initialization. Replace remaining use of uid.
11710
11711 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11712
11713 * c-family/c-common.c (handle_tls_model_attribute): Use
11714 set_decl_tls_model.
11715 * c-family/c-common.c (handle_tls_model_attribute): Use
11716 set_decl_tls_model.
11717 * cgraph.h (struct varpool_node): Add tls_model.
11718 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11719 * tree.h (DECL_TLS_MODEL): Update.
11720 (DECL_THREAD_LOCAL_P): Check that variable is static.
11721 (decl_tls_model): Declare.
11722 (set_decl_tls_model): Declare.
11723 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11724 set symbol prorperties.
11725 (get_emutls_init_templ_addr): Cleanup.
11726 (new_emutls_decl): Update.
11727 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11728 (lto_input_varpool_node): Likewise.
11729 * lto-streamer-out.c (hash_tree): Likewise.
11730 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11731 not stream DECL_TLS_MODEL.
11732 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11733 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11734
11735 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11736
11737 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11738
11739 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11740
11741 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11742 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11743 lists.
11744 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11745 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11746 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11747 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11748 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11749 (df_get_artificial_defs, df_get_artificial_uses)
11750 (df_single_def, df_single_use): Update accordingly.
11751 (df_refs_chain_dump): Take the first element in a linked list as
11752 parameter, rather than a pointer to an array of pointers.
11753 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11754 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11755 (df_chain_create_bb_process_use): Likewise.
11756 (df_md_bb_local_compute_process_def): Likewise.
11757 * fwprop.c (process_defs, process_uses): Likewise.
11758 (register_active_defs, update_uses): Likewise.
11759 (forward_propagate_asm): Update for new df_ref linking.
11760 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11761 (df_null_ref_rec, df_null_mw_rec): Likewise.
11762 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11763 explicitly.
11764 (df_scan_free_bb_info): Remove check for null artificial_defs.
11765 (df_install_ref_incremental): Adjust for new df_ref linking.
11766 Use a single-element insertion rather than a full sort.
11767 (df_ref_chain_delete_du_chain): Take the first element
11768 in a linked list as parameter, rather than a pointer to an array of
11769 pointers.
11770 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11771 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11772 (df_insn_info_delete): Remove check for null defs and call to
11773 df_scan_free_mws_vec.
11774 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11775 null rather than df_null_*_rec.
11776 (df_insn_rescan_debug_internal): Likewise, and update null
11777 checks in the same way. Remove check for null defs.
11778 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11779 Move a single element rather doing a full sort.
11780 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11781 linking.
11782 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11783 Initialize df_ref and df_mw_hardreg lists to null rather than
11784 df_null_*_rec.
11785 (df_ref_compare): Take df_refs as parameter, transferring the
11786 old interface to...
11787 (df_ref_ptr_compare): ...this new function.
11788 (df_sort_and_compress_refs): Update accordingly.
11789 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11790 old interface to...
11791 (df_mw_ptr_compare): ...this new function.
11792 (df_sort_and_compress_mws): Update accordingly.
11793 (df_install_refs, df_install_mws): Return a linked list rather than
11794 an array of pointers.
11795 (df_refs_add_to_chains): Assert that old lists are empty rather
11796 than freeing them.
11797 (df_insn_refs_verify): Don't handle null defs speciailly.
11798 * web.c (union_match_dups): Update for new df_ref linking.
11799
11800 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11801
11802 * df.h (df_ref_create, df_ref_remove): Delete.
11803 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11804 (df_ref_remove): Likewise.
11805
11806 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11807
11808 * df.h (df_single_def, df_single_use): New functions.
11809 * ira.c (find_moveable_pseudos): Use them.
11810
11811 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11812
11813 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11814 * df-problems.c (df_note_bb_compute): Use it.
11815 * regstat.c (regstat_bb_compute_ri): Likewise.
11816
11817 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11818
11819 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11820 * cse.c (cse_extended_basic_block): Use them.
11821 * dce.c (mark_artificial_use): Likewise.
11822 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11823 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11824 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11825 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11826 (df_simulate_initialize_backwards): Likewise.
11827 (df_simulate_finalize_backwards): Likewise.
11828 (df_simulate_initialize_forwards): Likewise.
11829 (df_md_simulate_artificial_defs_at_top): Likewise.
11830 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11831 * regrename.c (init_rename_info): Likewise.
11832 * regstat.c (regstat_bb_compute_ri): Likewise.
11833 (regstat_bb_compute_calls_crossed): Likewise.
11834
11835 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11836
11837 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11838 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11839 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11840 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11841 * combine.c (create_log_links): Likewise.
11842 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11843 (try_eliminate_compare): Likewise.
11844 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11845 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11846 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11847 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11848 (word_dce_process_block, dce_process_block): Likewise.
11849 * ddg.c (def_has_ccmode_p): Likewise.
11850 * df-core.c (df_bb_regno_first_def_find): Likewise.
11851 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11852 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11853 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11854 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11855 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11856 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11857 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11858 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11859 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11860 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11861 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11862 * fwprop.c (local_ref_killed_between_p): Likewise.
11863 (all_uses_available_at, free_load_extend): Likewise.
11864 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11865 * hw-doloop.c (scan_loop): Likewise.
11866 * ifcvt.c (dead_or_predicable): Likewise.
11867 * init-regs.c (initialize_uninitialized_regs): Likewise.
11868 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11869 (process_bb_node_lives): Likewise.
11870 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11871 (find_moveable_pseudos): Likewise.
11872 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11873 * recog.c (peep2_find_free_register): Likewise.
11874 * ree.c (get_defs): Likewise.
11875 * regstat.c (regstat_bb_compute_ri): Likewise.
11876 (regstat_bb_compute_calls_crossed): Likewise.
11877 * sched-deps.c (find_inc, find_mem): Likewise.
11878 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11879 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11880 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11881 (prepare_shrink_wrap): Likewise.
11882 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11883 * web.c (union_defs, pass_web::execute): Likewise.
11884 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11885 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11886
11887 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11888
11889 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11890 to inheritance pseudos.
11891 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11892
11893 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11894
11895 PR target/61415
11896 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11897 (BU_MISC_2): Rename to ...
11898 (BU_LDBL128_2): ... this.
11899 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11900 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11901 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11902 RS6000_BTM_LDBL128.
11903 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11904 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11905 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11906 (unpacktf_1): Likewise.
11907 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11908 (__builtin_longdouble_dw1): Likewise.
11909 * doc/sourcebuild.texi (longdouble128): Document.
11910
11911 2014-06-13 Jeff Law <law@redhat.com>
11912
11913 PR rtl-optimization/61094
11914 PR rtl-optimization/61446
11915 * ree.c (combine_reaching_defs): Get the mode for the copy from
11916 the extension insn rather than the defining insn.
11917
11918 2014-06-13 Dehao Chen <dehao@google.com>
11919
11920 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11921
11922 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11923
11924 * doc/install.texi (--enable-linker-plugin-configure-flags)
11925 (--enable-linker-plugin-flags): Document new flags.
11926
11927 2014-06-13 Martin Jambor <mjambor@suse.cz>
11928
11929 PR ipa/61186
11930 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11931 cache_token if returning early.
11932
11933 2014-06-13 Nick Clifton <nickc@redhat.com>
11934
11935 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11936 requested alignment is active.
11937 (LABEL_ALIGN): Likewise.
11938 (LOOP_ALIGN): Likewise.
11939
11940 2014-06-13 Richard Biener <rguenther@suse.de>
11941
11942 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11943 Rewrite to propagate the VN result into all uses where
11944 possible and to remove stmts becoming dead because of that.
11945 (eliminate): Generalize stmt removal handling, remove in
11946 reverse dominator order to support proper debug stmt
11947 generation. Update stmts before removing stmts.
11948 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11949
11950 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11951
11952 PR tree-optimization/61375
11953 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11954 symbolic number cannot be represented in an uint64_t.
11955 (find_bswap_or_nop_1): Likewise.
11956
11957 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11958
11959 * symtab.c (symtab_node::reset_section): New method.
11960 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11961 for localization.
11962 * cgraph.h (reset_section): Declare.
11963 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11964 do not consider comdat locals.
11965 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11966 for new symbol.
11967 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11968 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11969 reset sections of symbols dragged out of the comdats.
11970 (function_and_variable_visibility): Reset sections of
11971 localized symbols.
11972
11973 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11974
11975 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11976 to use symtab and decl_binds_to_current_def_p
11977 * tree-vectorizer.c (increase_alignment): Increase alignment
11978 of alias target, too.
11979
11980 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11981
11982 PR middle-end/61486
11983 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11984 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11985 if outer combined construct is distribute.
11986 (gimplify_omp_for): For OMP_DISTRIBUTE set
11987 gimplify_omp_ctxp->distribute.
11988 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11989 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11990 mapping into decl map.
11991
11992 2014-06-12 Jason Merrill <jason@redhat.com>
11993
11994 * common.opt (fabi-version): Change default to 0.
11995
11996 2014-06-12 Jason Merrill <jason@redhat.com>
11997
11998 * toplev.c (process_options): Reject -fabi-version=1.
11999
12000 2014-06-12 Jeff Law <law@redhat.com>
12001
12002 PR tree-optimization/61009
12003 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12004 value when we stop processing a block due to problematic PHIs.
12005
12006 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12007
12008 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12009 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12010 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12011 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12012 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12013 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12014 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12015 are not in the spec.
12016
12017 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12018
12019 PR target/59843
12020 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12021 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12022 Support V1DFmode.
12023
12024 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12025
12026 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12027
12028 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12029
12030 PR target/61443
12031 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12032 loading from address spaces.
12033
12034 2014-06-12 Martin Liska <mliska@suse.cz>
12035
12036 PR ipa/61462
12037 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12038 statement is reachable.
12039
12040 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12041
12042 * symtab.c (section_hash): New hash.
12043 (symtab_unregister_node): Clear section before freeing.
12044 (hash_section_hash_entry): New haser.
12045 (eq_sections): New function.
12046 (symtab_node::set_section_for_node): New method.
12047 (set_section_1): Update.
12048 (symtab_node::set_section): Take string instead of tree as parameter.
12049 (symtab_resolve_alias): Update.
12050 * cgraph.h (section_hash_entry_d): New structure.
12051 (section_hash_entry): New typedef.
12052 (cgraph_node): Change comdat_group_ to x_comdat_group,
12053 change section_ to x_section and turn into section_hash_entry;
12054 update accestors; put set_section_for_node offline.
12055 * tree.c (decl_section_name): Turn into string.
12056 (set_decl_section_name): Change parameter to be string.
12057 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12058 * sdbout.c (sdbout_one_type): Update.
12059 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12060 * varasm.c (IN_NAMED_SECTION, get_named_section,
12061 resolve_unique_section, hot_function_section, get_named_text_section,
12062 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12063 make_decl_rtl, default_unique_section): Update.
12064 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12065 (c6x_elf_unique_section): Update.
12066 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12067 * config/pa/pa.c (pa_function_section): Update.
12068 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12069 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12070 * config/arc/arc.c (arc_in_small_data_p): Update.
12071 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12072 * config/mcore/mcore.c (mcore_unique_section): Update.
12073 * config/mips/mips.c (mips16_build_function_stub): Update.
12074 (mips16_build_call_stub): Update.
12075 (mips_function_rodata_section): Update.
12076 (mips_in_small_data_p): Update.
12077 * config/score/score.c (score_in_small_data_p): Update.
12078 * config/rx/rx.c (rx_in_small_data): Update.
12079 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12080 (rs6000_xcoff_asm_named_section): Update.
12081 (rs6000_xcoff_unique_section): Update.
12082 * config/frv/frv.c (frv_string_begins_with): Update.
12083 (frv_in_small_data_p): Update.
12084 * config/v850/v850.c (v850_encode_data_area): Update.
12085 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12086 (bfin_handle_l1_data_attribute): Update.
12087 (bfin_handle_l2_attribute): Update.
12088 * config/mep/mep.c (mep_unique_section): Update.
12089 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12090 Update.
12091 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12092 (h8300_handle_tiny_data_attribute): Update.
12093 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12094 (m32r_in_small_data_p): Update.
12095 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12096 * config/i386/i386.c (ix86_in_large_data_p): Update.
12097 * config/i386/winnt.c (i386_pe_unique_section): Update.
12098 * config/darwin.c (darwin_function_section): Update.
12099 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12100 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12101 (new_emutls_decl): Update.
12102 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12103 input_varpool_node): Update.
12104 (ead_string_cst): Turn to ...
12105 (read_string): ... this one.
12106 * dwarf2out.c (secname_for_decl): Update.
12107 * asan.c (asan_protect_global): Update.
12108
12109 2014-06-11 DJ Delorie <dj@redhat.com>
12110
12111 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12112 cache lines.
12113 * config/rx/rx.c (rx_option_override): Likewise.
12114 (rx_align_for_label): Likewise.
12115
12116 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12117
12118 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12119
12120 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12121 prototype.
12122
12123 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12124
12125 * common.md: New file.
12126 * doc/md.texi: Update description of generic, machine-independent
12127 constraints.
12128 * config/s390/constraints.md (e): Delete.
12129 * Makefile.in (md_file): Include common.md.
12130 * config/m32c/t-m32c (md_file): Likewise.
12131 * genpreds.c (general_mem): New array.
12132 (generic_constraint_letters): Remove constraints now defined by
12133 common.md.
12134 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12135 Allow the first character to be '<' or '>' as well.
12136 * genoutput.c (general_mem): New array.
12137 (indep_constraints): Remove constraints now defined by common.md.
12138 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12139 Remove special handling of 'm'.
12140 * ira-costs.c (record_reg_classes): Remove special handling of
12141 constraints now defined by common.md.
12142 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12143 * ira-lives.c (single_reg_class): Likewise.
12144 (ira_implicitly_set_insn_hard_regs): Likewise.
12145 * lra-constraints.c (reg_class_from_constraints): Likewise.
12146 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12147 * postreload.c (reload_cse_simplify_operands): Likewise.
12148 * reload.c (push_secondary_reload, scratch_reload_class)
12149 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12150 * reload1.c (maybe_fix_stack_asms): Likewise.
12151 * targhooks.c (default_secondary_reload): Likewise.
12152 * stmt.c (parse_output_constraint): Likewise.
12153 * recog.c (preprocess_constraints): Likewise.
12154 (constrain_operands, peep2_find_free_register): Likewise.
12155 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12156 must be handled specially.
12157
12158 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12159
12160 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12161 * genpreds.c (have_const_dbl_constraints): Delete.
12162 (add_constraint): Don't set it.
12163 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12164 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12165 constraints using the lookup_constraint logic.
12166 * ira-lives.c (single_reg_class): Likewise.
12167 * ira.c (ira_setup_alts): Likewise.
12168 * lra-constraints.c (process_alt_operands): Likewise.
12169 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12170 * reload.c (find_reloads): Likewise.
12171
12172 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12173
12174 * genpreds.c (const_int_start, const_int_end): New variables.
12175 (choose_enum_order): Output CONST_INT constraints before memory
12176 constraints.
12177 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12178 Add CT_CONST_INT.
12179 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12180 * ira.c (ira_setup_alts): Likewise.
12181 * lra-constraints.c (process_alt_operands): Likewise.
12182 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12183 * reload.c (find_reloads): Likewise.
12184
12185 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12186
12187 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12188 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12189 * recog.c (preprocess_constraints): Update accordingly.
12190
12191 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12192
12193 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12194 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12195 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12196 * genpreds.c (print_type_tree): New function.
12197 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12198 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12199 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12200 Write out enum constraint_type and get_constraint_type.
12201 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12202 constraint_num rather than a constraint string.
12203 (satisfies_address_constraint_p): Likewise.
12204 (reg_class_from_constraints): Avoid old constraint macros.
12205 (process_alt_operands, process_address_1): Likewise.
12206 (curr_insn_transform): Likewise.
12207 * ira-costs.c (record_reg_classes): Likewise.
12208 (record_operand_costs): Likewise.
12209 * ira-lives.c (single_reg_class): Likewise.
12210 (ira_implicitly_set_insn_hard_regs): Likewise.
12211 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12212 * postreload.c (reload_cse_simplify_operands): Likewise.
12213 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12214 (constrain_operands, peep2_find_free_register): Likewise.
12215 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12216 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12217 * reload1.c (maybe_fix_stack_asms): Likewise.
12218 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12219 * targhooks.c (default_secondary_reload): Likewise.
12220 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12221 to EXTRA_CONSTRAINT_STR.
12222 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12223
12224 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12225
12226 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12227 (write_constraint_satisfied_p_array): ...this new function.
12228 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12229 an array.
12230 (write_insn_preds_c): Update accordingly.
12231
12232 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12233
12234 * genpreds.c (write_lookup_constraint): Rename to...
12235 (write_lookup_constraint_1): ...this.
12236 (write_lookup_constraint_array): New function.
12237 (write_tm_preds_h): Define lookup_constraint as an inline function
12238 that uses write_lookup_constraint_array where possible.
12239 (write_insn_preds_c): Update for the changes above.
12240
12241 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12242
12243 * doc/md.texi (regclass_for_constraint): Rename to...
12244 (reg_class_for_constraint): ...this.
12245 * genpreds.c (num_constraints, enum_order, register_start)
12246 (register_end, satisfied_start, memory_start, memory_end)
12247 (address_start, address_end): New variables.
12248 (add_constraint): Count the number of constraints.
12249 (choose_enum_order): New function.
12250 (write_enum_constraint_num): Iterate over enum_order.
12251 (write_regclass_for_constraint): Rename to...
12252 (write_reg_class_for_constraint_1): ...this and update output
12253 accordingly.
12254 (write_constraint_satisfied_p): Rename to...
12255 (write_constraint_satisfied_p_1): ...this and update output
12256 accordingly. Do nothing if all extra constraints are register
12257 constraints.
12258 (write_insn_extra_memory_constraint): Delete.
12259 (write_insn_extra_address_constraint): Delete.
12260 (write_range_function): New function.
12261 (write_tm_preds_h): Define constraint_satisfied_p and
12262 reg_class_for_constraint as inline functions that do a range check
12263 before calling the out-of-line function. Use write_range_function
12264 to implement insn_extra_{register,memory,address}_constraint,
12265 the first of which is new.
12266 (write_insn_preds_c): Update after above changes to write_* functions.
12267 (main): Call choose_enum_order.
12268
12269 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12270
12271 PR tree-optimization/61306
12272 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12273 expression instead of its size.
12274 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12275 false to prevent optimization when the result is unpredictable due to
12276 arithmetic right shift of signed type with highest byte is set.
12277 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12278 (init_symbolic_number): Likewise.
12279 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12280 when the result is unpredictable due to sign extension.
12281
12282 2014-06-11 Terry Guo <terry.guo@arm.com>
12283
12284 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12285 (*thumb1_addsi3): Ditto.
12286 (*thumb_subdi3): Ditto.
12287 (thumb1_subsi3_insn): Ditto.
12288 (*thumb_mulsi3): Ditto.
12289 (*thumb_mulsi3_v6): Ditto.
12290 (*thumb1_andsi3_insn): Ditto.
12291 (thumb1_bicsi3): Ditto.
12292 (*thumb1_iorsi3_insn): Ditto.
12293 (*thumb1_xorsi3_insn): Ditto.
12294 (*thumb1_ashlsi3): Ditto.
12295 (*thumb1_ashrsi3): Ditto.
12296 (*thumb1_lshrsi3): Ditto.
12297 (*thumb1_rotrsi3): Ditto.
12298 (*thumb1_negdi2): Ditto.
12299 (*thumb1_negsi2): Ditto.
12300 (*thumb1_abssi2): Ditto.
12301 (*thumb1_neg_abssi2): Ditto.
12302 (*thumb1_one_cmplsi2): Ditto.
12303 (*thumb1_zero_extendhisi2): Ditto.
12304 (*thumb1_zero_extendqisi2): Ditto.
12305 (*thumb1_zero_extendqisi2_v6): Ditto.
12306 (thumb1_extendhisi2): Ditto.
12307 (thumb1_extendqisi2): Ditto.
12308 (*thumb1_movdi_insn): Ditto.
12309 (*thumb1_movsi_insn): Ditto.
12310 (*thumb1_movhi_insn): Ditto.
12311 (thumb_movhi_clobber): Ditto.
12312 (*thumb1_movqi_insn): Ditto.
12313 (*thumb1_movhf): Ditto.
12314 (*thumb1_movsf_insn): Ditto.
12315 (*thumb_movdf_insn): Ditto.
12316 (movmem12b): Ditto.
12317 (movmem8b): Ditto.
12318 (cbranchqi4): Ditto.
12319 (cbranchsi4_insn): Ditto.
12320 (cbranchsi4_scratch): Ditto.
12321 (*negated_cbranchsi4): Ditto.
12322 (*tbit_cbranch): Ditto.
12323 (*tlobits_cbranch): Ditto.
12324 (*tstsi3_cbranch): Ditto.
12325 (*cbranchne_decr1): Ditto.
12326 (*addsi3_cbranch): Ditto.
12327 (*addsi3_cbranch_scratch): Ditto.
12328 (*thumb_cmpdi_zero): Ditto.
12329 (cstoresi_eq0_thumb1): Ditto.
12330 (cstoresi_ne0_thumb1): Ditto.
12331 (*cstoresi_eq0_thumb1_insn): Ditto.
12332 (*cstoresi_ne0_thumb1_insn): Ditto.
12333 (cstoresi_nltu_thumb1): Ditto.
12334 (cstoresi_ltu_thumb1): Ditto.
12335 (thumb1_addsi3_addgeu): Ditto.
12336 (*thumb_jump): Ditto.
12337 (*call_reg_thumb1_v5): Ditto.
12338 (*call_reg_thumb1): Ditto.
12339 (*call_value_reg_thumb1_v5): Ditto.
12340 (*call_value_reg_thumb1): Ditto.
12341 (*call_insn): Ditto.
12342 (*call_value_insn): Ditto.
12343 (thumb1_casesi_internal_pic): Ditto.
12344 (thumb1_casesi_dispatch): Ditto.
12345 (*thumb1_indirect_jump): Ditto.
12346 (prologue_thumb1_interwork): Ditto.
12347 (*epilogue_insns): Ditto.
12348 (consttable_1): Ditto.
12349 (consttable_2): Ditto.
12350 (tablejump): Ditto.
12351 (*thumb1_tablejump): Ditto.
12352 (thumb_eh_return): Ditto.
12353 (define_peephole2): Two of them are thumb1 only and got moved into
12354 new file thumb1.md.
12355 (define_split): Six of them are thumb1 only and got moved into new
12356 file thumb1.md.
12357 * config/arm/thumb1.md: New file comprised of above thumb1 only
12358 patterns.
12359
12360 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12361
12362 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12363 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12364 dependencies.
12365 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12366 (aarch64_crc_builtin_datum): New struct.
12367 (aarch64_crc_builtin_data): New.
12368 (aarch64_init_crc32_builtins): New function.
12369 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12370 (aarch64_crc32_expand_builtin): New.
12371 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12372 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12373 __ARM_FEATURE_CRC32 when appropriate.
12374 (TARGET_CRC32): Define.
12375 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12376 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12377 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12378 (aarch64_<crc_variant>): New pattern.
12379 * config/aarch64/arm_acle.h: New file.
12380 * config/aarch64/iterators.md (CRC): New int iterator.
12381 (crc_variant, crc_mode): New int attributes.
12382 * doc/aarch64-acle-intrinsics.texi: New file.
12383 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12384 Include aarch64-acle-intrinsics.texi.
12385
12386 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12387
12388 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12389 check for stores group of length 3.
12390 (vect_permute_store_chain): New permutations for stores group of
12391 length 3.
12392 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12393 of vec_perm_shuffle for the new permutations.
12394
12395 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12396
12397 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12398 table rewriting temporarily on targets not supporting ONE_ONLY.
12399
12400 2014-06-11 Richard Biener <rguenther@suse.de>
12401
12402 PR middle-end/61437
12403 Revert
12404 2014-06-04 Richard Biener <rguenther@suse.de>
12405
12406 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12407 TREE_PUBLIC and DECL_EXTERNAL decls.
12408
12409 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12410
12411 * varasm.c (set_implicit_section): New function.
12412 (resolve_unique_section): Use it to set implicit section
12413 for aliases, too.
12414 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12415 (default_function_section): Likewise.
12416 (decl_binds_to_current_def_p): Constify argument.
12417 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12418 * asan.c (asan_protect_global): Use
12419 symtab_get_node (decl)->implicit_section.
12420 * symtab.c (dump_symtab_base): Dump implicit sections.
12421 (verify_symtab_base): Verify sanity of sectoins and comdats.
12422 (symtab_resolve_alias): Alias share the section of its target.
12423 (set_section_1): New function.
12424 (symtab_node::set_section): Move here, recurse to aliases.
12425 (verify_symtab): Check for duplicated symtab lists.
12426 * tree-core.h (implicit_section_name_p): Remove.
12427 * tree-vect-data-refs.c: Include varasm.h.
12428 (vect_can_force_dr_alignment_p): Fix conditional on when
12429 decl bints to current definition; use
12430 symtab_get_node (decl)->implicit_section.
12431 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12432 * cgraph.h (struct symtab_node): Add implicit_section.
12433 (set_section): Rename to ...
12434 (set_section_for_node): ... this one.
12435 (set_section): Declare.
12436 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12437 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12438 input_overwrite_node, input_varpool_node): Stream implicit_section.
12439 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12440 removal; it will fail in LTO.
12441
12442 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12443
12444 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12445 Change second alternative type to f_mcr.
12446 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12447 and 12th alternatives' types to f_mcr and f_mrc.
12448 (*movdi_aarch64): Same for 12th and 13th alternatives.
12449 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12450 (aarch64_movtilow_tilow): Change type to fmov.
12451
12452 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12453
12454 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12455 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12456
12457 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12458
12459 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12460 New expander.
12461 (aarch64_sqrdmulh_lane<mode>): Likewise.
12462 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12463 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12464 (aarch64_sqdmulh_laneq<mode>): New expander.
12465 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12466 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12467 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12468 (aarch64_sqdmulh_lane<mode>): New expander.
12469 (aarch64_sqrdmulh_lane<mode>): Likewise.
12470 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12471 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12472 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12473 (aarch64_sqdmlal_laneq<mode>): Likewise.
12474 (aarch64_sqdmlsl_lane<mode>): Likewise.
12475 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12476 (aarch64_sqdmlal2_lane<mode>): Likewise.
12477 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12478 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12479 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12480 (aarch64_sqdmull_lane<mode>): Likewise.
12481 (aarch64_sqdmull_laneq<mode>): Likewise.
12482 (aarch64_sqdmull2_lane<mode>): Likewise.
12483 (aarch64_sqdmull2_laneq<mode>): Likewise.
12484
12485 2014-06-10 Richard Biener <rguenther@suse.de>
12486
12487 PR tree-optimization/61438
12488 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12489 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12490 insertion of IVs if running PRE.
12491 (eliminate): Adjust.
12492 (pass_pre::execute): Likewise.
12493 (pass_fre::execute): Likewise.
12494
12495 2014-06-10 Richard Biener <rguenther@suse.de>
12496
12497 PR middle-end/61456
12498 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12499 Do not use the main variant for the type comparison.
12500 (ncr_compar): Likewise.
12501 (nonoverlapping_component_refs_p): Likewise.
12502
12503 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12504
12505 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12506 REG_CFA_RESTORE mode.
12507
12508 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12509
12510 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12511 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12512 expand_vec_perm_pblendv.
12513
12514 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12515
12516 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12517 available.
12518 Simplify description of __crc32d and __crc32cd intrinsics.
12519 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12520 availability.
12521
12522 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12523
12524 PR lto/61334
12525 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12526 * config.in: Regenerate.
12527 * configure: Likewise.
12528
12529 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12530
12531 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12532 and public vars.
12533 (intersect_static_var_sets): Remove.
12534 (propagate): Do not prune local statics.
12535
12536 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12537
12538 PR fortran/60928
12539 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12540 Set lastprivate_firstprivate even if omp_private_outer_ref
12541 langhook returns true.
12542 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12543 langhook, call unshare_expr on new_var and call
12544 build_outer_var_ref to get the last argument.
12545
12546 2014-06-10 Marek Polacek <polacek@redhat.com>
12547
12548 PR c/60988
12549 * doc/extend.texi: Add cindex for transparent_union.
12550
12551 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12552
12553 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12554 init_symbolic_number ().
12555
12556 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12557
12558 PR middle-end/61141
12559 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12560 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12561 (verify_rtl_sharing): Likewise.
12562
12563 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12564
12565 PR c++/54442
12566 * tree.c (build_qualified_type): Use a canonical type for
12567 TYPE_CANONICAL.
12568
12569 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12570
12571 * config/arm/arm-modes.def: Remove XFmode.
12572
12573 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12574
12575 PR target/61062
12576 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12577 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12578 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12579 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12580 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12581 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12582 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12583 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12584 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12585
12586 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12587
12588 * tree-core.h (tree_decl_with_vis): Remove section_name.
12589
12590 2014-06-09 Kito Cheng <kito@0xlab.org>
12591
12592 * ira.c (ira): Don't call init_caller_save if LRA enabled
12593 since LRA use its own infrastructure to handle that.
12594
12595 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12596
12597 * symtab.c (dump_symtab_base): Update dumping.
12598 (symtab_make_decl_local): Clear only DECL_COMDAT.
12599 * tree-vect-data-refs.c (Check that variable is static before
12600 tampering with sections.
12601 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12602 (cgraph_create_virtual_clone): Likewise.
12603 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12604 (decl_section_name, set_decl_section_name): New accessors.
12605 (find_decls_types_r): Do not walk section name
12606 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12607 (decl_comdat_group, decl_comdat_group_id): Constify.
12608 (decl_section_name, set_decl_section_name): Update.
12609 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12610 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12611 (cgraph_make_node_local_1): Clear section and comdat group.
12612 * cgraph.h (set_comdat_group): Sanity check.
12613 (get_section, set_section): New.
12614 * ipa-comdats.c (ipa_comdats): Use get_section.
12615 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12616 * lto-streamer-out.c: Do not follow section names.
12617 * c-family/c-common.c (handle_section_attribute): Update.
12618 * lto-cgraph.c (lto_output_node): Output section.
12619 (lto_output_varpool_node): Likewise.
12620 (read_comdat_group): Rename to ...
12621 (read_identifier): ... this one.
12622 (read_string_cst): New function.
12623 (input_node, input_varpool_node): Input section names.
12624 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12625 (new_emutls_decl): Update.
12626 (secname_for_decl): Check section names only of static vars.
12627 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12628 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12629 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12630 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12631 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12632 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12633 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12634 * config/v850/v850.c (v850_insert_attributes): Likewise.
12635 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12636 Likewise.
12637 (h8300_handle_tiny_data_attribute): Likewise.
12638 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12639 (bfin_handle_l2_attribute): Likewise.
12640
12641 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12642
12643 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12644 remove static initializer.
12645
12646 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12647
12648 * varasm.c (use_blocks_for_decl_p): Check symbol table
12649 instead of alias attribute.
12650 (place_block_symbol): Recurse on aliases.
12651
12652 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12653
12654 * ipa-visibility.c: Include varasm.h
12655 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12656
12657 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12658
12659 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12660 outputting aliases.
12661
12662 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12663
12664 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12665 from test_insn into GGC space escape via SET_SRC.
12666
12667 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12668
12669 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12670 call statement, if any.
12671 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12672 statements, if any. Tidy up.
12673
12674 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12675
12676 PR target/61431
12677 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12678 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12679 handles swapping the two 64-bit double words on little endian
12680 systems. Include V1TImode and optionally TImode in VSX_LE so that
12681 these types are properly swapped. Change all of the insns and
12682 splits that do the 64-bit swaps to use VSX_LE.
12683 (vsx_le_perm_load_<mode>): Likewise.
12684 (vsx_le_perm_store_<mode>): Likewise.
12685 (splitters for little endian memory operations): Likewise.
12686 (vsx_xxpermdi2_le_<mode>): Likewise.
12687 (vsx_lxvd2x2_le_<mode>): Likewise.
12688 (vsx_stxvd2x2_le_<mode>): Likewise.
12689
12690 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12691
12692 PR target/61423
12693 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12694 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12695 and corresponding splitters. Zero extend general register
12696 or memory input operand to XMM temporary. Enable for
12697 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12698 (floatunssi<mode>2): Update expander predicate.
12699
12700 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12701
12702 PR rtl-optimization/61325
12703 * lra-constraints.c (process_address_1): Check scale equal to one
12704 to prevent transformation: base + scale * index => base + new_reg.
12705
12706 2014-06-06 Richard Biener <rguenther@suse.de>
12707
12708 PR tree-optimization/59299
12709 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12710 a def operand.
12711 (nearest_common_dominator_of_uses): Likewise.
12712 (statement_sink_location): Adjust. Support sinking loads.
12713
12714 2014-06-06 Martin Jambor <mjambor@suse.cz>
12715
12716 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12717 (build_agg_jump_func_from_list): Likewise.
12718 (determine_known_aggregate_parts): Renamed to
12719 determine_locally_known_aggregate_parts. Moved some functionality
12720 to the two functions above, removed bound checks.
12721
12722 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12723
12724 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12725 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12726 (aarch64_progress_pointer): Likewise.
12727 (aarch64_copy_one_part_and_move_pointers): Likewise.
12728 (aarch64_expand_movmen): Likewise.
12729 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12730 * config/aarch64/aarch64.md (movmem<mode>): New.
12731
12732 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12733
12734 * targhooks.c (default_add_stmt_cost): Call target specific
12735 hook instead of default one.
12736
12737 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12738
12739 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12740 endianness instead of host endianness.
12741 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12742 comments.
12743
12744 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12745
12746 PR debug/53927
12747 * function.c (instantiate_decls): Process the saved static chain.
12748 (expand_function_start): If not optimizing, save the static chain
12749 onto the stack.
12750 * tree-nested.c (convert_all_function_calls): Always create the static
12751 chain for nested functions if not optimizing.
12752
12753 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12754
12755 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12756
12757 2014-06-06 Richard Biener <rguenther@suse.de>
12758
12759 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12760 (construct_init_block): Likewise.
12761 (construct_exit_block): Likewise.
12762 (pass_expand::execute): Likewise.
12763 * graphite.c (graphite_transforms): Replace check for current_loops
12764 with a check for > 1 loops.
12765 (pass_graphite_transforms::execute): Adjust.
12766 * ipa-split.c (split_function): Remove check for current_loops.
12767 * omp-low.c (expand_parallel_call): Likewise.
12768 (expand_omp_for_init_counts): Likewise.
12769 (extract_omp_for_update_vars): Likewise.
12770 (expand_omp_for_generic): Likewise.
12771 (expand_omp_sections): Likewise.
12772 (expand_omp_target): Likewise.
12773 * tracer.c (tail_duplicate): Likewise.
12774 (pass_tracer::execute): Likewise.
12775 * trans-mem.c (expand_transaction): Likewise.
12776 * tree-complex.c (expand_complex_div_wide): Likewise.
12777 * tree-eh.c (lower_resx): Likewise.
12778 (cleanup_empty_eh_merge_phis): Likewise.
12779 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12780 current_loops with a check for > 1 loops.
12781 (pass_predcom::execute): Adjust.
12782 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12783 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12784 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12785 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12786 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12787 * tree-switch-conversion.c (process_switch): Likewise.
12788 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12789 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12790 (execute_vrp): Likewise.
12791 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12792
12793 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12794
12795 * rtl.h (insn_location): Declare.
12796 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12797 with UNKNOWN_LOCATION.
12798 * emit-rtl.c (insn_location): New function.
12799 * final.c (notice_source_line): Check that the instruction has a
12800 location before retrieving it and use insn_location.
12801 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12802 * print-rtl.c (print_rtx): Likewise.
12803
12804 2014-06-06 Richard Biener <rguenther@suse.de>
12805
12806 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12807
12808 2014-06-06 Christian Bruel <christian.bruel@st.com>
12809
12810 PR tree-optimization/43934
12811 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12812 cost.
12813
12814 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12815
12816 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12817 return NO_REGS for extra address and memory constraints. Handle
12818 operands that match (or are equivalent to something that matches)
12819 extra constant constraints. Ignore other non-register operands.
12820
12821 2014-06-06 Alan Modra <amodra@gmail.com>
12822
12823 PR target/61300
12824 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12825 * doc/tm.texi: Regenerate.
12826 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12827 Use throughout in place of REG_PARM_STACK_SPACE.
12828 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12829 "incoming" param. Pass to rs6000_function_parms_need_stack.
12830 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12831 prototype_p when incoming. Use function decl when incoming
12832 to handle K&R style functions.
12833 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12834 (INCOMING_REG_PARM_STACK_SPACE): Define.
12835
12836 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12837
12838 PR target/52472
12839 * cfgexpand.c (expand_debug_expr): Use address space of nested
12840 TREE_TYPE for ADDR_EXPR and MEM_REF.
12841
12842 2014-06-05 Jeff Law <law@redhat.com>
12843
12844 PR tree-optimization/61289
12845 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12846 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12847 looking for those which match LHS. All callers changed.
12848 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12849 parameters and code which manipulated them. All callers changed.
12850 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12851 and DST_MAP parameters. Simplify invalidation code by just calling
12852 invalidate_equivalences. All callers changed.
12853 (thread_across_edge): Simplify now that we don't need to maintain
12854 the map of equivalences to invalidate.
12855
12856 2014-06-05 Kai Tietz <ktietz@redhat.com>
12857 Richard Henderson <rth@redhat.com>
12858
12859 PR target/46219
12860 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12861 checking for !TARGET_X32.
12862 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12863 (sibcall_intern): New define_insn, plus required peepholes.
12864 (sibcall_pop_intern): Likewise.
12865 (sibcall_value_intern): Likewise.
12866 (sibcall_value_pop_intern): Likewise.
12867
12868 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12869
12870 * tree-inline.c (tree_function_versioning): Check DF info existence
12871 before accessing it.
12872
12873 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12874
12875 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12876 frame_size.
12877 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12878 aarch64_frame hard_fp_offset and frame_size.
12879 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12880 frame_size; remove original_frame_size.
12881 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12882 (aarch64_initial_elimination_offset): Remove frame_size and
12883 offset. Use aarch64_frame frame_size.
12884
12885 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12886 Jiong Wang <jiong.wang@arm.com>
12887 Renlin <renlin.li@arm.com>
12888
12889 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12890 initialization of R30 offset. Update offset. Iterate core
12891 regisers upto X30. Remove X29, X30 specific code.
12892
12893 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12894 Jiong Wang <jiong.wang@arm.com>
12895
12896 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12897 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12898 (aarch64_register_saved_on_entry): Adjust test.
12899
12900 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12901
12902 * config/aarch64/aarch64.h (machine_function): Move
12903 saved_varargs_size from here...
12904 (aarch64_frame): ... to here.
12905
12906 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12907 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12908 (aarch64_initial_elimination_offset)
12909 (aarch64_setup_incoming_varargs): Adjust location of
12910 saved_varargs_size.
12911
12912 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12913
12914 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12915 layout comment.
12916
12917 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12918 Prachi Godbole <Prachi.Godbole@imgtec.com>
12919
12920 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12921 mips32r5 entry to use PROCESSOR_P5600.
12922 * config/mips/mips-tables.opt: Regenerate.
12923 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12924 * config/mips/mips.c (mips_fmadd_bypass): New function.
12925 (mips_rtx_cost_data): Add costs for p5600.
12926 (mips_issue_rate): Add support for p5600.
12927 (mips_multipass_dfa_lookahead): Likewise.
12928 * config/mips/mips.h (TUNE_P5600): New define.
12929 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12930 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12931 * config/mips/mips.md: Include p5600.md.
12932 (processor): Add p5600.
12933 * config/mips/p5600.md: New file.
12934
12935 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12936
12937 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12938 * config/i386/predicates.md (palignr_operand): New.
12939 Indicates if permutation is suitable for palignr instruction.
12940
12941 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12942
12943 PR tree-optimization/61319
12944 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12945 stmt belongs to loop.
12946
12947 2014-06-05 Richard Biener <rguenther@suse.de>
12948
12949 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12950 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12951 (lookup_tmp_var): Adjust.
12952 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12953
12954 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12955
12956 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12957
12958 2014-06-05 Marek Polacek <polacek@redhat.com>
12959
12960 PR c/49706
12961 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12962
12963 2014-06-04 Tom de Vries <tom@codesourcery.com>
12964
12965 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12966 CONST_INT.
12967
12968 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12969
12970 PR tree-optimization/61385
12971 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12972
12973 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12974
12975 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12976 changed to use fatal_error.
12977 (main): Ensure lto_wrapper_cleanup is run atexit.
12978
12979 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12980
12981 * lra-constraints.c (valid_address_p): Move earlier in file.
12982 (address_eliminator): New structure.
12983 (satisfies_memory_constraint_p): New function.
12984 (satisfies_address_constraint_p): Likewise.
12985 (process_alt_operands, process_address, curr_insn_transform): Use them.
12986
12987 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12988
12989 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12990 const pointer.
12991 (target_lra_int, default_target_lra_int, this_target_lra_int)
12992 (op_alt_data): Delete.
12993 * lra.h (lra_init): Delete.
12994 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12995 (init_insn_code_data_once): Remove op_alt_data handling.
12996 (finish_insn_code_data_once): Likewise.
12997 (init_op_alt_data): Delete.
12998 (get_static_insn_data): Initialize operand_alternative to null.
12999 (free_insn_recog_data): Cast operand_alternative before freeing it.
13000 (setup_operand_alternative): Take the operand_alternative as
13001 parameter and assume it isn't already cached in the static
13002 insn data.
13003 (lra_set_insn_recog_data): Update accordingly.
13004 (lra_init): Delete.
13005 * ira.c (ira_init): Don't call lra_init.
13006 * target-globals.h (this_target_lra_int): Declare.
13007 (target_globals): Remove lra_int.
13008 (restore_target_globals): Update accordingly.
13009 * target-globals.c: Don't include lra-int.h.
13010 (default_target_globals, save_target_globals): Remove lra_int.
13011
13012 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13013
13014 * recog.h (operand_alternative): Convert reg_class, reject,
13015 matched and matches into bitfields.
13016 (preprocess_constraints): New overload.
13017 (preprocess_insn_constraints): New function.
13018 (preprocess_constraints): Take the insn as parameter.
13019 (recog_op_alt): Change into a pointer.
13020 (target_recog): Add x_op_alt.
13021 * recog.c (asm_op_alt): New variable.
13022 (recog_op_alt): Change into a pointer.
13023 (preprocess_constraints): New overload, replacing the old function
13024 definition with one that doesn't use global state.
13025 (preprocess_insn_constraints): New function.
13026 (preprocess_constraints): Use them. Take the insn as parameter.
13027 Use asm_op_alt for asms.
13028 (recog_init): Free existing x_op_alt entries.
13029 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13030 pointer const.
13031 (make_early_clobber_and_input_conflicts): Likewise.
13032 (process_bb_node_lives): Pass the insn to process_constraints.
13033 * reg-stack.c (check_asm_stack_operands): Likewise.
13034 (subst_asm_stack_regs): Likewise.
13035 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13036 * regrename.c (build_def_use): Likewise.
13037 * sched-deps.c (sched_analyze_insn): Likewise.
13038 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13039 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13040 (note_invalid_constants): Likewise.
13041 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13042 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13043 const.
13044
13045 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13046
13047 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13048 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13049 alternatives.
13050 (make_early_clobber_and_input_conflicts): Likewise.
13051 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13052
13053 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13054
13055 * recog.h (alternative_class): New function.
13056 (which_op_alt): Return a const recog_op_alt.
13057 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13058 (subst_asm_stack_regs): Likewise.
13059 * config/arm/arm.c (note_invalid_constants): Likewise.
13060 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13061 the operand_alternative; use alternative class instead.
13062 * sel-sched.c (get_reg_class): Likewise.
13063 * regrename.c (build_def_use): Likewise.
13064 (hide_operands, restore_operands, record_out_operands): Update type
13065 accordingly.
13066
13067 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13068
13069 * recog.h (recog_op_alt): Convert to a flat array.
13070 (which_op_alt): New function.
13071 * recog.c (recog_op_alt): Convert to a flat array.
13072 (preprocess_constraints): Update accordingly, grouping all
13073 operands of the same alternative together, rather than the
13074 other way around.
13075 * ira-lives.c (check_and_make_def_conflict): Likewise.
13076 (make_early_clobber_and_input_conflicts): Likewise.
13077 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13078 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13079 (subst_asm_stack_regs): Likewise.
13080 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13081 * regrename.c (hide_operands, record_out_operands): Likewise.
13082 (build_def_use): Likewise.
13083 * sel-sched.c (get_reg_class): Likewise.
13084 * config/arm/arm.c (note_invalid_constants): Likewise.
13085
13086 2014-06-04 Jason Merrill <jason@redhat.com>
13087
13088 PR c++/51253
13089 PR c++/61382
13090 * gimplify.c (gimplify_arg): Non-static.
13091 * gimplify.h: Declare it.
13092
13093 2014-06-04 Richard Biener <rguenther@suse.de>
13094
13095 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13096 TREE_PUBLIC and DECL_EXTERNAL decls.
13097
13098 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13099
13100 * regcprop.c (copyprop_hardreg_forward_1): Account for
13101 HARD_REGNO_CALL_PART_CLOBBERED.
13102
13103 2014-06-04 Richard Biener <rguenther@suse.de>
13104
13105 * configure.ac: Check whether the underlying type of int64_t
13106 is long or long long.
13107 * configure: Regenerate.
13108 * config.in: Likewise.
13109 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13110 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13111
13112 2014-06-04 Richard Biener <rguenther@suse.de>
13113
13114 PR tree-optimization/60098
13115 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13116 we hit a kill.
13117 (dse_optimize_stmt): Simplify, now that we found a kill
13118 earlier.
13119
13120 2014-06-04 Richard Biener <rguenther@suse.de>
13121
13122 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13123 of accesses with non-invariant address.
13124
13125 2014-06-04 Martin Liska <mliska@suse.cz>
13126
13127 * cgraph.h (cgraph_make_wrapper): New function introduced.
13128 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13129 * ipa-inline.h (inline_analyze_function): The function is global.
13130 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13131
13132 2014-06-04 Martin Liska <mliska@suse.cz>
13133
13134 * tree.h (private_lookup_attribute_starting): New function.
13135 (lookup_attribute_starting): Likewise.
13136 * tree.c (private_lookup_attribute_starting): Likewise.
13137
13138 2014-06-04 Martin Liska <mliska@suse.cz>
13139
13140 * cgraph.h (expand_thunk): New argument added.
13141 (address_taken_from_non_vtable_p): New global function.
13142 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13143 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13144 * cgraphunit.c (analyze_function): Likewise.
13145 (assemble_thunks_and_aliases): Argument added to call.
13146 (expand_thunk): New argument forces to produce GIMPLE thunk.
13147
13148 2014-06-04 Martin Liska <mliska@suse.cz>
13149
13150 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13151 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13152 * profile.c (branch_prob): Likewise.
13153
13154 2014-06-04 Martin Jambor <mjambor@suse.cz>
13155
13156 PR ipa/61340
13157 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13158 handler for switch on an ipa_ref_use enum.
13159 * ipa-reference.c (analyze_function): Likewise.
13160
13161 2014-06-04 Kai Tietz <ktietz@redhat.com>
13162
13163 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13164 from old call-instruction.
13165
13166 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13167
13168 * config/aarch64/aarch64.c (aarch64_classify_address)
13169 (aarch64_legitimize_reload_address): Support full addressing modes
13170 for vector modes.
13171 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13172 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13173
13174 2014-06-03 Andrew Pinski <apinski@cavium.com>
13175
13176 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13177 for OP0.
13178
13179 2014-06-03 Andrew Pinski <apinski@cavium.com>
13180
13181 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13182 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13183
13184 2014-06-03 Kai Tietz <ktietz@redhat.com>
13185
13186 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13187 for 64-bit ms-abi.
13188
13189 2014-06-03 Dehao Chen <dehao@google.com>
13190
13191 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13192 the same loop.
13193
13194 2014-06-03 Marek Polacek <polacek@redhat.com>
13195
13196 PR c/60439
13197 * doc/invoke.texi: Document -Wswitch-bool.
13198 * function.c (stack_protect_epilogue): Cast controlling expression of
13199 the switch to int.
13200 * gengtype.c (walk_type): Generate switch expression with its
13201 controlling expression cast to int.
13202
13203 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13204
13205 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13206 and attiny841.
13207 * config/avr/avr-tables.opt: Regenerate.
13208 * config/avr/t-multilib: Regenerate.
13209 * doc/avr-mmcu.texi: Regenerate.
13210
13211 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13212 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13213
13214 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13215 (ata6617c, ata664251): Add new avr35 devices.
13216 (ata6612c): Add new avr4 device.
13217 (ata6613c, ata6614q): Add new avr5 devices.
13218 * config/avr/avr-tables.opt: Regenerate.
13219 * config/avr/t-multilib: Regenerate.
13220 * doc/avr-mmcu.texi: Regenerate.
13221
13222 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13223
13224 * gcc/config/aarch64/aarch64-builtins.c
13225 (aarch64_types_binop_ssu_qualifiers): New static data.
13226 (TYPES_BINOP_SSU): Define.
13227 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13228 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13229 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13230 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13231 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13232 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13233 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13234 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13235 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13236 suffix to builtin function name, remove cast.
13237 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13238 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13239 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13240
13241 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13242
13243 * gcc/config/aarch64/aarch64-builtins.c
13244 (aarch64_types_binop_uus_qualifiers,
13245 aarch64_types_shift_to_unsigned_qualifiers,
13246 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13247 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13248 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13249 sqshlu_n, uqshl_n): Update qualifiers.
13250 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13251 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13252 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13253 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13254 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13255 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13256 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13257 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13258 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13259 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13260 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13261 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13262 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13263 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13264 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13265 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13266 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13267 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13268 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13269 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13270 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13271 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13272 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13273 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13274 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13275 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13276 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13277
13278 2014-06-03 Teresa Johnson <tejohnson@google.com>
13279
13280 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13281
13282 2014-06-02 Jason Merrill <jason@redhat.com>
13283
13284 PR c++/61020
13285 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13286
13287 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13288
13289 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13290 location == 0.
13291
13292 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13293
13294 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13295 New pattern.
13296 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13297 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13298 * config/aarch64/iterators.md (REVERSE): New iterator.
13299 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13300 (rev_op): New int_attribute.
13301 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13302 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13303 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13304 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13305 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13306 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13307 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13308 Replace temporary __asm__ with __builtin_shuffle.
13309
13310 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13311
13312 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13313 mips64r5.
13314 * config/mips/mips-tables.opt: Regenerate.
13315 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13316 to use mips_isa_rev rather than ISA_MIPS32R2.
13317 * config/mips/mips.h (ISA_MIPS32R3): New define.
13318 (ISA_MIPS32R5): New define.
13319 (ISA_MIPS64R3): New define.
13320 (ISA_MIPS64R5): New define.
13321 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13322 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13323 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13324 and mips64r5.
13325 (MIPS_ISA_SYNCI_SPEC): Likewise.
13326 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13327 (LINK_SPEC): Added mips32r3 and mips32r5.
13328 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13329 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13330 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13331 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13332 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13333 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13334 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13335
13336 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13337
13338 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13339 options.
13340 * config/mips/mips.opt (mxpa): New option.
13341 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13342 assembler.
13343
13344 2014-06-03 Martin Jambor <mjambor@suse.cz>
13345
13346 PR ipa/61160
13347 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13348 thunks.
13349
13350 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13351
13352 PR tree-optimization/61328
13353 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13354 initialization from find_bswap_or_nop_1.
13355 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13356 in source_expr2 before using the size value the function sets. Also
13357 make use of init_symbolic_number () in both the old place and
13358 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13359 doing recursion in the GIMPLE_BINARY_RHS case.
13360
13361 2014-06-03 Richard Biener <rguenther@suse.de>
13362
13363 PR tree-optimization/61383
13364 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13365 stmts can't trap.
13366
13367 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13368
13369 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13370 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13371 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13372 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13373 in this file.
13374 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13375 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13376 * system.h: ...here and make it unconditional.
13377 * target.def (conditional_register_usage): Mention
13378 define_register_constraint instead of old-style constraint macros.
13379 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13380 * doc/tm.texi: Regenerate.
13381 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13382 protected by !USE_MD_CONSTRAINTS.
13383 * config/frv/frv.md: Remove quote from old version of documentation.
13384 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13385 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13386 CONST_DOUBLE_OK_FOR_LETTER.
13387 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13388
13389 2014-06-02 Andrew Pinski <apinski@cavium.com>
13390
13391 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13392 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13393 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13394 file whose name depends on -mabi= and -mbig-endian.
13395 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13396 Handle LP64 better and handle ilp32 too.
13397 (MULTILIB_OPTIONS): Delete.
13398 (MULTILIB_DIRNAMES): Delete.
13399
13400 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13401
13402 * expr.h: Remove prototypes of functions defined in builtins.c.
13403 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13404 Remove prototypes of functions defined in builtins.c.
13405 * builtins.h: Update prototype list to include all exported functions.
13406 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13407 no_c99_libc_has_function): Move to targhooks.c
13408 (build_string_literal, build_call_expr_loc_array,
13409 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13410 to tree.c.
13411 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13412 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13413 no_c99_libc_has_function): Relocate from builtins.c.
13414 * tree.c: Include builtins.h.
13415 (build_call_expr_loc_array, build_call_expr_loc_vec,
13416 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13417 from builtins.c.
13418 * fold-const.h (fold_fma): Move prototype to builtins.h.
13419 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13420 * asan.c: Include builtins.h.
13421 * cfgexpand.c: Likewise.
13422 * convert.c: Likewise.
13423 * emit-rtl.c: Likewise.
13424 * except.c: Likewise.
13425 * expr.c: Likewise.
13426 * fold-const.c: Likewise.
13427 * gimple-fold.c: Likewise.
13428 * gimple-ssa-strength-reduction.c: Likewise.
13429 * gimplify.c: Likewise.
13430 * ipa-inline.c: Likewise.
13431 * ipa-prop.c: Likewise.
13432 * lto-streamer-out.c: Likewise.
13433 * stmt.c: Likewise.
13434 * tree-inline.c: Likewise.
13435 * tree-object-size.c: Likewise.
13436 * tree-sra.c: Likewise.
13437 * tree-ssa-ccp.c: Likewise.
13438 * tree-ssa-forwprop.c: Likewise.
13439 * tree-ssa-loop-ivcanon.c: Likewise.
13440 * tree-ssa-loop-ivopts.c: Likewise.
13441 * tree-ssa-math-opts.c: Likewise.
13442 * tree-ssa-reassoc.c: Likewise.
13443 * tree-ssa-threadedge.c: Likewise.
13444 * tree-streamer-in.c: Likewise.
13445 * tree-vect-data-refs.c: Likewise.
13446 * tree-vect-patterns.c: Likewise.
13447 * tree-vect-stmts.c: Likewise.
13448 * config/aarch64/aarch64.c: Likewise.
13449 * config/alpha/alpha.c: Likewise.
13450 * config/arc/arc.c: Likewise.
13451 * config/arm/arm.c: Likewise.
13452 * config/avr/avr.c: Likewise.
13453 * config/bfin/bfin.c: Likewise.
13454 * config/c6x/c6x.c: Likewise.
13455 * config/cr16/cr16.c: Likewise.
13456 * config/cris/cris.c: Likewise.
13457 * config/epiphany/epiphany.c: Likewise.
13458 * config/fr30/fr30.c: Likewise.
13459 * config/frv/frv.c: Likewise.
13460 * config/h8300/h8300.c: Likewise.
13461 * config/i386/i386.c: Likewise.
13462 * config/i386/winnt.c: Likewise.
13463 * config/ia64/ia64.c: Likewise.
13464 * config/iq2000/iq2000.c: Likewise.
13465 * config/lm32/lm32.c: Likewise.
13466 * config/m32c/m32c.c: Likewise.
13467 * config/m32r/m32r.c: Likewise.
13468 * config/m68k/m68k.c: Likewise.
13469 * config/mcore/mcore.c: Likewise.
13470 * config/mep/mep.c: Likewise.
13471 * config/microblaze/microblaze.c: Likewise.
13472 * config/mips/mips.c: Likewise.
13473 * config/mmix/mmix.c: Likewise.
13474 * config/mn10300/mn10300.c: Likewise.
13475 * config/moxie/moxie.c: Likewise.
13476 * config/msp430/msp430.c: Likewise.
13477 * config/nds32/nds32.c: Likewise.
13478 * config/pa/pa.c: Likewise.
13479 * config/pdp11/pdp11.c: Likewise.
13480 * config/picochip/picochip.c: Likewise.
13481 * config/rl78/rl78.c: Likewise.
13482 * config/rs6000/rs6000.c: Likewise.
13483 * config/rx/rx.c: Likewise.
13484 * config/s390/s390.c: Likewise.
13485 * config/score/score.c: Likewise.
13486 * config/sh/sh.c: Likewise.
13487 * config/sparc/sparc.c: Likewise.
13488 * config/spu/spu.c: Likewise.
13489 * config/stormy16/stormy16.c: Likewise.
13490 * config/tilegx/tilegx.c: Likewise.
13491 * config/tilepro/tilepro.c: Likewise.
13492 * config/v850/v850.c: Likewise.
13493 * config/vax/vax.c: Likewise.
13494 * config/xtensa/xtensa.c: Likewise.
13495
13496 2014-06-02 Jeff Law <law@redhat.com>
13497
13498 PR rtl-optimization/61094
13499 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13500 was marked as do_no_reextend. If a copy is needed to eliminate
13501 an extension, then mark it as do_not_reextend.
13502
13503 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13504
13505 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13506
13507 2014-06-02 Richard Henderson <rth@redhat.com>
13508
13509 PR target/61336
13510 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13511 addresses inside asms. Use output_operand_lossage instead of
13512 gcc_unreachable.
13513
13514 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13515
13516 PR target/61239
13517 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13518 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13519
13520 2014-06-02 Tom de Vries <tom@codesourcery.com>
13521
13522 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13523 case that x has VOIDmode.
13524
13525 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13526
13527 * varasm.c (copy_constant): Delete function.
13528 (build_constant_desc): Don't call it.
13529
13530 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13531
13532 PR target/61154
13533 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13534 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13535 with immediate_operand.
13536
13537 2014-06-02 Andreas Schwab <schwab@suse.de>
13538
13539 * config/ia64/ia64.c
13540 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13541 pending_data_specs first.
13542
13543 2014-06-02 Richard Biener <rguenther@suse.de>
13544
13545 PR tree-optimization/61378
13546 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13547 valueized_anything.
13548
13549 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13550
13551 * config/i386/constraints.md (Bw): Rename from 'w'.
13552 (Bz): Rename from 'z'.
13553 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13554
13555 2014-06-01 Kai Tietz <ktietz@redhat.com>
13556
13557 PR target/61377
13558 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13559 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13560 instead of m constraint.
13561
13562 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13563
13564 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13565 a separate alternative where the scratch operand 2 is marked as
13566 early clobber.
13567
13568 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13569
13570 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13571 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13572 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13573 and __builtins_arm_get_fpscr.
13574 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13575 __builtins_arm_get_fpscr.
13576 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13577 __builtins_arm_ldfpscr.
13578 (arm_atomic_assign_expand_fenv): New function.
13579 * config/arm/vfp.md (set_fpscr): New pattern.
13580 (get_fpscr) : Likewise.
13581 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13582 VUNSPEC_SET_FPSCR.
13583 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13584 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13585
13586 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13587
13588 * asan.c (report_error_func): Add SLOW_P argument, use
13589 BUILT_IN_ASAN_*_N if set.
13590 (build_check_stmt): Likewise.
13591 (instrument_derefs): If T has insufficient alignment,
13592 force same handling as for odd sizes.
13593
13594 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13595 BUILT_IN_ASAN_REPORT_STORE_N): New.
13596 * asan.c (struct asan_mem_ref): Change access_size type to
13597 HOST_WIDE_INT.
13598 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13599 update_mem_ref_hash_table): Likewise.
13600 (asan_mem_ref_hasher::hash): Hash in a HWI.
13601 (report_error_func): Change size_in_bytes argument to HWI.
13602 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13603 two.
13604 (build_shadow_mem_access): New function.
13605 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13606 Handle size_in_bytes not power of two or larger than 16.
13607 (instrument_derefs): Don't give up if size_in_bytes is not
13608 power of two or is larger than 16.
13609
13610 2014-05-30 Kai Tietz <ktietz@redhat.com>
13611
13612 PR target/60104
13613 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13614 for sibling-tail-calls.
13615 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13616 to its use.
13617 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13618 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13619
13620 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13621
13622 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13623 * config/avr/avr-tables.opt: Regenerate.
13624 * config/avr/t-multilib: Regenerate.
13625 * doc/avr-mmcu.texi: Regenerate.
13626
13627 2014-05-30 Ian Lance Taylor <iant@google.com>
13628
13629 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13630 target("sse").
13631
13632 2014-05-30 Tom de Vries <tom@codesourcery.com>
13633
13634 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13635 Redefine as true.
13636
13637 2014-05-30 Tom de Vries <tom@codesourcery.com>
13638
13639 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13640 * lra.c (initialize_lra_reg_info_element): Add init of
13641 actual_call_used_reg_set field.
13642 (lra): Call lra_create_live_ranges before lra_inheritance for
13643 -fuse-caller-save.
13644 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13645 -fuse-caller-save.
13646 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13647 instead of call_used_reg_set for -fuse-caller-save.
13648 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13649
13650 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13651
13652 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13653 to mov_imm.
13654 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13655
13656 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13657
13658 * ira.c (ira_get_dup_out_num): Check for output operands at
13659 the start of the loop. Handle cases where an included alternative
13660 follows an excluded one.
13661
13662 2014-05-29 Mike Stump <mikestump@comcast.net>
13663
13664 PR debug/61352
13665 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13666 post ld passes when lto is used.
13667
13668 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13669
13670 PR rtl-optimization/61325
13671 * lra-constraints.c (process_address): Rename to process_address_1.
13672 (process_address): New function.
13673
13674 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13675
13676 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13677 TYPES_BINOPV): New static data.
13678 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13679 New builtin.
13680 * config/aarch64/aarch64-simd.md (aarch64_ext,
13681 aarch64_im_lane_boundsi): New patterns.
13682 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13683 patterns for EXT.
13684 (aarch64_evpc_ext): New function.
13685
13686 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13687
13688 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13689 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13690 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13691 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13692 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13693
13694 2014-05-29 Tom de Vries <tom@codesourcery.com>
13695
13696 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13697
13698 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13699 Richard Sandiford <rdsandiford@googlemail.com>
13700
13701 * arm/iterators.md (shiftable_ops): New code iterator.
13702 (t2_binop0, arith_shift_insn): New code attributes.
13703 * arm/predicates.md (shift_nomul_operator): New predicate.
13704 * arm/arm.md (insn_enabled): Delete.
13705 (enabled): Remove insn_enabled test.
13706 (*arith_shiftsi): Delete. Replace with ...
13707 (*<arith_shift_insn>_multsi): ... new pattern.
13708 (*<arith_shift_insn>_shiftsi): ... new pattern.
13709 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13710
13711 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13712 Tom de Vries <tom@codesourcery.com>
13713
13714 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13715 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13716 clobber.
13717 (mips_split_call): Use POST_CALL_TMP_REG.
13718 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13719
13720 2014-05-29 Tom de Vries <tom@codesourcery.com>
13721
13722 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13723 with #ifdef STACK_REGS.
13724
13725 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13726
13727 * varasm.c (get_variable_section): Walk aliases.
13728 (place_block_symbol): Walk aliases.
13729
13730 2014-05-28 Tom de Vries <tom@codesourcery.com>
13731
13732 Revert:
13733 2014-05-28 Tom de Vries <tom@codesourcery.com>
13734
13735 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13736 * lra.c (initialize_lra_reg_info_element): Add init of
13737 actual_call_used_reg_set field.
13738 (lra): Call lra_create_live_ranges before lra_inheritance for
13739 -fuse-caller-save.
13740 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13741 -fuse-caller-save.
13742 * lra-constraints.c (need_for_call_save_p): Use
13743 actual_call_used_reg_set instead of call_used_reg_set for
13744 -fuse-caller-save.
13745 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13746
13747 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13748
13749 * doc/md.texi: Document that the % constraint character must
13750 be at the beginning of the string.
13751 * genoutput.c (validate_insn_alternatives): Check that '=',
13752 '+' and '%' only appear at the beginning of a constraint.
13753 * ira.c (commutative_constraint_p): Delete.
13754 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13755 at the start of the string.
13756 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13757 duplicate '='s.
13758 * config/arm/neon.md (bicdi3_neon): Likewise.
13759 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13760 (slt_si, sltu_si): Likewise.
13761 * config/vax/vax.md (sbcdi3): Likewise.
13762 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13763 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13764 (mul64): Move '%' to beginning of constraint.
13765 * config/arm/arm.md (*xordi3_insn): Likewise.
13766 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13767 (xorsi3): Likewise.
13768
13769 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13770
13771 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13772
13773 2014-05-28 Jason Merrill <jason@redhat.com>
13774
13775 PR c++/47202
13776 * cgraph.h (symtab_node::get_comdat_group_id): New.
13777 * cgraphunit.c (analyze_functions): Call it.
13778 * symtab.c (dump_symtab_node): Likewise.
13779 * tree.c (decl_comdat_group_id): New.
13780 * tree.h: Declare it.
13781 * lto-streamer-out.c (write_symbol): Use it.
13782 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13783
13784 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13785
13786 PR bootstrap/PR61146
13787 * wide-int.cc: Do not include longlong.h when compiling with clang.
13788
13789 2014-05-28 Richard Biener <rguenther@suse.de>
13790
13791 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13792 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13793 (vrp_visit_assignment_or_call): Print less vertical space.
13794 (vrp_visit_stmt): Likewise.
13795 (vrp_visit_phi_node): Likewise. For a PHI argument with
13796 VR_VARYING range consider recording it as copy.
13797
13798 2014-05-28 Richard Biener <rguenther@suse.de>
13799
13800 Revert
13801 2014-05-28 Richard Biener <rguenther@suse.de>
13802
13803 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13804
13805 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13806
13807 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13808 sufficiently aligned and an offset is used at the same time.
13809 (expand_expr_real_1): Likewise.
13810
13811 2014-05-28 Richard Biener <rguenther@suse.de>
13812
13813 PR middle-end/61045
13814 * fold-const.c (fold_comparison): When folding
13815 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13816 the sign of the remaining constant operand stays the same.
13817
13818 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13819
13820 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13821 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13822 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13823 to the assembler.
13824 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13825 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13826 (m32bit-doubles) Likewise.
13827 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13828 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13829 option for RL78.
13830
13831 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13832
13833 * configure.ac ($gcc_cv_ld_clearcap): New test.
13834 * configure: Regenerate.
13835 * config.in: Regenerate.
13836 * config/sol2.opt (mclear-hwcap): New option.
13837 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13838 * config/sol2-clearcap.map: Moved here from
13839 testsuite/gcc.target/i386/clearcap.map.
13840 * config/sol2-clearcapv2.map: Move here from
13841 gcc.target/i386/clearcapv2.map.
13842 * config/t-sol2 (install): Depend on install-clearcap-map.
13843 (install-clearcap-map): New target.
13844 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13845 -mclear-hwcap.
13846
13847 2014-05-28 Richard Biener <rguenther@suse.de>
13848
13849 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13850 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13851 ... here and remove the rest.
13852 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13853
13854 2014-05-28 Richard Biener <rguenther@suse.de>
13855
13856 PR tree-optimization/61335
13857 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13858 new range fails, drop to varying.
13859
13860 2014-05-28 Olivier Hainque <hainque@adacore.com>
13861
13862 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13863 (CPP_SPEC): Add entry for -mcpu=8548.
13864 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13865 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13866
13867 2014-05-28 Tom de Vries <tom@codesourcery.com>
13868
13869 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13870 * lra.c (initialize_lra_reg_info_element): Add init of
13871 actual_call_used_reg_set field.
13872 (lra): Call lra_create_live_ranges before lra_inheritance for
13873 -fuse-caller-save.
13874 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13875 -fuse-caller-save.
13876 * lra-constraints.c (need_for_call_save_p): Use
13877 actual_call_used_reg_set instead of call_used_reg_set for
13878 -fuse-caller-save.
13879 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13880
13881 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13882 Tom de Vries <tom@codesourcery.com>
13883
13884 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13885 to gccoptlist.
13886 (@item -fuse-caller-save): New item.
13887
13888 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13889 Tom de Vries <tom@codesourcery.com>
13890
13891 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13892 OPT_fuse_caller_save.
13893
13894 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13895 Tom de Vries <tom@codesourcery.com>
13896
13897 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13898 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13899 get_call_reg_set_usage.
13900 * resource.c (mark_set_resources, mark_target_live_regs): Use
13901 get_call_reg_set_usage.
13902 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13903 field.
13904 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13905 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13906 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13907 * ira-build.c (ira_create_allocno): Init
13908 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13909 (create_cap_allocno, propagate_allocno_info)
13910 (propagate_some_info_from_allocno)
13911 (copy_info_to_removed_store_destinations): Handle
13912 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13913 * ira-costs.c (ira_tune_allocno_costs): Use
13914 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13915
13916 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13917 Tom de Vries <tom@codesourcery.com>
13918
13919 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13920 and function_used_regs_valid fields.
13921 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13922 find_all_hard_reg_sets.
13923 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13924 (get_call_reg_set_usage): New function.
13925 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13926 * regs.h (get_call_reg_set_usage): Declare.
13927
13928 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13929
13930 PR libgcc/61152
13931 * config/dbx.h (License): Add Runtime Library Exception.
13932 * config/newlib-stdint.h (License): Same.
13933 * config/rtems.h (License): Same
13934 * config/initfini-array.h (License): Same
13935 * config/v850/v850.h (License): Same.
13936 * config/v850/v850-opts.h (License): Same
13937 * config/v850/rtems.h (License): Same.
13938
13939 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13940
13941 PR target/61044
13942 * doc/extend.texi (Local Labels): Note that label differences are
13943 not supported for AVR.
13944
13945 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13946 Olivier Hainque <hainque@adacore.com>
13947
13948 * rtl.h (set_for_reg_notes): Declare.
13949 * emit-rtl.c (set_for_reg_notes): New function.
13950 (set_unique_reg_note): Use it.
13951 * optabs.c (add_equal_note): Likewise
13952
13953 2014-05-27 Andrew Pinski <apinski@cavium.com>
13954
13955 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13956 Use <w> for the register in assembly template.
13957 (stack_protect_test): Use the mode of operands[0] for the result.
13958 (stack_protect_test_<mode>): Use <w> for the register
13959 in assembly template.
13960
13961 2014-05-27 DJ Delorie <dj@redhat.com>
13962
13963 * config/rx/rx.c (add_vector_labels): New.
13964 (rx_output_function_prologue): Call it.
13965 (rx_handle_func_attribute): Don't require empty arguments.
13966 (rx_handle_vector_attribute): New.
13967 (rx_attribute_table): Add "vector" attribute.
13968 * doc/extend.texi (interrupt, vector): Document new/changed
13969 RX-specific attributes.
13970
13971 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13972
13973 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13974
13975 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13976 predicate to detect a negative quotient.
13977
13978 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13979
13980 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13981 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13982 Add X - Y CMP 0 to X CMP Y transformation.
13983 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13984
13985 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13986
13987 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13988 before printing.
13989
13990 2014-05-27 Steve Ellcey <sellcey@mips.com>
13991
13992 * config/mips/mips.c: Add include of cgraph.h.
13993
13994 2014-05-27 Richard Biener <rguenther@suse.de>
13995
13996 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13997
13998 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13999
14000 PR libgcc/61152
14001 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14002 * config/arm/arm-cores.def (License): Same.
14003 * config/arm/arm-opts.h (License): Same.
14004 * config/arm/aout.h (License): Same.
14005 * config/arm/bpabi.h (License): Same.
14006 * config/arm/elf.h (License): Same.
14007 * config/arm/linux-elf.h (License): Same.
14008 * config/arm/linux-gas.h (License): Same.
14009 * config/arm/netbsd-elf.h (License): Same.
14010 * config/arm/uclinux-eabi.h (License): Same.
14011 * config/arm/uclinux-elf.h (License): Same.
14012 * config/arm/vxworks.h (License): Same.
14013
14014 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14015
14016 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14017 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14018 (arm_init_neon_builtins): Handle NEON_BSWAP.
14019 Define required type nodes.
14020 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14021 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14022 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14023 * config/arm/iterators.md (VDQHSD): New mode iterator.
14024
14025 2014-05-27 Richard Biener <rguenther@suse.de>
14026
14027 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14028 Try using literal operands when comparing value-ranges failed.
14029
14030 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14031
14032 * ira.c (commutative_operand): Adjust for change to recog_data.
14033 [Missing from previous commit.]
14034
14035 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14036
14037 * system.h (TEST_BIT): New macro.
14038 * recog.h (alternative_mask): New type.
14039 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14040 (recog_data_d): Replace alternative_enabled_p array with
14041 enabled_alternatives.
14042 (target_recog): New structure.
14043 (default_target_recog, this_target_recog): Declare.
14044 (get_enabled_alternatives, recog_init): Likewise.
14045 * recog.c (default_target_recog, this_target_recog): New variables.
14046 (get_enabled_alternatives): New function.
14047 (extract_insn): Use it.
14048 (recog_init): New function.
14049 (preprocess_constraints, constrain_operands): Adjust for change to
14050 recog_data.
14051 * postreload.c (reload_cse_simplify_operands): Likewise.
14052 * reload.c (find_reloads): Likewise.
14053 * ira-costs.c (record_reg_classes): Likewise.
14054 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14055 all alternatives after a disabled one would be skipped.
14056 (ira_implicitly_set_insn_hard_regs): Likewise.
14057 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14058 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14059 with enabled_alternatives.
14060 * lra.c (free_insn_recog_data): Update accordingly.
14061 (lra_update_insn_recog_data): Likewise.
14062 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14063 * lra-constraints.c (process_alt_operands): Likewise. Handle
14064 only_alternative as part of the enabled mask.
14065 * target-globals.h (this_target_recog): Declare.
14066 (target_globals): Add a recog field.
14067 (restore_target_globals): Restore this_target_recog.
14068 * target-globals.c: Include recog.h.
14069 (default_target_globals): Initialize recog field.
14070 (save_target_globals): Likewise.
14071 * reginfo.c (reinit_regs): Call recog_init.
14072 * toplev.c (backend_init_target): Likewise.
14073
14074 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14075
14076 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14077 rather than any named insn's code.
14078
14079 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14080
14081 PR libgcc/61152
14082 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14083 * config/arm/arm-cores.def (License): Same.
14084
14085 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14086
14087 * tree.h (decl_comdat_group): Declare.
14088 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14089 * tree.c (decl_comdat_group): Here.
14090
14091 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14092
14093 PR rtl-optimization/61222
14094 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14095 the shift, truncate the PLUS operand to the result mode.
14096
14097 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14098
14099 PR target/61271
14100 * config/i386/i386.c (ix86_rtx_costs)
14101 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14102 Fix condition.
14103
14104 2014-05-26 Martin Jambor <mjambor@suse.cz>
14105
14106 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14107 subreg uses.
14108
14109 2014-05-26 Richard Biener <rguenther@suse.de>
14110
14111 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14112 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14113 Provide specializations.
14114 (wi::int_traits <HOST_WIDE_INT>,
14115 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14116
14117 2014-05-26 Alan Modra <amodra@gmail.com>
14118
14119 PR target/61098
14120 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14121 params and return a bool. Remove dead code. Update comment.
14122 Assert we have a const_int source. Remove bogus code from
14123 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14124 handling of constants > 2G and reg_equal note, from..
14125 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14126 return value. Update comment. If we can, use a new pseudo
14127 for intermediate calculations.
14128 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14129 prototype.
14130 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14131 call to rs6000_emit_set_const in splitter.
14132 (movdi_internal64+2, +3): Likewise.
14133
14134 2014-05-26 Richard Biener <rguenther@suse.de>
14135
14136 * system.h: Define __STDC_FORMAT_MACROS before
14137 including inttypes.h.
14138 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14139 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14140 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14141 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14142 HOST_WIDEST_INT_C): Remove.
14143 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14144 if C99 inttypes.h is not available.
14145 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14146 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14147 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14148 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14149 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14150 (struct output_info): Likewise.
14151 (print_statistics): Adjust.
14152 (dump_bitmap_statistics): Likewise.
14153 * bt-load.c (migrate_btr_defs): Print with PRId64.
14154 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14155 (MAX_SAFE_MULTIPLIER): Adjust.
14156 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14157 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14158 dump_cgraph_node): Likewise.
14159 * final.c (dump_basic_block_info): Likewise.
14160 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14161 * gcov.c (format_gcov): Likewise.
14162 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14163 for calculation.
14164 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14165 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14166 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14167 Use PRId64 for dumping.
14168 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14169 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14170 (add_allocno_hard_regs): Adjust.
14171 * loop-doloop.c (doloop_modify): Print using PRId64.
14172 * loop-iv.c (inverse): Compute in uint64_t.
14173 (determine_max_iter, iv_number_of_iterations): Likewise.
14174 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14175 Print using PRId64.
14176 * lto-streamer-out.c (write_symbol): Use uint64_t.
14177 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14178 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14179 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14180 * modulo-sched.c (const_iteration_count): Use int64_t.
14181 (sms_schedule): Dump using PRId64.
14182 * predict.c (dump_prediction): Likewise.
14183 * pretty-print.h (pp_widest_integer): Remove.
14184 * profile.c (get_working_sets, is_edge_inconsistent,
14185 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14186 * tree-pretty-print.c (pp_double_int): Remove case handling
14187 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14188 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14189 and adjust users.
14190 (pass_optimize_bswap::execute): Remove restriction on hosts.
14191 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14192 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14193 * tree.c (widest_int_cst_value): Remove.
14194 * tree.h (widest_int_cst_value): Likewise.
14195 * value-prof.c (dump_histogram_value): Print using PRId64.
14196 * gengtype.c (main): Also inject int64_t.
14197 * ggc-page.c (struct max_alignment): Use int64_t.
14198 * alloc-pool.c (struct allocation_object_def): Likewise.
14199 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14200 for computation.
14201 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14202 * doc/tm.texi: Regenerated.
14203 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14204 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14205 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14206 mmix_output_register_setting): Use [u]int64_t in prototypes.
14207 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14208 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14209 mmix_output_octa, mmix_output_shifted_value): Adjust.
14210 (mmix_intval): Adjust. Remove unreachable case.
14211 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14212
14213 2014-05-26 Richard Biener <rguenther@suse.de>
14214
14215 * configure.ac: Drop __int64 type check. Insist that we
14216 found uint64_t and int64_t.
14217 * hwint.h (HOST_BITS_PER___INT64): Remove.
14218 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14219 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14220 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14221 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14222 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14223 for dst_q_src_df_rms_cdt.
14224 * configure: Regenerate.
14225 * config.in: Likewise.
14226
14227 2014-05-26 Michael Tautschnig <mt@debian.org>
14228
14229 PR target/61249
14230 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14231 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14232
14233 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14234
14235 PR rtl-optimization/61278
14236 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14237
14238 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14239
14240 PR rtl-optimization/61220
14241 Part of PR rtl-optimization/61225
14242 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14243 insn; skip split_edge for a block with only one successor.
14244
14245 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14246
14247 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14248 for variables.
14249
14250 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14251
14252 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14253 (update_vtable_references): New function.
14254 (function_and_variable_visibility): Rewrite also vtable initializers.
14255 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14256
14257 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14258
14259 * ggc.h (ggc_grow): New function.
14260 * ggc-none.c (ggc_grow): New function.
14261 * ggc-page.c (ggc_grow): Likewise.
14262
14263 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14264
14265 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14266 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14267 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14268 varpool_externally_visible_p, can_replace_by_local_alias,
14269 update_visibility_by_resolution_info, function_and_variable_visibility,
14270 pass_data_ipa_function_and_variable_visibility,
14271 make_pass_ipa_function_and_variable_visibility,
14272 whole_program_function_and_variable_visibility,
14273 pass_data_ipa_whole_program_visibility,
14274 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14275 * cgraph.h (cgraph_local_node_p): Declare.
14276 * ipa-visibility.c: New file.
14277 * Makefile.in (OBJS): Add ipa-visiblity.o
14278
14279 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14280
14281 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14282 that var decl is available.
14283
14284 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14285
14286 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14287 symtab_node pointer.
14288 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14289 (find_decls_types_r): Do not walk COMDAT_GROUP.
14290 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14291 * varasm.c (make_decl_one_only): Use set_comdat_group;
14292 create node if needed.
14293 * ipa-inline-transform.c (save_inline_function_body): Update
14294 way we decl->symtab mapping.
14295 * symtab.c (symtab_hash, hash_node, eq_node
14296 symtab_insert_node_to_hashtable): Remove.
14297 (symtab_register_node): Update.
14298 (symtab_unregister_node): Update.
14299 (symtab_get_node): Reimplement as inline function.
14300 (symtab_add_to_same_comdat_group): Update.
14301 (symtab_dissolve_same_comdat_group_list): Update.
14302 (dump_symtab_base): Update.
14303 (verify_symtab_base): Update.
14304 (symtab_make_decl_local): Update.
14305 (fixup_same_cpp_alias_visibility): Update.
14306 (symtab_nonoverwritable_alias): Update.
14307 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14308 * ipa.c (update_visibility_by_resolution_info): UPdate.
14309 * bb-reorder.c: Include cgraph.h
14310 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14311 with comdat groups.
14312 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14313 * cgraph.c (cgraph_get_create_node): Update.
14314 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14315 and comdat_group_.
14316 (symtab_get_node): Make inline.
14317 (symtab_insert_node_to_hashtable): Remove.
14318 (symtab_can_be_discarded): Update.
14319 (decl_comdat_group): New function.
14320 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14321 Update.
14322 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14323 comdat group name.
14324 (read_comdat_group): New function.
14325 (input_node, input_varpool_node): Use it.
14326 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14327 comdat groups.
14328 * mips.c (mips_start_unique_function): Likewise.
14329 (ix86_code_end): Likewise.
14330 (rs6000_code_end): Likweise.
14331 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14332
14333 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14334
14335 * gengtype-state.c (fatal_reading_state): Bring offline.
14336 * optabs.c (widening_optab_handler): Bring offline.
14337 * optabs.h (widening_optab_handler): Likewise.
14338 * final.c (get_attr_length_1): Likewise.
14339
14340 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14341
14342 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14343
14344 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14345
14346 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14347 (ppc440-compare): Include shift with dot.
14348 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14349 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14350 without dot.
14351 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14352 without dot.
14353 (e6500_sfx2): Include it.
14354 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14355 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14356 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14357 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14358 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14359 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14360 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14361 *lshiftrt_internal1le, *lshiftrt_internal1be,
14362 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14363 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14364 *rotldi3_internal10le, *rotldi3_internal10be,
14365 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14366 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14367 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14368 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14369 define_insns): Use type "shift" in the appropriate alternatives.
14370
14371 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14372
14373 * config/rs6000/rs6000.md (type): Add "logical". Delete
14374 "fast_compare".
14375 (dot): Adjust comment.
14376 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14377 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14378 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14379 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14380 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14381 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14382 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14383 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14384
14385 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14386 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14387 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14388 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14389 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14390 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14391 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14392 * config/rs6000/8540.md (ppc8540_su): Adjust.
14393 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14394 cell-cmp-microcoded): Adjust.
14395 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14396 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14397 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14398 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14399 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14400 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14401 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14402 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14403 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14404 Adjust.
14405 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14406 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14407 Adjust. Adjust comment.
14408 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14409 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14410
14411 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14412
14413 * config/rs6000/rs6000.md (type): Add "add".
14414 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14415 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14416 define_insns): Use it.
14417 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14418
14419 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14420 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14421 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14422 * config/rs6000/601.md (ppc601-integer): Adjust.
14423 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14424 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14425 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14426 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14427 * config/rs6000/8540.md (ppc8540_su): Adjust.
14428 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14429 cell-cmp-microcoded): Adjust.
14430 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14431 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14432 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14433 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14434 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14435 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14436 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14437 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14438 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14439 Adjust.
14440 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14441 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14442 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14443 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14444
14445 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14446
14447 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14448 "delayed_compare", "var_delayed_compare".
14449 (var_shift): New attribute.
14450 (cell_micro): Adjust.
14451 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14452 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14453 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14454 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14455 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14456 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14457 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14458 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14459 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14460 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14461 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14462 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14463 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14464 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14465 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14466 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14467 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14468 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14469 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14470 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14471 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14472 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14473 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14474 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14475 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14476
14477 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14478 * config/rs6000/440.md (ppc440-integer): Adjust.
14479 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14480 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14481 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14482 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14483 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14484 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14485 * config/rs6000/8540.md (ppc8540_su): Adjust.
14486 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14487 cell-cmp-microcoded): Adjust.
14488 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14489 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14490 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14491 e500mc64_delayed): Adjust.
14492 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14493 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14494 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14495 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14496 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14497 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14498 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14499 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14500 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14501 Adjust comment.
14502 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14503 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14504
14505 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14506
14507 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14508 (bits): New mode_attr.
14509 (idiv_ldiv): Delete mode_attr.
14510 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14511 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14512 rs6000_adjust_priority, is_nonpipeline_insn,
14513 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14514
14515 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14516 * config/rs6000/440.md (ppc440-idiv): Adjust.
14517 * config/rs6000/476.md (ppc476-idiv): Adjust.
14518 * config/rs6000/601.md (ppc601-idiv): Adjust.
14519 * config/rs6000/603.md (ppc603-idiv): Adjust.
14520 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14521 ppc620-ldiv): Adjust.
14522 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14523 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14524 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14525 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14526 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14527 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14528 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14529 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14530 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14531 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14532 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14533 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14534 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14535 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14536 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14537 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14538 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14539 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14540
14541 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14542
14543 * config/rs6000/rs6000.md (type): Delete "insert_word",
14544 "insert_dword". Add "insert".
14545 (size): Update comment.
14546 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14547 insn_must_be_first_in_group): Adjust.
14548 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14549 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14550 *insvsi_internal6, insvdi_internal): Adjust.
14551
14552 * config/rs6000/40x.md (ppc403-integer): Adjust.
14553 * config/rs6000/440.md (ppc440-integer): Adjust.
14554 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14555 * config/rs6000/601.md (ppc601-integer): Adjust.
14556 * config/rs6000/603.md (ppc603-integer): Adjust.
14557 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14558 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14559 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14560 * config/rs6000/8540.md (ppc8540_su): Adjust.
14561 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14562 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14563 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14564 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14565 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14566 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14567 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14568 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14569 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14570 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14571 * config/rs6000/power7.md (power7-integer): Adjust.
14572 * config/rs6000/power8.md (power8-1cyc): Adjust.
14573 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14574 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14575
14576 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14577
14578 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14579 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14580 (size): New attribute.
14581 (dot): New attribute.
14582 (cell_micro): Adjust.
14583 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14584 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14585 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14586 umuldi3_highpart): Adjust.
14587 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14588 rs6000_adjust_priority, is_nonpipeline_insn,
14589 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14590
14591 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14592 ppc405-imul3): Adjust.
14593 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14594 * config/rs6000/476.md (ppc476-imul): Adjust.
14595 * config/rs6000/601.md (ppc601-imul): Adjust.
14596 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14597 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14598 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14599 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14600 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14601 Adjust.
14602 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14603 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14604 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14605 cell-imul): Adjust.
14606 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14607 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14608 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14609 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14610 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14611 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14612 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14613 power4-lmul, power4-imul, power4-imul3): Adjust.
14614 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14615 power5-lmul, power5-imul, power5-imul3): Adjust.
14616 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14617 power6-lmul, power6-imul, power6-imul3): Adjust.
14618 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14619 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14620
14621 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14622 rs64a-lmul): Adjust.
14623 * config/rs6000/titan.md (titan_imul): Adjust.
14624
14625 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14626
14627 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14628 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14629 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14630 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14631 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14632 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14633 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14634 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14635 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14636 * config/rs6000/titan.md: Delete nonsensical comment.
14637 (titan_imul): Add type imul3.
14638 (titan_mulhw): Remove type imul3; add type halfmul.
14639
14640 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14641
14642 * config/rs6000/rs6000.md (type): Reorder, reformat.
14643
14644 2014-05-23 Martin Jambor <mjambor@suse.cz>
14645
14646 PR tree-optimization/53787
14647 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14648 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14649 analysis_done, update all uses.
14650 * ipa-prop.c: Include domwalk.h
14651 (param_analysis_info): Removed.
14652 (param_aa_status): New type.
14653 (ipa_bb_info): Likewise.
14654 (func_body_info): Likewise.
14655 (ipa_get_bb_info): New function.
14656 (aa_overwalked): Likewise.
14657 (find_dominating_aa_status): Likewise.
14658 (parm_bb_aa_status_for_bb): Likewise.
14659 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14660 (load_from_unmodified_param): Accept func_body_info as a parameter
14661 instead of parms_ainfo.
14662 (parm_ref_data_preserved_p): Changed to use new param AA info.
14663 (parm_ref_data_pass_through_p): Likewise.
14664 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14665 (compute_complex_assign_jump_func): Changed to use new param AA info.
14666 (compute_complex_ancestor_jump_func): Likewise.
14667 (ipa_compute_jump_functions_for_edge): Likewise.
14668 (ipa_compute_jump_functions): Removed.
14669 (ipa_compute_jump_functions_for_bb): New function.
14670 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14671 declarations down.
14672 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14673 and info, moved variable declarations down.
14674 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14675 node and info.
14676 (ipa_analyze_stmt_uses): Likewise.
14677 (ipa_analyze_params_uses): Removed.
14678 (ipa_analyze_params_uses_in_bb): New function.
14679 (ipa_analyze_controlled_uses): Likewise.
14680 (free_ipa_bb_info): Likewise.
14681 (analysis_dom_walker): New class.
14682 (ipa_analyze_node): Handle node-specific forbidden analysis,
14683 initialize and free func_body_info, use dominator walker.
14684 (ipcp_modif_dom_walker): New class.
14685 (ipcp_transform_function): Create and free func_body_info, use
14686 ipcp_modif_dom_walker, moved a lot of functionality there.
14687
14688 2014-05-23 Marek Polacek <polacek@redhat.com>
14689 Jakub Jelinek <jakub@redhat.com>
14690
14691 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14692 * gcc.c (sanitize_spec_function): Likewise.
14693 * convert.c (convert_to_integer): Include "ubsan.h". Add
14694 floating-point to integer instrumentation.
14695 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14696 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14697 SANITIZE_NONDEFAULT.
14698 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14699 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14700 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14701 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14702 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14703 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14704 float/double/long double.
14705 (ubsan_instrument_float_cast): New function.
14706 * ubsan.h (ubsan_instrument_float_cast): Declare.
14707
14708 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14709
14710 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14711 predicate.
14712 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14713 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14714 Adjust for tailcalling through registers.
14715 * config/aarch64/aarch64.h (enum reg_class): New caller save
14716 register class.
14717 (REG_CLASS_NAMES): Likewise.
14718 (REG_CLASS_CONTENTS): Likewise.
14719 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14720 Allow tailcalling without decls.
14721
14722 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14723
14724 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14725 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14726
14727 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14728 gsi, and variables v_* to v*.
14729
14730 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14731
14732 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14733
14734 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14735
14736 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14737 * omp-low.c: Update accordingly.
14738
14739 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14740 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14741 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14742 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14743 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14744 GF_OMP_TARGET_KIND_UPDATE.
14745
14746 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14747 Explicitly enumerate the expected region types.
14748
14749 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14750
14751 PR other/56955
14752 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14753 documentation; the old documentation didn't clearly state the
14754 constraints on the contents of the pointed-to storage.
14755
14756 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14757
14758 Fix bootstrap error on ia64
14759 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14760 Return default value.
14761
14762 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14763
14764 PR tree-optimization/54733
14765 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14766 (CMPNOP): Define.
14767 (find_bswap_or_nop_load): New.
14768 (find_bswap_1): Renamed to ...
14769 (find_bswap_or_nop_1): This. Also add support for memory source.
14770 (find_bswap): Renamed to ...
14771 (find_bswap_or_nop): This. Also add support for memory source and
14772 detection of bitwise operations equivalent to load in target
14773 endianness.
14774 (execute_optimize_bswap): Likewise. Also move its leading comment back
14775 in place and split statement transformation into ...
14776 (bswap_replace): This.
14777
14778 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14779
14780 PR rtl-optimization/61215
14781 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14782 simplify_gen_subreg until final substitution.
14783
14784 2014-05-23 Alan Modra <amodra@gmail.com>
14785
14786 PR target/61231
14787 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14788 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14789 Use "Y" constraint rather than "m".
14790
14791 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14792
14793 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14794 define.
14795 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14796 New function declaration.
14797 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14798 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14799 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14800 (aarch64_init_builtins) : Initialize builtins
14801 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14802 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14803 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14804 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14805 and __builtins_aarch64_set_fpsr.
14806 (aarch64_atomic_assign_expand_fenv): New function.
14807 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14808 (get_fpcr) : Likewise.
14809 (set_fpsr) : Likewise.
14810 (get_fpsr) : Likewise.
14811 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14812 and UNSPECV_SET_FPSR.
14813 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14814 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14815 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14816
14817 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14818
14819 PR rtl-optimization/60969
14820 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14821 constraints. Set up mem cost for NO_REGS case.
14822
14823 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14824
14825 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14826
14827 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14828
14829 * config/darwin.c: Include "lto-section-names.h".
14830 (LTO_SEGMENT_NAME): Don't define.
14831 * config/i386/winnt.c: Include "lto-section-names.h".
14832 * lto-streamer.c: Include "lto-section-names.h".
14833 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14834 * lto-wrapper.c: Include "lto-section-names.h".
14835 (LTO_SECTION_NAME_PREFIX): Don't define.
14836 * lto-section-names.h: New file.
14837 * cgraphunit.c: Include "lto-section-names.h".
14838
14839 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14840
14841 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14842
14843 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14844
14845 PR target/61208
14846 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14847
14848 2014-05-22 Nick Clifton <nickc@redhat.com>
14849
14850 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14851
14852 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14853
14854 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14855 -> (T)A transformation to integer types.
14856
14857 2014-05-22 Teresa Johnson <tejohnson@google.com>
14858
14859 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14860 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14861 (gcov_rewrite): Use gcov_nonruntime_assert.
14862 (gcov_open): Ditto.
14863 (gcov_write_words): Ditto.
14864 (gcov_write_length): Ditto.
14865 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14866 gcc_assert from IN_LIBGCOV code.
14867 (gcov_read_summary): Use gcov_error to flag profile corruption.
14868 (gcov_sync): Use gcov_nonruntime_assert.
14869 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14870 (gcov_histo_index): Use gcov_nonruntime_assert.
14871 (static void gcov_histogram_merge): Ditto.
14872 (compute_working_sets): Ditto.
14873 * gcov-io.h (gcov_nonruntime_assert): Define.
14874 (gcov_error): Define for !IN_LIBGCOV
14875
14876 2014-05-22 Richard Biener <rguenther@suse.de>
14877
14878 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14879 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14880 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14881 and deallocation site.
14882 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14883 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14884 passing through the incoming points-to set.
14885 (handle_lhs_call): Use flags argument instead of recomputing it.
14886 (find_func_aliases_for_call): Call handle_lhs_call with proper
14887 call return flags.
14888
14889 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14890
14891 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14892 all padding bits in REAL_VALUE_TYPE are cleared.
14893
14894 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14895
14896 Cleanup and improve multipass_dfa_lookahead_guard
14897 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14898 (core2i7_first_cycle_multipass_begin,)
14899 (core2i7_first_cycle_multipass_issue,)
14900 (core2i7_first_cycle_multipass_backtrack): Update signature.
14901 * config/ia64/ia64.c
14902 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14903 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14904 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14905 hook definition.
14906 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14907 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14908 values.
14909 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14910 return values.
14911 * doc/tm.texi: Regenerate.
14912 * doc/tm.texi.in
14913 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14914 * haifa-sched.c (ready_try): Make signed to allow negative values.
14915 (rebug_ready_list_1): Update.
14916 (choose_ready): Simplify.
14917 (sched_extend_ready_list): Update.
14918
14919 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14920
14921 Remove IA64 speculation tweaking flags
14922 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14923 speculation tuning flags.
14924 (msched-prefer-non-data-spec-insns,)
14925 (msched-prefer-non-control-spec-insns): Obsolete options.
14926 * haifa-sched.c (choose_ready): Remove handling of
14927 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14928 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14929 and PREFER_NON_DATA_SPEC.
14930 * sel-sched.c (process_spec_exprs): Remove handling of
14931 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14932
14933 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14934
14935 Improve scheduling debug output
14936 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14937 (advance_one_cycle): Update.
14938 (schedule_insn, queue_to_ready): Add debug printouts.
14939 (debug_ready_list_1): New static function.
14940 (debug_ready_list): Update.
14941 (max_issue): Add debug printouts.
14942 (dump_insn_stream): New static function.
14943 (schedule_block): Use it. Also better indent printouts.
14944
14945 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14946
14947 Fix sched_insn debug counter
14948 * haifa-sched.c (schedule_insn): Update.
14949 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14950 (save_backtrack_point, restore_backtrack_point): Update.
14951 (first_nonscheduled_insn): New static function.
14952 (queue_to_ready, choose_ready): Use it.
14953 (schedule_block): Init nonscheduled_insns_begin.
14954 (sched_emit_insn): Update.
14955
14956
14957 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14958
14959 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14960 to GENERAL_REGS.
14961 (aarch64_secondary_reload) : LikeWise.
14962 (aarch64_class_max_nregs) : Remove CORE_REGS.
14963 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14964 (REG_CLASS_NAMES) : Likewise.
14965 (REG_CLASS_CONTENTS) : LikeWise.
14966 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14967
14968 2014-05-21 Guozhi Wei <carrot@google.com>
14969
14970 PR target/61202
14971 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14972 constraint.
14973 (vqdmulhq_n_s16): Likewise.
14974
14975 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14976
14977 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14978
14979 2014-05-21 Marek Polacek <polacek@redhat.com>
14980
14981 PR sanitizer/61272
14982 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14983
14984 2014-05-21 Martin Jambor <mjambor@suse.cz>
14985
14986 * doc/invoke.texi (Optimize Options): Document parameters
14987 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14988 ipa-cp-array-index-hint-bonus.
14989
14990 2014-05-21 Mark Wielaard <mjw@redhat.com>
14991
14992 PR debug/16063
14993 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14994 version >= 3 or not strict DWARF.
14995 * langhooks.h (struct lang_hooks_for_types): Add
14996 enum_underlying_base_type.
14997 * langhooks.c (lhd_enum_underlying_base_type): New function.
14998 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14999 enum_underlying_base_type.
15000 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15001 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15002 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15003
15004 2014-05-21 Richard Biener <rguenther@suse.de>
15005
15006 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15007
15008 2014-05-21 John Marino <gnugcc@marino.st>
15009
15010 * config.gcc (*-*-dragonfly*): New target.
15011 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15012 * configure: Regenerate.
15013 * config/dragonfly-stdint.h: New.
15014 * config/dragonfly.h: New.
15015 * config/dragonfly.opt: New.
15016 * config/i386/dragonfly.h: New.
15017 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15018
15019 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15020
15021 * tree.def (VOID_CST): New.
15022 * tree-core.h (TI_VOID): New.
15023 * tree.h (void_node): New.
15024 * tree.c (tree_node_structure_for_code, tree_code_size)
15025 (iterative_hash_expr): Handle VOID_CST.
15026 (build_common_tree_nodes): Initialize void_node.
15027
15028 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15029
15030 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15031 functions.
15032 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15033
15034 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15035 more places.
15036
15037 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15038 flag_reorder_blocks_and_partition.
15039 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15040
15041 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15042
15043 PR target/54236
15044 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15045 constraints.
15046 (*addc_r_t): Add new insn_and_split.
15047
15048 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15049
15050 PR middle-end/61252
15051 * omp-low.c (handle_simd_reference): New function.
15052 (lower_rec_input_clauses): Use it. Defer adding reference
15053 initialization even for reduction without placeholder if in simd,
15054 handle it properly later on.
15055
15056 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15057
15058 PR tree-optimization/60899
15059 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15060 assume all static symbols will have definition wile parsing and
15061 check the do have definition later in compilation; check that
15062 variable referring symbol will be output before concluding that
15063 reference is safe; be conservative for referring local statics;
15064 be more precise about when comdat is output in other partition.
15065
15066 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15067
15068 PR bootstrap/60984
15069 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15070 parameter.
15071 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15072 (ipa_inline): Loop inline_to_all_callers until no more aliases
15073 are removed.
15074
15075 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15076
15077 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15078 set writeonly flag only for vars actually written to.
15079
15080 2014-05-20 Dehao Chen <dehao@google.com>
15081
15082 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15083 and callee count to get clone count.
15084 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15085 count in copy_body.
15086
15087 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15088
15089 PR rtl-optimization/61243
15090 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15091
15092 2014-05-20 Xinliang David Li <davidxl@google.com>
15093
15094 * cgraphunit.c (walk_polymorphic_call_targets): Add
15095 dbgcnt and fopt-info support.
15096 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15097 * ipa-devirt.c (ipa_devirt): Ditto.
15098 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15099 * ipa.c (walk_polymorphic_call_targets): Ditto.
15100 * gimple-fold.c (fold_gimple_assign): Ditto.
15101 (gimple_fold_call): Ditto.
15102 * dbgcnt.def: New counter.
15103
15104 2014-05-20 DJ Delorie <dj@redhat.com>
15105
15106 * config/msp430/msp430.md (split): Don't allow subregs when
15107 splitting SImode adds.
15108 (andneghi): Fix subtraction logic.
15109 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15110
15111 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15112
15113 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15114 symbols.
15115 * except.c (switch_to_exception_section, resolve_unique_section,
15116 get_named_text_section, default_function_rodata_section,
15117 align_variable, get_block_for_decl, default_section_type_flags):
15118 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15119 * symtab.c (symtab_add_to_same_comdat_group,
15120 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15121 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15122 Likewise.
15123 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15124 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15125 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15126 (c6x_function_in_section_p): Likewise.
15127 * config/darwin.c (machopic_select_section): Likewise.
15128 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15129 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15130 * config/mep/mep.c (mep_select_section): LIkewise.
15131 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15132
15133 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15134
15135 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15136 EH region of calls to pure functions that can throw an exception.
15137 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15138 (copy_reference_ops_from_call): Also copy the EH region of the call if
15139 it can throw an exception.
15140
15141 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15142
15143 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15144 nested VEC_SELECTs that are inverses of each other.
15145
15146 2014-05-20 Richard Biener <rguenther@suse.de>
15147
15148 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15149 (extract_and_process_scc_for_name): not here.
15150 (cond_dom_walker::before_dom_children): Only process
15151 stmts that end the BB in interesting ways.
15152 (run_scc_vn): Mark param uses as visited.
15153
15154 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15155
15156 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15157 arm_restrict_it.
15158
15159 2014-05-20 Nick Clifton <nickc@redhat.com>
15160
15161 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15162 (msp430_gimplify_va_arg_expr): New function.
15163 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15164
15165 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15166 operand 0 in order to prevent confusion about the number of
15167 registers involved.
15168
15169 2014-05-20 Richard Biener <rguenther@suse.de>
15170
15171 PR tree-optimization/61221
15172 * tree-ssa-pre.c (el_to_update): Remove.
15173 (eliminate_dom_walker::before_dom_children): Handle released
15174 VDEFs by value-numbering them to the associated VUSE. Update
15175 stmt immediately for substituted call address.
15176 (eliminate): Remove delayed stmt updating code.
15177 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15178 possibly late re-numbered vuses.
15179 (vn_reference_lookup_2): Adjust.
15180 (vn_reference_lookup_pieces): Likewise.
15181 (vn_reference_lookup): Likewise.
15182
15183 2014-05-20 Richard Biener <rguenther@suse.de>
15184
15185 * config.gcc: Remove need_64bit_hwint.
15186 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15187 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15188 it to be true.
15189 * config.in: Regenerate.
15190 * configure: Likewise.
15191
15192 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15193
15194 * doc/extend.texi: Create Label Attributes section,
15195 move all label attributes into it and reference it.
15196
15197 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15198
15199 * arm.c (thumb1_reorg): When scanning backwards skip anything
15200 that's not a proper insn.
15201
15202 2014-05-19 Richard Biener <rguenther@suse.de>
15203
15204 PR tree-optimization/61221
15205 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15206 Do nothing for unreachable blocks.
15207 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15208 Improve unreachability detection.
15209
15210 2014-05-19 Richard Biener <rguenther@suse.de>
15211
15212 PR tree-optimization/61209
15213 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15214
15215 2014-05-19 Nick Clifton <nickc@redhat.com>
15216
15217 * except.c (init_eh): Fix computation of builtin setjmp buffer
15218 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15219
15220 2014-05-19 Richard Biener <rguenther@suse.de>
15221
15222 PR tree-optimization/61184
15223 * tree-vrp.c (is_negative_overflow_infinity): Use
15224 TREE_OVERFLOW_P and do that check first.
15225 (is_positive_overflow_infinity): Likewise.
15226 (is_overflow_infinity): Likewise.
15227 (vrp_operand_equal_p): Properly treat operands with
15228 differing overflow as not equal.
15229
15230 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15231
15232 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15233 shift simplification where it was intended.
15234
15235 2014-05-19 Christian Bruel <christian.bruel@st.com>
15236
15237 PR target/61195
15238 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15239
15240 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15241
15242 PR target/61084
15243 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15244 than wide_int.
15245
15246 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15247
15248 * reg-notes.def (CROSSING_JUMP): Likewise.
15249 * rtl.h (rtx_def): Update comment for jump flag.
15250 (CROSSING_JUMP_P): Define.
15251 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15252 of a REG_CROSSING_JUMP note.
15253 * cfghooks.c (tidy_fallthru_edges): Likewise.
15254 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15255 * emit-rtl.c (try_split): Likewise.
15256 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15257 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15258 * jump.c (redirect_jump_2): Likewise.
15259 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15260 (relax_delay_slots): Likewise.
15261 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15262 (bbit_di): Likewise.
15263 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15264 * config/sh/sh.md (jump_compact): Likewise.
15265 * bb-reorder.c (rotate_loop): Likewise.
15266 (pass_duplicate_computed_gotos::execute): Likewise.
15267 (add_reg_crossing_jump_notes): Rename to...
15268 (update_crossing_jump_flags): ...this.
15269 (pass_partition_blocks::execute): Update accordingly.
15270
15271 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15272
15273 * tree.h: Remove extraneous template <>.
15274
15275 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15276
15277 * ipa.c (symtab_remove_unreachable_nodes): Remove
15278 symbol from comdat group if its body was eliminated.
15279 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15280 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15281 (symtab_unregister_node): ... this one.
15282 (verify_symtab_base): More strict checking of comdats.
15283 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15284
15285 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15286
15287 * tree-pass.h (make_pass_ipa_comdats): New pass.
15288 * timevar.def (TV_IPA_COMDATS): New timevar.
15289 * passes.def (pass_ipa_comdats): Add.
15290 * Makefile.in (OBJS): Add ipa-comdats.o
15291 * ipa-comdats.c: New file.
15292
15293 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15294
15295 * ipa.c (update_visibility_by_resolution_info): New function.
15296 (function_and_variable_visibility): Use it.
15297
15298 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15299
15300 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15301 New functions.
15302 (FOR_EACH_DEFINED_SYMBOL): New macro.
15303 (varpool_first_static_initializer, varpool_next_static_initializer,
15304 varpool_first_defined_variable, varpool_next_defined_variable):
15305 Fix comments.
15306 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15307
15308 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15309
15310 * ggc-page.c (ggc_handle_finalizers): Add comment.
15311
15312 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15313
15314 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15315 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15316 (ggc_internal_cleared_alloc): Likewise.
15317 * ggc-page.c (finalizer): New class.
15318 (vec_finalizer): Likewise.
15319 (globals::finalizers): New member.
15320 (globals::vec_finalizers): Likewise.
15321 (ggc_internal_alloc): Record the finalizer if any for the block being
15322 allocated.
15323 (ggc_handle_finalizers): New function.
15324 (ggc_collect): Call ggc_handle_finalizers.
15325 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15326 finalizer.
15327 (ggc_internal_cleared_alloc): Likewise.
15328 (finalize): New function.
15329 (need_finalization_p): Likewise.
15330 (ggc_alloc): Install the type's destructor as the finalizer if it
15331 might do something.
15332 (ggc_cleared_alloc): Likewise.
15333 (ggc_vec_alloc): Likewise.
15334 (ggc_cleared_vec_alloc): Likewise.
15335
15336 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15337
15338 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15339
15340 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15341
15342 * alias.c (record_alias_subset): Adjust.
15343 * bitmap.c (bitmap_element_allocate): Likewise.
15344 (bitmap_gc_alloc_stat): Likewise.
15345 * cfg.c (init_flow): Likewise.
15346 (alloc_block): Likewise.
15347 (unchecked_make_edge): Likewise.
15348 * cfgloop.c (alloc_loop): Likewise.
15349 (flow_loops_find): Likewise.
15350 (rescan_loop_exit): Likewise.
15351 * cfgrtl.c (init_rtl_bb_info): Likewise.
15352 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15353 (cgraph_allocate_node): Likewise.
15354 (cgraph_create_edge_1): Likewise.
15355 (cgraph_allocate_init_indirect_info): Likewise.
15356 * cgraphclones.c (cgraph_clone_edge): Likewise.
15357 * cgraphunit.c (add_asm_node): Likewise.
15358 (init_lowered_empty_function): Likewise.
15359 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15360 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15361 (alpha_use_linkage): Likewise.
15362 * config/arc/arc.c (arc_init_machine_status): Likewise.
15363 * config/arm/arm.c (arm_init_machine_status): Likewise.
15364 * config/avr/avr.c (avr_init_machine_status): Likewise.
15365 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15366 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15367 * config/cris/cris.c (cris_init_machine_status): Likewise.
15368 * config/darwin.c (machopic_indirection_name): Likewise.
15369 (darwin_build_constant_cfstring): Likewise.
15370 (darwin_enter_string_into_cfstring_table): Likewise.
15371 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15372 * config/frv/frv.c (frv_init_machine_status): Likewise.
15373 * config/i386/i386.c (get_dllimport_decl): Likewise.
15374 (ix86_init_machine_status): Likewise.
15375 (assign_386_stack_local): Likewise.
15376 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15377 (i386_pe_maybe_record_exported_symbol): Likewise.
15378 (i386_pe_record_stub): Likewise.
15379 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15380 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15381 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15382 (m32c_note_pragma_address): Likewise.
15383 * config/mep/mep.c (mep_init_machine_status): Likewise.
15384 (mep_note_pragma_flag): Likewise.
15385 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15386 (mips16_local_alias): Likewise.
15387 (mips_init_machine_status): Likewise.
15388 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15389 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15390 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15391 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15392 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15393 * config/pa/pa.c (pa_init_machine_status): Likewise.
15394 (pa_get_deferred_plabel): Likewise.
15395 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15396 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15397 (rs6000_init_machine_status): Likewise.
15398 (output_toc): Likewise.
15399 * config/s390/s390.c (s390_init_machine_status): Likewise.
15400 * config/score/score.c (score_output_external): Likewise.
15401 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15402 * config/spu/spu.c (spu_init_machine_status): Likewise.
15403 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15404 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15405 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15406 * coverage.c (coverage_end_function): Likewise.
15407 * dbxout.c (dbxout_init): Likewise.
15408 * doc/gty.texi: Don't mention variable_size attribute.
15409 * dwarf2cfi.c (new_cfi): Adjust.
15410 (new_cfi_row): Likewise.
15411 (copy_cfi_row): Likewise.
15412 (create_cie_data): Likewise.
15413 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15414 (new_loc_descr): Likewise.
15415 (find_AT_string_in_table): Likewise.
15416 (add_addr_table_entry): Likewise.
15417 (new_die): Likewise.
15418 (add_var_loc_to_decl): Likewise.
15419 (clone_die): Likewise.
15420 (clone_as_declaration): Likewise.
15421 (break_out_comdat_types): Likewise.
15422 (new_loc_list): Likewise.
15423 (add_loc_descr_to_each): Likewise.
15424 (add_location_or_const_value_attribute): Likewise.
15425 (add_linkage_name): Likewise.
15426 (lookup_filename): Likewise.
15427 (dwarf2out_var_location): Likewise.
15428 (new_line_info_table): Likewise.
15429 (dwarf2out_init): Likewise.
15430 (mem_loc_descriptor): Likewise.
15431 (loc_descriptor): Likewise.
15432 (add_const_value_attribute): Likewise.
15433 (tree_add_const_value_attribute): Likewise.
15434 (comp_dir_string): Likewise.
15435 (dwarf2out_vms_debug_main_pointer): Likewise.
15436 (string_cst_pool_decl): Likewise.
15437 * emit-rtl.c (set_mem_attrs): Likewise.
15438 (get_reg_attrs): Likewise.
15439 (start_sequence): Likewise.
15440 (init_emit): Likewise.
15441 (init_emit_regs): Likewise.
15442 * except.c (init_eh_for_function): Likewise.
15443 (gen_eh_region): Likewise.
15444 (gen_eh_region_catch): Likewise.
15445 (gen_eh_landing_pad): Likewise.
15446 (add_call_site): Likewise.
15447 * function.c (add_frame_space): Likewise.
15448 (insert_temp_slot_address): Likewise.
15449 (assign_stack_temp_for_type): Likewise.
15450 (get_hard_reg_initial_val): Likewise.
15451 (allocate_struct_function): Likewise.
15452 (prepare_function_start): Likewise.
15453 (types_used_by_var_decl_insert): Likewise.
15454 * gengtype.c (variable_size_p): Remove function.
15455 (enum alloc_quantity): Remove enum.
15456 (write_typed_alloc_def): Remove function.
15457 (write_typed_struct_alloc_def): Likewise.
15458 (write_typed_typedef_alloc_def): Likewise.
15459 (write_typed_alloc_defns): Likewise.
15460 (main): Adjust.
15461 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15462 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15463 * ggc.h (ggc_alloc): new function.
15464 (ggc_cleared_alloc): Likewise.
15465 (ggc_vec_alloc): Template on type of vector element, and remove
15466 element size argument.
15467 (ggc_cleared_vec_alloc): Likewise.
15468 * gimple.c (gimple_build_omp_for): Adjust.
15469 (gimple_copy): Likewise.
15470 * ipa-cp.c (get_replacement_map): Likewise.
15471 (find_aggregate_values_for_callers_subset): Likewise.
15472 (known_aggs_to_agg_replacement_list): Likewise.
15473 * ipa-devirt.c (get_odr_type): Likewise.
15474 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15475 (read_agg_replacement_chain): Likewise.
15476 * loop-iv.c (get_simple_loop_desc): Likewise.
15477 * lto-cgraph.c (input_node_opt_summary): Likewise.
15478 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15479 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15480 (input_eh_region): Likewise.
15481 (input_eh_lp): Likewise.
15482 (input_cfg): Likewise.
15483 * optabs.c (set_optab_libfunc): Likewise.
15484 (init_tree_optimization_optabs): Likewise.
15485 (set_conv_libfunc): Likewise.
15486 * passes.c (do_per_function_toporder): Likewise.
15487 * rtl.h: Don't use variable_size gty attribute.
15488 * sese.c (if_region_set_false_region): Adjust.
15489 * stringpool.c (gt_pch_save_stringpool): Likewise.
15490 * target-globals.c (save_target_globals): Likewise.
15491 * toplev.c (general_init): Likewise.
15492 * trans-mem.c (record_tm_replacement): Likewise.
15493 (split_bb_make_tm_edge): Likewise.
15494 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15495 * tree-data-ref.h (lambda_vector_new): Likewise.
15496 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15497 * tree-iterator.c (tsi_link_before): Likewise.
15498 (tsi_link_after): Likewise.
15499 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15500 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15501 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15502 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15503 * tree-ssa.c (init_tree_ssa): Adjust.
15504 * tree-ssanames.c (set_range_info): Likewise.
15505 (get_ptr_info): Likewise.
15506 (duplicate_ssa_name_ptr_info): Likewise.
15507 (duplicate_ssa_name_range_info): Likewise.
15508 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15509 (unpack_ts_fixed_cst_value_fields): Likewise.
15510 * tree.c (build_fixed): Likewise.
15511 (build_real): Likewise.
15512 (build_string): Likewise.
15513 (decl_priority_info): Likewise.
15514 (decl_debug_expr_insert): Likewise.
15515 (decl_value_expr_insert): Likewise.
15516 (decl_debug_args_insert): Likewise.
15517 (type_hash_add): Likewise.
15518 (build_omp_clause): Likewise.
15519 * ubsan.c (decl_for_type_insert): Likewise.
15520 * varasm.c (get_unnamed_section): Likewise.
15521 (get_noswitch_section): Likewise.
15522 (get_section): Likewise.
15523 (get_block_for_section): Likewise.
15524 (create_block_symbol): Likewise.
15525 (build_constant_desc): Likewise.
15526 (create_constant_pool): Likewise.
15527 (force_const_mem): Likewise.
15528 (record_tm_clone_pair): Likewise.
15529 * varpool.c (varpool_create_empty_node): Likewise.
15530
15531 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15532
15533 * dwarf2out.c (tree_add_const_value_attribute): Call
15534 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15535 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15536 instead of ggc_internal_<x>alloc_stat.
15537 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15538 (ggc_realloc): Likewise.
15539 * ggc-none.c (ggc_internal_alloc): Likewise.
15540 (ggc_internal_cleared_alloc): Likewise.
15541 * ggc-page.c: Likewise.
15542 * ggc.h (ggc_internal_alloc_stat): Likewise.
15543 (ggc_internal_alloc): Remove macro.
15544 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15545 (ggc_internal_cleared_alloc): Remove macro.
15546 (GGC_RESIZEVEC): Adjust.
15547 (ggc_resizevar): Remove macro.
15548 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15549 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15550 (ggc_internal_vec_cleared_alloc): Remove macro.
15551 (ggc_alloc_atomic_stat): Drop _stat suffix.
15552 (ggc_alloc_atomic): Remove macro.
15553 (ggc_alloc_cleared_atomic): Remove macro.
15554 (ggc_alloc_string_stat): Drop _stat suffix.
15555 (ggc_alloc_string): Remove macro.
15556 (ggc_alloc_rtx_def_stat): Adjust.
15557 (ggc_alloc_tree_node_stat): Likewise.
15558 (ggc_alloc_cleared_tree_node_stat): Likewise.
15559 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15560 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15561 * gimple.c (gimple_build_omp_for): Likewise.
15562 (gimple_copy): Likewise.
15563 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15564 * toplev.c (realloc_for_line_map): Adjust.
15565 * tree-data-ref.h (lambda_vector_new): Likewise.
15566 * tree-phinodes.c (allocate_phi_node): Likewise.
15567 * tree.c (grow_tree_vec_stat): Likewise.
15568 * vec.h (va_gc::reserve): Adjust.
15569
15570 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15571
15572 * config/microblaze/microblaze.c (break_handler): New Declaration.
15573 (microblaze_break_function_p,microblaze_is_break_handler): New.
15574 (compute_frame_size): Use microblaze_break_function_p.
15575 Add the test of break_handler.
15576 (microblaze_function_prologue) : Add the test of variable
15577 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15578 (microblaze_function_epilogue) : Add the test of break_handler.
15579 (microblaze_globalize_label) : Add the test of break_handler.
15580 Check the name by BREAK_HANDLER_NAME.
15581
15582 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15583
15584 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15585 microblaze_is_break_handler test.
15586 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15587 Use SYMBOL_REF_DECL.
15588
15589 * config/microblaze/microblaze-protos.h
15590 (microblaze_break_function_p,microblaze_is_break_handler):
15591 New Declaration.
15592
15593 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15594 new MicroBlaze break_handler functions.
15595
15596 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15597
15598 * doc/extend.texi (Size of an asm): Move node text according
15599 to its @menu entry position.
15600
15601 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15602
15603 PR tree-optimization/61140
15604 PR tree-optimization/61150
15605 PR tree-optimization/61197
15606 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15607
15608 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15609
15610 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15611
15612 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15613
15614 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15615 __SIZEOF_INT128__ is defined.
15616
15617 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15618
15619 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15620 (rs6000_delegitimize_address): Use it.
15621
15622 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15623
15624 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15625 inplace argument. Store the new address in the original MEM when true.
15626 * emit-rtl.c (change_address_1): Likewise.
15627 (adjust_address_1, adjust_automodify_address_1, offset_address):
15628 Update accordingly.
15629 * rtl.h (plus_constant): Add an inplace argument.
15630 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15631 when true. Avoid generating (plus X (const_int 0)).
15632 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15633 in-place. Pass true to plus_constant.
15634 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15635
15636 2014-05-16 Dehao Chen <dehao@google.com>
15637
15638 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15639
15640 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15641
15642 PR target/54089
15643 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15644 patterns.
15645 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15646
15647 2014-05-16 Dehao Chen <dehao@google.com>
15648
15649 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15650 optimize_function_for_size_p.
15651 * regs.h (REG_FREQ_FROM_BB): Likewise.
15652
15653 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15654
15655 PR target/51244
15656 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15657 negt_reg_operand cases.
15658 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15659 predicate.
15660 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15661
15662 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15663
15664 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15665 target variants.
15666
15667 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15668
15669 Revert:
15670 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15671
15672 * tree-cfg.c (dump_function_to_file): Dump the return type of
15673 functions, in a line to itself before the function body, mimicking
15674 the layout of a C function.
15675
15676 2014-05-16 Dehao Chen <dehao@google.com>
15677
15678 * cfghooks.c (make_forwarder_block): Use direct computation to
15679 get fall-through edge's count and frequency.
15680
15681 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15682
15683 * config/arc/arc.c (arc_init): Fix typo in error message.
15684 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15685 (split_stack_prologue_scratch_regno): Likewise.
15686 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15687 word from error message.
15688
15689 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15690
15691 * ira-costs.c: Fix typo in comment.
15692
15693 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15694
15695 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15696
15697 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15698
15699 * varpool.c (dump_varpool_node): Dump write-only flag.
15700 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15701 write-only flag.
15702 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15703 write-only variables.
15704 * ipa.c (process_references): New function.
15705 (set_readonly_bit): New function.
15706 (set_writeonly_bit): New function.
15707 (clear_addressable_bit): New function.
15708 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15709 fix handling of aliases.
15710 * cgraph.h (struct varpool_node): Add writeonly flag.
15711
15712 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15713
15714 PR rtl-optimization/60969
15715 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15716 Calculate costs for this case.
15717
15718 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15719
15720 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15721 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15722
15723 2014-05-16 Richard Biener <rguenther@suse.de>
15724
15725 PR tree-optimization/61194
15726 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15727 bool patterns ending in a COND_EXPR.
15728
15729 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15730
15731 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15732
15733 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15734
15735 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15736 where we were unable to cost an RTX.
15737
15738 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15739
15740 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15741 HIGH, LO_SUM.
15742
15743 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15744 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15745
15746 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15747
15748 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15749 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15750
15751 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15752 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15753
15754 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15755 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15756
15757 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15758 operators.
15759
15760 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15761 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15762
15763 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15764 DIV/MOD.
15765
15766 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15767 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15768
15769 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15770 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15771
15772 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15773 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15774
15775 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15776 rotates and shifts.
15777
15778 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15779 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15780
15781 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15782 ZERO_EXTEND and SIGN_EXTEND better.
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_rtx_costs): Improve cost for
15788 logical operations.
15789
15790 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15791 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15792
15793 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15794 costs when costing loads and stores to memory.
15795
15796 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15797 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15798
15799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15800 for SET RTX.
15801
15802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15803
15804 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15805
15806 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15807 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15808
15809 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15810 to...
15811 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15812 well formed.
15813 (aarch64_rtx_mult_cost): New.
15814 (aarch64_rtx_costs): Use it, refactor as appropriate.
15815
15816 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15817 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15818
15819 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15820 emit instructions, return number of instructions which would
15821 be emitted.
15822 (aarch64_add_constant): Update call to aarch64_build_constant.
15823 (aarch64_output_mi_thunk): Likewise.
15824 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15825 a CONST_DOUBLE.
15826
15827 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15828
15829 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15830 (TARGET_RTX_COSTS): Call it.
15831
15832 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15833
15834 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15835 (cortexa57_vector_cost): Likewise.
15836 (cortexa57_tunings): Use them.
15837
15838 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15839
15840 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15841 (cpu_addrcost_table): Use it.
15842 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15843 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15844 move it.
15845
15846 2014-05-16 Richard Biener <rguenther@suse.de>
15847
15848 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15849 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15850 (visit_phi): Ignore edges marked as not executable.
15851 (class cond_dom_walker): New.
15852 (cond_dom_walker::before_dom_children): Value-number
15853 control statements and mark successor edges as not
15854 executable if possible.
15855 (run_scc_vn): First walk all control statements in
15856 dominator order, marking edges as not executable.
15857 * tree-inline.c (copy_edges_for_bb): Be not confused
15858 about random edge flags.
15859
15860 2014-05-16 Richard Biener <rguenther@suse.de>
15861
15862 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15863
15864 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15865
15866 PR target/61193
15867 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15868 (__TM_simple_begin): Use it.
15869 (__TM_begin): Likewise.
15870
15871 2014-05-15 Martin Jambor <mjambor@suse.cz>
15872
15873 PR ipa/61085
15874 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15875 type_preserved flag when the indirect edge is polymorphic.
15876
15877 2014-05-15 Martin Jambor <mjambor@suse.cz>
15878
15879 PR tree-optimization/61090
15880 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15881 build_ref_for_model.
15882
15883 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15884
15885 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15886 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15887
15888 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15889
15890 PR tree-optimization/61158
15891 * fold-const.c (fold_binary_loc): If X is zero-extended and
15892 shiftc >= prec, make sure zerobits is all ones instead of
15893 invoking undefined behavior.
15894
15895 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15896
15897 * regcprop.h: New file.
15898 * regcprop.c (skip_debug_insn_p): New decl.
15899 (replace_oldest_value_reg): Check skip_debug_insn_p.
15900 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15901 * shrink-wrap.c: Include regcprop.h.
15902 (prepare_shrink_wrap): Call
15903 copyprop_hardreg_forward_bb_without_debug_insn.
15904
15905 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15906
15907 * shrink-wrap.h: Update comment.
15908 * shrink-wrap.c: Update comment.
15909 (next_block_for_reg): Rename to live_edge_for_reg.
15910 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15911 (move_insn_for_shrink_wrap): Split live_edge.
15912 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15913
15914 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15915
15916 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15917 Delete.
15918 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15919 * config/sparc/sparc.md (fptype_ut699): New attribute.
15920 (in_branch_delay): Return false if -mfix-ut699 is specified and
15921 fptype_ut699 is set to single.
15922 (truncdfsf2): Add fptype_ut699 attribute.
15923 (fix_truncdfsi2): Likewise.
15924 (floatsisf2): Change fptype attribute.
15925 (fix_truncsfsi2): Likewise.
15926 (negtf2_notv9): Delete.
15927 (negtf2_v9): Likewise.
15928 (negtf2_hq): New instruction.
15929 (negtf2): New instruction and splitter.
15930 (negdf2_notv9): Rewrite.
15931 (abstf2_notv9): Delete.
15932 (abstf2_hq_v9): Likewise.
15933 (abstf2_v9): Likewise.
15934 (abstf2_hq): New instruction.
15935 (abstf2): New instruction and splitter.
15936 (absdf2_notv9): Rewrite.
15937
15938 2014-05-14 Cary Coutant <ccoutant@google.com>
15939
15940 PR debug/61013
15941 * opts.c (common_handle_option): Don't special-case "-g".
15942 (set_debug_level): Default to at least level 2 with "-g".
15943
15944 2014-05-14 DJ Delorie <dj@redhat.com>
15945
15946 * config/msp430/msp430.c (msp430_builtin): Add
15947 MSP430_BUILTIN_DELAY_CYCLES.
15948 (msp430_init_builtins): Register void __delay_cycles(long long).
15949 (msp430_builtin_decl): Add it.
15950 (cg_magic_constant): New.
15951 (msp430_expand_delay_cycles): New.
15952 (msp430_expand_builtin): Call it.
15953 (msp430_print_operand_raw): Change integer printing from "int" to
15954 HOST_WIDE_INT.
15955 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15956 (delay_cycles_start): New.
15957 (delay_cycles_end): New.
15958 (delay_cycles_32): New.
15959 (delay_cycles_32x): New.
15960 (delay_cycles_16): New.
15961 (delay_cycles_16x): New.
15962 (delay_cycles_2): New.
15963 (delay_cycles_1): New.
15964 * doc/extend.texi: Document __delay_cycles().
15965
15966 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15967
15968 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15969 length attribute computation.
15970
15971 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15972
15973 PR debug/61188
15974 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15975
15976 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15977
15978 PR target/61084
15979 * config/sparc/sparc.md: Fix types of low and high in DI constant
15980 splitter. Use gen_int_mode in some other splitters.
15981
15982 2014-05-14 Martin Jambor <mjambor@suse.cz>
15983
15984 PR ipa/60897
15985 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15986
15987 2014-05-14 James Norris <jnorris@codesourcery.com>
15988
15989 * omp-low.c (expand_parallel_call): Remove shadow variable.
15990 (expand_omp_taskreg): Likewise.
15991
15992 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15993
15994 * common/config/i386/i386-common.c
15995 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15996 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15997 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15998 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15999 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16000 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16001 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16002 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16003 xsavecintrin.h, xsavesintrin.h.
16004 (x86_64-*-*): Ditto.
16005 * config/i386/clflushoptintrin.h: New.
16006 * config/i386/xsavecintrin.h: Ditto.
16007 * config/i386/xsavesintrin.h: Ditto.
16008 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16009 (bit_XSAVES): Ditto.
16010 (bit_XSAVES): Ditto.
16011 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16012 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16013 -mno-clflushopt.
16014 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16015 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16016 OPTION_MASK_ISA_XSAVES.
16017 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16018 -mxsavec, -mxsaves.
16019 (PTA_CLFLUSHOPT) Define.
16020 (PTA_XSAVEC): Ditto.
16021 (PTA_XSAVES): Ditto.
16022 (ix86_option_override_internal): Handle new options.
16023 (ix86_valid_target_attribute_inner_p): Ditto.
16024 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16025 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16026 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16027 (bdesc_special_args): Add __builtin_ia32_xsaves,
16028 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16029 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16030 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16031 (ix86_expand_builtin): Handle new builtins.
16032 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16033 (TARGET_CLFLUSHOPT_P): Ditto.
16034 (TARGET_XSAVEC): Ditto.
16035 (TARGET_XSAVEC_P): Ditto.
16036 (TARGET_XSAVES): Ditto.
16037 (TARGET_XSAVES_P): Ditto.
16038 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16039 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16040 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16041 (ANY_XRSTOR): New.
16042 (ANY_XRSTOR64): Ditto.
16043 (xrstor): Ditto.
16044 (xrstor): Change into <xrstor>.
16045 (xrstor_rex64): Change into <xrstor>_rex64.
16046 (xrstor64): Change into <xrstor>64
16047 (clflushopt): New.
16048 * config/i386/i386.opt (mclflushopt): New.
16049 (mxsavec): Ditto.
16050 (mxsaves): Ditto.
16051 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16052 xsavecintrin.h.
16053 * doc/invoke.texi: Document new options.
16054
16055 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16056
16057 PR rtl-optimization/60866
16058 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16059 Default it to -1. Pass it down to init_simplejump_data.
16060 (init_simplejump_data): New parameter old_seqno. Pass it down
16061 to get_seqno_for_a_jump.
16062 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16063 initializing new jump seqno as a last resort. Add comment.
16064 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16065 jump and pass it down to sel_init_new_insn.
16066 (sel_redirect_edge_and_branch_force): Likewise.
16067
16068 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16069
16070 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16071 shifted values to avoid build warning.
16072
16073 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16074
16075 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16076 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16077 (cfg_layout_merge_blocks): Likewise.
16078 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16079
16080 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16081
16082 PR rtl-optimization/60901
16083 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16084 bb predecessor belongs to the same scheduling region. Adjust comment.
16085
16086 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16087
16088 * doc/sourcebuild.texi: (dfp_hw): Document.
16089 (p8vector_hw): Likewise.
16090 (powerpc_eabi_ok): Likewise.
16091 (powerpc_elfv2): Likewise.
16092 (powerpc_htm_ok): Likewise.
16093 (ppc_recip_hw): Likewise.
16094 (vsx_hw): Likewise.
16095
16096 2014-05-13 Cary Coutant <ccoutant@google.com>
16097
16098 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16099
16100 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16101
16102 * gengtype-parse.c (require3): Eliminate in favor of...
16103 (require4): New.
16104 (require_template_declaration): Update to support optional single *
16105 on a type.
16106
16107 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16108 (create_user_defined_type): Handle a single level of explicit
16109 pointerness within template arguments.
16110 (struct write_types_data): Add field "kind".
16111 (filter_type_name): Handle "*" character.
16112 (write_user_func_for_structure_ptr): Require a write_types_data
16113 rather than just a prefix string, so that we can look up the kind
16114 of the wtd and use it as an index into wrote_user_func_for_ptr,
16115 ensuring that such functions are written at most once. Support
16116 subclasses by invoking the marking function of the ultimate base class.
16117 (write_user_func_for_structure_body): Require a write_types_data
16118 rather than just a prefix string, so that we can pass this to
16119 write_user_func_for_structure_ptr.
16120 (write_func_for_structure): Likewise.
16121 (ggc_wtd): Add initializer of new "kind" field.
16122 (pch_wtd): Likewise.
16123
16124 * gengtype.h (enum write_types_kinds): New.
16125 (struct type): Add field wrote_user_func_for_ptr to the "s"
16126 union member.
16127
16128 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16129
16130 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16131 instead of const_binop.
16132 (fold_binary_loc): Likewise.
16133
16134 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16135
16136 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16137 calculation to match get_ref_base_and_extent.
16138
16139 2014-05-13 Catherine Moore <clm@codesourcery.com>
16140 Sandra Loosemore <sandra@codesourcery.com>
16141
16142 * configure.ac: Fix assembly for explicit JALR relocation check.
16143 * configure: Regenerate.
16144
16145 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16146
16147 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16148 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16149 Remove associated type declarations and initialisations.
16150 (arm_expand_neon_builtin): Likewise.
16151 (neon_emit_pair_result_insn): Delete.
16152 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16153 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16154 (neon_vzip<mode>): Likewise.
16155 (neon_vuzp<mode>): Likewise.
16156
16157 2014-05-13 Richard Biener <rguenther@suse.de>
16158
16159 PR ipa/60973
16160 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16161 it needs revisiting whether the call still may be tail-called.
16162
16163 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16164
16165 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16166 * rtl.h (block_symbol): Reduce number of fields to 2.
16167 (rtx_def): Add u2.symbol_ref_flags.
16168 (SYMBOL_REF_FLAGS): Use it.
16169 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16170 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16171 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16172 Lower index of SYMBOL_REF_DATA.
16173 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16174 Print SYMBOL_REF_FLAGS at the same time.
16175 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16176
16177 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16178
16179 * rtl.def (VAR_LOCATION): Remove "i" field.
16180 * rtl.h (rtx_def): Add u2.var_location_status.
16181 (PAT_VAR_LOCATION_STATUS): Use it.
16182 (gen_rtx_VAR_LOCATION): Declare.
16183 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16184 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16185 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16186
16187 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16188
16189 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16190 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16191
16192 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16193
16194 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16195 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16196 * rtl.h (rtx_def): Add insn_uid to u2 field.
16197 (RTX_FLAG_CHECK8): Delete in favor of...
16198 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16199 (INSN_DELETED_P): Update accordingly.
16200 (INSN_UID): Use u2.insn_uid.
16201 (INSN_CHAIN_CODE_P): Define.
16202 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16203 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16204 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16205 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16206 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16207 indices accordingly.
16208 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16209 Update indices for insn-chain rtxes.
16210 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16211 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16212 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16213 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16214 * combine.c (try_combine): Likewise.
16215 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16216
16217 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16218
16219 * rtl.def (REG): Remove middle field.
16220 * rtl.h (rtx_def): Add orignal_regno to u2.
16221 (ORIGINAL_REGNO): Use it instead of field 1.
16222 (REG_ATTRS): Lower field index accordingly.
16223 * gengtype.c (adjust_field_rtx_def): Remove handling of
16224 ORIGINAL_REGNO. Move REG_ATTRS index down.
16225 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16226 code that prints the REGNO.
16227
16228 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16229
16230 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16231 GENERATOR_FILE.
16232
16233 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16234
16235 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16236
16237 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16238
16239 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16240 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16241
16242 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16243
16244 * config/aarch64/aarch64-protos.h
16245 (aarch64_hard_regno_caller_save_mode): New prototype.
16246 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16247 New function.
16248 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16249
16250 2014-05-13 Christian Bruel <christian.bruel@st.com>
16251
16252 * target.def (mode_switching): New hook vector.
16253 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16254 (mode_exit, modepriority_to_mode): Likewise.
16255 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16256 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16257 * target.h: Include tm.h and hard-reg-set.h.
16258 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16259 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16260 * doc/tm.texi Regenerate.
16261 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16262 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16263 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16264 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16265 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16266 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16267 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16268 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16269 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16270 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16271 (ix86_emit_mode_set): Hookify.
16272 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16273 Delete.
16274 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16275 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16276 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16277 (epiphany_mode_priority_to_mode): Remove declaration.
16278 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16279 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16280 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16281 Likewise.
16282 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16283 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16284 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16285
16286 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16287
16288 PR target/61060
16289 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16290 is const0_rtx, return immediately. Don't test count == 0 when
16291 it is always true.
16292
16293 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16294
16295 * Makefile.in: add shrink-wrap.o.
16296 * config/i386/i386.c: include "shrink-wrap.h"
16297 * function.c: Likewise.
16298 (requires_stack_frame_p, next_block_for_reg,
16299 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16300 dup_block_and_redirect): Move to shrink-wrap.c
16301 (thread_prologue_and_epilogue_insns): Extract three code segments
16302 as functions in shrink-wrap.c
16303 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16304 shrink-wrap.h
16305 * shrink-wrap.c: New file.
16306 * shrink-wrap.h: New file.
16307
16308 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16309
16310 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16311 reference to Solaris.
16312
16313 2014-05-12 Mike Stump <mikestump@comcast.net>
16314
16315 PR other/31778
16316 * genattrtab.c (filename): Add.
16317 (convert_set_attr_alternative): Improve error message.
16318 (check_defs): Restore read_md_filename for error messages.
16319 (gen_insn): Save filename.
16320
16321 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16322
16323 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16324 -fno-local-ivars and -fivar-visibility.
16325 * c-family/c.opt: Make -Wshadow also implicitly enable
16326 -Wshadow-ivar.
16327
16328 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16329
16330 * doc/tm.texi: Remove reference to deleted macro.
16331 * doc/tm.texi.in: Likewise.
16332
16333 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16334
16335 PR target/60991
16336 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16337 to restore Y.
16338
16339 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16340
16341 PR libgcc/61152
16342 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16343 * config/arm/aout.h (License): Same.
16344 * config/arm/bpabi.h (License): Same.
16345 * config/arm/elf.h (License): Same.
16346 * config/arm/linux-elf.h (License): Same.
16347 * config/arm/linux-gas.h (License): Same.
16348 * config/arm/netbsd-elf.h (License): Same.
16349 * config/arm/uclinux-eabi.h (License): Same.
16350 * config/arm/uclinux-elf.h (License): Same.
16351 * config/arm/vxworks.h (License): Same.
16352
16353 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16354
16355 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16356 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16357 number of operands to 3.
16358 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16359 * tree-nested.c (convert_nonlocal_omp_clauses,
16360 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16361 * gimplify.c (gimplify_scan_omp_clauses): Handle
16362 OMP_CLAUSE_LINEAR_STMT.
16363 * omp-low.c (lower_rec_input_clauses): Fix typo.
16364 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16365 cast between Fortran boolean_type_node and C _Bool if
16366 needed.
16367
16368 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16369
16370 PR tree-optimization/61136
16371 * wide-int.h (multiple_of_p): Define a version that doesn't return
16372 the quotient.
16373 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16374 integer_zerop/const_binop pair.
16375 (multiple_of_p): Likewise, converting both operands to widest_int
16376 precision.
16377
16378 2014-05-09 Teresa Johnson <tejohnson@google.com>
16379
16380 * cgraphunit.c (analyze_functions): Use correct dump file.
16381
16382 2014-05-09 Florian Weimer <fweimer@redhat.com>
16383
16384 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16385 expand_used_vars.
16386 (stack_protect_return_slot_p): New function.
16387 (expand_used_vars): Call stack_protect_decl_p and
16388 stack_protect_return_slot_p for -fstack-protector-strong.
16389
16390 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16391 Andrew Haley <aph@redhat.com>
16392 Richard Sandiford <rdsandiford@googlemail.com>
16393
16394 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16395 pages.
16396
16397 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16398
16399 PR middle-end/61111
16400 * fold-const.c (fold_binary_loc): Changed width of mask.
16401
16402 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16403
16404 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16405 unsigned int initializers for regno_in, regno_out.
16406
16407 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16408
16409 PR target/61055
16410 * config/avr/avr.md (cc): Add new attribute set_vzn.
16411 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16412 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16413 with INC, DEC or NEG.
16414 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16415 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16416 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16417
16418 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16419
16420 Revert:
16421 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16422
16423 * wide-int.cc (UTItype): Define.
16424 (UDWtype): Define for appropriate W_TYPE_SIZE.
16425
16426 2014-05-09 Richard Biener <rguenther@suse.de>
16427
16428 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16429 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16430 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16431 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16432 ssa_propagate): Adjust.
16433
16434 2014-05-08 Jeff Law <law@redhat.com>
16435
16436 PR tree-optimization/61009
16437 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16438 tri-state rather than a boolean. When a block is too big to
16439 thread through, inform caller via negative return value.
16440 (thread_across_edge): If a block was too big for normal threading,
16441 then it's too big for a joiner too, so remove temporary equivalences
16442 and return immediately.
16443
16444 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16445 Matthias Klose <doko@ubuntu.com>
16446
16447 PR driver/61106
16448 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16449
16450 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16451
16452 PR target/59952
16453 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16454
16455 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16456
16457 PR target/61092
16458 * config/alpha/alpha.c: Include gimple-iterator.h.
16459 (alpha_gimple_fold_builtin): New function. Move
16460 ALPHA_BUILTIN_UMULH folding from ...
16461 (alpha_fold_builtin): ... here.
16462 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16463
16464 2014-05-08 Wei Mi <wmi@google.com>
16465
16466 PR target/58066
16467 * config/i386/i386.c (ix86_compute_frame_layout): Update
16468 preferred_stack_boundary for call, expanded from tls descriptor.
16469 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16470 to depend on SP register.
16471 (*tls_local_dynamic_base_32_gnu): Ditto.
16472 (*tls_local_dynamic_32_once): Ditto.
16473 (tls_global_dynamic_64_<mode>): Set
16474 ix86_tls_descriptor_calls_expanded_in_cfun.
16475 (tls_local_dynamic_base_64_<mode>): Ditto.
16476 (tls_global_dynamic_32): Set
16477 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16478 to depend on SP register.
16479 (tls_local_dynamic_base_32): Ditto.
16480
16481 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16482
16483 * config/arm/arm_neon.h: Update comment.
16484 * config/arm/neon-docgen.ml: Delete.
16485 * config/arm/neon-gen.ml: Delete.
16486 * doc/arm-neon-intrinsics.texi: Update comment.
16487
16488 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16489
16490 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16491 and v4sf versions.
16492 (vand, vorr, veor, vorn, vbic): Remove.
16493 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16494 iterator.
16495 (neon_vsub_unspec): Likewise.
16496 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16497
16498 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16499
16500 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16501 (vadd_s16): Likewise.
16502 (vadd_s32): Likewise.
16503 (vadd_f32): Likewise.
16504 (vadd_u8): Likewise.
16505 (vadd_u16): Likewise.
16506 (vadd_u32): Likewise.
16507 (vadd_s64): Likewise.
16508 (vadd_u64): Likewise.
16509 (vaddq_s8): Likewise.
16510 (vaddq_s16): Likewise.
16511 (vaddq_s32): Likewise.
16512 (vaddq_s64): Likewise.
16513 (vaddq_f32): Likewise.
16514 (vaddq_u8): Likewise.
16515 (vaddq_u16): Likewise.
16516 (vaddq_u32): Likewise.
16517 (vaddq_u64): Likewise.
16518 (vmul_s8): Likewise.
16519 (vmul_s16): Likewise.
16520 (vmul_s32): Likewise.
16521 (vmul_f32): Likewise.
16522 (vmul_u8): Likewise.
16523 (vmul_u16): Likewise.
16524 (vmul_u32): Likewise.
16525 (vmul_p8): Likewise.
16526 (vmulq_s8): Likewise.
16527 (vmulq_s16): Likewise.
16528 (vmulq_s32): Likewise.
16529 (vmulq_f32): Likewise.
16530 (vmulq_u8): Likewise.
16531 (vmulq_u16): Likewise.
16532 (vmulq_u32): Likewise.
16533 (vsub_s8): Likewise.
16534 (vsub_s16): Likewise.
16535 (vsub_s32): Likewise.
16536 (vsub_f32): Likewise.
16537 (vsub_u8): Likewise.
16538 (vsub_u16): Likewise.
16539 (vsub_u32): Likewise.
16540 (vsub_s64): Likewise.
16541 (vsub_u64): Likewise.
16542 (vsubq_s8): Likewise.
16543 (vsubq_s16): Likewise.
16544 (vsubq_s32): Likewise.
16545 (vsubq_s64): Likewise.
16546 (vsubq_f32): Likewise.
16547 (vsubq_u8): Likewise.
16548 (vsubq_u16): Likewise.
16549 (vsubq_u32): Likewise.
16550 (vsubq_u64): Likewise.
16551 (vand_s8): Likewise.
16552 (vand_s16): Likewise.
16553 (vand_s32): Likewise.
16554 (vand_u8): Likewise.
16555 (vand_u16): Likewise.
16556 (vand_u32): Likewise.
16557 (vand_s64): Likewise.
16558 (vand_u64): Likewise.
16559 (vandq_s8): Likewise.
16560 (vandq_s16): Likewise.
16561 (vandq_s32): Likewise.
16562 (vandq_s64): Likewise.
16563 (vandq_u8): Likewise.
16564 (vandq_u16): Likewise.
16565 (vandq_u32): Likewise.
16566 (vandq_u64): Likewise.
16567 (vorr_s8): Likewise.
16568 (vorr_s16): Likewise.
16569 (vorr_s32): Likewise.
16570 (vorr_u8): Likewise.
16571 (vorr_u16): Likewise.
16572 (vorr_u32): Likewise.
16573 (vorr_s64): Likewise.
16574 (vorr_u64): Likewise.
16575 (vorrq_s8): Likewise.
16576 (vorrq_s16): Likewise.
16577 (vorrq_s32): Likewise.
16578 (vorrq_s64): Likewise.
16579 (vorrq_u8): Likewise.
16580 (vorrq_u16): Likewise.
16581 (vorrq_u32): Likewise.
16582 (vorrq_u64): Likewise.
16583 (veor_s8): Likewise.
16584 (veor_s16): Likewise.
16585 (veor_s32): Likewise.
16586 (veor_u8): Likewise.
16587 (veor_u16): Likewise.
16588 (veor_u32): Likewise.
16589 (veor_s64): Likewise.
16590 (veor_u64): Likewise.
16591 (veorq_s8): Likewise.
16592 (veorq_s16): Likewise.
16593 (veorq_s32): Likewise.
16594 (veorq_s64): Likewise.
16595 (veorq_u8): Likewise.
16596 (veorq_u16): Likewise.
16597 (veorq_u32): Likewise.
16598 (veorq_u64): Likewise.
16599 (vbic_s8): Likewise.
16600 (vbic_s16): Likewise.
16601 (vbic_s32): Likewise.
16602 (vbic_u8): Likewise.
16603 (vbic_u16): Likewise.
16604 (vbic_u32): Likewise.
16605 (vbic_s64): Likewise.
16606 (vbic_u64): Likewise.
16607 (vbicq_s8): Likewise.
16608 (vbicq_s16): Likewise.
16609 (vbicq_s32): Likewise.
16610 (vbicq_s64): Likewise.
16611 (vbicq_u8): Likewise.
16612 (vbicq_u16): Likewise.
16613 (vbicq_u32): Likewise.
16614 (vbicq_u64): Likewise.
16615 (vorn_s8): Likewise.
16616 (vorn_s16): Likewise.
16617 (vorn_s32): Likewise.
16618 (vorn_u8): Likewise.
16619 (vorn_u16): Likewise.
16620 (vorn_u32): Likewise.
16621 (vorn_s64): Likewise.
16622 (vorn_u64): Likewise.
16623 (vornq_s8): Likewise.
16624 (vornq_s16): Likewise.
16625 (vornq_s32): Likewise.
16626 (vornq_s64): Likewise.
16627 (vornq_u8): Likewise.
16628 (vornq_u16): Likewise.
16629 (vornq_u32): Likewise.
16630 (vornq_u64): Likewise.
16631
16632 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16633
16634 * wide-int.cc (UTItype): Define.
16635 (UDWtype): Define for appropriate W_TYPE_SIZE.
16636
16637 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16638
16639 PR tree-optimization/59100
16640 * tree-ssa-phiopt.c: Include tree-inline.h.
16641 (neutral_element_p, absorbing_element_p): New functions.
16642 (value_replacement): Handle conditional binary operations with a
16643 neutral or absorbing element.
16644
16645 2014-05-08 Richard Biener <rguenther@suse.de>
16646
16647 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16648 folding the expression.
16649 (valueize_expr): Remove.
16650 (visit_reference_op_load): Do not valueize the result of
16651 vn_get_expr_for.
16652 (simplify_binary_expression): Likewise.
16653 (simplify_unary_expression): Likewise.
16654
16655 2014-05-08 Richard Biener <rguenther@suse.de>
16656
16657 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16658 looking at TYPE_ARG_TYPES.
16659
16660 2014-05-08 Richard Biener <rguenther@suse.de>
16661
16662 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16663 pointer propagation special-case.
16664
16665 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16666
16667 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16668 core part of address expressions.
16669
16670 2014-05-08 Alan Modra <amodra@gmail.com>
16671
16672 PR target/60737
16673 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16674 loads and stores when -mno-strict-align at any alignment.
16675 (expand_block_clear): Similarly. Also correct calculation of
16676 instruction count.
16677
16678 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16679
16680 PR middle-end/39246
16681 * tree-complex.c (expand_complex_move): Keep line info when expanding
16682 complex move.
16683 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16684 of complex expression. Use new argument to display correct location
16685 for values coming from phi statement.
16686 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16687 (warn_uninitialized_phi): Pass location of phi argument to
16688 warn_uninit.
16689 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16690 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16691
16692 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16693
16694 * config/rs6000/predicates.md (indexed_address_mem): New.
16695 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16696 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16697 fpstore_ux, fpstore_u.
16698 (sign_extend, indexed, update): New.
16699 (cell_micro): Adjust.
16700 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16701 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16702 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16703 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16704 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16705 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16706 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16707 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16708 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16709 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16710 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16711 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16712 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16713 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16714 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16715
16716 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16717 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16718 *vsx_extract_<mode>_store): Adjust.
16719 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16720 is_cracked_insn, insn_must_be_first_in_group,
16721 insn_must_be_last_in_group): Adjust.
16722
16723 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16724 Adjust.
16725 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16726 ppc440-fpstore): Adjust.
16727 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16728 ppc476-fpstore): Adjust.
16729 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16730 ppc601-fpstore): Adjust.
16731 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16732 Adjust.
16733 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16734 Adjust.
16735 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16736 ppc7450-fpstore): Adjust.
16737 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16738 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16739 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16740 Adjust.
16741 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16742 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16743 cell-fpstore, cell-fpstore-update): Adjust.
16744 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16745 ppce300c3_store, ppce300c3_fpstore): Adjust.
16746 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16747 e500mc_fpstore): Adjust.
16748 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16749 e500mc64_store, e500mc64_fpstore): Adjust.
16750 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16751 e5500_fpstore): Adjust.
16752 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16753 e6500_fpstore): Adjust.
16754 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16755 Adjust.
16756 * config/rs6000/power4.md (power4-load, power4-load-ext,
16757 power4-load-ext-update, power4-load-ext-update-indexed,
16758 power4-load-update-indexed, power4-load-update, power4-fpload,
16759 power4-fpload-update, power4-store, power4-store-update,
16760 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16761 Adjust.
16762 * config/rs6000/power5.md (power5-load, power5-load-ext,
16763 power5-load-ext-update, power5-load-ext-update-indexed,
16764 power5-load-update-indexed, power5-load-update, power5-fpload,
16765 power5-fpload-update, power5-store, power5-store-update,
16766 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16767 Adjust.
16768 * config/rs6000/power6.md (power6-load, power6-load-ext,
16769 power6-load-update, power6-load-update-indexed,
16770 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16771 power6-fpload-update, power6-store, power6-store-update,
16772 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16773 Adjust.
16774 * config/rs6000/power7.md (power7-load, power7-load-ext,
16775 power7-load-update, power7-load-update-indexed,
16776 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16777 power7-fpload-update, power7-store, power7-store-update,
16778 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16779 Adjust.
16780 * config/rs6000/power8.md (power8-load, power8-load-update,
16781 power8-load-ext, power8-load-ext-update, power8-fpload,
16782 power8-fpload-update, power8-store, power8-store-update-indexed,
16783 power8-fpstore, power8-fpstore-update): Adjust.
16784 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16785 Adjust.
16786 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16787 titan_lsu_store, titan_lsu_fpstore): Adjust.
16788 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16789
16790 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16791
16792 PR target/60884
16793 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16794 unrolled byte insns. Emit address increments after move insns.
16795
16796 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16797
16798 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16799 const_gimple, rather than a gimple.
16800 (gimple_call_builtin_p): Likewise, for the three variants.
16801
16802 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16803 (gimple_call_builtin_p): Likewise, for the three variants.
16804
16805 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16806
16807 PR tree-optimization/61095
16808 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16809
16810 2014-05-07 Richard Biener <rguenther@suse.de>
16811
16812 PR tree-optimization/61034
16813 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16814 (maybe_skip_until): Use translate to take into account
16815 lattices when trying to do disambiguations.
16816 (get_continuation_for_phi_1): Likewise.
16817 (get_continuation_for_phi): Adjust for added translate arguments.
16818 (walk_non_aliased_vuses): Likewise.
16819 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16820 (walk_non_aliased_vuses): Likewise.
16821 (call_may_clobber_ref_p_1): Declare.
16822 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16823 calls. Stop early if we are only supposed to disambiguate.
16824 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16825
16826 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16827
16828 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16829 Emit an error when the function has arguments.
16830
16831 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16832
16833 * cfgloop.h (unswitch_loops): Remove.
16834 * doc/passes.texi: Remove references to loop-unswitch.c
16835 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16836
16837 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16838
16839 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16840 check for loads group of length 3.
16841 (vect_permute_load_chain): New permutations for loads group of
16842 length 3.
16843 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16844 of vec_perm_shuffle for the new permutations.
16845
16846 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16847
16848 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16849 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16850 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16851 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16852 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16853 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16854 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16855 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16856
16857 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16858
16859 * loop-unswitch.c: Delete.
16860
16861 2014-05-07 Richard Biener <rguenther@suse.de>
16862
16863 * config.gcc: Always set need_64bit_hwint to yes.
16864
16865 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16866
16867 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16868 of using optimize_size.
16869
16870 2014-05-06 Mike Stump <mikestump@comcast.net>
16871
16872 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16873
16874 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16875
16876 * config/i386/sse.md (*mov<mode>_internal)
16877 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16878 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16879 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16880 (*<code><mode>3, *andnot<mode>3<mask_name>)
16881 (<mask_codefor><code><mode>3<mask_name>): Only consider
16882 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16883
16884 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16885
16886 Revert:
16887 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16888
16889 * lra-constraints.c (valid_address_p): Move earlier in file.
16890 Add a constraint argument to the address_info version.
16891 (satisfies_memory_constraint_p): New function.
16892 (satisfies_address_constraint_p): Likewise.
16893 (process_alt_operands, curr_insn_transform): Use them.
16894 (process_address): Pass the constraint to valid_address_p when
16895 checking address operands.
16896
16897 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16898
16899 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16900 to their respective blocks. Fix inadvertent use of "node".
16901
16902 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16903
16904 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16905 out from...
16906 (init_emit_once): ...here.
16907 * rtl.h (init_derived_machine_modes): Declare.
16908 * toplev.c (do_compile): Call it even if no_backend.
16909
16910 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16911 Mike Stump <mikestump@comcast.net>
16912 Richard Sandiford <rdsandiford@googlemail.com>
16913 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16914
16915 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16916 (rtx_equal_for_memref_p): Update comment.
16917 (adjust_offset_for_component_ref): Use wide-int interfaces.
16918 * builtins.c (get_object_alignment_2): Likewise.
16919 (c_readstr): Likewise.
16920 (target_char_cast): Add comment.
16921 (determine_block_size): Use wide-int interfaces.
16922 (expand_builtin_signbit): Likewise.
16923 (fold_builtin_int_roundingfn): Likewise.
16924 (fold_builtin_bitop): Likewise.
16925 (fold_builtin_bswap): Likewise.
16926 (fold_builtin_logarithm): Use signop.
16927 (fold_builtin_pow): Likewise.
16928 (fold_builtin_memory_op): Use wide-int interfaces.
16929 (fold_builtin_object_size): Likewise.
16930 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16931 nb_iterations_estimate.
16932 (record_niter_bound): Use wide-int interfaces.
16933 (get_estimated_loop_iterations_int): Likewise.
16934 (get_estimated_loop_iterations): Likewise.
16935 (get_max_loop_iterations): Likewise.
16936 * cfgloop.h: Include wide-int.h.
16937 (struct nb_iter_bound): Change bound to widest_int.
16938 (struct loop): Change nb_iterations_upper_bound and
16939 nb_iterations_estimate to widest_int.
16940 (record_niter_bound): Switch to use widest_int.
16941 (get_estimated_loop_iterations): Likewise.
16942 (get_max_loop_iterations): Likewise.
16943 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16944 update for wide-int.
16945 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16946 * combine.c (try_combine): Likewise.
16947 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16948 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16949 interfaces.
16950 (aarch64_float_const_representable_p): Likewise.
16951 * config/arc/arc.c: Include wide-int.h.
16952 (arc_can_use_doloop_p): Use wide-int interfaces.
16953 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16954 (vfp3_const_double_index): Likewise.
16955 * config/avr/avr.c (avr_out_round): Likewise.
16956 (avr_fold_builtin): Likewise.
16957 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16958 (bfin_can_use_doloop_p): Likewise.
16959 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16960 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16961 * config/i386/i386.c: Include wide-int.h.
16962 (ix86_data_alignment): Use wide-int interfaces.
16963 (ix86_local_alignment): Likewise.
16964 (ix86_emit_swsqrtsf): Update real_from_integer.
16965 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16966 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16967 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16968 (zero_constant): Likewise.
16969 (input_operand): Likewise.
16970 (splat_input_operand): Likewise.
16971 (non_logical_cint_operand): Change const_double to const_wide_int.
16972 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16973 (easy_altivec_constant): Remove comment.
16974 (paired_expand_vector_init): Use CONSTANT_P.
16975 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16976 (rs6000_emit_move): Update checks.
16977 (rs6000_aggregate_candidate): Use wide-int interfaces.
16978 (rs6000_expand_ternop_builtin): Likewise.
16979 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16980 (rs6000_assemble_integer): Likewise.
16981 (rs6000_hash_constant): Likewise.
16982 (output_toc): Likewise.
16983 (rs6000_rtx_costs): Likewise.
16984 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16985 * config/rs6000/rs6000-c.c: Include wide-int.h.
16986 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16987 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16988 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16989 Handle CONST_WIDE_INT.
16990 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16991 Use tree_fits_uhwi_p.
16992 * config/sparc/sparc.c: Include wide-int.h.
16993 (sparc_fold_builtin): Use wide-int interfaces.
16994 * config/vax/vax.c: Include wide-int.h.
16995 (vax_float_literal): Use real_from_integer.
16996 * coretypes.h (struct hwivec_def): New.
16997 (hwivec): New.
16998 (const_hwivec): New.
16999 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17000 (equiv_constant): Handle CONST_WIDE_INT.
17001 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17002 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17003 * dbxout.c (stabstr_U): Use wide-int interfaces.
17004 (dbxout_type): Update to use cst_fits_shwi_p.
17005 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17006 (TARGET_SUPPORTS_WIDE_INT): Add default.
17007 * dfp.c: Include wide-int.h.
17008 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17009 decimal_real_to_integer.
17010 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17011 decimal_real_to_integer.
17012 * doc/generic.texi (Constant expressions): Update for wide_int.
17013 * doc/rtl.texi (const_double): Likewise.
17014 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17015 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17016 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17017 (REAL_VALUE_FROM_INT): Remove.
17018 (TARGET_SUPPORTS_WIDE_INT): New.
17019 * doc/tm.texi: Regenerate.
17020 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17021 * double-int.h: Include wide-int.h.
17022 (struct wi::int_traits): New.
17023 * dwarf2out.c (get_full_len): New.
17024 (dw_val_equal_p): Add case dw_val_class_wide_int.
17025 (size_of_loc_descr): Likewise.
17026 (output_loc_operands): Likewise.
17027 (insert_double): Remove.
17028 (insert_wide_int): New.
17029 (add_AT_wide): New.
17030 (print_die): Add case dw_val_class_wide_int.
17031 (attr_checksum): Likewise.
17032 (attr_checksum_ordered): Likewise.
17033 (same_dw_val_p): Likewise.
17034 (size_of_die): Likewise.
17035 (value_format): Likewise.
17036 (output_die): Likewise.
17037 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17038 Use wide-int.
17039 (clz_loc_descriptor): Use wide-int interfaces.
17040 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17041 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17042 (round_up_to_align): Use wide-int interfaces.
17043 (field_byte_offset): Likewise.
17044 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17045 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17046 CONST_DOUBLE handling. Use wide-int interfaces.
17047 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17048 (gen_enumeration_type_die): Use add_AT_wide.
17049 (hash_loc_operands): Add case dw_val_class_wide_int.
17050 (compare_loc_operands): Likewise.
17051 * dwarf2out.h: Include wide-int.h.
17052 (wide_int_ptr): New.
17053 (enum dw_val_class): Add dw_val_class_wide_int.
17054 (struct dw_val_struct): Add val_wide.
17055 * emit-rtl.c (const_wide_int_htab): New.
17056 (const_wide_int_htab_hash): New.
17057 (const_wide_int_htab_eq): New.
17058 (lookup_const_wide_int): New.
17059 (const_double_htab_hash): Use wide-int interfaces.
17060 (const_double_htab_eq): Likewise.
17061 (rtx_to_double_int): Conditionally compile for wide-int.
17062 (immed_double_int_const): Rename to immed_wide_int_const and
17063 update for wide-int.
17064 (immed_double_const): Conditionally compile for wide-int.
17065 (init_emit_once): Use wide-int interfaces.
17066 * explow.c (plus_constant): Likewise.
17067 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17068 (lshift_value): Use wide-int interfaces.
17069 (expand_mult): Likewise.
17070 (choose_multiplier): Likewise.
17071 (expand_smod_pow2): Likewise.
17072 (make_tree): Likewise.
17073 * expr.c (convert_modes): Consolidate handling of constants.
17074 Use wide-int interfaces.
17075 (emit_group_load_1): Add note.
17076 (store_expr): Update comment.
17077 (get_inner_reference): Use wide-int interfaces.
17078 (expand_constructor): Update comment.
17079 (expand_expr_real_2): Use wide-int interfaces.
17080 (expand_expr_real_1): Likewise.
17081 (reduce_to_bit_field_precision): Likewise.
17082 (const_vector_from_tree): Likewise.
17083 * final.c: Include wide-int-print.h.
17084 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17085 * fixed-value.c: Include wide-int.h.
17086 (fixed_from_string): Use wide-int interfaces.
17087 (fixed_to_decimal): Likewise.
17088 (fixed_convert_from_real): Likewise.
17089 (real_convert_from_fixed): Likewise.
17090 * fold-const.h (mem_ref_offset): Return an offset_int.
17091 (div_if_zero_remainder): Remove code parameter.
17092 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17093 Use wide-int interfaces.
17094 (may_negate_without_overflow_p): Use wide-int interfaces.
17095 (negate_expr_p): Likewise.
17096 (fold_negate_expr): Likewise.
17097 (int_const_binop_1): Likewise.
17098 (const_binop): Likewise.
17099 (fold_convert_const_int_from_int): Likewise.
17100 (fold_convert_const_int_from_real): Likewise.
17101 (fold_convert_const_int_from_fixed): Likewise.
17102 (fold_convert_const_fixed_from_int): Likewise.
17103 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17104 (sign_bit_p): Use wide-int interfaces.
17105 (make_range_step): Likewise.
17106 (build_range_check): Likewise. Pass an integer of the correct type
17107 instead of using integer_one_node.
17108 (range_predecessor): Pass an integer of the correct type instead
17109 of using integer_one_node.
17110 (range_successor): Likewise.
17111 (merge_ranges): Likewise.
17112 (unextend): Use wide-int interfaces.
17113 (extract_muldiv_1): Likewise.
17114 (fold_div_compare): Likewise.
17115 (fold_single_bit_test): Likewise.
17116 (fold_sign_changed_comparison): Likewise.
17117 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17118 (fold_plusminus_mult_expr): Use wide-int interfaces.
17119 (native_encode_int): Likewise.
17120 (native_interpret_int): Likewise.
17121 (fold_unary_loc): Likewise.
17122 (pointer_may_wrap_p): Likewise.
17123 (size_low_cst): Likewise.
17124 (mask_with_tz): Likewise.
17125 (fold_binary_loc): Likewise.
17126 (fold_ternary_loc): Likewise.
17127 (multiple_of_p): Likewise.
17128 (tree_call_nonnegative_warnv_p): Update calls to
17129 tree_int_cst_min_precision and real_from_integer.
17130 (fold_negate_const): Use wide-int interfaces.
17131 (fold_abs_const): Likewise.
17132 (fold_relational_const): Use tree_int_cst_lt.
17133 (round_up_loc): Use wide-int interfaces.
17134 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17135 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17136 * gengtype.c: Remove include of double-int.h.
17137 (do_typedef): Use wide-int interfaces.
17138 (open_base_files): Add wide-int.h.
17139 (main): Add offset_int and widest_int typedefs.
17140 * gengtype-lex.l: Handle "^".
17141 (CXX_KEYWORD): Add "static".
17142 * gengtype-parse.c (require3): New.
17143 (require_template_declaration): Handle constant template arguments
17144 and nested templates.
17145 * gengtype-state.c: Don't include "double-int.h".
17146 * genpreds.c (write_one_predicate_function): Update comment.
17147 (write_tm_constrs_h): Add check for hval and lval use in
17148 CONST_WIDE_INT.
17149 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17150 (add_to_sequence): Likewise.
17151 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17152 and const_double_operand.
17153 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17154 interfaces.
17155 * gimple-fold.c (get_base_constructor): Likewise.
17156 (fold_array_ctor_reference): Likewise.
17157 (fold_nonarray_ctor_reference): Likewise.
17158 (fold_const_aggregate_ref_1): Likewise.
17159 (gimple_val_nonnegative_real_p): Likewise.
17160 (gimple_fold_indirect_ref): Likewise.
17161 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17162 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17163 (struct slsr_cand_d): Change index to be widest_int.
17164 (struct incr_info_d): Change incr to be widest_int.
17165 (alloc_cand_and_find_basis): Use wide-int interfaces.
17166 (slsr_process_phi): Likewise.
17167 (backtrace_base_for_ref): Likewise. Return a widest_int.
17168 (restructure_reference): Take a widest_int instead of a double_int.
17169 (slsr_process_ref): Use wide-int interfaces.
17170 (create_mul_ssa_cand): Likewise.
17171 (create_mul_imm_cand): Likewise.
17172 (create_add_ssa_cand): Likewise.
17173 (create_add_imm_cand): Take a widest_int instead of a double_int.
17174 (slsr_process_add): Use wide-int interfaces.
17175 (slsr_process_cast): Likewise.
17176 (slsr_process_copy): Likewise.
17177 (dump_candidate): Likewise.
17178 (dump_incr_vec): Likewise.
17179 (replace_ref): Likewise.
17180 (cand_increment): Likewise. Return a widest_int.
17181 (cand_abs_increment): Likewise.
17182 (replace_mult_candidate): Take a widest_int instead of a double_int.
17183 (replace_unconditional_candidate): Use wide-int interfaces.
17184 (incr_vec_index): Take a widest_int instead of a double_int.
17185 (create_add_on_incoming_edge): Likewise.
17186 (create_phi_basis): Use wide-int interfaces.
17187 (replace_conditional_candidate): Likewise.
17188 (record_increment): Take a widest_int instead of a double_int.
17189 (record_phi_increments): Use wide-int interfaces.
17190 (phi_incr_cost): Take a widest_int instead of a double_int.
17191 (lowest_cost_path): Likewise.
17192 (total_savings): Likewise.
17193 (analyze_increments): Use wide-int interfaces.
17194 (ncd_with_phi): Take a widest_int instead of a double_int.
17195 (ncd_of_cand_and_phis): Likewise.
17196 (nearest_common_dominator_for_cands): Likewise.
17197 (insert_initializers): Use wide-int interfaces.
17198 (all_phi_incrs_profitable): Likewise.
17199 (replace_one_candidate): Likewise.
17200 (replace_profitable_candidates): Likewise.
17201 * godump.c: Include wide-int-print.h.
17202 (go_output_typedef): Use wide-int interfaces.
17203 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17204 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17205 (build_loop_iteration_domains): Likewise.
17206 * hooks.h: Include wide-int.h rather than double-int.h.
17207 (hook_bool_dint_dint_uint_bool_true): Delete.
17208 (hook_bool_wint_wint_uint_bool_true): Declare.
17209 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17210 (hook_bool_wint_wint_uint_bool_true): New.
17211 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17212 interfaces.
17213 (ubsan_expand_si_overflow_mul_check): Likewise.
17214 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17215 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17216 (get_ancestor_addr_info): Likewise.
17217 (ipa_modify_call_arguments): Likewise.
17218 * loop-doloop.c (doloop_modify): Likewise.
17219 (doloop_optimize): Likewise.
17220 * loop-iv.c (iv_number_of_iterations): Likewise.
17221 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17222 (unroll_loop_constant_iterations): Likewise.
17223 (decide_unroll_runtime_iterations): Likewise.
17224 (unroll_loop_runtime_iterations): Likewise.
17225 (decide_peel_simple): Likewise.
17226 (decide_unroll_stupid): Likewise.
17227 * lto-streamer-in.c (streamer_read_wi): Add.
17228 (input_cfg): Use wide-int interfaces.
17229 (lto_input_tree_1): Likewise.
17230 * lto-streamer-out.c (streamer_write_wi): Add.
17231 (hash_tree): Use wide-int interfaces.
17232 (output_cfg): Likewise.
17233 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17234 (GTFILES): Add wide-int.h and signop.h.
17235 (TAGS): Look for .cc files too.
17236 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17237 * optabs.c (expand_subword_shift): Likewise.
17238 (expand_doubleword_shift): Likewise.
17239 (expand_absneg_bit): Likewise.
17240 (expand_copysign_absneg): Likewise.
17241 (expand_copysign_bit): Likewise.
17242 * postreload.c (reload_cse_simplify_set): Likewise.
17243 * predict.c (predict_iv_comparison): Likewise.
17244 * pretty-print.h: Include wide-int-print.h.
17245 (pp_wide_int) New.
17246 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17247 * print-tree.c: Include wide-int-print.h.
17248 (print_node_brief): Use wide-int interfaces.
17249 (print_node): Likewise.
17250 * read-rtl.c (validate_const_wide_int): New.
17251 (read_rtx_code): Add CONST_WIDE_INT case.
17252 * real.c: Include wide-int.h.
17253 (real_to_integer2): Delete.
17254 (real_to_integer): New function, returning a wide_int.
17255 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17256 (ten_to_ptwo): Update call to real_from_integer.
17257 (real_digit): Likewise.
17258 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17259 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17260 (REAL_VALUE_TO_INT): Delete.
17261 (real_to_integer): Declare a wide-int form.
17262 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17263 * recog.c (const_int_operand): Improve comment.
17264 (const_scalar_int_operand): New.
17265 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17266 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17267 (split_double): Likewise.
17268 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17269 (rtx_size): Likewise.
17270 (rtx_alloc_stat_v): New.
17271 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17272 (cwi_output_hex): New.
17273 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17274 (cwi_check_failed_bounds): New.
17275 * rtl.def (CONST_WIDE_INT): New.
17276 * rtl.h: Include <utility> and wide-int.h.
17277 (struct hwivec_def): New.
17278 (CWI_GET_NUM_ELEM): New.
17279 (CWI_PUT_NUM_ELEM): New.
17280 (struct rtx_def): Add num_elem and hwiv.
17281 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17282 (CASE_CONST_UNIQUE): Likewise.
17283 (CASE_CONST_ANY): Likewise.
17284 (CONST_SCALAR_INT_P): Likewise.
17285 (CONST_WIDE_INT_P): New.
17286 (CWI_ELT): New.
17287 (HWIVEC_CHECK): New.
17288 (cwi_check_failed_bounds): New.
17289 (CWI_ELT): New.
17290 (HWIVEC_CHECK): New.
17291 (CONST_WIDE_INT_VEC) New.
17292 (CONST_WIDE_INT_NUNITS) New.
17293 (CONST_WIDE_INT_ELT) New.
17294 (rtx_mode_t): New type.
17295 (wi::int_traits <rtx_mode_t>): New.
17296 (wi::shwi): New.
17297 (wi::min_value): New.
17298 (wi::max_value): New.
17299 (rtx_alloc_v) New.
17300 (const_wide_int_alloc): New.
17301 (immed_wide_int_const): New.
17302 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17303 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17304 * signop.h: New file.
17305 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17306 (simplify_const_unary_operation): Use wide-int interfaces.
17307 (simplify_binary_operation_1): Likewise.
17308 (simplify_const_binary_operation): Likewise.
17309 (simplify_const_relational_operation): Likewise.
17310 (simplify_immed_subreg): Likewise.
17311 * stmt.c (expand_case): Likewise.
17312 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17313 signop rather than a bool.
17314 * stor-layout.c (layout_type): Use wide-int interfaces.
17315 (initialize_sizetypes): Update calls to
17316 set_min_and_max_values_for_integral_type.
17317 (set_min_and_max_values_for_integral_type): Take a signop rather
17318 than a bool. Use wide-int interfaces.
17319 (fixup_signed_type): Update accordingly. Remove
17320 HOST_BITS_PER_DOUBLE_INT limit.
17321 (fixup_unsigned_type): Likewise.
17322 * system.h (STATIC_CONSTANT_P): New.
17323 (STATIC_ASSERT): New.
17324 * target.def (can_use_doloop_p): Take widest_ints rather than
17325 double_ints.
17326 * target.h: Include wide-int.h rather than double-int.h.
17327 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17328 than double_ints.
17329 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17330 rather than INT_CST_LT_UNSIGNED.
17331 (can_use_doloop_if_innermost): Take widest_ints rather than
17332 double_ints.
17333 * tree-affine.c: Include wide-int-print.h.
17334 (double_int_ext_for_comb): Delete.
17335 (wide_int_ext_for_comb): New.
17336 (aff_combination_zero): Use wide-int interfaces.
17337 (aff_combination_const): Take a widest_int instead of a double_int.
17338 (aff_combination_elt): Use wide-int interfaces.
17339 (aff_combination_scale): Take a widest_int instead of a double_int.
17340 (aff_combination_add_elt): Likewise.
17341 (aff_combination_add_cst): Likewise.
17342 (aff_combination_add): Use wide-int interfaces.
17343 (aff_combination_convert): Likewise.
17344 (tree_to_aff_combination): Likewise.
17345 (add_elt_to_tree): Take a widest_int instead of a double_int.
17346 (aff_combination_to_tree): Use wide-int interfaces.
17347 (aff_combination_remove_elt): Likewise.
17348 (aff_combination_add_product): Take a widest_int instead of
17349 a double_int.
17350 (aff_combination_mult): Use wide-int interfaces.
17351 (aff_combination_expand): Likewise.
17352 (double_int_constant_multiple_p): Delete.
17353 (wide_int_constant_multiple_p): New.
17354 (aff_combination_constant_multiple_p): Take a widest_int pointer
17355 instead of a double_int pointer.
17356 (print_aff): Use wide-int interfaces.
17357 (get_inner_reference_aff): Take a widest_int pointer
17358 instead of a double_int pointer.
17359 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17360 * tree-affine.h: Include wide-int.h.
17361 (struct aff_comb_elt): Change type of coef to widest_int.
17362 (struct affine_tree_combination): Change type of offset to widest_int.
17363 (double_int_ext_for_comb): Delete.
17364 (wide_int_ext_for_comb): New.
17365 (aff_combination_const): Use widest_int instead of double_int.
17366 (aff_combination_scale): Likewise.
17367 (aff_combination_add_elt): Likewise.
17368 (aff_combination_constant_multiple_p): Likewise.
17369 (get_inner_reference_aff): Likewise.
17370 (aff_comb_cannot_overlap_p): Likewise.
17371 (aff_combination_zero_p): Use wide-int interfaces.
17372 * tree.c: Include tree.h.
17373 (init_ttree): Use make_int_cst.
17374 (tree_code_size): Removed code for INTEGER_CST case.
17375 (tree_size): Add INTEGER_CST case.
17376 (make_node_stat): Update comment.
17377 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17378 (build_int_cst_type): Use wide-int interfaces.
17379 (double_int_to_tree): Likewise.
17380 (double_int_fits_to_tree_p): Delete.
17381 (force_fit_type_double): Delete.
17382 (force_fit_type): New.
17383 (int_cst_hash_hash): Use wide-int interfaces.
17384 (int_cst_hash_eq): Likewise.
17385 (build_int_cst_wide): Delete.
17386 (wide_int_to_tree): New.
17387 (cache_integer_cst): Use wide-int interfaces.
17388 (build_low_bits_mask): Likewise.
17389 (cst_and_fits_in_hwi): Likewise.
17390 (real_value_from_int_cst): Likewise.
17391 (make_int_cst_stat): New.
17392 (integer_zerop): Use wide_int interfaces.
17393 (integer_onep): Likewise.
17394 (integer_all_onesp): Likewise.
17395 (integer_pow2p): Likewise.
17396 (integer_nonzerop): Likewise.
17397 (tree_log2): Likewise.
17398 (tree_floor_log2): Likewise.
17399 (tree_ctz): Likewise.
17400 (int_size_in_bytes): Likewise.
17401 (mem_ref_offset): Return an offset_int rather than a double_int.
17402 (build_type_attribute_qual_variant): Use wide_int interfaces.
17403 (type_hash_eq): Likewise
17404 (tree_int_cst_equal): Likewise.
17405 (tree_int_cst_lt): Delete.
17406 (tree_int_cst_compare): Likewise.
17407 (tree_fits_shwi_p): Use wide_int interfaces.
17408 (tree_fits_uhwi_p): Likewise.
17409 (tree_int_cst_sign_bit): Likewise.
17410 (tree_int_cst_sgn): Likewise.
17411 (tree_int_cst_min_precision): Take a signop rather than a bool.
17412 (simple_cst_equal): Use wide_int interfaces.
17413 (compare_tree_int): Likewise.
17414 (iterative_hash_expr): Likewise.
17415 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17416 INT_CST_LT.
17417 (get_type_static_bounds): Use wide_int interfaces.
17418 (tree_int_cst_elt_check_failed): New.
17419 (build_common_tree_nodes): Reordered to set prec before filling in
17420 value.
17421 (int_cst_value): Check cst_and_fits_in_hwi.
17422 (widest_int_cst_value): Use wide_int interfaces.
17423 (upper_bound_in_type): Likewise.
17424 (lower_bound_in_type): Likewise.
17425 (num_ending_zeros): Likewise.
17426 (drop_tree_overflow): Likewise.
17427 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17428 (gen_conditions_for_pow_cst_base): Likewise.
17429 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17430 (group_case_labels_stmt): Use wide-int interfaces.
17431 (verify_gimple_assign_binary): Likewise.
17432 (print_loop): Likewise.
17433 * tree-chrec.c (tree_fold_binomial): Likewise.
17434 * tree-core.h (struct tree_base): Add int_length.
17435 (struct tree_int_cst): Change rep of value.
17436 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17437 (dr_may_alias_p): Likewise.
17438 (max_stmt_executions_tree): Likewise.
17439 * tree.def (INTEGER_CST): Update comment.
17440 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17441 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17442 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17443 (dequeue_and_dump): Use wide-int interfaces.
17444 * tree.h: Include wide-int.h.
17445 (NULL_TREE): Moved to earlier loc in file.
17446 (TREE_INT_CST_ELT_CHECK): New.
17447 (tree_int_cst_elt_check_failed): New.
17448 (TYPE_SIGN): New.
17449 (TREE_INT_CST): Delete.
17450 (TREE_INT_CST_LOW): Use wide-int interfaces.
17451 (TREE_INT_CST_HIGH): Delete.
17452 (TREE_INT_CST_NUNITS): New.
17453 (TREE_INT_CST_EXT_NUNITS): Likewise.
17454 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17455 (TREE_INT_CST_ELT): Likewise.
17456 (INT_CST_LT): Delete.
17457 (tree_int_cst_elt_check): New (two forms).
17458 (type_code_size): Update comment.
17459 (make_int_cst_stat, make_int_cst): New.
17460 (tree_to_double_int): Delete.
17461 (double_int_fits_to_tree_p): Delete.
17462 (force_fit_type_double): Delete.
17463 (build_int_cstu): Replace with out-of-line function.
17464 (build_int_cst_wide): Delete.
17465 (tree_int_cst_lt): Define inline.
17466 (tree_int_cst_le): New.
17467 (tree_int_cst_compare): Define inline.
17468 (tree_int_cst_min_precision): Take a signop rather than a bool.
17469 (wi::int_traits <const_tree>): New.
17470 (wi::int_traits <tree>): New.
17471 (wi::extended_tree): New.
17472 (wi::int_traits <wi::extended_tree>): New.
17473 (wi::to_widest): New.
17474 (wi::to_offset): New.
17475 (wi::fits_to_tree_p): New.
17476 (wi::min_value): New.
17477 (wi::max_value): New.
17478 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17479 (copy_tree_body_r): Likewise.
17480 * tree-object-size.c (compute_object_offset): Likewise.
17481 (addr_object_size): Likewise.
17482 * tree-predcom.c: Include wide-int-print.h.
17483 (struct dref_d): Change type of offset to widest_int.
17484 (dump_dref): Call wide-int printer.
17485 (aff_combination_dr_offset): Use wide-int interfaces.
17486 (determine_offset): Take a widest_int pointer rather than a
17487 double_int pointer.
17488 (split_data_refs_to_components): Use wide-int interfaces.
17489 (suitable_component_p): Likewise.
17490 (order_drefs): Likewise.
17491 (add_ref_to_chain): Likewise.
17492 (valid_initializer_p): Likewise.
17493 (determine_roots_comp): Likewise.
17494 * tree-pretty-print.c: Include wide-int-print.h.
17495 (dump_generic_node): Use wide-int interfaces.
17496 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17497 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17498 (move_fixed_address_to_symbol): Likewise.
17499 (move_hint_to_base): Likewise.
17500 (move_pointer_to_base): Likewise.
17501 (move_variant_to_index): Likewise.
17502 (most_expensive_mult_to_index): Likewise.
17503 (addr_to_parts): Likewise.
17504 (copy_ref_info): Likewise.
17505 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17506 (indirect_refs_may_alias_p): Likewise.
17507 (stmt_kills_ref_p_1): Likewise.
17508 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17509 * tree-ssa-ccp.c: Update comment at top of file. Include
17510 wide-int-print.h.
17511 (struct prop_value_d): Change type of mask to widest_int.
17512 (extend_mask): New function.
17513 (dump_lattice_value): Use wide-int interfaces.
17514 (get_default_value): Likewise.
17515 (set_constant_value): Likewise.
17516 (set_value_varying): Likewise.
17517 (valid_lattice_transition): Likewise.
17518 (set_lattice_value): Likewise.
17519 (value_to_double_int): Delete.
17520 (value_to_wide_int): New.
17521 (get_value_from_alignment): Use wide-int interfaces.
17522 (get_value_for_expr): Likewise.
17523 (do_dbg_cnt): Likewise.
17524 (ccp_finalize): Likewise.
17525 (ccp_lattice_meet): Likewise.
17526 (bit_value_unop_1): Use widest_ints rather than double_ints.
17527 (bit_value_binop_1): Likewise.
17528 (bit_value_unop): Use wide-int interfaces.
17529 (bit_value_binop): Likewise.
17530 (bit_value_assume_aligned): Likewise.
17531 (evaluate_stmt): Likewise.
17532 (ccp_fold_stmt): Likewise.
17533 (visit_cond_stmt): Likewise.
17534 (ccp_visit_stmt): Likewise.
17535 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17536 (constant_pointer_difference): Likewise.
17537 (associate_pointerplus): Likewise.
17538 (combine_conversions): Likewise.
17539 * tree-ssa-loop.h: Include wide-int.h.
17540 (struct tree_niter_desc): Change type of max to widest_int.
17541 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17542 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17543 (remove_redundant_iv_tests): Likewise.
17544 (canonicalize_loop_induction_variables): Likewise.
17545 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17546 (constant_multiple_of): Take a widest_int pointer instead of
17547 a double_int pointer.
17548 (get_computation_aff): Use wide-int interfaces.
17549 (ptr_difference_cost): Likewise.
17550 (difference_cost): Likewise.
17551 (get_loop_invariant_expr_id): Likewise.
17552 (get_computation_cost_at): Likewise.
17553 (iv_elimination_compare_lt): Likewise.
17554 (may_eliminate_iv): Likewise.
17555 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17556 instead of double_int.
17557 (max_loop_iterations): Likewise.
17558 (max_stmt_executions): Likewise.
17559 (estimated_stmt_executions): Likewise.
17560 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17561 (split_to_var_and_offset): Use wide-int interfaces.
17562 (determine_value_range): Likewise.
17563 (bound_difference_of_offsetted_base): Likewise.
17564 (bounds_add): Take a widest_int instead of a double_int.
17565 (number_of_iterations_ne_max): Use wide-int interfaces.
17566 (number_of_iterations_ne): Likewise.
17567 (number_of_iterations_lt_to_ne): Likewise.
17568 (assert_loop_rolls_lt): Likewise.
17569 (number_of_iterations_lt): Likewise.
17570 (number_of_iterations_le): Likewise.
17571 (number_of_iterations_cond): Likewise.
17572 (number_of_iterations_exit): Likewise.
17573 (finite_loop_p): Likewise.
17574 (derive_constant_upper_bound_assign): Likewise.
17575 (derive_constant_upper_bound): Return a widest_int.
17576 (derive_constant_upper_bound_ops): Likewise.
17577 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17578 (record_estimate): Take a widest_int rather than a double_int.
17579 (record_nonwrapping_iv): Use wide-int interfaces.
17580 (double_int_cmp): Delete.
17581 (wide_int_cmp): New.
17582 (bound_index): Take a widest_int rather than a double_int.
17583 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17584 (maybe_lower_iteration_bound): Likewise.
17585 (estimate_numbers_of_iterations_loop): Likewise.
17586 (estimated_loop_iterations): Take a widest_int pointer than than
17587 a double_int pointer.
17588 (estimated_loop_iterations_int): Use wide-int interfaces.
17589 (max_loop_iterations): Take a widest_int pointer than than
17590 a double_int pointer.
17591 (max_loop_iterations_int): Use wide-int interfaces.
17592 (max_stmt_executions): Take a widest_int pointer than than
17593 a double_int pointer.
17594 (estimated_stmt_executions): Likewise.
17595 (n_of_executions_at_most): Use wide-int interfaces.
17596 (scev_probably_wraps_p): Likewise.
17597 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17598 to real_to_integer.
17599 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17600 interfaces.
17601 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17602 double_ints. Adjust for trailing_wide_ints <3> representation.
17603 (set_nonzero_bits): Likewise.
17604 (get_range_info): Return wide_ints rather than double_ints.
17605 Adjust for trailing_wide_ints <3> representation.
17606 (get_nonzero_bits): Likewise.
17607 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17608 representation.
17609 * tree-ssanames.h (struct range_info_def): Replace min, max and
17610 nonzero_bits with a trailing_wide_ints <3>.
17611 (set_range_info): Use wide_int_refs rather than double_ints.
17612 (set_nonzero_bits): Likewise.
17613 (get_range_info): Return wide_ints rather than double_ints.
17614 (get_nonzero_bits): Likewise.
17615 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17616 * tree-ssa-pre.c (phi_translate_1): Likewise.
17617 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17618 (acceptable_pow_call): Likewise.
17619 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17620 interfaces.
17621 (vn_reference_fold_indirect): Likewise.
17622 (vn_reference_maybe_forwprop_address): Likewise.
17623 (valueize_refs_1): Likewise.
17624 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17625 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17626 tree_int_cst_lt and tree_int_cst_le.
17627 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17628 interfaces.
17629 (streamer_alloc_tree): Likewise.
17630 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17631 (streamer_write_tree_header): Likewise.
17632 (streamer_write_integer_cst): Likewise.
17633 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17634 (build_constructors): Likewise.
17635 (array_value_type): Likewise.
17636 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17637 (vect_check_gather): Likewise.
17638 * tree-vect-generic.c (build_replicated_const): Likewise.
17639 (expand_vector_divmod): Likewise.
17640 * tree-vect-loop.c (vect_transform_loop): Likewise.
17641 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17642 (vect_do_peeling_for_alignment): Likewise.
17643 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17644 * tree-vrp.c: Include wide-int.h.
17645 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17646 (extract_range_from_assert): Use wide-int interfaces.
17647 (vrp_int_const_binop): Likewise.
17648 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17649 double_int pointers.
17650 (ranges_from_anti_range): Use wide-int interfaces.
17651 (quad_int_cmp): Delete.
17652 (quad_int_pair_sort): Likewise.
17653 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17654 (extract_range_from_unary_expr_1): Likewise.
17655 (adjust_range_with_scev): Likewise.
17656 (masked_increment): Take and return wide_ints rather than double_ints.
17657 (register_edge_assert_for_2): Use wide-int interfaces.
17658 (check_array_ref): Likewise.
17659 (search_for_addr_array): Likewise.
17660 (maybe_set_nonzero_bits): Likewise.
17661 (union_ranges): Pass an integer of the correct type instead of
17662 using integer_one_node.
17663 (intersect_ranges): Likewise.
17664 (simplify_truth_ops_using_ranges): Likewise.
17665 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17666 (range_fits_type_p): Likewise.
17667 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17668 a bool.
17669 (simplify_conversion_using_ranges): Use wide-int interfaces.
17670 (simplify_float_conversion_using_ranges): Likewise.
17671 (vrp_finalize): Likewise.
17672 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17673 (gimple_stringops_transform): Likewise.
17674 * varasm.c (decode_addr_const): Likewise.
17675 (const_hash_1): Likewise.
17676 (const_rtx_hash_1): Likewise
17677 (output_constant): Likewise.
17678 (array_size_for_constructor): Likewise.
17679 (output_constructor_regular_field): Likewise.
17680 (output_constructor_bitfield): Likewise.
17681 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17682 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17683 GENERATOR_FILEs.
17684 * gencheck.c: Define BITS_PER_UNIT.
17685 * wide-int.cc: New.
17686 * wide-int.h: New.
17687 * wide-int-print.cc: New.
17688 * wide-int-print.h: New.
17689
17690 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17691
17692 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17693
17694 2014-05-06 Richard Biener <rguenther@suse.de>
17695
17696 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17697 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17698 (TODO_verify_all): Adjust.
17699 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17700 TODO_verify_stmts and TODO_verify_rtl_sharing.
17701 * bb-reorder.c: Likewise.
17702 * cfgexpand.c: Likewise.
17703 * cprop.c: Likewise.
17704 * cse.c: Likewise.
17705 * function.c: Likewise.
17706 * fwprop.c: Likewise.
17707 * gcse.c: Likewise.
17708 * gimple-ssa-isolate-paths.c: Likewise.
17709 * gimple-ssa-strength-reduction.c: Likewise.
17710 * ipa-split.c: Likewise.
17711 * loop-init.c: Likewise.
17712 * loop-unroll.c: Likewise.
17713 * lower-subreg.c: Likewise.
17714 * modulo-sched.c: Likewise.
17715 * postreload-gcse.c: Likewise.
17716 * predict.c: Likewise.
17717 * recog.c: Likewise.
17718 * sched-rgn.c: Likewise.
17719 * store-motion.c: Likewise.
17720 * tracer.c: Likewise.
17721 * trans-mem.c: Likewise.
17722 * tree-call-cdce.c: Likewise.
17723 * tree-cfg.c: Likewise.
17724 * tree-cfgcleanup.c: Likewise.
17725 * tree-complex.c: Likewise.
17726 * tree-eh.c: Likewise.
17727 * tree-emutls.c: Likewise.
17728 * tree-if-conv.c: Likewise.
17729 * tree-into-ssa.c: Likewise.
17730 * tree-loop-distribution.c: Likewise.
17731 * tree-object-size.c: Likewise.
17732 * tree-parloops.c: Likewise.
17733 * tree-pass.h: Likewise.
17734 * tree-sra.c: Likewise.
17735 * tree-ssa-ccp.c: Likewise.
17736 * tree-ssa-copy.c: Likewise.
17737 * tree-ssa-copyrename.c: Likewise.
17738 * tree-ssa-dce.c: Likewise.
17739 * tree-ssa-dom.c: Likewise.
17740 * tree-ssa-dse.c: Likewise.
17741 * tree-ssa-forwprop.c: Likewise.
17742 * tree-ssa-ifcombine.c: Likewise.
17743 * tree-ssa-loop-ch.c: Likewise.
17744 * tree-ssa-loop-ivcanon.c: Likewise.
17745 * tree-ssa-loop.c: Likewise.
17746 * tree-ssa-math-opts.c: Likewise.
17747 * tree-ssa-phiopt.c: Likewise.
17748 * tree-ssa-phiprop.c: Likewise.
17749 * tree-ssa-pre.c: Likewise.
17750 * tree-ssa-reassoc.c: Likewise.
17751 * tree-ssa-sink.c: Likewise.
17752 * tree-ssa-strlen.c: Likewise.
17753 * tree-ssa-tail-merge.c: Likewise.
17754 * tree-ssa-uncprop.c: Likewise.
17755 * tree-switch-conversion.c: Likewise.
17756 * tree-tailcall.c: Likewise.
17757 * tree-vect-generic.c: Likewise.
17758 * tree-vectorizer.c: Likewise.
17759 * tree-vrp.c: Likewise.
17760 * tsan.c: Likewise.
17761 * var-tracking.c: Likewise.
17762 * bt-load.c: Likewise.
17763 * cfgcleanup.c: Likewise.
17764 * combine-stack-adj.c: Likewise.
17765 * combine.c: Likewise.
17766 * compare-elim.c: Likewise.
17767 * config/epiphany/resolve-sw-modes.c: Likewise.
17768 * config/i386/i386.c: Likewise.
17769 * config/mips/mips.c: Likewise.
17770 * config/s390/s390.c: Likewise.
17771 * config/sh/sh_treg_combine.cc: Likewise.
17772 * config/sparc/sparc.c: Likewise.
17773 * dce.c: Likewise.
17774 * dse.c: Likewise.
17775 * final.c: Likewise.
17776 * ifcvt.c: Likewise.
17777 * mode-switching.c: Likewise.
17778 * passes.c: Likewise.
17779 * postreload.c: Likewise.
17780 * ree.c: Likewise.
17781 * reg-stack.c: Likewise.
17782 * regcprop.c: Likewise.
17783 * regrename.c: Likewise.
17784 * web.c: Likewise.
17785
17786 2014-05-06 Richard Biener <rguenther@suse.de>
17787
17788 PR middle-end/61070
17789 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17790 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17791
17792 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17793
17794 PR ipa/60965
17795 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17796
17797 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17798 Tom de Vries <tom@codesourcery.com>
17799
17800 * target.def (call_fusage_contains_non_callee_clobbers): New
17801 DEFHOOKPOD.
17802 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17803 Hooks to @menu.
17804 (@node Miscellaneous Register Hooks): New node.
17805 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17806 * doc/tm.texi: Regenerate.
17807
17808 2014-05-05 Marek Polacek <polacek@redhat.com>
17809
17810 PR driver/61065
17811 * opts.c (common_handle_option): Call error_at instead of warning_at.
17812
17813 2014-05-05 Richard Biener <rguenther@suse.de>
17814
17815 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17816 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17817 under the TODO_verify_il umbrella.
17818
17819 2014-05-05 Richard Biener <rguenther@suse.de>
17820
17821 * passes.c (execute_function_todo): Move TODO_verify_flow under
17822 the TODO_verify_ul umbrella.
17823
17824 2014-05-05 Richard Biener <rguenther@suse.de>
17825
17826 PR middle-end/61010
17827 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17828 X & CST away from a CST that is the mask of a mode.
17829
17830 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17831
17832 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17833 int argument to enum machine_mode.
17834 (picochip_class_max_nregs): Ditto.
17835 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17836 (picochip_class_max_nregs): Ditto.
17837
17838 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17839
17840 * target.def: Add new target hook.
17841 * doc/tm.texi: Regenerate.
17842 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17843 * targhooks.c (default_keep_leaf_when_profiled): New function.
17844
17845 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17846 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17847
17848 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17849
17850 PR tree-optimization/60363
17851 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17852 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17853 (update_destination_phis): New parameter.
17854 (create_edge_and_update_destination_phis): Ditto.
17855 (ssa_fix_duplicate_block_edges): Pass new arguments.
17856 (thread_single_edge): Ditto.
17857
17858 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17859
17860 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17861 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17862 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17863 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17864 Use RS6000_BTM_HARD_FLOAT.
17865 (BU_MISC_2): Likewise.
17866 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17867 RS6000_BTM_HARD_FLOAT.
17868 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17869 is explicitly used.
17870 (rs6000_invalid_builtin): Add hard floating builtin support.
17871 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17872 hard float builtins.
17873 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17874
17875 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17876
17877 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17878 Add missing function* argument.
17879
17880 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17881
17882 * lra-constraints.c (valid_address_p): Move earlier in file.
17883 Add a constraint argument to the address_info version.
17884 (satisfies_memory_constraint_p): New function.
17885 (satisfies_address_constraint_p): Likewise.
17886 (process_alt_operands, curr_insn_transform): Use them.
17887 (process_address): Pass the constraint to valid_address_p when
17888 checking address operands.
17889
17890 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17891
17892 * config/mips/mips.c (mips_isa_rev): New variable.
17893 (mips_set_architecture): Set it.
17894 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17895 from mips_isa_rev.
17896 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17897 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17898 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17899 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17900 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17901 conditions in terms of mips_isa_rev.
17902 (mips_isa_rev): Declare.
17903
17904 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17905
17906 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17907 (prob_unlikely, prob_likely): Make variables const.
17908
17909 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17910
17911 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17912
17913 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17914
17915 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17916
17917 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17918
17919 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17920 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17921 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17922 functions.
17923 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17924 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17925 sh_pass_in_reg_p.
17926 Replace usage of ROUND_REG with sh_round_reg.
17927 Use CEIL instead of ROUND_ADVANCE.
17928
17929 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17930
17931 PR target/61026
17932 * config/sh/sh.c: Include stdlib headers before everything else.
17933
17934 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17935
17936 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17937 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17938 (gimplify_adjust_omp_clauses): Simd region is never
17939 directly nested in combined parallel. Instead, for linear
17940 with copyin/copyout, if in combined for simd loop, make decl
17941 firstprivate/lastprivate on OMP_FOR.
17942 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17943 expand_omp_for_static_chunk): When setting endvar, also set
17944 fd->loop.v to the same value.
17945
17946 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17947
17948 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17949
17950 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17951
17952 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17953 expression.
17954
17955 2014-05-02 Marek Polacek <polacek@redhat.com>
17956
17957 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17958
17959 2014-05-02 Kito Cheng <kito@0xlab.org>
17960
17961 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17962 to a C expression marco.
17963 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17964 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17965 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17966 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17967 HONOR_REG_ALLOC_ORDER.
17968 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17969
17970 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17971
17972 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17973
17974 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17975
17976 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17977
17978 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17979
17980 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17981 (convert_scalar_cond_reduction): Likewise.
17982 (predicate_scalar_phi): Add recognition and transformation
17983 of simple conditioanl reduction to be vectorizable.
17984
17985 2014-05-01 Marek Polacek <polacek@redhat.com>
17986
17987 PR c/43245
17988 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17989
17990 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17991
17992 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17993 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17994 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17995 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17996 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17997 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17998 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17999 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18000
18001 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18002
18003 * config/arc/arc.opt (mlra): Move comment above option name
18004 to avoid mis-parsing as language options.
18005
18006 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18007
18008 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18009 * config/sol2.h: ... here.
18010 * config/sol2-10.h: Remove.
18011
18012 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18013 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18014 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18015 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18016 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18017 * config/sol2.h: ... here.
18018 (SECTION_NAME_FORMAT): Don't redefine.
18019 (STARTFILE_ARCH32_SPEC): Rename to ...
18020 (STARTFILE_ARCH_SPEC): ... this.
18021 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18022 * config/sparc/sol2.h: ... here.
18023 (SECTION_NAME_FORMAT): Don't undef.
18024 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18025 (SUBTARGET_EXTRA_SPECS): Remove.
18026 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18027
18028 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18029 (MD_STARTFILE_PREFIX): Remove.
18030 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18031 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18032 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18033 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18034 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18035 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18036 * config/i386/sol2.h: ... here.
18037 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18038 * config/i386/sol2-bi.h: Remove.
18039 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18040 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18041
18042 * config/i386/t-sol2-64: Rename to ...
18043 * config/i386/t-sol2: ... this.
18044 * config/sparc/t-sol2-64: Rename to ...
18045 * config/sparc/t-sol2: ... this.
18046
18047 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18048 sol2_tm_file_head, sol2_tm_file_tail.
18049 Include ${cpu_type}/sol2.h before sol2.h.
18050 Remove sol2-10.h.
18051 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18052 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18053 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18054 Reflect i386/t-sol2-64 renaming.
18055 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18056 Reflect sparc/t-sol2-64 renaming.
18057
18058 2014-04-30 Richard Biener <rguenther@suse.de>
18059
18060 * passes.c (execute_function_todo): Move TODO_verify_stmts
18061 and TODO_verify_ssa under the TODO_verify_il umbrella.
18062 * tree-ssa.h (verify_ssa): Adjust prototype.
18063 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18064 we should verify SSA operands.
18065 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18066 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18067 whether we should verify whether not throwing stmts have EH info.
18068 * graphite-scop-detection.c (create_sese_edges): Adjust.
18069 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18070 * tree-eh.c (lower_try_finally_switch): Do not add the
18071 default case label twice.
18072
18073 2014-04-30 Marek Polacek <polacek@redhat.com>
18074
18075 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18076 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18077 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18078 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18079
18080 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18081
18082 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18083 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18084 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18085 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18086 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18087 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18088 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18089 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18090
18091 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18092
18093 * tree-cfg.c (dump_function_to_file): Dump the return type of
18094 functions, in a line to itself before the function body, mimicking
18095 the layout of a C function.
18096
18097 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18098
18099 PR tree-optimization/60971
18100 * tree-tailcall.c (process_assignment): Reject conversions which
18101 reduce precision.
18102
18103 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18104
18105 * calls.c (initialize_argument_information): Always treat
18106 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18107 (expand_call): Likewise.
18108 (emit_library_call_calue_1): Likewise.
18109 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18110 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18111 code accordingly.
18112
18113 2014-04-29 Nick Clifton <nickc@redhat.com>
18114
18115 * config/msp430/msp430.md (umulsidi): Fix typo.
18116 (mulhisi3): Enable even inside interrupt handlers.
18117 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18118 bigger return address pushed in large mode.
18119
18120 2014-04-29 Nick Clifton <nickc@redhat.com>
18121
18122 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18123 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18124 available modes.
18125 * config/m32r/m32r.c (init_reg_tables): Likewise.
18126 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18127 enum to hold the modes.
18128
18129 2014-04-29 Richard Biener <rguenther@suse.de>
18130
18131 * dominance.c (free_dominance_info): Add overload with
18132 function parameter.
18133 (dom_info_state): Likewise.
18134 (dom_info_available_p): Likewise.
18135 * basic-block.h (free_dominance_info, dom_info_state,
18136 dom_info_available_p): Declare overloads.
18137 * passes.c (execute_function_todo): Verify that verifiers
18138 don't change dominator info state. Drop dominator info
18139 for IPA pass invocations.
18140 * cgraph.c (release_function_body): Restore asserts that
18141 dominator information is released.
18142
18143 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18144
18145 * doc/invoke.texi: Fix typo.
18146 * tree-vrp.c: Fix typos.
18147 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18148
18149 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18150
18151 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18152
18153 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18154
18155 * config/aarch64/aarch64-builtins.c
18156 (aarch64_types_storestruct_lane_qualifiers): New.
18157 (TYPES_STORESTRUCT_LANE): Likewise.
18158 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18159 (st3_lane): Likewise.
18160 (st4_lane): Likewise.
18161 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18162 (vec_store_lanesci_lane<mode>): Likewise.
18163 (vec_store_lanesxi_lane<mode>): Likewise.
18164 (aarch64_st2_lane<VQ:mode>): Likewise.
18165 (aarch64_st3_lane<VQ:mode>): Likewise.
18166 (aarch64_st4_lane<VQ:mode>): Likewise.
18167 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18168 * config/aarch64/arm_neon.h
18169 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18170 use new macro arguments.
18171 (__ST3_LANE_FUNC): Likewise.
18172 (__ST4_LANE_FUNC): Likewise.
18173 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18174 (V_THREE_ELEM): Likewise.
18175 (V_FOUR_ELEM): Likewise.
18176
18177 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18178
18179 * doc/gimple.texi: Replace the description of the now-defunct
18180 union gimple_statement_d with a diagram showing the
18181 gimple_statement_base class hierarchy and its relationships to
18182 the GSS_ and GIMPLE_ enums.
18183
18184 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18185
18186 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18187 * config/aarch64/aarch64.c
18188 (aarch64_cannot_change_mode_class): Weaken conditions.
18189 (aarch64_modes_tieable_p): New.
18190 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18191
18192 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18193
18194 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18195 (loadsync_<mode>): Change mode.
18196 (load_quadpti, store_quadpti): New.
18197 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18198 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18199
18200 2014-04-28 Martin Jambor <mjambor@suse.cz>
18201
18202 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18203 same alias type as the original statement.
18204 (subreplacement_assignment_data): New type.
18205 (handle_unscalarized_data_in_subtree): New type of parameter,
18206 generate new memory accesses with same alias type as the original
18207 statement.
18208 (load_assign_lhs_subreplacements): Likewise.
18209 (sra_modify_constructor_assign): Generate new memory accesses with
18210 same alias type as the original statement.
18211
18212 2014-04-28 Richard Biener <rguenther@suse.de>
18213
18214 * tree-pass.h (TODO_verify_il): Define.
18215 (TODO_verify_all): Complete properly.
18216 * passes.c (execute_function_todo): Move existing loop-closed
18217 SSA verification under TODO_verify_il.
18218 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18219 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18220 Fix tree sharing issue.
18221
18222 2014-04-28 Richard Biener <rguenther@suse.de>
18223
18224 PR middle-end/60092
18225 * builtins.def (DEF_C11_BUILTIN): Add.
18226 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18227 * coretypes.h (enum function_class): Add function_c11_misc.
18228 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18229 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18230 (call_may_clobber_ref_p_1): Likewise.
18231 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18232 (mark_all_reaching_defs_necessary_1): Likewise.
18233 (propagate_necessity): Likewise.
18234 (eliminate_unnecessary_stmts): Likewise.
18235 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18236
18237 2014-04-28 Richard Biener <rguenther@suse.de>
18238
18239 * tree-vrp.c (vrp_var_may_overflow): Remove.
18240 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18241 with overflow immediately bump to one before that value and
18242 let iteration figure out overflow status.
18243
18244 2014-04-28 Richard Biener <rguenther@suse.de>
18245
18246 * configure.ac: Do valgrind header checks unconditionally.
18247 Add --enable-valgrind-annotations.
18248 * system.h: Guard valgrind header inclusion with
18249 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18250 * alloc-pool.c (pool_alloc, pool_free): Use
18251 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18252 to guard possibly dead code.
18253 * config.in: Regenerated.
18254 * configure: Likewise.
18255
18256 2014-04-28 Jeff Law <law@redhat.com>
18257
18258 PR tree-optimization/60902
18259 * tree-ssa-threadedge.c
18260 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18261 over real defs when invalidating outputs from statements that do not
18262 produce useful outputs for threading.
18263
18264 2014-04-28 Richard Biener <rguenther@suse.de>
18265
18266 PR tree-optimization/60979
18267 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18268 SCOPs that end in a block with a successor with abnormal
18269 predecessors.
18270
18271 2014-04-28 Richard Biener <rguenther@suse.de>
18272
18273 * tree-pass.h (execute_pass_list): Adjust prototype.
18274 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18275 (do_per_function): Change callback signature, push all actual
18276 work to the callbals.
18277 (do_per_function_toporder): Likewise.
18278 (execute_function_dump): Adjust.
18279 (execute_function_todo): Likewise.
18280 (clear_last_verified): Likewise.
18281 (verify_curr_properties): Likewise.
18282 (update_properties_after_pass): Likewise.
18283 (execute_pass_list_1): Split out from ...
18284 (execute_pass_list): ... here. Adjust.
18285 (execute_ipa_pass_list): Likewise.
18286 * cgraphunit.c (cgraph_add_new_function): Adjust.
18287 (analyze_function): Likewise.
18288 (expand_function): Likewise.
18289 * cgraph.c (release_function_body): Free dominance info
18290 here instead of asserting it was magically freed elsewhere.
18291
18292 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18293
18294 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18295 * configure: Regenerate.
18296 * config/sparc/sparc.opt (muser-mode): New option.
18297 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18298 for LEON3.
18299 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18300 * doc/invoke.texi (SPARC options): Document -muser-mode.
18301
18302 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18303
18304 * cselib.c (find_slot_memmode): Delete.
18305 (cselib_hasher): Change compare_type to a struct.
18306 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18307 constants.
18308 (preserve_constants_and_equivs): Adjust for new compare_type.
18309 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18310 (wrap_constant): Delete.
18311 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18312
18313 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18314
18315 * doc/install.texi (Building with profile feedback): Remove
18316 outdated sentence.
18317
18318 2014-04-26 Tom de Vries <tom@codesourcery.com>
18319
18320 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18321 array accesses.
18322
18323 2014-04-25 Cary Coutant <ccoutant@google.com>
18324
18325 PR debug/60929
18326 * dwarf2out.c (should_move_die_to_comdat): A type definition
18327 can contain a subprogram definition, but don't move it to a
18328 comdat unit.
18329 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18330 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18331 from original DIE.
18332 (clone_tree_hash): Rename to...
18333 (clone_tree_partial): ...this; change callers. Copy
18334 DW_TAG_subprogram DIEs as declarations.
18335 (copy_decls_walk): Don't copy children of a declaration into a
18336 type unit.
18337
18338 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18339
18340 PR target/60969
18341 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18342 alternative 12.
18343
18344 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18345
18346 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18347 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18348 reg for long_call.
18349 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18350 restriction.
18351
18352 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18353
18354 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18355
18356 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18357
18358 PR tree-optimization/60930
18359 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18360 creating a multiply candidate by folding two constant
18361 multiplicands when the result overflows.
18362
18363 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18364
18365 PR tree-optimization/60960
18366 * tree-vect-generic.c (expand_vector_operation): Only call
18367 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18368
18369 2014-04-25 Tom de Vries <tom@codesourcery.com>
18370
18371 * expr.c (clobber_reg_mode): New function.
18372 * expr.h (clobber_reg): New function.
18373
18374 2014-04-25 Tom de Vries <tom@codesourcery.com>
18375
18376 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18377 clobbers.
18378
18379 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18380 Tom de Vries <tom@codesourcery.com>
18381
18382 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18383 handle.
18384 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18385 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18386 new argument to find_all_hard_reg_sets call.
18387
18388 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18389
18390 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18391 Use HOST_WIDE_INT_C for mask literal.
18392 (aarch_rev16_shleft_mask_imm_p): Likewise.
18393
18394 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18395
18396 PR target/60941
18397 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18398
18399 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18400
18401 PR preprocessor/56540
18402 * config/i386/i386-c.c (ix86_target_macros): Define
18403 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18404
18405 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18406
18407 * configure.ac (tga_func): Remove.
18408 (LIB_TLS_SPEC): Remove.
18409 * configure: Regenerate.
18410 * config.in: Regenerate.
18411 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18412
18413 2014-04-25 Richard Biener <rguenther@suse.de>
18414
18415 PR ipa/60912
18416 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18417 call stmt use/clobber sets during stmt walk instead of
18418 walking the possibly incomplete set of caller edges.
18419
18420 2014-04-25 Richard Biener <rguenther@suse.de>
18421
18422 PR ipa/60911
18423 * passes.c (apply_ipa_transforms): Inline into only caller ...
18424 (execute_one_pass): ... here. Properly bring in function
18425 bodies for nodes we want to apply IPA transforms to.
18426
18427 2014-04-24 Cong Hou <congh@google.com>
18428
18429 PR tree-optimization/60896
18430 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18431 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18432 (vect_mark_pattern_stmts): Set the def type of all statements in
18433 PATTERN_DEF_SEQ as vect_internal_def.
18434
18435 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18436
18437 * doc/extend.texi (PowerPC Built-in Functions): Document new
18438 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18439 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18440
18441 * config/rs6000/predicates.md (const_0_to_3_operand): New
18442 predicate to match 0..3 integer constants.
18443
18444 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18445 to support adding miscellaneous builtin functions.
18446 (BU_DFP_MISC_2): Likewise.
18447 (BU_P7_MISC_1): Likewise.
18448 (BU_P7_MISC_2): Likewise.
18449 (BU_P8V_MISC_3): Likewise.
18450 (BU_MISC_1): Likewise.
18451 (BU_MISC_2): Likewise.
18452 (DIVWE): Add extended divide builtin functions.
18453 (DIVWEO): Likewise.
18454 (DIVWEU): Likewise.
18455 (DIVWEUO): Likewise.
18456 (DIVDE): Likewise.
18457 (DIVDEO): Likewise.
18458 (DIVDEU): Likewise.
18459 (DIVDEUO): Likewise.
18460 (DXEX): Add decimal floating-point builtin functions.
18461 (DXEXQ): Likewise.
18462 (DDEDPD): Likewise.
18463 (DDEDPDQ): Likewise.
18464 (DENBCD): Likewise.
18465 (DENBCDQ): Likewise.
18466 (DIEX): Likewise.
18467 (DIEXQ): Likewise.
18468 (DSCLI): Likewise.
18469 (DSCLIQ): Likewise.
18470 (DSCRI): Likewise.
18471 (DSCRIQ): Likewise.
18472 (CDTBCD): Add new BCD builtin functions.
18473 (CBCDTD): Likewise.
18474 (ADDG6S): Likewise.
18475 (BCDADD): Likewise.
18476 (BCDADD_LT): Likewise.
18477 (BCDADD_EQ): Likewise.
18478 (BCDADD_GT): Likewise.
18479 (BCDADD_OV): Likewise.
18480 (BCDSUB): Likewise.
18481 (BCDSUB_LT): Likewise.
18482 (BCDSUB_EQ): Likewise.
18483 (BCDSUB_GT): Likewise.
18484 (BCDSUB_OV): Likewise.
18485 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18486 (UNPACK_TD): Likewise.
18487 (PACK_TF): Likewise.
18488 (UNPACK_TF): Likewise.
18489 (UNPACK_TF_0): Likewise.
18490 (UNPACK_TF_1): Likewise.
18491 (PACK_V1TI): Likewise.
18492 (UNPACK_V1TI): Likewise.
18493
18494 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18495 support for decimal floating point builtin functions.
18496 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18497 functions that take constant arguments.
18498 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18499 (rs6000_init_builtins): Setup long double, _Decimal64, and
18500 _Decimal128 types for new builtin functions.
18501 (builtin_function_type): Set the unsigned flags appropriately for
18502 the new builtin functions.
18503 (rs6000_opt_masks): Add support for decimal floating point builtin
18504 functions.
18505
18506 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18507 floating point builtin functions.
18508 (RS6000_BTM_COMMON): Likewise.
18509 (RS6000_BTI_long_double): Likewise.
18510 (RS6000_BTI_dfloat64): Likewise.
18511 (RS6000_BTI_dfloat128): Likewise.
18512 (long_double_type_internal_node): Likewise.
18513 (dfloat64_type_internal_node): Likewise.
18514 (dfloat128_type_internal_node): Likewise.
18515
18516 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18517 2.07 bcd arithmetic instructions.
18518 (UNSPEC_BCDSUB): Likewise.
18519 (UNSPEC_BCD_OVERFLOW): Likewise.
18520 (UNSPEC_BCD_ADD_SUB): Likewise.
18521 (bcd_add_sub): Likewise.
18522 (BCD_TEST): Likewise.
18523 (bcd<bcd_add_sub>): Likewise.
18524 (bcd<bcd_add_sub>_test): Likewise.
18525 (bcd<bcd_add_sub>_test2): Likewise.
18526 (bcd<bcd_add_sub>_<code>): Likewise.
18527 (peephole2 for combined bcd ops): Likewise.
18528
18529 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18530 decimal floating point builtin functions.
18531 (UNSPEC_DENBCD): Likewise.
18532 (UNSPEC_DXEX): Likewise.
18533 (UNSPEC_DIEX): Likewise.
18534 (UNSPEC_DSCLI): Likewise.
18535 (UNSPEC_DSCRI): Likewise.
18536 (D64_D128): Likewise.
18537 (dfp_suffix): Likewise.
18538 (dfp_ddedpd_<mode>): Likewise.
18539 (dfp_denbcd_<mode>): Likewise.
18540 (dfp_dxex_<mode>): Likewise.
18541 (dfp_diex_<mode>): Likewise.
18542 (dfp_dscli_<mode>): Likewise.
18543 (dfp_dscri_<mode>): Likewise.
18544
18545 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18546 builtin functions.
18547 (UNSPEC_CDTBCD): Likewise.
18548 (UNSPEC_CBCDTD): Likewise.
18549 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18550 (UNSPEC_DIVEO): Likewise.
18551 (UNSPEC_DIVEU): Likewise.
18552 (UNSPEC_DIVEUO): Likewise.
18553 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18554 pack/unpack 128-bit types.
18555 (UNSPEC_PACK_128BIT): Likewise.
18556 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18557 (udiv<mode>3): Use idiv_ldiv mode attribute.
18558 (div<mode>3): Likewise.
18559 (addg6s): Add new BCD builtin functions.
18560 (cdtbcd): Likewise.
18561 (cbcdtd): Likewise.
18562 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18563 (div_extend): Likewise.
18564 (div<div_extend>_<mode>"): Likewise.
18565 (FP128_64): Add support for new builtin functions to pack/unpack
18566 128-bit types.
18567 (unpack<mode>): Likewise.
18568 (unpacktf_0): Likewise.
18569 (unpacktf_1): Likewise.
18570 (unpack<mode>_dm): Likewise.
18571 (unpack<mode>_nodm): Likewise.
18572 (pack<mode>): Likewise.
18573 (unpackv1ti): Likewise.
18574 (packv1ti): Likewise.
18575
18576 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18577
18578 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18579 is disabled.
18580
18581 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18582
18583 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18584 * gimplify.c (omp_is_private): Change last argument's type to int.
18585 Only diagnose lastprivate if the simd argument is 1, only diagnose
18586 linear if the simd argument is 2.
18587 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18588 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18589 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18590 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18591 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18592 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18593 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18594 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18595 * tree-nested.c (convert_nonlocal_omp_clauses,
18596 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18597
18598 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18599
18600 PR target/60822
18601 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18602 operand 1.
18603
18604 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18605
18606 * flag-types.h (enum ivar_visibility): Add.
18607
18608 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18609
18610 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18611 function * argument.
18612
18613 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18614
18615 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18616
18617 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18618 Tom de Vries <tom@codesourcery.com>
18619
18620 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18621 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18622 reg-note.
18623 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18624 * emit-rtl.c (try_split): Same.
18625
18626 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18627 Tom de Vries <tom@codesourcery.com>
18628
18629 * common.opt (fuse-caller-save): New option.
18630
18631 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18632
18633 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18634 elements for big-endian.
18635
18636 2014-04-24 Richard Biener <rguenther@suse.de>
18637
18638 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18639 during TER and instead use the sepops interface for expanding
18640 non-GIMPLE_SINGLE_RHS.
18641
18642 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18643
18644 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18645 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18646
18647 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18648
18649 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18650 assembler 64-bit option.
18651 * configure: Regenerate.
18652
18653 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18654
18655 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18656 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18657 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18658 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18659 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18660
18661 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18662
18663 * config/aarch64/aarch64-builtins.c
18664 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18665 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18666 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18667 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18668 builtins.
18669 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18670 (Vrevsuff): New mode attribute.
18671
18672 2014-04-24 Terry Guo <terry.guo@arm.com>
18673
18674 * config/arm/arm.h (machine_function): Define variable
18675 after_arm_reorg here.
18676 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18677 (arm_split_constant): Update the way to access variable
18678 after_arm_reorg.
18679 (arm_reorg): Ditto.
18680 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18681
18682 2014-04-23 Tom de Vries <tom@codesourcery.com>
18683
18684 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18685
18686 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18687
18688 * is-a.h: Update comments to reflect the following changes to the
18689 "pointerness" of the API, making the template parameter match the
18690 return type, allowing use of is-a.h with typedefs of pointers.
18691 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18692 that the return type matches the parameter to the is_a_helper.
18693 (as_a): Likewise.
18694 (dyn_cast): Likewise.
18695
18696 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18697 pointer from the is-a.h API.
18698
18699 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18700 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18701 is-a.h API.
18702 (is_a_helper <varpool_node>::test): Likewise, convert to...
18703 (is_a_helper <varpool_node *>::test): ...this.
18704
18705 (varpool_first_variable): Update for removal of implicit pointer
18706 from the is-a.h API.
18707 (varpool_next_variable): Likewise.
18708 (varpool_first_static_initializer): Likewise.
18709 (varpool_next_static_initializer): Likewise.
18710 (varpool_first_defined_variable): Likewise.
18711 (varpool_next_defined_variable): Likewise.
18712 (cgraph_first_defined_function): Likewise.
18713 (cgraph_next_defined_function): Likewise.
18714 (cgraph_first_function): Likewise.
18715 (cgraph_next_function): Likewise.
18716 (cgraph_first_function_with_gimple_body): Likewise.
18717 (cgraph_next_function_with_gimple_body): Likewise.
18718 (cgraph_alias_target): Likewise.
18719 (varpool_alias_target): Likewise.
18720 (cgraph_function_or_thunk_node): Likewise.
18721 (varpool_variable_node): Likewise.
18722 (symtab_real_symbol_p): Likewise.
18723 * cgraphunit.c (referred_to_p): Likewise.
18724 (analyze_functions): Likewise.
18725 (handle_alias_pairs): Likewise.
18726 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18727 * gimple-ssa.h (gimple_vuse_op): Likewise.
18728 (gimple_vdef_op): Likewise.
18729 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18730 * gimple.c (gimple_build_asm_1): Likewise.
18731 (gimple_build_try): Likewise.
18732 (gimple_build_resx): Likewise.
18733 (gimple_build_eh_dispatch): Likewise.
18734 (gimple_build_omp_for): Likewise.
18735 (gimple_omp_for_set_clauses): Likewise.
18736
18737 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18738 (is_a_helper <gimple_statement_asm *>::test): ...this.
18739 (is_a_helper <gimple_statement_bind>::test): Convert to...
18740 (is_a_helper <gimple_statement_bind *>::test): ...this.
18741 (is_a_helper <gimple_statement_call>::test): Convert to...
18742 (is_a_helper <gimple_statement_call *>::test): ...this.
18743 (is_a_helper <gimple_statement_catch>::test): Convert to...
18744 (is_a_helper <gimple_statement_catch *>::test): ...this.
18745 (is_a_helper <gimple_statement_resx>::test): Convert to...
18746 (is_a_helper <gimple_statement_resx *>::test): ...this.
18747 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18748 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18749 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18750 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18751 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18752 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18753 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18754 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18755 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18756 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18757 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18758 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18759 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18760 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18761 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18762 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18763 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18764 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18765 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18766 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18767 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18768 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18769 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18770 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18771 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18772 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18773 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18774 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18775 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18776 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18777 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18778 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18779 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18780 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18781 (is_a_helper <gimple_statement_phi>::test): Convert to...
18782 (is_a_helper <gimple_statement_phi *>::test): ...this.
18783 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18784 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18785 (is_a_helper <gimple_statement_try>::test): Convert to...
18786 (is_a_helper <gimple_statement_try *>::test): ...this.
18787 (is_a_helper <gimple_statement_wce>::test): Convert to...
18788 (is_a_helper <gimple_statement_wce *>::test): ...this.
18789 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18790 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18791 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18792 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18793 (is_a_helper <const gimple_statement_call>::test): Convert to...
18794 (is_a_helper <const gimple_statement_call *>::test): ...this.
18795 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18796 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18797 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18798 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18799 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18800 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18801 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18802 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18803 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18804 Convert to...
18805 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18806 ...this.
18807 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18808 Convert to...
18809 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18810 ...this.
18811 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18812 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18813 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18814 to...
18815 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18816 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18817 to...
18818 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18819 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18820 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18821 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18822 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18823 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18824 to...
18825 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18826 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18827 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18828 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18829 to...
18830 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18831 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18832 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18833 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18834 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18835 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18836 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18837 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18838 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18839 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18840 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18841 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18842 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18843 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18844 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18845 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18846 to...
18847 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18848 ...this.
18849 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18850 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18851
18852 (gimple_use_ops): Update for removal of implicit pointer from the
18853 is-a.h API.
18854 (gimple_set_use_ops): Likewise.
18855 (gimple_vuse): Likewise.
18856 (gimple_vdef): Likewise.
18857 (gimple_vuse_ptr): Likewise.
18858 (gimple_vdef_ptr): Likewise.
18859 (gimple_set_vuse): Likewise.
18860 (gimple_set_vdef): Likewise.
18861 (gimple_omp_return_set_lhs): Likewise.
18862 (gimple_omp_return_lhs): Likewise.
18863 (gimple_omp_return_lhs_ptr): Likewise.
18864 (gimple_call_fntype): Likewise.
18865 (gimple_call_set_fntype): Likewise.
18866 (gimple_call_set_internal_fn): Likewise.
18867 (gimple_call_use_set): Likewise.
18868 (gimple_call_clobber_set): Likewise.
18869 (gimple_bind_vars): Likewise.
18870 (gimple_bind_set_vars): Likewise.
18871 (gimple_bind_body_ptr): Likewise.
18872 (gimple_bind_set_body): Likewise.
18873 (gimple_bind_add_stmt): Likewise.
18874 (gimple_bind_block): Likewise.
18875 (gimple_bind_set_block): Likewise.
18876 (gimple_asm_ninputs): Likewise.
18877 (gimple_asm_noutputs): Likewise.
18878 (gimple_asm_nclobbers): Likewise.
18879 (gimple_asm_nlabels): Likewise.
18880 (gimple_asm_input_op): Likewise.
18881 (gimple_asm_input_op_ptr): Likewise.
18882 (gimple_asm_output_op): Likewise.
18883 (gimple_asm_output_op_ptr): Likewise.
18884 (gimple_asm_set_output_op): Likewise.
18885 (gimple_asm_clobber_op): Likewise.
18886 (gimple_asm_set_clobber_op): Likewise.
18887 (gimple_asm_label_op): Likewise.
18888 (gimple_asm_set_label_op): Likewise.
18889 (gimple_asm_string): Likewise.
18890 (gimple_catch_types): Likewise.
18891 (gimple_catch_types_ptr): Likewise.
18892 (gimple_catch_handler_ptr): Likewise.
18893 (gimple_catch_set_types): Likewise.
18894 (gimple_catch_set_handler): Likewise.
18895 (gimple_eh_filter_types): Likewise.
18896 (gimple_eh_filter_types_ptr): Likewise.
18897 (gimple_eh_filter_failure_ptr): Likewise.
18898 (gimple_eh_filter_set_types): Likewise.
18899 (gimple_eh_filter_set_failure): Likewise.
18900 (gimple_eh_must_not_throw_fndecl): Likewise.
18901 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18902 (gimple_eh_else_n_body_ptr): Likewise.
18903 (gimple_eh_else_e_body_ptr): Likewise.
18904 (gimple_eh_else_set_n_body): Likewise.
18905 (gimple_eh_else_set_e_body): Likewise.
18906 (gimple_try_eval_ptr): Likewise.
18907 (gimple_try_cleanup_ptr): Likewise.
18908 (gimple_try_set_eval): Likewise.
18909 (gimple_try_set_cleanup): Likewise.
18910 (gimple_wce_cleanup_ptr): Likewise.
18911 (gimple_wce_set_cleanup): Likewise.
18912 (gimple_phi_capacity): Likewise.
18913 (gimple_phi_num_args): Likewise.
18914 (gimple_phi_result): Likewise.
18915 (gimple_phi_result_ptr): Likewise.
18916 (gimple_phi_set_result): Likewise.
18917 (gimple_phi_arg): Likewise.
18918 (gimple_phi_set_arg): Likewise.
18919 (gimple_resx_region): Likewise.
18920 (gimple_resx_set_region): Likewise.
18921 (gimple_eh_dispatch_region): Likewise.
18922 (gimple_eh_dispatch_set_region): Likewise.
18923 (gimple_omp_critical_name): Likewise.
18924 (gimple_omp_critical_name_ptr): Likewise.
18925 (gimple_omp_critical_set_name): Likewise.
18926 (gimple_omp_for_clauses): Likewise.
18927 (gimple_omp_for_clauses_ptr): Likewise.
18928 (gimple_omp_for_set_clauses): Likewise.
18929 (gimple_omp_for_collapse): Likewise.
18930 (gimple_omp_for_index): Likewise.
18931 (gimple_omp_for_index_ptr): Likewise.
18932 (gimple_omp_for_set_index): Likewise.
18933 (gimple_omp_for_initial): Likewise.
18934 (gimple_omp_for_initial_ptr): Likewise.
18935 (gimple_omp_for_set_initial): Likewise.
18936 (gimple_omp_for_final): Likewise.
18937 (gimple_omp_for_final_ptr): Likewise.
18938 (gimple_omp_for_set_final): Likewise.
18939 (gimple_omp_for_incr): Likewise.
18940 (gimple_omp_for_incr_ptr): Likewise.
18941 (gimple_omp_for_set_incr): Likewise.
18942 (gimple_omp_for_pre_body_ptr): Likewise.
18943 (gimple_omp_for_set_pre_body): Likewise.
18944 (gimple_omp_parallel_clauses): Likewise.
18945 (gimple_omp_parallel_clauses_ptr): Likewise.
18946 (gimple_omp_parallel_set_clauses): Likewise.
18947 (gimple_omp_parallel_child_fn): Likewise.
18948 (gimple_omp_parallel_child_fn_ptr): Likewise.
18949 (gimple_omp_parallel_set_child_fn): Likewise.
18950 (gimple_omp_parallel_data_arg): Likewise.
18951 (gimple_omp_parallel_data_arg_ptr): Likewise.
18952 (gimple_omp_parallel_set_data_arg): Likewise.
18953 (gimple_omp_task_clauses): Likewise.
18954 (gimple_omp_task_clauses_ptr): Likewise.
18955 (gimple_omp_task_set_clauses): Likewise.
18956 (gimple_omp_task_child_fn): Likewise.
18957 (gimple_omp_task_child_fn_ptr): Likewise.
18958 (gimple_omp_task_set_child_fn): Likewise.
18959 (gimple_omp_task_data_arg): Likewise.
18960 (gimple_omp_task_data_arg_ptr): Likewise.
18961 (gimple_omp_task_set_data_arg): Likewise.
18962 (gimple_omp_taskreg_clauses): Likewise.
18963 (gimple_omp_taskreg_clauses_ptr): Likewise.
18964 (gimple_omp_taskreg_set_clauses): Likewise.
18965 (gimple_omp_taskreg_child_fn): Likewise.
18966 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18967 (gimple_omp_taskreg_set_child_fn): Likewise.
18968 (gimple_omp_taskreg_data_arg): Likewise.
18969 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18970 (gimple_omp_taskreg_set_data_arg): Likewise.
18971 (gimple_omp_task_copy_fn): Likewise.
18972 (gimple_omp_task_copy_fn_ptr): Likewise.
18973 (gimple_omp_task_set_copy_fn): Likewise.
18974 (gimple_omp_task_arg_size): Likewise.
18975 (gimple_omp_task_arg_size_ptr): Likewise.
18976 (gimple_omp_task_set_arg_size): Likewise.
18977 (gimple_omp_task_arg_align): Likewise.
18978 (gimple_omp_task_arg_align_ptr): Likewise.
18979 (gimple_omp_task_set_arg_align): Likewise.
18980 (gimple_omp_single_clauses): Likewise.
18981 (gimple_omp_single_clauses_ptr): Likewise.
18982 (gimple_omp_single_set_clauses): Likewise.
18983 (gimple_omp_target_clauses): Likewise.
18984 (gimple_omp_target_clauses_ptr): Likewise.
18985 (gimple_omp_target_set_clauses): Likewise.
18986 (gimple_omp_target_child_fn): Likewise.
18987 (gimple_omp_target_child_fn_ptr): Likewise.
18988 (gimple_omp_target_set_child_fn): Likewise.
18989 (gimple_omp_target_data_arg): Likewise.
18990 (gimple_omp_target_data_arg_ptr): Likewise.
18991 (gimple_omp_target_set_data_arg): Likewise.
18992 (gimple_omp_teams_clauses): Likewise.
18993 (gimple_omp_teams_clauses_ptr): Likewise.
18994 (gimple_omp_teams_set_clauses): Likewise.
18995 (gimple_omp_sections_clauses): Likewise.
18996 (gimple_omp_sections_clauses_ptr): Likewise.
18997 (gimple_omp_sections_set_clauses): Likewise.
18998 (gimple_omp_sections_control): Likewise.
18999 (gimple_omp_sections_control_ptr): Likewise.
19000 (gimple_omp_sections_set_control): Likewise.
19001 (gimple_omp_for_set_cond): Likewise.
19002 (gimple_omp_for_cond): Likewise.
19003 (gimple_omp_atomic_store_set_val): Likewise.
19004 (gimple_omp_atomic_store_val): Likewise.
19005 (gimple_omp_atomic_store_val_ptr): Likewise.
19006 (gimple_omp_atomic_load_set_lhs): Likewise.
19007 (gimple_omp_atomic_load_lhs): Likewise.
19008 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19009 (gimple_omp_atomic_load_set_rhs): Likewise.
19010 (gimple_omp_atomic_load_rhs): Likewise.
19011 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19012 (gimple_omp_continue_control_def): Likewise.
19013 (gimple_omp_continue_control_def_ptr): Likewise.
19014 (gimple_omp_continue_set_control_def): Likewise.
19015 (gimple_omp_continue_control_use): Likewise.
19016 (gimple_omp_continue_control_use_ptr): Likewise.
19017 (gimple_omp_continue_set_control_use): Likewise.
19018 (gimple_transaction_body_ptr): Likewise.
19019 (gimple_transaction_label): Likewise.
19020 (gimple_transaction_label_ptr): Likewise.
19021 (gimple_transaction_set_body): Likewise.
19022 (gimple_transaction_set_label): Likewise.
19023
19024 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19025 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19026 * ipa-ref.c (ipa_record_reference): Likewise.
19027 * ipa-reference.c (analyze_function): Likewise.
19028 (ipa_reference_write_optimization_summary): Likewise.
19029 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19030 (address_taken_from_non_vtable_p): Likewise.
19031 (comdat_can_be_unshared_p_1): Likewise.
19032 * lto-cgraph.c (lto_output_ref): Likewise.
19033 (add_references): Likewise.
19034 (compute_ltrans_boundary): Likewise.
19035 (output_symtab): Likewise.
19036 (input_ref): Likewise.
19037 (input_cgraph_1): Likewise.
19038 (output_cgraph_opt_summary): Likewise.
19039 * lto-streamer-out.c (lto_output): Likewise.
19040 (output_symbol_p): Likewise.
19041 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19042 (lsei_start_function_in_partition): Likewise.
19043 (lsei_next_variable_in_partition): Likewise.
19044 (lsei_start_variable_in_partition): Likewise.
19045 * symtab.c (insert_to_assembler_name_hash): Likewise.
19046 (unlink_from_assembler_name_hash): Likewise.
19047 (symtab_unregister_node): Likewise.
19048 (symtab_remove_node): Likewise.
19049 (dump_symtab_node): Likewise.
19050 (verify_symtab_base): Likewise.
19051 (verify_symtab_node): Likewise.
19052 (symtab_make_decl_local): Likewise.
19053 (symtab_alias_ultimate_target): Likewise.
19054 (symtab_resolve_alias): Likewise.
19055 (symtab_get_symbol_partitioning_class): Likewise.
19056 * tree-phinodes.c (allocate_phi_node): Likewise.
19057 (reserve_phi_args_for_new_edge): Likewise.
19058 (remove_phi_args): Likewise.
19059 * varpool.c (varpool_node_for_asm): Likewise.
19060 (varpool_remove_unreferenced_decls): Likewise.
19061
19062 2014-04-23 Jeff Law <law@redhat.com>
19063
19064 PR tree-optimization/60902
19065 * tree-ssa-threadedge.c
19066 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19067 invalidate outputs from statements that do not produce useful
19068 outputs for threading.
19069
19070 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19071
19072 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19073 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19074 machine descriptions for Stack Smashing Protector.
19075
19076 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19077
19078 * aarch64.md (<optab>_rol<mode>3): New pattern.
19079 (<optab>_rolsi3_uxtw): Likewise.
19080 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19081
19082 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19083
19084 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19085 (arm_cortex_a12_tune): Likewise.
19086
19087 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19088
19089 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19090
19091 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19092
19093 * config/arm/arm.md (arm_rev16si2): New pattern.
19094 (arm_rev16si2_alt): Likewise.
19095 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19096
19097 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19098
19099 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19100 (rev16<mode>2_alt): Likewise.
19101 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19102 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19103 (aarch_rev16_shleft_mask_imm_p): Likewise.
19104 (aarch_rev16_p_1): Likewise.
19105 (aarch_rev16_p): Likewise.
19106 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19107 (aarch_rev16_shright_mask_imm_p): Likewise.
19108 (aarch_rev16_shleft_mask_imm_p): Likewise.
19109
19110 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19111
19112 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19113 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19114 rev cost.
19115 (cortex_a53_extra_costs): Likewise.
19116 (cortex_a57_extra_costs): Likewise.
19117 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19118 (cortexa7_extra_costs): Likewise.
19119 (cortexa8_extra_costs): Likewise.
19120 (cortexa12_extra_costs): Likewise.
19121 (cortexa15_extra_costs): Likewise.
19122 (v7m_extra_costs): Likewise.
19123 (arm_new_rtx_costs): Handle BSWAP.
19124
19125 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19126
19127 * config/arm/arm.c (cortexa8_extra_costs): New table.
19128 (arm_cortex_a8_tune): New tuning struct.
19129 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19130
19131 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19132
19133 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19134
19135 2014-04-23 Richard Biener <rguenther@suse.de>
19136
19137 * Makefile.in (OBJS): Remove loop-unswitch.o.
19138 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19139 * passes.def (pass_rtl_unswitch): Likewise.
19140 * loop-init.c (gate_rtl_unswitch): Likewise.
19141 (rtl_unswitch): Likewise.
19142 (pass_data_rtl_unswitch): Likewise.
19143 (pass_rtl_unswitch): Likewise.
19144 (make_pass_rtl_unswitch): Likewise.
19145 * rtl.h (reversed_condition): Likewise.
19146 (compare_and_jump_seq): Likewise.
19147 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19148 and make static.
19149 * loop-unroll.c (compare_and_jump_seq): Likewise.
19150
19151 2014-04-23 Richard Biener <rguenther@suse.de>
19152
19153 PR tree-optimization/60903
19154 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19155 commented code block.
19156 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19157 loop flags to newly created BBs and edges.
19158
19159 2014-04-23 Nick Clifton <nickc@redhat.com>
19160
19161 * config/msp430/msp430.c (msp430_handle_option): Move function
19162 to msp430-common.c
19163 (msp430_option_override): Simplify mcu and mcpu option handling.
19164 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19165 support for -mhwmult command line option.
19166 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19167 -mhwmult command line option.
19168 (msp430_hwmult_enabled): Delete.
19169 (msp43o_output_labelref): Add support for -mhwmult command line option.
19170 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19171 (umulsidi3): Likewise.
19172 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19173 (mcpu, mlarge, msmall): Likewise.
19174 (mhwmult): New option.
19175 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19176 prototype.
19177 (msp430_is_f5_mcu): Remove prototype.
19178 (msp430_use_f5_series_hwmult): Add prototype.
19179 * config/msp430/msp430-opts.h: New file.
19180 * common/config/msp430: New directory.
19181 * common/config/msp430/msp430-common.c: New file.
19182 * config.gcc (msp430): Remove target_has_targetm_common.
19183 * doc/invoke.texi: Document -mhwmult command line option.
19184
19185 2014-04-23 Nick Clifton <nickc@redhat.com>
19186
19187 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19188 default-manifest.o if it can be found in the search path.
19189 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19190
19191 2014-04-23 Terry Guo <terry.guo@arm.com>
19192
19193 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19194
19195 2014-04-23 Richard Biener <rguenther@suse.de>
19196
19197 PR middle-end/60895
19198 * tree-inline.c (declare_return_variable): Use mark_addressable.
19199
19200 2014-04-23 Richard Biener <rguenther@suse.de>
19201
19202 PR middle-end/60891
19203 * loop-init.c (loop_optimizer_init): Make sure to apply
19204 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19205
19206 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19207
19208 PR sanitizer/60275
19209 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19210 New options.
19211 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19212 if flag_sanitize_undefined_trap_on_error.
19213 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19214 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19215 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19216 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19217 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19218 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19219 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19220 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19221 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19222 * ubsan.c (ubsan_instrument_unreachable): Return
19223 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19224 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19225 if flag_sanitize_undefined_trap_on_error and
19226 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19227 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19228 instrument_bool_enum_load): Emit __builtin_trap () if
19229 flag_sanitize_undefined_trap_on_error and
19230 __builtin_handle_*_abort () if !flag_sanitize_recover.
19231 * doc/invoke.texi (-fsanitize-recover,
19232 -fsanitize-undefined-trap-on-error): Document.
19233
19234 2014-04-22 Christian Bruel <christian.bruel@st.com>
19235
19236 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19237 Force immediates to SImode.
19238
19239 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19240
19241 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19242 (lroundsfsi2): New.
19243 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19244 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19245 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19246 (nios2_fpu_insn): Add entry for round.
19247 (N2FPU_NO_ERRNO_P): Define.
19248 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19249 flag_errno_math.
19250 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19251
19252 2014-04-22 Richard Henderson <rth@redhat.com>
19253
19254 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19255 (add<GPI>3_compare0): Remove leading * from name.
19256 (add<GPI>3_carryin): Likewise.
19257 (sub<GPI>3_compare0): Likewise.
19258 (sub<GPI>3_carryin): Likewise.
19259 (<su_optab>mulditi3): New expander.
19260 (multi3): New expander.
19261 (madd<GPI>): Remove leading * from name.
19262
19263 2014-04-22 Martin Jambor <mjambor@suse.cz>
19264
19265 * cgraphclones.c (cgraph_function_versioning): Copy
19266 ipa_transforms_to_apply instead of asserting it is empty.
19267
19268 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19269
19270 PR target/60868
19271 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19272 on count_exp to get mode.
19273
19274 2014-04-22 Andrew Pinski <apinski@cavium.com>
19275
19276 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19277 Handle TLS for ILP32.
19278 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19279 (tlsie_small_<mode>): this and handle PTR.
19280 (tlsie_small_sidi): New pattern.
19281 (tlsle_small): Change to an expand to handle ILP32.
19282 (tlsle_small_<mode>): New pattern.
19283 (tlsdesc_small): Rename to ...
19284 (tlsdesc_small_<mode>): this and handle PTR.
19285
19286 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19287
19288 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19289
19290 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19291
19292 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19293 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19294 (aarch64_types_signed_poly_qualifiers): Likewise.
19295 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19296 (aarch64_types_poly_signed_qualifiers): Likewise.
19297 (TYPES_REINTERP_SS): Type macro added.
19298 (TYPES_REINTERP_SU): Likewise.
19299 (TYPES_REINTERP_SP): Likewise.
19300 (TYPES_REINTERP_US): Likewise.
19301 (TYPES_REINTERP_PS): Likewise.
19302 (aarch64_fold_builtin): New expression folding added.
19303 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19304 Declarations removed.
19305 (REINTERP_SS): Declarations added.
19306 (REINTERP_US): Likewise.
19307 (REINTERP_PS): Likewise.
19308 (REINTERP_SU): Likewise.
19309 (REINTERP_SP): Likewise.
19310 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19311 (vreinterpretq_p8_f64): Likewise.
19312 (vreinterpret_p16_f64): Likewise.
19313 (vreinterpretq_p16_f64): Likewise.
19314 (vreinterpret_f32_f64): Likewise.
19315 (vreinterpretq_f32_f64): Likewise.
19316 (vreinterpret_f64_f32): Likewise.
19317 (vreinterpret_f64_p8): Likewise.
19318 (vreinterpret_f64_p16): Likewise.
19319 (vreinterpret_f64_s8): Likewise.
19320 (vreinterpret_f64_s16): Likewise.
19321 (vreinterpret_f64_s32): Likewise.
19322 (vreinterpret_f64_s64): Likewise.
19323 (vreinterpret_f64_u8): Likewise.
19324 (vreinterpret_f64_u16): Likewise.
19325 (vreinterpret_f64_u32): Likewise.
19326 (vreinterpret_f64_u64): Likewise.
19327 (vreinterpretq_f64_f32): Likewise.
19328 (vreinterpretq_f64_p8): Likewise.
19329 (vreinterpretq_f64_p16): Likewise.
19330 (vreinterpretq_f64_s8): Likewise.
19331 (vreinterpretq_f64_s16): Likewise.
19332 (vreinterpretq_f64_s32): Likewise.
19333 (vreinterpretq_f64_s64): Likewise.
19334 (vreinterpretq_f64_u8): Likewise.
19335 (vreinterpretq_f64_u16): Likewise.
19336 (vreinterpretq_f64_u32): Likewise.
19337 (vreinterpretq_f64_u64): Likewise.
19338 (vreinterpret_s64_f64): Likewise.
19339 (vreinterpretq_s64_f64): Likewise.
19340 (vreinterpret_u64_f64): Likewise.
19341 (vreinterpretq_u64_f64): Likewise.
19342 (vreinterpret_s8_f64): Likewise.
19343 (vreinterpretq_s8_f64): Likewise.
19344 (vreinterpret_s16_f64): Likewise.
19345 (vreinterpretq_s16_f64): Likewise.
19346 (vreinterpret_s32_f64): Likewise.
19347 (vreinterpretq_s32_f64): Likewise.
19348 (vreinterpret_u8_f64): Likewise.
19349 (vreinterpretq_u8_f64): Likewise.
19350 (vreinterpret_u16_f64): Likewise.
19351 (vreinterpretq_u16_f64): Likewise.
19352 (vreinterpret_u32_f64): Likewise.
19353 (vreinterpretq_u32_f64): Likewise.
19354
19355 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19356
19357 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19358 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19359 (vreinterpret_p8_s8): Likewise.
19360 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19361 (vreinterpret_p8_s16): Likewise.
19362 (vreinterpret_p8_s32): Likewise.
19363 (vreinterpret_p8_s64): Likewise.
19364 (vreinterpret_p8_f32): Likewise.
19365 (vreinterpret_p8_u8): Likewise.
19366 (vreinterpret_p8_u16): Likewise.
19367 (vreinterpret_p8_u32): Likewise.
19368 (vreinterpret_p8_u64): Likewise.
19369 (vreinterpret_p8_p16): Likewise.
19370 (vreinterpretq_p8_s8): Likewise.
19371 (vreinterpretq_p8_s16): Likewise.
19372 (vreinterpretq_p8_s32): Likewise.
19373 (vreinterpretq_p8_s64): Likewise.
19374 (vreinterpretq_p8_f32): Likewise.
19375 (vreinterpretq_p8_u8): Likewise.
19376 (vreinterpretq_p8_u16): Likewise.
19377 (vreinterpretq_p8_u32): Likewise.
19378 (vreinterpretq_p8_u64): Likewise.
19379 (vreinterpretq_p8_p16): Likewise.
19380 (vreinterpret_p16_s8): Likewise.
19381 (vreinterpret_p16_s16): Likewise.
19382 (vreinterpret_p16_s32): Likewise.
19383 (vreinterpret_p16_s64): Likewise.
19384 (vreinterpret_p16_f32): Likewise.
19385 (vreinterpret_p16_u8): Likewise.
19386 (vreinterpret_p16_u16): Likewise.
19387 (vreinterpret_p16_u32): Likewise.
19388 (vreinterpret_p16_u64): Likewise.
19389 (vreinterpret_p16_p8): Likewise.
19390 (vreinterpretq_p16_s8): Likewise.
19391 (vreinterpretq_p16_s16): Likewise.
19392 (vreinterpretq_p16_s32): Likewise.
19393 (vreinterpretq_p16_s64): Likewise.
19394 (vreinterpretq_p16_f32): Likewise.
19395 (vreinterpretq_p16_u8): Likewise.
19396 (vreinterpretq_p16_u16): Likewise.
19397 (vreinterpretq_p16_u32): Likewise.
19398 (vreinterpretq_p16_u64): Likewise.
19399 (vreinterpretq_p16_p8): Likewise.
19400 (vreinterpret_f32_s8): Likewise.
19401 (vreinterpret_f32_s16): Likewise.
19402 (vreinterpret_f32_s32): Likewise.
19403 (vreinterpret_f32_s64): Likewise.
19404 (vreinterpret_f32_u8): Likewise.
19405 (vreinterpret_f32_u16): Likewise.
19406 (vreinterpret_f32_u32): Likewise.
19407 (vreinterpret_f32_u64): Likewise.
19408 (vreinterpret_f32_p8): Likewise.
19409 (vreinterpret_f32_p16): Likewise.
19410 (vreinterpretq_f32_s8): Likewise.
19411 (vreinterpretq_f32_s16): Likewise.
19412 (vreinterpretq_f32_s32): Likewise.
19413 (vreinterpretq_f32_s64): Likewise.
19414 (vreinterpretq_f32_u8): Likewise.
19415 (vreinterpretq_f32_u16): Likewise.
19416 (vreinterpretq_f32_u32): Likewise.
19417 (vreinterpretq_f32_u64): Likewise.
19418 (vreinterpretq_f32_p8): Likewise.
19419 (vreinterpretq_f32_p16): Likewise.
19420 (vreinterpret_s64_s8): Likewise.
19421 (vreinterpret_s64_s16): Likewise.
19422 (vreinterpret_s64_s32): Likewise.
19423 (vreinterpret_s64_f32): Likewise.
19424 (vreinterpret_s64_u8): Likewise.
19425 (vreinterpret_s64_u16): Likewise.
19426 (vreinterpret_s64_u32): Likewise.
19427 (vreinterpret_s64_u64): Likewise.
19428 (vreinterpret_s64_p8): Likewise.
19429 (vreinterpret_s64_p16): Likewise.
19430 (vreinterpretq_s64_s8): Likewise.
19431 (vreinterpretq_s64_s16): Likewise.
19432 (vreinterpretq_s64_s32): Likewise.
19433 (vreinterpretq_s64_f32): Likewise.
19434 (vreinterpretq_s64_u8): Likewise.
19435 (vreinterpretq_s64_u16): Likewise.
19436 (vreinterpretq_s64_u32): Likewise.
19437 (vreinterpretq_s64_u64): Likewise.
19438 (vreinterpretq_s64_p8): Likewise.
19439 (vreinterpretq_s64_p16): Likewise.
19440 (vreinterpret_u64_s8): Likewise.
19441 (vreinterpret_u64_s16): Likewise.
19442 (vreinterpret_u64_s32): Likewise.
19443 (vreinterpret_u64_s64): Likewise.
19444 (vreinterpret_u64_f32): Likewise.
19445 (vreinterpret_u64_u8): Likewise.
19446 (vreinterpret_u64_u16): Likewise.
19447 (vreinterpret_u64_u32): Likewise.
19448 (vreinterpret_u64_p8): Likewise.
19449 (vreinterpret_u64_p16): Likewise.
19450 (vreinterpretq_u64_s8): Likewise.
19451 (vreinterpretq_u64_s16): Likewise.
19452 (vreinterpretq_u64_s32): Likewise.
19453 (vreinterpretq_u64_s64): Likewise.
19454 (vreinterpretq_u64_f32): Likewise.
19455 (vreinterpretq_u64_u8): Likewise.
19456 (vreinterpretq_u64_u16): Likewise.
19457 (vreinterpretq_u64_u32): Likewise.
19458 (vreinterpretq_u64_p8): Likewise.
19459 (vreinterpretq_u64_p16): Likewise.
19460 (vreinterpret_s8_s16): Likewise.
19461 (vreinterpret_s8_s32): Likewise.
19462 (vreinterpret_s8_s64): Likewise.
19463 (vreinterpret_s8_f32): Likewise.
19464 (vreinterpret_s8_u8): Likewise.
19465 (vreinterpret_s8_u16): Likewise.
19466 (vreinterpret_s8_u32): Likewise.
19467 (vreinterpret_s8_u64): Likewise.
19468 (vreinterpret_s8_p8): Likewise.
19469 (vreinterpret_s8_p16): Likewise.
19470 (vreinterpretq_s8_s16): Likewise.
19471 (vreinterpretq_s8_s32): Likewise.
19472 (vreinterpretq_s8_s64): Likewise.
19473 (vreinterpretq_s8_f32): Likewise.
19474 (vreinterpretq_s8_u8): Likewise.
19475 (vreinterpretq_s8_u16): Likewise.
19476 (vreinterpretq_s8_u32): Likewise.
19477 (vreinterpretq_s8_u64): Likewise.
19478 (vreinterpretq_s8_p8): Likewise.
19479 (vreinterpretq_s8_p16): Likewise.
19480 (vreinterpret_s16_s8): Likewise.
19481 (vreinterpret_s16_s32): Likewise.
19482 (vreinterpret_s16_s64): Likewise.
19483 (vreinterpret_s16_f32): Likewise.
19484 (vreinterpret_s16_u8): Likewise.
19485 (vreinterpret_s16_u16): Likewise.
19486 (vreinterpret_s16_u32): Likewise.
19487 (vreinterpret_s16_u64): Likewise.
19488 (vreinterpret_s16_p8): Likewise.
19489 (vreinterpret_s16_p16): Likewise.
19490 (vreinterpretq_s16_s8): Likewise.
19491 (vreinterpretq_s16_s32): Likewise.
19492 (vreinterpretq_s16_s64): Likewise.
19493 (vreinterpretq_s16_f32): Likewise.
19494 (vreinterpretq_s16_u8): Likewise.
19495 (vreinterpretq_s16_u16): Likewise.
19496 (vreinterpretq_s16_u32): Likewise.
19497 (vreinterpretq_s16_u64): Likewise.
19498 (vreinterpretq_s16_p8): Likewise.
19499 (vreinterpretq_s16_p16): Likewise.
19500 (vreinterpret_s32_s8): Likewise.
19501 (vreinterpret_s32_s16): Likewise.
19502 (vreinterpret_s32_s64): Likewise.
19503 (vreinterpret_s32_f32): Likewise.
19504 (vreinterpret_s32_u8): Likewise.
19505 (vreinterpret_s32_u16): Likewise.
19506 (vreinterpret_s32_u32): Likewise.
19507 (vreinterpret_s32_u64): Likewise.
19508 (vreinterpret_s32_p8): Likewise.
19509 (vreinterpret_s32_p16): Likewise.
19510 (vreinterpretq_s32_s8): Likewise.
19511 (vreinterpretq_s32_s16): Likewise.
19512 (vreinterpretq_s32_s64): Likewise.
19513 (vreinterpretq_s32_f32): Likewise.
19514 (vreinterpretq_s32_u8): Likewise.
19515 (vreinterpretq_s32_u16): Likewise.
19516 (vreinterpretq_s32_u32): Likewise.
19517 (vreinterpretq_s32_u64): Likewise.
19518 (vreinterpretq_s32_p8): Likewise.
19519 (vreinterpretq_s32_p16): Likewise.
19520 (vreinterpret_u8_s8): Likewise.
19521 (vreinterpret_u8_s16): Likewise.
19522 (vreinterpret_u8_s32): Likewise.
19523 (vreinterpret_u8_s64): Likewise.
19524 (vreinterpret_u8_f32): Likewise.
19525 (vreinterpret_u8_u16): Likewise.
19526 (vreinterpret_u8_u32): Likewise.
19527 (vreinterpret_u8_u64): Likewise.
19528 (vreinterpret_u8_p8): Likewise.
19529 (vreinterpret_u8_p16): Likewise.
19530 (vreinterpretq_u8_s8): Likewise.
19531 (vreinterpretq_u8_s16): Likewise.
19532 (vreinterpretq_u8_s32): Likewise.
19533 (vreinterpretq_u8_s64): Likewise.
19534 (vreinterpretq_u8_f32): Likewise.
19535 (vreinterpretq_u8_u16): Likewise.
19536 (vreinterpretq_u8_u32): Likewise.
19537 (vreinterpretq_u8_u64): Likewise.
19538 (vreinterpretq_u8_p8): Likewise.
19539 (vreinterpretq_u8_p16): Likewise.
19540 (vreinterpret_u16_s8): Likewise.
19541 (vreinterpret_u16_s16): Likewise.
19542 (vreinterpret_u16_s32): Likewise.
19543 (vreinterpret_u16_s64): Likewise.
19544 (vreinterpret_u16_f32): Likewise.
19545 (vreinterpret_u16_u8): Likewise.
19546 (vreinterpret_u16_u32): Likewise.
19547 (vreinterpret_u16_u64): Likewise.
19548 (vreinterpret_u16_p8): Likewise.
19549 (vreinterpret_u16_p16): Likewise.
19550 (vreinterpretq_u16_s8): Likewise.
19551 (vreinterpretq_u16_s16): Likewise.
19552 (vreinterpretq_u16_s32): Likewise.
19553 (vreinterpretq_u16_s64): Likewise.
19554 (vreinterpretq_u16_f32): Likewise.
19555 (vreinterpretq_u16_u8): Likewise.
19556 (vreinterpretq_u16_u32): Likewise.
19557 (vreinterpretq_u16_u64): Likewise.
19558 (vreinterpretq_u16_p8): Likewise.
19559 (vreinterpretq_u16_p16): Likewise.
19560 (vreinterpret_u32_s8): Likewise.
19561 (vreinterpret_u32_s16): Likewise.
19562 (vreinterpret_u32_s32): Likewise.
19563 (vreinterpret_u32_s64): Likewise.
19564 (vreinterpret_u32_f32): Likewise.
19565 (vreinterpret_u32_u8): Likewise.
19566 (vreinterpret_u32_u16): Likewise.
19567 (vreinterpret_u32_u64): Likewise.
19568 (vreinterpret_u32_p8): Likewise.
19569 (vreinterpret_u32_p16): Likewise.
19570 (vreinterpretq_u32_s8): Likewise.
19571 (vreinterpretq_u32_s16): Likewise.
19572 (vreinterpretq_u32_s32): Likewise.
19573 (vreinterpretq_u32_s64): Likewise.
19574 (vreinterpretq_u32_f32): Likewise.
19575 (vreinterpretq_u32_u8): Likewise.
19576 (vreinterpretq_u32_u16): Likewise.
19577 (vreinterpretq_u32_u64): Likewise.
19578 (vreinterpretq_u32_p8): Likewise.
19579 (vreinterpretq_u32_p16): Likewise.
19580
19581 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19582
19583 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19584 Pattern extended.
19585 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19586 (sqabs): Likewise.
19587 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19588 (vqnegd_s64): Likewise.
19589 (vqabs_s64): Likewise.
19590 (vqabsd_s64): Likewise.
19591
19592 2014-04-22 Richard Henderson <rth@redhat.com>
19593
19594 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19595 computation to the top of the loop.
19596
19597 2014-04-22 Renlin <renlin.li@arm.com>
19598 Jiong Wang <jiong.wang@arm.com>
19599
19600 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19601 * config/aarch64/aarch64.c (aarch64_layout_frame)
19602 (aarch64_initial_elimination_offset): Likewise.
19603
19604 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19605
19606 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19607 Fix indentation.
19608
19609 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19610
19611 * machmode.h (bitwise_mode_for_mode): Declare.
19612 * stor-layout.h (bitwise_type_for_mode): Likewise.
19613 * stor-layout.c (bitwise_mode_for_mode): New function.
19614 (bitwise_type_for_mode): Likewise.
19615 * builtins.c (fold_builtin_memory_op): Use it instead of
19616 int_mode_for_mode and build_nonstandard_integer_type.
19617
19618 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19619
19620 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19621 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19622 (*-*-solaris2*): Simplify.
19623 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19624 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19625 *-*-solaris2.9* handling.
19626
19627 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19628 as bug.
19629 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19630 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19631 handling, simplify.
19632 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19633 * configure: Regenerate.
19634
19635 * config/i386/sol2-9.h: Remove.
19636
19637 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19638 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19639 Remove Solaris 9 references.
19640
19641 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19642
19643 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19644 (floatuns<GPI:mode><GPF:mode>2): Remove.
19645 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19646 and floatuns conversions.
19647 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19648 and floatuns conversions.
19649 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19650 (w1,w2): New mode attributes for inequal width conversions.
19651
19652 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19653
19654 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19655 the output asm format.
19656
19657 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19658
19659 * config/aarch64/aarch64-simd.md
19660 (aarch64_cm<optab>di): Always split.
19661 (*aarch64_cm<optab>di): New.
19662 (aarch64_cmtstdi): Always split.
19663 (*aarch64_cmtstdi): New.
19664
19665 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19666
19667 PR tree-optimization/60823
19668 * omp-low.c (ipa_simd_modify_function_body): Go through
19669 all SSA_NAMEs and for those refering to vector arguments
19670 which are going to be replaced adjust SSA_NAME_VAR and,
19671 if it is a default definition, change it into a non-default
19672 definition assigned at the beginning of function from new_decl.
19673 (ipa_simd_modify_stmt_ops): Rewritten.
19674 * tree-dfa.c (set_ssa_default_def): When removing default def,
19675 check for NULL loc instead of NULL *loc.
19676
19677 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19678
19679 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19680 restrictions on core registers for DImode values in Thumb2.
19681
19682 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19683
19684 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19685 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19686
19687 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19688
19689 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19690 (*iordi_notzesidi_di): Likewise.
19691 (*iordi_notsesidi_di): Likewise.
19692
19693 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19694
19695 * config/arm/arm-protos.h (tune_params): New struct members.
19696 * config/arm/arm.c: Initialise tune_params per processor.
19697 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19698 for speed, based on new tune_params.
19699
19700 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19701
19702 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19703 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19704 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19705 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19706 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19707 (vrnda_f64): Likewise.
19708 (vrndi_f64): Likewise.
19709 (vrndm_f64): Likewise.
19710 (vrndn_f64): Likewise.
19711 (vrndp_f64): Likewise.
19712 (vrndx_f64): Likewise.
19713
19714 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19715
19716 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19717 GET_MODE_SIZE argument is enum machine_mode.
19718
19719 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19720
19721 PR target/60910
19722 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19723 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19724
19725 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19726
19727 PR middle-end/60281
19728 * asan.c (asan_emit_stack_protection): Force the base to align to
19729 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19730 appropriate bits if STRICT_ALIGNMENT.
19731 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19732 when asan is on.
19733 (expand_used_vars): Leave a space in the stack frame for alignment
19734 if STRICT_ALIGNMENT.
19735
19736 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19737
19738 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19739 than a gimple.
19740 (gimple_store_p): Likewise.
19741 (gimple_assign_load_p): Likewise.
19742 (gimple_assign_cast_p): Likewise.
19743 (gimple_clobber_p): Likewise.
19744
19745 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19746 rather than a gimple.
19747 (gimple_assign_cast_p): Likewise.
19748
19749 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19750
19751 PR target/60735
19752 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19753 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19754
19755 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19756 more debug information for E500 if -mdebug=reg.
19757
19758 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19759
19760 PR target/60909
19761 * config/i386/i386.c (ix86_expand_builtin)
19762 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19763 register for target RTX.
19764 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19765
19766 2014-04-18 Cong Hou <congh@google.com>
19767
19768 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19769 the widen-mult pattern by handling two operands with different sizes,
19770 and operands whose size is smaller than half of the result type.
19771
19772 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19773
19774 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19775 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19776 (do_estimate_edge_time): Compute it.
19777 * ipa-inline.c (want_inline_small_function_p): Bypass
19778 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19779
19780 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19781
19782 * ipa-inline.c (spec_rem): New static variable.
19783 (dump_overall_stats): New function.
19784 (dump_inline_stats): New function.
19785
19786 2014-04-18 Richard Henderson <rth@redhat.com>
19787
19788 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19789 to GET_MODE_SIZE, not a reg_class_t.
19790
19791 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19792
19793 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19794 (vsx_xxmrglw_<mode>): Likewise.
19795
19796 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19797
19798 PR target/60876
19799 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19800 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19801 (rs6000_init_hard_regno_mode_ok): Likewise.
19802
19803 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19804
19805 * ipa-inline.c (inline_small_functions): Account only non-cold
19806 functions.
19807 * doc/invoke.texi (inline-unit-growth): Update documentation.
19808
19809 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19810
19811 * config/rs6000/rs6000.md (addti3, subti3): New.
19812
19813 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19814
19815 PR target/60863
19816 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19817 comment. Check optimize_insn_for_size_p instead of
19818 optimize_insn_for_speed_p.
19819
19820 2014-04-17 Martin Jambor <mjambor@suse.cz>
19821
19822 * gimple-iterator.c (gsi_start_edge): New function.
19823 * gimple-iterator.h (gsi_start_edge): Declare.
19824 * tree-sra.c (single_non_eh_succ): New function.
19825 (disqualify_ops_if_throwing_stmt): Renamed to
19826 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19827 having one non-EH successor BB.
19828 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19829 generate loads into replacements.
19830 (sra_modify_assign): Likewise and and also use the simple path for
19831 such statements.
19832 (sra_modify_function_body): Commit statements on edges.
19833
19834 2014-04-17 Richard Biener <rguenther@suse.de>
19835
19836 PR middle-end/60849
19837 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19838 comparison results and add clarifying comment.
19839
19840 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19841
19842 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19843 (blank_mode): Initialize it.
19844 (emit_mode_size_inline, emit_mode_nunits_inline,
19845 emit_mode_inner_inline): New functions.
19846 (emit_insn_modes_h): Call them and surround their output with
19847 #if GCC_VERSION >= 4001 ... #endif.
19848 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19849 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19850 mode_* arrays if the argument is __builtin_constant_p.
19851 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19852 is enum machine_mode.
19853
19854 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19855
19856 * passes.c (opt_pass::execute): Adjust.
19857 (pass_manager::execute_pass_mode_switching): Likewise.
19858 (early_local_passes::execute): Likewise.
19859 (execute_one_pass): Pass cfun to the pass's execute method.
19860 * tree-pass.h (opt_pass::execute): Add function * argument.
19861 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19862 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19863 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19864 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19865 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19866 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19867 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19868 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19869 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19870 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19871 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19872 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19873 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19874 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19875 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19876 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19877 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19878 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19879 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19880 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19881 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19882 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19883 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19884 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19885 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19886 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19887 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19888 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19889 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19890 Adjust.
19891
19892 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19893
19894 * passes.c (opt_pass::gate): Take function * argument.
19895 (gate_all_early_local_passes): Merge into
19896 (early_local_passes::gate): this.
19897 (gate_all_early_optimizations): Merge into
19898 (all_early_optimizations::gate): this.
19899 (gate_all_optimizations): Mege into
19900 (all_optimizations::gate): this.
19901 (gate_all_optimizations_g): Merge into
19902 (all_optimizations_g::gate): this.
19903 (gate_rest_of_compilation): Mege into
19904 (rest_of_compilation::gate): this.
19905 (gate_postreload): Merge into
19906 (postreload::gate): this.
19907 (dump_one_pass): Pass cfun to the pass's gate method.
19908 (execute_ipa_summary_passes): Likewise.
19909 (execute_one_pass): Likewise.
19910 (ipa_write_summaries_2): Likewise.
19911 (ipa_write_optimization_summaries_1): Likewise.
19912 (ipa_read_summaries_1): Likewise.
19913 (ipa_read_optimization_summaries_1): Likewise.
19914 (execute_ipa_stmt_fixups): Likewise.
19915 * tree-pass.h (opt_pass::gate): Add function * argument.
19916 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19917 combine-stack-adj.c, combine.c, compare-elim.c,
19918 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19919 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19920 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19921 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19922 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19923 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19924 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19925 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19926 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19927 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19928 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19929 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19930 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19931 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19932 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19933 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19934 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19935 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19936 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19937 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19938 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19939 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19940 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19941 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19942 var-tracking.c, vtable-verify.c, web.c: Adjust.
19943
19944 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19945
19946 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19947 * configure: Regenerate.
19948
19949 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19950
19951 * passes.c (dump_one_pass): don't check pass->has_gate.
19952 (execute_ipa_summary_passes): Likewise.
19953 (execute_one_pass): Likewise.
19954 (ipa_write_summaries_2): Likewise.
19955 (ipa_write_optimization_summaries_1): Likewise.
19956 (ipa_read_optimization_summaries_1): Likewise.
19957 (execute_ipa_stmt_fixups): Likewise.
19958 * tree-pass.h (pass_data::has_gate): Remove.
19959 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19960 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19961 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19962 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19963 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19964 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19965 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19966 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19967 gimple-low.c, gimple-ssa-isolate-paths.c,
19968 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19969 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19970 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19971 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19972 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19973 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19974 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19975 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19976 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19977 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19978 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19979 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19980 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19981 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19982 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19983 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19984 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19985 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19986 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19987 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19988 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19989 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19990 Adjust.
19991
19992 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19993
19994 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19995 declaration.
19996 * passes.c (pass_manager::register_dump_files_1): Merge into
19997 (pass_manager::register_dump_files): this, and remove its handling of
19998 properties since the pass always has the properties anyway.
19999 (pass_manager::pass_manager): Adjust.
20000
20001 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20002
20003 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20004 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20005 dealing with properties.
20006 (pass_manager::register_dump_files): Adjust.
20007
20008 2014-03-20 Mark Wielaard <mjw@redhat.com>
20009
20010 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20011 then represent the bound as normal constant value.
20012
20013 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20014
20015 PR target/60847
20016 Forward port from 4.8 branch
20017 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20018
20019 * config/i386/bmiintrin.h (_blsi_u32): New.
20020 (_blsi_u64): Ditto.
20021 (_blsr_u32): Ditto.
20022 (_blsr_u64): Ditto.
20023 (_blsmsk_u32): Ditto.
20024 (_blsmsk_u64): Ditto.
20025 (_tzcnt_u32): Ditto.
20026 (_tzcnt_u64): Ditto.
20027
20028 2014-04-17 Kito Cheng <kito@0xlab.org>
20029
20030 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20031
20032 2014-04-17 Richard Biener <rguenther@suse.de>
20033
20034 PR middle-end/60849
20035 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20036 boolean results for comparisons.
20037
20038 2014-04-17 Richard Biener <rguenther@suse.de>
20039
20040 PR tree-optimization/60836
20041 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20042 initial PHI args to be gimple values.
20043
20044 2014-04-17 Richard Biener <rguenther@suse.de>
20045
20046 PR tree-optimization/60841
20047 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20048 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20049 of stmts to SLP build.
20050 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20051 (vect_analyze_slp): Likewise.
20052 (vect_analyze_slp_instance): Likewise.
20053 (vect_build_slp_tree): Limit overall SLP tree growth.
20054 * tree-vectorizer.h (vect_analyze_data_refs,
20055 vect_analyze_slp): Adjust prototypes.
20056
20057 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20058
20059 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20060 Silvermont.
20061
20062 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20063
20064 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20065 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20066 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20067 for TARGET_SLOW_PSHUFB
20068
20069 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20070
20071 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20072 * config/i386/i386.c (intel_cost): Ditto.
20073
20074 2014-04-17 Joey Ye <joey.ye@arm.com>
20075
20076 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20077
20078 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20079
20080 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20081 with -fuse-profile.
20082
20083 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20084
20085 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20086 (type_all_derivations_known_p): New predicate.
20087 (type_all_ctors_visible_p): New predicate.
20088 (type_possibly_instantiated_p): New predicate.
20089 (get_odr_type): Compute all_derivations_known.
20090 (dump_odr_type): Dump the flag.
20091 (maybe_record_type): Cleanup.
20092 (record_target_from_binfo): Add bases_to_consider array;
20093 record bases for types w/o instances and skip CXX destructor.
20094 (possible_polymorphic_call_targets_1): Add bases_to_consider
20095 and consider_construction parameters; check if type may have instance.
20096 (get_polymorphic_call_info): Set maybe_in_construction to true
20097 when we know nothing.
20098 (record_targets_from_bases): Skip CXX destructors; they are
20099 never called for types in construction.
20100 (possible_polymorphic_call_targets): Do not record target when
20101 type may not have instance.
20102
20103 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20104
20105 PR ipa/60854
20106 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20107 external aliases alive, too.
20108
20109 2014-04-16 Andrew Pinski <apinski@cavium.com>
20110
20111 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20112 definition.
20113
20114 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20115
20116 * final.c (compute_alignments): Do not apply loop alignment to a block
20117 falling through to the exit.
20118
20119 2014-04-16 Catherine Moore <clm@codesourcery.com>
20120
20121 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20122 Adjust constraints for microMIPS store patterns.
20123
20124 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20125
20126 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20127
20128 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20129
20130 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20131 (append_use): Run at -O0.
20132 (append_vdef): Likewise.
20133 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20134 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20135
20136 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20137
20138 PR tree-optimization/60844
20139 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20140 (propagate_op_to_single_use, remove_visited_stmt_chain,
20141 linearize_expr, repropagate_negates, reassociate_bb): Use it
20142 instead of gsi_remove.
20143
20144 2014-04-16 Martin Jambor <mjambor@suse.cz>
20145
20146 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20147 ipa_transforms_to_apply.
20148 (cgraph_function_versioning): Assert that old_node has empty
20149 ipa_transforms_to_apply.
20150 * trans-mem.c (ipa_tm_create_version): Likewise.
20151 * tree-inline.c (tree_function_versioning): Do not duplicate
20152 ipa_transforms_to_apply.
20153
20154 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20155
20156 PR target/60817
20157 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20158 x86_64-*-* cases.
20159 Pass necessary as flags on 64-bit Solaris/x86.
20160 Use lowercase relocs for x86_64-*-*.
20161 * configure: Regenerate.
20162
20163 2014-04-15 Jan Hubicka <jh@suse.cz>
20164
20165 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20166 (maybe_record_node, likely_target_p): Use it.
20167
20168 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20169
20170 PR target/60839
20171 Revert following patch
20172
20173 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20174
20175 PR target/60735
20176 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20177 software floating point or no floating point registers, do not
20178 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20179 in GPRs that occurs after we tested for GPRs that would never be
20180 true.
20181
20182 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20183 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20184 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20185 specifically allow DDmode, since that does not use the SPE SIMD
20186 instructions.
20187
20188 2014-03-21 Mark Wielaard <mjw@redhat.com>
20189
20190 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20191 as unsigned or int depending on type and value used.
20192
20193 2014-04-15 Richard Biener <rguenther@suse.de>
20194
20195 PR rtl-optimization/56965
20196 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20197 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20198 ... here.
20199 * alias.c (true_dependence_1): Do not call
20200 nonoverlapping_component_refs_p.
20201 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20202 nonoverlapping_component_refs_p.
20203 (indirect_refs_may_alias_p): Likewise.
20204
20205 2014-04-15 Teresa Johnson <tejohnson@google.com>
20206
20207 * cfg.c (dump_bb_info): Fix flags check.
20208 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20209
20210 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20211
20212 PR rtl-optimization/60663
20213 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20214 avoid 0 cost.
20215
20216 2014-04-15 Richard Biener <rguenther@suse.de>
20217
20218 * lto-streamer.h (LTO_major_version): Bump to 4.
20219
20220 2014-04-15 Richard Biener <rguenther@suse.de>
20221
20222 * common.opt (lto_partition_model): New enum.
20223 (flto-partition=): Merge separate options with a single with argument,
20224 add -flto-partition=one support.
20225 * flag-types.h (enum lto_partition_model): Declare.
20226 * opts.c (finish_options): Remove duplicate -flto-partition=
20227 option check.
20228 * lto-wrapper.c (run_gcc): Adjust.
20229
20230 2014-04-15 Richard Biener <rguenther@suse.de>
20231
20232 * alias.c (ncr_compar): New function.
20233 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20234
20235 2014-04-15 Richard Biener <rguenther@suse.de>
20236
20237 * alias.c (record_component_aliases): Do not walk BINFOs.
20238
20239 2014-04-15 Richard Biener <rguenther@suse.de>
20240
20241 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20242 Add struct function argument and adjust.
20243 (find_func_aliases_for_call): Likewise.
20244 (find_func_aliases): Likewise.
20245 (find_func_clobbers): Likewise.
20246 (intra_create_variable_infos): Likewise.
20247 (compute_points_to_sets): Likewise.
20248 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20249
20250 2014-04-15 Richard Biener <rguenther@suse.de>
20251
20252 * tree.c (iterative_hash_expr): Use enum tree_code_class
20253 to store TREE_CODE_CLASS.
20254 (tree_block): Likewise.
20255 (tree_set_block): Likewise.
20256 * tree.h (fold_build_pointer_plus_loc): Use
20257 convert_to_ptrofftype_loc.
20258
20259 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20260
20261 PR plugins/59335
20262 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20263 added in 4.9.
20264
20265 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20266
20267 * cfgloop.h (struct loop): Move force_vectorize down.
20268 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20269 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20270 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20271 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20272 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20273 * tree-core.h (enum annot_expr_kind): Add new kind values.
20274 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20275 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20276 kinds.
20277 * tree.def (ANNOTATE_EXPR): Tweak comment.
20278
20279 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20280
20281 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20282 cxa_pure_virtual).
20283
20284 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20285
20286 * tree.h (TYPE_IDENTIFIER): Declare.
20287 * tree.c (subrange_type_for_debug_p): Use it.
20288 * godump.c (go_format_type): Likewise.
20289 * dwarf2out.c (is_cxx_auto, modified_type_die,
20290 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20291 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20292
20293 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20294
20295 PR lto/60820
20296 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20297
20298 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20299
20300 * config/i386/i386.c (examine_argument): Return bool. Return true if
20301 parameter should be passed in memory.
20302 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20303 (construct_container): Update calls to examine_argument.
20304 (function_arg_advance_64): Ditto.
20305 (return_in_memory_32): Merge with ix86_return_in_memory.
20306 (return_in_memory_64): Ditto.
20307 (return_in_memory_ms_64): Ditto.
20308
20309 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20310
20311 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20312 * coverage.c (coverage_compute_profile_id): Handle externally visible
20313 symbols.
20314
20315 2014-04-14 Martin Jambor <mjambor@suse.cz>
20316
20317 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20318 DECL_DISREGARD_INLINE_LIMITS functions.
20319
20320 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20321
20322 PR target/60827
20323 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20324
20325 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20326
20327 PR target/60827
20328 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20329 optimize_insn_for_speed_p instead of
20330 optimize_function_for_speed_p.
20331
20332 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20333
20334 * doc/invoke.texi (free): Document AArch64.
20335
20336 2014-04-14 Richard Biener <rguenther@suse.de>
20337
20338 PR tree-optimization/60042
20339 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20340 (insert_into_preds_of_block): Do not prevent PHI insertion
20341 for REFERENCE exprs here ...
20342 (eliminate_dom_walker::before_dom_children): ... but prevent
20343 their use here under similar conditions when applied to the
20344 IL after PRE optimizations.
20345
20346 2014-04-14 Richard Biener <rguenther@suse.de>
20347
20348 * passes.def: Move early points-to after early SRA.
20349
20350 2014-04-14 Richard Biener <rguenther@suse.de>
20351
20352 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20353 check for which sign-changes we allow when forwarding
20354 a converted value into a switch.
20355
20356 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20357
20358 * stor-layout.c (place_field): Finalize non-constant offset for the
20359 field, if any.
20360
20361 2014-04-14 Richard Biener <rguenther@suse.de>
20362
20363 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20364 as argument.
20365 (expand_switch_using_bit_tests_p): Likewise.
20366 (process_switch): Compute and pass on speed_p based on the
20367 switch stmt.
20368 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20369 optimize_bb_for_speed_p.
20370
20371 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20372
20373 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20374 * function.h (struct function): Rename has_force_vect_loops into
20375 has_force_vectorize_loops.
20376 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20377 (input_struct_function_base): Likewise.
20378 * lto-streamer-out.c (output_cfg): Likewise.
20379 (output_struct_function_base): Likewise.
20380 * omp-low.c (expand_omp_simd): Likewise.
20381 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20382 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20383 (version_loop_for_if_conversion): Likewise.
20384 (tree_if_conversion): Likewise.
20385 (main_tree_if_conversion): Likewise.
20386 (gate_tree_if_conversion): Likewise.
20387 * tree-inline.c (copy_loops): Likewise.
20388 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20389 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20390 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20391 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20392 * tree-vectorizer.c (vectorize_loops): Likewise.
20393 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20394
20395 2014-04-14 Richard Biener <rguenther@suse.de>
20396
20397 PR lto/60720
20398 * lto-streamer-out.c (wrap_refs): New function.
20399 (lto_output): Wrap symbol references in global initializes in
20400 type-preserving MEM_REFs.
20401
20402 2014-04-14 Christian Bruel <christian.bruel@st.com>
20403
20404 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20405
20406 2014-04-14 Christian Bruel <christian.bruel@st.com>
20407
20408 * config/sh/sh.md (setmemqi): New expand pattern.
20409 * config/sh/sh.h (CLEAR_RATIO): Define.
20410 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20411 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20412
20413 2014-04-14 Richard Biener <rguenther@suse.de>
20414
20415 PR middle-end/55022
20416 * fold-const.c (negate_expr_p): Don't negate directional rounding
20417 division.
20418 (fold_negate_expr): Likewise.
20419
20420 2014-04-14 Richard Biener <rguenther@suse.de>
20421
20422 PR tree-optimization/59817
20423 PR tree-optimization/60453
20424 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20425 recursion to catch all CHRECs in the scalar evolution and restrict
20426 the predicate for the remains appropriately.
20427
20428 2014-04-12 Catherine Moore <clm@codesourcery.com>
20429
20430 * config/mips/constraints.md: Add new register constraint "kb".
20431 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20432 (*movhi_internal): Likewise.
20433 (*movqi_internal): Likewise.
20434 * config/mips/mips.h (M16_STORE_REGS): New register class.
20435 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20436 (REG_CLASS_CONTENTS): Likewise.
20437 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20438
20439 2014-04-11 Tobias Burnus <burnus@net-b.de>
20440
20441 PR c/60194
20442 * doc/invoke.texi (-Wformat-signedness): Document it.
20443 (Wformat=2): Mention that this enables -Wformat-signedness.
20444
20445 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20446
20447 * common/config/epiphany/epiphany-common.c
20448 (epiphany_option_optimization_table): Enable section anchors by
20449 default at -O1 or higher.
20450 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20451 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20452 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20453 carries no extra cost.
20454 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20455 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20456 * config/epiphany/predicates.md (memclob_operand): New predicate.
20457 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20458 Use memclob_operand predicate and X constraint for operand 3.
20459
20460 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20461
20462 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20463 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20464 its operands.
20465
20466 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20467
20468 PR rtl-optimization/60651
20469 * mode-switching.c (optimize_mode_switching): Make sure to emit
20470 sets of a lower numbered entity before sets of a higher numbered
20471 entity to a mode of the same or lower priority.
20472 When creating a seginfo for a basic block that starts with a code
20473 label, move the insertion point past the code label.
20474 (new_seginfo): Document and enforce requirement that
20475 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20476 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20477 * doc/tm.texi: Regenerate.
20478
20479 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20480
20481 PR target/60811
20482 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20483
20484 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20485
20486 * BASE-VER: Set to 4.10.0.
20487
20488 2014-04-11 Tobias Burnus <burnus@net-b.de>
20489
20490 PR other/59055
20491 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20492 * doc/gcc.texi (Service): Update description in the @menu
20493 * doc/invoke.texi (Option Summary): Remove misplaced and
20494 duplicated @menu.
20495
20496 2014-04-11 Steve Ellcey <sellcey@mips.com>
20497 Jakub Jelinek <jakub@redhat.com>
20498
20499 PR middle-end/60556
20500 * expr.c (convert_move): Use emit_store_flag_force instead of
20501 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20502 argument to it.
20503
20504 2014-04-11 Richard Biener <rguenther@suse.de>
20505
20506 PR middle-end/60797
20507 * varasm.c (assemble_alias): Avoid endless error reporting
20508 recursion by setting TREE_ASM_WRITTEN.
20509
20510 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20511
20512 * config/s390/s390.md: Add a splitter for NOT rtx.
20513
20514 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20515
20516 PR rtl-optimization/60663
20517 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20518
20519 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20520 Jakub Jelinek <jakub@redhat.com>
20521
20522 PR lto/60567
20523 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20524 flag from decl_node to node.
20525
20526 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20527
20528 PR debug/60655
20529 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20530 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20531 ameliorating the cases where it can be.
20532
20533 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20534
20535 Revert
20536 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20537
20538 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20539 (loadsync_<mode>): Change mode.
20540 (load_quadpti, store_quadpti): New.
20541 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20542 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20543 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20544
20545 2014-04-09 Cong Hou <congh@google.com>
20546
20547 PR testsuite/60773
20548 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20549 documentation.
20550
20551 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20552
20553 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20554 instead of vnor to exploit possible fusion opportunity in the
20555 future.
20556 (altivec_expand_vec_perm_const_le): Likewise.
20557
20558 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20559
20560 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20561 (loadsync_<mode>): Change mode.
20562 (load_quadpti, store_quadpti): New.
20563 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20564 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20565
20566 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20567
20568 PR target/60763
20569 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20570 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20571 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20572
20573 2014-04-08 Richard Biener <rguenther@suse.de>
20574
20575 PR middle-end/60706
20576 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20577 a 64bit widest int print double-int similar to on HWI64 hosts.
20578
20579 2014-04-08 Richard Biener <rguenther@suse.de>
20580
20581 PR tree-optimization/60785
20582 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20583 default defs properly.
20584
20585 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20586
20587 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20588 (Weffc++): Likewise.
20589
20590 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20591
20592 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20593 set completep to false rather than true.
20594
20595 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20596
20597 PR target/60504
20598 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20599 ARM_TARGET2_DWARF_FORMAT.
20600
20601 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20602
20603 PR target/60609
20604 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20605 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20606 ADDR_DIFF_VEC.
20607
20608 2014-04-07 Richard Biener <rguenther@suse.de>
20609
20610 PR tree-optimization/60766
20611 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20612 (may_eliminate_iv): Convert cand_value_at result to desired type.
20613
20614 2014-04-07 Jason Merrill <jason@redhat.com>
20615
20616 PR c++/60731
20617 * common.opt (-fno-gnu-unique): Add.
20618 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20619
20620 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20621
20622 * haifa-sched.c: Fix outdated function reference and minor
20623 grammar errors in introductory comment.
20624
20625 2014-04-07 Richard Biener <rguenther@suse.de>
20626
20627 PR middle-end/60750
20628 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20629 for noreturn calls.
20630 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20631
20632 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20633
20634 PR debug/55794
20635 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20636 size accounting for thunks.
20637 (pa_asm_output_mi_thunk): Use final_start_function() and
20638 final_end_function() to output function start and end directives.
20639
20640 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20641
20642 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20643 device specific ISA/ feature information. Remove short_sp and
20644 errata_skip ds. Add avr_device_specific_features enum to have device
20645 specific info.
20646 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20647 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20648 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20649 updated device specific info.
20650 * config/avr/avr-mcus.def: Merge device specific details to
20651 dev_attribute field.
20652 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20653 errata_skip.
20654 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20655 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20656 assembler if RMW isa supported by current device.
20657 * config/avr/genmultilib.awk: Update as device info structure changed.
20658 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20659
20660 2014-04-04 Cong Hou <congh@google.com>
20661
20662 PR tree-optimization/60656
20663 * tree-vect-stmts.c (supportable_widening_operation):
20664 Fix a bug that elements in a vector with vect_used_by_reduction
20665 property are incorrectly reordered when the operation on it is not
20666 consistant with the one in reduction operation.
20667
20668 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20669
20670 PR rtl-optimization/60155
20671 * gcse.c (record_set_data): New function.
20672 (single_set_gcse): New function.
20673 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20674 (hoist_code): Likewise.
20675 (get_pressure_class_and_nregs): Likewise.
20676
20677 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20678
20679 * explow.c (probe_stack_range): Emit a final optimization blockage.
20680
20681 2014-04-04 Anthony Green <green@moxielogic.com>
20682
20683 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20684 typos.
20685
20686 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20687
20688 PR ipa/59626
20689 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20690 flags are set only during streaming.
20691 * ipa.c (process_references, walk_polymorphic_call_targets,
20692 symtab_remove_unreachable_nodes): Drop bodies of always inline
20693 after early inlining.
20694 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20695
20696 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20697 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20698
20699 PR debug/60655
20700 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20701 containing a NOT.
20702
20703 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20704
20705 PR bootstrap/60743
20706 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20707 duration.
20708 (cortex_a53_fdivd): Likewise.
20709
20710 2014-04-04 Martin Jambor <mjambor@suse.cz>
20711
20712 PR ipa/60640
20713 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20714 Adjust all callers.
20715 * cgraph.c (clone_of_p): Also return true if thunks match.
20716 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20717 cgraph_function_or_thunk_node and an obsolete comment.
20718 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20719 file.
20720 (build_function_decl_skip_args): Likewise.
20721 (set_new_clone_decl_and_node_flags): New function.
20722 (duplicate_thunk_for_node): Likewise.
20723 (redirect_edge_duplicating_thunks): Likewise.
20724 (cgraph_clone_node): New parameter args_to_skip, pass it to
20725 redirect_edge_duplicating_thunks which is called instead of
20726 cgraph_redirect_edge_callee.
20727 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20728 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20729
20730 2014-04-04 Jeff Law <law@redhat.com>
20731
20732 PR target/60657
20733 * config/arm/predicates.md (const_int_I_operand): New predicate.
20734 (const_int_M_operand): Similarly.
20735 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20736 const_int_operand.
20737 (insv_t2, extv_reg, extzv_t2): Likewise.
20738 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20739 (pop_multiple_with_writeback_and_return): Likewise.
20740 (vfp_pop_multiple_with_writeback): Likewise
20741
20742 2014-04-04 Richard Biener <rguenther@suse.de>
20743
20744 PR ipa/60746
20745 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20746 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20747 non-GIMPLE_LABELs.
20748 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20749 * gimplify.c (gimple_add_tmp_var_fn): New function.
20750 * gimple-expr.h (create_tmp_reg_fn): Declare.
20751 * gimple-expr.c (create_tmp_reg_fn): New function.
20752 * gimple-low.c (record_vars_into): Don't change cfun.
20753 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20754 code generation without cfun.
20755
20756 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20757
20758 PR bootstrap/60719
20759 * Makefile.in (install-driver): Fix shell scripting.
20760
20761 2014-04-03 Cong Hou <congh@google.com>
20762
20763 PR tree-optimization/60505
20764 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20765 threshold of number of iterations below which no vectorization
20766 will be done.
20767 * tree-vect-loop.c (new_loop_vec_info):
20768 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20769 * tree-vect-loop.c (vect_analyze_loop_operations):
20770 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20771 * tree-vect-loop.c (vect_transform_loop):
20772 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20773 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20774 of iterations of the loop and see if we should build the epilogue.
20775
20776 2014-04-03 Richard Biener <rguenther@suse.de>
20777
20778 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20779 (streamer_tree_cache_create): Adjust.
20780 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20781 to allow optional nodes array.
20782 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20783 (streamer_tree_cache_append): Likewise.
20784 (streamer_tree_cache_create): Create nodes array optionally
20785 as specified by parameter.
20786 * lto-streamer-out.c (create_output_block): Avoid maintaining
20787 the node array in the writer cache.
20788 (DFS_write_tree): Remove assertion.
20789 (produce_asm_for_decls): Free the out decl state hash table early.
20790 * lto-streamer-in.c (lto_data_in_create): Adjust for
20791 streamer_tree_cache_create prototype change.
20792
20793 2014-04-03 Richard Biener <rguenther@suse.de>
20794
20795 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20796 set TREE_CHAIN to NULL_TREE.
20797
20798 2014-04-03 Richard Biener <rguenther@suse.de>
20799
20800 PR tree-optimization/60740
20801 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20802 over all GIMPLE_COND operands.
20803
20804 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20805
20806 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20807 (Weffc++): Remove Scott's numbering, merge lists and reference
20808 Wnon-virtual-dtor.
20809
20810 2014-04-03 Nick Clifton <nickc@redhat.com>
20811
20812 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20813 properly.
20814
20815 2014-04-03 Martin Jambor <mjambor@suse.cz>
20816
20817 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20818 mention gcc_unreachable before failing.
20819 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20820 removed symbols.
20821
20822 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20823
20824 PR ipa/60659
20825 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20826 inconsistent code and instead mark the context inconsistent.
20827 (possible_polymorphic_call_targets): For inconsistent contexts
20828 return empty complete list.
20829
20830 2014-04-02 Anthony Green <green@moxielogic.com>
20831
20832 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20833 (extendqisi2, extendhisi2): Define.
20834 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20835 (WCHAR_TYPE): Change to unsigned int.
20836
20837 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20838
20839 PR tree-optimization/60733
20840 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20841 insertion point for PHI candidates to be the end of the feeding
20842 block for the PHI argument.
20843
20844 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20845
20846 PR rtl-optimization/60650
20847 * lra-constraints.c (process_alt_operands): Decrease reject for
20848 earlyclobber matching.
20849
20850 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20851
20852 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20853
20854 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20855
20856 * config/spu/spu.c (pad_bb): Do not crash when the last
20857 insn is CODE_FOR_blockage.
20858
20859 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20860
20861 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20862 lies outside the target mode.
20863
20864 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20865
20866 PR target/60735
20867 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20868 software floating point or no floating point registers, do not
20869 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20870 in GPRs that occurs after we tested for GPRs that would never be
20871 true.
20872
20873 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20874 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20875 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20876 specifically allow DDmode, since that does not use the SPE SIMD
20877 instructions.
20878
20879 2014-04-02 Richard Biener <rguenther@suse.de>
20880
20881 PR middle-end/60729
20882 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20883 MODE_INTs. Properly use negv_optab.
20884 (expand_abs): Likewise.
20885
20886 2014-04-02 Richard Biener <rguenther@suse.de>
20887
20888 PR bootstrap/60719
20889 * Makefile.in (install-driver): Guard extra installs with special
20890 names properly.
20891
20892 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20893
20894 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20895 Document vec_vgbbd.
20896
20897 2014-04-01 Richard Henderson <rth@redhat.com>
20898
20899 PR target/60704
20900 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20901 alternative enabled before register allocation.
20902
20903 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20904
20905 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20906 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20907 typo.
20908 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20909 (nios2_got_address): Update nios2_large_got_address call site.
20910 (nios2_delegitimize_address): New function.
20911 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20912 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20913 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20914
20915 2014-04-01 Martin Husemann <martin@duskware.de>
20916
20917 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20918 for -mabi=32.
20919
20920 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20921
20922 PR rtl-optimization/60604
20923 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20924 check from register_operand.
20925 (register_operand): Redefine in terms of general_operand.
20926 (nonmemory_operand): Use register_operand for the non-constant cases.
20927
20928 2014-04-01 Richard Biener <rguenther@suse.de>
20929
20930 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20931
20932 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20933
20934 * doc/invoke.texi (mapp-regs): Clarify.
20935
20936 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20937
20938 * config/i386/avx512fintrin.h (__v32hi): Define type.
20939 (__v64qi): Likewise.
20940 (_mm512_set1_epi8): Define.
20941 (_mm512_set1_epi16): Define.
20942 (_mm512_set4_epi32): Define.
20943 (_mm512_set4_epi64): Define.
20944 (_mm512_set4_pd): Define.
20945 (_mm512_set4_ps): Define.
20946 (_mm512_setr4_epi64): Define.
20947 (_mm512_setr4_epi32): Define.
20948 (_mm512_setr4_pd): Define.
20949 (_mm512_setr4_ps): Define.
20950 (_mm512_setzero_epi32): Define.
20951
20952 2014-03-31 Martin Jambor <mjambor@suse.cz>
20953
20954 PR middle-end/60647
20955 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20956 callsite_arguments_match_p. Updated all callers. Also check types of
20957 corresponding formal parameters and actual arguments.
20958 (not_all_callers_have_enough_arguments_p) Renamed to
20959 some_callers_have_mismatched_arguments_p.
20960
20961 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20962
20963 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20964
20965 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20966
20967 PR target/60034
20968 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20969 section anchor.
20970
20971 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20972
20973 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20974 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20975 Split out
20976 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20977 Use FMAMODE_NOVF512 mode iterator.
20978 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20979 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20980 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20981 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20982 Split out
20983 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20984 Use VF_128_256 mode iterator.
20985 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20986 Ditto.
20987
20988 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20989
20990 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20991 static chain if needed.
20992
20993 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20994
20995 PR target/60697
20996 * lra-constraints.c (index_part_to_reg): New.
20997 (process_address): Use it.
20998
20999 2014-03-27 Jeff Law <law@redhat.com>
21000 Jakub Jelinek <jakub@redhat.com>
21001
21002 PR target/60648
21003 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21004 gen_rtx_{PLUS,MULT} to build up the address expression.
21005
21006 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21007 creating non-canonical RTL.
21008
21009 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21010
21011 PR ipa/60243
21012 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21013 functions; reorganize to make cheap checks first.
21014 (inline_small_functions): Do not estimate growth when dumping;
21015 it is expensive.
21016 * ipa-inline.h (inline_summary): Add min_size.
21017 (growth_likely_positive): New function.
21018 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21019 (set_cond_stmt_execution_predicate): Cleanup.
21020 (estimate_edge_size_and_time): Compute min_size.
21021 (estimate_calls_size_and_time): Likewise.
21022 (estimate_node_size_and_time): Likewise.
21023 (inline_update_overall_summary): Update min_size.
21024 (do_estimate_edge_time): Likewise.
21025 (do_estimate_edge_size): Update.
21026 (do_estimate_edge_hints): Update.
21027 (growth_likely_positive): New function.
21028
21029 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21030
21031 PR target/60693
21032 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21033 also if addr has VOIDmode.
21034
21035 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21036
21037 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21038 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21039 Declare extern.
21040 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21041 instructions as well as AdvancedSIMD loads.
21042
21043 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21044
21045 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21046 Use crypto_aese type.
21047 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21048 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21049 crypto_aese, crypto_aesmc. Move to types.md.
21050 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21051 crypto_aesmc.
21052 * config/arm/iterators.md (crypto_type): Likewise.
21053
21054 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21055
21056 * cgraph.c: Include expr.h and tree-dfa.h.
21057 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21058 remove LHS.
21059
21060 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21061
21062 PR target/60675
21063 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21064 regs from checking multi-reg pseudos.
21065
21066 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21067
21068 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21069
21070 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21071
21072 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21073 if it would clobber the stack pointer, even temporarily.
21074
21075 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21076
21077 * mode-switching.c: Make small adjustments to the top comment.
21078
21079 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21080
21081 * config/rs6000/constraints.md (wD constraint): New constraint to
21082 match the constant integer to get the top DImode/DFmode out of a
21083 vector in a VSX register.
21084
21085 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21086 match the constant integer to get the top DImode/DFmode out of a
21087 vector in a VSX register.
21088
21089 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21090 for ISA 2.07.
21091
21092 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21093 vbpermq builtins.
21094
21095 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21096 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21097
21098 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21099 Optimize vec_extract of 64-bit values, where the value being
21100 extracted is in the top word, where we can use scalar
21101 instructions. Add direct move and store support. Combine the big
21102 endian/little endian vector select load support into a single insn.
21103 (vsx_extract_<mode>_internal1): Likewise.
21104 (vsx_extract_<mode>_internal2): Likewise.
21105 (vsx_extract_<mode>_load): Likewise.
21106 (vsx_extract_<mode>_store): Likewise.
21107 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21108 combined into vsx_extract_<mode>_load.
21109 (vsx_extract_<mode>_one_le): Likewise.
21110
21111 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21112 define the top 64-bit vector element.
21113
21114 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21115 constraint.
21116
21117 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21118 Document vec_vbpermq builtin.
21119
21120 PR target/60672
21121 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21122 enable use of xxsldwi and xxpermdi builtin functions.
21123 (vec_xxpermdi): Likewise.
21124
21125 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21126 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21127
21128 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21129
21130 PR rtl-optimization/60650
21131 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21132 first_p. Use it.
21133 (find_spills_for): New.
21134 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21135 Spill all pseudos on the second iteration.
21136
21137 2014-03-27 Marek Polacek <polacek@redhat.com>
21138
21139 PR c/50347
21140 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21141 types.
21142
21143 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21144
21145 * config/s390/s390.c (s390_can_use_return_insn): Check for
21146 call-saved FPRs on 31 bit.
21147
21148 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21149
21150 PR middle-end/60682
21151 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21152 if they need regimplification, just drop them instead of
21153 calling gimple_regimplify_operands on them.
21154
21155 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21156
21157 PR target/60580
21158 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21159 (aarch64_frame_pointer_required): Adjust logic.
21160 (aarch64_can_eliminate): Adjust logic.
21161 (aarch64_override_options_after_change): Adjust logic.
21162
21163 2014-03-27 Dehao Chen <dehao@google.com>
21164
21165 * ipa-inline.c (early_inliner): Update node's inline info.
21166
21167 2014-03-26 Dehao Chen <dehao@google.com>
21168
21169 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21170 compiler inserted conditional jumps for NAN float check.
21171
21172 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21173
21174 * ubsan.h (ubsan_create_data): Change second argument's type
21175 to const location_t *.
21176 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21177 _("<unknown>").
21178 (ubsan_create_data): Change second argument to const location_t *PLOC.
21179 Create Loc field whenever PLOC is non-NULL.
21180 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21181 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21182 callers.
21183
21184 PR other/59545
21185 * real.c (real_to_integer2): Change type of low to UHWI.
21186
21187 2014-03-26 Tobias Burnus <burnus@net-b.de>
21188
21189 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21190 (CILK_SELF_SPECS): New define.
21191 (driver_self_specs): Use it.
21192
21193 2014-03-26 Richard Biener <rguenther@suse.de>
21194
21195 * tree-pretty-print.c (percent_K_format): Implement special
21196 case for LTO and its stripped down BLOCK tree.
21197
21198 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21199
21200 PR sanitizer/60636
21201 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21202
21203 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21204 one range is range_int_cst_p, but not both, at least optimize
21205 addition/subtraction of 0 and multiplication by 0 or 1.
21206 * gimple-fold.c (gimple_fold_call): Fold
21207 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21208 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21209 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21210
21211 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21212
21213 PR rtl-optimization/60452
21214 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21215 <case REG>: Return 1 for invalid offsets from the frame pointer.
21216
21217 2014-03-26 Marek Polacek <polacek@redhat.com>
21218
21219 PR c/37428
21220 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21221 a structure/union.
21222
21223 2014-03-26 Marek Polacek <polacek@redhat.com>
21224
21225 PR c/39525
21226 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21227 field members.
21228
21229 2014-03-26 Marek Polacek <polacek@redhat.com>
21230
21231 PR other/59545
21232 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21233 multiplication in unsigned type.
21234
21235 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21236
21237 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21238
21239 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21240
21241 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21242
21243 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21244
21245 PR ipa/60315
21246 * cif-code.def (UNREACHABLE) New code.
21247 * ipa-inline.c (inline_small_functions): Skip edges to
21248 __builtlin_unreachable.
21249 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21250 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21251 predicate to __bulitin_unreachable.
21252 (set_cond_stmt_execution_predicate): Fix issue when
21253 invert_tree_comparison returns ERROR_MARK.
21254 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21255 propagate to inline clones.
21256 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21257 to unreachable.
21258 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21259 * cgraphclones.c (cgraph_clone_node): If call destination is already
21260 ureachable, do not redirect it back.
21261 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21262 unreachable.
21263
21264 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21265
21266 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21267 Do not modify inline clones.
21268
21269 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21270
21271 * config/i386/i386.md (general_sext_operand): New mode attr.
21272 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21273 don't generate (sign_extend (const_int)).
21274 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21275 operands[2]. Use We constraint instead of <i> and
21276 <general_sext_operand> predicate instead of <general_operand>.
21277 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21278 * config/i386/constraints.md (We): New constraint.
21279 * config/i386/predicates.md (x86_64_sext_operand,
21280 sext_operand): New predicates.
21281
21282 2014-03-25 Martin Jambor <mjambor@suse.cz>
21283
21284 PR ipa/60600
21285 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21286 inconsistent devirtualizations to __builtin_unreachable.
21287
21288 2014-03-25 Marek Polacek <polacek@redhat.com>
21289
21290 PR c/35449
21291 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21292
21293 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21294
21295 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21296 order of elements for big-endian.
21297
21298 2014-03-25 Richard Biener <rguenther@suse.de>
21299
21300 PR middle-end/60635
21301 * gimplify-me.c (gimple_regimplify_operands): Update the
21302 re-gimplifed stmt.
21303
21304 2014-03-25 Martin Jambor <mjambor@suse.cz>
21305
21306 PR ipa/59176
21307 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21308 (lto_output_varpool_node): Likewise.
21309 (input_overwrite_node): Likewise.
21310 (input_varpool_node): Likewise.
21311
21312 2014-03-25 Richard Biener <rguenther@suse.de>
21313
21314 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21315 (run_gcc): Likewise.
21316
21317 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21318
21319 * combine.c (simplify_compare_const): Add MODE argument.
21320 Handle mode_width 0 as very large mode_width.
21321 (try_combine, simplify_comparison): Adjust callers.
21322
21323 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21324 type to avoid signed integer overflow.
21325 * explow.c (plus_constant): Likewise.
21326
21327 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21328
21329 * doc/generic.texi: Correct typos.
21330
21331 2014-03-24 Tobias Burnus <burnus@net-b.de>
21332
21333 * doc/invoke.texi (-flto): Expand section about
21334 using static libraries with LTO.
21335
21336 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21337
21338 PR rtl-optimization/60501
21339 * optabs.def (addptr3_optab): New optab.
21340 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21341 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21342 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21343
21344 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21345
21346 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21347
21348 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21349
21350 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21351 _mm512_set1_pd.
21352
21353 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21354 (_mm256_undefined_ps): Define.
21355 (_mm256_undefined_pd): Define.
21356 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21357 (_mm_undefined_pd): Define.
21358 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21359 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21360 (_mm512_undefined_ps): Define.
21361 (_mm512_undefined_pd): Define.
21362 Use _mm*_undefined_*.
21363 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21364
21365 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21366
21367 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21368 (lshr_simd): DI mode added.
21369 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21370 (aarch64_ushr_simddi): Likewise.
21371 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21372 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21373 (vshrd_n_u64): Likewise.
21374
21375 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21376
21377 * Makefile.in (s-macro_list): Depend on cc1.
21378
21379 2014-03-23 Teresa Johnson <tejohnson@google.com>
21380
21381 * ipa-utils.c (ipa_print_order): Use specified dump file.
21382
21383 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21384
21385 PR rtl-optimization/60601
21386 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21387
21388 * gcc.c (eval_spec_function): Initialize save_growing_value.
21389
21390 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21391
21392 PR sanitizer/60613
21393 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21394 code == MINUS_EXPR, never swap op0 with op1.
21395
21396 * toplev.c (init_local_tick): Avoid signed integer multiplication
21397 overflow.
21398 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21399 shift by first operand's bitsize.
21400
21401 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21402
21403 PR target/60610
21404 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21405 redefine to 1 or 0.
21406 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21407 TARGET_ISA_64BIT_P(x).
21408
21409 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21410
21411 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21412 pattern for vector nor instead of subtract from splat(-1).
21413 (altivec_expand_vec_perm_const_le): Likewise.
21414
21415 2014-03-21 Richard Henderson <rth@twiddle.net>
21416
21417 PR target/60598
21418 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21419 related insns after epilogue_completed.
21420
21421 2014-03-21 Martin Jambor <mjambor@suse.cz>
21422
21423 PR ipa/59176
21424 * cgraph.h (symtab_node): New flag body_removed.
21425 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21426 when removing bodies.
21427 * symtab.c (dump_symtab_base): Dump body_removed flag.
21428 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21429 had their bodies removed.
21430
21431 2014-03-21 Martin Jambor <mjambor@suse.cz>
21432
21433 PR ipa/60419
21434 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21435 in the border.
21436
21437 2014-03-21 Richard Biener <rguenther@suse.de>
21438
21439 PR tree-optimization/60577
21440 * tree-core.h (struct tree_base): Document nothrow_flag use
21441 in DECL_NONALIASED.
21442 * tree.h (DECL_NONALIASED): New.
21443 (may_be_aliased): Adjust.
21444 * coverage.c (build_var): Set DECL_NONALIASED.
21445
21446 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21447
21448 * expr.c (expand_expr_real_1): Remove outdated comment.
21449
21450 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21451
21452 PR middle-end/60597
21453 * ira.c (adjust_cleared_regs): Call copy_rtx on
21454 *reg_equiv[REGNO (loc)].src_p before passing it to
21455 simplify_replace_fn_rtx.
21456
21457 PR target/60568
21458 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21459 into CONST, put pic register as first operand of PLUS. Use
21460 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21461
21462 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21463
21464 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21465
21466 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21467
21468 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21469 around for store forwarding issue in the FPU on the UT699.
21470 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21471 loads and operations if -mfix-ut699 is specified.
21472 (divtf3_hq): Tweak attribute.
21473 (sqrttf2_hq): Likewise.
21474
21475 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21476
21477 * calls.c (store_one_arg): Remove incorrect const qualification on the
21478 type of the temporary.
21479 * cfgexpand.c (expand_return): Likewise.
21480 * expr.c (expand_constructor): Likewise.
21481 (expand_expr_real_1): Likewise.
21482
21483 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21484
21485 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21486 of parts.
21487
21488 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21489
21490 PR target/60039
21491 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21492
21493 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21494
21495 * config/arm/aarch-common-protos.h
21496 (alu_cost_table): Fix spelling of "extend".
21497 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21498
21499 2014-03-19 Richard Biener <rguenther@suse.de>
21500
21501 PR middle-end/60553
21502 * tree-core.h (tree_type_common): Re-order pointer members
21503 to reduce recursion depth during GC walks.
21504
21505 2014-03-19 Marek Polacek <polacek@redhat.com>
21506
21507 PR sanitizer/60569
21508 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21509 before accessing it.
21510
21511 2014-03-19 Richard Biener <rguenther@suse.de>
21512
21513 PR lto/59543
21514 * lto-streamer-in.c (input_function): In WPA stage do not drop
21515 debug stmts.
21516
21517 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21518
21519 PR tree-optimization/60559
21520 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21521 with build_zero_cst assignment.
21522
21523 2014-03-18 Kai Tietz <ktietz@redhat.com>
21524
21525 PR rtl-optimization/56356
21526 * sdbout.c (sdbout_parms): Verify that parms'
21527 incoming argument is valid.
21528 (sdbout_reg_parms): Likewise.
21529
21530 2014-03-18 Richard Henderson <rth@redhat.com>
21531
21532 PR target/60562
21533 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21534 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21535 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21536
21537 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21538
21539 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21540 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21541 Italicize plugin event names in description. Explain that
21542 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21543 Remind that no GCC functions should be called after PLUGIN_FINISH.
21544 Explain what pragmas with expansion are.
21545
21546 2014-03-18 Martin Liska <mliska@suse.cz>
21547
21548 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21549 gimple call statement is update.
21550 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21551 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21552
21553 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21554
21555 PR sanitizer/60557
21556 * ubsan.c (ubsan_instrument_unreachable): Call
21557 initialize_sanitizer_builtins.
21558 (ubsan_pass): Likewise.
21559
21560 PR sanitizer/60535
21561 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21562 varpool_finalize_decl instead of rest_of_decl_compilation.
21563
21564 2014-03-18 Richard Biener <rguenther@suse.de>
21565
21566 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21567 by using bitmap_and_compl instead of bitmap_and_compl_into.
21568 (df_rd_transfer_function): Likewise.
21569
21570 2014-03-18 Richard Biener <rguenther@suse.de>
21571
21572 * doc/lto.texi (fresolution): Fix typo.
21573
21574 2014-03-18 Richard Biener <rguenther@suse.de>
21575
21576 * doc/invoke.texi (flto): Update for changes in 4.9.
21577
21578 2014-03-18 Richard Biener <rguenther@suse.de>
21579
21580 * doc/loop.texi: Remove section on the removed lambda framework.
21581 Update loop docs with recent changes in preserving loop structure.
21582
21583 2014-03-18 Richard Biener <rguenther@suse.de>
21584
21585 * doc/lto.texi (-fresolution): Document.
21586
21587 2014-03-18 Richard Biener <rguenther@suse.de>
21588
21589 * doc/contrib.texi: Adjust my name.
21590
21591 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21592
21593 PR ipa/58721
21594 * internal-fn.c: Include diagnostic-core.h.
21595 (expand_BUILTIN_EXPECT): New function.
21596 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21597 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21598 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21599 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21600 IFN_BUILTIN_EXPECT.
21601 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21602 Revert 3 argument __builtin_expect code.
21603 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21604 * gimple-fold.c (gimple_fold_call): Likewise.
21605 * tree.h (fold_builtin_expect): New prototype.
21606 * builtins.c (build_builtin_expect_predicate): Add predictor
21607 argument, if non-NULL, create 3 argument __builtin_expect.
21608 (fold_builtin_expect): No longer static. Add ARG2 argument,
21609 pass it through to build_builtin_expect_predicate.
21610 (fold_builtin_2): Adjust caller.
21611 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21612 * internal-fn.def (BUILTIN_EXPECT): New.
21613
21614 2014-03-18 Tobias Burnus <burnus@net-b.de>
21615
21616 PR ipa/58721
21617 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21618 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21619 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21620
21621 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21622
21623 PR ipa/58721
21624 * predict.c (combine_predictions_for_bb): Fix up formatting.
21625 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21626 fill what it points to if non-NULL.
21627 (tree_predict_by_opcode): Adjust caller, use the predictor.
21628 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21629
21630 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21631
21632 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21633 proper constant for the store mode.
21634
21635 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21636
21637 * symtab.c (change_decl_assembler_name): Fix transparent alias
21638 chain construction.
21639
21640 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21641
21642 * config/aarch64/aarch64.c: Correct the comments about the
21643 aarch64 stack layout.
21644
21645 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21646
21647 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21648 check for GF_OMP_FOR_KIND_FOR.
21649
21650 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21651
21652 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21653 ymm and zmm register names.
21654
21655 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21656
21657 PR target/60516
21658 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21659 note creation for the 2010-08-31 changes.
21660
21661 2014-03-17 Marek Polacek <polacek@redhat.com>
21662
21663 PR middle-end/60534
21664 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21665 as -fno-tree-loop-vectorize.
21666 (expand_omp_simd): Likewise.
21667
21668 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21669
21670 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21671 (eligible_for_call_delay): New prototype.
21672 * config/sparc/sparc.c (tls_call_delay): Rename into...
21673 (eligible_for_call_delay): ...this. Return false if the instruction
21674 cannot be put in the delay slot of a branch.
21675 (eligible_for_restore_insn): Simplify.
21676 (eligible_for_return_delay): Return false if the instruction cannot be
21677 put in the delay slot of a branch and simplify.
21678 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21679 put in the delay slot of a branch.
21680 * config/sparc/sparc.md (fix_ut699): New attribute.
21681 (tls_call_delay): Delete.
21682 (in_call_delay): Reimplement.
21683 (eligible_for_sibcall_delay): Rename into...
21684 (in_sibcall_delay): ...this.
21685 (eligible_for_return_delay): Rename into...
21686 (in_return_delay): ...this.
21687 (in_branch_delay): Reimplement.
21688 (in_uncond_branch_delay): Delete.
21689 (in_annul_branch_delay): Delete.
21690
21691 2014-03-14 Richard Henderson <rth@redhat.com>
21692
21693 PR target/60525
21694 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21695 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21696 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21697 (floathi splitters): Remove.
21698 (float<SWI48x>xf2): New pattern.
21699 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21700 code that tried to handle DImode for 32-bit, but which was excluded
21701 by the pattern's condition. Drop allocation of stack temporary.
21702 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21703 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21704 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21705 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21706 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21707 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21708 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21709 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21710 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21711 (*float<SWI48x><X87MODEF>2_i387): Remove.
21712 (all float _with_temp splitters): Remove.
21713 (*float<SWI48x><MODEF>2_i387): New pattern.
21714 (*float<SWI48><MODEF>2_sse): New pattern.
21715 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21716 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21717
21718 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21719 Marek Polacek <polacek@redhat.com>
21720
21721 PR middle-end/60484
21722 * common.opt (dump_base_name_prefixed): New Variable.
21723 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21724 if x_dump_base_name_prefixed is already set, set it at the end.
21725
21726 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21727
21728 PR rtl-optimization/60508
21729 * lra-constraints.c (get_reload_reg): Add new parameter
21730 in_subreg_p.
21731 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21732 Pass the new parameter values.
21733
21734 2014-03-14 Richard Biener <rguenther@suse.de>
21735
21736 * common.opt: Revert unintented changes from r205065.
21737 * opts.c: Likewise.
21738
21739 2014-03-14 Richard Biener <rguenther@suse.de>
21740
21741 PR middle-end/60518
21742 * cfghooks.c (split_block): Properly adjust all loops the
21743 block was a latch of.
21744
21745 2014-03-14 Martin Jambor <mjambor@suse.cz>
21746
21747 PR lto/60461
21748 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21749 and simplify it.
21750
21751 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21752
21753 PR target/59396
21754 * config/avr/avr.c (avr_set_current_function): Pass function name
21755 through default_strip_name_encoding before sanity checking instead
21756 of skipping the first char of the assembler name.
21757
21758 2014-03-13 Richard Henderson <rth@redhat.com>
21759
21760 PR debug/60438
21761 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21762 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21763 * config/i386/i386-protos.h: Likewise.
21764 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21765 in the expander instead of a splitter.
21766 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21767 any possibility of requiring a memory.
21768 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21769 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21770 (fp branch splitters): Update for ix86_split_fp_branch.
21771 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21772 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21773 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21774 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21775 (*fop_<MODEF>_3_i387): Likewise.
21776 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21777 (splitters for the fop_* register patterns): Remove.
21778 (fscalexf4_i387): Rename from *fscalexf4_i387.
21779 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21780
21781 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21782
21783 PR tree-optimization/59779
21784 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21785 type for bitsize and maxsize instead of HOST_WIDE_INT.
21786
21787 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21788
21789 PR rtl-optimization/57320
21790 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21791 the CFG after thread_prologue_and_epilogue_insns.
21792
21793 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21794
21795 PR rtl-optimization/57189
21796 * lra-constraints.c (process_alt_operands): Disfavor spilling
21797 vector pseudos.
21798
21799 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21800
21801 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21802
21803 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21804
21805 PR tree-optimization/59025
21806 PR middle-end/60418
21807 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21808 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21809
21810 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21811
21812 PR target/60486
21813 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21814 calls of avr_out_plus_1.
21815
21816 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21817
21818 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21819 BB's single pred and update the father loop's latch info later.
21820
21821 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21822
21823 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21824 (VEC_M): Likewise.
21825 (VEC_N): Likewise.
21826 (VEC_R): Likewise.
21827 (VEC_base): Likewise.
21828 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21829 registers, we need to swap double words in little endian mode.
21830
21831 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21832 to be a container mode for 128-bit integer operations added in ISA
21833 2.07. Unlike TImode and PTImode, the preferred register set is
21834 the Altivec/VMX registers for the 128-bit operations.
21835
21836 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21837 declarations.
21838 (rs6000_split_128bit_ok_p): Likewise.
21839
21840 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21841 macros for creating ISA 2.07 normal and overloaded builtin
21842 functions with 3 arguments.
21843 (BU_P8V_OVERLOAD_3): Likewise.
21844 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21845 for use as overloaded functions.
21846 (VPERM_1TI_UNS): Likewise.
21847 (VSEL_1TI): Likewise.
21848 (VSEL_1TI_UNS): Likewise.
21849 (ST_INTERNAL_1ti): Likewise.
21850 (LD_INTERNAL_1ti): Likewise.
21851 (XXSEL_1TI): Likewise.
21852 (XXSEL_1TI_UNS): Likewise.
21853 (VPERM_1TI): Likewise.
21854 (VPERM_1TI_UNS): Likewise.
21855 (XXPERMDI_1TI): Likewise.
21856 (SET_1TI): Likewise.
21857 (LXVD2X_V1TI): Likewise.
21858 (STXVD2X_V1TI): Likewise.
21859 (VEC_INIT_V1TI): Likewise.
21860 (VEC_SET_V1TI): Likewise.
21861 (VEC_EXT_V1TI): Likewise.
21862 (EQV_V1TI): Likewise.
21863 (NAND_V1TI): Likewise.
21864 (ORC_V1TI): Likewise.
21865 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21866 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21867 overloaded builtin.
21868 (VADDUQM): Likewise.
21869 (VSUBCUQ): Likewise.
21870 (VADDEUQM): Likewise.
21871 (VADDECUQ): Likewise.
21872 (VSUBEUQM): Likewise.
21873 (VSUBECUQ): Likewise.
21874
21875 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21876 __int128_t and __uint128_t types.
21877 (__uint128_type): Likewise.
21878 (altivec_categorize_keyword): Add support for vector __int128_t,
21879 vector __uint128_t, vector __int128, and vector unsigned __int128
21880 as a container type for TImode operations that need to be done in
21881 VSX/Altivec registers.
21882 (rs6000_macro_to_expand): Likewise.
21883 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21884 to support 128-bit integer instructions vaddcuq, vadduqm,
21885 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21886 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21887
21888 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21889 for V1TImode, and set up preferences to use VSX/Altivec registers.
21890 Setup VSX reload handlers.
21891 (rs6000_debug_reg_global): Likewise.
21892 (rs6000_init_hard_regno_mode_ok): Likewise.
21893 (rs6000_preferred_simd_mode): Likewise.
21894 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21895 (easy_altivec_constant): Likewise.
21896 (output_vec_const_move): Likewise.
21897 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21898 simple move.
21899 (rs6000_expand_vector_extract): Likewise.
21900 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21901 addressing.
21902 (rs6000_const_vec): Add support for V1TImode.
21903 (rs6000_emit_le_vsx_load): Swap double words when loading or
21904 storing TImode/V1TImode.
21905 (rs6000_emit_le_vsx_store): Likewise.
21906 (rs6000_emit_le_vsx_move): Likewise.
21907 (rs6000_emit_move): Add support for V1TImode.
21908 (altivec_expand_ld_builtin): Likewise.
21909 (altivec_expand_st_builtin): Likewise.
21910 (altivec_expand_vec_init_builtin): Likewise.
21911 (altivec_expand_builtin): Likewise.
21912 (rs6000_init_builtins): Add support for V1TImode type. Add
21913 support for ISA 2.07 128-bit integer builtins. Define type names
21914 for the VSX/Altivec vector types.
21915 (altivec_init_builtins): Add support for overloaded vector
21916 functions with V1TImode type.
21917 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21918 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21919 external function.
21920 (rs6000_split_128bit_ok_p): Likewise.
21921 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21922 __int128_t and vector __uint128_t.
21923
21924 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21925 and mode attributes.
21926 (VSX_M): Likewise.
21927 (VSX_M2): Likewise.
21928 (VSm): Likewise.
21929 (VSs): Likewise.
21930 (VSr): Likewise.
21931 (VSv): Likewise.
21932 (VS_scalar): Likewise.
21933 (VS_double): Likewise.
21934 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21935
21936 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21937 we support the ISA 2.07 128-bit integer arithmetic instructions.
21938 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21939 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21940 and TImode types for use with the builtin functions.
21941 (V1TI_type_node): Likewise.
21942 (unsigned_V1TI_type_node): Likewise.
21943 (intTI_type_internal_node): Likewise.
21944 (uintTI_type_internal_node): Likewise.
21945
21946 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21947 128-bit builtin functions.
21948 (UNSPEC_VADDEUQM): Likewise.
21949 (UNSPEC_VADDECUQ): Likewise.
21950 (UNSPEC_VSUBCUQ): Likewise.
21951 (UNSPEC_VSUBEUQM): Likewise.
21952 (UNSPEC_VSUBECUQ): Likewise.
21953 (VM): Add V1TImode to vector mode iterators.
21954 (VM2): Likewise.
21955 (VI_unit): Likewise.
21956 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21957 (altivec_vaddcuq): Likewise.
21958 (altivec_vsubuqm): Likewise.
21959 (altivec_vsubcuq): Likewise.
21960 (altivec_vaddeuqm): Likewise.
21961 (altivec_vaddecuq): Likewise.
21962 (altivec_vsubeuqm): Likewise.
21963 (altivec_vsubecuq): Likewise.
21964
21965 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21966 mode iterators.
21967 (BOOL_128): Likewise.
21968 (BOOL_REGS_OUTPUT): Likewise.
21969 (BOOL_REGS_OP1): Likewise.
21970 (BOOL_REGS_OP2): Likewise.
21971 (BOOL_REGS_UNARY): Likewise.
21972 (BOOL_REGS_AND_CR0): Likewise.
21973
21974 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21975 128-bit integer builtin support.
21976 (vec_vadduqm): Likewise.
21977 (vec_vaddecuq): Likewise.
21978 (vec_vaddeuqm): Likewise.
21979 (vec_vsubecuq): Likewise.
21980 (vec_vsubeuqm): Likewise.
21981 (vec_vsubcuq): Likewise.
21982 (vec_vsubuqm): Likewise.
21983
21984 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21985 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21986 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21987 128-bit integer add/subtract to ISA 2.07.
21988
21989 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21990
21991 * config/arc/arc.c (arc_predicate_delay_insns):
21992 Fix third argument passed to conditionalize_nonjump.
21993
21994 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21995
21996 * config/aarch64/aarch64-builtins.c
21997 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21998 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21999 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22000 instead of __builtin_lfloor.
22001 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22002
22003 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22004
22005 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22006 (tree_ssa_ifcombine_bb_1): New function.
22007 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22008 is an empty forwarder block to then_bb or vice versa and then_bb
22009 and else_bb are effectively swapped.
22010
22011 2014-03-12 Christian Bruel <christian.bruel@st.com>
22012
22013 PR target/60264
22014 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22015 REG_CFA_DEF_CFA note.
22016 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22017 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22018
22019 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22020
22021 PR tree-optimization/60454
22022 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22023
22024 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22025
22026 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22027 Do not define target_cpu_default2 to generic.
22028 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22029 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22030 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22031
22032 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22033 Marc Glisse <marc.glisse@inria.fr>
22034
22035 PR tree-optimization/60502
22036 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22037 instead of build_low_bits_mask.
22038
22039 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22040
22041 PR middle-end/60482
22042 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22043 if there are multiple uses, but op doesn't live on E edge.
22044 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22045 clobber stmts before __builtin_unreachable.
22046
22047 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22048
22049 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22050 hard_frame_pointer_rtx.
22051 * cse.c (cse_insn): Remove volatile check.
22052 * cselib.c (cselib_process_insn): Likewise.
22053 * dse.c (scan_insn): Likewise.
22054
22055 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22056
22057 * config/arc/arc.c (conditionalize_nonjump): New function,
22058 broken out of ...
22059 (arc_ifcvt): ... this.
22060 (arc_predicate_delay_insns): Use it.
22061
22062 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22063
22064 * config/arc/predicates.md (extend_operand): During/after reload,
22065 allow const_int_operand.
22066 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22067 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22068 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22069 to "i".
22070 (umulsi3_highpart_i): Likewise.
22071
22072 2014-03-11 Richard Biener <rguenther@suse.de>
22073
22074 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22075 Add asserts to guard possible wrong-code bugs.
22076
22077 2014-03-11 Richard Biener <rguenther@suse.de>
22078
22079 PR tree-optimization/60429
22080 PR tree-optimization/60485
22081 * tree-ssa-structalias.c (set_union_with_increment): Properly
22082 take into account all fields that overlap the shifted vars.
22083 (do_sd_constraint): Likewise.
22084 (do_ds_constraint): Likewise.
22085 (get_constraint_for_ptr_offset): Likewise.
22086
22087 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22088
22089 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22090 (nios2_compute_frame_layout):
22091 Add calculation of cfun->machine->fp_save_offset.
22092 (nios2_expand_prologue): Correct setting of frame pointer register
22093 in prologue.
22094 (nios2_expand_epilogue): Update recovery of stack pointer from
22095 frame pointer accordingly.
22096 (nios2_initial_elimination_offset): Update calculation of offset
22097 for eliminating to HARD_FRAME_POINTER_REGNUM.
22098
22099 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22100
22101 PR ipa/60457
22102 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22103 cgraph_get_create_node on VAR_DECLs.
22104
22105 2014-03-10 Richard Biener <rguenther@suse.de>
22106
22107 PR middle-end/60474
22108 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22109
22110 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22111
22112 * config/vms/vms.opt (vms_float_format): New variable.
22113
22114 2014-03-08 Tobias Burnus <burnus@net-b.de>
22115
22116 * doc/invoke.texi (-fcilkplus): Update implementation status.
22117
22118 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22119 Richard Biener <rguenther@suse.de>
22120
22121 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22122 consistently accross all TUs.
22123 (run_gcc): Enable -fshort-double automatically at link at link-time
22124 and disallow override.
22125
22126 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22127
22128 PR target/58271
22129 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22130 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22131 if they can't be used.
22132
22133 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22134
22135 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22136 for Solaris 11/x86 ld.
22137 * configure: Regenerate.
22138
22139 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22140
22141 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22142 (LIB_TLS_SPEC): Save as ld_tls_libs.
22143 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22144 (HAVE_AS_IX86_TLSLDM): New test.
22145 * configure, config.in: Regenerate.
22146 * config/i386/i386.c (legitimize_tls_address): Fall back to
22147 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22148 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22149 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22150 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22151
22152 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22153
22154 * common.opt (fira-loop-pressure): Mark as optimization.
22155
22156 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22157
22158 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22159 an OpenMP mappable type.
22160
22161 2014-03-06 Matthias Klose <doko@ubuntu.com>
22162
22163 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22164 MULTILIB_OSDIRNAMES is not defined.
22165
22166 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22167 Meador Inge <meadori@codesourcery.com>
22168
22169 PR target/58595
22170 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22171 (arm_legitimize_address): Call legitimize_tls_address for any
22172 arm_tls_referenced_p expression, handle constant addend. Call it
22173 before testing for !TARGET_ARM.
22174 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22175
22176 2014-03-06 Richard Biener <rguenther@suse.de>
22177
22178 PR middle-end/60445
22179 PR lto/60424
22180 PR lto/60427
22181 Revert
22182 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22183
22184 * tree-streamer.c (record_common_node): Assert we don't record
22185 nodes with type double.
22186 (preload_common_node): Skip type double, complex double and double
22187 pointer since it is now frontend dependent due to fshort-double option.
22188
22189 2014-03-06 Richard Biener <rguenther@suse.de>
22190
22191 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22192 or -fno-lto is specified and the linker has full plugin support.
22193 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22194 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22195 * lto-wrapper.c (merge_and_complain): Merge compile-time
22196 optimization levels.
22197 (run_gcc): And pass it through to the link options.
22198
22199 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22200
22201 PR debug/60381
22202 Revert:
22203 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22204 PR debug/59992
22205 * cselib.c (remove_useless_values): Skip to avoid quadratic
22206 behavior if the condition moved from...
22207 (cselib_process_insn): ... here holds.
22208
22209 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22210
22211 PR plugins/59335
22212 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22213 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22214
22215 PR plugins/59335
22216 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22217 (TM_H): Add x86-tune.def.
22218
22219 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22220
22221 * config/aarch64/aarch64.c (generic_tunings):
22222 Use cortexa57_extra_costs.
22223
22224 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22225
22226 PR lto/60404
22227 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22228 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22229 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22230 cost for in_lto_p.
22231
22232 2014-03-04 Heiher <r@hev.cc>
22233
22234 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22235 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22236
22237 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22238
22239 * config/i386/predicates.md (const2356_operand): Change to ...
22240 (const2367_operand): ... this.
22241 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22242 const2367_operand.
22243 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22244 (*avx512pf_scatterpf<mode>sf): Ditto.
22245 (avx512pf_scatterpf<mode>df): Ditto.
22246 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22247 (*avx512pf_scatterpf<mode>df): Ditto.
22248 * config/i386/i386.c (ix86_expand_builtin): Update
22249 incorrect hint operand error message.
22250
22251 2014-03-04 Richard Biener <rguenther@suse.de>
22252
22253 * lto-section-in.c (lto_get_section_data): Fix const cast.
22254
22255 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22256
22257 * tree-streamer.c (record_common_node): Assert we don't record
22258 nodes with type double.
22259 (preload_common_node): Skip type double, complex double and double
22260 pointer since it is now frontend dependent due to fshort-double option.
22261
22262 2014-03-04 Richard Biener <rguenther@suse.de>
22263
22264 PR lto/60405
22265 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22266 (lto_input_toplevel_asms): Likewise.
22267 * lto-section-in.c (lto_get_section_data): Instead do it here
22268 for every section.
22269
22270 2014-03-04 Richard Biener <rguenther@suse.de>
22271
22272 PR tree-optimization/60382
22273 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22274 dead PHIs a reduction.
22275
22276 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22277
22278 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22279 hint value.
22280 (_mm_prefetch): Move out of GCC target("sse") pragma.
22281 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22282 GCC target("prfchw") pragma.
22283 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22284 for locality <= 2.
22285 * config/i386/i386.c (ix86_option_override_internal): Enable
22286 -mprfchw with -mprefetchwt1.
22287
22288 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22289
22290 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22291 Mark as varying.
22292
22293 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22294
22295 * opts.h (CL_PCH_IGNORE): Define.
22296 * targhooks.c (option_affects_pch_p):
22297 Return false for options that have CL_PCH_IGNORE set.
22298 * opt-functions.awk: Process PchIgnore.
22299 * doc/options.texi: Document PchIgnore.
22300
22301 * config/arc/arc.opt (misize): Add PchIgnore property.
22302
22303 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22304
22305 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22306 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22307 constraint on constants to permit them being loaded into
22308 GENERAL_REGS or BASE_REGS.
22309
22310 2014-03-03 Nick Clifton <nickc@redhat.com>
22311
22312 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22313 anti-cacnonical alternatives.
22314 (negandhi3_real): New pattern.
22315 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22316
22317 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22318
22319 * config/avr/avr-mcus.def: Remove atxmega16x1.
22320 * config/avr/avr-tables.opt: Regenerate.
22321 * config/avr/t-multilib: Regenerate.
22322 * doc/avr-mmcu.texi: Regenerate.
22323
22324 2014-03-03 Tobias Grosser <tobias@grosser.es>
22325 Mircea Namolaru <mircea.namolaru@inria.fr>
22326
22327 PR tree-optimization/58028
22328 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22329 scalar dimensions.
22330
22331 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22332
22333 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22334 not handled by recognizers.
22335
22336 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22337
22338 PR middle-end/60175
22339 * function.c (expand_function_end): Don't emit
22340 clobber_return_register sequence if clobber_after is a BARRIER.
22341 * cfgexpand.c (construct_exit_block): Append instructions before
22342 return_label to prev_bb.
22343
22344 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22345
22346 * config/rs6000/constraints.md: Document reserved use of "wc".
22347
22348 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22349
22350 PR ipa/60150
22351 * ipa.c (function_and_variable_visibility): When dissolving comdat
22352 group, also set all symbols to local.
22353
22354 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22355
22356 PR ipa/60306
22357
22358 Revert:
22359 2013-12-14 Jan Hubicka <jh@suse.cz>
22360 PR middle-end/58477
22361 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22362
22363 2014-03-02 Jon Beniston <jon@beniston.com>
22364
22365 PR bootstrap/48230
22366 PR bootstrap/50927
22367 PR bootstrap/52466
22368 PR target/46898
22369 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22370 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22371 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22372 (simple_return, *simple_return): New patterns
22373 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22374 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22375
22376 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22377
22378 * dwarf2out.c (gen_subprogram_die): Tidy.
22379
22380 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22381
22382 PR target/60071
22383 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22384 (*mov_t_msb_neg_negc): ... this new insn.
22385
22386 2014-02-28 Jason Merrill <jason@redhat.com>
22387
22388 PR c++/58678
22389 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22390 function.
22391
22392 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22393
22394 PR c++/60314
22395 * dwarf2out.c (decltype_auto_die): New static.
22396 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22397 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22398 (is_cxx_auto): Likewise.
22399
22400 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22401
22402 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22403 we are not using general regs only.
22404
22405 2014-02-28 Richard Biener <rguenther@suse.de>
22406
22407 PR target/60280
22408 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22409 previous fix and only allow to remove trivial pre-headers
22410 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22411 (remove_forwarder_block): Properly update the latch of a loop.
22412
22413 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22414
22415 PR debug/59992
22416 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22417 (cselib_preserved_hash_table): New.
22418 (preserve_constants_and_equivs): Move preserved vals to it.
22419 (cselib_find_slot): Look it up first.
22420 (cselib_init): Initialize it.
22421 (cselib_finish): Release it.
22422 (dump_cselib_table): Dump it.
22423
22424 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22425
22426 PR debug/59992
22427 * cselib.c (remove_useless_values): Skip to avoid quadratic
22428 behavior if the condition moved from...
22429 (cselib_process_insn): ... here holds.
22430
22431 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22432
22433 PR debug/57232
22434 * var-tracking.c (vt_initialize): Apply the same condition to
22435 preserve the CFA base value.
22436
22437 2014-02-28 Joey Ye <joey.ye@arm.com>
22438
22439 PR target/PR60169
22440 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22441 if reload in progress or completed.
22442
22443 2014-02-28 Tobias Burnus <burnus@net-b.de>
22444
22445 PR middle-end/60147
22446 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22447 NAMELIST_DECL.
22448
22449 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22450
22451 * doc/tm.texi.in (Condition Code Status): Update documention for
22452 relative locations of cc0-setter and cc0-user.
22453
22454 2014-02-27 Jeff Law <law@redhat.com>
22455
22456 PR rtl-optimization/52714
22457 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22458 into two independent simple sets, if I3 is a jump, ensure the
22459 pattern we place into I3 is a (set (pc) ...).
22460
22461 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22462 Jeff Law <law@redhat.com>
22463
22464 PR rtl-optimization/49847
22465 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22466 are in different blocks.
22467 * doc/tm.texi (Condition Code Status): Update documention for
22468 relative locations of cc0-setter and cc0-user.
22469
22470 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22471
22472 PR target/59222
22473 * lra.c (lra_emit_add): Check SUBREG too.
22474
22475 2014-02-27 Andreas Schwab <schwab@suse.de>
22476
22477 * config/m68k/m68k.c (m68k_option_override): Disable
22478 -flive-range-shrinkage for classic m68k.
22479 (m68k_override_options_after_change): Likewise.
22480
22481 2014-02-27 Marek Polacek <polacek@redhat.com>
22482
22483 PR middle-end/59223
22484 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22485 -Wmaybe-uninitialized.
22486
22487 2014-02-27 Alan Modra <amodra@gmail.com>
22488
22489 PR target/57936
22490 * reload1.c (emit_input_reload_insns): When reload_override_in,
22491 set old to rl->in_reg when rl->in_reg is a subreg.
22492
22493 2014-02-26 Richard Biener <rguenther@suse.de>
22494
22495 PR bootstrap/60343
22496 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22497
22498 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22499
22500 * common/config/i386/predicates.md (const1256_operand): Remove.
22501 (const2356_operand): New.
22502 (const_1_to_2_operand): Remove.
22503 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22504 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22505 (*avx512pf_gatherpf<mode>sf): Ditto.
22506 (avx512pf_gatherpf<mode>df): Ditto.
22507 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22508 (*avx512pf_gatherpf<mode>df): Ditto.
22509 (avx512pf_scatterpf<mode>sf): Ditto.
22510 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22511 (*avx512pf_scatterpf<mode>sf): Ditto.
22512 (avx512pf_scatterpf<mode>df): Ditto.
22513 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22514 (*avx512pf_scatterpf<mode>df): Ditto.
22515 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22516
22517 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22518
22519 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22520 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22521 (_mm512_mask_testn_epi64_mask): Move to ...
22522 * config/i386/avx512cdintrin.h: Here.
22523 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22524 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22525 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22526 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22527 TARGET_AVX512F from TARGET_AVX512CD.
22528
22529 2014-02-26 Richard Biener <rguenther@suse.de>
22530
22531 PR ipa/60327
22532 * ipa.c (walk_polymorphic_call_targets): Properly guard
22533 call to inline_update_overall_summary.
22534
22535 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22536
22537 PR target/60280
22538 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22539 and latches only if requested. Fix latch if it is removed.
22540 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22541 LOOPS_HAVE_PREHEADERS.
22542
22543 2014-02-25 Andrew Pinski <apinski@cavium.com>
22544
22545 * builtins.c (expand_builtin_thread_pointer): Create a new target
22546 when the target is NULL.
22547
22548 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22549
22550 PR rtl-optimization/60317
22551 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22552 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22553 * lra-assigns.c: Include params.h.
22554 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22555 other reload pseudos considerations.
22556
22557 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22558
22559 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22560 to use canonical form for nor<mode>3.
22561
22562 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22563
22564 PR target/55426
22565 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22566 conversions.
22567
22568 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22569
22570 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22571 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22572 (ix86_handle_option): Handle OPT_mprefetchwt1.
22573 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22574 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22575 PREFETCHWT1 CPUID.
22576 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22577 OPTION_MASK_ISA_PREFETCHWT1.
22578 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22579 (PTA_PREFETCHWT1): New.
22580 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22581 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22582 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22583 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22584 (*prefetch_avx512pf_<mode>_: Change into ...
22585 (*prefetch_prefetchwt1_<mode>: This.
22586 * config/i386/i386.opt (mprefetchwt1): New.
22587 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22588 (_mm_prefetch): Handle intent to write.
22589 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22590
22591 2014-02-25 Richard Biener <rguenther@suse.de>
22592
22593 PR middle-end/60291
22594 * emit-rtl.c (mem_attrs_htab): Remove.
22595 (mem_attrs_htab_hash): Likewise.
22596 (mem_attrs_htab_eq): Likewise.
22597 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22598 (init_emit_once): Do not allocate mem_attrs_htab.
22599
22600 2014-02-25 Richard Biener <rguenther@suse.de>
22601
22602 PR lto/60319
22603 * lto-opts.c (lto_write_options): Output non-explicit conservative
22604 -fwrapv, -fno-trapv and -fno-strict-overflow.
22605 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22606 (run_gcc): And pass them through.
22607
22608 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22609
22610 * sel-sched.c (calculate_new_fences): New parameter ptime.
22611 Calculate it as a maximum over all fence cycles.
22612 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22613 Print the final schedule timing when sched_verbose.
22614
22615 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22616
22617 PR rtl-optimization/60292
22618 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22619 bit fot the fence instruction.
22620
22621 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22622
22623 * calls.h: Fix typo in comment.
22624
22625 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22626
22627 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22628 adjusting offsetable addresses.
22629
22630 2014-02-24 Guozhi Wei <carrot@google.com>
22631
22632 * sparseset.h (sparseset_pop): Fix the wrong index.
22633
22634 2014-02-24 Walter Lee <walt@tilera.com>
22635
22636 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22637 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22638 triplet.
22639 * common/config/tilegx/tilegx-common.c
22640 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22641 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22642 (LINK_SPEC): Ditto.
22643 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22644 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22645 (tilegx_gimplify_va_arg_expr): Handle big endian.
22646 (tilegx_expand_unaligned_load): Ditto.
22647 (tilegx_expand_unaligned_store): Ditto.
22648 (TARGET_RETURN_IN_MSB): New.
22649 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22650 (TARGET_ENDIAN_DEFAULT): New.
22651 (TARGET_BIG_ENDIAN): Handle big endian.
22652 (BYTES_BIG_ENDIAN): Ditto.
22653 (WORDS_BIG_ENDIAN): Ditto.
22654 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22655 (ENDIAN_SPEC): New.
22656 (EXTRA_SPECS): New.
22657 * config/tilegx/tilegx.md (extv): Handle big endian.
22658 (extzv): Ditto.
22659 (insn_st<n>): Ditto.
22660 (insn_st<n>_add<bitsuffix>): Ditto.
22661 (insn_stnt<n>): Ditto.
22662 (insn_stnt<n>_add<bitsuffix>):Ditto.
22663 (vec_interleave_highv8qi): Handle big endian.
22664 (vec_interleave_highv8qi_be): New.
22665 (vec_interleave_highv8qi_le): New.
22666 (insn_v1int_h): Handle big endian.
22667 (vec_interleave_lowv8qi): Handle big endian.
22668 (vec_interleave_lowv8qi_be): New.
22669 (vec_interleave_lowv8qi_le): New.
22670 (insn_v1int_l): Handle big endian.
22671 (vec_interleave_highv4hi): Handle big endian.
22672 (vec_interleave_highv4hi_be): New.
22673 (vec_interleave_highv4hi_le): New.
22674 (insn_v2int_h): Handle big endian.
22675 (vec_interleave_lowv4hi): Handle big endian.
22676 (vec_interleave_lowv4hi_be): New.
22677 (vec_interleave_lowv4hi_le): New.
22678 (insn_v2int_l): Handle big endian.
22679 (vec_interleave_highv2si): Handle big endian.
22680 (vec_interleave_highv2si_be): New.
22681 (vec_interleave_highv2si_le): New.
22682 (insn_v4int_h): Handle big endian.
22683 (vec_interleave_lowv2si): Handle big endian.
22684 (vec_interleave_lowv2si_be): New.
22685 (vec_interleave_lowv2si_le): New.
22686 (insn_v4int_l): Handle big endian.
22687 * config/tilegx/tilegx.opt (mbig-endian): New option.
22688 (mlittle-endian): New option.
22689 * doc/install.texi: Document tilegxbe-linux.
22690 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22691
22692 2014-02-24 Martin Jambor <mjambor@suse.cz>
22693
22694 PR ipa/60266
22695 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22696 there are no parameter descriptors.
22697
22698 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22699
22700 PR rtl-optimization/60268
22701 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22702 initialization to ...
22703 (sched_rgn_init): ... here.
22704 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22705
22706 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22707
22708 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22709 names.
22710
22711 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22712
22713 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22714 definition.
22715
22716 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22717
22718 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22719 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22720
22721 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22722
22723 * config/microblaze/predicates.md: Add cmp_op predicate.
22724 * config/microblaze/microblaze.md: Add branch_compare instruction
22725 which uses cmp_op predicate and emits cmp insn before branch.
22726 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22727 to microblaze_expand_conditional_branch and consolidate logic.
22728 (microblaze_expand_conditional_branch): emit branch_compare
22729 insn instead of handling cmp op separate from branch insn.
22730
22731 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22732
22733 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22734 to permit subregs.
22735
22736 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22737
22738 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22739 define_insn with define_expand and new define_insn
22740 *altivec_lve<VI_char>x_internal.
22741 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22742 and new define_insn *altivec_stve<VI_char>x_internal.
22743 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22744 prototype.
22745 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22746 lve*x built-ins.
22747 (altivec_expand_stvex_be): New function.
22748
22749 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22750
22751 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22752 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22753 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22754 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22755
22756 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22757
22758 PR target/60298
22759 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22760 instead of emit_move_insn.
22761
22762 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22763
22764 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22765 vspltw with vsldoi.
22766 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22767 gen_altivec_vsumsws.
22768
22769 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22770
22771 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22772 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22773 (altivec_lvxl_<mode>): New define_expand incorporating
22774 -maltivec=be semantics where needed.
22775 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22776 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22777 semantics where needed.
22778 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22779 (altivec_stvx_<mode>): New define_expand incorporating
22780 -maltivec=be semantics where needed.
22781 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22782 VM2 iterator instead of V4SI.
22783 (altivec_stvxl_<mode>): New define_expand incorporating
22784 -maltivec=be semantics where needed.
22785 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22786 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22787 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22788 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22789 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22790 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22791 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22792 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22793 ALTIVEC_BUILTIN_STVXL.
22794 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22795 (altivec_expand_stvx_be): Likewise.
22796 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22797 (altivec_expand_lvx_be): Likewise.
22798 (altivec_expand_stvx_be): Likewise.
22799 (altivec_expand_builtin): Add cases for
22800 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22801 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22802 (altivec_init_builtins): Add definitions for
22803 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22804 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22805
22806 2014-02-21 Catherine Moore <clm@codesourcery.com>
22807
22808 * doc/invoke.texi (mvirt, mno-virt): Document.
22809 * config/mips/mips.opt (mvirt): New option.
22810 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22811
22812 2014-02-21 Richard Biener <rguenther@suse.de>
22813
22814 PR tree-optimization/60276
22815 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22816 (STMT_VINFO_MIN_NEG_DIST): New macro.
22817 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22818 STMT_VINFO_MIN_NEG_DIST.
22819 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22820 made for negative dependence distances still hold.
22821
22822 2014-02-21 Richard Biener <rguenther@suse.de>
22823
22824 PR middle-end/60291
22825 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22826 DECL_INITIAL for globals not in the current function context.
22827
22828 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22829
22830 PR tree-optimization/56490
22831 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22832 * tree-ssa-uninit.c: Include params.h.
22833 (compute_control_dep_chain): Add num_calls argument, return false
22834 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22835 num_calls to recursive call.
22836 (find_predicates): Change dep_chain into normal array,
22837 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22838 variable and adjust compute_control_dep_chain caller.
22839 (find_def_preds): Likewise.
22840
22841 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22842
22843 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22844 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22845
22846 2014-02-21 Nick Clifton <nickc@redhat.com>
22847
22848 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22849 (pushhi1): Likewise.
22850 (popqi1): Add mode to pre_dec.
22851 (pophi1): Likewise.
22852
22853 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22854
22855 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22856 mode for mask of V8SFmode permutation.
22857
22858 2014-02-20 Richard Henderson <rth@redhat.com>
22859
22860 PR c++/60272
22861 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22862 a new pseudo for OLDVAL.
22863
22864 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22865
22866 PR target/57896
22867 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22868 gen_reg_rtx if d->testing_p.
22869 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22870 if d->testing_p and we will certainly return true.
22871 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22872 if d->testing_p.
22873
22874 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22875
22876 * emit-rtl.c (gen_reg_rtx): Assert that
22877 crtl->emit.regno_pointer_align_length is non-zero.
22878
22879 2014-02-20 Richard Henderson <rth@redhat.com>
22880
22881 PR c++/60272
22882 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22883 on failure the store back into EXPECT.
22884
22885 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22886 Sandra Loosemore <sandra@codesourcery.com>
22887
22888 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22889 * config/nios2/nios2.c (nios2_function_profiler): Add
22890 -fPIC (flag_pic == 2) support.
22891 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22892 (nios2_large_offset_p): New function.
22893 (nios2_unspec_reloc_p): Move up position, update to use
22894 nios2_large_offset_p.
22895 (nios2_unspec_address): Remove function.
22896 (nios2_unspec_offset): New function.
22897 (nios2_large_got_address): New function.
22898 (nios2_got_address): Add large offset support.
22899 (nios2_legitimize_tls_address): Update usage of removed and new
22900 functions.
22901 (nios2_symbol_binds_local_p): New function.
22902 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22903 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22904 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22905 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22906 processing for (const (unspec ...)).
22907 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22908
22909 2014-02-20 Richard Biener <rguenther@suse.de>
22910
22911 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22912 doing the substitution.
22913 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22914
22915 2014-02-20 Martin Jambor <mjambor@suse.cz>
22916
22917 PR ipa/55260
22918 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22919 info when checking whether lattices are bottom.
22920
22921 2014-02-20 Richard Biener <rguenther@suse.de>
22922
22923 PR middle-end/60221
22924 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22925 regions at -O0.
22926
22927 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22928
22929 PR ipa/58555
22930 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22931 parameter specifying the scaling.
22932 (inline_call): Update.
22933 (want_inline_recursively): Guard division by zero.
22934 (recursive_inlining): Update.
22935 * ipa-inline.h (clone_inlined_nodes): Update.
22936
22937 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22938
22939 PR target/60204
22940 * config/i386/i386.c (classify_argument): Pass structures of size
22941 64 bytes or less in register.
22942
22943 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22944 Kirill Yukhin <kirill.yukhin@intel.com>
22945
22946 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22947 (_mm_rcp28_round_ss): Ditto.
22948 (_mm_rsqrt28_round_sd): Ditto.
22949 (_mm_rsqrt28_round_ss): Ditto.
22950 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22951 (_mm_rcp14_round_ss): Ditto.
22952 (_mm_rsqrt14_round_sd): Ditto.
22953 (_mm_rsqrt14_round_ss): Ditto.
22954 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22955 the first input operand, get rid of match_dup.
22956 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22957 attribute to sse.
22958 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22959 Ditto.
22960 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22961 operand as the first input operand, set type attribute.
22962 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22963 Set type attribute.
22964 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22965 operand as the first input operand, set type attribute.
22966
22967 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22968
22969 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22970 bit of zero.
22971
22972 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22973
22974 PR target/60207
22975 * config/i386/i386.c (construct_container): Remove TFmode check
22976 for X86_64_INTEGER_CLASS.
22977
22978 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22979
22980 PR target/59794
22981 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22982 only when -Wpsabi is enabled.
22983
22984 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22985
22986 PR target/59799
22987 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22988 passing arrays in registers are the same as for structs, so remove the
22989 special case for them.
22990
22991 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22992
22993 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22994 destination type, extract only the valid bits if the source type is not
22995 integral and has a different mode.
22996
22997 2014-02-19 Richard Biener <rguenther@suse.de>
22998
22999 PR ipa/60243
23000 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23001 for all calls.
23002
23003 2014-02-19 Richard Biener <rguenther@suse.de>
23004
23005 PR ipa/60243
23006 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23007 (ipa_modify_call_arguments): Emit an argument load explicitely and
23008 preserve virtual SSA form there and for the replacement call.
23009 Do not update SSA form nor free dominance info.
23010
23011 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23012
23013 * ipa.c (function_and_variable_visibility): Also clear WEAK
23014 flag when disolving COMDAT_GROUP.
23015
23016 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23017
23018 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23019 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23020 not devirtualizing.
23021 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23022 do more sanity checks.
23023 (detect_type_change): Return true when giving up early.
23024 (compute_complex_assign_jump_func): Fix type parameter of
23025 ipa_set_ancestor_jf.
23026 (compute_complex_ancestor_jump_func): Likewise.
23027 (update_jump_functions_after_inlining): Fix updating of
23028 ancestor function.
23029 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23030
23031 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23032
23033 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23034 inline clones when edge disappears.
23035
23036 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23037
23038 PR target/60203
23039 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23040 Split 64-bit moves into 2 patterns. Do not allow the use of
23041 direct move for TDmode in little endian, since the decimal value
23042 has little endian bytes within a word, but the 64-bit pieces are
23043 ordered in a big endian fashion, and normal subreg's of TDmode are
23044 not allowed.
23045 (mov<mode>_64bit_dm): Likewise.
23046 (movtd_64bit_nodm): Likewise.
23047
23048 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23049
23050 PR tree-optimization/60174
23051 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23052 statement of an SSA_NAME that occurs in an abnormal PHI node.
23053
23054 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23055
23056 PR sanitizer/60142
23057 * final.c (SEEN_BB): Remove.
23058 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23059 (final_scan_insn): Don't force_source_line on second
23060 NOTE_INSN_BASIC_BLOCK.
23061
23062 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23063
23064 PR target/60205
23065 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23066 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23067 (type_natural_mode): Warn ABI change when %zmm register is not
23068 available for AVX512F vector value passing.
23069
23070 2014-02-18 Kai Tietz <ktietz@redhat.com>
23071
23072 PR target/60193
23073 * config/i386/i386.c (ix86_expand_prologue): Use value in
23074 rax register as displacement when restoring %r10 or %rax.
23075 Fix wrong offset when restoring both registers.
23076
23077 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23078
23079 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23080 assertion with conditional return.
23081
23082 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23083 Uros Bizjak <ubizjak@gmail.com>
23084
23085 PR driver/60233
23086 * config/i386/driver-i386.c (host_detect_local_cpu): If
23087 YMM state is not saved by the OS, also clear has_f16c. Move
23088 CPUID 0x80000001 handling before YMM state saving checking.
23089
23090 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23091
23092 PR rtl-optimization/58960
23093 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23094 factored out from ...
23095 (sched_init): ... here.
23096 (free_global_sched_pressure_data): New, factored out from ...
23097 (sched_finish): ... here.
23098 * sched-int.h (free_global_sched_pressure_data): Declare.
23099 * sched-rgn.c (nr_regions_initial): New static global.
23100 (haifa_find_rgns): Initialize it.
23101 (schedule_region): Disable sched-pressure for the newly
23102 generated regions.
23103
23104 2014-02-17 Richard Biener <rguenther@suse.de>
23105
23106 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23107 release SSA defs of pattern stmts.
23108
23109 2014-02-17 Richard Biener <rguenther@suse.de>
23110
23111 * tree-inline.c (expand_call_inline): Release the virtual
23112 operand defined by the call we are about to inline.
23113
23114 2014-02-17 Richard Biener <rguenther@suse.de>
23115
23116 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23117
23118 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23119 Ilya Tocar <ilya.tocar@intel.com>
23120
23121 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23122 arguments order in builtin.
23123 (_mm512_permutexvar_epi64): Ditto.
23124 (_mm512_mask_permutexvar_epi64): Ditto
23125 (_mm512_maskz_permutexvar_epi32): Ditto
23126 (_mm512_permutexvar_epi32): Ditto
23127 (_mm512_mask_permutexvar_epi32): Ditto
23128
23129 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23130
23131 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23132 (p8_vmrgow): Likewise.
23133
23134 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23135
23136 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23137 endian targets.
23138
23139 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23140
23141 PR target/60203
23142 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23143 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23144 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23145 using direct move instructions on ISA 2.07. Also adjust
23146 instruction length for 64-bit.
23147 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23148 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23149
23150 2014-02-15 Alan Modra <amodra@gmail.com>
23151
23152 PR target/58675
23153 PR target/57935
23154 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23155 find_replacement on parts of insn rtl that might be reloaded.
23156
23157 2014-02-15 Richard Biener <rguenther@suse.de>
23158
23159 PR tree-optimization/60183
23160 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23161 (tree_ssa_phiprop): Calculate and free post-dominators.
23162
23163 2014-02-14 Jeff Law <law@redhat.com>
23164
23165 PR rtl-optimization/60131
23166 * ree.c (get_extended_src_reg): New function.
23167 (combine_reaching_defs): Use it rather than assuming location of REG.
23168 (find_and_remove_re): Verify first operand of extension is
23169 a REG before adding the insns to the copy list.
23170
23171 2014-02-14 Roland McGrath <mcgrathr@google.com>
23172
23173 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23174 * configure: Regenerated.
23175 * config.in: Regenerated.
23176 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23177 instead of ASM_SHORT.
23178
23179 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23180 Richard Earnshaw <rearnsha@arm.com>
23181
23182 PR rtl-optimization/59535
23183 * lra-constraints.c (process_alt_operands): Encourage alternative
23184 when unassigned pseudo class is superset of the alternative class.
23185 (inherit_reload_reg): Don't inherit when optimizing for code size.
23186 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23187 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23188 modes not less than 4 for Thumb1.
23189
23190 2014-02-14 Kyle McMartin <kyle@redhat.com>
23191
23192 PR pch/60010
23193 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23194
23195 2014-02-14 Richard Biener <rguenther@suse.de>
23196
23197 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23198 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23199 Do not strip INDIRECT_REFs.
23200
23201 2014-02-14 Richard Biener <rguenther@suse.de>
23202
23203 PR lto/60179
23204 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23205 DECL_FUNCTION_SPECIFIC_TARGET.
23206 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23207 * tree-streamer-out.c (pack_ts_target_option): Remove.
23208 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23209 (write_ts_function_decl_tree_pointers): Do not stream
23210 DECL_FUNCTION_SPECIFIC_TARGET.
23211 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23212 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23213 (lto_input_ts_function_decl_tree_pointers): Do not stream
23214 DECL_FUNCTION_SPECIFIC_TARGET.
23215
23216 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23217
23218 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23219 (get_initial_def_for_induction, vectorizable_induction): Ignore
23220 debug stmts when looking for exit_phi.
23221 (vectorizable_live_operation): Fix up condition.
23222
23223 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23224
23225 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23226 nreverse() because it changes the content of original tree list.
23227
23228 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23229
23230 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23231 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23232
23233 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23234
23235 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23236 GNU coding standards.
23237
23238 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23239
23240 PR debug/60152
23241 * dwarf2out.c (gen_subprogram_die): Don't call
23242 add_calling_convention_attribute if subr_die is old_die.
23243
23244 2014-02-13 Sharad Singhai <singhai@google.com>
23245
23246 * doc/optinfo.texi: Fix order of nodes.
23247
23248 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23249
23250 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23251 operands[2], not operands[3].
23252
23253 2014-02-13 Richard Biener <rguenther@suse.de>
23254
23255 PR bootstrap/59878
23256 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23257 mention the possibility of an in-tree build.
23258 (CLooG): Update recommended version to 0.18.1, mention the
23259 possibility of an in-tree build and clarify that the ISL
23260 bundled with CLooG does not work.
23261
23262 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23263
23264 PR target/43546
23265 * expr.c (compress_float_constant): If x is a hard register,
23266 extend into a pseudo and then move to x.
23267
23268 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23269
23270 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23271 caused by bad second argument to warning_at() with -mhotpatch and
23272 nested functions (e.g. with gfortran).
23273
23274 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23275
23276 * opts.c (option_name): Remove "enabled by default" rider.
23277
23278 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23279
23280 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23281
23282 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23283 Uros Bizjak <ubizjak@gmail.com>
23284
23285 PR target/60151
23286 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23287 * configure: Regenerated.
23288
23289 2014-02-12 Richard Biener <rguenther@suse.de>
23290
23291 * vec.c (vec_prefix::calculate_allocation): Move as
23292 inline variant to vec.h.
23293 (vec_prefix::calculate_allocation_1): New out-of-line version.
23294 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23295 (vec_prefix::m_has_auto_buf): Rename to ...
23296 (vec_prefix::m_using_auto_storage): ... this.
23297 (vec_prefix::calculate_allocation): Inline the easy cases
23298 and dispatch to calculate_allocation_1 which doesn't need the
23299 prefix address.
23300 (va_heap::reserve): Use gcc_checking_assert.
23301 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23302 m_using_auto_storage.
23303 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23304 member and adjust.
23305 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23306 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23307 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23308
23309 2014-02-12 Richard Biener <rguenther@suse.de>
23310
23311 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23312 when we found a dependence.
23313
23314 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23315
23316 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23317 common code...
23318 (maybe_fold_stmt): ... into this new function.
23319 * omp-low.c (lower_omp): Update comment.
23320
23321 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23322 last use.
23323
23324 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23325 dereference.
23326
23327 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23328
23329 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23330 identifiers in comments.
23331 (cortexa53_extra_costs): Likewise.
23332 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23333 (cortexa7_extra_costs): Likewise.
23334 (cortexa12_extra_costs): Likewise.
23335 (cortexa15_extra_costs): Likewise.
23336 (v7m_extra_costs): Likewise.
23337
23338 2014-02-12 Richard Biener <rguenther@suse.de>
23339
23340 PR middle-end/60092
23341 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23342 of posix_memalign being successful.
23343 (lower_stmt): Restrict lowering of posix_memalign to when
23344 -ftree-bit-ccp is enabled.
23345
23346 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23347
23348 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23349 arg_loc.
23350 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23351
23352 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23353
23354 PR rtl-optimization/60116
23355 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23356 other_insn once the combination has been validated.
23357
23358 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23359
23360 PR lto/59468
23361 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23362 and wrapper.
23363 * ipa-devirt.c: Include demangle.h
23364 (odr_violation_reported): New static variable.
23365 (add_type_duplicate): Update odr_violations.
23366 (maybe_record_node): Add completep parameter; update it.
23367 (record_target_from_binfo): Add COMPLETEP parameter;
23368 update it as needed.
23369 (possible_polymorphic_call_targets_1): Likewise.
23370 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23371 rename FINAL to COMPLETE.
23372 (record_targets_from_bases): Sanity check we found the binfo;
23373 fix COMPLETEP updating.
23374 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23375 parameter, fix computing of COMPLETEP.
23376 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23377 at LTO time do demangling.
23378 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23379 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23380 parameter.
23381 (gimple_get_virt_method_for_binfo): Likewise.
23382 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23383 gimple_get_virt_method_for_vtable): Update prototypes.
23384
23385 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23386
23387 PR target/49008
23388 * genautomata.c (add_presence_absence): Fix typo with
23389 {final_}presence_list.
23390
23391 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23392
23393 PR target/60137
23394 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23395 for VSX/Altivec vectors that land in GPR registers.
23396
23397 2014-02-11 Richard Henderson <rth@redhat.com>
23398 Jakub Jelinek <jakub@redhat.com>
23399
23400 PR debug/59776
23401 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23402 around drhs if type conversion to lacc->type is not useless.
23403
23404 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23405
23406 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23407 tuning struct.
23408 (cortex-a57.cortex-a53): Likewise.
23409 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23410
23411 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23412
23413 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23414 arm_restrict_it.
23415
23416 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23417
23418 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23419 add_options_for_arm_vfp3.
23420
23421 2014-02-11 Jeff Law <law@redhat.com>
23422
23423 PR middle-end/54041
23424 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23425 object with an undesirable mode.
23426
23427 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23428
23429 PR libgomp/60107
23430 * config/i386/sol2-9.h: New file.
23431 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23432 *-*-solaris2.9*): Use it.
23433
23434 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23435
23436 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23437 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23438
23439 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23440
23441 * config/microblaze/microblaze.c: Extend mcpu version format
23442
23443 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23444
23445 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23446
23447 2014-02-10 Richard Henderson <rth@redhat.com>
23448
23449 PR target/59927
23450 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23451 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23452 ms-abi vs -mno-accumulate-outgoing-args.
23453 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23454 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23455 respect to ms-abi.
23456
23457 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23458
23459 PR middle-end/60080
23460 * cfgexpand.c (expand_asm_operands): Attach source location to
23461 ASM_INPUT rtx objects.
23462 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23463
23464 2014-02-10 Nick Clifton <nickc@redhat.com>
23465
23466 * config/mn10300/mn10300.c (popcount): New function.
23467 (mn10300_expand_prologue): Include saved registers in stack usage
23468 count.
23469
23470 2014-02-10 Jeff Law <law@redhat.com>
23471
23472 PR middle-end/52306
23473 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23474 when changing the SET_DEST of a prior insn to avoid an input reload.
23475
23476 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23477
23478 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23479 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23480 -mcall-openbsd, or -mcall-linux.
23481 (CC1_ENDIAN_BIG_SPEC): Remove.
23482 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23483 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23484 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23485 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23486 and %cc1_endian_default.
23487 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23488
23489 2014-02-10 Richard Biener <rguenther@suse.de>
23490
23491 PR tree-optimization/60115
23492 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23493 MEM_REF handling. Properly verify that the accesses are not
23494 out of the objects bound.
23495
23496 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23497
23498 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23499 coretex to cortex.
23500
23501 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23502
23503 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23504 proper constants and fix formatting.
23505 (possible_polymorphic_call_targets): Fix formatting.
23506
23507 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23508 Ilya Tocar <ilya.tocar@intel.com>
23509
23510 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23511 (_mm512_loadu_epi32): Renamed into...
23512 (_mm512_loadu_si512): This.
23513 (_mm512_storeu_epi32): Renamed into...
23514 (_mm512_storeu_si512): This.
23515 (_mm512_maskz_ceil_ps): Removed.
23516 (_mm512_maskz_ceil_pd): Ditto.
23517 (_mm512_maskz_floor_ps): Ditto.
23518 (_mm512_maskz_floor_pd): Ditto.
23519 (_mm512_floor_round_ps): Ditto.
23520 (_mm512_floor_round_pd): Ditto.
23521 (_mm512_ceil_round_ps): Ditto.
23522 (_mm512_ceil_round_pd): Ditto.
23523 (_mm512_mask_floor_round_ps): Ditto.
23524 (_mm512_mask_floor_round_pd): Ditto.
23525 (_mm512_mask_ceil_round_ps): Ditto.
23526 (_mm512_mask_ceil_round_pd): Ditto.
23527 (_mm512_maskz_floor_round_ps): Ditto.
23528 (_mm512_maskz_floor_round_pd): Ditto.
23529 (_mm512_maskz_ceil_round_ps): Ditto.
23530 (_mm512_maskz_ceil_round_pd): Ditto.
23531 (_mm512_expand_pd): Ditto.
23532 (_mm512_expand_ps): Ditto.
23533 * config/i386/i386.c (ix86_builtins): Remove
23534 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23535 (bdesc_args): Ditto.
23536 * config/i386/predicates.md (const1256_operand): New.
23537 (const_1_to_2_operand): Ditto.
23538 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23539 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23540 (*avx512pf_gatherpf<mode>sf): Ditto.
23541 (avx512pf_gatherpf<mode>df): Ditto.
23542 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23543 (*avx512pf_gatherpf<mode>df): Ditto.
23544 (avx512pf_scatterpf<mode>sf): Ditto.
23545 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23546 (*avx512pf_scatterpf<mode>sf): Ditto.
23547 (avx512pf_scatterpf<mode>df): Ditto.
23548 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23549 (*avx512pf_scatterpf<mode>df): Ditto.
23550 (avx512f_expand<mode>): Removed.
23551 (<shift_insn><mode>3<mask_name>): Change predicate type.
23552
23553 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23554
23555 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23556 not at the end of datarefs vector use ordered_remove to avoid
23557 reordering datarefs vector.
23558
23559 PR c/59984
23560 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23561 mark local addressable non-static vars as GOVD_PRIVATE
23562 instead of GOVD_LOCAL.
23563 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23564 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23565 than copying them.
23566
23567 PR middle-end/60092
23568 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23569 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23570 assume_aligned or alloc_align attributes.
23571 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23572 arguments. Handle also assume_aligned and alloc_align attributes.
23573 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23574 calls to functions with assume_aligned or alloc_align attributes.
23575 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23576
23577 2014-02-08 Terry Guo <terry.guo@arm.com>
23578
23579 * doc/invoke.texi: Document ARM -march=armv7e-m.
23580
23581 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23582
23583 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23584 flag on __cilkrts_rethrow builtin.
23585
23586 PR ipa/60026
23587 * ipa-cp.c (determine_versionability): Fail at -O0
23588 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23589 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23590
23591 Revert:
23592 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23593
23594 PR ipa/60026
23595 * tree-inline.c (copy_forbidden): Fail for
23596 __attribute__((optimize (0))) functions.
23597
23598 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23599
23600 * varpool.c: Include pointer-set.h.
23601 (varpool_remove_unreferenced_decls): Variables in other partitions
23602 will not be output; be however careful to not lose information
23603 about partitioning.
23604
23605 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23606
23607 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23608 lookup in the vtable constructor.
23609
23610 2014-02-07 Jeff Law <law@redhat.com>
23611
23612 PR target/40977
23613 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23614 define_insn_and_split.
23615
23616 * ipa-inline.c (inline_small_functions): Fix typos.
23617
23618 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23619
23620 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23621 (s390_can_use_return_insn): Declare.
23622 * config/s390/s390.h (EPILOGUE_USES): Define.
23623 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23624 instructions.
23625 (s390_chunkify_start): Handle return JUMP_LABELs.
23626 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23627 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23628 (s390_can_use_return_insn): New functions.
23629 (s390_fix_long_loop_prediction): Handle conditional returns.
23630 (TARGET_SET_UP_BY_PROLOGUE): Define.
23631 * config/s390/s390.md (ANY_RETURN): New code iterator.
23632 (*creturn, *csimple_return, return, simple_return): New patterns.
23633
23634 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23635
23636 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23637 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23638 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23639 REG_CFA_RESTORE list when deciding not to restore a register.
23640
23641 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23642
23643 * config/s390/s390.c: Include tree-pass.h and context.h.
23644 (s390_early_mach): New function, split out from...
23645 (s390_emit_prologue): ...here.
23646 (pass_data_s390_early_mach): New pass structure.
23647 (pass_s390_early_mach): New class.
23648 (s390_option_override): Create and register early_mach pass.
23649 Move to end of file.
23650
23651 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23652
23653 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23654 to match for the exit block.
23655
23656 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23657
23658 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23659 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23660 Reject misaligned operands.
23661
23662 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23663
23664 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23665
23666 2014-02-07 Richard Biener <rguenther@suse.de>
23667
23668 PR middle-end/60092
23669 * gimple-low.c (lower_builtin_posix_memalign): New function.
23670 (lower_stmt): Call it to lower posix_memalign in a way
23671 to make alignment info accessible.
23672
23673 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23674
23675 PR c++/60082
23676 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23677 __builtin_setjmp_receiver.
23678
23679 2014-02-07 Richard Biener <rguenther@suse.de>
23680
23681 PR middle-end/60092
23682 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23683 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23684 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23685 Handle BUILT_IN_POSIX_MEMALIGN.
23686 (find_func_clobbers): Likewise.
23687 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23688 (call_may_clobber_ref_p_1): Likewise.
23689
23690 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23691
23692 PR ipa/59918
23693 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23694 sanity check.
23695
23696 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23697
23698 PR ipa/59469
23699 * lto-cgraph.c (lto_output_node): Use
23700 symtab_get_symbol_partitioning_class.
23701 (lto_output_varpool_node): likewise.
23702 (symtab_get_symbol_partitioning_class): Move here from
23703 lto/lto-partition.c
23704 * cgraph.h (symbol_partitioning_class): Likewise.
23705 (symtab_get_symbol_partitioning_class): Declare.
23706
23707 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23708
23709 * ggc.h (ggc_internal_cleared_alloc): New macro.
23710 * vec.h (vec_safe_copy): Handle memory stats.
23711 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23712 * target-globals.c (save_target_globals): Likewise.
23713
23714 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23715
23716 PR target/60077
23717 * expr.c (emit_move_resolve_push): Export; be bit more selective
23718 on when to clear alias set.
23719 * expr.h (emit_move_resolve_push): Declare.
23720 * function.h (struct function): Add tail_call_marked.
23721 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23722 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23723 * config/i386/i386.md (TImode move expander): De not call
23724 ix86_expand_push.
23725 (FP push expanders): Preserve memory attributes.
23726 * config/i386/sse.md (push<mode>1): Remove.
23727 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23728 (ix86_expand_push): Remove.
23729 * config/i386/mmx.md (push<mode>1): Remove.
23730
23731 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23732
23733 PR rtl-optimization/60030
23734 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23735 lopart with paradoxical subreg before shifting it up by hprec.
23736
23737 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23738
23739 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23740 Remove extra newline at end of file.
23741 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23742 (arm_issue_rate): Handle cortexa57.
23743 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23744 (cortex-a57.cortex-a53): Likewise.
23745
23746 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23747
23748 PR target/59575
23749 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23750 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23751 bitmask.
23752 (arm_expand_prologue): Adjust all callers.
23753 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23754 info, registers also at the lowest numbered registers side. Use
23755 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23756 XEXP.
23757
23758 PR debug/59992
23759 * var-tracking.c (adjust_mems): Before adding a SET to
23760 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23761
23762 2014-02-06 Alan Modra <amodra@gmail.com>
23763
23764 PR target/60032
23765 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23766 change SDmode to DDmode when lra_in_progress.
23767
23768 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23769
23770 PR middle-end/59150
23771 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23772 free_data_ref on the dr first, and before goto again also set dr
23773 to the next dr. For simd_lane_access, free old datarefs[i] before
23774 overwriting it. For get_vectype_for_scalar_type failure, don't
23775 free_data_ref if simd_lane_access.
23776
23777 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23778
23779 PR target/60062
23780 * tree.h (opts_for_fn): New inline function.
23781 (opt_for_fn): Define.
23782 * config/i386/i386.c (ix86_function_regparm): Use
23783 opt_for_fn (decl, optimize) instead of optimize.
23784
23785 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23786
23787 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23788 for SYMBOL_REF in large memory model.
23789
23790 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23791
23792 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23793 and crypto support.
23794 (cortex-a57): Likewise.
23795 (cortex-a57.cortex-a53): Likewise.
23796
23797 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23798 Kugan Vivekanandarajah <kuganv@linaro.org>
23799
23800 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23801 unaligned_access.
23802 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23803
23804 2014-02-06 Richard Biener <rguenther@suse.de>
23805
23806 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23807 set_loop_copy and initialize_original_copy_tables.
23808
23809 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23810
23811 * config/aarch64/aarch64-simd.md
23812 (aarch64_ashr_simddi): Change QI to SI.
23813
23814 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23815 Jakub Jelinek <jakub@redhat.com>
23816
23817 PR middle-end/60013
23818 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23819 of the dataflow.
23820
23821 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23822
23823 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23824 CODE_FOR_altivec_vpku[hw]um to
23825 CODE_FOR_altivec_vpku[hw]um_direct.
23826 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23827 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23828 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23829 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23830
23831 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23832
23833 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23834 generation for -maltivec=be.
23835 (altivec_vsumsws): Simplify redundant test.
23836
23837 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23838
23839 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23840 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23841 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23842 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23843 gen_altivec_vpkuwum.
23844 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23845 BYTES_BIG_ENDIAN.
23846 (altivec_vpks<VI_char>ss): Likewise.
23847 (altivec_vpks<VI_char>us): Likewise.
23848 (altivec_vpku<VI_char>us): Likewise.
23849 (altivec_vpku<VI_char>um): Likewise.
23850 (altivec_vpku<VI_char>um_direct): New (copy of
23851 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23852 internal use).
23853 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23854 target is little endian and -maltivec=be is not specified.
23855 (*altivec_vupkhs<VU_char>_direct): New (copy of
23856 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23857 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23858 target is little endian and -maltivec=be is not specified.
23859 (*altivec_vupkls<VU_char>_direct): New (copy of
23860 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23861 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23862 little endian and -maltivec=be is not specified.
23863 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23864 little endian and -maltivec=be is not specified.
23865
23866 2014-02-05 Richard Henderson <rth@redhat.com>
23867
23868 PR debug/52727
23869 * combine-stack-adj.c: Revert r206943.
23870 * sched-int.h (struct deps_desc): Add last_args_size.
23871 * sched-deps.c (init_deps): Initialize it.
23872 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23873 contain REG_ARGS_SIZE notes.
23874
23875 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23876
23877 * lto-cgraph.c (asm_nodes_output): Make global.
23878 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23879 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23880 (driver_handle_option): Handle OPT_fwpa.
23881
23882 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23883
23884 PR ipa/59947
23885 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23886 a comment typo and formatting issue. If odr_hash hasn't been
23887 created, return vNULL and set *completep to false.
23888
23889 PR middle-end/57499
23890 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23891 bb with no successors.
23892
23893 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23894
23895 PR target/59718
23896 * doc/invoke.texi (-march): Clarify documentation for ARM.
23897 (-mtune): Likewise.
23898 (-mcpu): Likewise.
23899
23900 2014-02-05 Richard Biener <rguenther@suse.de>
23901
23902 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23903 when not vectorizing because of too many alias checks.
23904 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23905 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23906
23907 2014-02-05 Nick Clifton <nickc@redhat.com>
23908
23909 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23910 accept extended registers in any mode when compiling for the MN10300.
23911
23912 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23913
23914 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23915 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23916 sanitization attributes.
23917 (can_inline_edge_p): Likewise.
23918 (sanitize_attrs_match_for_inline_p): New function.
23919
23920 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23921
23922 * ipa-prop.c (detect_type_change): Shor circuit testing of
23923 type changes on THIS pointer.
23924
23925 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23926
23927 PR target/59777
23928 * config/pa/pa.c (legitimize_tls_address): Return original address
23929 if not passed a SYMBOL_REF rtx.
23930 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23931 addresses.
23932 (pa_emit_move_sequence): Simplify TLS source operands.
23933 (pa_legitimate_constant_p): Reject all TLS constants.
23934 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23935 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23936
23937 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23938
23939 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23940 groups when we know they are controlled by LTO.
23941 * varasm.c (default_binds_local_p_1): If object is in other partition,
23942 it will be resolved locally.
23943
23944 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23945
23946 * config/host-linux.c (linux_gt_pch_use_address): Don't
23947 use SSIZE_MAX because it is not always defined.
23948
23949 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23950
23951 PR bootstrap/59913
23952 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23953 threshold for pseudo splitting.
23954 (update_ebb_live_info): Process call argument hard registers and
23955 hard registers from insn definition too.
23956 (max_small_class_regs_num): New constant.
23957 (inherit_in_ebb): Update live hard regs through EBBs. Update
23958 reloads_num only for small register classes. Don't split for
23959 outputs of jumps.
23960
23961 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23962
23963 PR ipa/60058
23964 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23965 is non-null.
23966
23967 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23968
23969 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23970 visibility is safe.
23971
23972 2014-02-04 Marek Polacek <polacek@redhat.com>
23973
23974 * gdbinit.in (pel): Define.
23975
23976 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23977
23978 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23979 behavior.
23980
23981 2014-02-04 Richard Biener <rguenther@suse.de>
23982
23983 PR lto/59723
23984 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23985 in function context local.
23986 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23987 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23988 similar to LTO_imported_decl_ref.
23989
23990 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23991
23992 PR tree-optimization/60002
23993 * cgraphclones.c (build_function_decl_skip_args): Clear
23994 DECL_LANG_SPECIFIC.
23995
23996 PR tree-optimization/60023
23997 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23998 false to gsi_replace.
23999 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24000 has been in some EH region and vec_stmt could throw, add
24001 vec_stmt into the same EH region.
24002 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24003 has no lhs, ignore it.
24004 * internal-fn.c (expand_MASK_LOAD): Likewise.
24005
24006 PR ipa/60026
24007 * tree-inline.c (copy_forbidden): Fail for
24008 __attribute__((optimize (0))) functions.
24009
24010 PR other/58712
24011 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24012 is set, copy one less argument.
24013 (expand_simd_clones): Don't subtract clone_info->inbranch
24014 from simd_clone_struct_alloc argument.
24015
24016 PR rtl-optimization/57915
24017 * recog.c (simplify_while_replacing): If all unary/binary/relational
24018 operation arguments are constant, attempt to simplify those.
24019
24020 PR middle-end/59261
24021 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24022 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24023
24024 2014-02-04 Richard Biener <rguenther@suse.de>
24025
24026 PR tree-optimization/60012
24027 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24028 TBAA disambiguation to all DDRs.
24029
24030 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24031
24032 PR target/59788
24033 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24034 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24035
24036 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24037
24038 PR ipa/59882
24039 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24040
24041 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24042
24043 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24044 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24045
24046 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24047
24048 PR ipa/59831
24049 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24050 to figure out targets of polymorphic calls with known decl.
24051 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24052 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24053 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24054 (get_polymorphic_call_info): ... here.
24055 (get_polymorphic_call_info_from_invariant): New function.
24056
24057 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24058
24059 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24060 lookup via vtable pointer; check for type consistency
24061 and turn inconsitent facts into UNREACHABLE.
24062 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24063 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24064 type inconsistent querries; return UNREACHABLE instead.
24065
24066 2014-02-03 Richard Henderson <rth@twiddle.net>
24067
24068 PR tree-opt/59924
24069 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24070 already processed this node.
24071 (normalize_one_pred_1): Pass along mark_set.
24072 (normalize_one_pred): Create and destroy a pointer_set_t.
24073 (normalize_one_pred_chain): Likewise.
24074
24075 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24076
24077 PR gcov-profile/58602
24078 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24079
24080 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24081
24082 PR ipa/59831
24083 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24084 -fno-devirtualize; try to devirtualize by the knowledge of
24085 virtual table pointer given by aggregate propagation.
24086 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24087 (ipa_print_node_jump_functions): Dump also offset that
24088 is relevant for polymorphic calls.
24089 (determine_known_aggregate_parts): Add arg_type parameter; use it
24090 instead of determining the type from pointer type.
24091 (ipa_compute_jump_functions_for_edge): Update call of
24092 determine_known_aggregate_parts.
24093 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24094 (gimple_get_virt_method_for_binfo): ... here; simplify using
24095 vtable_pointer_value_to_vtable.
24096 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24097 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24098 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24099 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24100 POINTER_PLUS_EXPR.
24101 (vtable_pointer_value_to_binfo): ... here.
24102 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24103
24104 2014-02-03 Teresa Johnson <tejohnson@google.com>
24105
24106 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24107 redef of outer loop index variable.
24108
24109 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24110
24111 PR c++/53017
24112 PR c++/59211
24113 * doc/extend.texi (Function Attributes): Typo.
24114
24115 2014-02-03 Cong Hou <congh@google.com>
24116
24117 PR tree-optimization/60000
24118 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24119 if the vectorized statement is a store. A store statement can only
24120 appear at the end of pattern statements.
24121
24122 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24123
24124 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24125 (ix86_option_override_internal): Default long double to 64-bit for
24126 32-bit Bionic and to 128-bit for 64-bit Bionic.
24127
24128 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24129 TARGET_LONG_DOUBLE_128 is true.
24130 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24131
24132 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24133 (mlong-double-64): Negate -mlong-double-128.
24134 (mlong-double-128): New option.
24135
24136 * config/i386/i386-c.c (ix86_target_macros): Define
24137 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24138
24139 * doc/invoke.texi: Document -mlong-double-128.
24140
24141 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24142
24143 PR rtl-optimization/60024
24144 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24145
24146 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24147
24148 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24149
24150 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24151
24152 PR rtl-optimization/57662
24153 * sel-sched.c (code_motion_path_driver): Do not mark already not
24154 existing blocks in the visiting bitmap.
24155
24156 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24157
24158 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24159 on the insn being emitted.
24160
24161 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24162 Will Deacon <will.deacon@arm.com>
24163
24164 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24165
24166 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24167
24168 * config/arm/arm-tables.opt: Regenerate.
24169
24170 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24171
24172 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24173 for vector types other than V16QImode.
24174 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24175 define_expand, and call altivec_expand_vec_perm_le when producing
24176 code with little endian element order.
24177 (*altivec_vperm_<mode>_internal): New insn having previous
24178 behavior of altivec_vperm_<mode>.
24179 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24180 altivec_expand_vec_perm_le when producing code with little endian
24181 element order.
24182 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24183 behavior of altivec_vperm_<mode>_uns.
24184
24185 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24186
24187 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24188 (altivec_vsumsws): Add handling for -maltivec=be with a little
24189 endian target.
24190 (altivec_vsumsws_direct): New.
24191 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24192 gen_altivec_vsumsws.
24193
24194 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24195
24196 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24197 vtable_pointer_value_to_binfo): New functions.
24198 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24199 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24200
24201 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24202
24203 * config/nios2/nios2.md (load_got_register): Initialize GOT
24204 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24205 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24206
24207 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24208
24209 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24210 preserverd by passthrough, do not propagate the type.
24211
24212 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24213
24214 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24215 (mips_atomic_assign_expand_fenv): New function.
24216 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24217
24218 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24219
24220 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24221 (__builtin_mips_set_fcsr): Likewise.
24222 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24223 MIPS_USI_FTYPE_VOID.
24224 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24225 (mips16_expand_set_fcsr): Likewise.
24226 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24227 (mips16_set_fcsr_stub): Likewise.
24228 (mips16_get_fcsr_one_only_stub): New class.
24229 (mips16_set_fcsr_one_only_stub): Likewise.
24230 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24231 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24232 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24233 (hard_float): New availability predicate.
24234 (mips_builtins): Add get_fcsr and set_fcsr.
24235 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24236 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24237 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24238 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24239 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24240 patterns.
24241
24242 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24243
24244 * config/mips/mips.c (mips_one_only_stub): New class.
24245 (mips_need_mips16_rdhwr_p): Replace with...
24246 (mips16_rdhwr_stub): ...this new variable.
24247 (mips16_stub_call_address): New function.
24248 (mips16_rdhwr_one_only_stub): New class.
24249 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24250 (mips_output_mips16_rdhwr): Delete.
24251 (mips_finish_stub): New function.
24252 (mips_code_end): Use it to handle rdhwr stubs.
24253
24254 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24255
24256 PR target/60017
24257 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24258 when calculating size of integer atomic types.
24259
24260 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24261
24262 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24263
24264 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24265
24266 PR tree-optimization/60003
24267 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24268 * profile.c (branch_prob): Use gimple_call_builtin_p
24269 to check for BUILT_IN_SETJMP_RECEIVER.
24270 * tree-inline.c (copy_bb): Call notice_special_calls.
24271
24272 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24273
24274 PR bootstrap/59985
24275 * lra-constraints.c (process_alt_operands): Update reload_sum only
24276 on the first pass.
24277
24278 2014-01-31 Richard Henderson <rth@redhat.com>
24279
24280 PR middle-end/60004
24281 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24282 until after else_eh is processed.
24283
24284 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24285
24286 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24287 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24288 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24289 in smmintrin.h, remove them.
24290 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24291 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24292 * config/i386/i386.md (ROUND_SAE): Fix value.
24293 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24294 (const48_operand): New.
24295 * config/i386/subst.md (round), (round_expand): Use
24296 const_4_or_8_to_11_operand.
24297 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24298
24299 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24300
24301 * config/i386/constraints.md (Yk): Swap meaning with k.
24302 * config/i386/i386.md (movhi_internal): Change Yk to k.
24303 (movqi_internal): Ditto.
24304 (*k<logic><mode>): Ditto.
24305 (*andhi_1): Ditto.
24306 (*andqi_1): Ditto.
24307 (kandn<mode>): Ditto.
24308 (*<code>hi_1): Ditto.
24309 (*<code>qi_1): Ditto.
24310 (kxnor<mode>): Ditto.
24311 (kortestzhi): Ditto.
24312 (kortestchi): Ditto.
24313 (kunpckhi): Ditto.
24314 (*one_cmplhi2_1): Ditto.
24315 (*one_cmplqi2_1): Ditto.
24316 * config/i386/sse.md (): Change k to Yk.
24317 (avx512f_load<mode>_mask): Ditto.
24318 (avx512f_blendm<mode>): Ditto.
24319 (avx512f_store<mode>_mask): Ditto.
24320 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24321 (avx512f_storedqu<mode>_mask): Ditto.
24322 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24323 Ditto.
24324 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24325 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24326 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24327 (avx512f_maskcmp<mode>3): Ditto.
24328 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24329 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24330 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24331 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24332 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24333 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24334 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24335 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24336 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24337 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24338 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24339 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24340 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24341 (vec_extract_lo_<mode>_maskm): Ditto.
24342 (vec_extract_hi_<mode>_maskm): Ditto.
24343 (avx512f_vternlog<mode>_mask): Ditto.
24344 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24345 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24346 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24347 (avx512f_<code>v8div16qi2_mask): Ditto.
24348 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24349 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24350 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24351 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24352 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24353 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24354 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24355 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24356 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24357 (avx512cd_maskb_vec_dupv8di): Ditto.
24358 (avx512cd_maskw_vec_dupv16si): Ditto.
24359 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24360 (avx512f_vpermi2var<mode>3_mask): Ditto.
24361 (avx512f_vpermi2var<mode>3_mask): Ditto.
24362 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24363 (*avx512f_gathersi<mode>): Ditto.
24364 (*avx512f_gathersi<mode>_2): Ditto.
24365 (*avx512f_gatherdi<mode>): Ditto.
24366 (*avx512f_gatherdi<mode>_2): Ditto.
24367 (*avx512f_scattersi<mode>): Ditto.
24368 (*avx512f_scatterdi<mode>): Ditto.
24369 (avx512f_compress<mode>_mask): Ditto.
24370 (avx512f_compressstore<mode>_mask): Ditto.
24371 (avx512f_expand<mode>_mask): Ditto.
24372 * config/i386/subst.md (mask): Change k to Yk.
24373 (mask_scalar_merge): Ditto.
24374 (sd): Ditto.
24375
24376 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24377
24378 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24379
24380 2014-01-31 Richard Biener <rguenther@suse.de>
24381
24382 PR middle-end/59990
24383 * builtins.c (fold_builtin_memory_op): Make sure to not
24384 use a floating-point mode or a boolean or enumeral type for
24385 the copy operation.
24386
24387 2014-01-30 DJ Delorie <dj@redhat.com>
24388
24389 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24390 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24391 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24392 whenever main() has an epilogue.
24393
24394 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24395
24396 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24397 unused variable "field".
24398 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24399 (vsx_mergeh_<mode>): Likewise.
24400 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24401 (altivec_vmrghh): Likewise.
24402 (altivec_vmrghw): Likewise.
24403 (altivec_vmrglb): Likewise.
24404 (altivec_vmrglh): Likewise.
24405 (altivec_vmrglw): Likewise.
24406 (altivec_vspltb): Add missing uses.
24407 (altivec_vsplth): Likewise.
24408 (altivec_vspltw): Likewise.
24409 (altivec_vspltsf): Likewise.
24410
24411 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24412
24413 PR target/59923
24414 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24415 frame related instructions.
24416
24417 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24418
24419 PR rtl-optimization/59959
24420 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24421 any reload of register whose subreg is invalid.
24422
24423 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24424
24425 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24426 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24427 Add missing return type - void.
24428
24429 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24430
24431 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24432 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24433 remove element index adjustment for endian (now handled in vsx.md
24434 and altivec.md).
24435 (altivec_expand_vec_perm_const): Use
24436 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24437 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24438 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24439 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24440 define_expand and a new define_insn *altivec_vspltb_internal;
24441 adjust for -maltivec=be on a little endian target.
24442 (altivec_vspltb_direct): New.
24443 (altivec_vsplth): Divide into a define_expand and a new
24444 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24445 little endian target.
24446 (altivec_vsplth_direct): New.
24447 (altivec_vspltw): Divide into a define_expand and a new
24448 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24449 little endian target.
24450 (altivec_vspltw_direct): New.
24451 (altivec_vspltsf): Divide into a define_expand and a new
24452 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24453 a little endian target.
24454
24455 2014-01-30 Richard Biener <rguenther@suse.de>
24456
24457 PR tree-optimization/59993
24458 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24459 can propagate form the earlier stmt and avoid the transform
24460 when the intermediate result is needed.
24461
24462 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24463
24464 * README.Portability: Fix typo.
24465
24466 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24467
24468 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24469 comparison_operator with ordered_comparison_operator.
24470
24471 2014-01-30 Nick Clifton <nickc@redhat.com>
24472
24473 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24474 Rename to mn10300_store_multiple_regs.
24475 * config/mn10300/mn10300.c: Likewise.
24476 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24477 store_multiple_regs.
24478 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24479 Call mn10300_store_multiple_regs.
24480
24481 2014-01-30 Nick Clifton <nickc@redhat.com>
24482 DJ Delorie <dj@redhat.com>
24483
24484 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24485 %fp 2 to keep registers after it properly word-aligned.
24486 (rl78_alloc_physical_registers_umul): Handle the case where both
24487 input operands are the same.
24488
24489 2014-01-30 Richard Biener <rguenther@suse.de>
24490
24491 PR tree-optimization/59903
24492 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24493 check properly.
24494
24495 2014-01-30 Jason Merrill <jason@redhat.com>
24496
24497 PR c++/59633
24498 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24499
24500 PR c++/59645
24501 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24502
24503 2014-01-30 Richard Biener <rguenther@suse.de>
24504
24505 PR tree-optimization/59951
24506 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24507
24508 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24509
24510 PR target/59784
24511 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24512 SFmode to DFmode case.
24513
24514 2014-01-29 DJ Delorie <dj@redhat.com>
24515
24516 * config/msp430/msp430.opt (-minrt): New.
24517 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24518 if -minrt given.
24519 (ENDFILE_SPEC): Likewise.
24520
24521 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24522
24523 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24524 (estimate_function_body_sizes): Use it.
24525
24526 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24527
24528 PR c++/58561
24529 * dwarf2out.c (is_cxx_auto): New.
24530 (is_base_type): Use it.
24531 (gen_type_die_with_usage): Likewise.
24532
24533 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24534
24535 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24536 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24537 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24538 -maltivec=be with LE targets.
24539 (vsx_mergeh_<mode>): Likewise.
24540 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24541 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24542 (altivec_vmrghb): Replace with define_expand and new
24543 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24544 (altivec_vmrghb_direct): New define_insn.
24545 (altivec_vmrghh): Replace with define_expand and new
24546 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24547 (altivec_vmrghh_direct): New define_insn.
24548 (altivec_vmrghw): Replace with define_expand and new
24549 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24550 (altivec_vmrghw_direct): New define_insn.
24551 (*altivec_vmrghsf): Adjust for endianness.
24552 (altivec_vmrglb): Replace with define_expand and new
24553 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24554 (altivec_vmrglb_direct): New define_insn.
24555 (altivec_vmrglh): Replace with define_expand and new
24556 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24557 (altivec_vmrglh_direct): New define_insn.
24558 (altivec_vmrglw): Replace with define_expand and new
24559 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24560 (altivec_vmrglw_direct): New define_insn.
24561 (*altivec_vmrglsf): Adjust for endianness.
24562 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24563 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24564 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24565 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24566 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24567 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24568 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24569 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24570
24571 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24572
24573 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24574 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24575 whitespace.
24576
24577 2014-01-29 Richard Biener <rguenther@suse.de>
24578
24579 PR tree-optimization/58742
24580 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24581 associate_pointerplus_align.
24582 (associate_pointerplus_diff): New function.
24583 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24584 and associate_pointerplus_diff.
24585
24586 2014-01-29 Richard Biener <rguenther@suse.de>
24587
24588 * lto-streamer.h (LTO_major_version): Bump to 3.
24589 (LTO_minor_version): Reset to 0.
24590
24591 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24592
24593 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24594 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24595 (arm_file_start): Generate correct asm header for armv7ve.
24596 * config/arm/bpabi.h: Add multilib support for armv7ve.
24597 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24598 and cortex-a15 to armv7ve.
24599 * config/arm/t-aprofile: Add multilib support for armv7ve.
24600 * doc/invoke.texi: Document -march=armv7ve.
24601
24602 2014-01-29 Richard Biener <rguenther@suse.de>
24603
24604 PR tree-optimization/58742
24605 * tree-ssa-forwprop.c (associate_plusminus): Return true
24606 if we changed sth, defer EH cleanup to ...
24607 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24608 (simplify_mult): New function.
24609
24610 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24611
24612 PR middle-end/59917
24613 PR tree-optimization/59920
24614 * tree.c (build_common_builtin_nodes): Remove
24615 __builtin_setjmp_dispatcher initialization.
24616 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24617 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24618 instead of gsi_after_labels + manually skipping debug stmts.
24619 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24620 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24621 * tree-inline.c (copy_edges_for_bb): Remove
24622 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24623 argument. Ignore computed_goto_p stmts. Don't call
24624 make_abnormal_goto_edges. If a call might need abnormal edges
24625 for non-local gotos, see if it already has an edge to
24626 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24627 with true argument, don't do anything then, otherwise add
24628 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24629 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24630 caller.
24631 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24632 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24633 (lower_stmt): Don't set data->calls_builtin_setjmp.
24634 (lower_builtin_setjmp): Adjust comment.
24635 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24636 * tree-cfg.c (found_computed_goto): Remove.
24637 (factor_computed_gotos): Remove.
24638 (make_goto_expr_edges): Return bool, true for computed gotos.
24639 Don't call make_abnormal_goto_edges.
24640 (build_gimple_cfg): Don't set found_computed_goto, don't call
24641 factor_computed_gotos.
24642 (computed_goto_p): No longer static.
24643 (make_blocks): Don't set found_computed_goto.
24644 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24645 (make_edges): If make_goto_expr_edges returns true, push bb
24646 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24647 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24648 vector. Record mapping between bbs and OpenMP regions if there
24649 are any, adjust make_gimple_omp_edges caller. Call
24650 handle_abnormal_edges.
24651 (make_abnormal_goto_edges): Remove.
24652 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24653 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24654 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24655 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24656 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24657 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24658 filling *region also set *region_idx to (*region)->entry->index.
24659
24660 PR other/58712
24661 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24662 For REGs set ORIGINAL_REGNO.
24663
24664 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24665
24666 * doc/md.texi: Mention that a target shouldn't implement
24667 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24668 than hi/lo pair.
24669
24670 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24671
24672 PR tree-optimization/59594
24673 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24674 a copy of the datarefs vector rather than the vector itself.
24675
24676 2014-01-28 Jason Merrill <jason@redhat.com>
24677
24678 PR c++/53756
24679 * dwarf2out.c (auto_die): New static.
24680 (gen_type_die_with_usage): Handle C++1y 'auto'.
24681 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24682 on definition.
24683
24684 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24685
24686 PR target/59672
24687 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24688 (SPEC_X32): Likewise.
24689 (SPEC_64): Likewise.
24690 * config/i386/i386.c (ix86_option_override_internal): Turn off
24691 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24692 for TARGET_16BIT.
24693 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24694 * config/i386/i386.h (TARGET_16BIT): New macro.
24695 (TARGET_16BIT_P): Likewise.
24696 * config/i386/i386.opt: Add m16.
24697 * doc/invoke.texi: Document -m16.
24698
24699 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24700
24701 PR preprocessor/59935
24702 * input.c (location_get_source_line): Bail out on when line number
24703 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24704
24705 2014-01-28 Richard Biener <rguenther@suse.de>
24706
24707 PR tree-optimization/58742
24708 * tree-ssa-forwprop.c (associate_plusminus): Handle
24709 pointer subtraction of the form (T)(P + A) - (T)P.
24710
24711 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24712
24713 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24714 at const_int_cost.
24715
24716 2014-01-28 Richard Biener <rguenther@suse.de>
24717
24718 Revert
24719 2014-01-28 Richard Biener <rguenther@suse.de>
24720
24721 PR rtl-optimization/45364
24722 PR rtl-optimization/59890
24723 * var-tracking.c (local_get_addr_clear_given_value): Handle
24724 already cleared slot.
24725 (val_reset): Handle not allocated local_get_addr_cache.
24726 (vt_find_locations): Use post-order on the inverted CFG.
24727
24728 2014-01-28 Richard Biener <rguenther@suse.de>
24729
24730 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24731
24732 2014-01-28 Richard Biener <rguenther@suse.de>
24733
24734 PR rtl-optimization/45364
24735 PR rtl-optimization/59890
24736 * var-tracking.c (local_get_addr_clear_given_value): Handle
24737 already cleared slot.
24738 (val_reset): Handle not allocated local_get_addr_cache.
24739 (vt_find_locations): Use post-order on the inverted CFG.
24740
24741 2014-01-28 Alan Modra <amodra@gmail.com>
24742
24743 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24744 * configure.ac <recursive call for build != host>: Define
24745 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24746 and LD_FOR_BUILD too.
24747 * configure: Regenerate.
24748
24749 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24750
24751 * config/i386/i386.c (get_builtin_code_for_version): Separate
24752 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24753 Broadwell from Haswell.
24754
24755 2014-01-27 Steve Ellcey <sellcey@mips.com>
24756
24757 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24758 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24759 * config/mips/mips.c (mips_option_override): Change setting
24760 of TARGET_DSP.
24761 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24762 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24763 Change from Mask to Var.
24764
24765 2014-01-27 Jeff Law <law@redhat.com>
24766
24767 * ipa-inline.c (inline_small_functions): Fix typo.
24768
24769 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24770
24771 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24772 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24773 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24774 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24775 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24776 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24777 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24778 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24779 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24780 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24781 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24782 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24783 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24784 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24785 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24786 (_mm512_storeu_epi64): Ditto.
24787 (_mm512_cmpge_epi32_mask): Ditto.
24788 (_mm512_cmpge_epu32_mask): Ditto.
24789 (_mm512_cmpge_epi64_mask): Ditto.
24790 (_mm512_cmpge_epu64_mask): Ditto.
24791 (_mm512_cmple_epi32_mask): Ditto.
24792 (_mm512_cmple_epu32_mask): Ditto.
24793 (_mm512_cmple_epi64_mask): Ditto.
24794 (_mm512_cmple_epu64_mask): Ditto.
24795 (_mm512_cmplt_epi32_mask): Ditto.
24796 (_mm512_cmplt_epu32_mask): Ditto.
24797 (_mm512_cmplt_epi64_mask): Ditto.
24798 (_mm512_cmplt_epu64_mask): Ditto.
24799 (_mm512_cmpneq_epi32_mask): Ditto.
24800 (_mm512_cmpneq_epu32_mask): Ditto.
24801 (_mm512_cmpneq_epi64_mask): Ditto.
24802 (_mm512_cmpneq_epu64_mask): Ditto.
24803 (_mm512_expand_pd): Ditto.
24804 (_mm512_expand_ps): Ditto.
24805 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24806 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24807 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24808 * config/i386/i386.c (ix86_builtins): Add
24809 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24810 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24811 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24812 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24813 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24814 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24815 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24816 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24817 IX86_BUILTIN_PMOVUSQW512_MEM.
24818 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24819 __builtin_ia32_pmovsqd512mem_mask,
24820 __builtin_ia32_pmovqd512mem_mask,
24821 __builtin_ia32_pmovusqw512mem_mask,
24822 __builtin_ia32_pmovsqw512mem_mask,
24823 __builtin_ia32_pmovqw512mem_mask,
24824 __builtin_ia32_pmovusdw512mem_mask,
24825 __builtin_ia32_pmovsdw512mem_mask,
24826 __builtin_ia32_pmovdw512mem_mask,
24827 __builtin_ia32_pmovqb512mem_mask,
24828 __builtin_ia32_pmovusqb512mem_mask,
24829 __builtin_ia32_pmovsqb512mem_mask,
24830 __builtin_ia32_pmovusdb512mem_mask,
24831 __builtin_ia32_pmovsdb512mem_mask,
24832 __builtin_ia32_pmovdb512mem_mask.
24833 (bdesc_args): Add __builtin_ia32_expanddf512,
24834 __builtin_ia32_expandsf512.
24835 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24836 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24837 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24838 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24839 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24840 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24841 (avx512f_<code>v8div16qi2_mask_store): This.
24842 (avx512f_expand<mode>): New.
24843
24844 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24845
24846 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24847 New.
24848 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24849 (_mm512_prefetch_i32scatter_pd): Ditto.
24850 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24851 (_mm512_prefetch_i64scatter_pd): Ditto.
24852 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24853 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24854 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24855 (_mm512_prefetch_i32scatter_ps): Ditto.
24856 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24857 (_mm512_prefetch_i64scatter_ps): Ditto.
24858 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24859 * config/i386/i386-builtin-types.def: Define
24860 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24861 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24862 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24863 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24864 IX86_BUILTIN_SCATTERPFQPD.
24865 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24866 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24867 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24868 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24869 __builtin_ia32_scatterpfqps.
24870 (ix86_expand_builtin): Expand new built-ins.
24871 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24872 fix memory access data type.
24873 (*avx512pf_gatherpf<mode>_mask): Ditto.
24874 (*avx512pf_gatherpf<mode>): Ditto.
24875 (avx512pf_scatterpf<mode>): Ditto.
24876 (*avx512pf_scatterpf<mode>_mask): Ditto.
24877 (*avx512pf_scatterpf<mode>): Ditto.
24878 (GATHER_SCATTER_SF_MEM_MODE): New.
24879 (avx512pf_gatherpf<mode>df): Ditto.
24880 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24881 (*avx512pf_scatterpf<mode>df): Ditto.
24882
24883 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24884
24885 PR bootstrap/59934
24886 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24887 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24888 reached.
24889
24890 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24891
24892 * common/config/arm/arm-common.c
24893 (arm_rewrite_mcpu): Handle multiple names.
24894 * config/arm/arm.h
24895 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24896
24897 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24898
24899 * gimple-builder.h (create_gimple_tmp): Delete.
24900
24901 2014-01-27 Christian Bruel <christian.bruel@st.com>
24902
24903 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24904 words comparisons.
24905
24906 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24907
24908 * config/pa/pa.md (call): Generate indirect long calls to non-local
24909 functions when outputing 32-bit code.
24910 (call_value): Likewise except for special call to buggy powf function.
24911
24912 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24913 portable runtime and PIC indirect calls.
24914 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24915 and PIC call sequences. Use ldo instead of blr to set return register
24916 in PIC call sequence.
24917
24918 2014-01-25 Walter Lee <walt@tilera.com>
24919
24920 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24921 avoid clobbering a live register.
24922
24923 2014-01-25 Walter Lee <walt@tilera.com>
24924
24925 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24926 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24927 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24928 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24929
24930 2014-01-25 Walter Lee <walt@tilera.com>
24931
24932 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24933 arguments on even registers.
24934 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24935 STACK_BOUNDARY.
24936 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24937 (BIGGEST_ALIGNMENT): Ditto.
24938 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24939
24940 2014-01-25 Walter Lee <walt@tilera.com>
24941
24942 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24943 insns before bundling.
24944 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24945
24946 2014-01-25 Walter Lee <walt@tilera.com>
24947
24948 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24949 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24950 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24951
24952 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24953
24954 * config/mips/constraints.md (kl): Delete.
24955 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24956 define expands, using...
24957 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24958 instructions for MIPS16.
24959 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24960 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24961
24962 2014-01-25 Walter Lee <walt@tilera.com>
24963
24964 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24965 (clzdi2): Ditto.
24966 (ffsdi2): Ditto.
24967
24968 2014-01-25 Walter Lee <walt@tilera.com>
24969
24970 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24971 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24972
24973 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24974
24975 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24976 Handle XOR.
24977
24978 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24979
24980 * print-rtl.c (in_call_function_usage): New var.
24981 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24982 EXPR_LIST mode as mode and not as reg note name.
24983
24984 PR middle-end/59561
24985 * cfgloopmanip.c (copy_loop_info): If
24986 loop->warned_aggressive_loop_optimizations, make sure
24987 the flag is set in target loop too.
24988
24989 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24990
24991 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24992 flag_cilkplus.
24993 * builtins.def: Likewise.
24994 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24995 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24996 * ira.c (ira_setup_eliminable_regset): Likewise.
24997 * omp-low.c (gate_expand_omp): Likewise.
24998 (execute_lower_omp): Likewise.
24999 (diagnose_sb_0): Likewise.
25000 (gate_diagnose_omp_blocks): Likewise.
25001 (simd_clone_clauses_extract): Likewise.
25002 (gate): Likewise.
25003
25004 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25005
25006 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25007 correction for little endian...
25008 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25009 here.
25010
25011 2014-01-24 Jeff Law <law@redhat.com>
25012
25013 PR tree-optimization/59919
25014 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25015 for non-returning calls.
25016
25017 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25018
25019 * common/config/aarch64/aarch64-common.c
25020 (aarch64_rewrite_mcpu): Handle multiple names.
25021 * config/aarch64/aarch64.h
25022 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25023
25024 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25025
25026 * input.c (add_file_to_cache_tab): Handle the case where fopen
25027 returns NULL.
25028
25029 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25030
25031 PR target/59929
25032 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25033 from push operand if code of push isn't PRE_DEC.
25034
25035 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25036
25037 PR target/59909
25038 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25039 -mquad-memory-atomic. Update -mquad-memory documentation to say
25040 it is only used for non-atomic loads/stores.
25041
25042 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25043 -mquad-memory or -mquad-memory-atomic switches.
25044
25045 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25046 -mquad-memory-atomic to ISA 2.07 support.
25047
25048 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25049 to separate support of normal quad word memory operations (ldq, stq)
25050 from the atomic quad word memory operations.
25051
25052 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25053 support to separate non-atomic quad word operations from atomic
25054 quad word operations. Disable non-atomic quad word operations in
25055 little endian mode so that we don't have to swap words after the
25056 load and before the store.
25057 (quad_load_store_p): Add comment about atomic quad word support.
25058 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25059 options printed with -mdebug=reg.
25060
25061 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25062 -mquad-memory-atomic as the test for whether we have quad word
25063 atomic instructions.
25064 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25065 or -mp8-vector are used, allow byte/half-word atomic operations.
25066
25067 * config/rs6000/sync.md (load_lockedti): Insure that the address
25068 is a proper indexed or indirect address for the lqarx instruction.
25069 On little endian systems, swap the hi/lo registers after the lqarx
25070 instruction.
25071 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25072 insure the address is valid for the lqarx instruction.
25073 (store_conditionalti): Insure that the address is a proper indexed
25074 or indirect address for the stqcrx. instruction. On little endian
25075 systems, swap the hi/lo registers before doing the stqcrx.
25076 instruction.
25077 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25078 insure the address is valid for the stqcrx. instruction.
25079
25080 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25081 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25082 type of quad memory support is available.
25083
25084 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25085
25086 PR regression/59915
25087 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25088 there is a danger of looping.
25089
25090 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25091
25092 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25093 force flag_ira_loop_pressure if set via command line.
25094
25095 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25096
25097 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25098 (ashr_simd): New builtin handling DI mode.
25099 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25100 (aarch64_sshr_simddi): New match pattern.
25101 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25102 (vshrd_n_s64): Likewise.
25103 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25104
25105 2014-01-23 Nick Clifton <nickc@redhat.com>
25106
25107 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25108 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25109 favour of mcu specific scripts.
25110 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25111 430x multilibs.
25112
25113 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25114 Alex Velenko <Alex.Velenko@arm.com>
25115
25116 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25117 (vaddv_s16): Likewise.
25118 (vaddv_s32): Likewise.
25119 (vaddv_u8): Likewise.
25120 (vaddv_u16): Likewise.
25121 (vaddv_u32): Likewise.
25122 (vaddvq_s8): Likewise.
25123 (vaddvq_s16): Likewise.
25124 (vaddvq_s32): Likewise.
25125 (vaddvq_s64): Likewise.
25126 (vaddvq_u8): Likewise.
25127 (vaddvq_u16): Likewise.
25128 (vaddvq_u32): Likewise.
25129 (vaddvq_u64): Likewise.
25130 (vaddv_f32): Likewise.
25131 (vaddvq_f32): Likewise.
25132 (vaddvq_f64): Likewise.
25133 (vmaxv_f32): Likewise.
25134 (vmaxv_s8): Likewise.
25135 (vmaxv_s16): Likewise.
25136 (vmaxv_s32): Likewise.
25137 (vmaxv_u8): Likewise.
25138 (vmaxv_u16): Likewise.
25139 (vmaxv_u32): Likewise.
25140 (vmaxvq_f32): Likewise.
25141 (vmaxvq_f64): Likewise.
25142 (vmaxvq_s8): Likewise.
25143 (vmaxvq_s16): Likewise.
25144 (vmaxvq_s32): Likewise.
25145 (vmaxvq_u8): Likewise.
25146 (vmaxvq_u16): Likewise.
25147 (vmaxvq_u32): Likewise.
25148 (vmaxnmv_f32): Likewise.
25149 (vmaxnmvq_f32): Likewise.
25150 (vmaxnmvq_f64): Likewise.
25151 (vminv_f32): Likewise.
25152 (vminv_s8): Likewise.
25153 (vminv_s16): Likewise.
25154 (vminv_s32): Likewise.
25155 (vminv_u8): Likewise.
25156 (vminv_u16): Likewise.
25157 (vminv_u32): Likewise.
25158 (vminvq_f32): Likewise.
25159 (vminvq_f64): Likewise.
25160 (vminvq_s8): Likewise.
25161 (vminvq_s16): Likewise.
25162 (vminvq_s32): Likewise.
25163 (vminvq_u8): Likewise.
25164 (vminvq_u16): Likewise.
25165 (vminvq_u32): Likewise.
25166 (vminnmv_f32): Likewise.
25167 (vminnmvq_f32): Likewise.
25168 (vminnmvq_f64): Likewise.
25169
25170 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25171
25172 * config/aarch64/aarch64-simd.md
25173 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25174 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25175 (*aarch64_mul3_elt<mode>): Likewise.
25176 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25177 (*aarch64_mul3_elt_to_64v2df): Likewise.
25178 (*aarch64_mla_elt<mode>): Likewise.
25179 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25180 (*aarch64_mls_elt<mode>): Likewise.
25181 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25182 (*aarch64_fma4_elt<mode>): Likewise.
25183 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25184 (*aarch64_fma4_elt_to_64v2df): Likewise.
25185 (*aarch64_fnma4_elt<mode>): Likewise.
25186 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25187 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25188 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25189 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25190 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25191 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25192 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25193 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25194 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25195
25196 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25197
25198 * config/aarch64/aarch64-simd.md
25199 (aarch64_be_checked_get_lane<mode>): New define_expand.
25200 * config/aarch64/aarch64-simd-builtins.def
25201 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25202 New builtin definition.
25203 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25204 Use new safe be builtin.
25205
25206 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25207
25208 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25209 New define_insn.
25210 (aarch64_be_st1<mode>): Likewise.
25211 (aarch_ld1<VALL:mode>): Define_expand modified.
25212 (aarch_st1<VALL:mode>): Likewise.
25213 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25214 (UNSPEC_ST1): Likewise.
25215
25216 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25217
25218 * config/microblaze/microblaze.md: Add trap insn and attribute
25219
25220 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25221
25222 PR preprocessor/58580
25223 * input.h (location_get_source_line): Take an additional line_size
25224 parameter.
25225 (void diagnostics_file_cache_fini): Declare new function.
25226 * input.c (struct fcache): New type.
25227 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25228 New static constants.
25229 (diagnostic_file_cache_init, total_lines_num)
25230 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25231 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25232 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25233 (get_next_line, read_next_line, goto_next_line, read_line_num):
25234 New static function definitions.
25235 (diagnostic_file_cache_fini): New function.
25236 (location_get_source_line): Take an additional output line_len
25237 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25238 read_line_num.
25239 * diagnostic.c (diagnostic_finish): Call
25240 diagnostic_file_cache_fini.
25241 (adjust_line): Take an additional input parameter for the length
25242 of the line, rather than calculating it with strlen.
25243 (diagnostic_show_locus): Adjust the use of
25244 location_get_source_line and adjust_line with respect to their new
25245 signature. While displaying a line now, do not stop at the first
25246 null byte. Rather, display the zero byte as a space and keep
25247 going until we reach the size of the line.
25248 * Makefile.in: Add vec.o to OBJS-libcommon
25249
25250 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25251 Ilya Tocar <ilya.tocar@intel.com>
25252
25253 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25254 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25255 (__builtin_ia32_kmov16): Ditto.
25256 * config/i386/i386.md (UNSPEC_KMOV): New.
25257 (kmovw): Ditto.
25258
25259 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25260
25261 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25262 (_mm512_storeu_si512): Ditto.
25263
25264 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25265
25266 PR target/52125
25267 * rtl.h (get_referenced_operands): Declare.
25268 * recog.c (get_referenced_operands): New function.
25269 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25270 operands have been referenced when recording LO_SUM references.
25271
25272 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25273
25274 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25275
25276 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25277
25278 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25279 Enable for generic and recent AMD targets.
25280
25281 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25282
25283 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25284 ARG_SIZE note when adjustment was eliminated.
25285
25286 2014-01-22 Jeff Law <law@redhat.com>
25287
25288 PR tree-optimization/59597
25289 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25290 in file. Accept new argument REGISTERING and use it to modify
25291 dump output appropriately.
25292 (register_jump_thread): Corresponding changes.
25293 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25294 thread paths involving joiner blocks. Add code to dump cancelled
25295 jump threading paths.
25296
25297 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25298
25299 PR rtl-optimization/59477
25300 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25301 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25302
25303 2014-01-22 Tom Tromey <tromey@redhat.com>
25304
25305 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25306 PARAMS.
25307 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25308
25309 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25310
25311 PR rtl-optimization/59896
25312 * lra-constraints.c (process_alt_operands): Check unused note for
25313 matched operands of insn with no output reloads.
25314
25315 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25316
25317 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25318 (mips_move_from_gpr_cost): Likewise.
25319
25320 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25321
25322 PR rtl-optimization/59858
25323 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25324 ira_class_hard_regs_num.
25325 (process_alt_operands): Increase reject for dying matched operand.
25326
25327 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25328
25329 PR target/59003
25330 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25331 smaller than size, perform several stores or loads and stores
25332 at dst + count - size to store or copy all of size bytes, rather
25333 than just last modesize bytes.
25334
25335 2014-01-20 DJ Delorie <dj@redhat.com>
25336
25337 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25338 that CLOBBERs are REGs before propogating their values.
25339
25340 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25341
25342 PR middle-end/59789
25343 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25344 (cgraph_inline_failed_type): New function.
25345 * cgraph.h (DEFCIFCODE): Add type.
25346 (cgraph_inline_failed_type_t): New enum.
25347 (cgraph_inline_failed_type): New prototype.
25348 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25349 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25350 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25351 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25352 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25353 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25354 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25355 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25356 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25357 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25358 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25359 OPTIMIZATION_MISMATCH.
25360 * tree-inline.c (expand_call_inline): Emit errors during
25361 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25362
25363 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25364
25365 PR target/59685
25366 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25367 mode attribute in insn output.
25368
25369 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25370
25371 * output.h (output_constant): Delete.
25372 * varasm.c (output_constant): Make private.
25373
25374 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25375
25376 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25377
25378 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25379
25380 PR middle-end/59860
25381 * tree.h (fold_builtin_strcat): New prototype.
25382 * builtins.c (fold_builtin_strcat): No longer static. Add len
25383 argument, if non-NULL, don't call c_strlen. Optimize
25384 directly into __builtin_memcpy instead of __builtin_strcpy.
25385 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25386 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25387
25388 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25389
25390 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25391 for SImode_address_operand operands, having only a REG argument.
25392
25393 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25394
25395 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25396 loader name using mbig-endian.
25397 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25398
25399 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25400
25401 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25402 (-mtune): Likewise.
25403 (-mcpu): Likewise.
25404
25405 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25406
25407 * config/aarch64/aarch64-protos.h
25408 (aarch64_cannot_change_mode_class_ptr): Declare.
25409 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25410 aarch64_cannot_change_mode_class_ptr): New.
25411 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25412 backend hook aarch64_cannot_change_mode_class.
25413
25414 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25415
25416 * common/config/aarch64/aarch64-common.c
25417 (aarch64_handle_option): Don't handle any option order logic here.
25418 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25419 selected_cpu, warn on architecture version mismatch.
25420 (aarch64_override_options): Fix parsing order for option strings.
25421
25422 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25423 Iain Sandoe <iain@codesourcery.com>
25424
25425 PR bootstrap/59496
25426 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25427 warning. Amend comment to reflect current functionality.
25428
25429 2014-01-20 Richard Biener <rguenther@suse.de>
25430
25431 PR middle-end/59860
25432 * builtins.c (fold_builtin_strcat): Remove case better handled
25433 by tree-ssa-strlen.c.
25434
25435 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25436
25437 * config/aarch64/aarch64.opt
25438 (mcpu, march, mtune): Make case-insensitive.
25439
25440 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25441
25442 PR target/59880
25443 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25444 if operands[1] is a REG or ZERO_EXTEND of a REG.
25445
25446 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25447
25448 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25449
25450 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25451
25452 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25453 long non-pic millicode calls.
25454
25455 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25456
25457 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25458
25459 2014-01-19 Kito Cheng <kito@0xlab.org>
25460
25461 * builtins.c (expand_movstr): Check movstr expand done or fail.
25462
25463 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25464 H.J. Lu <hongjiu.lu@intel.com>
25465
25466 PR target/59379
25467 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25468 to DImode for zero-extended addresses.
25469
25470 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25471
25472 PR rtl-optimization/57763
25473 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25474 on the new indirect jump_insn and increment LABEL_NUSES (label).
25475
25476 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25477
25478 PR bootstrap/59580
25479 PR bootstrap/59583
25480 * config.gcc (x86_archs): New variable.
25481 (x86_64_archs): Likewise.
25482 (x86_cpus): Likewise.
25483 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25484 --with-arch/--with-cpu= options.
25485 Support --with-arch=/--with-cpu={nehalem,westmere,
25486 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25487
25488 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25489
25490 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25491 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25492
25493 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25494
25495 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25496
25497 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25498
25499 PR target/58944
25500 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25501 clear cpp_get_options (parse_in)->warn_unused_macros for
25502 ix86_target_macros_internal with cpp_define.
25503
25504 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25505
25506 * jump.c (delete_related_insns): Keep (use (insn))s.
25507 * reorg.c (redundant_insn): Check for barriers too.
25508
25509 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25510
25511 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25512
25513 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25514
25515 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25516 call to $$dyncall when TARGET_LONG_CALLS is true.
25517
25518 2014-01-17 Jeff Law <law@redhat.com>
25519
25520 * ree.c (combine_set_extension): Temporarily disable test for
25521 changing number of hard registers.
25522
25523 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25524
25525 PR middle-end/58125
25526 * ipa-inline-analysis.c (inline_free_summary):
25527 Do not free summary of aliases.
25528
25529 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25530
25531 PR middle-end/59706
25532 * gimplify.c (gimplify_expr): Use create_tmp_var
25533 instead of create_tmp_var_raw. If cond doesn't have
25534 integral type, don't add the IFN_ANNOTATE builtin at all.
25535
25536 2014-01-17 Martin Jambor <mjambor@suse.cz>
25537
25538 PR ipa/59736
25539 * ipa-cp.c (prev_edge_clone): New variable.
25540 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25541 Also resize prev_edge_clone vector.
25542 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25543 (ipcp_edge_removal_hook): New function.
25544 (ipcp_driver): Register ipcp_edge_removal_hook.
25545
25546 2014-01-17 Andrew Pinski <apinski@cavium.com>
25547 Steve Ellcey <sellcey@mips.com>
25548
25549 PR target/59462
25550 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25551 of operator mode.
25552
25553 2014-01-17 Jeff Law <law@redhat.com>
25554
25555 PR middle-end/57904
25556 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25557 so that pass_ccp runs first.
25558
25559 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25560
25561 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25562 (ix86_adjust_cost): Use !TARGET_XXX.
25563 (do_reorder_for_imul): Likewise.
25564 (swap_top_of_ready_list): Likewise.
25565 (ix86_sched_reorder): Likewise.
25566
25567 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25568
25569 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25570 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25571 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25572 (intel_memset): New. Duplicate slm_memset.
25573 (intel_cost): New. Duplicate slm_cost.
25574 (m_INTEL): New macro.
25575 (processor_target_table): Add "intel".
25576 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25577 with PROCESSOR_INTEL for "intel".
25578 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25579 PROCESSOR_SILVERMONT.
25580 (ix86_issue_rate): Likewise.
25581 (ix86_adjust_cost): Likewise.
25582 (ia32_multipass_dfa_lookahead): Likewise.
25583 (swap_top_of_ready_list): Likewise.
25584 (ix86_sched_reorder): Likewise.
25585 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25586 instead of TARGET_OPT_AGU.
25587 * config/i386/i386.h (TARGET_INTEL): New.
25588 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25589 (processor_type): Add PROCESSOR_INTEL.
25590 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25591 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25592
25593 2014-01-17 Marek Polacek <polacek@redhat.com>
25594
25595 PR c/58346
25596 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25597 size is zero.
25598
25599 2014-01-17 Richard Biener <rguenther@suse.de>
25600
25601 PR tree-optimization/46590
25602 * opts.c (default_options_table): Add entries for
25603 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25604 all enabled at -O1 but not for -Og.
25605 * common.opt (fbranch-count-reg): Remove Init(1).
25606 (fmove-loop-invariants): Likewise.
25607 (ftree-pta): Likewise.
25608
25609 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25610
25611 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25612 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25613 decls to at least the GCC 4.8 used alignments.
25614
25615 PR fortran/59440
25616 * tree-nested.c (convert_nonlocal_reference_stmt,
25617 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25618 of GIMPLE_BIND stmts, adjust associated decls.
25619
25620 2014-01-17 Richard Biener <rguenther@suse.de>
25621
25622 PR tree-optimization/46590
25623 * vec.h (vec<>::bseach): New member function implementing
25624 binary search according to C89 bsearch.
25625 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25626 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25627 bitmap pointer again. Make accesses_in_loop a flat array.
25628 (mem_ref_obstack): New global.
25629 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25630 (mark_ref_stored): Likewise.
25631 (ref_indep_loop_p_2): Likewise.
25632 (set_ref_stored_in_loop): New helper function.
25633 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25634 (memref_free): Adjust.
25635 (record_mem_ref_loc): Simplify.
25636 (gather_mem_refs_stmt): Adjust.
25637 (sort_locs_in_loop_postorder_cmp): New function.
25638 (analyze_memory_references): Sort accesses_in_loop after
25639 loop postorder number.
25640 (find_ref_loc_in_loop_cmp): New function.
25641 (for_all_locs_in_loop): Find relevant cluster of locs in
25642 accesses_in_loop and iterate without recursion.
25643 (execute_sm): Avoid uninit warning.
25644 (struct ref_always_accessed): Simplify.
25645 (ref_always_accessed::operator ()): Likewise.
25646 (ref_always_accessed_p): Likewise.
25647 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25648 loop postorder numbers here.
25649 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25650 numbers.
25651
25652 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25653
25654 PR c++/57945
25655 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25656 on decls for which assemble_alias has been called.
25657
25658 2014-01-17 Nick Clifton <nickc@redhat.com>
25659
25660 * config/msp430/msp430.opt: (mcpu): New option.
25661 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25662 (msp430_option_override): Parse target_cpu. If the MCU name
25663 matches a generic string, clear target_mcu.
25664 (msp430_attr): Allow numeric interrupt values up to 63.
25665 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25666 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25667 option.
25668 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25669 Add mcpu matches.
25670 * config/msp430/msp430.md (popm): Use %J rather than %I.
25671 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25672 (addhi_cy_i): Use immediate_operand for operand 2.
25673 * doc/invoke.texi: Document -mcpu option.
25674
25675 2014-01-17 Richard Biener <rguenther@suse.de>
25676
25677 PR rtl-optimization/38518
25678 * df.h (df_analyze_loop): Declare.
25679 * df-core.c: Include cfgloop.h.
25680 (df_analyze_1): Split out main part of df_analyze.
25681 (df_analyze): Adjust.
25682 (loop_inverted_post_order_compute): New function.
25683 (loop_post_order_compute): Likewise.
25684 (df_analyze_loop): New function avoiding whole-function
25685 postorder computes.
25686 * loop-invariant.c (find_defs): Use df_analyze_loop.
25687 (find_invariants): Adjust.
25688 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25689
25690 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25691
25692 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25693 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25694
25695 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25696
25697 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25698 traversal when removing references.
25699
25700 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25701
25702 PR ipa/59775
25703 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25704
25705 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25706
25707 PR middle-end/56791
25708 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25709 pushing a reload for an autoinc when we had previously reloaded an
25710 inner part of the address.
25711
25712 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25713
25714 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25715 field.
25716 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25717 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25718 when not giving up or versioning for alias only because of
25719 loop->safelen.
25720 (vect_analyze_data_ref_dependences): Set to true.
25721 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25722 is a GIMPLE_PHI.
25723 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25724 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25725 to the condition.
25726
25727 PR middle-end/58344
25728 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25729
25730 PR target/59839
25731 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25732 operand 0 predicate for gathers, use a new pseudo as subtarget.
25733
25734 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25735
25736 PR middle-end/59609
25737 * lra-constraints.c (process_alt_operands): Add printing debug info.
25738 Check absence of input/output reloads for matched operands too.
25739
25740 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25741
25742 PR rtl-optimization/59835
25743 * ira.c (ira_init_register_move_cost): Increase cost for
25744 impossible modes.
25745
25746 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25747
25748 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25749
25750 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25751
25752 PR target/59780
25753 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25754 non-register objects. Use gen_(high/low)part more consistently.
25755 Fix assertions.
25756
25757 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25758
25759 PR target/59844
25760 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25761 endian support, remove tests for WORDS_BIG_ENDIAN.
25762 (p8_mfvsrd_3_<mode>): Likewise.
25763 (reload_gpr_from_vsx<mode>): Likewise.
25764 (reload_gpr_from_vsxsf): Likewise.
25765 (p8_mfvsrd_4_disf): Likewise.
25766
25767 2014-01-16 Richard Biener <rguenther@suse.de>
25768
25769 PR rtl-optimization/46590
25770 * lcm.c (compute_antinout_edge): Use postorder iteration.
25771 (compute_laterin): Use inverted postorder iteration.
25772
25773 2014-01-16 Nick Clifton <nickc@redhat.com>
25774
25775 PR middle-end/28865
25776 * varasm.c (output_constant): Return the number of bytes actually
25777 emitted.
25778 (output_constructor_array_range): Update the field size with the
25779 number of bytes emitted by output_constant.
25780 (output_constructor_regular_field): Likewise. Also do not
25781 complain if the total number of bytes emitted is now greater
25782 than the expected fieldpos.
25783 * output.h (output_constant): Update prototype and descriptive comment.
25784
25785 2014-01-16 Marek Polacek <polacek@redhat.com>
25786
25787 PR middle-end/59827
25788 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25789 it is error_mark_node.
25790
25791 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25792
25793 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25794 VALID_AVX256_REG_OR_OI_MODE.
25795
25796 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25797
25798 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25799 current procedure should be profiled.
25800
25801 2014-01-15 Andrew Pinski <apinski@cavium.com>
25802
25803 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25804 of moving from/to the STACK_REG register class.
25805
25806 2014-01-15 Richard Henderson <rth@redhat.com>
25807
25808 PR debug/54694
25809 * reginfo.c (global_regs_decl): Globalize.
25810 * rtl.h (global_regs_decl): Declare.
25811 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25812 reserved via global_regs.
25813
25814 2014-01-15 Teresa Johnson <tejohnson@google.com>
25815
25816 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25817
25818 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25819
25820 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25821 and vmulosh rather than call gen_vec_widen_smult_*.
25822 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25823 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25824 (vec_widen_smult_even_v16qi): Likewise.
25825 (vec_widen_umult_even_v8hi): Likewise.
25826 (vec_widen_smult_even_v8hi): Likewise.
25827 (vec_widen_umult_odd_v16qi): Likewise.
25828 (vec_widen_smult_odd_v16qi): Likewise.
25829 (vec_widen_umult_odd_v8hi): Likewise.
25830 (vec_widen_smult_odd_v8hi): Likewise.
25831 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25832 vmuloub rather than call gen_vec_widen_umult_*.
25833 (vec_widen_umult_lo_v16qi): Likewise.
25834 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25835 vmulosb rather than call gen_vec_widen_smult_*.
25836 (vec_widen_smult_lo_v16qi): Likewise.
25837 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25838 rather than call gen_vec_widen_umult_*.
25839 (vec_widen_umult_lo_v8hi): Likewise.
25840 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25841 rather than call gen_vec_widen_smult_*.
25842 (vec_widen_smult_lo_v8hi): Likewise.
25843
25844 2014-01-15 Jeff Law <law@redhat.com>
25845
25846 PR tree-optimization/59747
25847 * ree.c (find_and_remove_re): Properly handle case where a second
25848 eliminated extension requires widening a copy created for elimination
25849 of a prior extension.
25850 (combine_set_extension): Ensure that the number of hard regs needed
25851 for a destination register does not change when we widen it.
25852
25853 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25854
25855 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25856 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25857 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25858 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25859 (avr-*-rtems*): Likewise.
25860 (bfin*-rtems*): Likewise.
25861 (moxie-*-rtems*): Likewise.
25862 (h8300-*-rtems*): Likewise.
25863 (i[34567]86-*-rtems*): Likewise.
25864 (lm32-*-rtems*): Likewise.
25865 (m32r-*-rtems*): Likewise.
25866 (m68k-*-rtems*): Likewise.
25867 (microblaze*-*-rtems*): Likewise.
25868 (mips*-*-rtems*): Likewise.
25869 (powerpc-*-rtems*): Likewise.
25870 (sh-*-rtems*): Likewise.
25871 (sparc-*-rtems*): Likewise.
25872 (sparc64-*-rtems*): Likewise.
25873 (v850-*-rtems*): Likewise.
25874 (m32c-*-rtems*): Likewise.
25875
25876 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25877
25878 PR rtl-optimization/59511
25879 * ira.c (ira_init_register_move_cost): Use memory costs for some
25880 cases of register move cost calculations.
25881 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25882 instead of BB frequency.
25883 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25884 * lra-assigns.c (find_hard_regno_for): Ditto.
25885
25886 2014-01-15 Richard Biener <rguenther@suse.de>
25887
25888 PR tree-optimization/59822
25889 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25890 (vectorizable_load): Use it to hoist defs of uses of invariant
25891 loads out of the loop.
25892
25893 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25894 Kugan Vivekanandarajah <kuganv@linaro.org>
25895
25896 PR target/59695
25897 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25898 truncation.
25899
25900 2014-01-15 Richard Biener <rguenther@suse.de>
25901
25902 PR rtl-optimization/59802
25903 * lcm.c (compute_available): Use inverted postorder to seed
25904 the initial worklist.
25905
25906 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25907
25908 PR target/59803
25909 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25910 ADDR_REGS for invalid symrefs in non-PIC code.
25911
25912 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25913
25914 PR other/58712
25915 * builtins.c (determine_block_size): Initialize *probable_max_size
25916 even if len_rtx is CONST_INT.
25917
25918 2014-01-14 Andrew Pinski <apinski@cavium.com>
25919
25920 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25921 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25922 (cortexa53_tunings): Likewise.
25923 (aarch64_sched_issue_rate): New function.
25924 (TARGET_SCHED_ISSUE_RATE): Define.
25925
25926 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25927
25928 * ira-costs.c (find_costs_and_classes): Add missed
25929 ira_init_register_move_cost_if_necessary.
25930
25931 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25932
25933 PR target/59787
25934 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25935
25936 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25937
25938 PR target/59794
25939 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25940 to indicate if type is used for function return value. Warn ABI
25941 change if the vector mode isn't available for function return value.
25942 (ix86_function_arg_advance): Pass false to type_natural_mode.
25943 (ix86_function_arg): Likewise.
25944 (ix86_gimplify_va_arg): Likewise.
25945 (function_arg_32): Don't warn ABI change.
25946 (ix86_function_value): Pass true to type_natural_mode.
25947 (ix86_return_in_memory): Likewise.
25948 (ix86_struct_value_rtx): Removed.
25949 (TARGET_STRUCT_VALUE_RTX): Likewise.
25950
25951 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25952
25953 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25954 converting a conditional jump into a conditional return.
25955
25956 2014-01-14 Richard Biener <rguenther@suse.de>
25957
25958 PR tree-optimization/58921
25959 PR tree-optimization/59006
25960 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25961 hoisting invariant stmts.
25962 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25963 invariant loads on the preheader edge if possible.
25964
25965 2014-01-14 Joey Ye <joey.ye@arm.com>
25966
25967 * doc/plugin.texi (Building GCC plugins): Update to C++.
25968
25969 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25970
25971 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25972 (_mm_rcp28_round_ss): Ditto.
25973 (_mm_rsqrt28_round_sd): Ditto.
25974 (_mm_rsqrt28_round_ss): Ditto.
25975 (_mm_rcp28_sd): Ditto.
25976 (_mm_rcp28_ss): Ditto.
25977 (_mm_rsqrt28_sd): Ditto.
25978 (_mm_rsqrt28_ss): Ditto.
25979 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25980 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25981 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25982 (IX86_BUILTIN_RCP28SD): Ditto.
25983 (IX86_BUILTIN_RCP28SS): Ditto.
25984 (IX86_BUILTIN_RSQRT28SD): Ditto.
25985 (IX86_BUILTIN_RSQRT28SS): Ditto.
25986 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25987 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25988 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25989 (ix86_expand_special_args_builtin): Expand new FTYPE.
25990 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25991 (srcp14<mode>): Make insn unary.
25992 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25993 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25994 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25995 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25996 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25997 Fix rounding: make it SAE only.
25998 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25999 Ditto.
26000 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26001 Ditto.
26002 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26003 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26004 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26005 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26006 (round_saeonly_mask_scalar_operand4): Ditto.
26007 (round_saeonly_mask_scalar_op3): Ditto.
26008 (round_saeonly_mask_scalar_op4): Ditto.
26009
26010 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26011
26012 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26013 Implement -maltivec=be for vec_insert and vec_extract.
26014
26015 2014-01-10 DJ Delorie <dj@redhat.com>
26016
26017 * config/msp430/msp430.md (call_internal): Don't allow memory
26018 references with SP as the base register.
26019 (call_value_internal): Likewise.
26020 * config/msp430/constraints.md (Yc): New. For memory references
26021 that don't use SP as a base register.
26022
26023 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26024 "an integer without a # prefix"
26025 * config/msp430/msp430.md (epilogue_helper): Use it.
26026
26027 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26028
26029 PR target/59617
26030 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26031 AVX512F gather builtins.
26032 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26033 on gather decls with INTEGER_TYPE masktype.
26034 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26035 directly into the builtin rather than hoisting it before loop.
26036
26037 PR tree-optimization/59387
26038 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26039 (scev_const_prop): If folded_casts and type has undefined overflow,
26040 use force_gimple_operand instead of force_gimple_operand_gsi and
26041 for each added stmt if it is assign with
26042 arith_code_with_undefined_signed_overflow, call
26043 rewrite_to_defined_overflow.
26044 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26045 gimple-fold.h instead.
26046 (arith_code_with_undefined_signed_overflow,
26047 rewrite_to_defined_overflow): Moved to ...
26048 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26049 rewrite_to_defined_overflow): ... here. No longer static.
26050 Include gimplify-me.h.
26051 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26052 rewrite_to_defined_overflow): New prototypes.
26053
26054 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26055
26056 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26057
26058 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26059
26060 * builtins.c (get_object_alignment_2): Minor tweak.
26061 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26062
26063 2014-01-13 Christian Bruel <christian.bruel@st.com>
26064
26065 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26066 optimized non constant lengths.
26067
26068 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26069
26070 PR libgomp/59194
26071 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26072 load as __atomic_load_N if possible.
26073
26074 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26075
26076 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26077 target parameter.
26078 (rs6000_expand_builtin): Adjust call.
26079
26080 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26081
26082 PR target/58115
26083 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26084 * config/rs6000/rs6000.c: Include target-globals.h.
26085 (rs6000_set_current_function): Instead of doing target_reinit
26086 unconditionally, use save_target_globals_default_opts and
26087 restore_target_globals.
26088
26089 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26090 FPSCR.
26091 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26092 (rs6000_expand_builtin): Handle mffs and mtfsf.
26093 (rs6000_init_builtins): Define mffs and mtfsf.
26094 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26095 (rs6000_mffs): New pattern.
26096 (rs6000_mtfsf): New pattern.
26097
26098 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26099
26100 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26101 Start narrowing with START. Apply candidate-use pair
26102 and check overall cost in narrowing.
26103 (iv_ca_prune): Pass new argument.
26104
26105 2014-01-10 Jeff Law <law@redhat.com>
26106
26107 PR middle-end/59743
26108 * ree.c (combine_reaching_defs): Ensure the defining statement
26109 occurs before the extension when optimizing extensions with
26110 different source and destination hard registers.
26111
26112 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26113
26114 PR ipa/58585
26115 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26116 vtables into the type inheritance graph.
26117
26118 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26119
26120 PR rtl-optimization/59754
26121 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26122 modes in the REGNO != REGNO case.
26123
26124 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26125
26126 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26127
26128 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26129
26130 PR tree-optimization/59745
26131 * tree-predcom.c (tree_predictive_commoning_loop): Call
26132 free_affine_expand_cache if giving up because components is NULL.
26133
26134 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26135 GC in payload of target_globals struct instead of allocating them on
26136 the heap and the larger structs separately using GC.
26137 * target-globals.h (struct target_globals): Make regs, hard_regs,
26138 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26139 of GTY((skip)) and change type to void *.
26140 (reset_target_globals): Cast loads from those fields to corresponding
26141 types.
26142
26143 2014-01-10 Steve Ellcey <sellcey@mips.com>
26144
26145 PR plugins/59335
26146 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26147 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26148 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26149
26150 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26151
26152 PR target/59744
26153 * aarch64-modes.def (CC_Zmode): New flags mode.
26154 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26155 represents an equality.
26156 (aarch64_get_condition_code): Handle CC_Zmode.
26157 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26158
26159 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26160
26161 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26162 extraction in good case.
26163
26164 2014-01-10 Richard Biener <rguenther@suse.de>
26165
26166 PR tree-optimization/59374
26167 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26168 checking after SLP discovery. Mark stmts not participating
26169 in any SLP instance properly.
26170
26171 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26172
26173 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26174 when handling a SET rtx.
26175
26176 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26177
26178 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26179 (cortex-a57): Likewise.
26180 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26181
26182 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26183
26184 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26185 non-iwmmxt builtins.
26186
26187 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26188
26189 PR ipa/58252
26190 PR ipa/59226
26191 * ipa-devirt.c record_target_from_binfo): Take as argument
26192 stack of binfos and lookup matching one for virtual inheritance.
26193 (possible_polymorphic_call_targets_1): Update.
26194
26195 2014-01-10 Huacai Chen <chenhc@lemote.com>
26196
26197 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26198 kernel strings for Loongson-2E/2F/3A.
26199
26200 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26201
26202 PR middle-end/59670
26203 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26204 is_gimple_call before calling gimple_call_internal_p.
26205
26206 2014-01-09 Steve Ellcey <sellcey@mips.com>
26207
26208 * Makefile.in (TREE_FLOW_H): Remove.
26209 (TREE_SSA_H): Add file names from tree-flow.h.
26210 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26211 * tree.h: Remove tree-flow.h reference.
26212 * hash-table.h: Remove tree-flow.h reference.
26213 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26214 reference with tree-ssa-loop.h.
26215
26216 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26217
26218 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26219 default element-order behavior for -maltivec.
26220 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26221 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26222 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26223 when targeting big endian, at least for now.
26224 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26225
26226 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26227
26228 PR middle-end/47735
26229 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26230 var satisfies use_register_for_decl, just take into account type
26231 alignment, rather than decl alignment.
26232
26233 PR tree-optimization/59622
26234 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26235 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26236 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26237 Don't devirtualize for inplace at all. For targets.length () == 1,
26238 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26239
26240 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26241
26242 * config/i386/i386.md (cpu): Remove the unused btver1.
26243
26244 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26245
26246 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26247
26248 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26249
26250 PR target/58115
26251 * tree-core.h (struct target_globals): New forward declaration.
26252 (struct tree_target_option): Add globals field.
26253 * tree.h (TREE_TARGET_GLOBALS): Define.
26254 (prepare_target_option_nodes_for_pch): New prototype.
26255 * target-globals.h (struct target_globals): Define even if
26256 !SWITCHABLE_TARGET.
26257 * tree.c (prepare_target_option_node_for_pch,
26258 prepare_target_option_nodes_for_pch): New functions.
26259 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26260 * config/i386/i386.c: Include target-globals.h.
26261 (ix86_set_current_function): Instead of doing target_reinit
26262 unconditionally, use save_target_globals_default_opts and
26263 restore_target_globals.
26264
26265 2014-01-09 Richard Biener <rguenther@suse.de>
26266
26267 PR tree-optimization/59715
26268 * tree-cfg.h (split_critical_edges): Declare.
26269 * tree-cfg.c (split_critical_edges): Export.
26270 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26271
26272 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26273
26274 * cfgexpand.c (expand_stack_vars): Optionally disable
26275 asan stack protection.
26276 (expand_used_vars): Likewise.
26277 (partition_stack_vars): Likewise.
26278 * asan.c (asan_emit_stack_protection): Optionally disable
26279 after return stack usage.
26280 (instrument_derefs): Optionally disable memory access instrumentation.
26281 (instrument_builtin_call): Likewise.
26282 (instrument_strlen_call): Likewise.
26283 (asan_protect_global): Optionally disable global variables protection.
26284 * doc/invoke.texi: Added doc for new options.
26285 * params.def: Added new options.
26286 * params.h: Likewise.
26287
26288 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26289
26290 PR rtl-optimization/59724
26291 * ifcvt.c (cond_exec_process_if_block): Don't call
26292 flow_find_head_matching_sequence with 0 longest_match.
26293 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26294 non-active insns if !stop_after.
26295 (try_head_merge_bb): Revert 2014-01-07 changes.
26296
26297 2014-01-08 Jeff Law <law@redhat.com>
26298
26299 * ree.c (get_sub_rtx): New function, extracted from...
26300 (merge_def_and_ext): Here.
26301 (combine_reaching_defs): Use get_sub_rtx.
26302
26303 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26304
26305 * cgraph.h (varpool_variable_node): Do not choke on null node.
26306
26307 2014-01-08 Catherine Moore <clm@codesourcery.com>
26308
26309 * config/mips/mips.md (simple_return): Attempt to use JRC
26310 for microMIPS.
26311 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26312
26313 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26314
26315 PR rtl-optimization/59137
26316 * reorg.c (steal_delay_list_from_target): Call update_block for
26317 elided insns.
26318 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26319
26320 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26321
26322 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26323 two duplicate entries.
26324
26325 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26326
26327 Revert:
26328 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26329
26330 * config/mips/mips.c (mips_truncated_op_cost): New function.
26331 (mips_rtx_costs): Adjust test for BADDU.
26332 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26333
26334 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26335
26336 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26337 (*baddu_si): ...this new pattern.
26338
26339 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26340
26341 PR ipa/59722
26342 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26343
26344 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26345
26346 PR middle-end/57748
26347 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26348 inner_reference_p.
26349 (expand_expr, expand_normal): Adjust.
26350 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26351 inner_reference_p. Use inner_reference_p to expand inner references.
26352 (store_expr): Adjust.
26353 * cfgexpand.c (expand_call_stmt): Adjust.
26354
26355 2014-01-08 Rong Xu <xur@google.com>
26356
26357 * gcov-io.c (gcov_var): Move from gcov-io.h.
26358 (gcov_position): Ditto.
26359 (gcov_is_error): Ditto.
26360 (gcov_rewrite): Ditto.
26361 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26362 only part to libgcc/libgcov.h.
26363
26364 2014-01-08 Marek Polacek <polacek@redhat.com>
26365
26366 PR middle-end/59669
26367 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26368
26369 2014-01-08 Marek Polacek <polacek@redhat.com>
26370
26371 PR sanitizer/59667
26372 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26373
26374 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26375
26376 PR rtl-optimization/59649
26377 * stor-layout.c (get_mode_bounds): For BImode return
26378 0 and STORE_FLAG_VALUE.
26379
26380 2014-01-08 Richard Biener <rguenther@suse.de>
26381
26382 PR middle-end/59630
26383 * gimple.h (is_gimple_builtin_call): Remove.
26384 (gimple_builtin_call_types_compatible_p): New.
26385 (gimple_call_builtin_p): New overload.
26386 * gimple.c (is_gimple_builtin_call): Remove.
26387 (validate_call): Rename to ...
26388 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26389 check return types.
26390 (validate_type): New static function.
26391 (gimple_call_builtin_p): New overload and adjust.
26392 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26393 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26394 (gimple_fold_stmt_to_constant_1): Likewise.
26395 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26396
26397 2014-01-08 Richard Biener <rguenther@suse.de>
26398
26399 PR middle-end/59471
26400 * gimplify.c (gimplify_expr): Gimplify register-register type
26401 VIEW_CONVERT_EXPRs to separate stmts.
26402
26403 2014-01-07 Jeff Law <law@redhat.com>
26404
26405 PR middle-end/53623
26406 * ree.c (combine_set_extension): Handle case where source
26407 and destination registers in an extension insn are different.
26408 (combine_reaching_defs): Allow source and destination registers
26409 in extension to be different under limited circumstances.
26410 (add_removable_extension): Remove restriction that the
26411 source and destination registers in the extension are the same.
26412 (find_and_remove_re): Emit a copy from the extension's
26413 destination to its source after the defining insn if
26414 the source and destination registers are different.
26415
26416 PR middle-end/59285
26417 * ifcvt.c (merge_if_block): If we are merging a block with more than
26418 one successor with a block with no successors, remove any BARRIER
26419 after the second block.
26420
26421 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26422
26423 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26424
26425 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26426
26427 PR target/59652
26428 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26429 for 14-bit register offsets when INT14_OK_STRICT is false.
26430
26431 2014-01-07 Roland Stigge <stigge@antcom.de>
26432 Michael Meissner <meissner@linux.vnet.ibm.com>
26433
26434 PR 57386/target
26435 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26436 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26437
26438 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26439
26440 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26441 -mcpu.
26442
26443 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26444
26445 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26446 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26447 rtx is const0_rtx or not.
26448
26449 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26450
26451 PR target/58115
26452 * target-globals.c (save_target_globals): Remove this_fn_optab
26453 handling.
26454 * toplev.c: Include optabs.h.
26455 (target_reinit): Temporarily restore the global options if another
26456 set of options are in force.
26457
26458 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26459
26460 PR rtl-optimization/58668
26461 * cfgcleanup.c (flow_find_cross_jump): Don't count
26462 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26463 to determine what is counted.
26464 (flow_find_head_matching_sequence): Use active_insn_p to determine
26465 what is counted.
26466 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26467 counting change.
26468 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26469 determine what is counted.
26470
26471 PR tree-optimization/59643
26472 * tree-predcom.c (split_data_refs_to_components): If one dr is
26473 read and one write, determine_offset fails and the write isn't
26474 in the bad component, just put the read into the bad component.
26475
26476 2014-01-07 Mike Stump <mikestump@comcast.net>
26477 Jakub Jelinek <jakub@redhat.com>
26478
26479 PR pch/59436
26480 * tree-core.h (struct tree_optimization_option): Change optabs
26481 type from unsigned char * to void *.
26482 * optabs.c (init_tree_optimization_optabs): Adjust
26483 TREE_OPTIMIZATION_OPTABS initialization.
26484
26485 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26486
26487 PR target/59644
26488 * config/i386/i386.h (struct machine_function): Add
26489 no_drap_save_restore field.
26490 * config/i386/i386.c (ix86_save_reg): Use
26491 !cfun->machine->no_drap_save_restore instead of
26492 crtl->stack_realign_needed.
26493 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26494 this function clears frame_pointer_needed. Set
26495 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26496 and DRAP reg is needed.
26497
26498 2014-01-06 Marek Polacek <polacek@redhat.com>
26499
26500 PR c/57773
26501 * doc/implement-c.texi: Mention that other integer types are
26502 permitted as bit-field types in strictly conforming mode.
26503
26504 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26505
26506 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26507 is newly allocated.
26508
26509 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26510
26511 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26512
26513 2014-01-06 Martin Jambor <mjambor@suse.cz>
26514
26515 PR ipa/59008
26516 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26517 to int.
26518 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26519
26520 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26521
26522 PR debug/59350
26523 PR debug/59510
26524 * var-tracking.c (add_stores): Preserve the value of the source even if
26525 we don't record the store.
26526
26527 2014-01-06 Terry Guo <terry.guo@arm.com>
26528
26529 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26530
26531 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26532
26533 PR bootstrap/59541
26534 * config/darwin.c (darwin_function_section): Adjust return values to
26535 correspond to optimisation changes made in r206070.
26536
26537 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26538
26539 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26540 from prefetch_block tune setting.
26541 (nocona_cost): Correct size of prefetch block to 64.
26542
26543 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26544
26545 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26546 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26547 used to save the static chain register in the computation of the offset
26548 from which the FP registers need to be restored.
26549
26550 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26551
26552 PR tree-optimization/59519
26553 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26554 ICE if get_current_def (current_new_name) is already non-NULL, as long
26555 as it is a phi result of some other phi in *new_exit_bb that has
26556 the same argument.
26557
26558 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26559 or vmovdqu* for misaligned_operand.
26560 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26561 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26562 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26563 aligned_mem for AVX512F masked aligned load and store builtins and for
26564 non-temporal moves.
26565
26566 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26567
26568 PR tree-optimization/59651
26569 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26570 Address range for negative step should be added by TYPE_SIZE_UNIT.
26571
26572 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26573
26574 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26575 overlapping registers also for registers other than the stack pointer.
26576
26577 2014-01-03 Marek Polacek <polacek@redhat.com>
26578
26579 PR other/59661
26580 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26581 __builtin_FILE.
26582
26583 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26584
26585 PR target/59625
26586 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26587 asm goto as jump.
26588
26589 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26590 (push splitter): Use <P:MODE_SIZE> instead of
26591 GET_MODE_SIZE (<P:MODE>mode).
26592 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26593 (mov -1, reg peephole2): Likewise.
26594 * config/i386/sse.md (*mov<mode>_internal,
26595 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26596 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26597 *<code><mode>3, *andnot<mode>3<mask_name>,
26598 <mask_codefor><code><mode>3<mask_name>): Likewise.
26599 * config/i386/subst.md (mask_mode512bit_condition,
26600 sd_mask_mode512bit_condition): Likewise.
26601
26602 2014-01-02 Xinliang David Li <davidxl@google.com>
26603
26604 PR tree-optimization/59303
26605 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26606 (dump_predicates): Better output format.
26607 (pred_equal_p): New function.
26608 (is_neq_relop_p): Ditto.
26609 (is_neq_zero_form_p): Ditto.
26610 (pred_expr_equal_p): Ditto.
26611 (pred_neg_p): Ditto.
26612 (simplify_pred): Ditto.
26613 (simplify_preds_2): Ditto.
26614 (simplify_preds_3): Ditto.
26615 (simplify_preds_4): Ditto.
26616 (simplify_preds): Ditto.
26617 (push_pred): Ditto.
26618 (push_to_worklist): Ditto.
26619 (get_pred_info_from_cmp): Ditto.
26620 (is_degenerated_phi): Ditto.
26621 (normalize_one_pred_1): Ditto.
26622 (normalize_one_pred): Ditto.
26623 (normalize_one_pred_chain): Ditto.
26624 (normalize_preds): Ditto.
26625 (normalize_cond_1): Remove function.
26626 (normalize_cond): Ditto.
26627 (is_gcond_subset_of): Ditto.
26628 (is_subset_of_any): Ditto.
26629 (is_or_set_subset_of): Ditto.
26630 (is_and_set_subset_of): Ditto.
26631 (is_norm_cond_subset_of): Ditto.
26632 (pred_chain_length_cmp): Ditto.
26633 (convert_control_dep_chain_into_preds): Type change.
26634 (find_predicates): Ditto.
26635 (find_def_preds): Ditto.
26636 (destroy_predicates_vecs): Ditto.
26637 (find_matching_predicates_in_rest_chains): Ditto.
26638 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26639 (is_pred_expr_subset): Ditto.
26640 (is_pred_chain_subset_of): Ditto.
26641 (is_included_in): Ditto.
26642 (is_superset_of): Ditto.
26643
26644 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26645
26646 Update copyright years.
26647
26648 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26649
26650 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26651 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26652 config/arc/arc.md, config/arc/arc.opt,
26653 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26654 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26655 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26656 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26657 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26658 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26659 vtable-verify.c, vtable-verify.h: Use the standard form for the
26660 copyright notice.
26661
26662 2014-01-02 Tobias Burnus <burnus@net-b.de>
26663
26664 * gcc.c (process_command): Update copyright notice dates.
26665 * gcov-dump.c: Ditto.
26666 * gcov.c: Ditto.
26667 * doc/cpp.texi: Bump @copying's copyright year.
26668 * doc/cppinternals.texi: Ditto.
26669 * doc/gcc.texi: Ditto.
26670 * doc/gccint.texi: Ditto.
26671 * doc/gcov.texi: Ditto.
26672 * doc/install.texi: Ditto.
26673 * doc/invoke.texi: Ditto.
26674
26675 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26676
26677 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26678
26679 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26680
26681 * config/i386/sse.md (*mov<mode>_internal): Guard
26682 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26683
26684 PR rtl-optimization/59647
26685 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26686 new_rtx into UNSIGNED_FLOAT rtxes.
26687 \f
26688 Copyright (C) 2014 Free Software Foundation, Inc.
26689
26690 Copying and distribution of this file, with or without modification,
26691 are permitted in any medium without royalty provided the copyright
26692 notice and this notice are preserved.