jump.c: Use rtx_sequence
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4 local "seq" with a checked cast, and use methods of rtx_sequence
5 to clarify the code.
6
7 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8
9 * function.c (contains): Introduce local "seq" for PATTERN (insn),
10 with a checked cast, in the region for where we know it's a
11 SEQUENCE. Use methods of rtx_sequence.
12
13 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14
15 * final.c (get_attr_length_1): Replace GET_CODE check with a
16 dyn_cast, introducing local "seq" and the use of methods of
17 rtx_sequence.
18 (shorten_branches): Likewise, introducing local "body_seq".
19 Strengthen local "inner_insn" from rtx to rtx_insn *.
20 (reemit_insn_block_notes): Replace GET_CODE check with a
21 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22 Use methods of rtx_sequence.
23 (final_scan_insn): Likewise, introducing local "seq" for when
24 "body" is known to be a SEQUENCE, using its methods.
25
26 2014-08-27 David Malcolm <dmalcolm@redhat.com>
27
28 * except.c (can_throw_external): Strengthen local "seq" from rtx
29 to rtx_sequence *. Use methods of rtx_sequence.
30 (insn_nothrow_p): Likewise.
31
32 2014-08-27 David Malcolm <dmalcolm@redhat.com>
33
34 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
35 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
36 Use methods of rtx_sequence.
37 (scan_trace): Likewise for local "pat".
38
39 2014-08-27 David Malcolm <dmalcolm@redhat.com>
40
41 * coretypes.h (class rtx_sequence): Add forward declaration.
42 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
43 invariant: GET_CODE (X) == SEQUENCE.
44 (is_a_helper <rtx_sequence *>::test): New.
45 (is_a_helper <const rtx_sequence *>::test): New.
46 (rtx_sequence::len): New.
47 (rtx_sequence::element): New.
48 (rtx_sequence::insn): New.
49
50 2014-08-27 David Malcolm <dmalcolm@redhat.com>
51
52 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
53 rtx_insn_list **.
54 (alloc_INSN_LIST): Strengthen return type from rtx to
55 rtx_insn_list *.
56 (copy_INSN_LIST): Likewise for return type and param.
57 (concat_INSN_LIST): Likewise for both params and return type.
58 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
59 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
60 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
61 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
62
63 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
64 "implicit_sets", "control_uses", "clobbers" from rtx to
65 rtx_insn_list *.
66 (struct deps_desc): Likewise for fields "pending_read_insns",
67 "pending_write_insns", "pending_jump_insns",
68 "last_pending_memory_flush", "last_function_call",
69 "last_function_call_may_noreturn", "sched_before_next_call",
70 "sched_before_next_jump".
71 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
72 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
73
74 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
75 from rtx to rtx_insn_list *.
76 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
77 rtx_insn_list *.
78
79 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
80 to rtx_insn_list **.
81 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
82 rtx_insn_list *.
83 (queue_insn): Likewise for local "link".
84 (struct haifa_saved_data): Strengthen field "insn_queue" from
85 rtx * to rtx_insn_list **.
86 (save_backtrack_point): Update allocation of save->insn_queue to
87 reflect the strengthening of elements from rtx to rtx_insn_list *.
88 (queue_to_ready): Strengthen local "link" from rtx to
89 rtx_insn_list *; use methods "next" and "insn" when traversing the
90 list.
91 (early_queue_to_ready): Likewise for locals "link", "next_link",
92 "prev_link".
93 (schedule_block): Update allocation of insn_queue to reflect the
94 strengthening of elements from rtx to rtx_insn_list *. Strengthen
95 local "link" from rtx to rtx_insn_list *, and use methods when
96 working it.
97 (add_to_speculative_block): Strengthen locals "twins" and
98 "next_node" from rtx to rtx_insn_list *, and use methods when
99 working with them. Strengthen local "twin" from rtx to
100 rtx_insn *, eliminating a checked cast.
101 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
102 from rtx to rtx_insn_list *, and use methods when working with
103 them.
104
105 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
106 from rtx to rtx_insn_list *, adding a checked cast.
107 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
108 rtx_insn_list **.
109 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
110 "newlink" from rtx to rtx_insn_list *. Strengthen local
111 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
112 from rtx to rtx_insn *.
113 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
114 from rtx to rtx_insn_list *. Use methods of the latter class.
115 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
116 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
117 (remove_free_INSN_LIST_node): Strengthen return type and local
118 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
119 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
120 rtx_insn_list *, using "insn" method.
121
122 * sched-deps.c (add_dependence_list): Strengthen param "list"
123 from rtx to rtx_insn_list *, and use methods when working with it.
124 (add_dependence_list_and_free): Strengthen param "listp" from
125 rtx * to rtx_insn_list **.
126 (remove_from_dependence_list): Strenghten param "listp" from rtx *
127 to rtx_insn_list **, and use methods when working with *listp.
128 (remove_from_both_dependence_lists): Strengthen param "listp" from
129 rtx * to rtx_insn_list **
130 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
131 to rtx_insn_list **. Eliminate local "link", in favor of two new
132 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
133 respectively.
134 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
135 by introducing local "cond_deps".
136 (remove_from_deps): Strengthen param "insn" from rtx to
137 rtx_insn *.
138
139 * sched-rgn.c (concat_insn_mem_list): Strengthen param
140 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
141 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
142 Use methods of rtx_insn_list.
143
144 * store-motion.c (struct st_expr): Strengthen fields
145 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
146 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
147 rtx_insn_list *.
148 (find_moveable_store): Split out "tmp" into multiple more-tightly
149 scoped locals. Use methods of rtx_insn_list *.
150 (compute_store_table): Strengthen local "tmp" from rtx to
151 rtx_insn *. Use methods of rtx_insn_list *.
152
153 2014-08-27 David Malcolm <dmalcolm@redhat.com>
154
155 * coretypes.h (class rtx_insn_list): Add forward declaration.
156 * rtl.h (class rtx_insn_list): New subclass of rtx_def
157 (is_a_helper <rtx_insn_list *>::test): New.
158 (rtx_insn_list::next): New.
159 (rtx_insn_list::insn): New.
160 (gen_rtx_INSN_LIST): Add prototype.
161 * emit-rtl.c (gen_rtx_INSN_LIST): New.
162 * gengenrtl.c (special_rtx): Add INSN_LIST.
163
164 2014-08-27 David Malcolm <dmalcolm@redhat.com>
165
166 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
167 "prev" from rtx to rtx_insn *.
168
169 2014-08-27 David Malcolm <dmalcolm@redhat.com>
170
171 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
172 functions. Require merely an rtx for now, not an rtx_insn *.
173 (BLOCK_FOR_INSN): Likewise.
174 (INSN_LOCATION): Likewise.
175 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
176
177 2014-08-27 David Malcolm <dmalcolm@redhat.com>
178
179 * rtl.h (PATTERN): Convert this macro into a pair of inline
180 functions, for now, requiring const_rtx and rtx.
181
182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
183
184 * target.def (unwind_emit): Strengthen param "insn" from rtx to
185 rtx_insn *.
186 (final_postscan_insn): Likewise.
187 (adjust_cost): Likewise.
188 (adjust_priority): Likewise.
189 (variable_issue): Likewise.
190 (macro_fusion_pair_p): Likewise.
191 (dfa_post_cycle_insn): Likewise.
192 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
193 (first_cycle_multipass_issue): Likewise.
194 (dfa_new_cycle): Likewise.
195 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
196 (speculate_insn): Likewise for param "insn".
197 (gen_spec_check): Likewise for params "insn" and "label".
198 (get_insn_spec_ds): Likewise for param "insn".
199 (get_insn_checked_ds): Likewise.
200 (dispatch_do): Likewise.
201 (dispatch): Likewise.
202 (cannot_copy_insn_p): Likewise.
203 (invalid_within_doloop): Likewise.
204 (legitimate_combined_insn): Likewise.
205 (needed): Likewise.
206 (after): Likewise.
207
208 * doc/tm.texi: Automatically updated to reflect changes to
209 target.def.
210
211 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
212 working with insn.
213 (schedule_block): Likewise.
214 (sched_init): Likewise.
215 (sched_speculate_insn): Strengthen param "insn" from rtx to
216 rtx_insn *.
217 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
218 working with insn.
219 * hooks.c (hook_bool_rtx_true): Rename to...
220 hook_bool_rtx_insn_true): ...this, and strengthen first param from
221 rtx to rtx_insn *.
222 (hook_constcharptr_const_rtx_null): Rename to...
223 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
224 first param from const_rtx to const rtx_insn *.
225 (hook_bool_rtx_int_false): Rename to...
226 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
227 param from rtx to rtx_insn *.
228 (hook_void_rtx_int): Rename to...
229 (hook_void_rtx_insn_int): ...this, and strengthen first param from
230 rtx to rtx_insn *.
231
232 * hooks.h (hook_bool_rtx_true): Rename to...
233 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
234 rtx to rtx_insn *.
235 (hook_bool_rtx_int_false): Rename to...
236 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
237 param from rtx to rtx_insn *.
238 (hook_void_rtx_int): Rename to...
239 (hook_void_rtx_insn_int): ...this, and strengthen first param from
240 rtx to rtx_insn *.
241 (hook_constcharptr_const_rtx_null): Rename to...
242 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
243 first param from const_rtx to const rtx_insn *.
244
245 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
246 and local "prev" from rtx to rtx_insn *.
247
248 * sched-int.h (sched_speculate_insn): Strengthen first param from
249 rtx to rtx_insn *.
250
251 * sel-sched.c (create_speculation_check): Likewise for local "label".
252 * targhooks.c (default_invalid_within_doloop): Strengthen param
253 "insn" from const_rtx to const rtx_insn *.
254 * targhooks.h (default_invalid_within_doloop): Strengthen param
255 from const_rtx to const rtx_insn *.
256
257 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
258 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
259
260 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
261 "insn".
262 (arc_invalid_within_doloop): Likewise, with const.
263
264 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
265 (arm_cannot_copy_insn_p): Likewise for param "insn".
266 (arm_unwind_emit): Likewise.
267
268 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
269 "dep_insn".
270
271 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
272 (c6x_variable_issue): Likewise. Removed now-redundant checked
273 cast.
274 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
275
276 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
277 Likewise for param "insn".
278 (epiphany_mode_after): Likewise.
279 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
280 params "insn", "dep_insn".
281 (epiphany_mode_needed): Likewise for param "insn".
282 (epiphany_mode_after): Likewise.
283
284 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
285 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
286 (ix86_avx_u128_mode_needed): Likewise.
287 (ix86_i387_mode_needed): Likewise.
288 (ix86_mode_needed): Likewise.
289 (ix86_avx_u128_mode_after): Likewise.
290 (ix86_mode_after): Likewise.
291 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
292 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
293 (ix86_adjust_priority): Likewise for param "insn".
294 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
295 (do_dispatch): Likewise.
296 (has_dispatch): Likewise.
297 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
298
299 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
300 reflect renaming of default hook implementation from
301 hook_constcharptr_const_rtx_null to
302 hook_constcharptr_const_rtx_insn_null.
303 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
304 rtx to rtx_insn *.
305 (ia64_variable_issue): Likewise for param "insn".
306 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
307 (ia64_dfa_new_cycle): Likewise.
308 (ia64_get_insn_spec_ds): Likewise.
309 (ia64_get_insn_checked_ds): Likewise.
310 (ia64_speculate_insn): Likewise.
311 (ia64_gen_spec_check): Likewise for params "insn", "label".
312 (ia64_asm_unwind_emit): Likewise for param "insn".
313
314 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
315
316 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
317 "insn", "def_insn".
318 (m68k_sched_variable_issue): Likewise for param "insn".
319
320 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
321 "def_insn".
322
323 * config/microblaze/microblaze.c (microblaze_adjust_cost):
324 Likewise for params "insn", "dep".
325
326 * config/mips/mips.c (mips_adjust_cost): Likewise.
327 (mips_variable_issue): Likewise for param "insn".
328 (mips_final_postscan_insn): Likewise.
329
330 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
331 for params "insn", "dep".
332
333 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
334 "dep_insn".
335 (pa_adjust_priority): Likewise for param "insn".
336
337 * config/picochip/picochip.c (picochip_sched_adjust_cost):
338 Likewise for params "insn", "dep_insn".
339
340 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
341 param "insn".
342 (rs6000_variable_issue): Likewise.
343 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
344 (rs6000_debug_adjust_cost): Likewise.
345 (rs6000_adjust_priority): Likewise for param "insn".
346 (rs6000_use_sched_lookahead_guard): Likewise.
347 (get_next_active_insn): Likewise for return type and both params.
348 (redefine_groups): Likewise for params "prev_head_insn", "tail"
349 and locals "insn", "next_insn".
350 (pad_groups): Likewise.
351
352 * config/s390/s390.c (s390_adjust_priority): Likewise for param
353 "insn".
354 (s390_cannot_copy_insn_p): Likewise.
355 (s390_sched_variable_issue): Likewise for third param, eliminating
356 checked cast.
357 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
358 default hook implementation from hook_constcharptr_const_rtx_null
359 to hook_constcharptr_const_rtx_insn_null.
360
361 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
362 from rtx to rtx_insn *.
363 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
364 (sh_variable_issue): Likewise for param "insn".
365 (sh_dfa_new_cycle): Likewise.
366 (sh_mode_needed): Likewise.
367 (sh_mode_after): Likewise.
368
369 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
370 params "insn", "dep_insn".
371 (hypersparc_adjust_cost): Likewise.
372 (sparc_adjust_cost): Likewise.
373
374 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
375 param, eliminated checked cast.
376 (spu_sched_adjust_cost): Likewise for first and third params.
377
378 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
379 params "insn" and "dep_insn" from rtx to rtx_insn *.
380
381 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
382
383 2014-08-27 David Malcolm <dmalcolm@redhat.com>
384
385 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
386 (set_is_load_p): ...this, updating to work on a SET pattern rather
387 than an insn.
388 (is_store_insn): Rename to...
389 (set_is_store_p): ...this, updating to work on a SET pattern
390 rather than an insn.
391 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
392 top of function to where it is needed. Rewrite the bogus
393 condition that checks for "insn" and "dep" being PARALLEL to
394 instead use single_set, introducing locals "insn_set" and
395 "dep_set". Given that we only ever returned "cost" for a non-pair
396 of SETs, bail out early if we don't have a pair of SET.
397 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
398 use the new locals "insn_set" and "dep_set", and update calls to
399 is_load_insn and is_store_insn to be calls to set_is_load_p and
400 set_is_store_p.
401
402 2014-08-27 Guozhi Wei <carrot@google.com>
403
404 PR target/62262
405 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
406 amount before using it.
407
408 2014-08-27 Richard Biener <rguenther@suse.de>
409
410 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
411 get_maxval_strlen inside a more useful API.
412 (gimple_fold_builtin_with_strlen): Remove and fold into ...
413 (gimple_fold_builtin): ... caller.
414 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
415 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
416 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
417 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
418 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
419 gimple_fold_builtin_sprintf): Adjust to compute maxval
420 themselves.
421
422 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
423
424 PR other/62248
425 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
426
427 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
428 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
429 Anna Tikhonova <anna.tikhonova@intel.com>
430 Ilya Tocar <ilya.tocar@intel.com>
431 Andrey Turetskiy <andrey.turetskiy@intel.com>
432 Ilya Verbin <ilya.verbin@intel.com>
433 Kirill Yukhin <kirill.yukhin@intel.com>
434 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
435
436 * config/i386/sse.md
437 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
438 Use `concat_tg_mode' attribute to determine asm register size.
439
440 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
442 Anna Tikhonova <anna.tikhonova@intel.com>
443 Ilya Tocar <ilya.tocar@intel.com>
444 Andrey Turetskiy <andrey.turetskiy@intel.com>
445 Ilya Verbin <ilya.verbin@intel.com>
446 Kirill Yukhin <kirill.yukhin@intel.com>
447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
448
449 * config/i386/sse.md
450 (define_mode_iterator VI48_AVX512VL): New.
451 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
452 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
453 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
454 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
455 with VI1): Change mode iterator.
456 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
457 with VI_ULOADSTORE_BW_AVX512VL): New.
458 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
459 with VI_ULOADSTORE_F_AVX512VL): Ditto.
460 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
461 with VI1): Change mode iterator.
462 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
463 with VI_ULOADSTORE_BW_AVX512VL): New.
464 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
465 with VI_ULOADSTORE_F_AVX512VL): Ditto.
466 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
467 with VI1): Change mode iterator.
468 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
469 with VI_ULOADSTORE_BW_AVX512VL): New.
470 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
471 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
472 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
473 (define_insn "<avx512>_storedqu<mode>_mask" with
474 VI48_AVX512VL): New.
475 (define_insn "<avx512>_storedqu<mode>_mask" with
476 VI12_AVX512VL): Ditto.
477
478 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
480 Anna Tikhonova <anna.tikhonova@intel.com>
481 Ilya Tocar <ilya.tocar@intel.com>
482 Andrey Turetskiy <andrey.turetskiy@intel.com>
483 Ilya Verbin <ilya.verbin@intel.com>
484 Kirill Yukhin <kirill.yukhin@intel.com>
485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
486
487 * config/i386/sse.md
488 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
489 (define_mode_iterator VI48_AVX512BW): New.
490 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
491 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
492 with VI48_AVX2_48_AVX512F): New.
493 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
494 with VI2_AVX512VL): Ditto.
495
496 2014-08-27 Richard Biener <rguenther@suse.de>
497
498 PR middle-end/62239
499 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
500 (fold_builtin_3): Do not fold strcat_chk here.
501 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
502 from builtins.c.
503 (gimple_fold_builtin): Fold strcat_chk here.
504
505 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
506
507 * dwarf2out.h (dwarf2out_decl): Remove prototype.
508 * dwarf2out.c (dwarf2out_decl): Make static.
509
510 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
511
512 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
513
514 2014-08-26 David Malcolm <dmalcolm@redhat.com>
515
516 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
517 from rtx to rtx_insn *.
518 (cselib_lookup_from_insn): Likewise for final param.
519 (cselib_subst_to_values_from_insn): Likewise.
520 (cselib_add_permanent_equiv): Likewise.
521
522 * cselib.c (cselib_current_insn): Likewise for this variable.
523 (cselib_subst_to_values_from_insn): Likewise for param "insn".
524 (cselib_lookup_from_insn): Likewise.
525 (cselib_add_permanent_equiv): Likewise for param "insn" and local
526 "save_cselib_current_insn".
527 (cselib_process_insn): Replace use of NULL_RTX with NULL.
528
529 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
530 from rtx to rtx_insn *.
531
532 2014-08-26 David Malcolm <dmalcolm@redhat.com>
533
534 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
535 rtx_insn *.
536
537 2014-08-26 David Malcolm <dmalcolm@redhat.com>
538
539 * df.h (df_dump_insn_problem_function): Strengthen first param of
540 this callback from const_rtx to const rtx_insn *.
541 (struct df_insn_info): Strengthen field "insn" from rtx to
542 rtx_insn *.
543 (DF_REF_INSN): Eliminate this function, reinstating the older
544 macro definition.
545 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
546 (df_reg_defined): Likewise.
547 (df_find_use): Likewise.
548 (df_reg_used): Likewise.
549 (df_dump_insn_top): Strengthen param 1 from const_rtx to
550 const rtx_insn *.
551 (df_dump_insn_bottom): Likewise.
552 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
553 (df_insn_debug_regno): Likewise.
554 (debug_df_insn): Likewise.
555 (df_rd_simulate_one_insn): Likewise for param 2.
556 (df_word_lr_simulate_defs): Likewise for param 1.
557 (df_word_lr_simulate_uses): Likewise.
558 (df_md_simulate_one_insn): Likewise for param 2.
559 (df_simulate_find_noclobber_defs): Likewise for param 1.
560 (df_simulate_find_defs): Likewise.
561 (df_simulate_defs): Likewise.
562 (df_simulate_uses): Likewise.
563 (df_simulate_one_insn_backwards): Likewise for param 2.
564 (df_simulate_one_insn_forwards): Likewise.
565 (df_uses_create): Likewise for param 2.
566 (df_insn_create_insn_record): Likewise for param 1.
567 (df_insn_delete): Likewise.
568 (df_insn_rescan): Likewise.
569 (df_insn_rescan_debug_internal): Likewise.
570 (df_insn_change_bb): Likewise.
571 (df_notes_rescan): Likewise.
572 * rtl.h (remove_death): Likewise for param 2.
573 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
574 const rtx_insn *.
575 * sched-int.h (reemit_notes): Strengthen param from rtx to
576 rtx_insn *.
577 * valtrack.h (propagate_for_debug): Likewise for param 1.
578
579 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
580 local "tmp_rtx" from const_rtx to const rtx_insn *.
581 * combine.c (remove_death): Strengthen param "insn" from rtx to
582 rtx_insn *.
583 (move_deaths): Likewise for local "where_dead".
584 * cse.c (delete_trivially_dead_insns): Introduce local
585 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
586 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
587 rtx_insn *.
588 (df_reg_defined): Likewise.
589 (df_find_use): Likewise.
590 (df_reg_used): Likewise.
591 (df_dump_insn_problem_data): Strengthen param "insn" from
592 const_rtx to const rtx_insn *.
593 (df_dump_insn_top): Likewise.
594 (df_dump_insn_bottom): Likewise.
595 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
596 (df_insn_debug_regno): Likewise.
597 (debug_df_insn): Likewise.
598 (DF_REF_INSN): Delete.
599 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
600 from rtx to rtx_insn *.
601 (df_chain_insn_top_dump): Strengthen param "insn" from
602 const_rtx to const rtx_insn *.
603 (df_chain_insn_bottom_dump): Likewise.
604 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
605 rtx_insn *.
606 (df_word_lr_simulate_uses): Likewise.
607 (df_print_note): Likewise.
608 (df_remove_dead_and_unused_notes): Likewise.
609 (df_set_unused_notes_for_mw): Likewise.
610 (df_set_dead_notes_for_mw): Likewise.
611 (df_create_unused_note): Likewise.
612 (df_simulate_find_defs): Likewise.
613 (df_simulate_find_uses): Likewise.
614 (df_simulate_find_noclobber_defs): Likewise.
615 (df_simulate_defs): Likewise.
616 (df_simulate_uses): Likewise.
617 (df_simulate_one_insn_backwards): Likewise.
618 (df_simulate_one_insn_forwards): Likewise.
619 (df_md_simulate_one_insn): Likewise.
620 * df-scan.c (df_uses_create): Likewise.
621 (df_insn_create_insn_record): Likewise.
622 (df_insn_delete): Likewise.
623 (df_insn_rescan): Likewise.
624 (df_insn_rescan_debug_internal): Likewise.
625 (df_insn_change_bb): Likewise.
626 (df_notes_rescan): Likewise.
627 (df_refs_add_to_chains): Likewise.
628 (df_insn_refs_verify): Likewise.
629 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
630 when invoking df_insn_delete.
631 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
632 (set_unique_reg_note): Add checked cast.
633 * final.c (cleanup_subreg_operands): Likewise.
634 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
635 "insn" from rtx to rtx_insn *.
636 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
637 "last" from rtx to rtx_insn *.
638 * ira-emit.c (change_regs_in_insn): New function.
639 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
640 Invoke change_regs_in_insn rather than change_regs.
641 * ira.c (update_equiv_regs): Strengthen locals "insn",
642 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
643 for_each_rtx_in_insn rather than for_each_rtx.
644 * recog.c (confirm_change_group): Add checked casts.
645 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
646 Add checked cast.
647 (peep2_fill_buffer): Add checked cast.
648 * rtlanal.c (remove_note): Likewise.
649 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
650 locals "next" "end" from rtx to rtx_insn *.
651
652 2014-08-26 David Malcolm <dmalcolm@redhat.com>
653
654 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
655 to rtx_insn *.
656 (struct reg_use_data): Likewise for field "insn".
657 (insn_cost): Likewise for param.
658 (real_insn_for_shadow): Likewise for return type and param.
659 (increase_insn_priority): Likewise for param 1.
660 (debug_dependencies): Likewise for both params.
661
662 * haifa-sched.c (insn_delay): Likewise for param "insn".
663 (real_insn_for_shadow): Likewise for return type and param "insn".
664 (update_insn_after_change): Likewise for param "insn".
665 (recompute_todo_spec): Likewise for param "next" and locals "pro",
666 "other".
667 (insn_cost): Likewise for param "insn".
668 (increase_insn_priority): Likewise.
669 (calculate_reg_deaths): Likewise.
670 (setup_insn_reg_pressure_info): Likewise.
671 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
672 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
673 (model_recompute): Likewise.
674 (must_restore_pattern_p): Likewise for param "next".
675 (model_excess_cost): Likewise for param "insn".
676 (queue_remove): Likewise.
677 (adjust_priority): Likewise for param "prev".
678 (update_register_pressure): Likewise for param "insn".
679 (setup_insn_max_reg_pressure): Likewise for local "insn".
680 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
681 (model_add_to_schedule): Likewise.
682 (model_reset_queue_indices): Likewise for local "insn".
683 (unschedule_insns_until): Strengthen local "recompute_vec" from
684 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
685 "con" from rtx to rtx_insn *.
686 (restore_last_backtrack_point): Likewise for both locals "x". Add
687 checked casts.
688 (estimate_insn_tick): Likewise for param "insn".
689 (commit_schedule): Likewise for params "prev_head", "tail" and
690 local "x".
691 (verify_shadows): Likewise for locals "i1", "i2".
692 (dump_insn_stream): Likewise for params "head", "tail" and locals
693 "next_tail", "insn".
694 (schedule_block): Likewise for locals "insn", "x". Add a checked
695 cast.
696 (fix_inter_tick): Likewise for params "head", "tail".
697 (create_check_block_twin): Likewise for local "jump".
698 (haifa_change_pattern): Likewise for param "insn".
699 (haifa_speculate_insn): Likewise.
700 (dump_new_block_header): Likewise for params "head", "tail".
701 (fix_jump_move): Likewise for param "jump".
702 (move_block_after_check): Likewise.
703 (sched_init_insn_luid): Likewise for param "insn".
704 (sched_init_luids): Likewise for local "insn".
705 (insn_luid): Likewise for param "insn".
706 (init_h_i_d): Likewise.
707 (haifa_init_h_i_d): Likewise for local "insn".
708 (haifa_init_insn): Likewise for param "insn".
709 * sched-deps.c (add_dependence): Likewise for local "real_pro",
710 "other".
711 (create_insn_reg_use): Likewise for param "insn".
712 (setup_insn_reg_uses): Likewise. Add a checked cast.
713 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
714 "tail" from rtx to rtx_insn *.
715 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
716 "insn", "next_tail".
717
718 2014-08-26 David Malcolm <dmalcolm@redhat.com>
719
720 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
721 from rtx to rtx_insn *.
722 (model_add_to_schedule): Likewise for locals "start", "end",
723 "iter".
724
725 2014-08-26 David Malcolm <dmalcolm@redhat.com>
726
727 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
728 rtx_insn *.
729 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
730 "to" and locals "insn", "next", "copy". Remove now-redundant
731 checked cast.
732
733 2014-08-26 David Malcolm <dmalcolm@redhat.com>
734
735 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
736 rtx_insn * and param 4 from rtx * to rtx_insn **.
737 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
738 param 2 from rtx * to rtx_insn **.
739
740 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
741 rtx_insn * and final param from rtx * to rtx_insn **.
742
743 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
744 from rtx to rtx_insn *.
745 (try_head_merge_bb): Likewise for both locals named "move_upto".
746 * df-problems.c (can_move_insns_across): Likewise for params
747 "from", "to", "across_from", "across_to" and locals "insn",
748 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
749 rtx_insn **.
750 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
751 from rtx to rtx_insn *.
752 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
753 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
754 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
755 rtx_insn *.
756 (noce_try_abs): Likewise.
757 (noce_get_condition): Likewise for param "jump". Strengthen param
758 "earliest" from rtx * to rtx_insn **.
759 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
760 rtx_insn *.
761 (find_cond_trap): Likewise.
762 (dead_or_predicable): Likewise for local "earliest".
763 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
764 checked cast.
765 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
766 and local "prev". Strengthen param "earliest" from rtx * to
767 rtx_insn **.
768 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
769 Strengthen param "earliest" from rtx * to rtx_insn **.
770
771 2014-08-26 David Malcolm <dmalcolm@redhat.com>
772
773 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
774 "to" and local "insn" from rtx to rtx_insn *.
775
776 2014-08-26 David Malcolm <dmalcolm@redhat.com>
777
778 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
779 from rtx to rtx_insn *.
780 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
781 (code_motion_path_driver): Likewise for local "last_insn".
782 (simplify_changed_insns): Likewise for local "insn".
783
784 2014-08-26 David Malcolm <dmalcolm@redhat.com>
785
786 * rtl.h (push_to_sequence): Strengthen param from rtx to
787 rtx_insn *.
788 (push_to_sequence2): Likewise for both params.
789 (delete_insns_since): Likewise for param.
790 (reorder_insns_nobb): Likewise for all three params.
791 (set_new_first_and_last_insn): Likewise for both params.
792
793 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
794 rtx_insn *. Remove now-redundant cast.
795 (set_last_insn): Likewise.
796
797 * builtins.c (expand_builtin_return): Strengthen local
798 "call_fusage" from rtx to rtx_insn *.
799 * cfgrtl.c (create_basic_block_structure): Likewise for local
800 "after".
801 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
802 "first", "last" and local "insn".
803 (delete_insns_since): Likewise for param "from".
804 (reorder_insns_nobb): Likewise for params "from", "to", "after"
805 and local "x".
806 (push_to_sequence): Likewise for param "first" and local "last".
807 (push_to_sequence2): Likewise for params "first" and "last".
808 * lra.c (emit_add3_insn): Likewise for local "last".
809 (lra_emit_add): Likewise.
810 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
811 "last_insn".
812 (process_address_1): Likewise for locals "insn", last".
813 * modulo-sched.c (ps_first_note): Likewise for return type.
814 * optabs.c (expand_binop_directly): Likewise for param "last".
815
816 2014-08-26 David Malcolm <dmalcolm@redhat.com>
817
818 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
819 to rtx_insn*.
820 * emit-rtl.c (get_last_insn_anywhere): Likewise.
821
822 2014-08-26 David Malcolm <dmalcolm@redhat.com>
823
824 * function.h (struct sequence_stack): Strengthen fields "first"
825 and "last" from rtx to rtx_insn *.
826 (struct emit_status): Likewise for fields "x_first_insn" and
827 "x_last_insn".
828
829 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
830 (set_first_insn): Add checked cast.
831 (get_last_insn): Remove now-redundant checked cast.
832 (set_last_insn): Add checked cast.
833
834 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
835 "saved_first" and "saved_last" from rtx to rtx_insn *.
836
837 2014-08-26 David Malcolm <dmalcolm@redhat.com>
838
839 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
840 (unlink_insn_chain): Strengthen both params from rtx to
841 rtx_insn *.
842
843 * cfgrtl.c (cfg_layout_function_header): Likewise for this
844 variable.
845 (unlink_insn_chain): Likewise for params "first" and "last".
846 Remove now-redundant checked cast.
847 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
848 (fixup_reorder_chain): Strengthen local "insn" from rtx to
849 rtx_insn *.
850 * emit-rtl.c (link_insn_into_chain): Likewise for all three
851 params.
852 (add_insn): Likewise for param "insn" and local "prev".
853 (add_insn_after_nobb): Likewise for both params and local "next".
854 (add_insn_before_nobb): Likewise for both params and local "prev".
855 (add_insn_after): Rename param "after" to "uncast_after",
856 introducing local "after" with another checked cast.
857 (add_insn_before): Rename params "insn" and "before", giving them
858 "uncast_" prefixes, adding the old names back using checked casts.
859 (emit_note_after): Likewise for param "after".
860 (emit_note_before): Likewise for param "before".
861 (emit_label): Add a checked cast.
862
863 2014-08-26 David Malcolm <dmalcolm@redhat.com>
864
865 * cselib.h (cselib_record_sets_hook): Strengthen initial param
866 "insn" from rtx to rtx_insn *.
867
868 * cselib.c (cselib_record_sets_hook): Likewise.
869
870 * var-tracking.c (add_with_sets): Likewise, renaming back from
871 "uncast_insn" to "insn" and eliminating the checked cast from rtx
872 to rtx_insn *.
873
874 2014-08-26 David Malcolm <dmalcolm@redhat.com>
875
876 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
877 and "header_" from rtx to rtx_insn *.
878 (struct basic_block_d): Likewise for field "head_" within "x"
879 field of union basic_block_il_dependent.
880 (BB_HEAD): Drop function...
881 (SET_BB_HEAD): ...and this function in favor of...
882 (BB_HEAD): ...reinstate macro.
883 (BB_END): Drop function...
884 (SET_BB_END): ...and this function in favor of...
885 (BB_END): ...reinstate macro.
886 (BB_HEADER): Drop function...
887 (SET_BB_HEADER): ...and this function in favor of...
888 (BB_HEADER): ...reinstate macro.
889
890 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
891 (fix_crossing_unconditional_branches): Likewise.
892 * caller-save.c (save_call_clobbered_regs): Likewise.
893 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
894 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
895 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
896 (merge_blocks_move_successor_nojumps): Likewise.
897 (outgoing_edges_match): Update use of for_each_rtx to
898 for_each_rtx_in_insn.
899 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
900 (expand_gimple_cond): Likewise.
901 (expand_gimple_tailcall): Likewise.
902 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
903 SET_BB_END.
904 (construct_exit_block): Drop use of SET_BB_END.
905 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
906 rtx_insn *.
907 (delete_insn): Rename param "insn" to "uncast_insn", introducing
908 a new local "insn" with a checked cast to rtx_insn *. Drop use of
909 SET_BB_HEAD and SET_BB_END.
910 (create_basic_block_structure): Drop use of SET_BB_HEAD and
911 SET_BB_END.
912 (rtl_delete_block): Drop use of SET_BB_HEAD.
913 (rtl_split_block): Drop use of SET_BB_END.
914 (emit_nop_for_unique_locus_between): Likewise.
915 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
916 (block_label): Drop use of SET_BB_HEAD.
917 (fixup_abnormal_edges): Drop use of SET_BB_END.
918 (record_effective_endpoints): Drop use of SET_BB_HEADER.
919 (relink_block_chain): Likewise.
920 (fixup_reorder_chain): Drop use of SET_BB_END.
921 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
922 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
923 rtx_insn **. Drop use of SET_BB_HEADER.
924 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
925 SET_BB_HEAD.
926 (BB_HEAD): Delete this function.
927 (SET_BB_HEAD): Likewise.
928 (BB_END): Likewise.
929 (SET_BB_END): Likewise.
930 (BB_HEADER): Likewise.
931 (SET_BB_HEADER): Likewise.
932 * emit-rtl.c (add_insn_after): Rename param "insn" to
933 "uncast_insn", adding a new local "insn" and a checked cast to
934 rtx_insn *. Drop use of SET_BB_END.
935 (remove_insn): Strengthen locals "next" and "prev" from rtx to
936 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
937 (reorder_insns): Drop use of SET_BB_END.
938 (emit_insn_after_1): Strengthen param "first" and locals "last",
939 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
940 (emit_pattern_after_noloc): Add checked cast.
941 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
942 (restore_other_notes): Likewise.
943 (move_insn): Likewise.
944 (sched_extend_bb): Likewise.
945 (fix_jump_move): Likewise.
946 * ifcvt.c (noce_process_if_block): Likewise.
947 (dead_or_predicable): Likewise.
948 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
949 * reg-stack.c (change_stack): Drop use of SET_BB_END.
950 * sel-sched-ir.c (sel_move_insn): Likewise.
951 * sel-sched.c (move_nop_to_previous_block): Likewise.
952
953 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
954 SET_BB_END.
955 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
956
957 2014-08-26 David Malcolm <dmalcolm@redhat.com>
958
959 * basic-block.h (create_basic_block_structure): Strengthen params
960 1 "head" and 2 "end" from rtx to rtx_insn *.
961 * cfgrtl.c (create_basic_block_structure): Likewise.
962 (rtl_create_basic_block): Update casts from void * to rtx to
963 rtx_insn *, so that we can pass them as rtx_insn * to
964 create_basic_block_structure.
965 * sel-sched-ir.c (sel_create_basic_block): Likewise.
966
967 2014-08-26 David Malcolm <dmalcolm@redhat.com>
968
969 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
970 rtx_insn **.
971 (check_for_inc_dec): Strengthen param "insn" from rtx to
972 rtx_insn *.
973
974 * cselib.h (cselib_process_insn): Likewise.
975
976 * cselib.c (cselib_record_sets): Likewise.
977 (cselib_process_insn): Likewise.
978
979 * dse.c (struct insn_info): Likewise for field "insn".
980 (check_for_inc_dec_1): Likewise for local "insn".
981 (check_for_inc_dec): Likewise for param "insn".
982 (scan_insn): Likewise.
983 (dse_step1): Likewise for local "insn".
984
985 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
986 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
987
988 2014-08-26 David Malcolm <dmalcolm@redhat.com>
989
990 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
991 from rtx to rtx_insn *.
992 (DEP_PRO): Delete this function and...
993 (SET_DEP_PRO): ...this function in favor of...
994 (DEP_PRO): ...reinstate this macro.
995 (DEP_CON): Delete this function and...
996 (SET_DEP_CON): ...this function in favor of...
997 (DEP_CON): ...reinstate this old macro.
998 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
999 (init_dep): Likewise.
1000 (set_priorities): Likewise for both params.
1001 (sd_copy_back_deps): Likewise for params 1 and 2.
1002
1003 * haifa-sched.c (priority): Likewise for param "insn" and local
1004 "next".
1005 (set_priorities): Likewise for params "head" and "tail" and local
1006 "insn".
1007 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1008 local "consumer".
1009 (add_to_speculative_block): Add a checked cast.
1010 (create_check_block_twin): Drop use of SET_DEP_CON.
1011 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1012 rtx to rtx_insn *.
1013
1014 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1015 Drop use of SET_DEP_PRO
1016 (init_dep): Strengthen params "pro" and "con" from rtx to
1017 rtx_insn *.
1018 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1019 use of SET_DEP_CON.
1020 (DEP_PRO): Delete.
1021 (DEP_CON): Delete.
1022 (SET_DEP_PRO): Delete.
1023 (SET_DEP_CON): Delete.
1024
1025 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1026
1027 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1028 from rtx to rtx_insn *.
1029 (VINSN_INSN_RTX): Eliminate rvalue function and...
1030 (SET_VINSN_INSN): ...lvalue function in favor of...
1031 (VINSN_INSN_RTX): reinstate this old macro.
1032
1033 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1034 in favor of VINSN_INSN_RTX.
1035 (VINSN_INSN_RTX): Delete this function.
1036 (SET_VINSN_INSN_RTX): Likewise.
1037
1038 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1039
1040 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1041 (BND_TO): Delete this function and...
1042 (SET_BND_TO): ...this functions in favor of...
1043 (BND_TO): ...reinstating this macro.
1044 (struct _fence): Strengthen field "executing_insns" from
1045 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1046 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1047 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1048 and param "insn" from rtx to insn_t.
1049 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1050 rtx_insn *.
1051
1052 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1053 vec<rtx_insn *> .
1054 (rtx_vec_t): Likewise.
1055 (struct sched_deps_info_def): Strengthen param of "start_insn"
1056 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1057 "note_mem_dep" callback and first param of "note_dep" callback.
1058
1059 * haifa-sched.c (add_to_speculative_block): Strengthen param
1060 "insn" from rtx to rtx_insn *.
1061 (clear_priorities): Likewise.
1062 (calc_priorities): Likewise for local "insn".
1063
1064 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1065 Remove redundant checked cast.
1066 (haifa_note_mem_dep): Likewise for param "pending_insn".
1067 (haifa_note_dep): Likewise for param "elem".
1068 (note_mem_dep): Likewise for param "e".
1069 (sched_analyze_1): Add checked casts.
1070 (sched_analyze_2): Likewise.
1071
1072 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1073 from rtx to rtx_insn *.
1074 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1075 from vec<rtx> * to vec<rtx_insn *> *.
1076
1077 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1078 scaffolding.
1079 (flist_add): Strengthen param "executing_insns" from
1080 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1081 (advance_deps_context): Remove now-redundant checked cast.
1082 (init_fences): Replace uses of NULL_RTX with NULL.
1083 (merge_fences): Strengthen params "last_scheduled_insn" and
1084 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1085 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1086 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1087 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1088 an instruction, rather than doing double-duty as a pattern.
1089 (return_nop_to_pool): Update for change of insn_t.
1090 (deps_init_id): Remove now-redundant checked cast.
1091 (struct sched_scan_info_def): Strengthen param of "init_insn"
1092 callback from rtx to insn_t.
1093 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1094 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1095 NULL.
1096 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1097 "end" from rtx to rtx_insn *.
1098 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1099 (rtx insn_rtx, bool force_unique_p)
1100 (BND_TO): Delete function.
1101 (SET_BND_TO): Delete function.
1102
1103 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1104 rtx to rtx_insn *.
1105 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1106 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1107 rtx to rtx_insn *.
1108 (undo_transformations): Likewise for param "insn".
1109 (update_liveness_on_insn): Likewise.
1110 (compute_live_below_insn): Likewise for param "insn" and local
1111 "succ".
1112 (update_data_sets): Likewise for param "insn".
1113 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1114 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1115 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1116 rtx_insn *.
1117 (move_cond_jump): Likewise for param "insn".
1118 (move_cond_jump): Drop use of SET_BND_TO.
1119 (compute_av_set_on_boundaries): Likewise.
1120 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1121 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1122 from rtx to rtx_insn *.
1123 (maybe_emit_renaming_copy): Likewise for param "insn".
1124 (maybe_emit_speculative_check): Likewise.
1125 (handle_emitting_transformations): Likewise.
1126 (remove_insn_from_stream): Likewise.
1127 (code_motion_process_successors): Strengthen local "succ" from rtx
1128 to insn_t.
1129
1130 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1131
1132 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1133 ilist_t, not _xlist_t;
1134 (ILIST_INSN): Define in terms of new union field "insn".
1135 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1136 _XLIST_NEXT.
1137 (struct _list_node): Add new field "insn" to the union, of type
1138 insn_t.
1139 (ilist_add): Replace macro with an inline function, requiring an
1140 insn_t.
1141 (ilist_remove): Define this macro directly in terms of
1142 _list_remove, rather than indirectly via _xlist_remove.
1143 (ilist_clear): Likewise, in terms of _list_clear rather than
1144 _xlist_clear.
1145 (ilist_is_in_p): Replace macro with an inline function, requiring
1146 an insn_t.
1147 (_list_iter_cond_insn): New function.
1148 (ilist_iter_remove): Define this macro directly in terms of
1149 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1150 (ilist_iterator): Define directly in terms of _list_iterator
1151 rather than indirectly through _xlist_iterator.
1152 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1153 than in terms of _FOR_EACH_X.
1154 (FOR_EACH_INSN_1): Likewise.
1155
1156 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1157
1158 PR target/60606
1159 PR target/61330
1160 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1161 DECL_HARD_REGISTER and return for invalid register specifications.
1162 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1163 DECL_HARD_REGISTER, call expand_one_error_var.
1164 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1165 CC_REGNUM with non-MODE_CC modes.
1166 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1167
1168 2014-08-26 Marek Polacek <polacek@redhat.com>
1169
1170 PR c/61271
1171 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1172
1173 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1174
1175 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1176 qi cost; add di cost.
1177 (cortexa57_addrcost_table): Likewise.
1178
1179 2014-08-26 Marek Polacek <polacek@redhat.com>
1180
1181 PR c/61271
1182 * expr.c (is_aligning_offset): Remove logical not.
1183
1184 2014-08-26 Marek Polacek <polacek@redhat.com>
1185
1186 PR c/61271
1187 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1188 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1189
1190 2014-08-26 Richard Biener <rguenther@suse.de>
1191
1192 PR tree-optimization/62175
1193 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1194 expand possibly trapping operations.
1195
1196 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1197
1198 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1199 "insn" from rtx to rtx_insn *.
1200 (permute_load): Likewise for param "insn".
1201 (permute_store): Likewise.
1202 (handle_special_swappables): Likewise for local "insn".
1203 (replace_swap_with_copy): Likewise for locals "insn" and
1204 "new_insn".
1205 (rs6000_analyze_swaps): Likewise for local "insn".
1206
1207 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1208
1209 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1210 to rtx_insn *.
1211
1212 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1213
1214 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1215 "note_list" from rtx to rtx_insn *.
1216 (BB_NOTE_LIST): Replace this function and...
1217 (SET_BB_NOTE_LIST): ...this function with...
1218 (BB_NOTE_LIST): ...the former macro implementation.
1219
1220 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1221 local "from_start" from rtx to rtx_insn *. Strengthen param
1222 "to_endp" from rtx * to rtx_insn **.
1223
1224 * haifa-sched.c (concat_note_lists): Likewise.
1225 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1226 BB_NOTE_LIST.
1227 (sel_restore_notes): Likewise.
1228 (move_bb_info): Likewise.
1229 (BB_NOTE_LIST): Delete this function.
1230 (SET_BB_NOTE_LIST): Delete this function.
1231 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1232 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1233
1234 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1235
1236 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1237 from rtx * to rtx_insn **.
1238 (reorder2): Likewise.
1239 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1240 from rtx to rtx_insn *.
1241
1242 * doc/tm.texi: Update mechanically for above change to target.def.
1243
1244 * sched-int.h (note_list): Strengthen this variable from rtx to
1245 rtx_insn *.
1246 (remove_notes): Likewise for both params.
1247 (restore_other_notes): Likewise for return type and first param.
1248 (struct ready_list): Strengthen field "vec" from rtx * to
1249 rtx_insn **.
1250 (struct dep_replacement): Strenghten field "insn" from rtx to
1251 rtx_insn *.
1252 (struct deps_desc): Likewise for fields "last_debug_insn",
1253 "last_args_size".
1254 (struct haifa_sched_info): Likewise for callback field
1255 "can_schedule_ready_p"'s param, for first param of "new_ready"
1256 callback field, for both params of "rank" callback field, for
1257 first field of "print_insn" callback field (with a const), for
1258 both params of "contributes_to_priority" callback, for param
1259 of "insn_finishes_block_p" callback, for fields "prev_head",
1260 "next_tail", "head", "tail", for first param of "add_remove_insn"
1261 callback, for first param of "begin_schedule_ready" callback, for
1262 both params of "begin_move_insn" callback, and for second param
1263 of "advance_target_bb" callback.
1264 (add_dependence): Likewise for params 1 and 2.
1265 (sched_analyze): Likewise for params 2 and 3.
1266 (deps_analyze_insn): Likewise for param 2.
1267 (ready_element): Likewise for return type.
1268 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1269 (try_ready): Strenghten param from rtx to rtx_insn *.
1270 (sched_emit_insn): Likewise for return type.
1271 (record_delay_slot_pair): Likewise for params 1 and 2.
1272 (add_delay_dependencies): Likewise for param.
1273 (contributes_to_priority): Likewise for both params.
1274 (find_modifiable_mems): Likewise.
1275
1276 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1277 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1278 "first_older_only_insn" from rtx to rtx_insn *.
1279 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1280 rtx_insn **.
1281
1282 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1283 "last_scheduled_iter0" from rtx to rtx_insn *.
1284 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1285 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1286 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1287 "insn" from rtx to rtx_insn *.
1288 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1289 rtx_insn **.
1290 (c6x_sched_reorder2): Strengthen param "ready" and locals
1291 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1292 "insn" from rtx to rtx_insn *.
1293 (c6x_variable_issue): Add a checked cast when assigning from insn
1294 to ss.last_scheduled_iter0.
1295 (split_delayed_branch): Strengthen param "insn" and local "i1"
1296 from rtx to rtx_insn *.
1297 (split_delayed_nonbranch): Likewise.
1298 (undo_split_delayed_nonbranch): Likewise for local "insn".
1299 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1300 "entry_after", "end_packet", "head_insn", "tail_insn",
1301 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1302 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1303 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1304 but add a checked cast on loop->start_label. Consolidate calls to
1305 avoid assigning result of gen_spkernel to "insn", now an
1306 rtx_insn *.
1307
1308 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1309 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1310 rtx to rtx_insn *.
1311 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1312 rtx_insn **. Strengthen locals "top", "next" from rtx to
1313 rtx_insn *.
1314 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1315 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1316 (add_parameter_dependencies): Strengthen params "call", "head" and
1317 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1318 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1319 (add_dependee_for_func_arg): Likewise for param "arg" and local
1320 "insn".
1321 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1322 "tail" and locals "insn", "first_arg".
1323
1324 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1325 for params "head", "tail" and locals "insn", "next", "next_tail".
1326 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1327 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1328 "insn", "lowest", "highest" from rtx to rtx_insn *.
1329 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1330 rtx_insn **.
1331 (ia64_sched_reorder2): Likewise.
1332
1333 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1334 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1335 from rtx * to rtx_insn **.
1336 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1337 rtx_insn **.
1338 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1339 rtx_insn *.
1340 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1341 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1342 to rtx_insn *.
1343
1344 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1345 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1346 to rtx_insn *.
1347 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1348 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1349 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1350 rtx_insn **.
1351 (vr4130_reorder): Likewise.
1352 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1353 rtx to rtx_insn *.
1354 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1355 rtx_insn **.
1356 (mips_sched_reorder): Likewise.
1357 (mips_sched_reorder2): Likewise.
1358
1359 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1360
1361 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1362 Strengthen local "tmp" from rtx to rtx_insn *.
1363 (rs6000_sched_reorder2): Likewise.
1364
1365 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1366 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1367 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1368 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1369
1370 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1371 "tmp2" from rtx to rtx_insn *.
1372 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1373 Strengthen local "insn" from rtx to rtx_insn *.
1374 (ready_reorder): Strengthen param "ready" from rtx * to
1375 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1376 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1377 (sh_reorder2): Likewise.
1378
1379 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1380 local "insn" from rtx to rtx_insn *.
1381
1382 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1383 rtx_insn *.
1384 (scheduled_insns): Strengthen this variable from vec<rtx> to
1385 vec<rtx_insn *>.
1386 (set_modulo_params): Likewise for locals "i1", "i2".
1387 (record_delay_slot_pair): Likewise for params "i1", "i2".
1388 (add_delay_dependencies): Likewise for param "insn".
1389 (cond_clobbered_p): Likewise.
1390 (recompute_todo_spec): Likewise for local "prev".
1391 (last_scheduled_insn): Likewise for this variable.
1392 (nonscheduled_insns_begin): Likewise.
1393 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1394 rtx_insn **.
1395 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1396 rtx_insn *.
1397 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1398 Strengthen local "insn" from rtx to rtx_insn *.
1399 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1400 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1401 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1402 (ready_remove_first): Likewise for return type and local "t".
1403 (ready_element): Likewise for return type.
1404 (ready_remove): Likewise for return type and local "t".
1405 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1406 (check_clobbered_conditions): Strengthen local "x" from rtx to
1407 rtx_insn *, adding a checked cast.
1408 (schedule_insn): Likewise for param "insn".
1409 (remove_notes): Likewise for params "head", "tail" and locals
1410 "next_tail", "insn", "next".
1411 (struct haifa_saved_data): Likewise for fields
1412 "last_scheduled_insn", "nonscheduled_insns_begin".
1413 (save_backtrack_point): Update for change to field "vec" of
1414 struct ready_list.
1415 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1416 rtx_insn **.
1417 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1418 from rtx to rtx_insn *
1419 (resolve_dependencies): Strengthen param "insn" from rtx to
1420 rtx_insn *
1421 (restore_other_notes): Likewise for return type, for param "head"
1422 and local "note_head".
1423 (undo_all_replacements): Likewise for local "insn".
1424 (first_nonscheduled_insn): Likewise for return type and local "insn".
1425 (queue_to_ready): Likewise for local "insn", adding checked casts.
1426 (early_queue_to_ready): Likewise for local "insn".
1427 (debug_ready_list_1): Strengthen local "p" from rtx * to
1428 rtx_insn **.
1429 (move_insn): Strengthen param "insn" and local "note" from rtx to
1430 rtx_insn *
1431 (insn_finishes_cycle_p): Likewise for param "insn".
1432 (max_issue): Likewise for local "insn".
1433 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1434 to rtx_insn **.
1435 (commit_schedule): Strengthen param "prev_head" and local "insn"
1436 from rtx to rtx_insn *
1437 (prune_ready_list): Likewise for local "insn".
1438 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1439 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1440 (set_priorities): Likewise for local "prev_head".
1441 (try_ready): Likewise for param "next".
1442 (fix_tick_ready): Likewise.
1443 (change_queue_index): Likewise.
1444 (sched_extend_ready_list): Update for change to field "vec" of
1445 struct ready_list.
1446 (generate_recovery_code): Strengthen param "insn" from rtx to
1447 rtx_insn *.
1448 (begin_speculative_block): Likewise.
1449 (create_check_block_twin): Likewise for param "insn" and locals
1450 "label", "check", "twin". Introduce local "check_pat" to avoid
1451 "check" being used as a plain rtx before being used as an insn.
1452 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1453 extracting elements from ready_list.
1454 (sched_remove_insn): Strengthen param "insn" from rtx to
1455 rtx_insn *.
1456 (sched_emit_insn): Likewise for return type.
1457 (ready_remove_first_dispatch): Likewise for return type and local
1458 "insn".
1459
1460 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1461
1462 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1463 const rtx_insn *.
1464
1465 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1466 from rtx to rtx_insn *.
1467 (add_dependence_list): Likewise for param "insn". Add a checked
1468 cast.
1469 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1470 to rtx_insn *. Strengthen param "list_p" from rtx * to
1471 rtx_insn **.
1472 (chain_to_prev_insn): Strengthen param "insn" and locals
1473 "prec_nonnote", "i" from rtx to rtx_insn *.
1474 (flush_pending_lists): Likewise for param "insn".
1475 (cur_insn): Likewise for this variable.
1476 (haifa_start_insn): Add a checked cast.
1477 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1478 (sched_analyze_reg): Likewise for param "insn".
1479 (sched_analyze_1): Likewise.
1480 (sched_analyze_2): Likewise. Add checked casts.
1481 (sched_analyze_insn): Likewise. Also for local "prev".
1482 (deps_analyze_insn): Likewise for param "insn".
1483 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1484 (add_dependence_1): Likewise for params "insn", "elem".
1485 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1486 (parse_add_or_inc): Likewise for param "insn".
1487 (find_inc): Likewise for local "inc_cand".
1488 (find_modifiable_mems): Likewise for params "head", "tail" and
1489 locals "insn", "next_tail".
1490
1491 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1492 (begin_schedule_ready): Likewise for param "insn".
1493 (begin_move_insn): Likewise for params "insn" and "last".
1494 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1495 const rtx_insn *.
1496 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1497 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1498 (ebb_add_remove_insn): Likewise for param "insn".
1499 (advance_target_bb): Likewise.
1500
1501 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1502 "insn".
1503 (check_live): Likewise for param "insn".
1504 (init_ready_list): Likewise for local "insn".
1505 (can_schedule_ready_p): Likewise for param "insn".
1506 (begin_schedule_ready): Likewise.
1507 (new_ready): Likewise for param "next".
1508 (rgn_print_insn): Likewise for param "insn".
1509 (rgn_rank): Likewise for params "insn1", "insn2".
1510 (contributes_to_priority): Likewise for params "next", "insn".
1511 (rgn_insn_finishes_block_p): Likewise for param "insn".
1512 (add_branch_dependences): Likewise for params "head", "tail" and
1513 locals "insn", "last".
1514 (rgn_add_remove_insn): Likewise for param "insn".
1515 (advance_target_bb): Likewise.
1516
1517 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1518 const_rtx to const rtx_insn *.
1519
1520 * sel-sched-dump.h (sel_print_insn): Likewise.
1521
1522 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1523 (deps_init_id): Likewise.
1524
1525 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1526 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1527 rtx_insn **.
1528
1529 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1530
1531 * output.h (final_start_function): Strengthen param 1 from rtx to
1532 rtx_insn *.
1533
1534 * final.c (final_start_function): Likewise, renaming back from
1535 "uncast_first" to "first", and dropping the checked cast from rtx
1536 to rtx_insn *.
1537
1538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1539
1540 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1541 * final.c (final): Likewise. Rename param back from
1542 "uncast_first" to "first" and eliminate the checked cast from rtx
1543 to rtx_insn *.
1544
1545 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1546
1547 * output.h (shorten_branches): Strengthen param from rtx to
1548 rtx_insn *.
1549
1550 * final.c (shorten_branches): Likewise, renaming param back from
1551 "uncast_first" to "first", and dropping the checked cast from rtx
1552 to rtx_insn *.
1553
1554 * genattr.c (gen_attr): Likewise when writing out the prototype of
1555 shorten_branches.
1556
1557 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1558
1559 * sched-int.h (struct haifa_sched_info): Strengthen fields
1560 "prev_head" and "next_tail" from rtx to rtx_insn *.
1561
1562 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1563
1564 * rtl.h (rtx_jump_table_data::get_labels): New method.
1565 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1566 with use of the new rtx_jump_table_data::get_labels method.
1567 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1568 to rtx_jump_table_data *. Simplify by using get_labels method.
1569 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1570 a dyn_cast, introducing local "table", using it to replace
1571 label-lookup logic with a get_labels method call.
1572 (patch_jump_insn): Simplify using get_labels method.
1573 * dwarf2cfi.c (create_trace_edges): Likewise.
1574 * rtlanal.c (label_is_jump_target_p): Likewise.
1575
1576 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1577
1578 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1579 to rtx_insn *.
1580
1581 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1582 (unshare_all_rtl_again): Likewise, also for local "p".
1583
1584 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1585
1586 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1587 to rtx_insn *.
1588 * cfgrtl.c (delete_insn_and_edges): Likewise.
1589
1590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1591
1592 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1593 from rtx to rtx_insn *.
1594
1595 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1596
1597 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1598
1599 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1600 locals "returnjump", "epilogue_end", "insn", "next".
1601
1602 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1603 "returnjump" from rtx * to rtx_insn **.
1604 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1605
1606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1607
1608 * basic-block.h (struct edge_def). Strengthen "r" within
1609 union edge_def_insns from rtx to rtx_insn *.
1610
1611 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1612 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1613 rtx_insn *.
1614 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1615 from rtx to rtx_insn *.
1616 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1617 rtx_insn *.
1618 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1619 (reg_used_on_edge): Likewise.
1620 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1621 (gt_pch_nx): New overload for rtx_insn *&.
1622 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1623 from rtx to rtx_insn *.
1624
1625 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1626
1627 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1628 from rtx to rtx_insn *.
1629 (BB_FOOTER): Replace function with access macro.
1630 (SET_BB_FOOTER): Delete.
1631
1632 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1633 with BB_FOOTER.
1634 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1635 (emit_barrier_after_bb): Likewise.
1636 (record_effective_endpoints): Likewise.
1637 (relink_block_chain): Likewise.
1638 (fixup_fallthru_exit_predecessor): Likewise.
1639 (cfg_layout_duplicate_bb): Likewise.
1640 (cfg_layout_split_block): Likewise.
1641 (cfg_layout_delete_block): Likewise.
1642 (cfg_layout_merge_blocks): Likewise.
1643 (BB_FOOTER): Delete function.
1644 (SET_BB_FOOTER): Delete function.
1645 * combine.c (update_cfg_for_uncondjump): Replace uses of
1646 SET_BB_FOOTER with BB_FOOTER.
1647
1648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1649
1650 * except.h (struct eh_landing_pad_d): Strengthen field
1651 "landing_pad" from rtx to rtx_code_label *.
1652
1653 * except.c (sjlj_emit_dispatch_table): Likewise for param
1654 "dispatch_label"
1655 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1656
1657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1658
1659 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1660 first param from rtx to rtx_insn *.
1661 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1662 field "set_frame_ptr_insn".
1663 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1664 "csend" from rtx to rtx_code_label *.
1665 (xtensa_expand_atomic): Likewise for local "csloop".
1666 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1667 rtx_insn *.
1668 (xtensa_call_tls_desc): Likewise for return type and locals
1669 "call_insn", "insns".
1670 (xtensa_legitimize_tls_address): Likewise for local "insns".
1671 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1672
1673 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1674
1675 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1676 first param from rtx to rtx_insn *.
1677 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1678 "insn".
1679
1680 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1681
1682 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1683 Strengthen param 1 from rtx to rtx_insn *.
1684 (tilepro_output_cbranch): Likewise.
1685 (tilepro_adjust_insn_length): Likewise.
1686 (tilepro_final_prescan_insn): Likewise for sole param.
1687
1688 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1689 Likewise for local "last".
1690 (cbranch_predicted_p): Likewise for param "insn".
1691 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1692 (tilepro_output_cbranch_with_opcode): Likewise.
1693 (tilepro_output_cbranch): Likewise.
1694 (frame_emit_load): Likewise for return type and locals "seq",
1695 "insn".
1696 (emit_sp_adjust): Likewise for return type and local "insn".
1697 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1698 "insn".
1699 (tilepro_adjust_insn_length): Likewise for param "insn".
1700 (next_insn_to_bundle): Likewise for return type and params
1701 "r", "end".
1702 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1703 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1704 local "new_insns".
1705 (match_addli_pcrel): Likewise for param "insn".
1706 (replace_addli_pcrel): Likewise.
1707 (match_auli_pcrel): Likewise.
1708 (replace_auli_pcrel): Likewise.
1709 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1710 "next_insn".
1711 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1712 "queue", "next_queue", "prev".
1713 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1714 (tilepro_final_prescan_insn): Likewise for param "insn".
1715
1716 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1717
1718 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1719 Strengthen param 1 from rtx to rtx_insn *.
1720 (tilegx_output_cbranch): Likewise.
1721 (tilegx_adjust_insn_length): Likewise.
1722 (tilegx_final_prescan_insn): Likewise for sole param.
1723
1724 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1725 or local "last".
1726 (cbranch_predicted_p): Likewise for param "insn".
1727 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1728 (tilegx_output_cbranch_with_opcode): Likewise.
1729 (tilegx_output_cbranch): Likewise.
1730 (frame_emit_load): Likewise for return type.
1731 (set_frame_related_p): Likewise for locals "seq", "insn".
1732 (emit_sp_adjust): Likewise for return type, and for local "insn".
1733 Introduce local "pat" for use in place of "insn" where the latter
1734 isn't an instruction.
1735 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1736 from rtx to rtx_insn *.
1737 (tilegx_adjust_insn_length): Likewise for param "insn".
1738 (next_insn_to_bundle): Likewise for return type and params "r" and
1739 "end".
1740 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1741 "end".
1742 (replace_insns): Likewise for params "old_insn", "new_insns".
1743 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1744 "new_insns".
1745 (replace_mov_pcrel_step2): Likewise.
1746 (replace_mov_pcrel_step3): Likewise.
1747 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1748 "next_insn".
1749 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1750 "queue", "next_queue", "prev".
1751 (tilegx_output_mi_thunk): Likewise for local "insn".
1752 (tilegx_final_prescan_insn): Likewise for param "insn".
1753
1754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1755
1756 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1757 rtx to rtx_insn *.
1758 (frame_emit_load): Likewise.
1759 (frame_emit_add_imm): Likewise, also for local "insn".
1760 (spu_expand_prologue): Likewise for local "insn".
1761 (struct spu_bb_info): Likewise for field "prop_jump".
1762 (emit_nop_for_insn): Likewise for param "insn" and local
1763 "new_insn".
1764 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1765 "hbr_insn".
1766 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1767 locals "hint", "insn".
1768 (get_branch_target): Likewise for param "branch".
1769 (insn_clobbers_hbr): Likewise for param "insn".
1770 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1771 locals "insn", "before_4", "before_16".
1772 (insert_hbrp): Likewise for local "insn".
1773 (spu_machine_dependent_reorg): Likewise for locals "branch",
1774 "insn", "next", "bbend".
1775 (uses_ls_unit): Likewise for param "insn".
1776 (get_pipe): Likewise.
1777 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1778 introducing a checked cast.
1779 (spu_sched_adjust_cost): Likewise for params "insn" and
1780 "dep_insn".
1781 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1782 (spu_sms_res_mii): Likewise.
1783
1784 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1785
1786 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1787 from rtx to rtx_insn *.
1788 (output_cbranch): Likewise for param 6.
1789 (output_return): Likewise for param 1.
1790 (output_sibcall): Likewise.
1791 (output_v8plus_shift): Likewise.
1792 (output_v8plus_mult): Likewise.
1793 (output_v9branch): Likewise for param 7.
1794 (output_cbcond): Likewise for param 3.
1795
1796 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1797 for local "insn".
1798 (sparc_legitimize_pic_address): Likewise.
1799 (sparc_emit_call_insn): Likewise.
1800 (emit_save_or_restore_regs): Likewise.
1801 (emit_window_save): Likewise for return type and local "insn".
1802 (sparc_expand_prologue): Likewise for local "insn".
1803 (sparc_flat_expand_prologue): Likewise.
1804 (output_return): Likewise for param "insn".
1805 (output_sibcall): Likewise for param "insn" and local "delay".
1806 (output_ubranch): Likewise for param "insn".
1807 (output_cbranch): Likewise.
1808 (output_cbcond): Likewise.
1809 (output_v9branch): Likewise.
1810 (output_v8plus_shift): Likewise.
1811 (sparc_output_mi_thunk): Likewise for local "insn".
1812 (get_some_local_dynamic_name): Likewise.
1813 (output_v8plus_mult): Likewise for param "insn".
1814
1815 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1816
1817 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1818 from rtx to rtx_insn *.
1819 (output_branchy_insn): Likewise for param 3.
1820 (output_far_jump): Likewise for param 1.
1821 (final_prescan_insn): Likewise.
1822 (sh_insn_length_adjustment): Likewise for sole param.
1823
1824 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1825 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1826 rtx_code_label *.
1827 (sh_emit_compare_and_set): Likewise for local "lab".
1828 (output_far_jump): Strengthen param "insn" and local "prev" from
1829 rtx to rtx_insn *.
1830 (output_branchy_insn): Likewise for param "insn" and local
1831 "next_insn".
1832 (output_ieee_ccmpeq): Likewise for param "insn".
1833 (struct label_ref_list_d): Strengthen field "label" from rtx to
1834 rtx_code_label *.
1835 (pool_node): Likewise.
1836 (pool_window_label): Likewise for this global.
1837 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1838 (dump_table): Strengthen params "start", "barrier" and local
1839 "scan" from rtx to rtx_insn *.
1840 (broken_move): Likewise for param "insn".
1841 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1842 Strengthen param "first_mova" from rtx * to rtx_insn **.
1843 (mova_p): Likewise for param "insn".
1844 (fixup_mova): Likewise for param "mova".
1845 (find_barrier): Likewise for return type, params "mova" and
1846 "from", and locals "barrier_before_mova", "found_barrier",
1847 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1848 "label" from rtx to rtx_code_label *.
1849 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1850 rtx to rtx_insn *.
1851 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1852 (split_branches): Likewise for param "first" and local "insn".
1853 (final_prescan_insn): Likewise for param "insn".
1854 (sequence_insn_p): Likewise for locals "prev", "next".
1855 (sh_insn_length_adjustment): Likewise for param "insn".
1856 (sh_can_redirect_branch): Likewise for local "insn".
1857 (find_r0_life_regions): Likewise for locals "end", "insn".
1858 (sh_output_mi_thunk): Likewise for local "insns".
1859
1860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1861
1862 * config/score/score.c (score_output_mi_thunk): Strengthen local
1863 "insn" from rtx to rtx_insn *.
1864 (score_prologue): Likewise.
1865
1866 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1867
1868 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1869 1 from rtx to rtx_insn *.
1870 (s390_emit_jump): Likewise for return type.
1871 (s390_emit_call): Likewise.
1872 (s390_load_got): Likewise.
1873
1874 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1875 variable.
1876 (s390_match_ccmode): Likewise for param "insn".
1877 (s390_emit_jump): Likewise for return type.
1878 (s390_split_branches): Likewise for local "label".
1879 (struct constant): Strengthen field "label" from rtx to
1880 rtx_code_label *.
1881 (struct constant_pool): Likewise for field "label". Strengthen
1882 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1883 rtx_insn *.
1884 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1885 insns.
1886 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1887 (s390_end_pool): Likewise.
1888 (s390_dump_pool): Likewise for local "insn".
1889 (s390_mainpool_start): Likewise.
1890 (s390_chunkify_start): Likewise.
1891 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1892 with insns. Strengthen locals "label", "jump", "barrier", "next",
1893 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1894 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1895 rtx_insn *.
1896 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1897 "jump", "label", "next_insn".
1898 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1899 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1900 "tbegin_insn".
1901 (s390_load_got): Likewise for return type and local "insns".
1902 (s390_save_gprs_to_fprs): Likewise for local "insn".
1903 (s390_restore_gprs_from_fprs): Likewise.
1904 (pass_s390_early_mach::execute): Likewise.
1905 (s390_emit_prologue): Likewise for local "insns".
1906 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1907 rtx_code_label *.
1908 (s390_emit_call): Strengthen return type and local "insn" from
1909 rtx to rtx_insn *.
1910 (s390_emit_tpf_eh_return): Likewise for local "insn".
1911 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1912 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1913 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1914 local "cur_insn".
1915 (s390_non_addr_reg_read_p): Likewise for param "insn".
1916 (find_cond_jump): Likewise for return type and param "insn".
1917 (s390_swap_cmp): Likewise for param "insn".
1918 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1919 "prev_insn", "next_insn".
1920 (s390_reorg): Likewise for locals "insn", "target".
1921 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1922 (s390_sched_variable_issue): For now, rename param "insn" to
1923 "uncast_insn", introducing a checked cast.
1924 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1925 insn.
1926 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1927 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1928
1929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1930
1931 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1932 param from rtx to rtx_insn *.
1933 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1934
1935 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1936
1937 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1938 4 from rtx to rtx_insn *.
1939 (rs6000_final_prescan_insn): Likewise for first param.
1940 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1941 local "insn".
1942 (rs6000_get_some_local_dynamic_name): Likewise.
1943 (output_cbranch): Likewise for param "insn".
1944 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1945 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1946 (rs6000_emit_allocate_stack): Likewise for local "insn".
1947 (load_cr_save): Likewise.
1948 (restore_saved_cr): Likewise.
1949 (restore_saved_lr): Likewise.
1950 (emit_cfa_restores): Likewise.
1951 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1952 "deleted_debug_label".
1953 (rs6000_output_mi_thunk): Likewise for local "insn".
1954 (rs6000_final_prescan_insn): Likewise for param "insn".
1955
1956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1957
1958 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1959 Strengthen param "insn" from rtx to rtx_insn *.
1960 * config/picochip/picochip.c (picochip_current_prescan_insn):
1961 Likewise for this variable.
1962 (picochip_final_prescan_insn): Likewise for param "insn".
1963
1964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1965
1966 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1967 from rtx to rtx_insn *.
1968 (pa_output_indirect_call): Likewise.
1969 (pa_adjust_insn_length): Likewise.
1970 (pa_attr_length_millicode_call): Likewise.
1971 (pa_attr_length_call): Likewise.
1972 (pa_attr_length_indirect_call): Likewise.
1973
1974 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1975 "insn".
1976 (pa_attr_length_millicode_call): Likewise.
1977 (pa_attr_length_call): Likewise.
1978 (pa_output_call): Likewise.
1979 (pa_attr_length_indirect_call): Likewise.
1980 (pa_output_indirect_call): Likewise.
1981
1982 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1983
1984 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1985 Strengthen first param from rtx to rtx_insn *.
1986 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1987 param "insn".
1988
1989 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1990
1991 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1992 type from rtx to rtx_insn *.
1993 (mips_expand_call): Likewise.
1994 (mips_adjust_insn_length): Likewise for first param.
1995 (mips_output_conditional_branch): Likewise.
1996 (mips_output_order_conditional_branch): Likewise.
1997 (mips_final_prescan_insn): Likewise.
1998
1999 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2000 rtx_insn * for the SEQUENCE case.
2001 (SEQ_END): Likewise.
2002 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2003 (mips_emit_call_insn): Likewise, also for local "insn".
2004 (mips16_gp_pseudo_reg): Likewise for local "scan".
2005 (mips16_build_call_stub): Likewise for return type and for local
2006 "insn". Introduce a new local "pattern" so that "insn" can indeed
2007 be an insn.
2008 (mips_expand_call): Strengthen return type and local "insn" from
2009 rtx to rtx_insn *.
2010 (mips_block_move_loop): Strengthen local "label" from rtx to
2011 rtx_code_label *.
2012 (mips_expand_synci_loop): Likewise for locals "label",
2013 "end_label".
2014 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2015 rtx_insn *.
2016 (mips16e_collect_argument_saves): Likewise for locals "insn",
2017 "next".
2018 (mips_find_gp_ref): Likewise for param of callback for "pred"
2019 param, and for local "insn".
2020 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2021 (mips_insn_has_flexible_gp_ref_p): Likewise.
2022 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2023 local "insn".
2024 (mips_epilogue_set_cfa): Likewise for local "insn".
2025 (mips_expand_epilogue): Likewise.
2026 (mips_adjust_insn_length): Likewise for param "insn".
2027 (mips_output_conditional_branch): Likewise.
2028 (mips_output_order_conditional_branch): Likewise.
2029 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2030 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2031 "falu2_turn_enabled_insn".
2032 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2033 "done_label" from rtx to rtx_code_label *.
2034 (struct mips16_constant): Likewise for field "label".
2035 (mips16_add_constant): Likewise for return type.
2036 (mips16_emit_constants_1): Strengthen return type and param "insn"
2037 from rtx to rtx_insn *.
2038 (mips16_emit_constants): Likewise for param "insn".
2039 (mips16_insn_length): Likewise.
2040 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2041 to rtx_code_label *.
2042 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2043 from rtx to rtx_insn *.
2044 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2045 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2046 (r10k_simplify_address): Strengthen param "insn" and local
2047 "def_insn" from rtx to rtx_insn *.
2048 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2049 rtx_insn *.
2050 (r10k_needs_protection_p_1): Update target type of cast of data
2051 from to rtx to rtx_insn *.
2052 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2053 rtx * to rtx_insn **.
2054 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2055 rtx_insn *.
2056 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2057 (mips_call_expr_from_insn): Likewise for param "insn".
2058 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2059 (mips_find_pic_call_symbol): Likewise for param "insn".
2060 (mips_annotate_pic_calls): Likewise for local "insn".
2061 (mips_sim_insn): Likewise for this variable.
2062 (struct mips_sim): Likewise for field "insn" within elements of
2063 last_set array.
2064 (mips_sim_wait_reg): Likewise for param "insn".
2065 (mips_sim_wait_regs): Likewise.
2066 (mips_sim_wait_units): Likewise.
2067 (mips_sim_wait_insn): Likewise.
2068 (mips_sim_issue_insn): Likewise.
2069 (mips_sim_finish_insn): Likewise.
2070 (mips_seq_time): Likewise for param "seq" and local "insn".
2071 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2072 locals "first", "second".
2073 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2074 "last", "last2", "next".
2075 (mips_avoid_hazard): Likewise for params "after", "insn".
2076 (mips_reorg_process_insns): Likewise for locals "insn",
2077 "last_insn", "subinsn", "next_insn".
2078 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2079 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2080 "jump_sequence".
2081 (mips_output_mi_thunk): Likewise for local "insn".
2082 (mips_final_prescan_insn): Likewise for param "insn".
2083
2084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2085
2086 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2087 Strengthen return type and local "insns" from rtx to rtx_insn *.
2088 (microblaze_legitimize_tls_address): Likewise for local "insns".
2089 (microblaze_block_move_loop): Strengthen local "label" from rtx
2090 to rtx_code_label *.
2091 (microblaze_expand_prologue): Strengthen two locals named "insn"
2092 from rtx to rtx_insn *.
2093 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2094 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2095 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2096 to rtx_code_label *.
2097
2098 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2099
2100 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2101 param from rtx to rtx_insn *.
2102 (mep_reuse_lo): Likewise for third param.
2103 (mep_use_post_modify_p): Likewise for first param.
2104 (mep_core_address_length): Likewise.
2105 (mep_cop_address_length): Likewise.
2106 (mep_final_prescan_insn): Likewise.
2107 (mep_store_data_bypass_p): Likewise for both params.
2108 (mep_mul_hilo_bypass_p): Likewise.
2109 (mep_ipipe_ldc_p): Likewise for param.
2110
2111 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2112 (mep_rewrite_mult): Likewise.
2113 (mep_rewrite_mulsi3): Likewise.
2114 (mep_rewrite_maddsi3): Likewise.
2115 (mep_reuse_lo_p_1): Likewise.
2116 (mep_reuse_lo_p): Likewise.
2117 (mep_frame_expr): Likewise.
2118 (mep_make_parallel): Likewise for both params.
2119 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2120 local "insn".
2121 (mep_use_post_modify_p): Likewise for param "insn".
2122 (mep_core_address_length): Likewise.
2123 (mep_cop_address_length): Likewise.
2124 (mep_reg_set_in_function): Likewise for local "insn".
2125 (mep_asm_without_operands_p): Likewise.
2126 (F): Likewise for return type and param "x".
2127 (add_constant): Likewise for local "insn".
2128 (maybe_dead_move): Likewise for return type and local "insn".
2129 (mep_expand_prologue): Likewise for local "insn".
2130 (mep_final_prescan_insn): Likewise for param "insn".
2131 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2132 "next", "follow", "x".
2133 (mep_insert_repeat_label_last): Likewise for return type, param
2134 "last_insn", and locals "next", "prev". Strengthen param "label"
2135 from rtx to rtx_code_label *.
2136 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2137 rtx_insn *.
2138 (struct mep_doloop_end): Likewise for fields "insn" and
2139 "fallthrough".
2140 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2141 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2142 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2143 rtx_insn *.
2144 (mep_invert_branch): Likewise for params "insn" and "after".
2145 (mep_reorg_erepeat): Likewise for param "insns" and locals
2146 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2147 "l" from rtx to rtx_code_label *.
2148 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2149 from rtx to rtx_insn *.
2150 (mep_reorg_addcombine): Likewise for param "insns" and locals
2151 "i", "n".
2152 (add_sp_insn_p): Likewise for param "insn".
2153 (mep_reorg_noframe): Likewise for param "insns" and locals
2154 "start_frame_insn", "end_frame_insn", "next".
2155 (mep_reorg): Likewise for local "insns".
2156 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2157 cast.
2158 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2159 (mep_mul_hilo_bypass_p): Likewise.
2160 (mep_ipipe_ldc_p): Likewise for param "insn".
2161 (mep_make_bundle): Likewise for return type, param "cop" and local
2162 "insn", splitting out the latter into a new local "seq" for when it
2163 is a SEQUENCE rather than an insn.
2164 (core_insn_p): Likewise for param "insn".
2165 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2166 "last", "first", "note", "prev", "core_insn".
2167
2168 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2169
2170 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2171 rtx to rtx_insn *.
2172 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2173 (m68k_final_prescan_insn): Likewise for first param.
2174
2175 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2176 (m68k_set_frame_related): Likewise for param "insn".
2177 (output_btst): Likewise for param "insn".
2178 (m68k_final_prescan_insn): Likewise.
2179 (m68k_move_to_reg): Likewise for local "insn".
2180 (m68k_call_tls_get_addr): Likewise for local "insns".
2181 (m68k_call_m68k_read_tp): Likewise.
2182 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2183 (m68k_output_mi_thunk): Likewise for local "insn".
2184
2185 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2186
2187 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2188 first param from rtx to rtx_insn *.
2189 (iq2000_adjust_insn_length): Likewise.
2190 (iq2000_output_conditional_branch): Likewise.
2191 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2192 "insn" and local "nop_insn".
2193 (iq2000_annotate_frame_insn): Likewise for param "insn".
2194 (iq2000_expand_prologue): Likewise for both locals "insn".
2195 (iq2000_adjust_insn_length): Likewise for param "insn".
2196 (iq2000_output_conditional_branch): Likewise.
2197
2198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2199
2200 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2201 "insns" from rtx to rtx_insn *.
2202 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2203 (struct spill_fill_data): Likewise for field "init_after" and for
2204 elements of array field "prev_insn".
2205 (spill_restore_mem): Likewise for locals "insn", "first".
2206 (do_spill): Likewise for local "insn".
2207 (do_restore): Likewise.
2208 (ia64_expand_prologue): Likewise.
2209 (ia64_expand_epilogue): Likewise.
2210 (emit_insn_group_barriers): Likewise for locals "insn",
2211 "last_label".
2212 (emit_all_insn_group_barriers): Likewise for locals "insn",
2213 "last".
2214 (dfa_stop_insn): Likewise for this global.
2215 (dfa_pre_cycle_insn): Likewise.
2216 (ia64_nop): Likewise.
2217 (final_emit_insn_group_barriers): Likewise for locals "insn",
2218 "last".
2219 (emit_predicate_relation_info): Likewise for locals "head", "n",
2220 "insn", "b", "a".
2221 (ia64_reorg): Likewise for local "insn".
2222 (ia64_output_mi_thunk): Likewise.
2223 (expand_vec_perm_interleave_2): Likewise for local "seq".
2224
2225 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2226
2227 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2228 param 1 "insn" from rtx to rtx_insn *.
2229 (ix86_use_lea_for_mov): Likewise.
2230 (ix86_avoid_lea_for_addr): Likewise.
2231 (ix86_split_lea_for_addr): Likewise.
2232 (ix86_lea_for_add_ok): Likewise.
2233 (ix86_output_call_insn): Likewise.
2234
2235 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2236 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2237 (ix86_output_function_epilogue): Likewise for locals "insn",
2238 "deleted_debug_label".
2239 (legitimize_tls_address): Likewise for local "insn".
2240 (get_some_local_dynamic_name): Likewise.
2241 (increase_distance): Likewise for params "prev", "next".
2242 (distance_non_agu_define_in_bb): Likewise for params "insn",
2243 "start" and locals "prev", "next".
2244 (distance_non_agu_define): Likewise for param "insn".
2245 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2246 locals "next", "prev".
2247 (distance_agu_use): Likewise for param "insn".
2248 (ix86_lea_outperforms): Likewise.
2249 (ix86_ok_to_clobber_flags): Likewise.
2250 (ix86_avoid_lea_for_add): Likewise.
2251 (ix86_use_lea_for_mov): Likewise.
2252 (ix86_avoid_lea_for_addr): Likewise.
2253 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2254 (ix86_split_lea_for_addr): Likewise for param "insn".
2255 (ix86_lea_for_add_ok): Likewise for param "insn".
2256 (ix86_expand_carry_flag_compare): Likewise for local
2257 "compare_seq".
2258 (ix86_expand_int_movcc): Likewise.
2259 (ix86_output_call_insn): Likewise for param "insn".
2260 (ix86_output_call_insn): Likewise for local "i".
2261 (x86_output_mi_thunk): Introduce local "insn", using it in place
2262 of "tmp" when dealing with insns.
2263 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2264 "start".
2265 (ix86_pad_returns): Likewise for locals "ret", "prev".
2266 (ix86_count_insn_bb): Likewise for local "insn".
2267 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2268 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2269 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2270 (expand_vec_perm_interleave2): Likewise for local "seq".
2271 (expand_vec_perm_vperm2f128_vblend): Likewise.
2272 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2273 call to for_each_rtx with for_each_rtx_in_insn.
2274
2275 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2276
2277 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2278 "label" from rtx to rtx_code_label *.
2279 (ix86_expand_prologue): Likewise.
2280 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2281 "varargs_label".
2282 (ix86_split_idivmod): Likewise for locals "end_label" and
2283 "qimode_label".
2284 (ix86_expand_branch): Likewise for local "label2".
2285 (ix86_expand_aligntest): Likewise for return type and local "label".
2286 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2287 "top_label".
2288 (expand_movmem_epilogue): Likewise for the various locals named
2289 "label".
2290 (expand_setmem_epilogue): Likewise.
2291 (expand_small_movmem_or_setmem): Likewise for local "label".
2292 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2293 Strengthen param "done_label" from rtx * to rtx_code_label **.
2294 Strengthen locals "loop_label" and "label" from rtx to
2295 rtx_code_label *.
2296 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2297 Likewise for locals "loop_label", "label".
2298 (ix86_expand_set_or_movmem): Likewise for locals "label",
2299 "jump_around_label", "hot_label".
2300 (ix86_expand_strlensi_unroll_1): Likewise for locals
2301 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2302 "end_2_label".
2303 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2304 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2305 "label2", "jump_label".
2306 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2307 local "label".
2308 (ix86_expand_lfloorceil): Likewise for local "label".
2309 (ix86_expand_rint): Likewise.
2310 (ix86_expand_floorceildf_32): Likewise.
2311 (ix86_expand_floorceil): Likewise.
2312 (ix86_expand_rounddf_32): Likewise.
2313 (ix86_expand_trunc): Likewise.
2314 (ix86_expand_truncdf_32): Likewise.
2315 (ix86_expand_round): Likewise.
2316
2317 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2318
2319 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2320 first param from rtx to rtx_insn *.
2321 (h8300_insn_length_from_table): Likewise.
2322 * config/h8300/h8300.c (F): Likewise for return type and param
2323 "x".
2324 (Fpa): Add a checked cast to rtx_insn *.
2325 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2326 rtx_insn *.
2327 (final_prescan_insn): Likewise for param "insn".
2328 (h8300_binary_length): Likewise.
2329 (h8300_insn_length_from_table): Likewise.
2330
2331 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2332
2333 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2334 Strengthen first param "insn" from rtx to rtx_insn *.
2335
2336 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2337 Likewise.
2338 (frame_insn): Likewise for return type. Introduce local "insn"
2339 for use in place of local "x" for use as an rtx_insn *.
2340 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2341 (epiphany_expand_prologue): Likewise for local "insn".
2342 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2343 * config/epiphany/resolve-sw-modes.c
2344 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2345 "seq".
2346
2347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2348
2349 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2350 param from rtx to rtx_insn *.
2351 (c6x_final_prescan_insn): Likewise for first param.
2352
2353 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2354 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2355 (c6x_expand_compare): Strengthen local "insns" from rtx to
2356 rtx_insn *.
2357 (c6x_get_unit_specifier): Likewise for param "insn".
2358 (c6x_print_unit_specifier_field): Likewise.
2359 (c6x_final_prescan_insn): Likewise.
2360 (emit_add_sp_const): Likewise for local "insn".
2361 (c6x_expand_prologue): Likewise.
2362
2363 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2364
2365 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2366 param 1 from rtx to rtx_insn *.
2367 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2368 the various locals named "insn".
2369 (expand_epilogue_reg_restore): Likewise.
2370 (frame_related_constant_load): Likewise.
2371 (add_to_reg): Likewise.
2372 (emit_link_insn): Likewise.
2373 (do_link): Likewise.
2374 (expand_interrupt_handler_prologue): Likewise.
2375 (branch_dest): Likewise for param "branch".
2376 (asm_conditional_branch): Likewise for param "insn".
2377 (gen_one_bundle): Likewise for elements of param "slot" and local
2378 "t".
2379 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2380 elements of local "slot".
2381 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2382 "queue", "next_queue", "prev".
2383 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2384 (add_sched_insns_for_speculation): Likewise for local "insn".
2385
2386 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2387
2388 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2389 from rtx to rtx_insn *.
2390 (output_movhi): Likewise.
2391 (output_movsisf): Likewise.
2392 (avr_out_tstsi): Likewise.
2393 (avr_out_tsthi): Likewise.
2394 (avr_out_tstpsi): Likewise.
2395 (avr_out_compare): Likewise.
2396 (avr_out_compare64): Likewise.
2397 (avr_out_movpsi): Likewise.
2398 (ashlqi3_out): Likewise.
2399 (ashlhi3_out): Likewise.
2400 (ashlsi3_out): Likewise.
2401 (ashrqi3_out): Likewise.
2402 (ashrhi3_out): Likewise.
2403 (ashrsi3_out): Likewise.
2404 (lshrqi3_out): Likewise.
2405 (lshrhi3_out): Likewise.
2406 (lshrsi3_out): Likewise.
2407 (avr_out_ashlpsi3): Likewise.
2408 (avr_out_ashrpsi3): Likewise.
2409 (avr_out_lshrpsi3): Likewise.
2410 (avr_out_fract): Likewise.
2411 (avr_out_sbxx_branch): Likewise.
2412 (avr_out_round): Likewise.
2413 (avr_out_xload): Likewise.
2414 (avr_out_movmem): Likewise.
2415 (adjust_insn_length): Likewise.
2416 (avr_out_lpm): Likewise.
2417 (reg_unused_after): Likewise.
2418 (_reg_unused_after): Likewise.
2419 (avr_jump_mode): Likewise for second param.
2420 (jump_over_one_insn): Likewise for first param.
2421 (avr_final_prescan_insn): Likewise.
2422 (out_shift_with_cnt): Likewise for second param.
2423
2424 * config/avr/avr.c (get_sequence_length): Likewise for param
2425 "insns" and local "insn".
2426 (emit_push_byte): Likewise for local "insn".
2427 (emit_push_sfr): Likewise.
2428 (avr_prologue_setup_frame): Likewise for locals "insn",
2429 "fp_plus_insns", "sp_plus_insns".
2430 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2431 "sp_plus_insns".
2432 (avr_jump_mode): Likewise for param "insn".
2433 (avr_final_prescan_insn): Likewise.
2434 (avr_find_unused_d_reg): Likewise.
2435 (avr_out_lpm_no_lpmx): Likewise.
2436 (avr_out_lpm): Likewise.
2437 (avr_out_xload): Likewise.
2438 (output_movqi): Likewise.
2439 (output_movhi): Likewise.
2440 (out_movqi_r_mr): Likewise.
2441 (out_movhi_r_mr): Likewise.
2442 (out_movsi_r_mr): Likewise.
2443 (out_movsi_mr_r): Likewise.
2444 (output_movsisf): Likewise.
2445 (avr_out_load_psi): Likewise.
2446 (avr_out_store_psi): Likewise.
2447 (avr_out_movpsi): Likewise.
2448 (out_movqi_mr_r): Likewise.
2449 (avr_out_movhi_mr_r_xmega): Likewise.
2450 (out_movhi_mr_r): Likewise.
2451 (compare_condition): Likewise for param "insn" and local "next".
2452 (compare_sign_p): Likewise for param "insn".
2453 (compare_diff_p): Likewise.
2454 (compare_eq_p): Likewise.
2455 (avr_out_compare): Likewise.
2456 (avr_out_compare64): Likewise.
2457 (avr_out_tsthi): Likewise.
2458 (avr_out_tstpsi): Likewise.
2459 (avr_out_tstsi): Likewise.
2460 (out_shift_with_cnt): Likewise.
2461 (ashlqi3_out): Likewise.
2462 (ashlhi3_out): Likewise.
2463 (avr_out_ashlpsi3): Likewise.
2464 (ashlsi3_out): Likewise.
2465 (ashrqi3_out): Likewise.
2466 (ashrhi3_out): Likewise.
2467 (avr_out_ashrpsi3): Likewise.
2468 (ashrsi3_out): Likewise.
2469 (lshrqi3_out): Likewise.
2470 (lshrhi3_out): Likewise.
2471 (avr_out_lshrpsi3): Likewise.
2472 (lshrsi3_out): Likewise.
2473 (avr_out_fract): Likewise.
2474 (avr_out_round): Likewise.
2475 (avr_adjust_insn_length): Likewise.
2476 (reg_unused_after): Likewise.
2477 (_reg_unused_after): Likewise.
2478 (avr_compare_pattern): Likewise.
2479 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2480 and locals "branch1", "branch2", "insn2", "jump".
2481 (avr_reorg): Likewise for local "insn".
2482 (avr_2word_insn_p): Likewise for param "insn".
2483 (jump_over_one_insn_p): Likewise.
2484 (avr_out_sbxx_branch): Likewise.
2485 (avr_out_movmem): Likewise.
2486
2487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2488
2489 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2490 param from rtx to rtx_insn *.
2491 (thumb1_final_prescan_insn): Likewise.
2492 (thumb2_final_prescan_insn): Likewise.
2493
2494 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2495 rtx to rtx_insn *.
2496 (struct minipool_node): Likewise for field "insn".
2497 (dump_minipool): Likewise for param "scan".
2498 (create_fix_barrier): Likewise for local "from". Strengthen local
2499 "label" from rtx to rtx_code_label *.
2500 (push_minipool_barrier): Strengthen param "insn" from rtx to
2501 rtx_insn *.
2502 (push_minipool_fix): Likewise.
2503 (note_invalid_constants): Likewise.
2504 (thumb2_reorg): Likewise for local "insn".
2505 (arm_reorg): Likewise.
2506 (thumb2_final_prescan_insn): Likewise for param
2507 "insn" and local "first_insn".
2508 (arm_final_prescan_insn): Likewise for param "insn" and locals
2509 "start_insn", "this_insn".
2510 (arm_debugger_arg_offset): Likewise for param "insn".
2511 (thumb1_emit_multi_reg_push): Likewise for return type and local
2512 "insn".
2513 (thumb1_final_prescan_insn): Likewise for param "insn".
2514 (thumb_far_jump_used_p): Likewise for local "insn".
2515 (thumb1_expand_prologue): Likewise.
2516 (arm_expand_epilogue_apcs_frame): Likewise.
2517 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2518 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2519 from rtx to rtx_code_label *.
2520 (arm_split_atomic_op): Likewise for local "label".
2521 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2522
2523 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2524
2525 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2526 first param from rtx to rtx_insn *.
2527 (arc_verify_short): Likewise.
2528 (arc_short_long): Likewise.
2529 (arc_need_delay): Likewise.
2530
2531 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2532 "target_insn".
2533 (arc_ccfsm_advance): Likewise for param "insn" and locals
2534 "start_insn", "this_insn".
2535 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2536 (arc_ccfsm_post_advance): Likewise for param "insn".
2537 (arc_next_active_insn): Likewise for return type and param "insn".
2538 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2539 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2540 (output_short_suffix): Likewise for local "insn".
2541 (arc_final_prescan_insn): Likewise for param "insn". Remove
2542 now-redundant checked cast.
2543 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2544 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2545 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2546 for use where lc_set became an insn.
2547 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2548 rtx to rtx_insn *.
2549 (arc_get_insn_variants): Likewise for local "prev".
2550 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2551 "next".
2552 (arc_predicate_delay_insns): Likewise for local "insn".
2553 (arc_pad_return): Likewise for local "prev". For now, add a
2554 checked cast when extracting the insn from "final_sequence".
2555 (arc_short_long): Likewise for param "insn".
2556 (arc_need_delay): Likewise for param "insn" and local "next".
2557 (arc_label_align): Likewise for locals "prev", "next".
2558
2559 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2560
2561 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2562 "insn" from rtx to rtx_insn *.
2563 (alpha_gp_save_rtx): Likewise for local "seq".
2564 (alpha_instantiate_decls): Likewise for local "top".
2565 (get_some_local_dynamic_name): Likewise for local "insn".
2566 (alpha_does_function_need_gp): Likewise.
2567 (set_frame_related_p): Likewise for return type and for locals
2568 "seq" and "insn".
2569 (emit_frame_store_1): Likewise for local "insn".
2570 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2571 (alpha_end_function): Likewise for local "insn".
2572 (alpha_output_mi_thunk_osf): Likewise.
2573 (alphaev4_insn_pipe): Likewise for param "insn".
2574 (alphaev5_insn_pipe): Likewise.
2575 (alphaev4_next_group): Likewise for return type and param 1
2576 "insn".
2577 (alphaev5_next_group): Likewise.
2578 (alpha_align_insns_1): Likewise for return type and param 1 of
2579 callback param "next_group", and for locals "i", "next", "prev",
2580 "where", "where2", "insn".
2581
2582 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2583
2584 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2585 rather than modifying the stmt.
2586
2587 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2588
2589 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2590 cgraph_state conversion.
2591
2592 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2593
2594 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2595 Strengthen local "insns" from rtx to rtx_insn *.
2596 (aarch64_set_frame_expr): Likewise for local "insn".
2597 (aarch64_save_or_restore_fprs): Likewise.
2598 (aarch64_save_or_restore_callee_save_registers): Likewise.
2599 (aarch64_expand_prologue): Likewise.
2600 (aarch64_expand_epilogue): Likewise.
2601 (aarch64_output_mi_thunk): Likewise.
2602 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2603 "label2" from rtx to rtx_code_label *.
2604 (aarch64_split_atomic_op): Likewise for local "label".
2605
2606 2014-08-25 Martin Liska <mliska@suse.cz>
2607
2608 * cgraph.h (symtab_node):
2609 (bool needed_p (void)): created from decide_is_symbol_needed
2610 (bool referred_to_p (void)): created from referred_to_p
2611 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2612 * cgraph.h (cgraph_node):
2613 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2614 (void expand (void)): created from expand_function
2615 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2616 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2617 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2618 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2619 * cgraph.h (varpool_node):
2620 (static void add (tree decl): created from varpool_add_new_variable
2621 * cgraph.h (cgraph_edge):
2622 void remove (void);
2623 (void remove_caller (void)): created from cgraph_edge_remove_caller
2624 (void remove_callee (void)): created from cgraph_edge_remove_callee
2625 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2626 created from cgraph_set_call_stmt
2627 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2628 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2629 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2630 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2631 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2632 created from cgraph_speculative_call_info
2633 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2634 int freq_scale, bool update_original)): created from cgraph_clone_edge
2635 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2636 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2637 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2638 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2639 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2640 (static void rebuild_references (void)): created from cgraph_rebuild_references
2641 * cgraph.h (symbol_table):
2642 (create_reference): renamed from add_reference
2643 (maybe_create_reference): renamed from maybe_add_reference
2644 (void register_symbol (symtab_node *node)): new function
2645 (void clear_asm_symbols (void)): new function
2646 (void unregister (symtab_node *node)): new function
2647 (void release_symbol (cgraph_node *node, int uid)): new function
2648 (cgraph_node * allocate_cgraph_symbol (void)): new function
2649 (void initialize (void)): created from cgraph_init
2650 (symtab_node *first_symbol (void)):new function
2651 (asm_node *first_asm_symbol (void)):new function
2652 (symtab_node *first_defined_symbol (void)):new function
2653 (varpool_node *first_variable (void)):new function
2654 (varpool_node *next_variable (varpool_node *node)):new function
2655 (varpool_node *first_static_initializer (void)):new function
2656 (varpool_node *next_static_initializer (varpool_node *node)):new function
2657 (varpool_node *first_defined_variable (void)):new function
2658 (varpool_node *next_defined_variable (varpool_node *node)):new function
2659 (cgraph_node *first_defined_function (void)):new function
2660 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2661 (cgraph_node *first_function (void)):new function
2662 (cgraph_node *next_function (cgraph_node *node)):new function
2663 (cgraph_node *first_function_with_gimple_body (void)):new function
2664 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2665 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2666 created from symtab_remove_unreachable_nodes
2667 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2668 (void process_new_functions (void)): created from cgraph_process_new_functions
2669 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2670 (bool output_variables (void)): created from varpool_node::output_variables
2671 (void output_asm_statements (void)): created from output_asm_statements
2672 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2673 (void compile (void)): created from compile
2674 (void output_weakrefs (void)): created from output_weakrefs
2675 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2676 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2677 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2678 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2679 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2680 created from cgraph_next_function_with_gimple_body
2681 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2682 created from cgraph_remove_edge_removal_hook
2683 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2684 created from cgraph_add_node_removal_hook
2685 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2686 created from cgraph_remove_node_removal_hook
2687 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2688 created from varpool_add_node_removal_hook
2689 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2690 created from varpool_remove_node_removal_hook
2691 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2692 created from cgraph_add_function_insertion_hook
2693 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2694 created from cgraph_remove_function_insertion_hook
2695 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2696 created from varpool_add_variable_insertion_hook
2697 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2698 created from varpool_remove_variable_insertion_hook
2699 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2700 created from cgraph_add_edge_duplication_hook
2701 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2702 created from cgraph_remove_edge_duplication_hook
2703 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2704 created from cgraph_add_node_duplication_hook
2705 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2706 created from cgraph_remove_node_duplication_hook
2707 (void call_edge_removal_hooks (cgraph_edge *e)):
2708 created from cgraph_call_edge_removal_hooks
2709 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2710 created from call_function_insertion_hooks
2711 (void call_cgraph_removal_hooks (cgraph_node *node)):
2712 created from cgraph_call_node_removal_hooks
2713 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2714 created from cgraph_node::call_duplication_hooks
2715 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2716 created from cgraph_call_edge_duplication_hooks
2717 (void call_varpool_removal_hooks (varpool_node *node)):
2718 created from varpool_call_node_removal_hooks
2719 (void call_varpool_insertion_hooks (varpool_node *node)):
2720 created from varpool_call_variable_insertion_hooks
2721 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2722 created from insert_to_assembler_name_hash
2723 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2724 created from unlink_from_assembler_name_hash
2725 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2726 created from symtab_prevail_in_asm_name_hash
2727 (void symtab_initialize_asm_name_hash (void)):
2728 created from symtab_initialize_asm_name_hash
2729 (void change_decl_assembler_name (tree decl, tree name)):
2730 created from change_decl_assembler_name
2731 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2732 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2733 created from decl_assembler_name_hash
2734 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2735 created from decl_assembler_name_equal
2736 (static hashval_t hash_node_by_assembler_name (const void *p)):
2737 created from hash_node_by_assembler_name
2738 (static int eq_assembler_name (const void *p1, const void *p2)):
2739 created from eq_assembler_name
2740
2741 2014-08-25 Marek Polacek <polacek@redhat.com>
2742
2743 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2744
2745 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2746
2747 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2748 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2749 SWI1248_AVX512BW mode iterator.
2750
2751 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2752
2753 PR target/62111
2754 * config/sh/predicates.md (general_extend_operand): Disable
2755 TRUNCATE before reload completes.
2756
2757 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2758
2759 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2760
2761 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2762
2763 PR target/61996
2764 * config/sh/sh.opt (musermode): Allow negative form.
2765 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2766 targets that don't support it.
2767 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2768 Document -mno-usermode option.
2769
2770 2014-08-24 Kito Cheng <kito@0xlab.org>
2771
2772 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2773 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2774 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2775 * doc/tm.texi: Regenerate.
2776
2777 2014-08-24 Kito Cheng <kito@0xlab.org>
2778
2779 * ira.c: Fix typo in comment.
2780
2781 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2782
2783 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2784 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2785
2786 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2787
2788 PR target/62038
2789 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2790 last_address when the current function is a thunk.
2791 (pa_asm_output_mi_thunk): When we don't have named sections or they
2792 are not being used, check that thunk can reach the stub table with a
2793 short branch.
2794
2795 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2796
2797 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2798 rtx_insn *.
2799 (pass_web::execute): Likewise for local "insn".
2800
2801 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2802
2803 * var-tracking.c (struct micro_operation_def): Strengthen field
2804 "insn" from rtx to rtx_insn *.
2805 (struct emit_note_data_def): Likewise.
2806 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2807 (vt_stack_adjustments): Likewise for local "insn".
2808 (adjust_insn): Likewise for param "insn".
2809 (val_store): Likewise.
2810 (val_resolve): Likewise.
2811 (struct count_use_info): Likewise for field "insn".
2812 (log_op_type): Likewise for param "insn".
2813 (reverse_op): Likewise.
2814 (prepare_call_arguments): Likewise.
2815 (add_with_sets): The initial param takes an insn, but we can't
2816 yet strengthen it from rtx to rtx_insn * since it's used as a
2817 cselib_record_sets_hook callback. For now rename initial param
2818 from "insn" to "uncast_insn", and introduce a local "insn" of
2819 the stronger rtx_insn * type, with a checked cast.
2820 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2821 rtx_insn *.
2822 (emit_note_insn_var_location): Likewise.
2823 (emit_notes_for_changes): Likewise.
2824 (emit_notes_for_differences): Likewise.
2825 (next_non_note_insn_var_location): Likewise for return type and
2826 for param "insn".
2827 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2828 (vt_initialize): Likewise for local "insn".
2829 (delete_debug_insns): Likewise for locals "insn" and "next".
2830
2831 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2832
2833 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2834 rtx_insn *.
2835 (mark_constant_pool): Likewise for local "insn".
2836
2837 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2838
2839 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2840 rtx to rtx_insn *.
2841 (dead_debug_promote_uses): Likewise.
2842 (dead_debug_insert_temp): Likewise.
2843
2844 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2845
2846 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2847 from const_rtx to const rtx_insn *.
2848 (store_killed_after): Likewise. Strengthen locals "last", "act"
2849 from rtx to rtx_insn *.
2850 (store_killed_before): Strengthen param "insn" from const_rtx to
2851 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2852 (find_moveable_store): Strengthen param "insn" from rtx to
2853 rtx_insn *.
2854 (compute_store_table): Likewise for local "insn".
2855 (insert_insn_start_basic_block): Likewise for param "insn" and
2856 locals "prev", "before", "insn".
2857 (insert_store): For now, add a checked cast to rtx_insn * on the
2858 result of gen_move_insn.
2859 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2860 to rtx_insn *.
2861 (replace_store_insn): Likewise. For now, add a checked cast to
2862 rtx_insn * on the result of gen_move_insn.
2863
2864 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2865
2866 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2867 rtx_insn *.
2868 (expand_sjlj_dispatch_table): Likewise.
2869
2870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2871
2872 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2873 "insn" from rtx to rtx_insn *.
2874
2875 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2876
2877 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2878 "insn" from rtx to rtx_insn *.
2879 (dup_block_and_redirect): Likewise for param 3 "before".
2880
2881 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2882 from rtx to rtx_insn *.
2883 (move_insn_for_shrink_wrap): Likewise.
2884 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2885 (dup_block_and_redirect): Likewise for param "before" and local
2886 "insn".
2887 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2888 "end".
2889 (convert_to_simple_return): Likewise for local "start".
2890
2891 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2892 Strengthen local "insn" from rtx to rtx_insn *, for use when
2893 invoking requires_stack_frame_p.
2894
2895 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2896
2897 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2898 rtx_insn *.
2899 (speculate_expr): Likewise for locals "orig_insn_rtx",
2900 "spec_insn_rtx".
2901 (eq_transformed_insns): Likewise for locals "i1", "i2".
2902 (check_for_new_jump): Likewise for return type and local "end".
2903 (find_new_jump): Likewise for return type and local "jump".
2904 (sel_split_edge): Likewise for local "jump".
2905 (sel_create_recovery_block): Likewise.
2906 (sel_redirect_edge_and_branch_force): Likewise.
2907 (sel_redirect_edge_and_branch): Likewise.
2908
2909 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2910
2911 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2912 "new_insn" from rtx to rtx_insn *.
2913 (create_insn_rtx_with_rhs): Likewise for return type and for local
2914 "insn_rtx".
2915 (create_insn_rtx_with_lhs): Likewise.
2916 (create_speculation_check): Likewise for local "insn_rtx".
2917 (implicit_clobber_conflict_p): Likewise for local "insn".
2918 (get_expr_cost): Likewise.
2919 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2920 (move_cond_jump): Likewise for locals "next", "prev", "link",
2921 "head", "from", "to".
2922
2923 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2924
2925 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2926 "next" from rtx to rtx_insn *.
2927 (find_conditional_protection): Likewise for local "next".
2928 (is_conditionally_protected): Likewise for local "insn1".
2929 (is_pfree): Likewise for locals "insn1", "insn2".
2930
2931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2932
2933 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2934 from rtx to rtx_insn *.
2935
2936 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2937 locals "insn1", "insn2" from rtx to rtx_insn *.
2938 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2939 locals "insn", "prev", "last_jump", "next_tail".
2940 (schedule_ebb): Likewise for params "head", "tail".
2941 (schedule_ebbs): Likewise for locals "tail", "head".
2942
2943 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2944 to rtx_insn on "last_insn" in one of the invocations of
2945 schedule_ebb.
2946
2947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2948
2949 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2950 "elem", "insn" from rtx to rtx_insn *.
2951 (change_spec_dep_to_hard): Likewise.
2952 (get_back_and_forw_lists): Likewise for local "con".
2953 (sd_add_dep): Likewise for locals "elem", "insn".
2954 (sd_resolve_dep): Likewise for locals "pro", "con".
2955 (sd_unresolve_dep): Likewise.
2956 (sd_delete_dep): Likewise.
2957 (chain_to_prev_insn): Likewise for local "pro".
2958 (find_inc): Likewise for locals "pro", "con".
2959
2960 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2961
2962 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2963 to rtx_insn *.
2964 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2965 const rtx_insn *.
2966 (modified_between_p): Strengthen local "insn" from rtx to
2967 rtx_insn *.
2968 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2969 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2970 const rtx_insn *.
2971
2972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2973
2974 * resource.c (next_insn_no_annul): Strengthen local "next" from
2975 rtx to rtx_insn *.
2976 (mark_referenced_resources): Likewise for local "insn".
2977
2978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2979
2980 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2981 to rtx_insn *.
2982 (find_reloads): Likewise for param 1.
2983 (subst_reloads): Likewise for sole param.
2984 (find_equiv_reg): Likwise for param 2.
2985 (regno_clobbered_p): Likwise for param 2.
2986 (reload): Likewise for param 1.
2987
2988 * caller-save.c (save_call_clobbered_regs): Strengthen local
2989 "insn" from rtx to rtx_insn *.
2990 (insert_one_insn): Likewise for local "insn".
2991
2992 * reload.c (this_insn): Likewise for this global.
2993 (find_reloads): Likewise for param "insn".
2994 (find_reloads_toplev): Likewise.
2995 (find_reloads_address): Likewise.
2996 (subst_reg_equivs): Likewise.
2997 (update_auto_inc_notes): Likewise.
2998 (find_reloads_address_1): Likewise.
2999 (find_reloads_subreg_address): Likewise.
3000 (subst_reloads): Likewise.
3001 (find_equiv_reg): Likewise, also for local "p".
3002 (regno_clobbered_p): Likewise for param "insn".
3003
3004 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3005 array.
3006 (spill_reg_store): Likewise for the elements of this array.
3007 (remove_init_insns): Likewise for local "equiv_insn".
3008 (will_delete_init_insn_p): Likewise for param "insn".
3009 (reload): Likewise for param ""first" and local "insn".
3010 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3011 rtx_insn *.
3012 (calculate_elim_costs_all_insns): Likewise.
3013 (delete_caller_save_insns): Likewise.
3014 (spill_failure): Likewise for param "insn".
3015 (delete_dead_insn): Likewise.
3016 (set_label_offsets): Likewise.
3017 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3018 "prev_insn".
3019 (elimination_costs_in_insn): Likewise for param "insn".
3020 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3021 when referring to an insn.
3022 (set_initial_label_offsets): Likewise.
3023 (set_offsets_for_label): Strengthen param "insn" from rtx to
3024 rtx_insn *.
3025 (init_eliminable_invariants): Likewise for param "first" and local
3026 "insn".
3027 (fixup_eh_region_note): Likewise for param "insn".
3028 (reload_as_needed): Likewise for locals "prev", "insn",
3029 "old_next", "old_prev", "next".
3030 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3031 "last".
3032 (reload_inheritance_insn): Strengthen elements of this array from
3033 rtx to rtx_insn *.
3034 (failed_reload): Likewise for param "insn".
3035 (choose_reload_regs): Likewise for local "insn". Replace use of
3036 NULL_RTX with NULL when referring to an insn.
3037 (input_reload_insns): Strengthen elements of this array from rtx
3038 to rtx_insn *.
3039 (other_input_address_reload_insns): Likewise for this global.
3040 (other_input_reload_insns): Likewise for this global.
3041 (input_address_reload_insns): Likwise for the elements of this
3042 array.
3043 (inpaddr_address_reload_insns): Likwise for the elements of this
3044 array.
3045 (output_reload_insns): Likewise for the elements of this array.
3046 (output_address_reload_insns): Likewise for the elements of this
3047 array.
3048 (outaddr_address_reload_insns): Likewise for the elements of this
3049 array.
3050 (operand_reload_insns): Likewise for this global.
3051 (other_operand_reload_insns): Likewise for this global.
3052 (other_output_reload_insns): Likewise for the elements of this
3053 array.
3054 (new_spill_reg_store): Likewise for the elements of this
3055 array.
3056 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3057 Strengthen local "where" from rtx * to rtx_insn **.
3058 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3059 from rtx to rtx_insn *.
3060 (do_input_reload): Likewise for local "insn".
3061 (do_output_reload): Likewise for local "insn".
3062 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3063 (emit_insn_if_valid_for_reload): Likewise for return type and local
3064 "last". Add checked cast to rtx_insn when returning "insn" since
3065 this has been through emit_insn.
3066 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3067 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3068 returning "insn" since it's been through
3069 emit_insn_if_valid_for_reload at this point.
3070 (delete_output_reload): Strengthen param "insn" and locals
3071 "output_reload_insn", "i2" from rtx to rtx_insn *.
3072 (delete_address_reloads): Likewise for params "dead_insn",
3073 "current_insn" and locals "prev", "next".
3074 (delete_address_reloads_1): Likewise for params "dead_insn",
3075 "current_insn" and locals "prev", "i2".
3076 (inc_for_reload): Likewise for locals "last", "add_insn".
3077 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3078 rtx_insn *.
3079
3080 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3081 param of this duplicate of the prototype from reload.h
3082
3083 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3084
3085 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3086 rtx to rtx_insn *.
3087 (regstat_bb_compute_calls_crossed): Likewise.
3088
3089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3090
3091 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3092 to rtx_insn *.
3093 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3094 with an insn.
3095 (regrename_analyze): Strengthen local "insn" from rtx to
3096 rtx_insn *.
3097 (scan_rtx_reg): Likewise for param "insn".
3098 (scan_rtx_address): Likewise.
3099 (scan_rtx): Likewise.
3100 (restore_operands): Likewise.
3101 (record_out_operands): Likewise.
3102 (build_def_use): Likewise for local "insn". Replace use of
3103 NULL_RTX with NULL when dealing with an insn.
3104
3105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3106
3107 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3108 * reginfo.c (reg_scan): Likewise, also for local "insn".
3109 (reg_scan_mark_refs): Likewise for param "insn".
3110 (init_subregs_of_mode): Likewise for local "insn".
3111
3112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3113
3114 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3115 "insn" from rtx to rtx_insn *.
3116 (replace_oldest_value_reg): Likewise for param "insn".
3117 (replace_oldest_value_addr): Likewise.
3118 (replace_oldest_value_mem): Likewise.
3119 (apply_debug_insn_changes): Likewise for local "last_insn".
3120 (copyprop_hardreg_forward_1): Likewise for local "insn".
3121
3122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3123
3124 * reg-stack.c (next_flags_user): Strengthen return type and param
3125 "insn" from rtx to rtx_insn *.
3126 (straighten_stack): Likewise for param "insn".
3127 (check_asm_stack_operands): Likewise.
3128 (remove_regno_note): Likewise.
3129 (emit_pop_insn): Likewise for return type, param "insn", local
3130 "pop_insn".
3131 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3132 "limit" from rtx to rtx_insn *.
3133 (swap_to_top): Likewise for param "insn".
3134 (move_for_stack_reg): Likewise.
3135 (move_nan_for_stack_reg): Likewise.
3136 (swap_rtx_condition): Likewise.
3137 (compare_for_stack_reg): Likewise.
3138 (subst_all_stack_regs_in_debug_insn): Likewise.
3139 (subst_stack_regs_pat): Likewise, and local "insn2".
3140 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3141 rtx_insn *.
3142 (subst_stack_regs): Likewise.
3143 (change_stack): Likewise.
3144 (convert_regs_1): Likewise for locals "insn", "next".
3145
3146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3147
3148 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3149 rtx_insn *.
3150 (combine_set_extension): Likewise for param "curr_insn".
3151 (transform_ifelse): Likewise for param "def_insn".
3152 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3153 from vec<rtx> * to vec<rtx_insn *> *.
3154 (is_cond_copy_insn): Likewise for param "insn".
3155 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3156 to vec<rtx_insn *>.
3157 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3158 local "def_insn" from rtx to rtx_insn *.
3159 (get_sub_rtx): Likewise for param "def_insn".
3160 (merge_def_and_ext): Likewise.
3161 (combine_reaching_defs): Likewise.
3162 (add_removable_extension): Likewise for param "insn".
3163 (find_removable_extensions): Likewise for local "insn".
3164 (find_and_remove_re): Likewise for locals "curr_insn" and
3165 "def_insn". Strengthen locals "reinsn_del_list" and
3166 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3167
3168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3169
3170 * recog.c (split_insn): Strengthen param "insn" and locals
3171 "first", "last" from rtx to rtx_insn *.
3172 (split_all_insns): Likewise for locals "insn", "next".
3173 (split_all_insns_noflow): Likewise.
3174
3175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3176
3177 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3178 const rtx_insn *.
3179 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3180 (debug_rtx_find): Likewise for param 1 "x".
3181
3182 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3183 const_rtx to const rtx_insn *. Likewise for local "insn".
3184 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3185 (debug_rtx_find): Likewise for param 1 "x".
3186 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3187 from const_rtx to const rtx_insn * within the appropriate cases of
3188 the switch statement.
3189
3190 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3191 Strengthen local "insns" from rtx to rtx_insn * since this is
3192 passed to a call to debug_rtx_list.
3193
3194 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3195
3196 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3197 to rtx_insn *.
3198
3199 * function.c (stack_protect_epilogue): Add checked cast to
3200 rtx_insn for now when invoking predict_insn_def.
3201
3202 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3203 rtx_insn *.
3204 (predict_insn_def): Likewise.
3205 (rtl_predict_edge): Likewise for local "last_insn".
3206 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3207 const rtx_insn *.
3208 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3209 to rtx_insn *.
3210 (bb_estimate_probability_locally): Likewise for local "last_insn".
3211 (expensive_function_p): Likewise for local "insn".
3212
3213 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3214 local "jmp", since this is used when invoking predict_insn_def.
3215
3216 2014-08-22 Marek Polacek <polacek@redhat.com>
3217
3218 PR c++/62199
3219 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3220
3221 2014-08-22 Marek Polacek <polacek@redhat.com>
3222
3223 PR c/61271
3224 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3225 a comparison in parens.
3226 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3227 in parens.
3228
3229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3230
3231 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3232 rtx_insn *.
3233
3234 * cprop.c (fis_get_condition): Likewise.
3235
3236 * postreload.c (reload_cse_regs): Likewise for param "first".
3237 (reload_cse_simplify): Likewise for param "insn".
3238 (reload_cse_regs_1): Likewise for local "insn".
3239 (reload_cse_simplify_set): Likewise for param "insn".
3240 (reload_cse_simplify_operands): Likewise.
3241 (struct reg_use): Likewise for field "insn".
3242 (reload_combine_purge_insn_uses): Likewise for param "insn".
3243 (fixup_debug_insns): Likewise for params "from", "to" and local
3244 "insn".
3245 (try_replace_in_use): Likewise for local "use_insn".
3246 (reload_combine_recognize_const_pattern): Likewise for param
3247 "insn" and locals "add_moved_after_insn", "use_insn".
3248 (reload_combine_recognize_pattern): Likewise for param "insn" and
3249 local "prev".
3250 (reload_combine): Likewise for locals "insn", "prev".
3251 (reload_combine_note_use): Likewise for param "insn".
3252 (move2add_use_add2_insn): Likewise.
3253 (move2add_use_add3_insn): Likewise.
3254 (reload_cse_move2add): Likewise, also for local "next".
3255 (move2add_note_store): Likewise for local "insn".
3256
3257 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3258
3259 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3260 rtx to rtx_insn *.
3261 (struct unoccr): Likewise.
3262 (struct modifies_mem): Likewise.
3263 (alloc_mem): Likewise for local "insn".
3264 (insert_expr_in_table): Likewise for param "insn".
3265 (dump_expr_hash_table_entry): Likewise for local "insn".
3266 (oprs_unchanged_p): Likewise for param "insn".
3267 (load_killed_in_block_p): Likewise for local "setter".
3268 (record_last_reg_set_info): Likewise for param "insn".
3269 (record_last_reg_set_info_regno): Likewise.
3270 (record_last_mem_set_info): Likewise.
3271 (record_last_set_info): Likewise for local "last_set_insn".
3272 (record_opr_changes): Likewise for param "insn".
3273 (hash_scan_set): Likewise.
3274 (compute_hash_table): Likewise for local "insn".
3275 (get_avail_load_store_reg): Likewise for param "insn".
3276 (eliminate_partially_redundant_load): Likewise, also for locals
3277 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3278 RTX for insns.
3279 (eliminate_partially_redundant_loads): Likewise for local "insn".
3280
3281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3282
3283 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3284 rtx to rtx_insn *.
3285 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3286 (expand_twoval_unop): Likewise for locals entry_last", "last".
3287 (expand_twoval_binop): Likewise.
3288 (expand_twoval_binop_libfunc): Likewise for local "insns".
3289 (widen_leading): Likewise for local "last".
3290 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3291 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3292 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3293 (expand_parity): Likewise for locals "last" and "seq".
3294 (expand_ffs): Likewise for local "seq". Strengthen local
3295 "nonzero_label" from rtx to rtx_code_label *.
3296 (expand_absneg_bit): Strengthen local "insns" from rtx to
3297 rtx_insn *.
3298 (expand_unop_direct): Likewise for local "last".
3299 (expand_unop): Likewise for locals "last", "insns".
3300 (expand_abs_nojump): Likewise for local "last".
3301 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3302 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3303 rtx_insn *.
3304 (expand_copysign_absneg): Strengthen local "label" from rtx to
3305 rtx_code_label *.
3306 (expand_copysign_bit): Strengthen local "insns" from rtx to
3307 rtx_insn *.
3308 (struct no_conflict_data): Likewise for fields "first", "insn".
3309 (emit_libcall_block_1): Likewise for param "insns" and locals
3310 "next", "last", "insn".
3311 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3312 on "insns" when invoking emit_libcall_block_1. Ultimately we
3313 want to strengthen insns itself.
3314 (prepare_cmp_insn): Strengthen local "last" from rtx to
3315 rtx_insn *.
3316 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3317 (prepare_float_lib_cmp): Likewise for local "insns".
3318 (emit_conditional_move): Likewise for local "last".
3319 (emit_conditional_add): Likewise.
3320 (have_sub2_insn): Likewise for local "seq".
3321 (expand_float): Likewise for local "insns". Strengthen locals
3322 "label", "neglabel" from rtx to rtx_code_label *.
3323 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3324 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3325 (expand_fixed_convert): Likewise for local "insns" (to
3326 rtx_insn *).
3327 (expand_sfix_optab): Likewise for local "last".
3328 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3329 to rtx_code_label *.
3330 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3331 from rtx to rtx_insn *.
3332 (expand_atomic_fetch_op): Likewise for local "insn".
3333 (maybe_legitimize_operand_same_code): Likewise for local "last".
3334 (maybe_legitimize_operands): Likewise.
3335
3336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3337
3338 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3339 "insn" from rtx to rtx_insn *.
3340 (ps_rtl_insn): Likewise for return type.
3341 (doloop_register_get): Likewise for params "head", "tail" and
3342 locals "insn", "first_insn_not_to_check".
3343 (schedule_reg_move): Likewise for local "this_insn".
3344 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3345 of gen_move_insn for now.
3346 (reset_sched_times): Strengthen local "insn" from rtx to
3347 rtx_insn *.
3348 (permute_partial_schedule): Likewise.
3349 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3350 (dump_insn_location): Likewise for param "insn".
3351 (loop_canon_p): Likewise for local "insn".
3352 (sms_schedule): Likewise.
3353 (print_partial_schedule): Likewise.
3354 (ps_has_conflicts): Likewise.
3355
3356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3357
3358 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3359 "tailp" from rtx * to rtx_insn **.
3360
3361 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3362 from rtx to rtx_insn *.
3363 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3364 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3365 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3366 rtx to rtx_insn *.
3367 * modulo-sched.c (const_iteration_count): Strengthen return type
3368 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3369 use of NULL_RTX with NULL when working with insns.
3370 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3371 to rtx_insn *.
3372 (sms_schedule): Likewise.
3373 * sched-rgn.c (init_ready_list): Likewise, also for locals
3374 "src_head" and "src_next_tail".
3375 (compute_block_dependences): Likewise.
3376 (free_block_dependencies): Likewise.
3377 (debug_rgn_dependencies): Likewise.
3378 (free_rgn_deps): Likewise.
3379 (compute_priorities): Likewise.
3380 (schedule_region): Likewise.
3381 * sel-sched.c (find_ebb_boundaries): Likewise.
3382
3383 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3384 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3385
3386 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3387
3388 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3389 from rtx to rtx_insn *.
3390 (new_seginfo): Likewise for param "insn".
3391 (create_pre_exit): Likewise for locals "last_insn",
3392 "before_return_copy", "return_copy".
3393 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3394 "mode_set".
3395
3396 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3397
3398 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3399 from rtx to rtx_insn *.
3400 (lra_push_insn): Likewise for 1st param.
3401 (lra_push_insn_and_update_insn_regno_info): Likewise.
3402 (lra_pop_insn): Likewise for return type.
3403 (lra_invalidate_insn_data): Likewise for 1st param.
3404 (lra_set_insn_deleted): Likewise.
3405 (lra_delete_dead_insn): Likewise.
3406 (lra_process_new_insns): Likewise for first 3 params.
3407 (lra_set_insn_recog_data): Likewise for 1st param.
3408 (lra_update_insn_recog_data): Likewise.
3409 (lra_set_used_insn_alternative): Likewise.
3410 (lra_invalidate_insn_regno_info): Likewise.
3411 (lra_update_insn_regno_info): Likewise.
3412 (lra_former_scratch_operand_p): Likewise.
3413 (lra_eliminate_regs_1): Likewise.
3414 (lra_get_insn_recog_data): Likewise.
3415
3416 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3417 rtx to rtx_insn *.
3418
3419 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3420 "mv1" and "mv2".
3421 (substitute_within_insn): New.
3422 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3423 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3424 Replace call to "substitute" with call to substitute_within_insn.
3425
3426 * lra-constraints.c (curr_insn): Strengthen from rtx to
3427 rtx_insn *.
3428 (get_equiv_with_elimination): Likewise for param "insn".
3429 (match_reload): Strengthen params "before" and "after" from rtx *
3430 to rtx_insn **.
3431 (emit_spill_move): Likewise for return type. Add a checked cast
3432 to rtx_insn * on result of gen_move_insn for now.
3433 (check_and_process_move): Likewise for local "before". Replace
3434 NULL_RTX with NULL when referring to insns.
3435 (process_addr_reg): Strengthen params "before" and "after" from
3436 rtx * to rtx_insn **.
3437 (insert_move_for_subreg): Likewise.
3438 (simplify_operand_subreg): Strengthen locals "before" and "after"
3439 from rtx to rtx_insn *.
3440 (process_address_1): Strengthen params "before" and "after" from
3441 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3442 rtx to rtx_insn *.
3443 (process_address): Strengthen params "before" and "after" from
3444 rtx * to rtx_insn **.
3445 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3446 (curr_insn_transform): Strengthen locals "before" and "after"
3447 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3448 to insns.
3449 (loc_equivalence_callback): Update cast of "data", changing
3450 resulting type from rtx to rtx_insn *.
3451 (substitute_pseudo_within_insn): New.
3452 (inherit_reload_reg): Strengthen param "insn" from rtx to
3453 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3454 NULL when referring to insns. Add a checked cast to rtx_insn *
3455 when using usage_insn to invoke lra_update_insn_regno_info.
3456 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3457 likewise for locals "restore", "save". Add checked casts to
3458 rtx_insn * when using usage_insn to invoke
3459 lra_update_insn_regno_info and lra_process_new_insns. Replace
3460 NULL_RTX with NULL when referring to insns.
3461 (split_if_necessary): Strengthen param "insn" from rtx to
3462 rtx_insn *.
3463 (update_ebb_live_info): Likewise for params "head", "tail" and local
3464 "prev_insn".
3465 (get_last_insertion_point): Likewise for return type and local "insn".
3466 (get_live_on_other_edges): Likewise for local "last".
3467 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3468 "prev_insn", "next_insn", "restore".
3469 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3470 (undo_optional_reloads): Likewise for local "insn".
3471
3472 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3473 "insn".
3474 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3475 insns.
3476 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3477 rtx_insn *.
3478 (spill_pseudos): Likewise for local "insn".
3479 (init_elimination): Likewise.
3480 (process_insn_for_elimination): Likewise for param "insn".
3481
3482 * lra-lives.c (curr_insn): Likewise.;
3483
3484 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3485 (remove_pseudos): Likewise for param "insn".
3486 (spill_pseudos): Likewise for local "insn".
3487 (lra_final_code_change): Likewise for locals "insn", "curr".
3488
3489 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3490 (lra_set_insn_deleted): Likewise.
3491 (lra_delete_dead_insn): Likewise, and for local "prev".
3492 (new_insn_reg): Likewise for param "insn".
3493 (lra_set_insn_recog_data): Likewise.
3494 (lra_update_insn_recog_data): Likewise.
3495 (lra_set_used_insn_alternative): Likewise.
3496 (get_insn_freq): Likewise.
3497 (invalidate_insn_data_regno_info): Likewise.
3498 (lra_invalidate_insn_regno_info): Likewise.
3499 (lra_update_insn_regno_info): Likewise.
3500 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3501 vec<rtx_insn *>.
3502 (lra_push_insn_1): Strengthen param "insn" from rtx to
3503 rtx_insn *.
3504 (lra_push_insn): Likewise.
3505 (lra_push_insn_and_update_insn_regno_info): Likewise.
3506 (lra_pop_insn): Likewise for return type and local "insn".
3507 (push_insns): Likewise for params "from", "to", and local "insn".
3508 (setup_sp_offset): Likewise for params "from", "last" and locals
3509 "before", "insn".
3510 (lra_process_new_insns): Likewise for params "insn", "before",
3511 "after" and local "last".
3512 (struct sloc): Likewise for field "insn".
3513 (lra_former_scratch_operand_p): Likewise for param "insn".
3514 (remove_scratches): Likewise for locals "insn", "last".
3515 (check_rtl): Likewise for local "insn".
3516 (add_auto_inc_notes): Likewise for param "insn".
3517 (update_inc_notes): Likewise for local "insn".
3518 (lra): Replace NULL_RTX with NULL when referring to insn.
3519
3520 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3521
3522 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3523 to rtx_insn *.
3524 (resolve_reg_notes): Likewise.
3525 (resolve_simple_move): Likewise for return type, param "insn", and
3526 locals "insns", "minsn".
3527 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3528 (resolve_use): Likewise.
3529 (resolve_debug): Likewise.
3530 (find_decomposable_shift_zext): Likewise.
3531 (resolve_shift_zext): Likewise for return type, param "insn", and
3532 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3533 (decompose_multiword_subregs): Likewise for local "insn",
3534 "orig_insn", "decomposed_shift", "end".
3535
3536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3537
3538 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3539 param "insns" from rtx to rtx_insn *.
3540
3541 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3542 rtx to rtx_insn *.
3543 (struct iv_to_split): Likewise.
3544 (loop_exit_at_end_p): Likewise for local "insn".
3545 (split_edge_and_insert): Likewise for param "insns".
3546 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3547 and locals "seq", "jump".
3548 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3549 "branch_code"; update invocations of compare_and_jump_seq to
3550 eliminate NULL_RTX in favor of NULL.
3551 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3552 rtx to rtx_insn *.
3553 (reset_debug_uses_in_loop): Likewise.
3554 (analyze_insn_to_expand_var): Likewise for param "insn".
3555 (analyze_iv_to_split_insn): Likewise.
3556 (analyze_insns_in_loop): Likewise for local "insn".
3557 (insert_base_initialization): Likewise for param
3558 "insn" and local "seq".
3559 (split_iv): Likewise for param "insn" and local "seq".
3560 (expand_var_during_unrolling): Likewise for param "insn".
3561 (insert_var_expansion_initialization): Likewise for local "seq".
3562 (combine_var_copies_in_loop_exit): Likewise.
3563 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3564 "insn".
3565 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3566 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3567 "next".
3568
3569 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3570
3571 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3572 rtx_insn *.
3573 (iv_analyze_result): Likewise.
3574 (iv_analyze_expr): Likewise.
3575 (biv_p): Likewise.
3576
3577 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3578 local "def_insn" from rtx to rtx_insn *.
3579 (get_biv_step_1): Likewise for local "insn".
3580 (iv_analyze_expr): Likewise for param "insn".
3581 (iv_analyze_def): Likewise for local "insn".
3582 (iv_analyze_op): Likewise for param "insn".
3583 (iv_analyze): Likewise.
3584 (iv_analyze_result): Likewise.
3585 (biv_p): Likewise.
3586 (suitable_set_for_replacement): Likewise.
3587 (simplify_using_initial_values): Likewise for local "insn".
3588 (iv_number_of_iterations): Likewise for param "insn".
3589 (check_simple_exit): Add checked cast to rtx_insn when invoking
3590 iv_number_of_iterations for now (until get_condition is
3591 strengthened).
3592
3593 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3594 "insn" from rtx to rtx_insn *.
3595 (analyze_insns_in_loop): Likewise for local "insn".
3596
3597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3598
3599 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3600 to rtx_insn *.
3601 (struct invariant): Likewise.
3602 (hash_invariant_expr_1): Likewise for param "insn".
3603 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3604 (find_exits): Likewise for local "insn".
3605 (create_new_invariant): Likewise for param "insn".
3606 (check_dependencies): Likewise.
3607 (find_invariant_insn): Likewise.
3608 (record_uses): Likewise.
3609 (find_invariants_insn): Likewise.
3610 (find_invariants_bb): Likewise for local "insn".
3611 (get_pressure_class_and_nregs): Likewise for param "insn".
3612 (calculate_loop_reg_pressure): Likewise for local "insn".
3613
3614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3615
3616 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3617 to rtx_insn *.
3618 (add_test): Likewise for locals "seq", "jump".
3619 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3620
3621 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3622
3623 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3624 rtx_insn *.
3625 (rebuild_jump_labels_chain): Likewise for param "chain".
3626
3627 * cfgexpand.c (pass_expand::execute): Add checked cast to
3628 rtx_insn * when calling rebuild_jump_labels_chain in region where
3629 we know e->insns.r is non-NULL.
3630
3631 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3632 rtx_insn *.
3633 (rebuild_jump_labels): Likewise.
3634 (rebuild_jump_labels_chain): Likewise for param "chain".
3635 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3636 (init_label_info): Likewise for param "f".
3637 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3638 "prev_nonjump_insn".
3639 (mark_all_labels): Likewise for param "f" and locals "insn",
3640 "prev_nonjump_insn".
3641
3642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3643
3644 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3645 from rtx to rtx_insn *insn.
3646 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3647 (ira_add_allocno_copy): Likewise.
3648 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3649 rtx to rtx_insn *.
3650 (ira_create_copy): Likewise.
3651 (ira_add_allocno_copy): Likewise.
3652 (create_bb_allocnos): Likewise for local "insn".
3653 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3654 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3655 process_regs_for_copy for rtx_insn * param.
3656 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3657 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3658 process_regs_for_copy for rtx_insn * param.
3659 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3660 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3661 (record_operand_costs): Likewise.
3662 (scan_one_insn): Likewise for return type, and for param "insn".
3663 (process_bb_for_costs): Likewise for local "insn".
3664 (process_bb_node_for_hard_reg_moves): Likewise.
3665 * ira-emit.c (struct move): Likewise for field "insn".
3666 (create_move): Eliminate use of NULL_RTX when dealing with an
3667 rtx_insn *.
3668 (emit_move_list): Strengthen return type and locals "result",
3669 "insn" from rtx to rtx_insn *insn.
3670 (emit_moves): Likewise for locals "insns", "tmp".
3671 (ira_emit): Likewise for local "insn".
3672 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3673 "insn".
3674 (find_call_crossed_cheap_reg): Likewise.
3675 (process_bb_node_lives): Likewise for local "insn".
3676 * ira.c (decrease_live_ranges_number): Likewise.
3677 (compute_regs_asm_clobbered): Likewise.
3678 (build_insn_chain): Likewise.
3679 (find_moveable_pseudos): Likewise, also locals "def_insn",
3680 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3681 to rtx_insn **. Add a checked cast when assigning from
3682 "closest_use" into closest_uses array in a region where we know
3683 it's a non-NULL insn.
3684 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3685 to rtx_insn *.
3686 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3687 "last_interesting_insn", "uin".
3688 (move_unallocated_pseudos): Likewise for locals "def_insn",
3689 "move_insn", "newinsn".
3690
3691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3692
3693 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3694 Strengthen locals "done_label", "do_error" from rtx to
3695 rtx_code_label *.
3696 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3697 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3698 rtx_code_label *.
3699 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3700 "done_label", "do_error" to rtx_code_label * and local "last" to
3701 rtx_insn *.
3702 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3703 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3704 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3705 "after_lopart_neg", "do_overflow", "hipart_different" to
3706 rtx_code_label * and local "last" to rtx_insn *.
3707
3708 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3709
3710 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3711 "insn" and "move_insn" from rtx to rtx_insn *.
3712
3713 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3714
3715 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3716 rtx_insn *.
3717 (cheap_bb_rtx_cost_p): Likewise.
3718 (first_active_insn): Likewise for return type and local "insn".
3719 (last_active_insn): Likewise for return type and locals "insn",
3720 "head".
3721 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3722 "insn_b".
3723 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3724 "seq".
3725 (noce_try_move): Likewise for local "seq".
3726 (noce_try_store_flag): Likewise.
3727 (noce_try_store_flag_constants): Likewise.
3728 (noce_try_addcc): Likewise.
3729 (noce_try_store_flag_mask): Likewise.
3730 (noce_try_cmove): Likewise.
3731 (noce_try_minmax): Likewise.
3732 (noce_try_abs): Likewise.
3733 (noce_try_sign_mask): Likewise.
3734 (noce_try_bitop): Likewise.
3735 (noce_can_store_speculate_p): Likewise for local "insn".
3736 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3737 seq".
3738 (check_cond_move_block): Likewise for local "insn".
3739 (cond_move_convert_if_block): Likewise.
3740 (cond_move_process_if_block): Likewise for locals "seq",
3741 "loc_insn".
3742 (noce_find_if_block): Likewise for local "jump".
3743 (merge_if_block): Likewise for local "last".
3744 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3745 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3746 (block_has_only_trap): Likewise for return type and local "trap".
3747 (find_if_case_1): Likewise for local "jump".
3748 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3749 "insn".
3750
3751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3752
3753 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3754 "last_insn", "loop_end" from rtx to rtx_insn *.
3755
3756 * hw-doloop.c (scan_loop): Likewise for local "insn".
3757 (discover_loop): Likewise for param "tail_insn".
3758 (discover_loops): Likewise for local "tail".
3759
3760 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3761 cast to rtx_insn * when assigning from an rtx local to a
3762 hwloop_info's "last_insn" field.
3763
3764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3765
3766 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3767 (add_delay_dependencies): Strengthen local "pro" from rtx to
3768 rtx_insn *.
3769 (recompute_todo_spec): Likewise.
3770 (dep_cost_1): Likewise for locals "insn", "used".
3771 (schedule_insn): Likewise for local "dbg".
3772 (schedule_insn): Likewise for locals "pro", "next".
3773 (unschedule_insns_until): Likewise for local "con".
3774 (restore_pattern): Likewise for local "next".
3775 (estimate_insn_tick): Likewise for local "pro".
3776 (resolve_dependencies): Likewise for local "next".
3777 (fix_inter_tick): Likewise.
3778 (fix_tick_ready): Likewise for local "pro".
3779 (add_to_speculative_block): Likewise for locals "check", "twin",
3780 "pro".
3781 (sched_extend_bb): Likewise for locals "end", "insn".
3782 (init_before_recovery): Likewise for local "x".
3783 (sched_create_recovery_block): Likewise for local "barrier".
3784 (create_check_block_twin): Likewise for local "pro".
3785 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3786 "consumer".
3787 (unlink_bb_notes): Update for change to type of bb_header.
3788 Strengthen locals "prev", "label", "note", "next" from rtx to
3789 rtx_insn *.
3790 (clear_priorities): Likewise for local "pro".
3791
3792 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3793
3794 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3795 rtx_insn *.
3796 (test_insn): Likewise for this global.
3797 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3798 const rtx_insn *.
3799 (oprs_anticipatable_p): Likewise.
3800 (oprs_available_p): Likewise.
3801 (insert_expr_in_table): Strengthen param "insn" from rtx to
3802 rtx_insn *.
3803 (hash_scan_set): Likewise.
3804 (hash_scan_clobber): Likewise.
3805 (hash_scan_call): Likewise.
3806 (hash_scan_insn): Likewise.
3807 (compute_hash_table_work): Likewise for local "insn".
3808 (process_insert_insn): Likewise for return type and local "pat".
3809 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3810 "pat", "pat_end", "maybe_cc0_setter".
3811 (pre_edge_insert): Likewise for local "insn".
3812 (pre_insert_copy_insn): Likewise for param "insn".
3813 (pre_insert_copies): Likewise for local "insn".
3814 (struct set_data): Likewise for field "insn".
3815 (single_set_gcse): Likewise for param "insn".
3816 (gcse_emit_move_after): Likewise.
3817 (pre_delete): Likewise for local "insn".
3818 (update_bb_reg_pressure): Likewise for param "from" and local
3819 "insn".
3820 (should_hoist_expr_to_dom): Likewise for param "from".
3821 (hoist_code): Likewise for local "insn".
3822 (get_pressure_class_and_nregs): Likewise for param "insn".
3823 (calculate_bb_reg_pressure): Likewise for local "insn".
3824 (compute_ld_motion_mems): Likewise.
3825
3826 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3827
3828 * genpeep.c (main): Rename param back from "uncast_ins1" to
3829 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3830 checked cast.
3831
3832 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3833
3834 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3835
3836 PR target/62195
3837 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3838 documentation to state it is only for VSX operations.
3839
3840 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3841 constraint only active if VSX.
3842
3843 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3844 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3845 (lfiwzx): Likewise.
3846
3847 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3848
3849 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3850 Strengthen local "insn" from rtx to rtx_insn *.
3851 (use_killed_between): Likewise for param "target_insn".
3852 (all_uses_available_at): Likewise for param "target_insn" and
3853 local "next".
3854 (update_df_init): Likewise for params "def_insn", "insn".
3855 (update_df): Likewise for param "insn".
3856 (try_fwprop_subst): Likewise for param "def_insn" and local
3857 "insn".
3858 (free_load_extend): Likewise for param "insn".
3859 (forward_propagate_subreg): Likewise for param "def_insn" and
3860 local "use_insn".
3861 (forward_propagate_asm): Likewise for param "def_insn" and local
3862 "use_insn".
3863 (forward_propagate_and_simplify): Likewise for param "def_insn"
3864 and local "use_insn".
3865 (forward_propagate_into): Likewise for locals "def_insn" and
3866 "use_insn".
3867
3868 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3869
3870 * function.c (emit_initial_value_sets): Strengthen local "seq"
3871 from rtx to rtx_insn *.
3872 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3873 local "seq".
3874 (instantiate_virtual_regs): Likewise for local "insn".
3875 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3876 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3877 (expand_function_end): Likewise for locals "insn" and "seq".
3878 (epilogue_done): Likewise for local "insn".
3879 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3880 "last", "trial".
3881 (reposition_prologue_and_epilogue_notes): Likewise for locals
3882 "insn", "last", "note", "first".
3883 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3884 (pass_match_asm_constraints::execute): Likewise for local "insn".
3885
3886 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3887
3888 * output.h (final_scan_insn): Strengthen return type from rtx to
3889 rtx_insn *.
3890 (final_forward_branch_p): Likewise for param.
3891 (current_output_insn): Likewise for this global.
3892
3893 * final.c (rtx debug_insn): Likewise for this variable.
3894 (current_output_insn): Likewise.
3895 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3896 adding "insn" back in as an rtx_insn * with a checked cast, so
3897 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3898 first param.
3899 (compute_alignments): Strengthen local "label" from rtx to
3900 rtx_insn *.
3901 (shorten_branches): Rename param from "first" to "uncast_first",
3902 introducing a new local rtx_insn * "first" using a checked cast to
3903 effectively strengthen "first" from rtx to rtx_insn * without
3904 affecting the type signature. Strengthen locals "insn", "seq",
3905 "next", "label" from rtx to rtx_insn *.
3906 (change_scope): Strengthen param "orig_insn" and local "insn" from
3907 rtx to rtx_insn *.
3908 (final_start_function): Rename param from "first" to "uncast_first",
3909 introducing a new local rtx_insn * "first" using a checked cast to
3910 effectively strengthen "first" from rtx to rtx_insn * without
3911 affecting the type signature. Strengthen local "insn" from rtx to
3912 rtx_insn *.
3913 (dump_basic_block_info): Strengthen param "insn" from rtx to
3914 rtx_insn *.
3915 (final): Rename param from "first" to "uncast_first",
3916 introducing a new local rtx_insn * "first" using a checked cast to
3917 effectively strengthen "first" from rtx to rtx_insn * without
3918 affecting the type signature. Strengthen locals "insn", "next"
3919 from rtx to rtx_insn *.
3920 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3921 rtx_insn *.
3922 (call_from_call_insn): Strengthen param "insn" from rtx to
3923 rtx_call_insn *.
3924 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3925 introducing a new local rtx_insn * "insn" using a checked cast to
3926 effectively strengthen "insn" from rtx to rtx_insn * without
3927 affecting the type signature. Strengthen return type and locals
3928 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3929 now-redundant checked cast to rtx_insn * from both invocations of
3930 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3931 introducing a local "call_insn" for use when invoking
3932 call_from_call_insn.
3933 (notice_source_line): Strengthen param "insn" from rtx to
3934 rtx_insn *.
3935 (leaf_function_p): Likewise for local "insn".
3936 (final_forward_branch_p): Likewise.
3937 (leaf_renumber_regs): Likewise for param "first".
3938 (rest_of_clean_state): Likewise for locals "insn" and "next".
3939 (self_recursive_call_p): Likewise for param "insn".
3940 (collect_fn_hard_reg_usage): Likewise for local "insn".
3941 (get_call_fndecl): Likewise for param "insn".
3942 (get_call_cgraph_rtl_info): Likewise.
3943 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3944 introducing a new local rtx_insn * "insn" using a checked cast to
3945 effectively strengthen "insn" from rtx to rtx_insn * without
3946 affecting the type signature.
3947
3948 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3949 cast when assigning from param "insn" to current_output_insn.
3950 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3951 so that we can assign it back to current_output_insn.
3952
3953 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3954
3955 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3956 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3957 atmxt540s and atmxt540sreva devices.
3958 * config/avr/avr-tables.opt: Regenerate.
3959 * config/avr/t-multilib: Regenerate.
3960 * doc/avr-mmcu.texi: Regenerate.
3961
3962 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3963
3964 * expr.c (convert_move): Strengthen local "insns" from rtx to
3965 rtx_insn *.
3966 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3967 "top_label" from rtx to rtx_code_label *.
3968 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3969 rtx_insn *.
3970 (emit_single_push_insn): Likewise for locals "prev", "last".
3971 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3972 to rtx_code_label *.
3973 (store_constructor): Likewise for locals "loop_start", "loop_end".
3974 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3975 rtx_insn *.
3976 (expand_expr_real_2): Likewise.
3977 (expand_expr_real_1): Strengthen local "label" from rtx to
3978 rtx_code_label *.
3979
3980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3981
3982 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3983 from rtx to rtx_insn *.
3984 (store_bit_field_1): Likewise.
3985 (extract_bit_field_1): Likewise.
3986 (expand_mult_const): Likewise for local "insns".
3987 (expmed_mult_highpart): Strengthen local "label" from rtx to
3988 rtx_code_label *.
3989 (expand_smod_pow2): Likewise.
3990 (expand_sdiv_pow2): Likewise.
3991 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3992 rtx_insn *. Strengthen locals "label", "label1", "label2",
3993 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3994 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3995 (emit_store_flag): Likewise.
3996 (emit_store_flag_force): Strengthen local "label" from rtx to
3997 rtx_code_label *.
3998 (do_cmp_and_jump): Likewise for param "label".
3999
4000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4001
4002 * explow.c (force_reg): Strengthen local "insn" from rtx to
4003 rtx_insn *.
4004 (adjust_stack_1): Likewise.
4005 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4006 "final_label", "available_label", "space_available" from rtx to
4007 rtx_code_label *.
4008 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4009 (anti_adjust_stack_and_probe): Likewise.
4010
4011 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4012
4013 * except.h (sjlj_emit_function_exit_after): Strengthen param
4014 "after" from rtx to rtx_insn *. This is only called with
4015 result of get_last_insn (in function.c) so type-change should be
4016 self-contained.
4017
4018 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4019 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4020 to rtx_insn *. These fields are only used from except.c so this
4021 type-change should be self-contained to this patch.
4022
4023 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4024 local "last" from rtx to rtx_insn *.
4025 (dw2_build_landing_pads): Likewise for local "seq".
4026 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4027 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4028 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4029 rtx to rtx_insn *.
4030 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4031 to rtx_insn *.
4032 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4033 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4034 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4035 referring to an insn. Strengthen local "dispatch_label" from
4036 rtx to rtx_code_label *.
4037 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4038 rtx_insn *.
4039 (expand_eh_return): Strengthen local "around_label" from
4040 rtx to rtx_code_label *.
4041 (convert_to_eh_region_ranges): Strengthen locals "iter",
4042 "last_action_insn", "first_no_action_insn",
4043 "first_no_action_insn_before_switch",
4044 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4045
4046 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4047
4048 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4049 from rtx to rtx_insn *.
4050 (cached_next_real_insn): Likewise.
4051 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4052 working with insns.
4053 (dwarf2out_var_location): Strengthen locals "next_real",
4054 "next_note", "expected_next_loc_note", "last_start", "insn" from
4055 rtx to rtx_insn *.
4056
4057 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4058
4059 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4060 from rtx to rtx_insn *.
4061 (create_pseudo_cfg): Likewise for local "insn".
4062
4063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4064
4065 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4066 from rtx to rtx_insn *.
4067 (df_bb_regno_last_def_find): Likewise.
4068
4069 * df-problems.c (df_rd_bb_local_compute): Likewise.
4070 (df_lr_bb_local_compute): Likewise.
4071 (df_live_bb_local_compute): Likewise.
4072 (df_chain_remove_problem): Likewise.
4073 (df_chain_create_bb): Likewise.
4074 (df_word_lr_bb_local_compute): Likewise.
4075 (df_remove_dead_eq_notes): Likewise for param "insn".
4076 (df_note_bb_compute): Likewise for local "insn".
4077 (simulate_backwards_to_point): Likewise.
4078 (df_md_bb_local_compute): Likewise.
4079
4080 * df-scan.c (df_scan_free_bb_info): Likewise.
4081 (df_scan_start_dump): Likewise.
4082 (df_scan_start_block): Likewise.
4083 (df_install_ref_incremental): Likewise for local "insn".
4084 (df_insn_rescan_all): Likewise.
4085 (df_reorganize_refs_by_reg_by_insn): Likewise.
4086 (df_reorganize_refs_by_insn_bb): Likewise.
4087 (df_recompute_luids): Likewise.
4088 (df_bb_refs_record): Likewise.
4089 (df_update_entry_exit_and_calls): Likewise.
4090 (df_bb_verify): Likewise.
4091
4092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4093
4094 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4095 "first_note" from rtx to rtx_insn *.
4096 (get_node_of_insn): Likewise for param 2 "insn".
4097 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4098
4099 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4100 rtx_insn *.
4101 (mem_write_insn_p): Likewise.
4102 (mem_access_insn_p): Likewise.
4103 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4104 (def_has_ccmode_p): Likewise for param "insn".
4105 (add_cross_iteration_register_deps): Likewise for locals
4106 "def_insn" and "use_insn".
4107 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4108 (build_intra_loop_deps): Likewise for local "src_insn".
4109 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4110 to rtx_insn *.
4111 (get_node_of_insn): Likewise for param "insn".
4112
4113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4114
4115 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4116 (deletable_insn_p): Strengthen param "insn" from rtx to
4117 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4118 find_call_stack_args, since this is guarded by CALL_P (insn).
4119 (marked_insn_p): Strengthen param "insn" from rtx to
4120 rtx_insn *.
4121 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4122 invoking find_call_stack_args, since this is guarded by
4123 CALL_P (insn).
4124 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4125 rtx_insn *; we know this is an insn since this was called by
4126 mark_nonreg_stores.
4127 (mark_nonreg_stores_2): Likewise.
4128 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4129 rtx_insn *.
4130 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4131 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4132 to rtx_insn *.
4133 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4134 from rtx to rtx_insn *.
4135 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4136 "next", "ref_insn".
4137 (delete_unmarked_insns): Likewise for locals "insn", "next".
4138 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4139 (mark_reg_dependencies): Likewise for param "insn".
4140 (rest_of_handle_ud_dce): Likewise for local "insn".
4141 (word_dce_process_block): Likewise.
4142 (dce_process_block): Likewise.
4143
4144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4145
4146 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4147 from rtx to rtx_insn *.
4148 (struct change_cc_mode_args): Likewise for field "insn".
4149 (this_insn): Strengthen from rtx to rtx_insn *.
4150 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4151 with insn.
4152 (validate_canon_reg): Strengthen param "insn" from rtx to
4153 rtx_insn *.
4154 (canon_reg): Likewise.
4155 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4156 dealing with insn.
4157 (record_jump_equiv): Strengthen param "insn" from rtx to
4158 rtx_insn *.
4159 (try_back_substitute_reg): Likewise, also for locals "prev",
4160 "bb_head".
4161 (find_sets_in_insn): Likewise for param "insn".
4162 (canonicalize_insn): Likewise.
4163 (cse_insn): Likewise. Add a checked cast.
4164 (invalidate_from_clobbers): Likewise for param "insn".
4165 (invalidate_from_sets_and_clobbers): Likewise.
4166 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4167 dealing with insn.
4168 (cse_prescan_path): Strengthen local "insn" from rtx to
4169 rtx_insn *.
4170 (cse_extended_basic_block): Likewise for locals "insn" and
4171 "prev_insn".
4172 (cse_main): Likewise for param "f".
4173 (check_for_label_ref): Likewise for local "insn".
4174 (set_live_p): Likewise for second param ("insn").
4175 (insn_live_p): Likewise for first param ("insn") and for local
4176 "next".
4177 (cse_change_cc_mode_insn): Likewise for first param "insn".
4178 (cse_change_cc_mode_insns): Likewise for first and second params
4179 "start" and "end".
4180 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4181 and "end".
4182 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4183 "cc_src_insn".
4184
4185 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4187 Anna Tikhonova <anna.tikhonova@intel.com>
4188 Ilya Tocar <ilya.tocar@intel.com>
4189 Andrey Turetskiy <andrey.turetskiy@intel.com>
4190 Ilya Verbin <ilya.verbin@intel.com>
4191 Kirill Yukhin <kirill.yukhin@intel.com>
4192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4193
4194 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4195 New.
4196 * config/i386/sse.md
4197 (define_mode_iterator VI248_AVX2): Delete.
4198 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4199 (define_mode_iterator VI48_AVX2): Ditto.
4200 (define_insn <shift_insn><mode>3): Delete.
4201 (define_insn "<shift_insn><mode>3<mask_name>" with
4202 VI2_AVX2_AVX512BW): New.
4203 (define_insn "<shift_insn><mode>3<mask_name>" with
4204 VI48_AVX2): Ditto.
4205
4206 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4207 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4208 Anna Tikhonova <anna.tikhonova@intel.com>
4209 Ilya Tocar <ilya.tocar@intel.com>
4210 Andrey Turetskiy <andrey.turetskiy@intel.com>
4211 Ilya Verbin <ilya.verbin@intel.com>
4212 Kirill Yukhin <kirill.yukhin@intel.com>
4213 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4214
4215 * config/i386/sse.md
4216 (define_mode_iterator VI4F_BRCST32x2): New.
4217 (define_mode_attr 64x2_mode): Ditto.
4218 (define_mode_attr 32x2mode): Ditto.
4219 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4220 with VI4F_BRCST32x2): Ditto.
4221 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4222 with V16FI mode iterator): Ditto.
4223 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4224 with V16FI): Ditto.
4225 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4226 with VI8F_BRCST64x2): Ditto.
4227
4228 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4230 Anna Tikhonova <anna.tikhonova@intel.com>
4231 Ilya Tocar <ilya.tocar@intel.com>
4232 Andrey Turetskiy <andrey.turetskiy@intel.com>
4233 Ilya Verbin <ilya.verbin@intel.com>
4234 Kirill Yukhin <kirill.yukhin@intel.com>
4235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4236
4237 * config/i386/sse.md
4238 (define_mode_iterator VI8_AVX512VL): New.
4239 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4240
4241 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4242
4243 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4244 (define_mode_iterator V48_AVX512VL): New.
4245 (define_mode_iterator V12_AVX512VL): Ditto.
4246 (define_insn <avx512>_load<mode>_mask): Split into two similar
4247 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4248 Refactor output template.
4249 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4250
4251 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4252
4253 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4254 rtx_insn *.
4255 (reg_available_p): Likewise for param "insn".
4256 (insert_set_in_table): Likewise.
4257 (hash_scan_set): Likewise.
4258 (hash_scan_insn): Likewise.
4259 (make_set_regs_unavailable): Likewise.
4260 (compute_hash_table_work): Likewise for local "insn".
4261 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4262 const rtx_insn *.
4263 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4264 (try_replace_reg): Likewise.
4265 (find_avail_set): Likewise.
4266 (cprop_jump): Likewise for params "setcc", "jump".
4267 (constprop_register): Likewise for param "insn".
4268 (cprop_insn): Likewise.
4269 (do_local_cprop): Likewise.
4270 (local_cprop_pass): Likewise for local "insn".
4271 (bypass_block): Likewise for params "setcc" and "jump".
4272 (bypass_conditional_jumps): Likewise for locals "setcc" and
4273 "insn".
4274 (one_cprop_pass): Likewise for local "insn".
4275
4276 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4277
4278 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4279 from rtx to rtx_insn *.
4280 (struct comparison): Likewise, also for field "prev_clobber".
4281 (conforming_compare): Likewise for param "insn".
4282 (arithmetic_flags_clobber_p): Likewise.
4283 (find_flags_uses_in_insn): Likewise.
4284 (find_comparison_dom_walker::before_dom_children): Likewise for
4285 locals "insn", "next", "last_clobber".
4286 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4287
4288 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4289
4290 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4291 "insn" from rtx to rtx_insn *.
4292 (single_set_for_csa): Likewise for param "insn".
4293 (record_one_stack_ref): Likewise.
4294 (try_apply_stack_adjustment): Likewise.
4295 (struct record_stack_refs_data): Likewise for field "insn".
4296 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4297 (prev_active_insn_bb): Likewise for return type and param "insn".
4298 (next_active_insn_bb): Likewise.
4299 (force_move_args_size_note): Likewise for params "prev" and "last"
4300 and locals "test", "next_candidate", "prev_candidate".
4301 (combine_stack_adjustments_for_block): Strengthen locals
4302 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4303 rtx_insn *.
4304
4305 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4306
4307 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4308 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4309 (subst_insn): Likewise for this variable.
4310 (added_links_insn): Likewise.
4311 (struct insn_link): Likewise for field "insn".
4312 (alloc_insn_link): Likewise for param "insn".
4313 (struct undobuf): Likewise for field "other_insn".
4314 (find_single_use): Likewise for param "insn" and local "next".
4315 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4316 (delete_noop_moves): Likewise for locals "insn", "next".
4317 (create_log_links): Likewise for locals "insn", "use_insn".
4318 Strengthen local "next_use" from rtx * to rtx_insn **.
4319 (insn_a_feeds_b): Likewise for params "a", "b".
4320 (combine_instructions): Likewise for param "f" and locals "insn",
4321 "next", "prev", "first", "last_combined_insn", "link", "link1",
4322 "temp". Replace use of NULL_RTX with NULL when referring to
4323 insns.
4324 (setup_incoming_promotions): Likewise for param "first"
4325 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4326 (can_combine_p): Likewise for params "insn", "i3", "pred",
4327 "pred2", "succ", "succ2" and for local "p".
4328 (combinable_i3pat): Likewise for param "i3".
4329 (cant_combine_insn_p): Likewise for param "insn".
4330 (likely_spilled_retval_p): Likewise.
4331 (adjust_for_new_dest): Likewise.
4332 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4333 (try_combine): Likewise for return type and for params "i3", "i2",
4334 "i1", "i0", "last_combined_insn", and for locals "insn",
4335 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4336 "i0_insn". Eliminate local "tem" in favor of new locals
4337 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4338 checked cast for now to rtx_insn * on the return type of
4339 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4340 insns.
4341 (find_split_point): Strengthen param "insn" from rtx to
4342 rtx_insn *.
4343 (simplify_set): Likewise for local "other_insn".
4344 (recog_for_combine): Likewise for param "insn".
4345 (record_value_for_reg): Likewise.
4346 (record_dead_and_set_regs_1): Likewise for local
4347 "record_dead_insn".
4348 (record_dead_and_set_regs): Likewise for param "insn".
4349 (record_promoted_value): Likewise.
4350 (check_promoted_subreg): Likewise.
4351 (get_last_value_validate): Likewise.
4352 (reg_dead_at_p): Likewise.
4353 (move_deaths): Likewise for param "to_insn".
4354 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4355 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4356 in favor of new locals "tem_note" and "tem_insn", the latter being
4357 an rtx_insn *.
4358 (distribute_links): Strengthen locals "place", "insn" from rtx to
4359 rtx_insn *.
4360
4361 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4362
4363 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4364 than a const_rtx.
4365 (can_delete_label_p): Require a const rtx_code_label * rather than
4366 a const_rtx.
4367 (delete_insn): Add checked cast to rtx_code_label * when we know
4368 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4369 rtx to rtx_insn *.
4370 (delete_insn_chain): Strengthen locals "prev" and "current" from
4371 rtx to rtx_insn *. Add a checked cast when assigning from
4372 "finish" (strengthening the params will come later). Add a
4373 checked cast to rtx_note * in region where we know
4374 NOTE_P (current).
4375 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4376 rtx_insn *.
4377 (compute_bb_for_insn): Likewise.
4378 (free_bb_for_insn): Likewise for local "insn".
4379 (compute_bb_for_insn): Likewise.
4380 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4381 local "insn" from rtx to rtx_insn *
4382 (flow_active_insn_p): Require a const rtx_insn * rather than a
4383 const_rtx.
4384 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4385 rtx_insn *.
4386 (can_fallthru): Likewise for locals "insn" and "insn2".
4387 (bb_note): Likewise for local "note".
4388 (first_insn_after_basic_block_note): Likewise for local "note" and
4389 for return type.
4390 (rtl_split_block): Likewise for locals "insn" and "next".
4391 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4392 "end".
4393 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4394 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4395 "prev", "tmp".
4396 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4397 them), "kill_from", "barrier", "new_insn".
4398 (patch_jump_insn): Likewise for params "insn", "old_label".
4399 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4400 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4401 "old_label", "new_label".
4402 (rtl_tidy_fallthru_edge): Likewise for local "q".
4403 (rtl_split_edge): Likewise for locals "before", "last".
4404 (commit_one_edge_insertion): Likewise for locals "before",
4405 "after", "insns", "tmp", "last", adding a checked cast where
4406 currently necessary.
4407 (commit_edge_insertions): Likewise.
4408 (rtl_dump_bb): Likewise for locals "insn", "last".
4409 (print_rtl_with_bb): Likewise for local "x".
4410 (rtl_verify_bb_insns): Likewise for local "x".
4411 (rtl_verify_bb_pointers): Likewise for local "insn".
4412 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4413 "head", "end".
4414 (rtl_verify_fallthru): Likewise for local "insn".
4415 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4416 (purge_dead_edges): Likewise for local "insn".
4417 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4418 (skip_insns_after_block): Likewise for return type and for locals
4419 "insn", "last_insn", "next_head", "prev".
4420 (record_effective_endpoints): Likewise for locals "next_insn",
4421 "insn", "end".
4422 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4423 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4424 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4425 (duplicate_insn_chain): For now, add checked cast from rtx to
4426 rtx_insn * when returning insn.
4427 (cfg_layout_duplicate_bb): Likewise for local "insn".
4428 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4429 "prev", "remaints".
4430 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4431 (rtl_block_empty_p): Likewise.
4432 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4433 "split_point", "last".
4434 (rtl_block_ends_with_call_p): Likewise for local "insn".
4435 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4436 const rtx_insn *.
4437 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4438 "split_at_insn" from rtx to rtx_insn *.
4439 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4440 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4441 to const rtx_insn *.
4442 (rtl_account_profile_record): Likewise.
4443
4444 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4445
4446 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4447 rtx to rtx_insn *.
4448 (average_num_loop_insns): Likewise.
4449 (init_set_costs): Likewise for local "seq".
4450 (seq_cost): Likewise for param "seq", from const_rtx to const
4451 rtx_insn *.
4452
4453 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4454
4455 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4456 rtx to rtx_insn *.
4457
4458 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4459
4460 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4461 "f1" and "f2" from rtx * to rtx_insn **.
4462 (flow_find_head_matching_sequence): Likewise.
4463
4464 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4465 "cbranch_insn" from rtx to rtx_insn *.
4466 (thread_jump): Likewise for local "insn".
4467 (try_forward_edges): Likewise for local "last".
4468 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4469 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4470 "real_b_end".
4471 (can_replace_by): Likewise for params "i1", "i2".
4472 (old_insns_match_p): Likewise.
4473 (merge_notes): Likewise.
4474 (walk_to_nondebug_insn): Likewise for param "i1".
4475 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4476 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4477 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4478 (flow_find_head_matching_sequence): Strengthen params "f1" and
4479 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4480 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4481 rtx_insn *.
4482 (outgoing_edges_match): Likewise for locals "last1", "last2".
4483 (try_crossjump_to_edge): Likewise for local "insn".
4484 Replace call to for_each_rtx with for_each_rtx_in_insn.
4485
4486 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4487 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4488 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4489 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4490 (try_optimize_cfg): Strengthen local "last" from rtx to
4491 rtx_insn *.
4492 (delete_dead_jumptables): Likewise for locals "insn", "next",
4493 "label".
4494
4495 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4496 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4497 "rtx else_first_tail", to reflect the basic-block.h changes above.
4498
4499 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4500
4501 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4502 rtx_insn *.
4503 (purge_dead_tablejump_edges): Likewise.
4504 (find_bb_boundaries): Likewise for locals "insn", "end",
4505 "flow_transfer_insn".
4506
4507 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4508
4509 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4510 "ins" and "prev" from rtx to rtx_insn *.
4511
4512 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4513
4514 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4515 rtx_insn *.
4516 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4517 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4518 "scan_start".
4519 (load_register_parameters): Likewise for local "before_arg".
4520 (check_sibcall_argument_overlap): Likewise for param "insn".
4521 (expand_call): Likewise for locals "normal_call_insns",
4522 "tail_call_insns", "insns", "before_call", "after_args",
4523 "before_arg", "last", "prev". Strengthen one of the "last" from
4524 rtx to rtx_call_insn *.
4525 (fixup_tail_calls): Strengthen local "insn" from rtx to
4526 rtx_insn *.
4527 (emit_library_call_value_1): Likewise for locals "before_call" and
4528 "last".
4529
4530 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4531
4532 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4533 and "last" from rtx to rtx_insn *.
4534 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4535 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4536 rtx_call_insn *.
4537 (expand_errno_check): Strengthen local "lab" from rtx to
4538 rtx_code_label *.
4539 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4540 rtx_insn *.
4541 (expand_builtin_mathfn_2): Likewise.
4542 (expand_builtin_mathfn_ternary): Likewise.
4543 (expand_builtin_mathfn_3): Likewise.
4544 (expand_builtin_interclass_mathfn): Likewise for local "last".
4545 (expand_builtin_int_roundingfn): Likewise for local "insns".
4546 (expand_builtin_int_roundingfn_2): Likewise.
4547 (expand_builtin_strlen): Likewise for local "before_strlen".
4548 (expand_builtin_strncmp): Likewise for local "seq".
4549 (expand_builtin_signbit): Likewise for local "last".
4550 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4551 from rtx to rtx_code_label *.
4552 (expand_stack_restore): Strengthen local "prev" from rtx to
4553 rtx_insn *.
4554
4555 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4556
4557 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4558 to rtx_insn *.
4559 (struct btr_def_s): Likewise.
4560 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4561 const rtx_insn *.
4562 (add_btr_def): Likewise.
4563 (new_btr_user): Likewise.
4564 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4565 rtx to rtx_insn *.
4566 (link_btr_uses): Likewise.
4567 (move_btr_def): Likewise for locals "insp", "old_insn",
4568 "new_insn". Add checked cast to rtx_insn * for now on result of
4569 gen_move_insn.
4570 (can_move_up): Strengthen param "insn" from const_rtx to
4571 const rtx_insn *.
4572
4573 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4574
4575 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4576 rtx_insn *.
4577 (get_uncond_jump_length): Likewise for locals "label", "jump".
4578 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4579 "jump", "insn".
4580 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4581 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4582 (find_jump_block): Likewise for local "insn".
4583 (fix_crossing_conditional_branches): Likewise for locals
4584 "old_jump", "new_jump".
4585 (fix_crossing_unconditional_branches): Likewise for locals
4586 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4587 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4588
4589 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4590
4591 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4592 rtx to rtx_insn *.
4593 (struct mem_insn): Likewise for field "insn".
4594 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4595 (reg_next_inc_use): Likewise.
4596 (reg_next_def): Likewise.
4597 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4598 from rtx to rtx_insn *.
4599 (move_insn_before): Likewise for param "next_insn" and local "insns".
4600 (attempt_change): Likewise for local "mov_insn".
4601 (try_merge): Likewise for param "last_insn".
4602 (get_next_ref): Likewise for return type and local "insn".
4603 Strengthen param "next_array" from rtx * to rtx_insn **.
4604 (parse_add_or_inc): Strengthen param "insn" from rtx to
4605 rtx_insn *.
4606 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4607 the latter).
4608 (merge_in_block): Likewise for locals "insn", "curr",
4609 "other_insn".
4610 (pass_inc_dec::execute): Update allocations of the arrays to
4611 reflect the stronger types.
4612
4613 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4614
4615 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4616 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4617 from rtx to rtx_code_label *.
4618
4619 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4620
4621 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4622 to rtx_insn *.
4623
4624 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4625
4626 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4627 generated a warning and prevented bootstrapping the compiler.
4628
4629 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4630
4631 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4632 rtx_insn *.
4633
4634 * jump.c (delete_related_insns): Likewise, also for locals "next"
4635 and "prev".
4636
4637 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4638
4639 * genautomata.c (output_internal_insn_latency_func): When writing
4640 the function "internal_insn_latency" to insn-automata.c,
4641 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4642 allowing the optional guard function of (define_bypass) clauses to
4643 expect a pair of rtx_insn *, rather than a pair of rtx.
4644 (output_insn_latency_func): When writing the function
4645 "insn_latency", add an "uncast_" prefix to params "insn" and
4646 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4647 using checked casts from the params, thus enabling the above
4648 change to the generated "internal_insn_latency" function.
4649
4650 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4651
4652 PR tree-optimization/62091
4653 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4654 handle correctly arrays.
4655 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4656 inheritance binfos.
4657 (record_known_type): Walk into inner type.
4658 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4659 condition on no type changes.
4660
4661 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4662
4663 * genattrtab.c (write_attr_get): Within the generated get_attr_
4664 functions, rename param "insn" to "uncast_insn" and reintroduce
4665 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4666 is an rtx_insn * within insn-attrtab.c
4667
4668 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4669
4670 * output.h (peephole): Strengthen return type from rtx to
4671 rtx_insn *.
4672 * rtl.h (delete_for_peephole): Likewise for both params.
4673 * genpeep.c (main): In generated "peephole" function, strengthen
4674 return type and local "insn" from rtx to rtx_insn *. For now,
4675 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4676 rtx_insn *, with a checked cast.
4677 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4678 locals "insn", "next", "prev" from rtx to rtx_insn *.
4679
4680 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4681
4682 PR tree-optimization/62112
4683 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4684 * gimple-iterator.h (gsi_replace): Return bool.
4685 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4686 moved from ref_may_alias_global_p.
4687 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4688 New overloads.
4689 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4690 (stmt_kills_ref_p_1): Rename...
4691 (stmt_kills_ref_p): ... to this.
4692 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4693 stmt_kills_ref_p): Declare.
4694 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4695 Move the self-assignment case...
4696 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4697
4698 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4699
4700 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4701
4702 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4703 "after". For now, don't strengthen param "trial", which requires
4704 adding checked casts when returning it.
4705
4706 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4707
4708 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4709 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4710 "var_location" hook from rtx to rtx_insn *.
4711 (debug_nothing_rtx): Delete in favor of...
4712 (debug_nothing_rtx_code_label): New prototype.
4713 (debug_nothing_rtx_rtx): Delete unused prototype.
4714 (debug_nothing_rtx_insn): New prototype.
4715
4716 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4717 invoking debug_hooks->var_location (in two places, one in a NOTE
4718 case of a switch statement, the other guarded by a CALL_P
4719 conditional. Add checked cast to rtx_code_label * when invoking
4720 debug_hooks->label (within CODE_LABEL case of switch statement).
4721
4722 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4723 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4724 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4725 (xcoff_debug_hooks): Likewise.
4726 * debug.c (do_nothing_debug_hooks): Likewise.
4727 (debug_nothing_rtx): Delete in favor of...
4728 (debug_nothing_rtx_insn): New function.
4729 (debug_nothing_rtx_rtx): Delete unused function.
4730 (debug_nothing_rtx_code_label): New function.
4731 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4732 debug_nothing_rtx to debug_nothing_rtx_code_label.
4733 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4734 to rtx_insn *.
4735 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4736 debug_nothing_rtx to debug_nothing_rtx_insn.
4737 (sdbout_label): Strengthen param "insn" from rtx to
4738 rtx_code_label *.
4739 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4740 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4741 "var_location" hook from debug_nothing_rtx to
4742 debug_nothing_rtx_insn.
4743
4744 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4745
4746 * recog.h (insn_output_fn): Update this function typedef to match
4747 the changes below to the generated output functions, strengthening
4748 the 2nd param from rtx to rtx_insn *.
4749
4750 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4751 insn when invoking an output function, to match the new signature
4752 of insn_output_fn with a stronger second param.
4753
4754 * genconditions.c (write_header): In the generated code for
4755 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4756 to match the other changes in this patch.
4757
4758 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4759 the generated "gen_" functions from rtx to rtx_insn * within their
4760 implementations.
4761
4762 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4763 the subfunctions within the generated "recog_", "split", "peephole2"
4764 function trees from rtx to rtx_insn *. For now, the top-level
4765 generated functions ("recog", "split", "peephole2") continue to
4766 take a plain rtx for "insn", to avoid introducing dependencies on
4767 other patches. Rename this 2nd param from "insn" to
4768 "uncast_insn", and reintroduce "insn" as a local variable of type
4769 rtx_insn *, initialized at the top of the generated function with
4770 a checked cast on "uncast_insn".
4771 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4772 the generated "gen_" functions from rtx to rtx_insn * within their
4773 prototypes.
4774
4775 * genoutput.c (process_template): Strengthen the 2nd param within
4776 the generated "output_" functions "insn" from rtx to rtx_insn *.
4777
4778 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4779
4780 * tree-profile.c (tree_profiling): Skip external functions
4781 when doing coverage instrumentation.
4782 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4783
4784 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4785
4786 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4787 (vec_mergee): Likewise.
4788 (vec_mergeo): Likewise.
4789 (vec_cntlz): Likewise.
4790 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4791 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4792 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4793 VMRGEW, and VMRGOW.
4794 * doc/extend.texi: Document various forms of vec_cpsgn,
4795 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4796 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4797 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4798 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4799 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4800
4801 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4802
4803 * config/rs6000/rs6000.c (context.h): New include.
4804 (tree-pass.h): Likewise.
4805 (make_pass_analyze_swaps): New decl.
4806 (rs6000_option_override): Register pass_analyze_swaps.
4807 (swap_web_entry): New subsclass of web_entry_base (df.h).
4808 (special_handling_values): New enum.
4809 (union_defs): New function.
4810 (union_uses): Likewise.
4811 (insn_is_load_p): Likewise.
4812 (insn_is_store_p): Likewise.
4813 (insn_is_swap_p): Likewise.
4814 (rtx_is_swappable_p): Likewise.
4815 (insn_is_swappable_p): Likewise.
4816 (chain_purpose): New enum.
4817 (chain_contains_only_swaps): New function.
4818 (mark_swaps_for_removal): Likewise.
4819 (swap_const_vector_halves): Likewise.
4820 (adjust_subreg_index): Likewise.
4821 (permute_load): Likewise.
4822 (permute_store): Likewise.
4823 (handle_special_swappables): Likewise.
4824 (replace_swap_with_copy): Likewise.
4825 (dump_swap_insn_table): Likewise.
4826 (rs6000_analyze_swaps): Likewise.
4827 (pass_data_analyze_swaps): New pass_data.
4828 (pass_analyze_swaps): New rtl_opt_pass.
4829 (make_pass_analyze_swaps): New function.
4830 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4831
4832 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4833
4834 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4835 type from rtx to rtx_insn *.
4836 (create_copy_of_insn_rtx): Likewise.
4837 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4838 (create_copy_of_insn_rtx): Likewise, also for local "res".
4839
4840 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4841
4842 * rtl.h (find_first_parameter_load): Strengthen return type from
4843 rtx to rtx_insn *.
4844 * rtlanal.c (find_first_parameter_load): Strengthen return type
4845 from rtx to rtx_insn *. Add checked cast for now, to postpone
4846 strengthening the params.
4847
4848 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4849
4850 PR fortran/44054
4851 * diagnostic.c: Set default caret.
4852 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4853 line is needed.
4854 * diagnostic.h (struct diagnostic_context):
4855
4856 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4857
4858 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4859 (sel_bb_head): Strengthen return type insn_t (currently just an
4860 rtx) to rtx_insn *.
4861 (sel_bb_end): Likewise.
4862
4863 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4864 (sel_bb_head): Strengthen return type and local "head" from
4865 insn_t (currently just an rtx) to rtx_insn *.
4866 (sel_bb_end): Likewise for return type.
4867 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4868 working with insn.
4869
4870 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4871
4872 * basic-block.h (get_last_bb_insn): Strengthen return type from
4873 rtx to rtx_insn *.
4874 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4875 end".
4876
4877 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4878
4879 PR fortran/44054
4880 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4881 to here ...
4882 (diagnostic_report_diagnostic): ... from here.
4883 * toplev.c (general_init): Move code to c-family.
4884
4885 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4886
4887 * df.h (web_entry_base): Replace existing struct web_entry with a
4888 new class web_entry_base with only the predecessor member.
4889 (unionfind_root): Remove declaration and move to class member.
4890 (unionfind_union): Remove declaration and move to friend
4891 function.
4892 (union_defs): Remove declaration.
4893 * web.c (web_entry_base::unionfind_root): Modify to be member
4894 function and adjust accessors.
4895 (unionfind_union): Modify to be friend function and adjust
4896 accessors.
4897 (web_entry): New subclass of web_entry_base containing the reg
4898 member.
4899 (union_match_dups): Modify for struct -> class changes.
4900 (union_defs): Likewise.
4901 (entry_register): Likewise.
4902 (pass_web::execute): Likewise.
4903
4904 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4905
4906 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4907 builtin define __VEC_ELEMENT_REG_ORDER__.
4908
4909 2014-08-20 Martin Jambor <mjambor@suse.cz>
4910 Wei Mi <wmi@google.com>
4911
4912 PR ipa/60449
4913 PR middle-end/61776
4914 * tree-ssa-operands.c (update_stmt_operands): Remove
4915 MODIFIED_NORETURN_CALLS.
4916 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4917 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4918 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4919 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4920 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4921 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4922 (gimple_call_set_ctrl_altering): New func.
4923 (gimple_call_ctrl_altering_p): Ditto.
4924 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4925 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4926 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4927 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4928 remove MODIFIED_NORETURN_CALLS.
4929
4930 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4931
4932 * coverage.c (coverage_compute_profile_id): Return non-0;
4933 also handle symbols with unique name.
4934 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4935
4936 2014-08-20 Steve Ellcey <sellcey@mips.com>
4937
4938 PR middle-end/49191
4939 * doc/sourcebuild.texi (non_strict_align): New.
4940
4941 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4942
4943 * cgraphunit.c (ipa_passes, compile): Reshedule
4944 symtab_remove_unreachable_nodes passes; update comments.
4945 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4946 TODO_remove_functions before the pass; the functions ought to be
4947 already removed.
4948 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4949 TODO_remove_functions.
4950 * passes.c (pass_data_early_local_passes): Do not schedule function
4951 removal.
4952 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4953
4954 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4955
4956 PR c/59304
4957 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4958 before setting the option.
4959 * diagnostic.c (diagnostic_classify_diagnostic): Record
4960 command-line status.
4961
4962 2014-08-20 Richard Biener <rguenther@suse.de>
4963
4964 PR lto/62190
4965 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4966 to build uint{16,32,64}_type_node.
4967
4968 2014-08-20 Terry Guo <terry.guo@arm.com>
4969
4970 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4971 with immediate_operand.
4972
4973 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4974
4975 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4976 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4977 NULL.
4978
4979 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4980
4981 PR preprocessor/51303
4982 * incpath.c (remove_duplicates): Use cpp_warning.
4983
4984 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4985
4986 PR c/60975
4987 PR c/53063
4988 * doc/options.texi (CPP): Document it.
4989 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4990 * optc-gen.awk: Handle CPP.
4991 * opth-gen.awk: Likewise.
4992
4993 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4994
4995 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4996 rtx_insn *.
4997 (duplicate_insn_chain): Likewise.
4998 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4999 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5000 checked cast for now (until we can strengthen the params in the
5001 same way).
5002 (duplicate_insn_chain): Likewise.
5003
5004 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5005
5006 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5007 rtx_insn *.
5008 (prev_cc0_setter): Likewise.
5009
5010 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5011 rtx_insn *, adding checked casts for now as necessary.
5012 (prev_cc0_setter): Likewise.
5013
5014 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5015
5016 * expr.h (emit_move_insn): Strengthen return type from rtx to
5017 rtx_insn *.
5018 (emit_move_insn_1): Likewise.
5019 (emit_move_complex_push): Likewise.
5020 (emit_move_complex_parts): Likewise.
5021
5022 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5023 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5024 with insns.
5025 (emit_move_complex_push): Strengthen return type from rtx to
5026 rtx_insn *.
5027 (emit_move_complex): Likewise, also for local "ret".
5028 (emit_move_ccmode): Likewise.
5029 (emit_move_multi_word): Likewise for return type and locals
5030 "last_insn", "seq".
5031 (emit_move_insn_1): Likewise for return type and locals "result",
5032 "ret".
5033 (emit_move_insn): Likewise for return type and local "last_insn".
5034 (compress_float_constant): Likewise.
5035
5036 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5037
5038 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5039 from rtx to rtx_insn *.
5040
5041 * rtl.h (emit_insn_before): Likewise.
5042 (emit_insn_before_noloc): Likewise.
5043 (emit_insn_before_setloc): Likewise.
5044 (emit_jump_insn_before): Likewise.
5045 (emit_jump_insn_before_noloc): Likewise.
5046 (emit_jump_insn_before_setloc): Likewise.
5047 (emit_call_insn_before): Likewise.
5048 (emit_call_insn_before_noloc): Likewise.
5049 (emit_call_insn_before_setloc): Likewise.
5050 (emit_debug_insn_before): Likewise.
5051 (emit_debug_insn_before_noloc): Likewise.
5052 (emit_debug_insn_before_setloc): Likewise.
5053 (emit_label_before): Likewise.
5054 (emit_insn_after): Likewise.
5055 (emit_insn_after_noloc): Likewise.
5056 (emit_insn_after_setloc): Likewise.
5057 (emit_jump_insn_after): Likewise.
5058 (emit_jump_insn_after_noloc): Likewise.
5059 (emit_jump_insn_after_setloc): Likewise.
5060 (emit_call_insn_after): Likewise.
5061 (emit_call_insn_after_noloc): Likewise.
5062 (emit_call_insn_after_setloc): Likewise.
5063 (emit_debug_insn_after): Likewise.
5064 (emit_debug_insn_after_noloc): Likewise.
5065 (emit_debug_insn_after_setloc): Likewise.
5066 (emit_label_after): Likewise.
5067 (emit_insn): Likewise.
5068 (emit_debug_insn): Likewise.
5069 (emit_jump_insn): Likewise.
5070 (emit_call_insn): Likewise.
5071 (emit_label): Likewise.
5072 (gen_clobber): Likewise.
5073 (emit_clobber): Likewise.
5074 (gen_use): Likewise.
5075 (emit_use): Likewise.
5076 (emit): Likewise.
5077
5078 (emit_barrier_before): Strengthen return type from rtx to
5079 rtx_barrier *.
5080 (emit_barrier_after): Likewise.
5081 (emit_barrier): Likewise.
5082
5083 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5084 from rtx to rtx_insn *. Add checked casts for now when converting
5085 "last" from rtx to rtx_insn *.
5086 (emit_insn_before_noloc): Likewise for return type.
5087 (emit_jump_insn_before_noloc): Likewise.
5088 (emit_call_insn_before_noloc): Likewise.
5089 (emit_debug_insn_before_noloc): Likewise.
5090 (emit_barrier_before): Strengthen return type and local "insn"
5091 from rtx to rtx_barrier *.
5092 (emit_label_before): Strengthen return type from rtx to
5093 rtx_insn *. Add checked cast for now when returning param
5094 (emit_pattern_after_noloc): Strengthen return type from rtx to
5095 rtx_insn *. Add checked casts for now when converting "last" from
5096 rtx to rtx_insn *.
5097 (emit_insn_after_noloc): Strengthen return type from rtx to
5098 rtx_insn *.
5099 (emit_jump_insn_after_noloc): Likewise.
5100 (emit_call_insn_after_noloc): Likewise.
5101 (emit_debug_insn_after_noloc): Likewise.
5102 (emit_barrier_after): Strengthen return type from rtx to
5103 rtx_barrier *.
5104 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5105 Add checked cast for now when converting "label" from rtx to
5106 rtx_insn *.
5107 (emit_pattern_after_setloc): Strengthen return type from rtx to
5108 rtx_insn *. Add checked casts for now when converting "last" from
5109 rtx to rtx_insn *.
5110 (emit_pattern_after): Strengthen return type from rtx to
5111 rtx_insn *.
5112 (emit_insn_after_setloc): Likewise.
5113 (emit_insn_after): Likewise.
5114 (emit_jump_insn_after_setloc): Likewise.
5115 (emit_jump_insn_after): Likewise.
5116 (emit_call_insn_after_setloc): Likewise.
5117 (emit_call_insn_after): Likewise.
5118 (emit_debug_insn_after_setloc): Likewise.
5119 (emit_debug_insn_after): Likewise.
5120 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5121 when converting "last" from rtx to rtx_insn *.
5122 (emit_pattern_before): Strengthen return type from rtx to
5123 rtx_insn *.
5124 (emit_insn_before_setloc): Likewise.
5125 (emit_insn_before): Likewise.
5126 (emit_jump_insn_before_setloc): Likewise.
5127 (emit_jump_insn_before): Likewise.
5128 (emit_call_insn_before_setloc): Likewise.
5129 (emit_call_insn_before): Likewise.
5130 (emit_debug_insn_before_setloc): Likewise.
5131 (emit_debug_insn_before): Likewise.
5132 (emit_insn): Strengthen return type and locals "last", "insn",
5133 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5134 within cases where we know we have an insn.
5135 (emit_debug_insn): Likewise.
5136 (emit_jump_insn): Likewise.
5137 (emit_call_insn): Strengthen return type and local "insn" from rtx
5138 to rtx_insn *.
5139 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5140 a checked cast to rtx_insn * for now on "label".
5141 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5142 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5143 (emit_use): Likewise.
5144 (gen_use): Likewise, also for local "seq".
5145 (emit): Likewise for return type and local "insn".
5146 (rtx_insn): Likewise for return type and local "new_rtx".
5147
5148 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5149 from rtx to rtx_barrier *.
5150
5151 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5152 changed return type from rtx to rtx_insn *, we must update
5153 "emit_fn" type, and this in turn means updating...
5154 (frame_insn): ...this. Strengthen return type from rtx to
5155 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5156
5157 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5158
5159 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5160 rtx to rtx_jump_table_data *. Also for local.
5161 * rtl.h (emit_jump_table_data): Likewise.
5162
5163 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5164
5165 * basic-block.h (create_basic_block_structure): Strengthen third
5166 param "bb_note" from rtx to rtx_note *.
5167 * rtl.h (emit_note_before): Strengthen return type from rtx to
5168 rtx_note *.
5169 (emit_note_after): Likewise.
5170 (emit_note): Likewise.
5171 (emit_note_copy): Likewise. Also, strengthen param similarly.
5172 * function.h (struct rtl_data): Strengthen field
5173 "x_stack_check_probe_note" from rtx to rtx_note *.
5174
5175 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5176 from rtx to rtx_note *.
5177 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5178 "bb_note" from rtx to rtx_note *.
5179 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5180 when calling emit_note_copy.
5181 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5182 rtx_note *.
5183 (emit_note_after): Likewise.
5184 (emit_note_before): Likewise.
5185 (emit_note_copy): Likewise. Also, strengthen param similarly.
5186 (emit_note): Likewise.
5187 * except.c (emit_note_eh_region_end): Likewise for return type.
5188 Strengthen local "next" from rtx to rtx_insn *.
5189 (convert_to_eh_region_ranges): Strengthen local "note"
5190 from rtx to rtx_note *.
5191 * final.c (change_scope): Likewise.
5192 (reemit_insn_block_notes): Likewise, for both locals named "note".
5193 Also, strengthen local "insn" from rtx to rtx_insn *.
5194 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5195 rtx to rtx_note *.
5196 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5197 strengthen local "seq" from rtx to rtx_insn *.
5198 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5199 to rtx_note *.
5200 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5201 vec<rtx_note *>.
5202 (get_bb_note_from_pool): Strengthen return type from rtx to
5203 rtx_note *.
5204 (sel_create_basic_block): Strengthen local "new_bb_note" from
5205 insn_t to rtx_note *.
5206 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5207 "note" from rtx to rtx_note *.
5208 (emit_notes_in_bb): Likewise.
5209
5210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5211
5212 * function.h (struct rtl_data): Strengthen field
5213 "x_parm_birth_insn" from rtx to rtx_insn *.
5214 * function.c (struct assign_parm_data_all): Strengthen fields
5215 "first_conversion_insn" and "last_conversion_insn" from rtx to
5216 rtx_insn *.
5217
5218 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5219
5220 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5221 to rtx_insn *; also for local "var_end_seq".
5222 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5223 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5224 "insn".
5225 (expand_gimple_cond): Likewise for locals "last2" and "last".
5226 (mark_transaction_restart_calls): Likewise for local "insn".
5227 (expand_gimple_stmt): Likewise for return type and locals "last"
5228 and "insn".
5229 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5230 (avoid_complex_debug_insns): Likewise for param "insn".
5231 (expand_debug_locations): Likewise for locals "insn", "last",
5232 "prev_insn" and "insn2".
5233 (expand_gimple_basic_block): Likewise for local "last".
5234 (construct_exit_block): Likewise for locals "head", "end",
5235 "orig_end".
5236 (pass_expand::execute): Likewise for locals "var_seq",
5237 "var_ret_seq", "next".
5238
5239 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5240
5241 * asan.h (asan_emit_stack_protection): Strengthen return type from
5242 rtx to rtx_insn *.
5243 * asan.c (asan_emit_stack_protection): Likewise. Add local
5244 "insns" to hold the return value.
5245
5246 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5247
5248 * basic-block.h (bb_note): Strengthen return type from rtx to
5249 rtx_note *.
5250 * sched-int.h (bb_note): Likewise.
5251 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5252
5253 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5254
5255 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5256 rtx_insn *.
5257
5258 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5259 "insn" from rtx to rtx_insn *.
5260 (make_debug_insn_raw): Strengthen return type from rtx to
5261 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5262 (make_jump_insn_raw): Strengthen return type from rtx to
5263 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5264 (make_call_insn_raw): Strengthen return type from rtx to
5265 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5266 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5267 callback from rtx to rtx_insn *; likewise for local "insn" and
5268 "next", adding a checked cast to rtx_insn in the relevant cases of
5269 the switch statement.
5270 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5271 callback from rtx to rtx_insn *.
5272 (emit_pattern_after_setloc): Likewise.
5273 (emit_pattern_after): Likewise.
5274 (emit_pattern_before_setloc): Likewise.
5275 (emit_pattern_before): Likewise.
5276
5277 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5278
5279 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5280 rtx_call_insn *.
5281 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5282 accepting an rtx_insn *.
5283 (last_call_insn): Strengthen return type from rtx to
5284 rtx_call_insn *.
5285
5286 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5287
5288 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5289 "insns" from rtx to rtx_insn *.
5290 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5291 locals "insn" and "prev".
5292
5293 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5294
5295 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5296 rtx_jump_table_data **.
5297
5298 * cfgbuild.c (make_edges): Introduce local "table", using it in
5299 place of "tmp" for jump table data.
5300 (find_bb_boundaries): Strengthen local "table" from rtx to
5301 rtx_jump_table_data *.
5302 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5303 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5304 (try_crossjump_to_edge): Likewise.
5305 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5306 "table".
5307 (patch_jump_insn): Introduce local "table", using it in place of
5308 "tmp" for jump table data.
5309 (force_nonfallthru_and_redirect): Introduce local "table", so that
5310 call to tablejump_p can receive an rtx_jump_table_data **. Update
5311 logic around the call to overwrite "note" appropriately if
5312 tablejump_p returns non-zero.
5313 (get_last_bb_insn): Introduce local "table", using it in place of
5314 "tmp" for jump table data.
5315 * dwarf2cfi.c (create_trace_edges): Likewise.
5316
5317 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5318 from rtx to rtx_jump_table_data *.
5319 (create_fix_barrier): Strengthen local "tmp" from rtx to
5320 rtx_jump_table_data *.
5321 (arm_reorg): Likewise for local "table".
5322
5323 * config/s390/s390.c (s390_chunkify_start): Likewise.
5324
5325 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5326
5327 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5328 rtx to rtx_jump_table_data *.
5329
5330 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5331 rtx_jump_table_data **. Add a checked cast when writing through
5332 the pointer: we know there that local "table" is non-NULL and that
5333 JUMP_TABLE_DATA_P (table) holds.
5334 (label_is_jump_target_p): Introduce local "table", using it in
5335 place of "tmp" for jump table data.
5336
5337 2014-08-19 Marek Polacek <polacek@redhat.com>
5338
5339 PR c++/62153
5340 * doc/invoke.texi: Document -Wbool-compare.
5341
5342 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5343
5344 * rtl.h (entry_of_function): Strengthen return type from rtx to
5345 rtx_insn *.
5346 * cfgrtl.c (entry_of_function): Likewise.
5347
5348 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5349
5350 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5351 rtx_insn *, adding a checked cast for now.
5352 (get_last_insn): Likewise.
5353
5354 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5355
5356 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5357 rtx_code_label *.
5358
5359 * emit-rtl.c (gen_label_rtx): Likewise.
5360
5361 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5362
5363 * rtl.h (previous_insn): Strengthen return type from rtx to
5364 rtx_insn *.
5365 (next_insn): Likewise.
5366 (prev_nonnote_insn): Likewise.
5367 (prev_nonnote_insn_bb): Likewise.
5368 (next_nonnote_insn): Likewise.
5369 (next_nonnote_insn_bb): Likewise.
5370 (prev_nondebug_insn): Likewise.
5371 (next_nondebug_insn): Likewise.
5372 (prev_nonnote_nondebug_insn): Likewise.
5373 (next_nonnote_nondebug_insn): Likewise.
5374 (prev_real_insn): Likewise.
5375 (next_real_insn): Likewise.
5376 (prev_active_insn): Likewise.
5377 (next_active_insn): Likewise.
5378
5379 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5380 rtx_insn *, adding a checked cast.
5381 (previous_insn): Likewise.
5382 (next_nonnote_insn): Likewise.
5383 (next_nonnote_insn_bb): Likewise.
5384 (prev_nonnote_insn): Likewise.
5385 (prev_nonnote_insn_bb): Likewise.
5386 (next_nondebug_insn): Likewise.
5387 (prev_nondebug_insn): Likewise.
5388 (next_nonnote_nondebug_insn): Likewise.
5389 (prev_nonnote_nondebug_insn): Likewise.
5390 (next_real_insn): Likewise.
5391 (prev_real_insn): Likewise.
5392 (next_active_insn): Likewise.
5393 (prev_active_insn): Likewise.
5394
5395 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5396 param "stepfunc" so that it returns an rtx_insn * rather than an
5397 rtx, to track the change to prev_nonnote_insn_bb, which is the
5398 only function this is called with.
5399 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5400
5401 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5402
5403 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5404 assert.
5405
5406 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5407
5408 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5409 (class rtx_nonjump_insn): Likewise.
5410 (class rtx_jump_insn): Likewise.
5411 (class rtx_call_insn): Likewise.
5412 (class rtx_jump_table_data): Likewise.
5413 (class rtx_barrier): Likewise.
5414 (class rtx_code_label): Likewise.
5415 (class rtx_note): Likewise.
5416
5417 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5418 adding the invariant DEBUG_INSN_P (X).
5419 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5420 the invariant NONJUMP_INSN_P (X).
5421 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5422 the invariant JUMP_P (X).
5423 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5424 the invariant CALL_P (X).
5425 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5426 invariant JUMP_TABLE_DATA_P (X).
5427 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5428 invariant BARRIER_P (X).
5429 (class rtx_code_label): New, a subclass of rtx_insn, adding
5430 the invariant LABEL_P (X).
5431 (class rtx_note): New, a subclass of rtx_insn, adding
5432 the invariant NOTE_P(X).
5433 (is_a_helper <rtx_debug_insn *>::test): New.
5434 (is_a_helper <rtx_nonjump_insn *>::test): New.
5435 (is_a_helper <rtx_jump_insn *>::test): New.
5436 (is_a_helper <rtx_call_insn *>::test): New.
5437 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5438 overloaded for both rtx and rtx_insn *.
5439 (is_a_helper <rtx_barrier *>::test): New.
5440 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5441 for both rtx and rtx_insn *.
5442 (is_a_helper <rtx_note *>::test): New.
5443
5444 2014-08-19 Marek Polacek <polacek@redhat.com>
5445
5446 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5447 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5448 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5449 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5450
5451 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5452
5453 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5454 rtx_insn *. To help with transition, for now, convert from an
5455 access macro into a pair of functions: BND_TO, returning an
5456 rtx_insn *, and...
5457 (SET_BND_TO): New function, for use where BND_TO is used as an
5458 lvalue.
5459
5460 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5461 SET_BND_TO.
5462 (BND_TO): New function, adding a checked cast.
5463 (SET_BND_TO): New function.
5464
5465 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5466 SET_BND_TO.
5467 (compute_av_set_on_boundaries): Likewise.
5468
5469 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5470
5471 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5472 destination if it is used in source.
5473 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5474 (*popcount<mode>2_falsedep_1): Likewise.
5475
5476 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5477
5478 PR other/62168
5479 * configure.ac: Set install_gold_as_default to no first.
5480 * configure: Regenerated.
5481
5482 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5483
5484 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5485 "note_list" field will eventually be an rtx_insn *. To help with
5486 transition, for now, convert from an access macro into a pair of
5487 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5488 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5489 used as an lvalue.
5490
5491 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5492 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5493
5494 * sel-sched-ir.c (init_bb): Likewise.
5495 (sel_restore_notes): Likewise.
5496 (move_bb_info): Likewise.
5497 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5498 (SET_BB_NOTE_LIST): New function.
5499
5500 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5501
5502 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5503 field will eventually be an rtx_insn *. To help with transition,
5504 for now, convert from an access macro into a pair of functions:
5505 VINSN_INSN_RTX, returning an rtx_insn *, and...
5506 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5507 is used as an lvalue.
5508
5509 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5510 SET_VINSN_INSN_RTX where it's used as an lvalue.
5511 (VINSN_INSN_RTX): New function.
5512 (SET_VINSN_INSN_RTX): New function.
5513
5514 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5515
5516 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5517 eventually be rtx_insn *, but to help with transition, for now,
5518 convert from an access macro into a pair of functions: DEP_PRO
5519 returning an rtx_insn * and...
5520 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5521 lvalue, returning an rtx&.
5522 (DEP_CON): Analogous changes to DEP_PRO above.
5523 (SET_DEP_CON): Likewise.
5524
5525 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5526 an lvalue to SET_DEP_CON.
5527 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5528 (sd_copy_back_deps): Likewise for DEP_CON.
5529 (DEP_PRO): New function, adding a checked cast for now.
5530 (DEP_CON): Likewise.
5531 (SET_DEP_PRO): New function.
5532 (SET_DEP_CON): Likewise.
5533
5534 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5535
5536 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5537 (extra_options): Add i386/cygwin.opt.
5538 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5539 (CPP_SPEC): Accept -pthread.
5540 (LINK_SPEC): Ditto.
5541 (GOMP_SELF_SPECS): Update comment.
5542 * config/i386/cygwin.opt: New file for -pthread flag.
5543
5544 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5545
5546 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5547 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5548 that we can return an rtx_insn *.
5549
5550 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5551
5552 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5553 when building executables, not DLLs. Add --large-address-aware
5554 under the same conditions.
5555 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5556 when building executables, not DLLs. Add --large-address-aware
5557 under the same conditions when using -m32.
5558
5559 * config/i386/cygwin-stdint.h: Throughout, make type
5560 definitions dependent on target architecture, not host.
5561
5562 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5563
5564 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5565 the return type from rtx to rtx_insn *, which will enable various
5566 conversions in followup patches. For now this is is done by a
5567 checked cast.
5568 (NEXT_INSN): Likewise.
5569 (SET_PREV_INSN): Convert to an inline function. This is intended
5570 for use as an lvalue, and so returns an rtx& to allow in-place
5571 modification.
5572 (SET_NEXT_INSN): Likewise.
5573
5574 2014-07-08 Mark Wielaard <mjw@redhat.com>
5575
5576 PR debug/59051
5577 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5578
5579 2014-08-19 Marek Polacek <polacek@redhat.com>
5580
5581 PR c/61271
5582 * cgraphunit.c (handle_alias_pairs): Fix condition.
5583
5584 2014-08-19 Richard Biener <rguenther@suse.de>
5585
5586 * gimple-fold.c (fold_gimple_assign): Properly build a
5587 null-pointer constant when devirtualizing addresses.
5588
5589 2014-07-07 Mark Wielaard <mjw@redhat.com>
5590
5591 * dwarf2out.c (decl_quals): New function.
5592 (modified_type_die): Take one cv_quals argument instead of two,
5593 one for const and one for volatile.
5594 (add_type_attribute): Likewise.
5595 (generic_parameter_die): Call add_type_attribute with one modifier
5596 argument.
5597 (base_type_for_mode): Likewise.
5598 (add_bounds_info): Likewise.
5599 (add_subscript_info): Likewise.
5600 (gen_array_type_die): Likewise.
5601 (gen_descr_array_type_die): Likewise.
5602 (gen_entry_point_die): Likewise.
5603 (gen_enumeration_type_die): Likewise.
5604 (gen_formal_parameter_die): Likewise.
5605 (gen_subprogram_die): Likewise.
5606 (gen_variable_die): Likewise.
5607 (gen_const_die): Likewise.
5608 (gen_field_die): Likewise.
5609 (gen_pointer_type_die): Likewise.
5610 (gen_reference_type_die): Likewise.
5611 (gen_ptr_to_mbr_type_die): Likewise.
5612 (gen_inheritance_die): Likewise.
5613 (gen_subroutine_type_die): Likewise.
5614 (gen_typedef_die): Likewise.
5615 (force_type_die): Likewise.
5616
5617 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5618
5619 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5620 if unset.
5621 * configure: Regenerate.
5622
5623 2014-08-19 Richard Biener <rguenther@suse.de>
5624
5625 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5626 DECL_EXTERNALs in BLOCKs as non-references.
5627 * tree-streamer-out.c (streamer_write_chain): Likewise.
5628
5629 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5631 Anna Tikhonova <anna.tikhonova@intel.com>
5632 Ilya Tocar <ilya.tocar@intel.com>
5633 Andrey Turetskiy <andrey.turetskiy@intel.com>
5634 Ilya Verbin <ilya.verbin@intel.com>
5635 Kirill Yukhin <kirill.yukhin@intel.com>
5636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5637
5638 * config/i386/sse.md
5639 (define_mode_iterator VI48_AVX512F): Delete.
5640 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5641 (define_mode_iterator VI2_AVX512VL): Ditto.
5642 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5643 Delete.
5644 (define_insn
5645 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5646 New.
5647 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5648 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5649 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5650 with VI48_AVX512F_AVX512VL): New.
5651 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5652 with VI2_AVX512VL): Ditto.
5653
5654 2014-08-19 Marek Polacek <polacek@redhat.com>
5655
5656 * doc/invoke.texi: Document -Wc99-c11-compat.
5657
5658 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5659
5660 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5661 for rvalues, and...
5662 (SET_PREV_INSN): New macro, for use as an lvalue.
5663 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5664
5665 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5666 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5667 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5668 (fixup_abnormal_edges): Likewise.
5669 (unlink_insn_chain): Likewise.
5670 (fixup_reorder_chain): Likewise.
5671 (cfg_layout_delete_block): Likewise.
5672 (cfg_layout_merge_blocks): Likewise.
5673 * combine.c (update_cfg_for_uncondjump): Likewise.
5674 * emit-rtl.c (link_insn_into_chain): Likewise.
5675 (remove_insn): Likewise.
5676 (delete_insns_since): Likewise.
5677 (reorder_insns_nobb): Likewise.
5678 (emit_insn_after_1): Likewise.
5679 * final.c (rest_of_clean_state): Likewise.
5680 (final_scan_insn): Likewise.
5681 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5682 * haifa-sched.c (concat_note_lists): Likewise.
5683 (remove_notes): Likewise.
5684 (restore_other_notes): Likewise.
5685 (move_insn): Likewise.
5686 (unlink_bb_notes): Likewise.
5687 (restore_bb_notes): Likewise.
5688 * jump.c (delete_for_peephole): Likewise.
5689 * optabs.c (emit_libcall_block_1): Likewise.
5690 * reorg.c (emit_delay_sequence): Likewise.
5691 (fill_simple_delay_slots): Likewise.
5692 * sel-sched-ir.c (sel_move_insn): Likewise.
5693 (sel_remove_insn): Likewise.
5694 (get_bb_note_from_pool): Likewise.
5695 * sel-sched.c (move_nop_to_previous_block): Likewise.
5696
5697 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5698 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5699 (c6x_gen_bundles): Likewise.
5700 (hwloop_optimize): Likewise.
5701 * config/frv/frv.c (frv_function_prologue): Likewise.
5702 (frv_register_nop): Likewise.
5703 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5704 (ia64_reorg): Likewise.
5705 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5706 (mep_make_bundle): Likewise.
5707 (mep_bundle_insns): Likewise.
5708 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5709 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5710 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5711
5712 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5713
5714 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5715 return type from rtx to rtx_insn *.
5716 (BB_END): Likewise.
5717 (BB_HEADER): Likewise.
5718 (BB_FOOTER): Likewise.
5719 (SET_BB_HEAD): Convert to a function.
5720 (SET_BB_END): Likewise.
5721 (SET_BB_HEADER): Likewise.
5722 (SET_BB_FOOTER): Likewise.
5723
5724 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5725 Strengthen the return type from rtx to rtx_insn *. For now, this
5726 is done by adding a checked cast, but this will eventually
5727 become a field lookup.
5728 (BB_END): Likewise.
5729 (BB_HEADER): Likewise.
5730 (BB_FOOTER): Likewise.
5731 (SET_BB_HEAD): New function, from macro of same name. This is
5732 intended for use as an lvalue, and so returns an rtx& to allow
5733 in-place modification.
5734 (SET_BB_END): Likewise.
5735 (SET_BB_HEADER): Likewise.
5736 (SET_BB_FOOTER): Likewise.
5737
5738 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5739
5740 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5741 for rvalues, and...
5742 (SET_BB_HEAD): New macro, for use as a lvalue.
5743 (BB_END, SET_BB_END): Likewise.
5744 (BB_HEADER, SET_BB_HEADER): Likewise.
5745 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5746
5747 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5748 of BB_* macros into SET_BB_* macros.
5749 (fix_crossing_unconditional_branches): Likewise.
5750 * caller-save.c (save_call_clobbered_regs): Likewise.
5751 (insert_one_insn): Likewise.
5752 * cfgbuild.c (find_bb_boundaries): Likewise.
5753 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5754 (outgoing_edges_match): Likewise.
5755 (try_optimize_cfg): Likewise.
5756 * cfgexpand.c (expand_gimple_cond): Likewise.
5757 (expand_gimple_tailcall): Likewise.
5758 (expand_gimple_basic_block): Likewise.
5759 (construct_exit_block): Likewise.
5760 * cfgrtl.c (delete_insn): Likewise.
5761 (create_basic_block_structure): Likewise.
5762 (rtl_delete_block): Likewise.
5763 (rtl_split_block): Likewise.
5764 (emit_nop_for_unique_locus_between): Likewise.
5765 (rtl_merge_blocks): Likewise.
5766 (block_label): Likewise.
5767 (try_redirect_by_replacing_jump): Likewise.
5768 (emit_barrier_after_bb): Likewise.
5769 (fixup_abnormal_edges): Likewise.
5770 (record_effective_endpoints): Likewise.
5771 (relink_block_chain): Likewise.
5772 (fixup_reorder_chain): Likewise.
5773 (fixup_fallthru_exit_predecessor): Likewise.
5774 (cfg_layout_duplicate_bb): Likewise.
5775 (cfg_layout_split_block): Likewise.
5776 (cfg_layout_delete_block): Likewise.
5777 (cfg_layout_merge_blocks): Likewise.
5778 * combine.c (update_cfg_for_uncondjump): Likewise.
5779 * emit-rtl.c (add_insn_after): Likewise.
5780 (remove_insn): Likewise.
5781 (reorder_insns): Likewise.
5782 (emit_insn_after_1): Likewise.
5783 * haifa-sched.c (get_ebb_head_tail): Likewise.
5784 (restore_other_notes): Likewise.
5785 (move_insn): Likewise.
5786 (sched_extend_bb): Likewise.
5787 (fix_jump_move): Likewise.
5788 * ifcvt.c (noce_process_if_block): Likewise.
5789 (dead_or_predicable): Likewise.
5790 * ira.c (update_equiv_regs): Likewise.
5791 * reg-stack.c (change_stack): Likewise.
5792 * sel-sched-ir.c (sel_move_insn): Likewise.
5793 * sel-sched.c (move_nop_to_previous_block): Likewise.
5794
5795 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5796 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5797
5798 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5799
5800 * rtl.h (for_each_rtx_in_insn): New function.
5801 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5802
5803 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5804
5805 * coretypes.h (class rtx_insn): Add forward declaration.
5806
5807 * rtl.h: Include is-a.h.
5808 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5809 workaround to ensure gengtype knows inheritance is occurring,
5810 whilst continuing to use the pre-existing special-casing for
5811 rtx_def.
5812 (class rtx_insn): New subclass of rtx_def, adding the
5813 invariant that we're dealing with something we can sanely use
5814 INSN_UID, NEXT_INSN, PREV_INSN on.
5815 (is_a_helper <rtx_insn *>::test): New.
5816 (is_a_helper <const rtx_insn *>::test): New.
5817
5818 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5819
5820 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5821
5822 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5823
5824 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5825 comdats as extern.
5826
5827 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5828
5829 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5830 to BUILT_IN_UNREACHABLE.
5831
5832 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5833
5834 PR target/62011
5835 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5836 New tune flag.
5837 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5838 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5839 (ffs<mode>2): Do not expand with tzcnt for
5840 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5841 (ffssi2_no_cmove): Ditto.
5842 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5843 (ctz<mode>2): New expander.
5844 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5845 (*ctz<mode>2_falsedep): New insn.
5846 (*ctz<mode>2): Rename from ctz<mode>2.
5847 (clz<mode>2_lzcnt): New expander.
5848 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5849 (*clz<mode>2_lzcnt_falsedep): New insn.
5850 (*clz<mode>2): Rename from ctz<mode>2.
5851 (popcount<mode>2): New expander.
5852 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5853 (*popcount<mode>2_falsedep): New insn.
5854 (*popcount<mode>2): Rename from ctz<mode>2.
5855 (*popcount<mode>2_cmp): Remove.
5856 (*popcountsi2_cmp_zext): Ditto.
5857
5858 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5859
5860 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5861 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5862 * config/microblaze/microblaze.h
5863 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5864
5865 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5866
5867 PR other/62168
5868 * configure.ac: Set install_gold_as_default to no for
5869 --enable-gold=no.
5870 * configure: Regenerated.
5871
5872 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5873
5874 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5875 * config.in: Add undef of HAVE_isl.
5876 * configure: Regenerate.
5877 * configure.ac: Add definition of HAVE_isl.
5878 * graphite-blocking.c: Add checking of HAVE_isl.
5879 * graphite-dependences.c: Likewise.
5880 * graphite-interchange.c: Likewise.
5881 * graphite-isl-ast-to-gimple.c: Likewise.
5882 * graphite-optimize-isl.c: Likewise.
5883 * graphite-poly.c: Likewise.
5884 * graphite-scop-detection.c: Likewise.
5885 * graphite-sese-to-poly.c: Likewise.
5886 * graphite.c: Likewise.
5887 * toplev.c: Replace the checking of HAVE_cloog with the checking
5888 of HAVE_isl.
5889
5890 2014-08-18 Richard Biener <rguenther@suse.de>
5891
5892 PR tree-optimization/62090
5893 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5894 (fold_builtin_3): Do not fold snprintf.
5895 (fold_builtin_4): Likewise.
5896 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5897 moved from builtins.c.
5898 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5899 (gimple_fold_builtin): Do not fold sprintf here.
5900
5901 2014-08-18 Richard Biener <rguenther@suse.de>
5902
5903 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5904 code to ...
5905 (maybe_canonicalize_mem_ref_addr): ... this function.
5906 (fold_stmt_1): Apply it here before all simplification.
5907
5908 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5909
5910 PR ipa/61800
5911 * cgraph.h (cgraph_node::create_indirect_edge): Add
5912 compute_indirect_info param.
5913 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5914 indirect_info only when it is required.
5915 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5916 indirect_info fore cloned indirect edge.
5917
5918 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5920 Anna Tikhonova <anna.tikhonova@intel.com>
5921 Ilya Tocar <ilya.tocar@intel.com>
5922 Andrey Turetskiy <andrey.turetskiy@intel.com>
5923 Ilya Verbin <ilya.verbin@intel.com>
5924 Kirill Yukhin <kirill.yukhin@intel.com>
5925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5926
5927 * config/i386/sse.md
5928 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5929 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5930
5931 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5932 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5933 Anna Tikhonova <anna.tikhonova@intel.com>
5934 Ilya Tocar <ilya.tocar@intel.com>
5935 Andrey Turetskiy <andrey.turetskiy@intel.com>
5936 Ilya Verbin <ilya.verbin@intel.com>
5937 Kirill Yukhin <kirill.yukhin@intel.com>
5938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5939
5940 * config/i386/sse.md
5941 (define_mode_iterator VF1_AVX512VL): New.
5942 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5943 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5944 New.
5945
5946 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5947 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5948 Anna Tikhonova <anna.tikhonova@intel.com>
5949 Ilya Tocar <ilya.tocar@intel.com>
5950 Andrey Turetskiy <andrey.turetskiy@intel.com>
5951 Ilya Verbin <ilya.verbin@intel.com>
5952 Kirill Yukhin <kirill.yukhin@intel.com>
5953 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5954
5955 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5956 * config/i386/i386.md
5957 (define_code_iterator any_float): New.
5958 (define_code_attr floatsuffix): New.
5959 * config/i386/sse.md
5960 (define_mode_iterator VF1_128_256VL): New.
5961 (define_mode_iterator VF2_512_256VL): New.
5962 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5963 TARGET check.
5964 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5965 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5966 New.
5967 (define_mode_attr qq2pssuff): New.
5968 (define_mode_attr sselongvecmode): New.
5969 (define_mode_attr sselongvecmodelower): New.
5970 (define_mode_attr sseintvecmode3): New.
5971 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5972 New.
5973 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5974 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5975 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5976 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5977
5978 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5979 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5980 Anna Tikhonova <anna.tikhonova@intel.com>
5981 Ilya Tocar <ilya.tocar@intel.com>
5982 Andrey Turetskiy <andrey.turetskiy@intel.com>
5983 Ilya Verbin <ilya.verbin@intel.com>
5984 Kirill Yukhin <kirill.yukhin@intel.com>
5985 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5986
5987 * config/i386/sse.md
5988 (define_mode_iterator VF2_AVX512VL): New.
5989 (define_mode_attr sseintvecmode2): New.
5990 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5991 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5992 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5993 (define_insn
5994 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5995 Ditto.
5996 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5997 Ditto.
5998 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5999 Ditto.
6000
6001 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6003 Anna Tikhonova <anna.tikhonova@intel.com>
6004 Ilya Tocar <ilya.tocar@intel.com>
6005 Andrey Turetskiy <andrey.turetskiy@intel.com>
6006 Ilya Verbin <ilya.verbin@intel.com>
6007 Kirill Yukhin <kirill.yukhin@intel.com>
6008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6009
6010 * config/i386/i386.md
6011 (define_insn "*movoi_internal_avx"): Add evex version.
6012 (define_insn "*movti_internal"): Ditto.
6013
6014 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6015 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6016 Anna Tikhonova <anna.tikhonova@intel.com>
6017 Ilya Tocar <ilya.tocar@intel.com>
6018 Andrey Turetskiy <andrey.turetskiy@intel.com>
6019 Ilya Verbin <ilya.verbin@intel.com>
6020 Kirill Yukhin <kirill.yukhin@intel.com>
6021 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6022
6023 * config/i386/i386.md
6024 (define_attr "isa"): Add avx512dq, noavx512dq.
6025 (define_attr "enabled"): Ditto.
6026 * config/i386/sse.md
6027 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6028
6029 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6030 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6031 Anna Tikhonova <anna.tikhonova@intel.com>
6032 Ilya Tocar <ilya.tocar@intel.com>
6033 Andrey Turetskiy <andrey.turetskiy@intel.com>
6034 Ilya Verbin <ilya.verbin@intel.com>
6035 Kirill Yukhin <kirill.yukhin@intel.com>
6036 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6037
6038 * config/i386/i386.c
6039 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6040 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6041 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6042 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6043 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6044 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6045 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6046 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6047 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6048 * config/i386/sse.md
6049 (define_mode_iterator VMOVE): Allow V4TI mode.
6050 (define_mode_iterator V_AVX512VL): New.
6051 (define_mode_iterator V): New handling for AVX512VL.
6052 (define_insn "avx512f_load<mode>_mask"): Delete.
6053 (define_insn "<avx512>_load<mode>_mask"): New.
6054 (define_insn "avx512f_store<mode>_mask"): Delete.
6055 (define_insn "<avx512>_store<mode>_mask"): New.
6056
6057
6058 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6059
6060 PR sanitizer/62089
6061 * asan.c (instrument_derefs): Fix bitfield check.
6062
6063 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6064
6065 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6066 * config/rs6000/htm.md (ttest): Remove clobber.
6067 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6068 (and_operand): Reformat.
6069 (and_2rld_operand): New predicate.
6070 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6071 parameter.
6072 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6073 parameter. Handle AND directly.
6074 (rs6000_split_logical_di): Remove last parameter.
6075 (rs6000_split_logical): Remove last parameter. Remove obsolete
6076 comment.
6077 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6078 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6079 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6080 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6081 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6082 and 5 anonymous splitters): Delete.
6083 (and<mode>3): New expander.
6084 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6085 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6086 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6087 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6088 (floatdisf2_internal1): Remove clobbers.
6089 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6090 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6091 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6092 (and<mode>3 for BOOL_128): Remove clobber.
6093 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6094 rs6000_split_logical.
6095 (*bool<mode>3_internal for BOOL_128): Adjust call of
6096 rs6000_split_logical.
6097 (*boolc<mode>3_internal1 for BOOL_128,
6098 *boolc<mode>3_internal2 for BOOL_128,
6099 *boolcc<mode>3_internal1 for BOOL_128,
6100 *boolcc<mode>3_internal2 for BOOL_128,
6101 *eqv<mode>3_internal1 for BOOL_128,
6102 *eqv<mode>3_internal2 for BOOL_128,
6103 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6104 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6105 clobber.
6106 (*vec_reload_and_reg_<mptrsize>): Delete.
6107
6108 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6109
6110 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6111 and split, *boolccsi3_internal3 and split): Delete.
6112 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6113 *boolccdi3_internal3 and split): Delete.
6114 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6115 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6116
6117 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6118
6119 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6120 and split, *boolcsi3_internal3 and split): Delete.
6121 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6122 *boolcdi3_internal3 and split): Delete.
6123 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6124
6125 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6126
6127 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6128 <'u'>: Also support printing the low-order 16 bits.
6129 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6130 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6131 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6132 *booldi3_internal3 and split): Delete.
6133 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6134 *bool<mode>3_dot2): New.
6135 (two anonymous define_splits for non_logical_cint_operand): Merge.
6136
6137 2014-08-17 Marek Polacek <polacek@redhat.com>
6138 Manuel López-Ibáñez <manu@gcc.gnu.org>
6139
6140 PR c/62059
6141 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6142 (diagnostic_show_locus): Don't print caret diagnostic
6143 if a column is larger than the line_width.
6144
6145 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6146
6147 * common.opt: Make the ISL AST generator to be the main code generator
6148 of Graphite.
6149
6150 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6151
6152 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6153
6154 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6155
6156 PR target/61641
6157 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6158 Declare.
6159 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6160 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6161 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6162 Define.
6163 * config/pa/pa.md (begin_brtab): Delete insn.
6164 (end_brtab): Likewise.
6165
6166 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6167
6168 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6169
6170 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6171
6172 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6173 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6174 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6175 (get_dynamic_type): Remove.
6176 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6177 (clear_speculation): Bring to ipa-deivrt.h
6178 (get_class_context): Rename to ...
6179 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6180 (contains_type_p): Update.
6181 (get_dynamic_type): Rename to ...
6182 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6183 (possible_polymorphic_call_targets): UPdate.
6184 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6185 * ipa-prop.c (ipa_analyze_call_uses): Update.
6186
6187 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6188
6189 * doc/invoke.texi (SH options): Document missing processor variant
6190 options. Remove references to Hitachi. Undocument deprecated mspace
6191 option.
6192
6193 2014-08-15 Jason Merrill <jason@redhat.com>
6194
6195 * tree.c (type_hash_canon): Uncomment assert.
6196
6197 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6198
6199 * input.h (in_system_header_at): Add comment.
6200
6201 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6202
6203 PR fortran/44054
6204 * diagnostic.c (build_message_string): Make it extern.
6205 * diagnostic.h (build_message_string): Make it extern.
6206
6207 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6208
6209 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6210 load/store from/to non-floating class pseudo.
6211
6212 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6213
6214 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6215
6216 2014-08-15 Richard Biener <rguenther@suse.de>
6217
6218 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6219 (get_constraint_for_ssa_var): Remove dead code.
6220 (get_constraint_for_1): Adjust.
6221 (find_what_var_points_to): Likewise.
6222 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6223
6224 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6225
6226 PR target/61878
6227 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6228 (_mm512_mask_cmpge_epu32_mask): Ditto.
6229 (_mm512_cmpge_epu32_mask): Ditto.
6230 (_mm512_mask_cmpge_epi64_mask): Ditto.
6231 (_mm512_cmpge_epi64_mask): Ditto.
6232 (_mm512_mask_cmpge_epu64_mask): Ditto.
6233 (_mm512_cmpge_epu64_mask): Ditto.
6234 (_mm512_mask_cmple_epi32_mask): Ditto.
6235 (_mm512_cmple_epi32_mask): Ditto.
6236 (_mm512_mask_cmple_epu32_mask): Ditto.
6237 (_mm512_cmple_epu32_mask): Ditto.
6238 (_mm512_mask_cmple_epi64_mask): Ditto.
6239 (_mm512_cmple_epi64_mask): Ditto.
6240 (_mm512_mask_cmple_epu64_mask): Ditto.
6241 (_mm512_cmple_epu64_mask): Ditto.
6242 (_mm512_mask_cmplt_epi32_mask): Ditto.
6243 (_mm512_cmplt_epi32_mask): Ditto.
6244 (_mm512_mask_cmplt_epu32_mask): Ditto.
6245 (_mm512_cmplt_epu32_mask): Ditto.
6246 (_mm512_mask_cmplt_epi64_mask): Ditto.
6247 (_mm512_cmplt_epi64_mask): Ditto.
6248 (_mm512_mask_cmplt_epu64_mask): Ditto.
6249 (_mm512_cmplt_epu64_mask): Ditto.
6250 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6251 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6252 (_mm512_cmpneq_epu32_mask): Ditto.
6253 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6254 (_mm512_cmpneq_epi64_mask): Ditto.
6255 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6256 (_mm512_cmpneq_epu64_mask): Ditto.
6257 (_mm512_castpd_ps): Ditto.
6258 (_mm512_castpd_si512): Ditto.
6259 (_mm512_castps_pd): Ditto.
6260 (_mm512_castps_si512): Ditto.
6261 (_mm512_castsi512_ps): Ditto.
6262 (_mm512_castsi512_pd): Ditto.
6263 (_mm512_castpd512_pd128): Ditto.
6264 (_mm512_castps512_ps128): Ditto.
6265 (_mm512_castsi512_si128): Ditto.
6266 (_mm512_castpd512_pd256): Ditto.
6267 (_mm512_castps512_ps256): Ditto.
6268 (_mm512_castsi512_si256): Ditto.
6269 (_mm512_castpd128_pd512): Ditto.
6270 (_mm512_castps128_ps512): Ditto.
6271 (_mm512_castsi128_si512): Ditto.
6272 (_mm512_castpd256_pd512): Ditto.
6273 (_mm512_castps256_ps512): Ditto.
6274 (_mm512_castsi256_si512): Ditto.
6275 (_mm512_cmpeq_epu32_mask): Ditto.
6276 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6277 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6278 (_mm512_cmpeq_epu64_mask): Ditto.
6279 (_mm512_cmpgt_epu32_mask): Ditto.
6280 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6281 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6282 (_mm512_cmpgt_epu64_mask): Ditto.
6283 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6284 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6285 * config/i386/i386.c (enum ix86_builtins): Add
6286 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6287 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6288 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6289 (bdesc_args): Add __builtin_ia32_si512_256si,
6290 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6291 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6292 __builtin_ia32_pd512_pd.
6293 (ix86_expand_args_builtin): Handle new FTYPEs.
6294 * config/i386/sse.md (castmode): Add 512-bit modes.
6295 (AVX512MODE2P): New.
6296 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6297 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6298
6299 2014-08-15 Richard Biener <rguenther@suse.de>
6300
6301 * fold-const.c (tree_swap_operands_p): Put all constants
6302 last, also strip sign-changing NOPs when considering further
6303 canonicalization. Canonicalize also when optimizing for size.
6304
6305 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6306
6307 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6308 one_match > zero_match case to just before simple_sequence.
6309
6310 2014-08-15 Richard Biener <rguenther@suse.de>
6311
6312 * data-streamer.h (streamer_string_index, string_for_index):
6313 Remove.
6314 * data-streamer-out.c (streamer_string_index): Make static.
6315 * data-streamer-in.c (string_for_index): Likewise.
6316 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6317 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6318
6319 2014-08-15 Richard Biener <rguenther@suse.de>
6320
6321 PR tree-optimization/62031
6322 * tree-data-ref.c (dr_analyze_indices): Do not set
6323 DR_UNCONSTRAINED_BASE.
6324 (dr_may_alias_p): All indirect accesses have to go the
6325 formerly DR_UNCONSTRAINED_BASE path.
6326 * tree-data-ref.h (struct indices): Remove
6327 unconstrained_base member.
6328 (DR_UNCONSTRAINED_BASE): Remove.
6329
6330 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6331
6332 PR middle-end/62092
6333 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6334 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6335 in OMP_CLAUSE_MAP in some outer target region.
6336
6337 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6338
6339 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6340 name_expansion_cache.
6341 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6342 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6343 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6344 (difference_cannot_overflow_p): New parameter. Use affine
6345 expansion for equality check.
6346 (iv_elimination_compare_lt): Pass new argument.
6347
6348 2014-08-14 DJ Delorie <dj@redhat.com>
6349
6350 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6351 variables to the accumulator.
6352
6353 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6354 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6355 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6356 with far-far moves.
6357
6358 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6359 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6360 (umulqihi3_virt): Likewise.
6361 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6362 (umulqihi3_real): Likewise.
6363
6364 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6365
6366 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6367
6368 PR tree-optimization/62091
6369 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6370 function_entry_reached.
6371 (walk_aliased_vdefs): Clear it here.
6372 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6373
6374 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6375
6376 * ipa-utils.h (compare_virtual_tables): Declare.
6377 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6378
6379 2014-08-14 Marek Polacek <polacek@redhat.com>
6380
6381 DR 458
6382 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6383 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6384
6385 2014-08-14 Tom de Vries <tom@codesourcery.com>
6386
6387 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6388
6389 2014-08-14 Tom de Vries <tom@codesourcery.com>
6390
6391 PR rtl-optimization/62004
6392 PR rtl-optimization/62030
6393 * ifcvt.c (rtx_interchangeable_p): New function.
6394 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6395 * emit-rtl.h (mem_attrs_eq_p): Declare.
6396
6397 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6398
6399 * graphite-scop-detection.c:
6400 Add inclusion of cp-tree.h.
6401 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6402 in case they are pointers to object types
6403
6404 2014-08-14 Richard Biener <rguenther@suse.de>
6405
6406 * BASE-VER: Change to 5.0.0
6407
6408 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6409 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6410 Anna Tikhonova <anna.tikhonova@intel.com>
6411 Ilya Tocar <ilya.tocar@intel.com>
6412 Andrey Turetskiy <andrey.turetskiy@intel.com>
6413 Ilya Verbin <ilya.verbin@intel.com>
6414 Kirill Yukhin <kirill.yukhin@intel.com>
6415 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6416
6417 * config/i386/sse.md (define_mode_attr avx512): New.
6418 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6419 V4DI modes.
6420 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6421 (define_mode_attr ssse3_avx2): Ditto.
6422 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6423 (define_mode_attr avx2_avx512bw): New.
6424 (define_mode_attr ssedoublemodelower): New.
6425 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6426 V32HI, V64QI modes.
6427 (define_mode_attr ssebytemode): Allow V8DI modes.
6428 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6429 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6430 (define_mode_attr ssePSmode2): New.
6431 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6432 V16HI, V32HI modes.
6433 (define_mode_attr dbpsadbwmode): New.
6434 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6435 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6436 (vi8_sse4_1_avx2_avx512): New.
6437 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6438 mode attribute.
6439 (define_mode_attr blendbits): Move before its immediate use.
6440
6441 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6443 Anna Tikhonova <anna.tikhonova@intel.com>
6444 Ilya Tocar <ilya.tocar@intel.com>
6445 Andrey Turetskiy <andrey.turetskiy@intel.com>
6446 Ilya Verbin <ilya.verbin@intel.com>
6447 Kirill Yukhin <kirill.yukhin@intel.com>
6448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6449
6450 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6451 * config/i386/subst.md
6452 (define_mode_iterator SUBST_V): Update.
6453 (define_mode_iterator SUBST_A): Ditto.
6454 (define_subst_attr "mask_operand7"): New.
6455 (define_subst_attr "mask_operand10"): New.
6456 (define_subst_attr "mask_operand_arg34") : New.
6457 (define_subst_attr "mask_expand_op3"): New.
6458 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6459 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6460 (define_subst_attr "mask_avx512vl_condition"): New.
6461 (define_subst_attr "round_mask_operand4"): Ditto.
6462 (define_subst_attr "round_mask_scalar_op3"): Delete.
6463 (define_subst_attr "round_mask_op4"): New.
6464 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6465 V16SImode.
6466 (define_subst_attr "round_modev8sf_condition"): New.
6467 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6468 <MODE>mode.
6469 (define_subst_attr "round_saeonly_mask_operand4"): New.
6470 (define_subst_attr "round_saeonly_mask_op4"): New.
6471 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6472 V8DImode, V16SImode.
6473 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6474 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6475 (define_subst_attr "mask_expand4_args"): New.
6476 (define_subst "mask_expand4"): New.
6477
6478 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6480 Anna Tikhonova <anna.tikhonova@intel.com>
6481 Ilya Tocar <ilya.tocar@intel.com>
6482 Andrey Turetskiy <andrey.turetskiy@intel.com>
6483 Ilya Verbin <ilya.verbin@intel.com>
6484 Kirill Yukhin <kirill.yukhin@intel.com>
6485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6486
6487 * config/i386/i386.md
6488 (define_attr "isa"): Add avx512bw,noavx512bw.
6489 (define_attr "enabled"): Ditto.
6490 (define_split): Add 32/64-bit mask logic.
6491 (define_insn "*k<logic>qi"): New.
6492 (define_insn "*k<logic>hi"): New.
6493 (define_insn "*anddi_1"): Add mask version.
6494 (define_insn "*andsi_1"): Ditto.
6495 (define_insn "*<code><mode>_1"): Ditto.
6496 (define_insn "*<code>hi_1"): Ditto.
6497 (define_insn "kxnor<mode>"): New.
6498 (define_insn "kunpcksi"): New.
6499 (define_insn "kunpckdi"): New.
6500 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6501 (define_insn "*one_cmplhi2_1"): Ditto.
6502
6503 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6505 Anna Tikhonova <anna.tikhonova@intel.com>
6506 Ilya Tocar <ilya.tocar@intel.com>
6507 Andrey Turetskiy <andrey.turetskiy@intel.com>
6508 Ilya Verbin <ilya.verbin@intel.com>
6509 Kirill Yukhin <kirill.yukhin@intel.com>
6510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6511
6512 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6513 V32HImode.
6514
6515 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6517 Anna Tikhonova <anna.tikhonova@intel.com>
6518 Ilya Tocar <ilya.tocar@intel.com>
6519 Andrey Turetskiy <andrey.turetskiy@intel.com>
6520 Ilya Verbin <ilya.verbin@intel.com>
6521 Kirill Yukhin <kirill.yukhin@intel.com>
6522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6523
6524 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6525 registers.
6526 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6527 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6528 xmm/ymm16+ when availble.
6529 * config/i386/i386.h
6530 (HARD_REGNO_NREGS): Add mask regs.
6531 (VALID_AVX512F_REG_MODE): Ditto.
6532 (VALID_AVX512F_REG_MODE) : Define.
6533 (VALID_MASK_AVX512BW_MODE): Ditto.
6534 (reg_class) (MASK_REG_P(X)): Define.
6535 * config/i386/i386.md: Do not split long moves with mask register,
6536 use kmovb if avx512bw is availible.
6537 (movdi_internal): Handle mask registers.
6538
6539 2014-08-14 Richard Biener <rguenther@suse.de>
6540
6541 PR tree-optimization/62081
6542 * tree-ssa-loop.c (pass_fix_loops): New pass.
6543 (pass_tree_loop::gate): Do not fixup loops here.
6544 * tree-pass.h (make_pass_fix_loops): Declare.
6545 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6546
6547 2014-08-14 Richard Biener <rguenther@suse.de>
6548
6549 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6550 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6551
6552 2014-08-14 Richard Biener <rguenther@suse.de>
6553
6554 PR tree-optimization/62090
6555 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6556 (fold_builtin_2): Do not fold sprintf.
6557 (fold_builtin_3): Likewise.
6558 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6559 moved from builtins.c.
6560 (gimple_fold_builtin): Fold sprintf.
6561
6562 2014-08-14 Richard Biener <rguenther@suse.de>
6563
6564 PR rtl-optimization/62079
6565 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6566 run cleanup_cfg.
6567
6568 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6569
6570 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6571 current_function_decl.
6572
6573 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6574
6575 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6576 cgraph_function_node to cgraph_node::function_symbol
6577 refactoring.
6578
6579 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6580
6581 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6582 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6583
6584 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6585
6586 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6587 warning.
6588
6589 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6590
6591 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6592 generator.
6593
6594 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6595
6596 PR target/62025
6597 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6598 any registers that are used in mem_insn.
6599
6600 2014-08-12 Steve Ellcey <sellcey@mips.com>
6601
6602 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6603
6604 2014-08-12 Steve Ellcey <sellcey@mips.com>
6605
6606 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6607 (MULTILIB_DIRNAMES): Ditto.
6608 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6609 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6610 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6611 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6612 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6613 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6614
6615 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6616
6617 PR target/61413
6618 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6619 of __ARM_SIZEOF_WCHAR_T.
6620
6621 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6622
6623 PR target/62098
6624 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6625 Remove unnecessary attributes.
6626
6627 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6628
6629 * internal-fn.c (init_internal_fns): Fix off-by-one.
6630
6631 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6633 Anna Tikhonova <anna.tikhonova@intel.com>
6634 Ilya Tocar <ilya.tocar@intel.com>
6635 Andrey Turetskiy <andrey.turetskiy@intel.com>
6636 Ilya Verbin <ilya.verbin@intel.com>
6637 Kirill Yukhin <kirill.yukhin@intel.com>
6638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6639
6640 * config/i386/i386.c (standard_sse_constant_opcode): Use
6641 vpxord/vpternlog if avx512 is availible.
6642
6643 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6644
6645 PR middle-end/62103
6646 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6647 bitfields, that is when size doesn't match the size of type or the
6648 size of the constructor.
6649
6650 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6651
6652 * config/rs6000/constraints.md (wh constraint): New constraint,
6653 for FP registers if direct move is available.
6654 (wi constraint): New constraint, for VSX/FP registers that can
6655 handle 64-bit integers.
6656 (wj constraint): New constraint for VSX/FP registers that can
6657 handle 64-bit integers for direct moves.
6658 (wk constraint): New constraint for VSX/FP registers that can
6659 handle 64-bit doubles for direct moves.
6660 (wy constraint): Make documentation match implementation.
6661
6662 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6663 scalar_in_vmx_p field to simplify tests of whether SFmode or
6664 DFmode can go in the Altivec registers.
6665 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6666 (rs6000_setup_reg_addr_masks): Likewise.
6667 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6668 field, and wh/wi/wj/wk constraints.
6669 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6670 the wh/wi/wj/wk constraints.
6671 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6672 upper registers, prefer VSX registers unless the operation is a
6673 memory operation with REG+OFFSET addressing.
6674
6675 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6676 DImode. Change SFmode to use ww constraint instead of d to allow
6677 SF registers in the upper registers.
6678 (VSr2): Likewise.
6679 (VSr3): Likewise.
6680 (VSr5): Fix thinko in comment.
6681 (VSa): New mode attribute that is an alternative to wa, that
6682 returns the VSX register class that a mode can go in, but may not
6683 be the preferred register class.
6684 (VS_64dm): New mode attribute for appropriate register classes for
6685 referencing 64-bit elements of vectors for direct moves and normal
6686 moves.
6687 (VS_64reg): Likewise.
6688 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6689 register allocator to only registers the data type can handle.
6690 (vsx_le_perm_load_<mode>): Likewise.
6691 (vsx_le_perm_store_<mode>): Likewise.
6692 (vsx_xxpermdi2_le_<mode>): Likewise.
6693 (vsx_xxpermdi4_le_<mode>): Likewise.
6694 (vsx_lxvd2x2_le_<mode>): Likewise.
6695 (vsx_lxvd2x4_le_<mode>): Likewise.
6696 (vsx_stxvd2x2_le_<mode>): Likewise.
6697 (vsx_add<mode>3): Likewise.
6698 (vsx_sub<mode>3): Likewise.
6699 (vsx_mul<mode>3): Likewise.
6700 (vsx_div<mode>3): Likewise.
6701 (vsx_tdiv<mode>3_internal): Likewise.
6702 (vsx_fre<mode>2): Likewise.
6703 (vsx_neg<mode>2): Likewise.
6704 (vsx_abs<mode>2): Likewise.
6705 (vsx_nabs<mode>2): Likewise.
6706 (vsx_smax<mode>3): Likewise.
6707 (vsx_smin<mode>3): Likewise.
6708 (vsx_sqrt<mode>2): Likewise.
6709 (vsx_rsqrte<mode>2): Likewise.
6710 (vsx_tsqrt<mode>2_internal): Likewise.
6711 (vsx_fms<mode>4): Likewise.
6712 (vsx_nfma<mode>4): Likewise.
6713 (vsx_eq<mode>): Likewise.
6714 (vsx_gt<mode>): Likewise.
6715 (vsx_ge<mode>): Likewise.
6716 (vsx_eq<mode>_p): Likewise.
6717 (vsx_gt<mode>_p): Likewise.
6718 (vsx_ge<mode>_p): Likewise.
6719 (vsx_xxsel<mode>): Likewise.
6720 (vsx_xxsel<mode>_uns): Likewise.
6721 (vsx_copysign<mode>3): Likewise.
6722 (vsx_float<VSi><mode>2): Likewise.
6723 (vsx_floatuns<VSi><mode>2): Likewise.
6724 (vsx_fix_trunc<mode><VSi>2): Likewise.
6725 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6726 (vsx_x<VSv>r<VSs>i): Likewise.
6727 (vsx_x<VSv>r<VSs>ic): Likewise.
6728 (vsx_btrunc<mode>2): Likewise.
6729 (vsx_b2trunc<mode>2): Likewise.
6730 (vsx_floor<mode>2): Likewise.
6731 (vsx_ceil<mode>2): Likewise.
6732 (vsx_<VS_spdp_insn>): Likewise.
6733 (vsx_xscvspdp): Likewise.
6734 (vsx_xvcvspuxds): Likewise.
6735 (vsx_float_fix_<mode>2): Likewise.
6736 (vsx_set_<mode>): Likewise.
6737 (vsx_extract_<mode>_internal1): Likewise.
6738 (vsx_extract_<mode>_internal2): Likewise.
6739 (vsx_extract_<mode>_load): Likewise.
6740 (vsx_extract_<mode>_store): Likewise.
6741 (vsx_splat_<mode>): Likewise.
6742 (vsx_xxspltw_<mode>): Likewise.
6743 (vsx_xxspltw_<mode>_direct): Likewise.
6744 (vsx_xxmrghw_<mode>): Likewise.
6745 (vsx_xxmrglw_<mode>): Likewise.
6746 (vsx_xxsldwi_<mode>): Likewise.
6747 (vsx_xscvdpspn): Tighten constraints to only use register classes
6748 the types use.
6749 (vsx_xscvspdpn): Likewise.
6750 (vsx_xscvdpspn_scalar): Likewise.
6751
6752 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6753 wj, and wk constraints.
6754 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6755 general purpose registers.
6756
6757 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6758 direct moves.
6759 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6760 DImode instead of wm. Use wk constraint for direct move of DFmode
6761 instead of wm.
6762 (extendsidi2_lfiwax): Likewise.
6763 (lfiwax): Likewise.
6764 (lfiwzx): Likewise.
6765 (movdi_internal64): Likewise.
6766
6767 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6768 wk constraints. Make the wy constraint documentation match them
6769 implementation.
6770
6771 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6772
6773 Replacement of isl_int by isl_val
6774 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6775 (compute_bounds_for_param): use isl_val instead of isl_int
6776 (compute_bounds_for_loop): likewise
6777 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6778 (build_linearized_memory_access): use isl_val instead of isl_int
6779 (pdr_stride_in_loop): likewise
6780 * graphite-optimize-isl.c:
6781 (getPrevectorMap): use isl_val instead of isl_int
6782 * graphite-poly.c:
6783 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6784 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6785 (extern the_isl_ctx): declare
6786 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6787 (extract_affine_gmp): likewise
6788 (wrap): likewise
6789 (build_loop_iteration_domains): likewise
6790 (add_param_constraints): likewise
6791
6792 2014-08-11 Richard Biener <rguenther@suse.de>
6793
6794 PR tree-optimization/62075
6795 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6796 handle uses in patterns.
6797
6798 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6800 Anna Tikhonova <anna.tikhonova@intel.com>
6801 Ilya Tocar <ilya.tocar@intel.com>
6802 Andrey Turetskiy <andrey.turetskiy@intel.com>
6803 Ilya Verbin <ilya.verbin@intel.com>
6804 Kirill Yukhin <kirill.yukhin@intel.com>
6805 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6806
6807 * common/config/i386/i386-common.c
6808 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6809 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6810 (ix86_handle_option): Handle OPT_mavx512vl.
6811 * config/i386/cpuid.h (bit_AVX512VL): Define.
6812 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6813 set -mavx512vl accordingly.
6814 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6815 OPTION_MASK_ISA_AVX512VL.
6816 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6817 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6818 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6819 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6820 * config/i386/i386.h (TARGET_AVX512VL): Define.
6821 (TARGET_AVX512VL_P(x)): Ditto.
6822 * config/i386/i386.opt: Add mavx512vl.
6823
6824 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6825
6826 PR tree-optimization/62073
6827 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6828 a basic block.
6829
6830 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6832 Anna Tikhonova <anna.tikhonova@intel.com>
6833 Ilya Tocar <ilya.tocar@intel.com>
6834 Andrey Turetskiy <andrey.turetskiy@intel.com>
6835 Ilya Verbin <ilya.verbin@intel.com>
6836 Kirill Yukhin <kirill.yukhin@intel.com>
6837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6838
6839 * common/config/i386/i386-common.c
6840 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6841 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6842 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6843 (ix86_handle_option): Handle OPT_mavx512bw.
6844 * config/i386/cpuid.h (bit_AVX512BW): Define.
6845 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6846 set -mavx512bw accordingly.
6847 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6848 OPTION_MASK_ISA_AVX512BW.
6849 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6850 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6851 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6852 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6853 * config/i386/i386.h (TARGET_AVX512BW): Define.
6854 (TARGET_AVX512BW_P(x)): Ditto.
6855 * config/i386/i386.opt: Add mavx512bw.
6856
6857 2014-08-11 Richard Biener <rguenther@suse.de>
6858
6859 PR tree-optimization/62070
6860 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6861 Remove SSA checking.
6862
6863 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6864
6865 * asan.c (asan_check_flags): New enum.
6866 (build_check_stmt_with_calls): Removed function.
6867 (build_check_stmt): Split inlining logic to
6868 asan_expand_check_ifn.
6869 (instrument_derefs): Rename parameter.
6870 (instrument_mem_region_access): Rename parameter.
6871 (instrument_strlen_call): Likewise.
6872 (asan_expand_check_ifn): New function.
6873 (asan_instrument): Remove old code.
6874 (pass_sanopt::execute): Change handling of
6875 asan-instrumentation-with-call-threshold.
6876 (asan_clear_shadow): Fix formatting.
6877 (asan_function_start): Likewise.
6878 (asan_emit_stack_protection): Likewise.
6879 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6880 Update description.
6881 * internal-fn.c (expand_ASAN_CHECK): New function.
6882 * internal-fn.def (ASAN_CHECK): New internal function.
6883 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6884 Update description.
6885 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6886 * tree.c: Small comment fix.
6887
6888 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6889
6890 * gimple.c (gimple_call_fnspec): Support internal functions.
6891 (gimple_call_return_flags): Use const.
6892 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6893 * internal-fn.def: Add fnspec information.
6894 * internal-fn.h (internal_fn_fnspec): New function.
6895 (init_internal_fns): Declare new function.
6896 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6897 (init_internal_fns): New function.
6898 * tree-core.h: Update macro call.
6899 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6900
6901 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6902
6903 * lto-streamer.h (struct output_block::symbol): Change from
6904 struct symtab_node to plain symtab_node.
6905 (referenced_from_this_partition_p): Change first parameter
6906 from struct symtab_node to plain symtab_node.
6907
6908 2014-08-10 Marek Polacek <polacek@redhat.com>
6909
6910 PR c/51849
6911 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6912
6913 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6914
6915 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6916 DECL correctly; do not give up on types in static storage.
6917
6918 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6919
6920 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6921
6922 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6923
6924 * graphite-isl-ast-to-gimple.c:
6925 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6926
6927 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6928
6929 2014-08-08 Guozhi Wei <carrot@google.com>
6930
6931 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6932
6933 2014-08-08 Cary Coutant <ccoutant@google.com>
6934
6935 * dwarf2out.c (get_skeleton_type_unit): Remove.
6936 (output_skeleton_debug_sections): Remove skeleton type units.
6937 (output_comdat_type_unit): Likewise.
6938 (dwarf2out_finish): Likewise.
6939
6940 2014-08-07 Yi Yang <ahyangyi@google.com>
6941
6942 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6943
6944 2014-08-08 Richard Biener <rguenther@suse.de>
6945
6946 * lto-streamer.h (struct lto_input_block): Make it a class
6947 with a constructor.
6948 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6949 (struct lto_function_header, struct lto_simple_header,
6950 struct lto_simple_header_with_strings,
6951 struct lto_decl_header, struct lto_function_header): Make
6952 a simple inheritance hieararchy. Remove unused fields.
6953 (struct lto_asm_header): Remove.
6954 * lto-streamer-out.c (produce_asm): Adjust.
6955 (lto_output_toplevel_asms): Likewise.
6956 (produce_asm_for_decls): Likewise.
6957 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6958 * data-streamer-in.c (string_for_index): Likewise.
6959 * ipa-inline-analysis.c (inline_read_section): Likewise.
6960 * ipa-prop.c (ipa_prop_read_section): Likewise.
6961 (read_replacements_section): Likewise.
6962 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6963 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6964 (lto_destroy_simple_input_block): Likewise.
6965 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6966 (lto_input_toplevel_asms): Likewise.
6967
6968 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6969 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6970 Anna Tikhonova <anna.tikhonova@intel.com>
6971 Ilya Tocar <ilya.tocar@intel.com>
6972 Andrey Turetskiy <andrey.turetskiy@intel.com>
6973 Ilya Verbin <ilya.verbin@intel.com>
6974 Kirill Yukhin <kirill.yukhin@intel.com>
6975 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6976
6977 * common/config/i386/i386-common.c
6978 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6979 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6980 (ix86_handle_option): Handle OPT_mavx512dq.
6981 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6982 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6983 set -mavx512dq accordingly.
6984 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6985 OPTION_MASK_ISA_AVX512DQ.
6986 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6987 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6988 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6989 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6990 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6991 (TARGET_AVX512DQ_P(x)): Ditto.
6992 * config/i386/i386.opt: Add mavx512dq.
6993
6994 2014-08-08 Richard Biener <rguenther@suse.de>
6995
6996 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6997 target_percent, target_percent_s): Export.
6998 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6999 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7000 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7001 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7002 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7003 Move to gimple-fold.c.
7004 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7005 strcat and strcpy.
7006 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7007 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7008 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7009 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7010 (rewrite_call_expr_array): Remove.
7011 (fold_builtin_sprintf_chk): Likewise.
7012 (fold_builtin_snprintf_chk): Likewise.
7013 (fold_builtin_varargs): Remove handling of sprintf_chk,
7014 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7015 (gimple_fold_builtin_sprintf_chk): Remove.
7016 (gimple_fold_builtin_snprintf_chk): Likewise.
7017 (gimple_fold_builtin_varargs): Likewise.
7018 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7019 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7020 * gimple.c (gimple_seq_add_seq_without_update): New function.
7021 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7022 * gimple-fold.c: Include output.h.
7023 (gsi_replace_with_seq_vops): New function, split out from ...
7024 (gimplify_and_update_call_from_tree): ... here.
7025 (replace_call_with_value): New function.
7026 (replace_call_with_call_and_fold): Likewise.
7027 (var_decl_component_p): Moved from builtins.c.
7028 (gimple_fold_builtin_memory_op): Moved from builtins.c
7029 fold_builtin_memory_op and rewritten to GIMPLE.
7030 (gimple_fold_builtin_memset): Likewise.
7031 (gimple_fold_builtin_strcpy): Likewise.
7032 (gimple_fold_builtin_strncpy): Likewise.
7033 (gimple_fold_builtin_strcat): Likewise.
7034 (gimple_fold_builtin_fputs): Likewise.
7035 (gimple_fold_builtin_memory_chk): Likewise.
7036 (gimple_fold_builtin_stxcpy_chk): Likewise.
7037 (gimple_fold_builtin_stxncpy_chk): Likewise.
7038 (gimple_fold_builtin_snprintf_chk): Likewise.
7039 (gimple_fold_builtin_sprintf_chk): Likewise.
7040 (gimple_fold_builtin_strlen): New function.
7041 (gimple_fold_builtin_with_strlen): New function split out from
7042 gimple_fold_builtin.
7043 (gimple_fold_builtin): Change signature and handle
7044 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7045 here. Call gimple_fold_builtin_with_strlen.
7046 (gimple_fold_call): Adjust.
7047
7048 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7049
7050 * calls.c (precompute_arguments): Check
7051 promoted_for_signed_and_unsigned_p and set the promoted mode.
7052 (promoted_for_signed_and_unsigned_p): New function.
7053 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7054 and set the promoted mode.
7055 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7056 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7057 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7058
7059
7060 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7061
7062 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7063 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7064 (expand_call): Likewise.
7065 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7066 to get promoted mode.
7067 * combine.c (record_promoted_value): Skip > 0 comparison with
7068 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7069 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7070 of SUBREG_PROMOTED_UNSIGNED_P.
7071 (convert_modes): Likewise.
7072 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7073 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7074 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7075 SUBREG_PROMOTED_UNSIGNED_SET.
7076 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7077 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7078 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7079 SUBREG_PROMOTED_SET.
7080 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7081 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7082 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7083 of SUBREG_PROMOTED_UNSIGNED_P.
7084 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7085 (SUBREG_PROMOTED_SET): New define.
7086 (SUBREG_PROMOTED_GET): Likewise.
7087 (SUBREG_PROMOTED_SIGN): Likewise.
7088 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7089 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7090 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7091 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7092 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7093 (nonzero_bits1): Skip > 0 comparison with the results as
7094 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7095 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7096 of !SUBREG_PROMOTED_UNSIGNED_P.
7097 * simplify-rtx.c (simplify_unary_operation_1): Use new
7098 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7099 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7100 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7101 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7102
7103 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7104
7105 * ipa-devirt.c: Include gimple-pretty-print.h
7106 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7107 further tests.
7108 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7109 (get_polymorphic_call_info): Fix return value
7110 (type_change_info): New sturcture based on ipa-prop
7111 variant.
7112 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7113 based on ipa-prop variant.
7114 (extr_type_from_vtbl_ptr_store): New function
7115 based on ipa-prop variant.
7116 (record_known_type): New function.
7117 (check_stmt_for_type_change): New function.
7118 (get_dynamic_type): New function.
7119 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7120 * tree-ssa-pre.c: ipa-utils.h
7121 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7122 machinery; sanity check with ipa-prop devirtualization.
7123 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7124 polymorphic flag.
7125
7126 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7127
7128 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7129 * alias.c, cfgexpand.c, cgraphbuild.c,
7130 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7131 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7132 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7133 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7134 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7135 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7136 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7137 dse.c, except.c, gengtype.c, gimple-expr.c,
7138 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7139 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7140 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7141 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7142 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7143 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7144 pointer-set.h.
7145 * pointer-set.c: Remove file.
7146 * pointer-set.h: Remove file.
7147
7148 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7149
7150 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7151 * config/arm/types.md (f_sels, f_seld): Delete.
7152
7153 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7154
7155 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7156 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7157 (aarch64_movdi_<mode>high): Likewise.
7158 (aarch64_mov<mode>high_di): Likewise.
7159 (aarch64_movdi_<mode>low): Likewise.
7160 (aarch64_mov<mode>low_di): Likewise.
7161 (aarch64_movtilow_tilow): Likewise.
7162 Add comment explaining usage of fp,simd attributes and of
7163 TARGET_FLOAT and TARGET_SIMD.
7164
7165 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7166 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7167
7168 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7169 Use MOVN when one of the half-words is 0xffff.
7170
7171 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7172
7173 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7174
7175 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7176
7177 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7178 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7179 (rfs_str): String corresponding to RFS_* constants.
7180 (rank_for_schedule_stats_t): New typedef.
7181 (rank_for_schedule_stats): New static variable.
7182 (rfs_result): New static function.
7183 (rank_for_schedule): Track statistics for deciding heuristics.
7184 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7185 static functions.
7186 (ready_sort): Use them for debug printouts.
7187 (schedule_block): Init statistics state. Print statistics on
7188 rank_for_schedule decisions.
7189
7190 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7191
7192 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7193
7194 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7195
7196 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7197 constraint.
7198
7199 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7200
7201 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7202 function to not conflict.
7203 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7204 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7205 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7206 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7207 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7208 of pointer_map.
7209
7210 2014-08-07 Marek Polacek <polacek@redhat.com>
7211
7212 * fold-const.c (fold_binary_loc): Add folding of
7213 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7214
7215 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7216
7217 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7218 instead of type size.
7219 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7220
7221 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7222
7223 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7224 (*thumb1_movqi_insn): Likewise.
7225 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7226
7227 2014-08-07 Tom de Vries <tom@codesourcery.com>
7228
7229 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7230 (glibc_2_11_or_earlier): Remove effective-target keywords.
7231
7232 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7233
7234 * config/arm/arm.c (bdesc_2arg): Fix typo.
7235 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7236
7237 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7238
7239 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7240
7241 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7242
7243 PR debug/61923
7244 * haifa-sched.c (advance_one_cycle): Fix dump.
7245 (schedule_block): Don't advance cycle if we are already at the
7246 beginning of the cycle.
7247
7248 2014-08-06 Martin Jambor <mjambor@suse.cz>
7249
7250 PR ipa/61393
7251 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7252
7253 2014-08-06 Richard Biener <rguenther@suse.de>
7254
7255 PR lto/62034
7256 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7257 SCCs here.
7258 (lto_input_tree): Pop SCCs here.
7259
7260 2014-08-06 Richard Biener <rguenther@suse.de>
7261
7262 PR tree-optimization/61320
7263 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7264 handle misaligned loads.
7265
7266 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7267
7268 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7269 (aarch64_expand_vec_perm_const): Check for dup before zip.
7270
7271 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7272
7273 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7274 CONST_INT_P instead of GET_CODE and compare.
7275 (aarch64_select_cc_mode): Likewise.
7276 (aarch64_print_operand): Likewise.
7277 (aarch64_rtx_costs): Likewise.
7278 (aarch64_simd_valid_immediate): Likewise.
7279 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7280 (aarch64_simd_emit_pair_result_insn): Likewise.
7281
7282 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7283
7284 * gdbhooks.py (find_gcc_source_dir): New helper function.
7285 (class PassNames): New class, locating and parsing passes.def.
7286 (class BreakOnPass): New command "break-on-pass".
7287
7288 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7289
7290 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7291 getting olde.
7292
7293 2014-08-05 Richard Biener <rguenther@suse.de>
7294
7295 PR rtl-optimization/61672
7296 * emit-rtl.h (mem_attrs_eq_p): Declare.
7297 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7298 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7299 * cfgcleanup.c (merge_memattrs): Likewise.
7300 Include emit-rtl.h.
7301
7302 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7303
7304 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7305 rather than singleton vectors.
7306 (vqdmlsls_lane_s32): Likewise.
7307
7308 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7309
7310 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7311 Use VSDQ_HSI mode iterator.
7312 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7313 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7314 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7315 Use BUILTIN_VDQHS macro.
7316 (sqrdmulh_laneq): Likewise.
7317 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7318 (vqdmlals_laneq_s32): Likewise.
7319 (vqdmlslh_laneq_s16): Likewise.
7320 (vqdmlsls_laneq_s32): Likewise.
7321 (vqdmulhh_laneq_s16): Likewise.
7322 (vqdmulhs_laneq_s32): Likewise.
7323 (vqrdmulhh_laneq_s16): Likewise.
7324 (vqrdmulhs_laneq_s32): Likewise.
7325
7326 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7327
7328 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7329 (vmuld_laneq_f64): Likewise.
7330 (vmuls_laneq_f32): Likewise.
7331 (vmul_n_f64): Likewise.
7332 (vmuld_lane_f64): Reimplement in C.
7333 (vmuls_lane_f32): Likewise.
7334
7335 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7336
7337 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7338 to reservation.
7339 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7340
7341 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7342
7343 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7344 (rbitsi2): Likewise.
7345 (*arm_rev): Set predicable and predicable_short_it attributes.
7346
7347 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7348
7349 * convert.c (convert_to_integer): Guard transformation to lrint by
7350 -fno-math-errno.
7351
7352 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7353
7354 * config/aarch64/aarch64-builtins.c
7355 (aarch64_simd_builtin_type_mode): Delete.
7356 (v8qi_UP): Remap to V8QImode.
7357 (v4hi_UP): Remap to V4HImode.
7358 (v2si_UP): Remap to V2SImode.
7359 (v2sf_UP): Remap to V2SFmode.
7360 (v1df_UP): Remap to V1DFmode.
7361 (di_UP): Remap to DImode.
7362 (df_UP): Remap to DFmode.
7363 (v16qi_UP):V16QImode.
7364 (v8hi_UP): Remap to V8HImode.
7365 (v4si_UP): Remap to V4SImode.
7366 (v4sf_UP): Remap to V4SFmode.
7367 (v2di_UP): Remap to V2DImode.
7368 (v2df_UP): Remap to V2DFmode.
7369 (ti_UP): Remap to TImode.
7370 (ei_UP): Remap to EImode.
7371 (oi_UP): Remap to OImode.
7372 (ci_UP): Map to CImode.
7373 (xi_UP): Remap to XImode.
7374 (si_UP): Remap to SImode.
7375 (sf_UP): Remap to SFmode.
7376 (hi_UP): Remap to HImode.
7377 (qi_UP): Remap to QImode.
7378 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7379 (VAR1): Build builtin name.
7380 (aarch64_init_simd_builtins): Remove dead code.
7381
7382 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7383
7384 * graphite-isl-ast-to-gimple.c:
7385 (set_options): New function.
7386 (scop_to_isl_ast): Add calling of set_options.
7387
7388 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7389
7390 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7391 (analyze_iv_to_split_insn): Don't initialize them.
7392 (get_ivts_expr): Removed.
7393 (allocate_basic_variable, insert_base_initialization): Use
7394 SET_SRC instead of *get_ivts_expr.
7395 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7396
7397 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7398
7399 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7400 (translate_isl_ast_for_loop): Add checking of the
7401 flag_loop_parallelize_all.
7402 (ast_build_before_for): New function.
7403 (scop_to_isl_ast): Add checking of the
7404 flag_loop_parallelize_all.
7405 * graphite-dependences.c: Move the defenition of the
7406 scop_get_dependences from graphite-optimize-isl.c to this file.
7407 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7408 (carries_deps): Add checking of the x's value.
7409 * graphite-optimize-isl.c: Move the defenition of the
7410 scop_get_dependences to graphite-dependences.c.
7411 * graphite-poly.h: Add declarations of scop_get_dependences
7412 and carries_deps.
7413
7414 2014-08-04 Rohit <rohitarulraj@freescale.com>
7415
7416 PR target/60102
7417 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7418 names.
7419 (alt_reg_names): Likewise.
7420 (rs6000_dwarf_register_span): For SPE high registers, replace
7421 dwarf register numbers with GCC hard register numbers.
7422 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7423 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7424 register number for the corresponding GCC hard register number.
7425 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7426 newly added GCC hard register numbers for SPE high registers.
7427 (DWARF_FRAME_REGISTERS): Likewise.
7428 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7429 (DWARF_FRAME_REGNUM): Likewise.
7430 (FIXED_REGISTERS): Likewise.
7431 (CALL_USED_REGISTERS): Likewise.
7432 (CALL_REALLY_USED_REGISTERS): Likewise.
7433 (REG_ALLOC_ORDER): Likewise.
7434 (enum reg_class): Likewise.
7435 (REG_CLASS_NAMES): Likewise.
7436 (REG_CLASS_CONTENTS): Likewise.
7437 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7438
7439 2014-08-04 Richard Biener <rguenther@suse.de>
7440
7441 * gimple-fold.h (gimple_fold_builtin): Remove.
7442 * gimple-fold.c (gimple_fold_builtin): Make static.
7443 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7444 fold_stmt, not gimple_fold_builtin.
7445
7446 2014-08-04 Martin Liska <mliska@suse.cz>
7447
7448 * cgraph.h (csi_end_p): Removed.
7449 (csi_next): Likewise.
7450 (csi_node): Likewise.
7451 (csi_start): Likewise.
7452 (cgraph_node_in_set_p): Likewise.
7453 (cgraph_node_set_size): Likewise.
7454 (vsi_end_p): Likewise.
7455 (vsi_next): Likewise.
7456 (vsi_node): Likewise.
7457 (vsi_start): Likewise.
7458 (varpool_node_set_size): Likewise.
7459 (cgraph_node_set_nonempty_p): Likewise.
7460 (varpool_node_set_nonempty_p): Likewise.
7461 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7462 cgraph_node_set.
7463 * ipa-inline-transform.c: Likewise.
7464 * ipa-utils.c (cgraph_node_set_new): Removed.
7465 (cgraph_node_set_add): Likewise.
7466 (cgraph_node_set_remove): Likewise.
7467 (cgraph_node_set_find): Likewise.
7468 (dump_cgraph_node_set): Likewise.
7469 (debug_cgraph_node_set): Likewise.
7470 (free_cgraph_node_set): Likewise.
7471 (varpool_node_set_new): Likewise.
7472 (varpool_node_set_add): Likewise.
7473 (varpool_node_set_remove): Likewise.
7474 (varpool_node_set_find): Likewise.
7475 (dump_varpool_node_set): Likewise.
7476 (free_varpool_node_set): Likewise.
7477 (debug_varpool_node_set): Likewise.
7478 * tree-emutls.c (struct tls_var_data):
7479 (emutls_index): Removed.
7480 (emutls_decl): Likewise.
7481 (gen_emutls_addr): Function implementation uses newly added
7482 hash_map<varpool_node *, tls_var_data>.
7483 (clear_access_vars): Likewise.
7484 (create_emultls_var): Likewise.
7485 (ipa_lower_emutls): Likewise.
7486 (reset_access): New function.
7487
7488 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7489
7490 * config/i386/i386.c (ix86_option_override_internal): Add
7491 PTA_RDRND and PTA_MOVBE for bdver4.
7492
7493 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7494 James Greenhalgh <james.greenhalgh@arm.com>
7495
7496 * doc/md.texi (clrsb): Document.
7497 (clz): Change reference to x into operand 1.
7498 (ctz): Likewise.
7499 (popcount): Likewise.
7500
7501 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7502
7503 PR target/61713
7504 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7505 move to subtarget in serial version if result is ignored.
7506
7507 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7508 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7509
7510 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7511 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7512 (sched_analyze_insn): Update use of try_group_insn to
7513 sched_macro_fuse_insns.
7514 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7515 arguments that are not conditional jumps.
7516
7517 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7518
7519 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7520 family information. Handle BTVER2 cpu with cpuid family value.
7521
7522 2014-08-04 Tom de Vries <tom@codesourcery.com>
7523
7524 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7525 (glibc_2_11_or_earlier): Document effective-target keywords.
7526
7527 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7528
7529 * ipa-devirt.c (odr_type_warn_count): Add type.
7530 (possible_polymorphic_call_targets): Set it.
7531 (ipa_devirt): Use it.
7532
7533 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7534
7535 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7536 Document.
7537 * ipa-devirt.c: Include hash-map.h
7538 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7539 (clear_speculation): Break out of ...
7540 (get_class_context): ... here; speed up handling obviously useless
7541 speculations.
7542 (odr_type_warn_count, decl_warn_count): New structures.
7543 (final_warning_record): New structure.
7544 (final_warning_records): New static variable.
7545 (possible_polymorphic_call_targets): Cleanup handling of
7546 speculative info; do not build speculation when user do not care;
7547 record info about warnings when asked for.
7548 (add_decl_warning): New function.
7549 (type_warning_cmp): New function.
7550 (decl_warning_cmp): New function.
7551 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7552 (gate): Enable pass when warnings are requested.
7553 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7554 options.
7555
7556 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7557
7558 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7559 Fix cast.
7560 (hash_map::remove): New method.
7561 (hash_map::traverse): New method.
7562 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7563 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7564 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7565 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7566 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7567 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7568 pointer_map.
7569
7570 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7571
7572 * hash-set.h: new File.
7573 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7574 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7575 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7576 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7577 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7578 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7579 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7580 varpool.c: Use hash_set instead of pointer_set.
7581
7582 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7583
7584 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7585
7586 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7587
7588 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7589 for frame access when strict_p is false.
7590
7591 2014-08-01 Renlin Li <renlin.li@arm.com>
7592 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7593
7594 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7595 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7596 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7597 Declaration.
7598 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7599 predicate.
7600 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7601 aarch64_mem_pair_offset.
7602
7603 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7604
7605 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7606 offset.
7607 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7608 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7609
7610 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7611
7612 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7613
7614 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7615
7616 PR regression/61510
7617 * cgraphunit.c (analyze_functions): Use get_create rather than get
7618 for decls which are clones of abstract functions.
7619
7620 2014-08-01 Martin Liska <mliska@suse.cz>
7621
7622 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7623 * ipa-prop.h (count_formal_params): Global function created from static.
7624 * ipa-prop.c (count_formal_params): Likewise.
7625 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7626 profiles for semantically equivalent functions.
7627 * passes.c (do_per_function): If we load body of a function
7628 during WPA, this condition should behave same.
7629 * varpool.c (ctor_for_folding): More tolerant assert for variable
7630 aliases created during WPA.
7631
7632 2014-08-01 Martin Liska <mliska@suse.cz>
7633
7634 * doc/invoke.texi (Options That Control Optimization): Documentation
7635 for -foptimize-strlen introduced. Optimization levels default options
7636 fixed.
7637
7638 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7639
7640 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7641 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7642 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7643 type to bool.
7644 * stor-layout.h (min_align_of_type): New prototype.
7645 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7646 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7647 check.
7648 * ubsan.c: Include builtins.h.
7649 (ubsan_expand_bounds_ifn): Change return type to bool,
7650 always return true.
7651 (ubsan_expand_null_ifn): Change return type to bool, change
7652 argument to gimple_stmt_iterator *. Handle both null and alignment
7653 sanitization, take type from ckind argument's type rather than
7654 first argument.
7655 (instrument_member_call): Removed.
7656 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7657 Handle both null and alignment sanitization, don't say whole
7658 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7659 call instead of 2 argument.
7660 (instrument_null): Adjust instrument_mem_ref caller. Don't
7661 instrument calls here.
7662 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7663 like SANITIZE_NULL.
7664 * stor-layout.c (min_align_of_type): New function.
7665 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7666 Or it into SANITIZE_UNDEFINED.
7667 * doc/invoke.texi (-fsanitize=alignment): Document.
7668
7669 2014-07-31 Andi Kleen <ak@linux.intel.com>
7670
7671 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7672
7673 2014-07-31 Andi Kleen <ak@linux.intel.com>
7674
7675 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7676 inchash.
7677 (vn_reference_compute_hash): Dito.
7678 (vn_nary_op_compute_hash): Dito.
7679 (vn_phi_compute_hash): Dito.
7680 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7681
7682 2014-07-31 Andi Kleen <ak@linux.intel.com>
7683
7684 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7685 Rename to inchash:add_expr_commutative. Convert to inchash.
7686 (iterative_hash_hashable_expr): Rename to
7687 inchash:add_hashable_expr. Convert to inchash.
7688 (avail_expr_hash): Dito.
7689
7690 2014-07-31 Andi Kleen <ak@linux.intel.com>
7691
7692 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7693 Convert to inchash.
7694
7695 2014-07-31 Andi Kleen <ak@linux.intel.com>
7696
7697 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7698
7699 2014-07-31 Andi Kleen <ak@linux.intel.com>
7700
7701 * Makefile.in (OBJS): Add rtlhash.o
7702 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7703 (loc_checksum): Dito.
7704 (loc_checksum_ordered): Dito.
7705 (hash_loc_operands): Dito.
7706 (hash_locs): Dito.
7707 (hash_loc_list): Dito.
7708 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7709 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7710 * rtlhash.c: New file.
7711 * rtlhash.h: New file.
7712
7713 2014-07-31 Andi Kleen <ak@linux.intel.com>
7714
7715 * inchash.h (inchash): Change inchash class to namespace.
7716 (class hash): ... Rename from inchash.
7717 (add_object): Move from macro to class template.
7718 * lto-streamer-out.c (hash_tree): Change inchash
7719 to inchash::hash.
7720 * tree.c (build_type_attribute_qual_variant): Dito.
7721 (type_hash_list): Dito.
7722 (attribute_hash_list): Dito.
7723 (iterative_hstate_expr): Rename to inchash::add_expr
7724 (build_range_type_1): Change inchash to inchash::hash
7725 and use hash::add_expr.
7726 (build_array_type_1): Dito.
7727 (build_function_type): Dito
7728 (build_method_type_directly): Dito.
7729 (build_offset_type): Dito.
7730 (build_complex_type): Dito.
7731 (make_vector_type): Dito.
7732 * tree.h (iterative_hash_expr): Dito.
7733
7734 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7735
7736 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7737
7738 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7739
7740 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7741 correct alphabetical position.
7742 (vpaddd_f64): Rewrite using builtins.
7743 (vpaddd_s64): Move to correct alphabetical position.
7744 (vpaddd_u64): New.
7745
7746 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7747
7748 PR target/61844
7749 * config/sh/sh.c (sh_legitimate_address_p,
7750 sh_legitimize_reload_address): Handle reg+reg address modes when
7751 ALLOW_INDEXED_ADDRESS is false.
7752 * config/sh/predicates.md (general_movsrc_operand,
7753 general_movdst_operand): Likewise.
7754
7755 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7756
7757 * config/aarch64/aarch64-builtins.c
7758 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7759 BYTES_BIG_ENDIAN.
7760
7761 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7762
7763 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7764 the generated mask based on BYTES_BIG_ENDIAN.
7765 (aarch64_simd_check_vect_par_cnst_half): New.
7766 * config/aarch64/aarch64-protos.h
7767 (aarch64_simd_check_vect_par_cnst_half): New.
7768 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7769 the check out to aarch64_simd_check_vect_par_cnst_half.
7770 (vect_par_cnst_lo_half): Likewise.
7771 * config/aarch64/aarch64-simd.md
7772 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7773 (move_hi_quad_<mode>): Always generate a low mask.
7774
7775 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7776
7777 * doc/invoke.texi (AVR Options): Add documentation about
7778 __AVR_DEVICE_NAME__ built-in macro.
7779
7780 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7781
7782 PR target/61948
7783 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7784 constraints are satisfied.
7785 (<shift>di3_neon): Likewise.
7786
7787 2014-07-31 Richard Biener <rguenther@suse.de>
7788
7789 PR tree-optimization/61964
7790 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7791 by structural equality.
7792
7793 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7794
7795 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7796 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7797 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7798 New enums.
7799 * gcc.c (sanitize_spec_function): Support new option.
7800 (SANITIZER_SPEC): Remove now redundant check.
7801 * opts.c (common_handle_option): Support new option.
7802 (finish_options): Check for incompatibilities.
7803 * toplev.c (process_options): Split userspace-specific checks.
7804
7805 2014-07-31 Richard Biener <rguenther@suse.de>
7806
7807 * lto-streamer.h (struct output_block): Remove global.
7808 (struct data_in): Remove labels, num_named_labels and
7809 num_unnamed_labels.
7810 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7811 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7812
7813 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7814
7815 PR c++/60517
7816 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7817 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7818 (isolate_path): New argument to avoid inserting a trap.
7819 (find_implicit_erroneous_behaviour): Handle returning the address
7820 of a local variable.
7821 (find_explicit_erroneous_behaviour): Likewise.
7822
7823 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7824
7825 PR lto/61868
7826 * toplev.c (init_random_seed): Move piece of code never called to
7827 set_random_seed.
7828 (set_random_seed): see above.
7829
7830 2014-07-31 Tom de Vries <tom@codesourcery.com>
7831
7832 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7833
7834 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7835
7836 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7837 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7838
7839 2014-07-31 Richard Biener <rguenther@suse.de>
7840
7841 * data-streamer.h (streamer_write_data_stream): Declare here,
7842 renamed from ...
7843 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7844 * lto-cgraph.c (lto_output_node): Adjust.
7845 (lto_output_varpool_node): Likewise.
7846 * data-streamer-out.c (streamer_string_index): Likewise.
7847 (streamer_write_data_stream, lto_append_block): Move from ...
7848 * lto-section-out.c (lto_output_data_stream,
7849 lto_append_block): ... here.
7850
7851 2014-07-30 Mike Stump <mikestump@comcast.net>
7852
7853 * configure.ac: Also check for popen.
7854 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7855 * configure: Regenerate.
7856 * config.in: Regenerate.
7857
7858 2014-07-30 Martin Jambor <mjambor@suse.cz>
7859
7860 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7861 parameter to gimple.
7862
7863 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7864
7865 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7866 address as second parameter to __tpf_eh_return routine.
7867
7868 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7869
7870 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7871 Thumb2.
7872
7873 2014-07-30 Tom Tromey <tromey@redhat.com>
7874
7875 PR c/59855
7876 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7877 * doc/extend.texi (Type Attributes): Document designated_init
7878 attribute.
7879
7880 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7881
7882 * graphite-isl-ast-to-gimple.c:
7883 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7884 (gcc_expression_from_isl_expression): Pass type to
7885 gcc_expression_from_isl_ast_expr_id.
7886
7887 2014-07-30 Richard Biener <rguenther@suse.de>
7888
7889 * lto-streamer.h (lto_write_data): New function.
7890 * langhooks.c (lhd_append_data): Do not free block.
7891 * lto-section-out.c (lto_write_data): New function writing
7892 raw data to the current section.
7893 (lto_write_stream): Adjust for langhook semantic change.
7894 (lto_destroy_simple_output_block): Write header directly.
7895 * lto-opts.c (lto_write_options): Write options directly.
7896 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7897 (lto_output_toplevel_asms): Likewise.
7898 (copy_function_or_variable): Copy data directly.
7899 (write_global_references): Output index table directly.
7900 (lto_output_decl_state_refs): Likewise.
7901 (write_symbol): Write data directly.
7902 (produce_symtab): Adjust.
7903 (produce_asm_for_decls): Output header and refs directly.
7904
7905 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7906
7907 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7908 to speculative_targets
7909 (get_class_context): Fix handling of contextes without outer type;
7910 avoid matching non-polymorphic types in LTO.
7911 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7912 parameter to speculative_targetsp; handle speculation.
7913 (dump_possible_polymorphic_call_targets): Update dumping.
7914
7915 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7916
7917 * common.opt (Wodr): Enable by default.
7918
7919 2014-07-29 Olivier Hainque <hainque@adacore.com>
7920
7921 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7922
7923 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7924
7925 PR bootstrap/61914
7926 * gengtype.c (strtoken): New function.
7927 (create_user_defined_type): Replace strtok with strtoken.
7928
7929 2014-07-29 Nathan Sidwell <nathan@acm.org>
7930
7931 * gcov-io.c (gcov_var): Make hidden.
7932 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7933 (gcov_do_dump): Declare.
7934 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7935
7936 2014-07-29 Martin Jambor <mjambor@suse.cz>
7937
7938 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7939 parameter to gimple.
7940 (sra_modify_assign): Likewise.
7941
7942 2014-07-29 Richard Biener <rguenther@suse.de>
7943
7944 PR middle-end/52478
7945 * expr.c (expand_expr_real_2): Revert last change.
7946
7947 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7948
7949 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7950 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7951 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7952 call.
7953 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7954 (contains_type_p): Forward declare.
7955 (polymorphic_call_target_hasher::hash): Hash speculative info.
7956 (polymorphic_call_target_hasher::equal): Compare speculative info.
7957 (get_class_context): Handle speuclation.
7958 (contains_type_p): Update.
7959 (get_polymorphic_call_info_for_decl): Update.
7960 (walk_ssa_copies): Break out from ...
7961 (get_polymorphic_call_info): ... here; set speculative context
7962 before giving up.
7963 * ipa-prop.c (ipa_write_indirect_edge_info,
7964 ipa_read_indirect_edge_info): Stream speculative context.
7965 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7966 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7967 SPECULATIVE_MAYBE_DERIVED_TYPE).
7968 (possible_polymorphic_call_targets overriders): Update.
7969 (dump_possible_polymorphic_call_targets overriders): Update.
7970 (dump_possible_polymorphic_call_target_p overriders): Update.
7971
7972 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7973
7974 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7975 ipa-devirt path; fix thinko there.
7976
7977 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7978
7979 * config/i386/i386.c (ix86_return_in_memory): Replace one
7980 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7981
7982 2014-07-28 Marek Polacek <polacek@redhat.com>
7983
7984 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7985
7986 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7987
7988 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7989 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7990 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
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 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7997 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7998 (USE_LD_AS_NEEDED): Likewise.
7999 (ASM_APP_ON): Likewise.
8000 (ASM_APP_OFF): Likewise.
8001 (TARGET_POSIX_IO): Likewise.
8002
8003 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8004
8005 PR middle-end/61734
8006 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8007 operators other than the equality operators.
8008
8009 2014-07-28 Richard Biener <rguenther@suse.de>
8010
8011 PR middle-end/52478
8012 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8013 sure to register SImode ones, not only >= word_mode ones.
8014 * expr.c (expand_expr_real_2): When expanding -ftrapv
8015 binops do not use OPTAB_LIB_WIDEN.
8016
8017 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8018
8019 PR middle-end/61919
8020 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8021 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8022 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8023 inserting them in the insn stream.
8024
8025 2014-07-28 Marek Polacek <polacek@redhat.com>
8026
8027 PR middle-end/61913
8028 * common.opt (Wodr): Add Var.
8029
8030 2014-07-28 Richard Biener <rguenther@suse.de>
8031
8032 PR tree-optimization/61921
8033 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8034 if there is a varpool node before dereferencing it.
8035
8036 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8037
8038 * graphite-sese-to-poly.c:
8039 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8040 id of the pbb), which contains pointer to the pbb1.
8041
8042 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8043
8044 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8045
8046 * graphite-isl-ast-to-gimple.c:
8047 (graphite_create_new_guard): New function.
8048 (translate_isl_ast_node_if): New function.
8049 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8050
8051 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8052
8053 2014-07-27 Anthony Green <green@moxielogic.com>
8054
8055 * config.gcc: Add moxie-*-moxiebox* configuration.
8056 * config/moxie/moxiebox.h: New file.
8057
8058 2014-07-26 Andrew Pinski <apinski@cavium.com>
8059
8060 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8061 from the read only register.
8062
8063 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8064
8065 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8066 as the allocation class if it isn't likely to be spilled.
8067
8068 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8069
8070 * rtl.h (tls_referenced_p): Declare.
8071 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8072 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8073 (mips_cannot_force_const_mem): Use tls_referenced_p.
8074 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8075 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8076 instead of pa_tls_referenced_p.
8077 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8078 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8079 (pa_legitimate_constant_p): Likewise.
8080 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8081 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8082 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8083 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8084 rs6000_tls_referenced_p.
8085 (rs6000_tls_symbol_ref_1): Delete.
8086
8087 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8088
8089 PR target/44551
8090 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8091 Optimize inverse of a VEC_CONCAT.
8092
8093 2014-07-25 Xinliang David Li <davidxl@google.com>
8094
8095 * params.def: New parameter.
8096 * coverage.c (get_coverage_counts): Check new flag.
8097 (coverage_compute_profile_id): Check new flag.
8098 (coverage_begin_function): Check new flag.
8099 (coverage_end_function): Check new flag.
8100 * value-prof.c (coverage_node_map_initialized_p): New function.
8101 (init_node_map): Populate map with all functions.
8102 * doc/invoke.texi: Document new parameter.
8103
8104 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8105 Richard Biener <rguenther@suse.de>
8106
8107 * lto-streamer-out.c (struct sccs): Turn to ...
8108 (class DFS): ... this one; refactor the DFS walk so it can
8109 be re-done on per-SCC basis.
8110 (DFS::DFS): New constructor.
8111 (DFS::~DFS): New destructor.
8112 (hash_tree): Add new MAP argument holding in-SCC hash values;
8113 remove POINTER_TYPE hashing hack.
8114 (scc_entry_compare): Rename to ...
8115 (DFS::scc_entry_compare): ... this one.
8116 (hash_scc): Rename to ...
8117 (DFS::hash_scc): ... this one; pass output_block instead
8118 of streamer_cache; work harder to get unique and stable SCC
8119 hashes.
8120 (DFS_write_tree): Rename to ...
8121 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8122 (lto_output_tree): Update.
8123
8124 2014-07-25 Andi Kleen <ak@linux.intel.com>
8125
8126 * lto-streamer-out.c (hash_tree): Convert to inchash.
8127
8128 2014-07-25 Andi Kleen <ak@linux.intel.com>
8129
8130 * tree.c (build_type_attribute_qual_variant): Use inchash.
8131 (type_hash_list): Dito.
8132 (attribute_hash_list): Dito
8133 (iterative_hstate_expr): Dito.
8134 (iterative_hash_expr): Dito.
8135 (build_range_type_1): Dito.
8136 (build_array_type_1): Dito.
8137 (build_function_type): Dito.
8138 (build_method_type_directly): Dito.
8139 (build_offset_type): Dito.
8140 (build_complex_type): Dito.
8141 (make_vector_type): Dito.
8142 * tree.h (iterative_hash_expr): Add compat wrapper.
8143 (iterative_hstate_expr): Add.
8144
8145 2014-07-25 Andi Kleen <ak@linux.intel.com>
8146
8147 * Makefile.in (OBJS): Add inchash.o.
8148 (PLUGIN_HEADERS): Add inchash.h.
8149 * ipa-devirt.c: Include inchash.h.
8150 * lto-streamer-out.c: Dito.
8151 * tree-ssa-dom.c: Dito.
8152 * tree-ssa-pre.c: Dito.
8153 * tree-ssa-sccvn.c: Dito.
8154 * tree-ssa-tail-merge.c: Dito.
8155 * asan.c: Dito.
8156 * tree.c (iterative_hash_hashval_t): Move to ...
8157 (iterative_hash_host_wide_int): Move to ...
8158 * inchash.c: Here. New file.
8159 * tree.h (iterative_hash_hashval_t): Move to ...
8160 (iterative_hash_host_wide_int): Move to ...
8161 * inchash.h: Here. New file.
8162
8163 2014-07-25 Richard Biener <rguenther@suse.de>
8164
8165 PR middle-end/61762
8166 PR middle-end/61894
8167 * fold-const.c (native_encode_int): Add and handle offset
8168 parameter to do partial encodings of expr.
8169 (native_encode_fixed): Likewise.
8170 (native_encode_real): Likewise.
8171 (native_encode_complex): Likewise.
8172 (native_encode_vector): Likewise.
8173 (native_encode_string): Likewise.
8174 (native_encode_expr): Likewise.
8175 * fold-const.c (native_encode_expr): Add offset parameter
8176 defaulting to -1.
8177 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8178 (fold_ctor_reference): Handle all reads from tcc_constant
8179 ctors.
8180
8181 2014-07-25 Richard Biener <rguenther@suse.de>
8182
8183 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8184 as possibly unused.
8185
8186 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8187
8188 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8189
8190 2014-07-24 Kyle McMartin <kyle@redhat.com>
8191
8192 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8193
8194 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8195
8196 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8197 Add prototype.
8198 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8199 function.
8200 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8201 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8202 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8203
8204 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8205
8206 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8207 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8208 aggregate types. Instead, *all* aggregate types, except for single-
8209 element or homogeneous float/vector aggregates, are quadword-aligned
8210 if required by their type alignment. Issue -Wpsabi note when a type
8211 is now treated differently than before.
8212
8213 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8214
8215 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8216 does not fit fully into floating-point registers, and there is still
8217 space in the register parameter area, use GPRs to pass those parts
8218 of the argument. Issue -Wpsabi note if any parameter is now treated
8219 differently than before.
8220 (rs6000_arg_partial_bytes): Update.
8221
8222 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8223
8224 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8225
8226 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8227
8228 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8229 * toplev.c (initialize_rtl): Don't use it. Move previously
8230 "language-dependent" calls to...
8231 (backend_init): ...here.
8232 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8233 Assert that RTL initialization hasn't happend yet.
8234
8235 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8236
8237 PR rtl-optimization/61629
8238 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8239 they have already been initialized.
8240
8241 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8242
8243 PR middle-end/61268
8244 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8245 DECL_INCOMING_RTL and entry_parm.
8246 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8247 * calls.c (load_register_parameters): Likewise argument values.
8248 (emit_library_call_value_1, store_one_arg): Likewise argument
8249 save areas.
8250 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8251 stack slot.
8252 * explow.c (validize_mem): Modify the argument in-place.
8253
8254 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8255
8256 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8257 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8258
8259 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8260
8261 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8262 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8263
8264 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8265
8266 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8267 (aarch64_save_callee_saves): New parameter "skip_wb".
8268 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8269
8270 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8271
8272 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8273 "wb_candidate2".
8274 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8275
8276 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8277
8278 * graphite-isl-ast-to-gimple.c:
8279 (graphite_create_new_loop): Add calling of isl_id_free to properly
8280 decrement reference counts.
8281
8282 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8283
8284 2014-07-24 Martin Liska <mliska@suse.cz>
8285 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8286 function used.
8287 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8288 (rs6000_code_end): Likewise.
8289
8290 2014-07-24 Martin Liska <mliska@suse.cz>
8291
8292 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8293 symtab_node funtion used.
8294 (rs6000_xcoff_declare_object_name): Likewise.
8295
8296 2014-07-24 Martin Liska <mliska@suse.cz>
8297
8298 * cgraphunit.c (compile): Correct function used.
8299
8300 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8301
8302 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8303 as non-indexable.
8304
8305 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8306
8307 PR lto/61802
8308 * varasm.c (bss_initializer_p): Handle offlined ctors.
8309 (align_variable, get_variable_align): Likewise.
8310 (make_decl_one_only): Likewise.
8311 (default_binds_local_p_1): Likewise.
8312 (decl_binds_to_current_def_p): Likewise.
8313 (get_variable_section): Get constructor if it is offlined.
8314 (assemble_variable_contents): Sanity check that the caller
8315 streamed in the ctor in LTO.
8316
8317 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8318
8319 * graphite-isl-ast-to-gimple.c:
8320 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8321 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8322 isl_ast_op_pdiv_r to the different case.
8323
8324 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8325
8326 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8327
8328 PR middle-end/61876
8329 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8330 when flag_errno_math is on.
8331
8332 2014-07-24 Martin Liska <mliska@suse.cz>
8333
8334 * cgraph.h (varpool_node):
8335 (availability get_availability (void)):
8336 created from cgraph_variable_initializer_availability
8337 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8338 created from: cgraph_variable_initializer_availability
8339 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8340 (void finalize_named_section_flags (void)):
8341 created from varpool_finalize_named_section_flags
8342 (bool assemble_decl (void)): created from varpool_assemble_decl
8343 (void analyze (void)): created from varpool_analyze_node
8344 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8345 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8346 (void remove_initializer (void)): created from varpool_remove_initializer
8347 (tree get_constructor (void)): created from varpool_get_constructor
8348 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8349 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8350 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8351 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8352 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8353 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8354 (static bool output_variables (void)): created from varpool_output_variables
8355 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8356 created from varpool_extra_name_alias
8357 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8358 (static void dump_varpool (FILE *f)): created from dump_varpool
8359 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8360 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8361 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8362 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8363 (void assemble_aliases (void)): created from assemble_aliases
8364
8365 2014-07-24 Martin Liska <mliska@suse.cz>
8366
8367 * cgraph.h (symtab_node):
8368 (void register_symbol (void)): created from symtab_register_node
8369 (void remove (void)): created from symtab_remove_node
8370 (void dump (FILE *f)): created from dump_symtab_node
8371 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8372 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8373 (struct ipa_ref *add_reference (symtab_node *referred_node,
8374 enum ipa_ref_use use_type)): created from add_reference
8375 (struct ipa_ref *add_reference (symtab_node *referred_node,
8376 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8377 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8378 gimple stmt)): created from maybe_add_reference
8379 (bool semantically_equivalent_p (symtab_node *target)): created from
8380 symtab_semantically_equivalent_p
8381 (void remove_from_same_comdat_group (void)): created from
8382 remove_from_same_comdat_group
8383 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8384 symtab_add_to_same_comdat_group
8385 (void dissolve_same_comdat_group_list (void)): created from
8386 symtab_dissolve_same_comdat_group_list
8387 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8388 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8389 created from symtab_alias_ultimate_target
8390 (inline symtab_node *next_defined_symbol (void)): created from
8391 symtab_next_defined_symbol
8392 (bool resolve_alias (symtab_node *target)): created from
8393 symtab_resolve_alias
8394 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8395 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8396 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8397 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8398 (void set_section (const char *section)): created from set_section_1
8399 (enum availability get_availability (void)): created from symtab_node_availability
8400 (void make_decl_local (void)): created from symtab_make_decl_local
8401 (bool real_symbol_p (void)): created from symtab_read_node
8402 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8403 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8404 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8405 symtab_in_same_comdat_p;
8406 (bool address_taken_from_non_vtable_p (void)): created from
8407 address_taken_from_non_vtable_p
8408 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8409 (static void dump_table (FILE *)): created from dump_symtab
8410 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8411 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8412 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8413 symtab_used_from_object_file_p
8414 (void dump_base (FILE *)): created from dump_symtab_base
8415 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8416 (void unregister (void)): created from symtab_unregister_node
8417 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8418 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8419 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8420 symtab_nonoverwritable_alias_1
8421 * cgraph.h (cgraph_node):
8422 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8423 created from cgraph_remove_node_and_inline_clones
8424 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8425 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8426 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8427 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8428 created from cgraph_function_node
8429 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8430 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8431 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8432 created from cgraph_create_clone
8433 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8434 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8435 created from cgraph_create_virtual_clone
8436 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8437 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8438 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8439 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8440 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8441 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8442 created from cgraph_function_version_info
8443 (struct cgraph_function_version_info *insert_new_function_version (void)):
8444 created from insert_new_cgraph_node_version
8445 (struct cgraph_function_version_info *function_version (void)): created from
8446 get_cgraph_node_version
8447 (void analyze (void)): created from analyze_function
8448 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8449 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8450 tree real_alias) cgraph_add_thunk
8451 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8452 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8453 created from cgraph_function_or_thunk_node
8454 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8455 created from expand_thunk
8456 (void reset (void)): created from cgraph_reset_node
8457 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8458 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8459 (void remove (void)): created from cgraph_remove_node
8460 (void dump (FILE *f)): created from dump_cgraph_node
8461 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8462 (bool get_body (void)): created from cgraph_get_body
8463 (void release_body (void)): created from cgraph_release_function_body
8464 (void unnest (void)): created from cgraph_unnest_node
8465 (void make_local (void)): created from cgraph_make_node_local
8466 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8467 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8468 gcov_type count, int freq)): created from cgraph_create_edge
8469 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8470 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8471 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8472 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8473 created from cgraph_create_edge_including_clones
8474 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8475 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8476 (void remove_callers (void)): created from cgraph_node_remove_callers
8477 (void remove_callees (void)): created from cgraph_node_remove_callees
8478 (enum availability get_availability (void)): created from cgraph_function_body_availability
8479 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8480 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8481 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8482 (void call_duplication_hooks (cgraph_node *node2)): created from
8483 cgraph_call_node_duplication_hooks
8484 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8485 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8486 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8487 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8488 (void call_function_insertion_hooks (void)):
8489 created from cgraph_call_function_insertion_hooks
8490 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8491 (bool local_p (void)): created from cgraph_local_node
8492 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8493 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8494 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8495 (inline bool only_called_directly_or_aliased_p (void)):
8496 created from cgraph_only_called_directly_or_aliased_p
8497 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8498 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8499 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8500 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8501 (bool can_remove_if_no_direct_calls_p (void)):
8502 created from cgraph_can_remove_if_no_direct_calls_p
8503 (inline bool has_gimple_body_p (void)):
8504 created from cgraph_function_with_gimple_body_p
8505 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8506 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8507 (static inline void debug_cgraph (void)): created from debug_cgraph
8508 (static void record_function_versions (tree decl1, tree decl2)):
8509 created from record_function_versions
8510 (static void delete_function_version (tree decl)):
8511 created from delete_function_version
8512 (static void add_new_function (tree fndecl, bool lowered)):
8513 created from cgraph_add_new_function
8514 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8515 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8516 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8517 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8518 (static cgraph_node *get_for_asmname (tree asmname)):
8519 created from cgraph_node_for_asm
8520 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8521 created from cgraph_same_body_alias
8522 (static bool used_from_object_file_p_worker (cgraph_node *node,
8523 void *): new function
8524 (static bool non_local_p (cgraph_node *node, void *)):
8525 created from cgraph_non_local_node_p_1
8526 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8527 created from verify_cgraph
8528 (static bool make_local (cgraph_node *node, void *)):
8529 created from cgraph_make_node_local
8530 (static cgraph_node *create_alias (tree alias, tree target)):
8531 created from cgraph_create_function_alias
8532 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8533 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8534 created from cgraph_create_edge_1
8535 * cgraph.h (varpool_node):
8536 (void remove (void)): created from varpool_remove_node
8537 (void dump (FILE *f)): created from dump_varpool_node
8538
8539 2014-07-24 Richard Biener <rguenther@suse.de>
8540
8541 PR ipa/61823
8542 * tree-ssa-structalias.c (create_variable_info_for_1):
8543 Use varpool_get_constructor.
8544 (create_variable_info_for): Likewise.
8545
8546 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8547
8548 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8549 subtract outgoing area size when restoring stack_pointer_rtx.
8550
8551 2014-07-24 Nick Clifton <nickc@redhat.com>
8552
8553 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8554 that operations are taking place in parallel.
8555 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8556
8557 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8558
8559 * omp-low.c (extract_omp_for_data): Add missing break statement.
8560
8561 2014-07-24 Richard Biener <rguenther@suse.de>
8562
8563 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8564 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8565 and adjust MOVE_RATIO query accordingly.
8566 (estimate_num_insns): Adjust callers.
8567 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8568 * ipa-cp.c (gather_context_independent_values,
8569 estimate_local_effects): Likewise.
8570 * ipa-split.c (consider_split): Likewise.
8571
8572 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8573
8574 * config/i386/driver-i386.c: Remove names of unused arguments and
8575 unnecessary unused attributes.
8576 * config/i386/host-mingw32.c: Likewise.
8577 * config/i386/i386.c: Likewise.
8578 * config/i386/winnt-stubs.c: Likewise.
8579 * config/i386/winnt.c: Likewise.
8580
8581 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8582
8583 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8584 (aarch64_gen_loadwb_pair): New helper function.
8585 (aarch64_expand_epilogue): Simplify code using new helper functions.
8586 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8587
8588 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8589
8590 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8591 (aarch64_gen_storewb_pair): New helper function.
8592 (aarch64_expand_prologue): Simplify code using new helper functions.
8593 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8594
8595 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8596
8597 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8598 Rename to aarch64_save_callee_saves, remove restore code.
8599 (aarch64_restore_callee_saves): New function.
8600
8601 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8602
8603 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8604 (aarch64_save_callee_saves): New function to handle reg save
8605 for both core and vectore regs.
8606
8607 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8608
8609 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8610 (aarch64_gen_store_pair): New helper function.
8611 (aarch64_save_or_restore_callee_save_registers)
8612 (aarch64_save_or_restore_fprs): Use new helper functions.
8613
8614 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8615
8616 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8617 (aarch64_save_or_restore_callee_save_registers)
8618 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
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): Hoist calculation of register rtx.
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): Remove 'increment'.
8631
8632 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8633
8634 * config/aarch64/aarch64.c
8635 (aarch64_save_or_restore_callee_save_registers)
8636 (aarch64_save_or_restore_fprs): Use register offset in
8637 cfun->machine->frame.reg_offset.
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)
8643 (aarch64_save_or_restore_fprs): Remove base_rtx.
8644
8645 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8646
8647 * config/aarch64/aarch64.c
8648 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8649 to 'start_offset'. Remove local variable 'start_offset'.
8650
8651 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8652
8653 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8654 type to HOST_WIDE_INT.
8655
8656 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8657
8658 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8659 (aarch64_save_or_restore_fprs)
8660 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8661
8662 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8663
8664 * config/arm/t-rtems-eabi: Add
8665 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8666 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8667 mbig-endian/mthumb/march=armv7-r, and
8668 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8669 multilibs.
8670
8671 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8672 Chris Johns <chrisj@rtems.org>
8673 Joel Sherrill <joel.sherrill@oarcorp.com>
8674
8675 * config.gcc: Add nios2-*-rtems*.
8676 * config/nios2/rtems.h: New file.
8677 * gcc/config/nios2/t-rtems: New file.
8678
8679 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8680
8681 PR target/61396
8682 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8683 constant numbers, not general constants.
8684 (rs6000_expand_vector_init): Ditto.
8685
8686 2014-07-23 Nathan Sidwell <nathan@acm.org>
8687
8688 * gcov-tool.c (gcov_list): Declare here.
8689 (set_gcov_list): Remove.
8690 (gcov_output_files): Set gcov_list directly.
8691
8692 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8693
8694 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8695
8696 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8697
8698 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8699 callee-saved registers are available for padding purpose
8700 and r3 is not mandatory, then prefer use those callee-saved
8701 instead of r3.
8702
8703 2014-07-23 Richard Biener <rguenther@suse.de>
8704
8705 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8706 * combine.c: Include statistics.h and params.h.
8707 (combine_instructions): Guard three and four insn combines
8708 with max-combine-insns value. Record statistics for combines
8709 performed.
8710 * doc/invoke.texi (max-combine-insns): Document new param.
8711
8712 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8713
8714 * graphite-isl-ast-to-gimple.c:
8715 (translate_isl_ast_node_block): New function.
8716 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8717
8718 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8719 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8720
8721 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8722
8723 * graphite-isl-ast-to-gimple.c:
8724 (get_max_schedule_dimensions): New function.
8725 (extend_schedule): Likewise.
8726 (generate_isl_schedule): Add calling of extend_schedule and
8727 get_max_schedule_dimensions.
8728
8729 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8730
8731 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8732 (case UNSPEC): Handle UNSPEC_RBIT.
8733
8734 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8735
8736 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8737 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8738
8739 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8740
8741 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8742
8743 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8744
8745 * graphite-isl-ast-to-gimple.c:
8746 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8747 (ivs_params_clear):
8748 (build_iv_mapping): New function.
8749 (translate_isl_ast_node_user): Likewise.
8750 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8751
8752 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8753 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8754 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8755
8756 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8757
8758 PR target/55701
8759 * config/arm/arm.md (setmem): New pattern.
8760 * config/arm/arm-protos.h (struct tune_params): New fields.
8761 (arm_gen_setmem): New prototype.
8762 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8763 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8764 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8765 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8766 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8767 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8768 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8769 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8770 (arm_const_inline_cost): New function.
8771 (arm_block_set_max_insns): New function.
8772 (arm_block_set_non_vect_profit_p): New function.
8773 (arm_block_set_vect_profit_p): New function.
8774 (arm_block_set_unaligned_vect): New function.
8775 (arm_block_set_aligned_vect): New function.
8776 (arm_block_set_unaligned_non_vect): New function.
8777 (arm_block_set_aligned_non_vect): New function.
8778 (arm_block_set_vect, arm_gen_setmem): New functions.
8779
8780 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8781
8782 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8783
8784 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8785
8786 PR target/61855
8787 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8788 out of #ifdef __OPTIMIZE__.
8789
8790 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8791
8792 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8793 different trapping status if -fnon-call-exceptions is enabled.
8794
8795 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8796
8797 * expr.c (store_field): Handle VOIDmode for calls that return values
8798 in multiple locations.
8799
8800 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8801
8802 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8803 (altivec_vsldoi_<mode>): Likewise.
8804
8805 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8806
8807 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8808 to the number of characters in the line.
8809
8810 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8811
8812 * graphite-isl-ast-to-gimple.c: Add using of
8813 build_nonstandard_integer_type instead of int128_integer_type_node.
8814
8815 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8816
8817 * toplev.c (output_stack_usage): Adjust the location of the warning.
8818
8819 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8820
8821 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8822 (*membar_storeload): Disable for LEON3.
8823
8824 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8825
8826 PR rtl-optimization/61461
8827 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8828
8829 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8830
8831 PR target/61794
8832 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8833 Fix instruction constraint.
8834 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8835
8836 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8837
8838 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8839
8840 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8841
8842 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8843 GNU coding standards.
8844 (nds32_register_move_cost): Likewise.
8845 (nds32_memory_move_cost): Likewise.
8846 (nds32_address_cost): Likewise.
8847
8848 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8849
8850 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8851
8852 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8853
8854 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8855 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8856 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8857 (HAVE_sync_compare_and_swapqi): Define.
8858 (HAVE_sync_compare_and_swaphi): Likewise.
8859 (HAVE_sync_compare_and_swapsi): Likewise.
8860
8861 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8862
8863 * config/mips/p5600.md: Add missing cpu tests.
8864
8865 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8866
8867 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8868 (vmla_f64): Likewise.
8869 (vfms_f64): Likewise.
8870 (vmls_f64): Likewise.
8871
8872 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8873
8874 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8875 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8876
8877 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8878
8879 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8880 (vmlal_high_lane_s32): Likewise.
8881 (vmlal_high_lane_u16): Likewise.
8882 (vmlal_high_lane_u32): Likewise.
8883 (vmlsl_high_lane_s16): Likewise.
8884 (vmlsl_high_lane_s32): Likewise.
8885 (vmlsl_high_lane_u16): Likewise.
8886 (vmlsl_high_lane_u32): Likewise.
8887
8888 2014-07-17 Terry Guo <terry.guo@arm.com>
8889
8890 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8891 (alus_reg): Renamed to alus_sreg.
8892 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8893 from alu_reg to alu_sreg. Change type of dsp instructions from
8894 alu_reg to alu_dsp_reg.
8895 * config/arm/thumb1.md: Likewise.
8896 * config/arm/thumb2.md: Likewise.
8897 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8898 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8899 with alu_sreg and alus_sreg.
8900 * config/arm/arm1026ejs.md (alu_op): Likewise.
8901 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8902 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8903 * config/arm/fa526.md (526_alu_op): Likewise.
8904 * config/arm/fa606te.md (606te_alu_op): Likewise.
8905 * config/arm/fa626te.md (626te_alu_op): Likewise.
8906 * config/arm/fa726te.md (726te_alu_op): Likewise.
8907 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8908 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8909 alu_sreg, alu_dsp_reg and alus_sreg.
8910 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8911 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8912 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8913 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8914 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8915 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8916 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8917 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8918 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8919 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8920 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8921 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8922 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8923 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8924 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8925 alus_reg to alus_sreg.
8926
8927 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8928
8929 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8930 infinity format.
8931
8932 2014-07-17 Richard Biener <rguenther@suse.de>
8933
8934 PR rtl-optimization/61801
8935 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8936 don't set reg_pending_barrier if it appears in a debug-insn.
8937
8938 2014-07-16 DJ Delorie <dj@redhat.com>
8939
8940 * config/rx/rx.c (rx_option_override): Fix alignment values.
8941 (rx_align_for_label): Likewise.
8942
8943 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8944
8945 PR target/61737.
8946 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8947 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8948 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8949 functions.
8950 (cris_print_index, cris_print_operand, cris_constant_index_p)
8951 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8952 (cris_address_cost): Ditto last CONSTANT_P.
8953 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8954 callers changed. Yield cris_offsettable_symbol for non-PIC
8955 constant symbolic expressions including labels. Yield cris_unspec
8956 for all unspecs.
8957 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8958 target to pic_offset_table_rtx for calls that will likely go
8959 through PLT, const0_rtx when they can't. All callers changed.
8960 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8961 symbolic expressions to be PICified. Remove second, redundant,
8962 assert on can_create_pseudo_p returning non-zero. Use
8963 replace_equiv_address_nv, not replace_equiv_address, for final
8964 operand update.
8965 * config/cris/cris.md ("movsi"): Move variable t to pattern
8966 toplevel. Adjust assert for new cris_symbol_type member. Use
8967 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8968 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8969 for lapc stricter.
8970 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8971 ("call", "call_value"): Use second incoming operand as a marker
8972 for pic-offset-table-register being used.
8973 ("*expanded_call_non_v32", "*expanded_call_v32")
8974 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8975 second incoming operand to CALL, match cris_call_type_marker.
8976 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8977 ("*expanded_call_side"): Ditto. Fix typo in comment.
8978 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8979 CONSTANT_P.
8980 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8981 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8982 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8983 users changed. Add members cris_offsettable_symbol and cris_unspec.
8984 (cris_symbol_type): Rename from cris_pic_symbol_type.
8985 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8986 just CONSTANT_P.
8987 * config/cris/cris-protos.h (cris_symbol_type_of,
8988 cris_expand_pic_call_address): Adjust prototypes.
8989 (cris_legitimate_constant_p): New prototype.
8990
8991 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8992 an existing tmake_file. Don't add t-slibgcc and t-linux.
8993
8994 2014-07-17 Jason Merrill <jason@redhat.com>
8995
8996 PR c++/61623
8997 * symtab.c (symtab_remove_from_same_comdat_group): Also
8998 set_comdat_group to NULL_TREE.
8999 (verify_symtab): Fix diagnostic.
9000
9001 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9002
9003 PR target/61662
9004 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9005
9006 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9007
9008 Support location tracking for built-in macro tokens
9009 * input.h (is_location_from_builtin_token): New function declaration.
9010 * input.c (is_location_from_builtin_token): New function definition.
9011 * toplev.c (general_init): Tell libcpp what the pre-defined
9012 spelling location for built-in tokens is.
9013
9014 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9015
9016 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9017 on the FUNCTION_DECL.
9018
9019 2014-07-16 Richard Biener <rguenther@suse.de>
9020
9021 PR other/61782
9022 * doc/extend.texi (always_inline): Clarify.
9023
9024 2014-07-15 Eric Christopher <echristo@gmail.com>
9025
9026 * doc/invoke.texi (Link Options): Document -z option.
9027
9028 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9029
9030 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9031 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9032
9033 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9034
9035 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9036
9037 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9038
9039 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9040 varpool_assemble_decl.
9041 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9042 true.
9043
9044 2014-07-15 Michael Matz <matz@suse.de>
9045
9046 PR rtl-optimization/61772
9047 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9048
9049 2014-07-15 Richard Biener <rguenther@suse.de>
9050
9051 * opts.c (default_options_table): Disable bit-ccp at -Og.
9052
9053 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9054
9055 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9056
9057 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9058
9059 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9060 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9061 call langhook for unknown declaration.
9062 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9063 * tree.h (DECL_ARGUMENTS): Update.
9064 * print-tree.c (print_node): Update.
9065 * tree-core.h (tree_decl_non_common): Remove arguments.
9066 (tree_function_decl): Add arguments.
9067
9068 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9069
9070 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9071
9072 2014-07-14 Richard Biener <rguenther@suse.de>
9073
9074 PR tree-optimization/61779
9075 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9076 simplifying a condition.
9077
9078 2014-07-14 Richard Biener <rguenther@suse.de>
9079
9080 * builtins.c (c_strlen): Make only_value == 2 really only
9081 affect warning generation.
9082
9083 2014-07-14 Richard Biener <rguenther@suse.de>
9084
9085 PR tree-optimization/61757
9086 PR tree-optimization/61783
9087 PR tree-optimization/61787
9088 * tree-ssa-dom.c (record_equality): Revert canonicalization
9089 change and add comment.
9090 (propagate_rhs_into_lhs): Revert previous fix, removing
9091 loop depth restriction again.
9092
9093 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9094
9095 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9096 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9097 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9098 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9099 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9100 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9101 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9102
9103 2014-07-14 Richard Biener <rguenther@suse.de>
9104
9105 * cgraph.h (decl_in_symtab_p): Make inline.
9106
9107 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9108
9109 PR middle-end/61294
9110 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9111
9112 PR target/61656
9113 * config/i386/i386.c (classify_argument): Don't merge classes above
9114 number of words.
9115
9116 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9117
9118 * cgraph.h (symtab_node): Add nonzero_address.
9119 (decl_in_symtab_p): Break out from ...
9120 (symtab_get_node): ... here.
9121 * fold-const.c: Include cgraph.h
9122 (tree_single_nonzero_warnv_p): Use symtab to determine
9123 if symbol is non-zero.
9124 * symtab.c (symtab_node::nonzero_address): New method.
9125
9126 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9127
9128 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9129 forgotten in previous commit.
9130
9131 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9132
9133 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9134 on builtin types.
9135 * ipa-devirt.c: Include stor-layout.h and intl.h
9136 (odr_subtypes_equivalent_p): New function.
9137 (warn_odr): New function.
9138 (warn_type_mismatch): New function.
9139 (odr_types_equivalent_p): New function.
9140 (add_type_duplicate): Use it.
9141 * common.opt (Wodr): New flag.
9142 * doc/invoke.texi (Wodr): Document new warning.
9143
9144 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9145
9146 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9147 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9148 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9149 (varpool_get_constructor): Push CTORS_IN timevar.
9150 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9151
9152 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9153
9154 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9155 Remove VOID_FTYPE_PUSHORT.
9156 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9157 Change code to USHORT_FTYPE_VOID.
9158 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9159 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9160 (ix86_atomic_assign_expand_fenv): Update for
9161 __builtin_ia32_fnstsw changes.
9162 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9163 (fnstsw): Change operand 0 to nonimmediate operand.
9164
9165 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9166
9167 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9168 (varpool_get_constructor): New function.
9169 (varpool_ctor_useable_for_folding_p): Break out from ...
9170 (ctor_for_folding): ... here; use varpool_get_constructor.
9171 (varpool_assemble_decl): Likewise.
9172 * lto-streamer.h (struct output_block): Turn cgraph_node
9173 to symbol filed.
9174 (lto_input_variable_constructor): Declare.
9175 * ipa-visibility.c (function_and_variable_visibility): Use
9176 varpool_get_constructor.
9177 * cgraph.h (varpool_get_constructor): Declare.
9178 (varpool_ctor_useable_for_folding_p): New function.
9179 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9180 parameter; return error_mark_node for non-trivial constructors.
9181 (lto_write_tree_1, DFS_write_tree): Update use of
9182 get_symbol_initial_value.
9183 (output_function): Update initialization of symbol.
9184 (output_constructor): New function.
9185 (copy_function): Rename to ..
9186 (copy_function_or_variable): ... this one; handle vars too.
9187 (lto_output): Output variable sections.
9188 * lto-streamer-in.c (input_constructor): New function.
9189 (lto_read_body): Rename from ...
9190 (lto_read_body_or_constructor): ... this one; handle vars too.
9191 (lto_input_variable_constructor): New function.
9192 * ipa-prop.c (ipa_prop_write_jump_functions,
9193 ipa_prop_write_all_agg_replacement): Update.
9194 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9195 (output_cgraph_opt_summary): Set symbol to NULL.
9196
9197 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9198
9199 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9200 non-polymorphic types.
9201 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9202 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9203 of types is not polymorphic.
9204
9205 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9206
9207 * lra-constraints.c (remove_inheritance_pseudos): Process
9208 destination pseudo too.
9209
9210 2014-07-11 Rong Xu <xur@google.com>
9211
9212 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9213 commit r212448.
9214
9215 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9216
9217 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9218 * config/avr/avr-devices.c (AVR_MCU): Same.
9219 (avr_mcu_types): add text start value to end of device list.
9220 * config/avr/avr-mcus.def: Add text section start for all devices.
9221 (ata5782): Add new avr5 device.
9222 (ata5831): Same.
9223 * config/avr/avr-tables.opt: Regenerate.
9224 * config/avr/avr.h: Add declaration for text section start handler.
9225 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9226 SPEC functions.
9227 (LINK_SPEC): Include text section start handler to linker spec.
9228 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9229 pass -Ttext option to linker if the text section start for the device
9230 is not zero.
9231 * config/avr/t-multilib: Regenerate.
9232 * doc/avr-mmcu.texi: Regenerate.
9233
9234 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9235
9236 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9237 * config/rs6000/aix52.h (LINK_SPEC): Same.
9238 * config/rs6000/aix53.h (LINK_SPEC): Same.
9239 * config/rs6000/aix61.h (LINK_SPEC): Same.
9240 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9241
9242 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9243
9244 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9245 (graphite_verify): New function.
9246 (ivs_params_clear): New function.
9247 (gcc_expression_from_isl_ast_expr_id): New function.
9248 (gcc_expression_from_isl_expr_int): New function.
9249 (binary_op_to_tree): New function.
9250 (ternary_op_to_tree): New function.
9251 (unary_op_to_tree): New function.
9252 (nary_op_to_tree): New function.
9253 (gcc_expression_from_isl_expr_op): New function.
9254 (gcc_expression_from_isl_expression): New function.
9255 (graphite_create_new_loop): New function.
9256 (translate_isl_ast_for_loop): New function.
9257 (get_upper_bound): New function.
9258 (graphite_create_new_loop_guard): New function.
9259 (translate_isl_ast_node_for): New function.
9260 (translate_isl_ast): New function.
9261 (add_parameters_to_ivs_params): New function.
9262 (scop_to_isl_ast): New parameter ip.
9263 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9264
9265 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9266
9267 * config/xtensa/predicates.md (call expander): Update for
9268 DECL_SECTION_NAME being string.
9269
9270 2014-07-11 Richard Biener <rguenther@suse.de>
9271
9272 PR middle-end/61473
9273 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9274 can be implemented with a single load followed by a single store.
9275 (c_strlen): Only warn when only_value is not 2.
9276
9277 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9278
9279 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9280
9281 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9282
9283 PR target/61561
9284 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9285 (*movhi_bytes): Likewise.
9286 (*arm_movqi_insn): Likewise.
9287
9288 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9289
9290 PR target/56858
9291 * config/alpha/alpha.c: Include tree-pass.h, context.h
9292 and pass_manager.h.
9293 (pass_data_handle_trap_shadows): New pass.
9294 (pass_handle_trap_shadows::gate): New pass gate function.
9295 (make_pass_handle_trap_shadows): New function.
9296 (rest_of_handle_trap_shadows): Ditto.
9297
9298 (alpha_align_insns_1): Rename from alpha_align_insns.
9299 (pass_data_align_insns): New pass.
9300 (pass_align_insns::gate): New pass gate function.
9301 (make_pass_aling_insns): New function.
9302 (rest_of_align_insns): Ditto.
9303 (alpha_align_insns): Ditto.
9304
9305 (alpha_option_override): Declare handle_trap_shadows info
9306 and align_insns_info. Register handle_trap_shadows and align_insns
9307 passes here.
9308 (alpha_reorg): Do not call alpha_trap_shadows and
9309 alpha_align_insn from here.
9310
9311 (alpha_pad_function_end): Do not skip BARRIERs.
9312
9313 2014-07-10 Rong Xu <xur@google.com>
9314
9315 Add gcov-tool: an offline gcda profile processing tool support.
9316 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9317 (gcov_is_error): Ditto.
9318 (gcov_read_string): Ditto.
9319 (gcov_read_sync): Ditto.
9320 * gcov-io.h: Move counter defines to gcov-counter.def.
9321 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9322 * coverage.c: Ditto.
9323 * gcov-tool.c: Offline gcda profile processing tool.
9324 (unlink_gcda_file): Remove one gcda file.
9325 (unlink_profile_dir): Remove gcda files from the profile path.
9326 (gcov_output_files): Output gcda files to an output dir.
9327 (profile_merge): Merge two profiles in directory.
9328 (print_merge_usage_message): Print merge usage.
9329 (merge_usage): Print merge usage and exit.
9330 (do_merge): Driver for profile merge sub-command.
9331 (profile_rewrite): Rewrite profile.
9332 (print_rewrite_usage_message): Print rewrite usage.
9333 (rewrite_usage): Print rewrite usage and exit.
9334 (do_rewrite): Driver for profile rewrite sub-command.
9335 (print_usage): Print gcov-info usage and exit.
9336 (print_version): Print gcov-info version.
9337 (process_args): Process arguments.
9338 (main): Main routine for gcov-tool.
9339 * Makefile.in: Build and install gcov-tool.
9340 * gcov-counter.def: New file split from gcov-io.h.
9341 * doc/gcc.texi: Include gcov-tool.texi.
9342 * doc/gcov-tool.texi: Document for gcov-tool.
9343
9344 2014-07-10 Richard Biener <rguenther@suse.de>
9345
9346 PR tree-optimization/61757
9347 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9348 (propagate_rhs_into_lhs): Revert part of last change.
9349
9350 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9351
9352 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9353 FUNCTION_DECLs.
9354
9355 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9356
9357 PR middle-end/53590
9358 * function.c (allocate_struct_function): Revert r188667 change.
9359
9360 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9361
9362 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9363
9364 * doc/install.texi: Remove links to defunct package providers for
9365 Solaris.
9366
9367 2014-07-09 Tom de Vries <tom@codesourcery.com>
9368
9369 * final.c (get_call_fndecl): Declare.
9370 (self_recursive_call_p): New function.
9371 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9372
9373 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9374
9375 * ipa-devirt.c (record_node): Walk through aliases.
9376
9377 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9378
9379 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9380
9381 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9382
9383 Revert:
9384 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9385
9386 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9387
9388 * ipa-visibility.c (function_and_variable_visibility): Remove
9389 temporary hack disabling local aliases on AIX.
9390
9391 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9392
9393 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9394 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9395
9396 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9397
9398 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9399 * rs6000/rs6000.c: Inline output of .set instruction.
9400 (declare_alias_data): New struct.
9401 (rs6000_declare_alias): New function.
9402 (rs6000_xcoff_declare_function_name): Use it.
9403 (rs6000_xcoff_declare_object_name): New function.
9404 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9405 (ASM_OUTPUT_DEF): Turn to empty definition.
9406
9407 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9408
9409 PR bootstrap/61679
9410 * hash-table.h: use hash_table::value_type instead of
9411 Descriptor::value_type in the return types of several methods.
9412
9413 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9414
9415 * tree-pass.h (pass_data): Remove has_execute member.
9416 * passes.c (execute_one_pass): Don't check pass->has_execute.
9417 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9418 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9419 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9420 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9421 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9422 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9423 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9424 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9425 gimple-low.c, gimple-ssa-isolate-paths.c,
9426 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9427 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9428 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9429 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9430 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9431 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9432 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9433 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9434 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9435 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9436 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9437 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9438 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9439 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9440 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9441 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9442 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9443 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9444 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9445 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9446 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9447 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9448 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9449 web.c: Remove initializer for pass_data::has_execute.
9450
9451 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9452
9453 * graphite-htab.h: Use hash_map instead of hash_table.
9454 * graphite-clast-to-gimple.c: Adjust.
9455 * passes.c: Use hash_map instead of hash_table.
9456 * sese.c: Likewise.
9457 * sese.h: Remove now unused code.
9458
9459 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9460
9461 PR target/61599
9462 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9463 than zero.
9464
9465 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9466
9467 PR rtl-optimization/61673
9468 * combine.c (simplify_comparison): Test just mode's sign bit
9469 in tmode rather than the sign bit and any bits above it.
9470
9471 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9472
9473 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9474 Add __isl_give to the declaration.
9475 (generate_isl_schedule): Likewise.
9476 (scop_to_isl_ast): Likewise.
9477
9478 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9479
9480 * config/arm/arm.c (cortexa5_extra_costs): New table.
9481 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9482
9483 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9484
9485 PR tree-optimization/61725
9486 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9487 range, use range_includes_zerop_p instead of integer_zerop on
9488 vr0->min, only use log2 of max if min is not negative.
9489
9490 2014-07-08 Richard Biener <rguenther@suse.de>
9491
9492 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9493 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9494 restriction on loop depth difference.
9495 (record_equality): Likewise.
9496 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9497 (loop_depth_of_name): Remove.
9498 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9499 restriction on loop depth difference.
9500 (init_copy_prop): Likewise.
9501
9502 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9503
9504 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9505 parameter.
9506 (walk_aliased_vdefs): Likewise.
9507 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9508 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9509 (detect_type_change_from_memory_writes): Check if entry was reached.
9510
9511 2014-07-08 Richard Biener <rguenther@suse.de>
9512
9513 PR tree-optimization/61681
9514 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9515 NONLOCAL inside ESCAPED.
9516
9517 2014-07-08 Richard Biener <rguenther@suse.de>
9518
9519 PR tree-optimization/61680
9520 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9521 Handle properly all read-write dependences with group accesses.
9522
9523 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9524
9525 PR tree-optimization/61576
9526 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9527 block containing reduction statement is predecessor of phi basi block.
9528
9529 2014-07-08 Marek Polacek <polacek@redhat.com>
9530
9531 PR c/60226
9532 * fold-const.c (round_up_loc): Change the parameter type.
9533 Remove assert.
9534 * fold-const.h (round_up_loc): Adjust declaration.
9535 * stor-layout.c (finalize_record_size): Check for too large types.
9536
9537 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9538
9539 * symtab.c: Include calls.h.
9540 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9541
9542 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9543
9544 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9545 little-endian code generation.
9546 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9547 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9548 (spe_evmergehilo): Rename to...
9549 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9550 (spe_evmergelo): Rename to...
9551 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9552 (spe_evmergelohi): Rename to...
9553 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9554 (spe_evmergehi, spe_evmergehilo): New expanders.
9555 (spe_evmergelo, spe_evmergelohi): Likewise.
9556 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9557 (*frob_tf_ti): Likewise.
9558 (*frob_<mode>_di_2): Likewise.
9559 (*frob_tf_di_8_2): Likewise.
9560 (*frob_di_<mode>): Likewise.
9561 (*frob_ti_tf): Likewise.
9562 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9563 (*frob_ti_<mode>_8_2): Likewise.
9564 (*frob_ti_tf_2): Likewise.
9565 (mov_si<mode>_e500_subreg0): Rename to...
9566 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9567 endianness only.
9568 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9569 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9570 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9571 the big endianness only.
9572 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9573 (*mov_si<mode>_e500_subreg0_2): Rename to...
9574 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9575 big big endianness only.
9576 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9577 (*mov_si<mode>_e500_subreg4): Rename to...
9578 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9579 endianness only.
9580 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9581 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9582 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9583 the big endianness only.
9584 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9585 pattern.
9586 (*mov_si<mode>_e500_subreg4_2): Rename to...
9587 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9588 endianness only.
9589 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9590 (*mov_sitf_e500_subreg8): Rename to...
9591 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9592 endianness only.
9593 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9594 (*mov_sitf_e500_subreg8_2): Rename to...
9595 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9596 endianness only.
9597 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9598 (*mov_sitf_e500_subreg12): Rename to...
9599 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9600 endianness only.
9601 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9602 (*mov_sitf_e500_subreg12_2): Rename to...
9603 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9604 endianness only.
9605 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9606
9607 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9608
9609 * asan.c (instrument_strlen_call): Do not instrument first byte
9610 in strlen if already instrumented.
9611
9612 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9613
9614 * config/arm/arm.opt (mwords-little-endian): Delete.
9615 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9616 of TARGET_LITTLE_WORDS.
9617 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9618 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9619 warning.
9620 * doc/invoke.texi: Remove references to -mwords-little-endian.
9621
9622 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9623
9624 * expmed.c (struct init_expmed_rtl): Change all fields but
9625 pow2 and cint from struct rtx_def to rtx.
9626 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9627 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9628 at the end again.
9629
9630 2014-07-06 Marek Polacek <polacek@redhat.com>
9631
9632 PR c/6940
9633 * doc/invoke.texi: Document -Wsizeof-array-argument.
9634
9635 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9636
9637 * wide-int.h (wide_int_storage): Change declaration from struct
9638 to class.
9639
9640 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9641
9642 * cgraph.c (cgraph_create_indirect_edge): Update call of
9643 get_polymorphic_call_info.
9644 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9645 (possible_polymorphic_call_targets): Add parameter call.
9646 (decl_maybe_in_construction_p): New predicate.
9647 (get_polymorphic_call_info): Add parameter call;
9648 use decl_maybe_in_construction_p.
9649 * gimple-fold.c (fold_gimple_assign): Update use of
9650 possible_polymorphic_call_targets.
9651 (gimple_fold_call): Likewise.
9652 * ipa-prop.c: Inlcude calls.h
9653 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9654 (param_type_may_change_p): New predicate.
9655 (detect_type_change_from_memory_writes): Break out from ...
9656 (detect_type_change): ... this one; use param_type_may_change_p.
9657 (detect_type_change_ssa): Use param_type_may_change_p.
9658 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9659
9660 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9661
9662 PR target/49423
9663 * config/arm/arm-protos.h (arm_legitimate_address_p,
9664 arm_is_constant_pool_ref): Add prototypes.
9665 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9666 (arm_is_constant_pool_ref) New function.
9667 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9668 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9669 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9670 operand. Remove pool_range and neg_pool_range attributes.
9671 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9672 pool_range and neg_pool_range attributes.
9673 * config/arm/constraints.md (Uh): New constraint.
9674 (Uq): Don't allow constant pool references.
9675
9676 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9677
9678 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9679 (move_lo_quad_internal_be_<mode>): Likewise.
9680 (move_lo_quad_<mode>): Convert to define_expand.
9681 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9682 (aarch64_simd_move_hi_quad_be_<mode>): New.
9683 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9684 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9685 (aarch64_combinez_be<mode>): New.
9686 (aarch64_combine<mode>): Convert to define_expand.
9687 (aarch64_combine_internal<mode>): New.
9688 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9689
9690 2014-07-04 Tom de Vries <tom@codesourcery.com>
9691
9692 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9693 combination of earlyclobber and read/write modifiers.
9694
9695 2014-07-04 Tom de Vries <tom@codesourcery.com>
9696
9697 * config/aarch64/aarch64-simd.md
9698 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9699
9700 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9701
9702 PR target/61714
9703 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9704
9705 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9706
9707 PR middle-end/61654
9708 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9709
9710 PR tree-optimization/61684
9711 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9712 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9713
9714 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9715 Kito Cheng <kito@0xlab.org>
9716 Monk Chiang <sh.chiang04@gmail.com>
9717
9718 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9719 (nds32_symbol_load_store_p): Move to ...
9720 (nds32_fp_as_gp_check_available): Move to ...
9721 * config/nds32/nds32-fp-as-gp.c: ... here.
9722 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9723 extern declaration.
9724
9725 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9726 Kito Cheng <kito@0xlab.org>
9727 Monk Chiang <sh.chiang04@gmail.com>
9728
9729 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9730 (nds32_expand_store_multiple): Move to ...
9731 (nds32_expand_movmemqi): Move to ...
9732 * config/nds32/nds32-memory-manipulation.c: ... here.
9733
9734 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9735 Kito Cheng <kito@0xlab.org>
9736 Monk Chiang <sh.chiang04@gmail.com>
9737
9738 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9739 (nds32_output_casesi_pc_relative): Move to ...
9740 (nds32_output_casesi): Move to ...
9741 (nds32_mem_format): Move to ...
9742 (nds32_output_16bit_store): Move to ...
9743 (nds32_output_16bit_load): Move to ...
9744 (nds32_output_32bit_store): Move to ...
9745 (nds32_output_32bit_load): Move to ...
9746 (nds32_output_32bit_load_s): Move to ...
9747 (nds32_output_stack_push): Move to ...
9748 (nds32_output_stack_pop): Move to ...
9749 * config/nds32/nds32-md-auxiliary.c: ... here.
9750
9751 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9752 Ling-Hua Tseng <uranus@tinlans.org>
9753
9754 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9755 the purpose of this file.
9756
9757 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9758 Kito Cheng <kito@0xlab.org>
9759 Monk Chiang <sh.chiang04@gmail.com>
9760
9761 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9762 (nds32_address_cost): Move implementation to ...
9763 * config/nds32/nds32-cost.c: ... here.
9764 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9765 (nds32_address_cost_impl): Declare.
9766
9767 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9768 Kito Cheng <kito@0xlab.org>
9769 Monk Chiang <sh.chiang04@gmail.com>
9770
9771 * config/nds32/nds32.c
9772 (nds32_consecutive_registers_load_store_p): Move to ...
9773 (nds32_valid_multiple_load_store): Move to ...
9774 (nds32_valid_stack_push_pop): Move to ...
9775 (nds32_can_use_bclr_p): Move to ...
9776 (nds32_can_use_bset_p): Move to ...
9777 (nds32_can_use_btgl_p): Move to ...
9778 (nds32_can_use_bitci_p): Move to ...
9779 * config/nds32/nds32-predicates.c: ... here.
9780
9781 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9782 Kito Cheng <kito@0xlab.org>
9783 Monk Chiang <sh.chiang04@gmail.com>
9784
9785 * config/nds32/nds32.c
9786 (nds32_expand_builtin_null_ftype_reg): Move to ...
9787 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9788 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9789 (nds32_init_builtins): Move implementation to ...
9790 (nds32_expand_builtin): Move implementation to ...
9791 * config/nds32/nds32-intrinsic.c: ... here.
9792 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9793 (nds32_expand_builtin_impl): Declare.
9794
9795 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9796 Kito Cheng <kito@0xlab.org>
9797 Monk Chiang <sh.chiang04@gmail.com>
9798
9799 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9800 (nds32_emit_section_tail_template): Move to ...
9801 (nds32_emit_isr_jmptbl_section): Move to ...
9802 (nds32_emit_isr_vector_section): Move to ...
9803 (nds32_emit_isr_reset_conten): Move to ...
9804 (nds32_check_isr_attrs_conflict): Move to ...
9805 (nds32_construct_isr_vectors_information): Move to ...
9806 (nds32_asm_file_start): Move implementation to ...
9807 (nds32_asm_file_end): Move implementation to ...
9808 * config/nds32/nds32-isr.c: ... here.
9809 * config/nds32/nds32-protos.h
9810 (nds32_check_isr_attrs_conflict): Declare.
9811 (nds32_construct_isr_vectors_information): Declare.
9812 (nds32_asm_file_start_for_isr): Declare.
9813 (nds32_asm_file_end_for_isr): Declare.
9814
9815 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9816 Kito Cheng <kito@0xlab.org>
9817 Monk Chiang <sh.chiang04@gmail.com>
9818
9819 * config.gcc (nds32*): Add new modules to extra_objs.
9820 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9821 (nds32be-*-*): Likewise.
9822 * config/nds32/nds32-cost.c: New file.
9823 * config/nds32/nds32-fp-as-gp.c: New file.
9824 * config/nds32/nds32-intrinsic.c: New file.
9825 * config/nds32/nds32-isr.c: New file.
9826 * config/nds32/nds32-md-auxiliary.c: New file.
9827 * config/nds32/nds32-memory-manipulation.c: New file.
9828 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9829 * config/nds32/nds32-predicates.c: New file.
9830 * config/nds32/t-nds32: New file.
9831
9832 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9833
9834 PR tree-optimization/61682
9835 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9836 using cases and when one of the operands is equal to 1.
9837
9838 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9839
9840 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9841 ashr<mode>3): Correct mode of operands[2].
9842 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9843 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9844 Correct mode of operands[2]. Fix split condition.
9845
9846 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9847
9848 * arm.md (arch): Add armv6_or_vfpv3.
9849 (arch_enabled): Add test for the above.
9850 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9851 on VFP9.
9852 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9853
9854 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9855
9856 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9857 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9858 HWI 1 and negate the unsigned value.
9859 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9860 use AND instead of shift.
9861 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9862
9863 2014-07-03 Marek Polacek <polacek@redhat.com>
9864
9865 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9866 (-fsanitize=float-divide-by-zero): Move to the table with
9867 -fsanitize=undefined suboptions.
9868 (-fsanitize=float-cast-overflow): Likewise.
9869
9870 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9871
9872 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9873 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9874 endianness.
9875
9876 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9877
9878 * loop-invariant.c (struct invariant): Add a new member: eqno;
9879 (find_identical_invariants): Update eqno;
9880 (create_new_invariant): Init eqno;
9881 (get_inv_cost): Compute comp_cost with eqno;
9882
9883 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9884
9885 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9886 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9887 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9888 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9889 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9890
9891 2014-07-02 Christian Bruel <christian.bruel@st.com>
9892
9893 PR target/29349
9894 PR target/53513
9895 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9896 (make_preds_opaque): Delete.
9897 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9898 (commit_mode_sets): New function.
9899 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9900 Process all modes at once.
9901 * basic-block.h (pre_edge_lcm_avs): Declare.
9902 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9903 Call clear_aux_for_edges. Fix comments.
9904 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9905 (pre_edge_rev_lcm): Idem.
9906 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9907 parameter.
9908 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9909 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9910 Idem.
9911 * config/i386/i386.c (x96_emit_mode_set): Idem.
9912 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9913 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9914 (fpscr_toggle) Disallow from delay slot.
9915 * target.def (emit_mode_set): Add prev_mode parameter.
9916 * doc/tm.texi: Regenerate.
9917
9918 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9919
9920 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9921 variable i.
9922
9923 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9924
9925 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9926 vtable_pointer_value_to_vtable): Constify.
9927 (contains_polymorphic_type_p): Declare.
9928 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9929 vtable_pointer_value_to_vtable): Constify.
9930 (contains_polymorphic_type_p): New predicate.
9931 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9932 polymorphic types.
9933 (ipa_set_ancestor_jf): Likewise.
9934 (detect_type_change): Return false in easy cases.
9935 (compute_complex_assign_jump_func): Require type to contain
9936 polymorphic type.
9937 (compute_known_type_jump_func): Likewise.
9938
9939 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9940
9941 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9942 Remove.
9943 (type_in_anonymous_namespace_p): Constify argument.
9944 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9945 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9946 (main_odr_variant): New function.
9947 (hash_type_name): Make static; update assert; do not ICE on
9948 non-records.
9949 (types_same_for_odr): Bring here from tree.c; simplify and remove
9950 old structural comparing code that doesn't work for templates.
9951 (odr_hasher::equal): Update assert.
9952 (add_type_duplicate): Return true when bases should be computed;
9953 replace incomplete loader by complete; do not output duplicated
9954 warnings; do not ICE on non-records; set odr_violated flag.
9955 (get_odr_type): Be ready to replace incomplete type by complete
9956 one; work on ODR variants instead of main variants; reorder item
9957 in array so bases have still smaller indexes.
9958 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9959 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9960
9961 2014-07-01 Cary Coutant <ccoutant@google.com>
9962
9963 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9964 lookup.
9965 (resolve_addr_in_expr): When replacing the rtx in a location list
9966 entry, get a new address table entry.
9967 (dwarf2out_finish): Call index_location_lists even if there are no
9968 addr_index_table entries yet.
9969
9970 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9971
9972 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9973 change for not being obvious.
9974
9975 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9976
9977 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9978 unused argument.
9979
9980 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9981
9982 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9983 (vcagt_f64): Likewise.
9984 (vcale_f64): Likewise.
9985 (vcaled_f64): Likewise.
9986 (vcales_f32): Likewise.
9987 (vcalt_f64): Likewise.
9988 (vcaltd_f64): Likewise.
9989 (vcalts_f32): Likewise.
9990
9991 2014-07-01 Marek Polacek <polacek@redhat.com>
9992
9993 * doc/invoke.texi: Document -Wint-conversion.
9994
9995 2014-07-01 Marek Polacek <polacek@redhat.com>
9996
9997 PR c/58286
9998 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9999
10000 2014-07-01 Martin Liska <mliska@suse.cz>
10001
10002 IPA REF alias refactoring
10003 * cgraph.h (iterate_direct_aliases): New function.
10004 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10005 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10006 FOR_EACH_ALIAS added.
10007 (cgraph_for_node_and_aliases): Likewise.
10008 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10009 * ipa-inline.c (reset_edge_caches): Likewise.
10010 (update_caller_keys): Likewise.
10011 * trans-mem.c (ipa_tm_execute): Likewise.
10012 *varpool.c (varpool_analyze_node): Likewise.
10013 (varpool_for_node_and_aliases): Likewise.
10014 * ipa-ref.h (first_alias): New function.
10015 (last_alias): Likewise.
10016 (has_aliases_p): Likewise.
10017 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10018 is sensitive to IPA_REF_ALIASes.
10019 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10020 are put at the beginning of the list.
10021 (symtab_node::iterate_direct_aliases): New function.
10022
10023 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10024
10025 Revert:
10026 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10027 type is complete.
10028 (write_ts_type_common_tree_pointers): Do not stream fields not set
10029 for incomplete types; do not stream duplicated fields for variants;
10030 sanity check that variant and type match.
10031 (write_ts_type_non_common_tree_pointers): Likewise.
10032 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10033 TYPE_SIZE whether type is complete.
10034 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10035 write_ts_type_common_tree_pointers
10036 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10037
10038 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10039
10040 * var-tracking.c (add_stores): Return instead of asserting if old
10041 and new values for conditional store are the same.
10042
10043 2014-06-30 Richard Henderson <rth@redhat.com>
10044
10045 PR rtl-opt/61608
10046 PR target/39284
10047 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10048 the cfg if there were any changes.
10049 * passes.def: Revert move of peephole2 after reorder_blocks;
10050 move duplicate_computed_gotos before peephole2.
10051
10052 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10053
10054 * except.c (emit_note_eh_region_end): New helper function.
10055 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10056 emit EH_REGION_END note.
10057 * jump.c (cleanup_barriers): Do not split a call and its
10058 corresponding CALL_ARG_LOCATION note.
10059
10060 2014-06-30 Jeff Law <law@redhat.com>
10061
10062 PR tree-optimization/61607
10063 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10064 deeper into the SSA_NAME_VALUE chain.
10065
10066 2014-06-30 Marek Polacek <polacek@redhat.com>
10067
10068 * convert.c (convert_to_integer): Don't instrument conversions if the
10069 function has no_sanitize_undefined attribute.
10070 * ubsan.c: Don't run the ubsan pass if the function has
10071 no_sanitize_undefined attribute.
10072
10073 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10074
10075 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10076 -fsanitize=undefined suboptions.
10077
10078 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10079
10080 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10081 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10082 against bigendian and adjust indices.
10083
10084 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10085
10086 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10087
10088 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10089
10090 PR target/61633
10091 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10092 Add alternative; make early clobber. Adjust both split patterns
10093 to use operand 0 as the working register.
10094
10095 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10096
10097 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10098 as ira_object_id_map might be NULL, or 1.
10099
10100 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10101
10102 * loop-invariant.c (get_inv_cost): Handle register class.
10103 (gain_for_invariant): Check the register pressure of the inv
10104 and its overlapped register class, other than all.
10105
10106 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10107
10108 * doc/invoke.texi (Optimize Options): Fix descriptions of
10109 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10110
10111 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10112
10113 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10114 documentation.
10115
10116 2014-06-29 Tobias Grosser <tobias@grosser.es>
10117
10118 PR bootstrap/61650
10119 * graphite-isl-ast-to-gimple.c: Add missing guards.
10120
10121 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10122
10123 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10124 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10125 * flag-types.h: Add new enum fgraphite_generator.
10126 * graphite-isl-ast-to-gimple.c: New.
10127 * graphite-isl-ast-to-gimple.h: New.
10128 * graphite.c (graphite_transform_loops): Add choice of Graphite
10129 code generator, which depends on flag_graphite_code_gen.
10130
10131 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10132
10133 * graphite-dependences.c (subtract_commutative_associative_deps):
10134 Add NULL checking of the following variables: must_raw_no_source,
10135 may_raw_no_source, must_war_no_source, may_war_no_source,
10136 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10137 must_war, may_war, must_waw, may_waw.
10138
10139 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10140
10141 * graphite-clast-to-gimple.c: gloog is renamed to
10142 graphite_regenerate_ast_cloog. gloog_error is renamed to
10143 graphite_regenerate_error.
10144 * graphite-clast-to-gimple.h: The definition of the struct
10145 bb_pbb_def is moved to graphite-htab.h.
10146 Add inclusion of the hash-table.h.
10147 * graphite-htab.h: The declaration of the function gloog is moved
10148 to graphite-clast-to-gimple.h and renamed to
10149 graphite_regenerate_ast_cloog.
10150 * graphite.c (graphite_transform_loops): gloog is renamed
10151 to graphite_regenerate_ast_cloog.
10152
10153 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10154
10155 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10156 type is complete.
10157 (write_ts_type_common_tree_pointers): Do not stream fields not set
10158 for incomplete types; do not stream duplicated fields for variants;
10159 sanity check that variant and type match.
10160 (write_ts_type_non_common_tree_pointers): Likewise.
10161 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10162 TYPE_SIZE whether type is complete.
10163 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10164 write_ts_type_common_tree_pointers
10165 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10166
10167 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10168
10169 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10170
10171 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10172
10173 * tree-inline.c (remap_type_1): Do not duplicate fields
10174 that are shared in between type and its main variant.
10175
10176 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10177
10178 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10179 of the type.
10180 (ipa_set_ancestor_jf) Likewise.
10181 (check_stmt_for_type_change): Check that we work on main variant.
10182 (detect_type_change): Look into main variant.
10183 (compute_known_type_jump_func): Check that main variant has BINFO.
10184
10185 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10186
10187 * ipa-devirt.c (set_type_binfo): New function.
10188 (add_type_duplicate): Use it.
10189 (get_odr_type): Sanity check that binfos points to main variants.
10190 (get_class_context): Be sure the context's outer_type is main variant.
10191 (contains_type_p): Walk main variant.
10192 (get_polymorphic_call_info_for_decl): Set outer_type to be
10193 main variant.
10194 (get_polymorphic_call_info): Likewise.
10195 (possible_polymorphic_call_targets): Sanity check that we operate
10196 on main variant.
10197
10198 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10199
10200 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10201
10202 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10203
10204 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10205 accidental change due to wide-int branch merge.
10206
10207 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10208
10209 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10210 compressed debug support.
10211 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10212 * configure: Regenerate.
10213 * config.in: Regenerate.
10214 * common.opt (compressed_debug_sections): New enum.
10215 (gz, gz=): New options.
10216 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10217 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10218 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10219 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10220 LINK_COMPRESS_DEBUG_SPEC.
10221 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10222 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10223 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10224 (Debugging Options): Document -gz[=type].
10225
10226 2014-06-27 Martin Jambor <mjambor@suse.cz>
10227
10228 PR ipa/61160
10229 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10230 args_to_skip, use those from node instead. Copy args_to_skip and
10231 combined_args_to_skip from node to the new thunk.
10232 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10233 (cgraph_create_virtual_clone): Moved computation of
10234 combined_args_to_skip...
10235 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10236
10237 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10238
10239 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10240 redundant diagnostic machinary.
10241
10242 2014-06-27 Richard Biener <rguenther@suse.de>
10243
10244 * tree-ssa-math-opts.c (bswap_replace): Fix
10245 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10246
10247 2014-06-27 Martin Liska <mliska@suse.cz>
10248
10249 * gimple.h (gimple_location_safe): New function introduced.
10250 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10251 of gimple_location_safe replaces gimple_location.
10252 (gimple_fold_call): Likewise.
10253 * ipa-devirt.c (ipa_devirt): Likewise.
10254 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10255 * ipa.c (walk_polymorphic_call_targets): Likewise.
10256 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10257
10258 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10259
10260 PR tree-optimization/57233
10261 PR tree-optimization/61299
10262 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10263 functions.
10264 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10265 would be lowered to scalar shifts, check if corresponding
10266 shifts and vector BIT_IOR_EXPR are supported and don't lower
10267 or lower just to narrower vector type in that case.
10268 * expmed.c (expand_shift_1): Fix up handling of vector
10269 shifts and rotates.
10270
10271 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10272
10273 PR target/61586
10274 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10275
10276 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10277
10278 * doc/invoke.texi (-fsemantic-interposition): Document.
10279 * common.opt (fsemantic-interposition): New flag.
10280 * varasm.c (decl_replaceable_p): Use it.
10281
10282 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10283
10284 PR target/61542
10285 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10286 extraction other than index 3.
10287
10288 2014-06-26 Teresa Johnson <tejohnson@google.com>
10289
10290 * doc/invoke.texi: Fix typo.
10291 * dumpfile.c: Add support for documented -fdump-* options
10292 optimized/missed/note/optall.
10293
10294 2014-06-26 Martin Jambor <mjambor@suse.cz>
10295
10296 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10297 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10298 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10299 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10300 * opts.c (default_options_optimization): Set
10301 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10302 * doc/invoke.texi (allow-load-data-races)
10303 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10304 (allow-store-data-races): Document the new default.
10305
10306 2014-06-26 Martin Jambor <mjambor@suse.cz>
10307
10308 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10309 renamed to ipa_impossible_devirt_target. Fix typo.
10310 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10311 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10312 ipa_impossible_devirt_target.
10313
10314 2014-06-26 Richard Biener <rguenther@suse.de>
10315
10316 PR tree-optimization/61607
10317 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10318 explaining why we restrict copies on loop depth.
10319 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10320 on loop depth.
10321 (record_equivalences_from_phis): Instead add it here.
10322
10323 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10324
10325 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10326 (LTO_WRAPPER_OBJS): New variable.
10327 (lto-wrapper$(exeext)): Use it.
10328 * collect2.c: Include "collect-utils.h".
10329 (verbose, debug): Remove variables.
10330 (at_file_supplied): No longer static.
10331 (tool_name): New variable.
10332 (do_wait, fork_execute, maybe_unlink): Don't declare.
10333 (tool_cleanup): No longer static.
10334 (notice): Remove function.
10335 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10336 fork_execute calls.
10337 (collect_wait, do_wait, collect_execute): Remove functions.
10338 (maybe_unlink): No longer static.
10339 * collect2.h (verbose, debug): Don't declare.
10340 (at_file_supplied): Declare.
10341 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10342 changed.
10343 (collect_execute): Replace with implementation from collect2, plus a
10344 new arg use_atfile. All callers changed.
10345 (collect_wait): Replace with implementation from collect2.
10346 (maybe_unlink_file): Remove function.
10347 (fork_execute): Replace with implementation from collect2, plus a
10348 new arg use_atfile. All callers changed.
10349 (do_wait): Add call to utils_cleanup to the error path.
10350 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10351 (tool_cleanup): Adjust declarations.
10352 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10353 * tlink.c: Include "collect-utils.h".
10354 (tlink_execute): New arg use_atfile. All callers changed.
10355 (tlink_init, tlink_execute): Remove declarations.
10356
10357 * collect-utils.c (save_temps): New variable.
10358 (do_wait): Use it instead of debug. Use fatal_error.
10359 * collect-utils.h (save_temps): Declare.
10360 * collect2.c (verbose): Rename from vflag. All uses changed.
10361 (tool_cleanup): New function, copied from collect_atexit.
10362 (collect_atexit, handler): Just call it.
10363 * collect2.h (verbose): Declaration renamed from vflag.
10364 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10365 debug.
10366
10367 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10368 (lto-wrapper$(exeext)): Link with collect-utils.o.
10369 * collect-utils.c: New file.
10370 * collect-utils.h: New file.
10371 * lto-wrapper.c: Include "collect-utils.h".
10372 (args_name): Delete variable.
10373 (tool_name): New variable.
10374 (tool_cleanup): New function.
10375 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10376 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10377 (fork_execute): Remove functions.
10378
10379 2014-06-26 Nick Clifton <nickc@redhat.com>
10380
10381 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10382
10383 * doc/extend.texi (Function Attributes): Fix typo in description
10384 of RX vector attribute.
10385
10386 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10387
10388 * config.gcc (supported_defaults): Error when passing either
10389 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10390
10391 2014-06-26 Richard Biener <rguenther@suse.de>
10392
10393 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10394 propagating volatile pointers.
10395
10396 2014-06-26 Richard Biener <rguenther@suse.de>
10397
10398 PR tree-optimization/61607
10399 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10400 loop if we redirected its latch edge.
10401 (thread_block_1): Do not cancel loops prematurely.
10402
10403 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10404
10405 * toplev.c (backend_init_target): Move init_emit_regs and
10406 init_regs to...
10407 (backend_init) ... here; skip ira_init_once and backend_init_target.
10408 (target_reinit) ... and here; clear
10409 this_target_rtl->lang_dependent_initialized.
10410 (lang_dependent_init_target): Clear
10411 this_target_rtl->lang_dependent_initialized;
10412 break out rtl initialization to ...
10413 (initialize_rtl): ... here; call also backend_init_target
10414 and ira_init_once.
10415 * toplev.h (initialize_rtl): New function.
10416 * function.c: Include toplev.h
10417 (init_function_start): Call initialize_rtl.
10418 * rtl.h (target_rtl): Add target_specific_initialized,
10419 lang_dependent_initialized.
10420
10421 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10422 Jakub Jelinek <jakub@redhat.com>
10423
10424 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10425
10426 2014-06-25 Tom de Vries <tom@codesourcery.com>
10427
10428 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10429
10430 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10431
10432 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10433 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10434 Issue a strict overflow warning if appropriate.
10435
10436 2014-06-25 Martin Liska <mliska@suse.cz>
10437
10438 IPA REF refactoring
10439 * Makefile.in: Removed header file (ipa-ref-inline.h).
10440 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10441 called.
10442 (cgraph_speculative_call_info): Likewise.
10443 (cgraph_for_node_thunks_and_aliases): Likewise.
10444 (cgraph_for_node_and_aliases): Likewise.
10445 (verify_cgraph_node): Likewise.
10446 * cgraph.h: Batch of IPA REF functions become member functions of
10447 symtab_node: add_reference, maybe_add_reference, clone_references,
10448 clone_referring, clone_reference, find_reference,
10449 remove_stmt_references, remove_all_references,
10450 remove_all_referring, dump_references, dump_referring,
10451 has_alias_p, iterate_reference, iterate_referring.
10452 * cgraphbuild.c (record_reference): New IPA REF function used.
10453 (record_type_list): Likewise.
10454 (record_eh_tables): Likewise.
10455 (mark_address): Likewise.
10456 (mark_load): Likewise.
10457 (mark_store): Likewise.
10458 (pass_build_cgraph_edges): Likewise.
10459 (rebuild_cgraph_edge): Likewise.
10460 (cgraph_rebuild_references): Likewise.
10461 (pass_remove_cgraph_callee_edges): Likewise.
10462 * cgraphclones.c (cgraph_clone_node): Likewise.
10463 (cgraph_create_virtual_clone): Likewise.
10464 (cgraph_materialize_clone): Likewise.
10465 (cgraph_materialize_all_clones): Likewise.
10466 * cgraphunit.c (cgraph_reset_node): Likewise.
10467 (cgraph_reset_node): Likewise.
10468 (analyze_function): Likewise.
10469 (assemble_thunks_and_aliases): Likewise.
10470 (expand_function): Likewise.
10471 * ipa-comdats.c (propagate_comdat_group): Likewise.
10472 (enqueue_references): Likewise.
10473 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10474 (create_specialized_node): Likewise.
10475 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10476 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10477 * ipa-inline.c (reset_edge_caches): Likewise.
10478 (update_caller_keys): Likewise.
10479 (execute): Likewise.
10480 * ipa-prop.c (remove_described_reference): Likewise.
10481 (propagate_controlled_uses): Likewise.
10482 (ipa_edge_duplication_hook): Likewise.
10483 (ipa_modify_call_arguments): Likewise.
10484 * ipa-pure-const.c (propagate_pure_const): Likewise.
10485 * ipa-ref-inline.h: Header file removed, functions moved
10486 to symtab_node class.
10487 * ipa-ref.c (remove_reference): New class member function.
10488 (cannot_lead_to_return): New class member function.
10489 (referring_ref_list): Likewise.
10490 (referred_ref_list): Likewise.
10491 Rest of functions moved to symtab_node class.
10492 * ipa-ref.h: New member functions remove_reference,
10493 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10494 to ipa_ref class.
10495 ipa_ref_list class has new member functions: first_reference,
10496 first_referring, clear, nreferences.
10497 * ipa-reference.c (analyze_function): New IPA REF function used.
10498 (write_node_summary_p): Likewise.
10499 (ipa_reference_write_optimization_summary): Likewise.
10500 * ipa-split.c (split_function): Likewise.
10501 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10502 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10503 (function_and_variable_visibility): Likewise.
10504 * ipa.c (has_addr_references_p): Likewise.
10505 (process_references): Argument type changed.
10506 (symtab_remove_unreachable_nodes): New IPA REF function used.
10507 (process_references): Likewise.
10508 (set_writeonly_bit): Likewise.
10509 * lto-cgraph.c: Implementation of new symtab_node member functions
10510 that uses new IPA REF functions.
10511 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10512 function used.
10513 * lto-streamer-out.c (output_symbol_p): Likewise.
10514 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10515 changed.
10516 * symtab.c: Implementation of new IPA REF API.
10517 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10518 (ipa_tm_create_version): Likewise.
10519 (ipa_tm_execute): Likewise.
10520 * tree-emutls.c (gen_emutls_addr): Likewise.
10521 * tree-inline.c (copy_bb): Likewise.
10522 (delete_unreachable_blocks_update_callgraph): Likewise.
10523 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10524 (varpool_for_node_and_aliases): Likewise.
10525
10526 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10527
10528 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10529
10530 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10531
10532 PR bootstrap/61598
10533 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10534 tree_node * instead of tree_node *.
10535 (fold): Adjust.
10536 (print_fold_checksum): Likewise.
10537 (fold_check_failed): Likewise.
10538 (debug_fold_checksum): Likewise.
10539 (fold_build1_stat_loc): Likewise.
10540 (fold_build2_stat_loc): Likewise.
10541 (fold_build3_stat_loc): Likewise.
10542 (fold_build_call_array_loc): Likewise.
10543
10544 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10545
10546 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10547 implementation with call to...
10548 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10549 function.
10550 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10551 Declare.
10552
10553 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10554
10555 PR tree-optimization/57742
10556 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10557 after replacing the statement.
10558
10559 2014-06-25 Nick Clifton <nickc@redhat.com>
10560
10561 * config/v850/v850.c (GHS_default_section_names): Change to const
10562 char * type.
10563 (GHS_current_section_names): Likewise.
10564 (v850_insert_attributes): Do not build strings, just assign the
10565 names directly. Change the type of 'chosen_section' to const
10566 char*.
10567 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10568 directly to the array entry.
10569 * config/v850/v850.h (GHS_default_section_names): Change to const
10570 char * type.
10571 (GHS_current_section_names): Likewise.
10572
10573 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10574
10575 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10576 (LANG_HOOKS_DECLS): Add it.
10577 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10578 has correct type.
10579 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10580 * langhooks.h (struct lang_hooks_for_decls): Add
10581 omp_clause_linear_ctor hook.
10582 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10583 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10584 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10585 combined simd loop use omp_clause_linear_ctor hook.
10586
10587 2014-06-24 Cong Hou <congh@google.com>
10588
10589 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10590 pattern recognition.
10591 (type_conversion_p): PROMOTION is true if it's a type promotion
10592 conversion, and false otherwise. Return true if the given expression
10593 is a type conversion one.
10594 * tree-vectorizer.h: Adjust the number of patterns.
10595 * tree.def: Add SAD_EXPR.
10596 * optabs.def: Add sad_optab.
10597 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10598 * expr.c (expand_expr_real_2): Likewise.
10599 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10600 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10601 * optabs.c (optab_for_tree_code): Likewise.
10602 * tree-cfg.c (estimate_operator_cost): Likewise.
10603 * tree-ssa-operands.c (get_expr_operands): Likewise.
10604 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10605 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10606 * doc/generic.texi: Add document for SAD_EXPR.
10607 * doc/md.texi: Add document for ssad and usad.
10608
10609 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10610
10611 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10612 qualification in cast.
10613
10614 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10615
10616 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10617 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10618 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10619 (tree_function_decl): ... here.
10620 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10621 streaming of vindex to ...
10622 (write_ts_function_decl_tree_pointers): ... here.
10623 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10624 Do not stream DECL_VINDEX.
10625 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10626
10627 2014-06-24 Catherine Moore <clm@codesourcery.com>
10628 Sandra Loosemore <sandra@codesourcery.com>
10629
10630 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10631 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10632 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10633
10634 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10635
10636 * doc/invoke.texi (Warning Options): Remove duplicated
10637 -Wmaybe-uninitialized.
10638
10639 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10640
10641 PR tree-optimization/57742
10642 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10643 (handle_builtin_malloc, handle_builtin_memset): New functions.
10644 (strlen_optimize_stmt): Call them.
10645 * passes.def: Move strlen after loop+dom but before vrp.
10646
10647 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10648
10649 PR target/61570
10650 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10651 model family 6 CPU with has_longmode never use a CPU without
10652 64-bit support.
10653
10654 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10655
10656 PR target/61570
10657 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10658 the last change.
10659
10660 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10661
10662 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10663 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10664 pointer_map.
10665 * hash-map.h: New file.
10666 * ipa-comdats.c: Use hash_map instead of pointer_map.
10667 * ipa.c: Likewise.
10668 * lto-section-out.c: Adjust.
10669 * lto-streamer.h: Replace pointer_map with hash_map.
10670 * symtab.c (verify_symtab): Likewise.
10671 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10672 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10673 * tree-streamer.h: Likewise.
10674 * tree-streamer.c: Adjust.
10675 * pointer-set.h: Remove pointer_map.
10676
10677 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10678
10679 * hash-table.h: Add a template arg to choose between storing values
10680 and storing pointers to values, and then provide partial
10681 specializations for both.
10682 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10683 should store, not the type values should point to.
10684 * tree-into-ssa.c (var_info_hasher): Likewise.
10685 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10686 * tree-complex.c: Adjust.
10687 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10688 table instead of int_tree_map *.
10689 * tree-parloops.c: Adjust.
10690 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10691 type is being stored.
10692 * tree-vectorizer.c: Adjust.
10693
10694 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10695
10696 * hash-table.h: Remove a layer of indirection from hash_table so that
10697 it contains the hash table's data instead of a pointer to the data.
10698 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10699 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10700 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10701 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10702 fold-const.c, gcse.c, ggc-common.c,
10703 gimple-ssa-strength-reduction.c, gimplify.c,
10704 graphite-clast-to-gimple.c, graphite-dependences.c,
10705 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10706 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10707 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10708 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10709 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10710 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10711 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10712 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10713 tree-ssa-live.c, tree-ssa-loop-im.c,
10714 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10715 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10716 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10717 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10718 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10719 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10720 vtable-verify.c, vtable-verify.h: Adjust.
10721
10722 2014-06-24 Richard Biener <rguenther@suse.de>
10723
10724 PR tree-optimization/61572
10725 * tree-ssa-sink.c (statement_sink_location): Do not sink
10726 loads from hard registers.
10727
10728 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10729
10730 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10731 not mentioned in clauses use private clause if the iterator is
10732 declared in #pragma omp for simd, and when adding lastprivate
10733 instead, add it to the outer #pragma omp for too. Diagnose
10734 if the variable is private in outer context. For simd collapse > 1
10735 loops, replace all iterators with temporaries.
10736 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10737 same even in collapse > 1 loops.
10738
10739 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10740 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10741 non-NULL.
10742 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10743 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10744 non-NULL.
10745 (gimplify_adjust_omp_clauses): Likewise.
10746 * omp-low.c (lower_rec_simd_input_clauses,
10747 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10748 safelen the same as safelen(1).
10749 * tree-nested.c (convert_nonlocal_omp_clauses,
10750 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10751 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10752 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10753 Fixup handling of GIMPLE_OMP_TARGET.
10754 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10755 GIMPLE_OMP_TARGET.
10756
10757 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10758
10759 PR tree-optimization/61554
10760 * tree-ssa-propagate.c: Include "bitmap.h".
10761 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10762 properly update constructor/destructor.
10763 (substitute_and_fold_dom_walker::before_dom_children):
10764 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10765 need_eh_cleaup instead.
10766 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10767 need_eh_cleanup.
10768
10769 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10770
10771 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10772 * tree-pass.h (make_pass_ipa_single_use): New pass.
10773 * cgraph.h (used_by_single_function): New flag.
10774 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10775 Stream it.
10776 * passes.def (pass_ipa_single_use): Scedule.
10777 * ipa.c (BOTTOM): New macro.
10778 (meet): New function
10779 (propagate_single_user): New function.
10780 (ipa_single_use): New function.
10781 (pass_data_ipa_single_use): New pass.
10782 (pass_ipa_single_use): New pass.
10783 (pass_ipa_single_use::gate): New gate.
10784 (make_pass_ipa_single_use): New function.
10785
10786 2014-06-23 Kai Tietz <ktietz@redhat.com>
10787
10788 PR target/39284
10789 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10790 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10791
10792 2014-06-23 Richard Biener <rguenther@suse.de>
10793
10794 * tree-ssa-loop.c (gate_loop): New function.
10795 (pass_tree_loop::gate): Call it.
10796 (pass_data_tree_no_loop, pass_tree_no_loop,
10797 make_pass_tree_no_loop): New.
10798 * tree-vectorizer.c: Include tree-scalar-evolution.c
10799 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10800 required.
10801 (pass_slp_vectorize::clone): New method.
10802 * timevar.def (TV_TREE_NOLOOP): New.
10803 * tree-pass.h (make_pass_tree_no_loop): Declare.
10804 * passes.def (pass_tree_no_loop): New pass group with
10805 SLP vectorizer.
10806
10807 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10808
10809 PR target/61570
10810 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10811 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10812
10813 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10814
10815 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10816 "yes" where needed.
10817
10818 2014-06-23 Alan Modra <amodra@gmail.com>
10819
10820 PR bootstrap/61583
10821 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10822 to zero on debug statements.
10823
10824 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10825
10826 PR target/60825
10827 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10828 Ignore third operand if present by marking qualifier_internal.
10829
10830 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10831
10832 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10833 vector extension.
10834 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10835 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10836 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10837 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10838 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10839 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10840 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10841 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10842 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10843 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10844 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10845 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10846 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10847 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10848 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10849 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10850 logic in GCC vector extensions
10851
10852 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10853 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10854 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10855 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10856 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10857 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10858 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10859 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10860 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10861 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10862
10863 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10864
10865 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10866 extensions.
10867
10868 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10869 (vget_low_s64): Use __GET_LOW macro.
10870 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10871 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10872 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10873 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10874 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10875
10876 (vcombine_s64): Use GCC vector extensions; remove cast.
10877 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10878 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10879 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10880 Fix type signature; remove cast.
10881
10882 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10883
10884 PR target/60825
10885 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10886 V1DFmode.
10887 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10888 add V1DFmode
10889 (BUILTIN_VD1): New.
10890 (BUILTIN_VD_RE): Remove.
10891 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10892 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10893 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10894 variant but not df.
10895 (vreinterpretv1df*, vreinterpret*v1df): New.
10896 (vreinterpretdf*, vreinterpret*df): Remove.
10897 * config/aarch64/aarch64-simd.md (aarch64_create,
10898 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10899 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10900 (VD1): New.
10901 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10902 (vcreate_f64): Remove cast, use v1df builtin.
10903 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10904 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10905 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10906 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10907 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10908 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10909 add range check using __builtin_aarch64_im_lane_boundsi.
10910 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10911 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10912 type signature, use gcc vector extensions.
10913 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10914 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10915 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10916 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10917 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10918 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10919 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10920 vreinterpret_u64_f64): Use v1df builtin not df.
10921
10922 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10923
10924 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10925 vector registers.
10926
10927 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10928
10929 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10930 priority directly.
10931
10932 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10933
10934 * loop-invariant.c (pre_check_invariant_p): New function.
10935 (find_invariant_insn): Call pre_check_invariant_p.
10936
10937 2014-06-22 Richard Henderson <rth@redhat.com>
10938
10939 PR target/61565
10940 * compare-elim.c (struct comparison): Add eh_note.
10941 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10942 a redundant comparison in a different EH region. Purge EH edges if
10943 necessary.
10944
10945 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10946
10947 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10948 (var_shift): Use it.
10949 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10950 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10951 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10952 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10953 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10954 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10955 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10956 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10957 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10958 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10959 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10960 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10961 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10962 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10963 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10964 *rotldi3_internal15be): Use the new attribute. Merge register and
10965 integer alternatives.
10966
10967 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10968
10969 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10970 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10971 split, *ashrdi3_internal3 and split): Delete, merge into...
10972 (ashr<mode>3): New expander.
10973 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10974 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10975
10976 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10977
10978 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10979 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10980 *rotldi3_internal3 and split): Delete, merge into...
10981 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10982 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10983 Use "rotlw" extended mnemonic.
10984
10985 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10986
10987 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10988 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10989 and split, *ashldi3_internal3 and split): Delete, merge into...
10990 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10991 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10992
10993 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10994
10995 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10996 (lshrsi3, two anonymous define_insns and define_splits,
10997 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10998 *lshrdi3_internal3 and split): Delete, merge into...
10999 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11000 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11001
11002 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11003
11004 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11005 Remove "O" alternative.
11006
11007 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11008
11009 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11010 (mips_move_from_gpr_cost): Likewise.
11011 (mips_register_move_cost): Update accordingly.
11012 (mips_secondary_reload_class): Remove name of in_p.
11013
11014 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11015
11016 PR target/61503
11017 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11018 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11019
11020 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11021
11022 * config/nios2/nios2.c: Include "builtins.h".
11023
11024 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11025
11026 * cgraph.h (tls_model_names): New variable.
11027 * print-tree.c (print_node): Simplify.
11028 * varpool.c (tls_model_names): New variable.
11029 (dump_varpool_node): Output tls model.
11030
11031 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11032
11033 * ipa-visibility.c (function_and_variable_visibility): Disable
11034 temporarily local aliases for some targets.
11035
11036 2014-06-20 Marek Polacek <polacek@redhat.com>
11037
11038 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11039 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11040 into SANITIZE_UNDEFINED.
11041 * doc/invoke.texi: Describe -fsanitize=bounds.
11042 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11043 functions created in the FEs.
11044 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11045 (expand_UBSAN_BOUNDS): New function.
11046 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11047 * internal-fn.h: Don't define internal functions here.
11048 * opts.c (common_handle_option): Add -fsanitize=bounds.
11049 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11050 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11051 * tree-core.h: Define internal functions here.
11052 (struct tree_base): Add ifn field.
11053 * tree-pretty-print.c: Include "internal-fn.h".
11054 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11055 * tree.c (get_callee_fndecl): Likewise.
11056 (build_call_expr_internal_loc): New function.
11057 * tree.def (CALL_EXPR): Update description.
11058 * tree.h (CALL_EXPR_IFN): Define.
11059 (build_call_expr_internal_loc): Declare.
11060 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11061 types.
11062 (ubsan_type_descriptor): Change bool parameter to enum
11063 ubsan_print_style. Adjust the code. Add handling of
11064 UBSAN_PRINT_ARRAY.
11065 (ubsan_expand_bounds_ifn): New function.
11066 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11067 (ubsan_build_overflow_builtin): Likewise.
11068 (instrument_bool_enum_load): Likewise.
11069 (ubsan_instrument_float_cast): Likewise.
11070 * ubsan.h (enum ubsan_print_style): New enum.
11071 (ubsan_expand_bounds_ifn): Declare.
11072 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11073
11074 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11075
11076 * config/rs6000/rs6000.md: Append `DONE' to preparation
11077 statements of `bswap' pattern splitters.
11078
11079 2014-06-20 Tom de Vries <tom@codesourcery.com>
11080
11081 * target.def (call_fusage_contains_non_callee_clobbers): Update
11082 definition.
11083 * doc/tm.texi: Regenerate.
11084
11085 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11086 Max Ostapenko <m.ostapenko@partner.samsung.com>
11087
11088 PR sanitizer/61547
11089 * asan.c (instrument_strlen_call): Fixed instrumentation of
11090 trailing byte.
11091
11092 2014-06-20 Martin Jambor <mjambor@suse.cz>
11093
11094 PR ipa/61540
11095 * ipa-prop.c (impossible_devirt_target): New function.
11096 (try_make_edge_direct_virtual_call): Use it, also instead of
11097 asserting.
11098
11099 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11100 Max Ostapenko <m.ostapenko@partner.samsung.com>
11101
11102 PR sanitizer/61530
11103 * asan.c (build_check_stmt): Add condition.
11104
11105 2014-06-20 Martin Jambor <mjambor@suse.cz>
11106
11107 PR ipa/61211
11108 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11109 expanded clones.
11110
11111 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11112
11113 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11114 Update comments.
11115 (VCONQ): Make comment more helpful.
11116 (VCON): Delete.
11117 * config/aarch64/aarch64-simd.md
11118 (aarch64_sqdmulh_lane<mode>):
11119 Use VCOND for operands 2. Update lane checking and flipping logic.
11120 (aarch64_sqrdmulh_lane<mode>): Likewise.
11121 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11122 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11123 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11124 attribute of operand 3 to VCOND.
11125 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11126 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11127 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11128 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11129 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11130 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11131 define_insn.
11132 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11133 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11134 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11135 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11136 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11137 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11138 operand to VCOND. Update lane flipping and bounds checking logic.
11139 (aarch64_sqdmlal2_lane<mode>): Likewise.
11140 (aarch64_sqdmlsl_lane<mode>): Likewise.
11141 (aarch64_sqdmull_lane<mode>): Likewise.
11142 (aarch64_sqdmull2_lane<mode>): Likewise.
11143 (aarch64_sqdmlal_laneq<mode>):
11144 Replace VCON usage with VCONQ.
11145 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11146 (aarch64_sqdmlal2_laneq<mode>): Emit
11147 aarch64_sqdmlal2_laneq<mode>_internal insn.
11148 Replace VCON with VCONQ.
11149 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11150 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11151 (aarch64_sqdmull_laneq<mode>): Emit
11152 aarch64_sqdmull_laneq<mode>_internal insn.
11153 Replace VCON with VCONQ.
11154 (aarch64_sqdmull2_laneq<mode>): Emit
11155 aarch64_sqdmull2_laneq<mode>_internal insn.
11156 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11157 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11158 of 3rd argument to int16x4_t.
11159 (vqdmlalh_lane_s16): Likewise.
11160 (vqdmlslh_lane_s16): Likewise.
11161 (vqdmull_high_lane_s16): Likewise.
11162 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11163 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11164 (vqdmlsl_lane_s16): Likewise.
11165 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11166 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11167 (vqdmlals_lane_s32): Likewise.
11168 (vqdmlsls_lane_s32): Likewise.
11169 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11170 (vqdmulls_lane_s32): Likewise.
11171 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11172 (vqdmlsl_lane_s32): Likewise.
11173 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11174 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11175 (vqrdmulhh_lane_s16): Likewise.
11176 (vqdmlsl_high_lane_s16): Likewise.
11177 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11178 (vqdmlsl_high_lane_s32): Likewise.
11179 (vqrdmulhs_lane_s32): Likewise.
11180
11181 2014-06-20 Tom de Vries <tom@codesourcery.com>
11182
11183 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11184 get_call_reg_set_usage.
11185
11186 2014-06-20 Tom de Vries <tom@codesourcery.com>
11187
11188 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11189 it contains all call_used_regs.
11190
11191 2014-06-20 Tom de Vries <tom@codesourcery.com>
11192
11193 * final.c (collect_fn_hard_reg_usage): Add and use variable
11194 function_used_regs.
11195
11196 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11197
11198 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11199 (set_init_priority, get_init_priority, set_fini_priority,
11200 get_fini_priority): New methods.
11201 * tree.c (init_priority_for_decl): Remove.
11202 (init_ttree): Do not initialize init priority.
11203 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11204 (decl_priority_info): Remove.
11205 (decl_init_priority_insert): Rewrite.
11206 (decl_fini_priority_insert): Rewrite.
11207 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11208 tree_priority_map_marked_p): Remove.
11209 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11210 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11211 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11212 not output priorities.
11213 (pack_ts_function_decl_value_fields): Likewise.
11214 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11215 not input priorities.
11216 (unpack_ts_function_decl_value_fields): Likewise.
11217 * symtab.c (symbol_priority_map): Declare.
11218 (init_priority_hash): Declare.
11219 (symtab_unregister_node): Unregister from priority hash, too.
11220 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11221 New methods.
11222 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11223 (symbol_priority_info): New function.
11224 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11225 New methods.
11226 * tree-core.h (tree_priority_map): Remove.
11227
11228 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11229
11230 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11231 0xff to uint64_t before shifting it up.
11232
11233 2014-06-20 Julian Brown <julian@codesourcery.com>
11234 Chung-Lin Tang <cltang@codesourcery.com>
11235
11236 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11237 TARGET_THUMB1_ONLY. Add comments.
11238
11239 2014-06-19 Tom de Vries <tom@codesourcery.com>
11240
11241 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11242 return type to void.
11243 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11244
11245 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11246
11247 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11248 as "move", from depends_on.
11249
11250 2014-06-19 Terry Guo <terry.guo@arm.com>
11251
11252 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11253 stage.
11254
11255 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11256
11257 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11258 Remove cr5.
11259 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11260
11261 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11262
11263 PR target/61550
11264 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11265 addresses here if reload in progress or completed.
11266
11267 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11268
11269 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11270 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11271 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11272 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11273 (mips_register_priority): New function that implements the target
11274 hook TARGET_REGISTER_PRIORITY.
11275 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11276 (mips_lra_p): Likewise for TARGET_LRA_P.
11277 (TARGET_REGISTER_PRIORITY): Define macro.
11278 (TARGET_SPILL_CLASS): Likewise.
11279 (TARGET_LRA_P): Likewise.
11280 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11281 classes.
11282 (REG_CLASS_NAMES): Likewise.
11283 (REG_CLASS_CONTENTS): Likewise.
11284 (BASE_REG_CLASS): Use M16_SP_REGS.
11285 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11286 New set attribute to enable alternatives depending on the register
11287 allocator used.
11288 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11289 (*lea64): Disable pattern for MIPS16.
11290 * config/mips/mips.opt (mlra): New option.
11291
11292 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11293
11294 * lra-constraints.c (base_to_reg): New function.
11295 (process_address): Use new function.
11296
11297 2014-06-18 Tom de Vries <tom@codesourcery.com>
11298
11299 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11300 * config/aarch64/aarch64.c
11301 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11302 (aarch64_emit_call_insn): New function.
11303 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11304 of emit_call_insn.
11305 * config/aarch64/aarch64.md (define_expand "call_internal")
11306 (define_expand "call_value_internal", define_expand "sibcall_internal")
11307 (define_expand "sibcall_value_internal"): New.
11308 (define_expand "call", define_expand "call_value")
11309 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11310 expand variant and aarch64_emit_call_insn.
11311
11312 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11313 Tom de Vries <tom@codesourcery.com>
11314
11315 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11316 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11317 Redefine to true.
11318 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11319 clobbers to CALL_INSN_FUNCTION_USAGE.
11320 (define_expand "sibcall_internal")
11321 (define_expand "sibcall_value_internal"): New.
11322 (define_expand "call", define_expand "call_value"): Add argument to
11323 arm_emit_call_insn.
11324 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11325 (define_expand "sibcall_value"): Use sibcall_value_internal and
11326 arm_emit_call_insn.
11327
11328 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11329
11330 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11331
11332 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11333
11334 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11335 __udivmoddi4.
11336
11337 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11338
11339 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11340 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11341 annotations. Fix DWARF information.
11342
11343 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11344
11345 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11346 __udivmoddi4, and fixups for negative operands.
11347
11348 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11349
11350 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11351
11352 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11353
11354 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11355 to __udivmoddi4.
11356
11357 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11358
11359 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11360 manipulation.
11361
11362 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11363
11364 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11365 describing register usage on function entry and exit.
11366
11367 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11368
11369 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11370 (__aeabi_ldivmod): Fix whitespace.
11371
11372 2014-06-18 Andreas Schwab <schwab@suse.de>
11373
11374 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11375 Remove blank line after @item.
11376
11377 2014-06-18 Richard Henderson <rth@redhat.com>
11378
11379 PR target/61545
11380 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11381
11382 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11383
11384 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11385 POST_MODIFY for neon loads and stores.
11386 (arm_print_operand): Output post-index register for neon loads and
11387 stores.
11388
11389 2014-06-18 Richard Biener <rguenther@suse.de>
11390
11391 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11392
11393 2014-06-18 Richard Biener <rguenther@suse.de>
11394
11395 * tree-pass.h (make_pass_dce_loop): Remove.
11396 * passes.def: Replace pass_dce_loop with pass_dce.
11397 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11398 changed free niter estimates and reset the scev cache.
11399 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11400 make_pass_dce_loop): Remove.
11401 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11402 (fini_copy_prop): Return whether something changed. Always
11403 let substitute_and_fold perform DCE and free niter estimates
11404 and reset the scev cache if so.
11405 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11406 (pass_data_copy_prop): Do not unconditionally schedule
11407 cleanup-cfg or update-ssa.
11408
11409 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11410
11411 PR tree-optimization/61518
11412 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11413 reduction var is used in reduction stmt or phi-function only.
11414
11415 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11416
11417 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11418
11419 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11420
11421 PR tree-optimization/61517
11422 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11423 whose rhs's first tree is the source expression instead of the
11424 expression itself.
11425 (find_bswap_or_nop): Likewise.
11426 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11427 gimple stmt whose rhs's first tree is the source. In the memory source
11428 case, move the stmt to be replaced close to one of the original load to
11429 avoid the problem of a store between the load and the stmt's original
11430 location.
11431 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11432 signature.
11433
11434 2014-06-18 Andreas Schwab <schwab@suse.de>
11435
11436 PR rtl-optimization/54555
11437 * postreload.c (move2add_use_add2_insn): Substitute
11438 STRICT_LOW_PART only if it is cheaper.
11439
11440 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11441
11442 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11443 Do not use unspec as call operand. Use memory_operand instead of
11444 memory_nox32_operand and add "m" operand constraint. Disable
11445 pattern for TARGET_X32.
11446 (*sibcall_pop_memory): Ditto.
11447 (*sibcall_value_memory): Ditto.
11448 (*sibcall_value_pop_memory): Ditto.
11449 (sibcall peepholes): Merge SImode and DImode patterns using
11450 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11451 Disable pattern for TARGET_X32. Check if eliminated register is
11452 really dead after call insn. Generate call RTX without unspec operand.
11453 (sibcall_value peepholes): Ditto.
11454 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11455 instead of memory_nox32_operand. Check if eliminated register is
11456 really dead after call insn. Generate call RTX without unspec operand.
11457 (sibcall_value_pop peepholes): Ditto.
11458 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11459
11460 2014-06-18 Terry Guo <terry.guo@arm.com>
11461
11462 PR target/61544
11463 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11464 reach the head.
11465
11466 2014-06-18 Olivier Hainque <hainque@adacore.com>
11467
11468 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11469 memorization of the end of block source location.
11470 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11471 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11472 end source location info we have on the block entry/exit code we
11473 generate.
11474
11475 2014-06-18 Richard Biener <rguenther@suse.de>
11476
11477 * common.opt (fssa-phiopt): New option.
11478 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11479 but not with -Og.
11480 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11481 * doc/invoke.texi (-fssa-phiopt): Document.
11482
11483 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11484
11485 * genattrtab.c (n_bypassed): New variable.
11486 (process_bypasses): Initialise n_bypassed.
11487 Count number of bypassed reservations.
11488 (make_automaton_attrs): Allocate space for bypassed reservations
11489 rather than number of bypasses.
11490
11491 2014-06-18 Richard Biener <rguenther@suse.de>
11492
11493 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11494 we propagated anything.
11495 (substitute_and_fold_dom_walker::before_dom_children): Something
11496 changed if we propagated into PHI arguments.
11497 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11498 we removed a stmt.
11499
11500 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11501
11502 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11503 vector case.
11504 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11505 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11506 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11507 Introduces alternative way of loads group permutaions.
11508 (vect_transform_grouped_load): Try alternative way of permutations.
11509
11510 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11511
11512 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11513 changed in ORT_TARGET region, don't jump to do_outer.
11514 (struct gimplify_adjust_omp_clauses_data): New type.
11515 (gimplify_adjust_omp_clauses_1): Adjust for data being
11516 a struct gimplify_adjust_omp_clauses_data pointer instead
11517 of tree *. Pass pre_p as a new argument to
11518 lang_hooks.decls.omp_finish_clause hook.
11519 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11520 splay_tree_foreach to pass both list_p and pre_p.
11521 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11522 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11523 gimplify_adjust_omp_clauses callers.
11524 * langhooks.c (lhd_omp_finish_clause): New function.
11525 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11526 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11527 * langhooks.h (struct lang_hooks_for_decls): Add a new
11528 gimple_seq * argument to omp_finish_clause hook.
11529 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11530 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11531 (scan_omp_parallel, lower_omp_for): When adding
11532 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11533 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11534 * tree-nested.c (convert_nonlocal_omp_clauses,
11535 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11536 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11537
11538 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11539
11540 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11541 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11542
11543 2014-06-17 Xinliang David Li <davidxl@google.com>
11544
11545 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11546 * passes.c (pass_init_dump_file): Do not set initialize
11547 flag to false unconditionally.
11548
11549 2014-06-17 Richard Biener <rguenther@suse.de>
11550
11551 * genopinit.c (main): Use vec<>::qsort method.
11552 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11553 Likewise.
11554 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11555
11556 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11557
11558 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11559 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11560 (mips_move_to_gpr_cost): Remove ST_REGS case.
11561 (mips_move_from_gpr_cost): Likewise.
11562 (mips_register_move_cost): Likewise.
11563 (mips_secondary_reload_class): Likewise.
11564
11565 2014-06-17 Richard Biener <rguenther@suse.de>
11566
11567 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11568 (pass_all_optimizations): Move 3rd copy-prop pass from after
11569 fre to before ifcombine/phiopt.
11570
11571 2014-06-17 Richard Biener <rguenther@suse.de>
11572
11573 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11574 and allow all blocks to be forwarders.
11575
11576 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11577
11578 PR target/61483
11579 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11580 variable 'size'; calculate 'size' right in the front; use
11581 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11582 pcum->aapcs_stack_words.
11583
11584 2014-06-17 Nick Clifton <nickc@redhat.com>
11585
11586 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11587 (umulhi3, mulsidi3, umulsidi3): Likewise.
11588
11589 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11590
11591 PR middle-end/61508
11592 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11593 check for section name.
11594
11595 2014-06-17 Richard Biener <rguenther@suse.de>
11596
11597 * tree-ssa-propagate.c: Include domwalk.h.
11598 (substitute_and_fold): Outline main worker into a domwalker ...
11599 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11600 Schedule stmts we can fully propagate for removal. Remove
11601 poor-mans DCE.
11602 (substitute_and_fold): Apply a dominator walk to perform
11603 substitution. Process stmts scheduled for removal here.
11604
11605 2014-06-17 Richard Biener <rguenther@suse.de>
11606
11607 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11608 of PHI node moving.
11609
11610 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11611
11612 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11613 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11614 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11615 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11616 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11617 TARGET_HARD_FLOAT.
11618 (get_fpscr) : Likewise.
11619
11620 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11621
11622 PR rtl-optimization/61325
11623 * lra-constraints.c (valid_address_p): Add forward declaration.
11624 (simplify_operand_subreg): Check address validity before and after
11625 alter_reg of memory subreg.
11626
11627 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11628
11629 * config/i386/i386.c (decide_alg): Correctly handle
11630 maximum size of stringop algorithm.
11631
11632 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11633
11634 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11635
11636 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11637
11638 PR rtl-optimization/61522
11639 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11640
11641 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11642
11643 Revert:
11644 * symtab.c (symtab_node::reset_section): New method.
11645 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11646 for localization.
11647 * cgraph.h (reset_section): Declare.
11648 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11649 do not consider comdat locals.
11650 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11651 for new symbol.
11652 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11653 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11654 reset sections of symbols dragged out of the comdats.
11655 (function_and_variable_visibility): Reset sections of
11656 localized symbols.
11657
11658 2014-06-16 Richard Biener <rguenther@suse.de>
11659
11660 PR tree-optimization/61482
11661 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11662 [-INF(OVF), +INF(OVF)] range.
11663
11664 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11665
11666 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11667 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11668 handling 32-bit multiplication.
11669
11670 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11671
11672 PR middle-end/61430
11673 * lra-lives.c (process_bb_lives): Skip creating copy during
11674 insn scan when src/dest has constrained to same regno.
11675
11676 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11677
11678 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11679 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11680
11681 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11682
11683 * asan.c (check_func): New function.
11684 (maybe_create_ssa_name): Likewise.
11685 (build_check_stmt_with_calls): Likewise.
11686 (use_calls_p): Likewise.
11687 (report_error_func): Change interface.
11688 (build_check_stmt): Allow non-integer lengths; add support
11689 for new parameter.
11690 (asan_instrument): Likewise.
11691 (instrument_mem_region_access): Moved code to build_check_stmt.
11692 (instrument_derefs): Likewise.
11693 (instrument_strlen_call): Likewise.
11694 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11695 * doc/invoke.texi: Describe new parameter.
11696 * params.def: Define new parameter.
11697 * params.h: Likewise.
11698 * sanitizer.def: Describe new builtins.
11699
11700 2014-06-16 Richard Biener <rguenther@suse.de>
11701
11702 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11703 Make all defs available at the end.
11704 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11705
11706 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11707
11708 PR plugins/45078
11709 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11710
11711 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11712
11713 PR bootstrap/61516
11714 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11715 initialization. Replace remaining use of uid.
11716
11717 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11718
11719 * c-family/c-common.c (handle_tls_model_attribute): Use
11720 set_decl_tls_model.
11721 * c-family/c-common.c (handle_tls_model_attribute): Use
11722 set_decl_tls_model.
11723 * cgraph.h (struct varpool_node): Add tls_model.
11724 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11725 * tree.h (DECL_TLS_MODEL): Update.
11726 (DECL_THREAD_LOCAL_P): Check that variable is static.
11727 (decl_tls_model): Declare.
11728 (set_decl_tls_model): Declare.
11729 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11730 set symbol prorperties.
11731 (get_emutls_init_templ_addr): Cleanup.
11732 (new_emutls_decl): Update.
11733 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11734 (lto_input_varpool_node): Likewise.
11735 * lto-streamer-out.c (hash_tree): Likewise.
11736 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11737 not stream DECL_TLS_MODEL.
11738 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11739 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11740
11741 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11742
11743 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11744
11745 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11746
11747 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11748 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11749 lists.
11750 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11751 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11752 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11753 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11754 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11755 (df_get_artificial_defs, df_get_artificial_uses)
11756 (df_single_def, df_single_use): Update accordingly.
11757 (df_refs_chain_dump): Take the first element in a linked list as
11758 parameter, rather than a pointer to an array of pointers.
11759 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11760 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11761 (df_chain_create_bb_process_use): Likewise.
11762 (df_md_bb_local_compute_process_def): Likewise.
11763 * fwprop.c (process_defs, process_uses): Likewise.
11764 (register_active_defs, update_uses): Likewise.
11765 (forward_propagate_asm): Update for new df_ref linking.
11766 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11767 (df_null_ref_rec, df_null_mw_rec): Likewise.
11768 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11769 explicitly.
11770 (df_scan_free_bb_info): Remove check for null artificial_defs.
11771 (df_install_ref_incremental): Adjust for new df_ref linking.
11772 Use a single-element insertion rather than a full sort.
11773 (df_ref_chain_delete_du_chain): Take the first element
11774 in a linked list as parameter, rather than a pointer to an array of
11775 pointers.
11776 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11777 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11778 (df_insn_info_delete): Remove check for null defs and call to
11779 df_scan_free_mws_vec.
11780 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11781 null rather than df_null_*_rec.
11782 (df_insn_rescan_debug_internal): Likewise, and update null
11783 checks in the same way. Remove check for null defs.
11784 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11785 Move a single element rather doing a full sort.
11786 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11787 linking.
11788 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11789 Initialize df_ref and df_mw_hardreg lists to null rather than
11790 df_null_*_rec.
11791 (df_ref_compare): Take df_refs as parameter, transferring the
11792 old interface to...
11793 (df_ref_ptr_compare): ...this new function.
11794 (df_sort_and_compress_refs): Update accordingly.
11795 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11796 old interface to...
11797 (df_mw_ptr_compare): ...this new function.
11798 (df_sort_and_compress_mws): Update accordingly.
11799 (df_install_refs, df_install_mws): Return a linked list rather than
11800 an array of pointers.
11801 (df_refs_add_to_chains): Assert that old lists are empty rather
11802 than freeing them.
11803 (df_insn_refs_verify): Don't handle null defs speciailly.
11804 * web.c (union_match_dups): Update for new df_ref linking.
11805
11806 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11807
11808 * df.h (df_ref_create, df_ref_remove): Delete.
11809 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11810 (df_ref_remove): Likewise.
11811
11812 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11813
11814 * df.h (df_single_def, df_single_use): New functions.
11815 * ira.c (find_moveable_pseudos): Use them.
11816
11817 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11818
11819 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11820 * df-problems.c (df_note_bb_compute): Use it.
11821 * regstat.c (regstat_bb_compute_ri): Likewise.
11822
11823 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11824
11825 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11826 * cse.c (cse_extended_basic_block): Use them.
11827 * dce.c (mark_artificial_use): Likewise.
11828 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11829 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11830 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11831 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11832 (df_simulate_initialize_backwards): Likewise.
11833 (df_simulate_finalize_backwards): Likewise.
11834 (df_simulate_initialize_forwards): Likewise.
11835 (df_md_simulate_artificial_defs_at_top): Likewise.
11836 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11837 * regrename.c (init_rename_info): Likewise.
11838 * regstat.c (regstat_bb_compute_ri): Likewise.
11839 (regstat_bb_compute_calls_crossed): Likewise.
11840
11841 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11842
11843 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11844 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11845 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11846 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11847 * combine.c (create_log_links): Likewise.
11848 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11849 (try_eliminate_compare): Likewise.
11850 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11851 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11852 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11853 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11854 (word_dce_process_block, dce_process_block): Likewise.
11855 * ddg.c (def_has_ccmode_p): Likewise.
11856 * df-core.c (df_bb_regno_first_def_find): Likewise.
11857 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11858 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11859 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11860 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11861 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11862 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11863 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11864 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11865 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11866 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11867 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11868 * fwprop.c (local_ref_killed_between_p): Likewise.
11869 (all_uses_available_at, free_load_extend): Likewise.
11870 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11871 * hw-doloop.c (scan_loop): Likewise.
11872 * ifcvt.c (dead_or_predicable): Likewise.
11873 * init-regs.c (initialize_uninitialized_regs): Likewise.
11874 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11875 (process_bb_node_lives): Likewise.
11876 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11877 (find_moveable_pseudos): Likewise.
11878 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11879 * recog.c (peep2_find_free_register): Likewise.
11880 * ree.c (get_defs): Likewise.
11881 * regstat.c (regstat_bb_compute_ri): Likewise.
11882 (regstat_bb_compute_calls_crossed): Likewise.
11883 * sched-deps.c (find_inc, find_mem): Likewise.
11884 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11885 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11886 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11887 (prepare_shrink_wrap): Likewise.
11888 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11889 * web.c (union_defs, pass_web::execute): Likewise.
11890 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11891 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11892
11893 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11894
11895 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11896 to inheritance pseudos.
11897 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11898
11899 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11900
11901 PR target/61415
11902 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11903 (BU_MISC_2): Rename to ...
11904 (BU_LDBL128_2): ... this.
11905 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11906 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11907 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11908 RS6000_BTM_LDBL128.
11909 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11910 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11911 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11912 (unpacktf_1): Likewise.
11913 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11914 (__builtin_longdouble_dw1): Likewise.
11915 * doc/sourcebuild.texi (longdouble128): Document.
11916
11917 2014-06-13 Jeff Law <law@redhat.com>
11918
11919 PR rtl-optimization/61094
11920 PR rtl-optimization/61446
11921 * ree.c (combine_reaching_defs): Get the mode for the copy from
11922 the extension insn rather than the defining insn.
11923
11924 2014-06-13 Dehao Chen <dehao@google.com>
11925
11926 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11927
11928 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11929
11930 * doc/install.texi (--enable-linker-plugin-configure-flags)
11931 (--enable-linker-plugin-flags): Document new flags.
11932
11933 2014-06-13 Martin Jambor <mjambor@suse.cz>
11934
11935 PR ipa/61186
11936 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11937 cache_token if returning early.
11938
11939 2014-06-13 Nick Clifton <nickc@redhat.com>
11940
11941 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11942 requested alignment is active.
11943 (LABEL_ALIGN): Likewise.
11944 (LOOP_ALIGN): Likewise.
11945
11946 2014-06-13 Richard Biener <rguenther@suse.de>
11947
11948 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11949 Rewrite to propagate the VN result into all uses where
11950 possible and to remove stmts becoming dead because of that.
11951 (eliminate): Generalize stmt removal handling, remove in
11952 reverse dominator order to support proper debug stmt
11953 generation. Update stmts before removing stmts.
11954 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11955
11956 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11957
11958 PR tree-optimization/61375
11959 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11960 symbolic number cannot be represented in an uint64_t.
11961 (find_bswap_or_nop_1): Likewise.
11962
11963 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11964
11965 * symtab.c (symtab_node::reset_section): New method.
11966 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11967 for localization.
11968 * cgraph.h (reset_section): Declare.
11969 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11970 do not consider comdat locals.
11971 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11972 for new symbol.
11973 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11974 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11975 reset sections of symbols dragged out of the comdats.
11976 (function_and_variable_visibility): Reset sections of
11977 localized symbols.
11978
11979 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11980
11981 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11982 to use symtab and decl_binds_to_current_def_p
11983 * tree-vectorizer.c (increase_alignment): Increase alignment
11984 of alias target, too.
11985
11986 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11987
11988 PR middle-end/61486
11989 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11990 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11991 if outer combined construct is distribute.
11992 (gimplify_omp_for): For OMP_DISTRIBUTE set
11993 gimplify_omp_ctxp->distribute.
11994 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11995 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11996 mapping into decl map.
11997
11998 2014-06-12 Jason Merrill <jason@redhat.com>
11999
12000 * common.opt (fabi-version): Change default to 0.
12001
12002 2014-06-12 Jason Merrill <jason@redhat.com>
12003
12004 * toplev.c (process_options): Reject -fabi-version=1.
12005
12006 2014-06-12 Jeff Law <law@redhat.com>
12007
12008 PR tree-optimization/61009
12009 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12010 value when we stop processing a block due to problematic PHIs.
12011
12012 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12013
12014 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12015 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12016 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12017 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12018 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12019 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12020 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12021 are not in the spec.
12022
12023 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12024
12025 PR target/59843
12026 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12027 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12028 Support V1DFmode.
12029
12030 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12031
12032 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12033
12034 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12035
12036 PR target/61443
12037 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12038 loading from address spaces.
12039
12040 2014-06-12 Martin Liska <mliska@suse.cz>
12041
12042 PR ipa/61462
12043 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12044 statement is reachable.
12045
12046 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12047
12048 * symtab.c (section_hash): New hash.
12049 (symtab_unregister_node): Clear section before freeing.
12050 (hash_section_hash_entry): New haser.
12051 (eq_sections): New function.
12052 (symtab_node::set_section_for_node): New method.
12053 (set_section_1): Update.
12054 (symtab_node::set_section): Take string instead of tree as parameter.
12055 (symtab_resolve_alias): Update.
12056 * cgraph.h (section_hash_entry_d): New structure.
12057 (section_hash_entry): New typedef.
12058 (cgraph_node): Change comdat_group_ to x_comdat_group,
12059 change section_ to x_section and turn into section_hash_entry;
12060 update accestors; put set_section_for_node offline.
12061 * tree.c (decl_section_name): Turn into string.
12062 (set_decl_section_name): Change parameter to be string.
12063 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12064 * sdbout.c (sdbout_one_type): Update.
12065 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12066 * varasm.c (IN_NAMED_SECTION, get_named_section,
12067 resolve_unique_section, hot_function_section, get_named_text_section,
12068 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12069 make_decl_rtl, default_unique_section): Update.
12070 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12071 (c6x_elf_unique_section): Update.
12072 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12073 * config/pa/pa.c (pa_function_section): Update.
12074 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12075 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12076 * config/arc/arc.c (arc_in_small_data_p): Update.
12077 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12078 * config/mcore/mcore.c (mcore_unique_section): Update.
12079 * config/mips/mips.c (mips16_build_function_stub): Update.
12080 (mips16_build_call_stub): Update.
12081 (mips_function_rodata_section): Update.
12082 (mips_in_small_data_p): Update.
12083 * config/score/score.c (score_in_small_data_p): Update.
12084 * config/rx/rx.c (rx_in_small_data): Update.
12085 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12086 (rs6000_xcoff_asm_named_section): Update.
12087 (rs6000_xcoff_unique_section): Update.
12088 * config/frv/frv.c (frv_string_begins_with): Update.
12089 (frv_in_small_data_p): Update.
12090 * config/v850/v850.c (v850_encode_data_area): Update.
12091 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12092 (bfin_handle_l1_data_attribute): Update.
12093 (bfin_handle_l2_attribute): Update.
12094 * config/mep/mep.c (mep_unique_section): Update.
12095 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12096 Update.
12097 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12098 (h8300_handle_tiny_data_attribute): Update.
12099 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12100 (m32r_in_small_data_p): Update.
12101 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12102 * config/i386/i386.c (ix86_in_large_data_p): Update.
12103 * config/i386/winnt.c (i386_pe_unique_section): Update.
12104 * config/darwin.c (darwin_function_section): Update.
12105 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12106 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12107 (new_emutls_decl): Update.
12108 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12109 input_varpool_node): Update.
12110 (ead_string_cst): Turn to ...
12111 (read_string): ... this one.
12112 * dwarf2out.c (secname_for_decl): Update.
12113 * asan.c (asan_protect_global): Update.
12114
12115 2014-06-11 DJ Delorie <dj@redhat.com>
12116
12117 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12118 cache lines.
12119 * config/rx/rx.c (rx_option_override): Likewise.
12120 (rx_align_for_label): Likewise.
12121
12122 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12123
12124 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12125
12126 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12127 prototype.
12128
12129 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12130
12131 * common.md: New file.
12132 * doc/md.texi: Update description of generic, machine-independent
12133 constraints.
12134 * config/s390/constraints.md (e): Delete.
12135 * Makefile.in (md_file): Include common.md.
12136 * config/m32c/t-m32c (md_file): Likewise.
12137 * genpreds.c (general_mem): New array.
12138 (generic_constraint_letters): Remove constraints now defined by
12139 common.md.
12140 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12141 Allow the first character to be '<' or '>' as well.
12142 * genoutput.c (general_mem): New array.
12143 (indep_constraints): Remove constraints now defined by common.md.
12144 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12145 Remove special handling of 'm'.
12146 * ira-costs.c (record_reg_classes): Remove special handling of
12147 constraints now defined by common.md.
12148 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12149 * ira-lives.c (single_reg_class): Likewise.
12150 (ira_implicitly_set_insn_hard_regs): Likewise.
12151 * lra-constraints.c (reg_class_from_constraints): Likewise.
12152 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12153 * postreload.c (reload_cse_simplify_operands): Likewise.
12154 * reload.c (push_secondary_reload, scratch_reload_class)
12155 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12156 * reload1.c (maybe_fix_stack_asms): Likewise.
12157 * targhooks.c (default_secondary_reload): Likewise.
12158 * stmt.c (parse_output_constraint): Likewise.
12159 * recog.c (preprocess_constraints): Likewise.
12160 (constrain_operands, peep2_find_free_register): Likewise.
12161 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12162 must be handled specially.
12163
12164 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12165
12166 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12167 * genpreds.c (have_const_dbl_constraints): Delete.
12168 (add_constraint): Don't set it.
12169 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12170 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12171 constraints using the lookup_constraint logic.
12172 * ira-lives.c (single_reg_class): Likewise.
12173 * ira.c (ira_setup_alts): Likewise.
12174 * lra-constraints.c (process_alt_operands): Likewise.
12175 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12176 * reload.c (find_reloads): Likewise.
12177
12178 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12179
12180 * genpreds.c (const_int_start, const_int_end): New variables.
12181 (choose_enum_order): Output CONST_INT constraints before memory
12182 constraints.
12183 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12184 Add CT_CONST_INT.
12185 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12186 * ira.c (ira_setup_alts): Likewise.
12187 * lra-constraints.c (process_alt_operands): Likewise.
12188 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12189 * reload.c (find_reloads): Likewise.
12190
12191 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12192
12193 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12194 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12195 * recog.c (preprocess_constraints): Update accordingly.
12196
12197 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12198
12199 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12200 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12201 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12202 * genpreds.c (print_type_tree): New function.
12203 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12204 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12205 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12206 Write out enum constraint_type and get_constraint_type.
12207 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12208 constraint_num rather than a constraint string.
12209 (satisfies_address_constraint_p): Likewise.
12210 (reg_class_from_constraints): Avoid old constraint macros.
12211 (process_alt_operands, process_address_1): Likewise.
12212 (curr_insn_transform): Likewise.
12213 * ira-costs.c (record_reg_classes): Likewise.
12214 (record_operand_costs): Likewise.
12215 * ira-lives.c (single_reg_class): Likewise.
12216 (ira_implicitly_set_insn_hard_regs): Likewise.
12217 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12218 * postreload.c (reload_cse_simplify_operands): Likewise.
12219 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12220 (constrain_operands, peep2_find_free_register): Likewise.
12221 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12222 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12223 * reload1.c (maybe_fix_stack_asms): Likewise.
12224 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12225 * targhooks.c (default_secondary_reload): Likewise.
12226 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12227 to EXTRA_CONSTRAINT_STR.
12228 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12229
12230 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12231
12232 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12233 (write_constraint_satisfied_p_array): ...this new function.
12234 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12235 an array.
12236 (write_insn_preds_c): Update accordingly.
12237
12238 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12239
12240 * genpreds.c (write_lookup_constraint): Rename to...
12241 (write_lookup_constraint_1): ...this.
12242 (write_lookup_constraint_array): New function.
12243 (write_tm_preds_h): Define lookup_constraint as an inline function
12244 that uses write_lookup_constraint_array where possible.
12245 (write_insn_preds_c): Update for the changes above.
12246
12247 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12248
12249 * doc/md.texi (regclass_for_constraint): Rename to...
12250 (reg_class_for_constraint): ...this.
12251 * genpreds.c (num_constraints, enum_order, register_start)
12252 (register_end, satisfied_start, memory_start, memory_end)
12253 (address_start, address_end): New variables.
12254 (add_constraint): Count the number of constraints.
12255 (choose_enum_order): New function.
12256 (write_enum_constraint_num): Iterate over enum_order.
12257 (write_regclass_for_constraint): Rename to...
12258 (write_reg_class_for_constraint_1): ...this and update output
12259 accordingly.
12260 (write_constraint_satisfied_p): Rename to...
12261 (write_constraint_satisfied_p_1): ...this and update output
12262 accordingly. Do nothing if all extra constraints are register
12263 constraints.
12264 (write_insn_extra_memory_constraint): Delete.
12265 (write_insn_extra_address_constraint): Delete.
12266 (write_range_function): New function.
12267 (write_tm_preds_h): Define constraint_satisfied_p and
12268 reg_class_for_constraint as inline functions that do a range check
12269 before calling the out-of-line function. Use write_range_function
12270 to implement insn_extra_{register,memory,address}_constraint,
12271 the first of which is new.
12272 (write_insn_preds_c): Update after above changes to write_* functions.
12273 (main): Call choose_enum_order.
12274
12275 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12276
12277 PR tree-optimization/61306
12278 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12279 expression instead of its size.
12280 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12281 false to prevent optimization when the result is unpredictable due to
12282 arithmetic right shift of signed type with highest byte is set.
12283 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12284 (init_symbolic_number): Likewise.
12285 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12286 when the result is unpredictable due to sign extension.
12287
12288 2014-06-11 Terry Guo <terry.guo@arm.com>
12289
12290 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12291 (*thumb1_addsi3): Ditto.
12292 (*thumb_subdi3): Ditto.
12293 (thumb1_subsi3_insn): Ditto.
12294 (*thumb_mulsi3): Ditto.
12295 (*thumb_mulsi3_v6): Ditto.
12296 (*thumb1_andsi3_insn): Ditto.
12297 (thumb1_bicsi3): Ditto.
12298 (*thumb1_iorsi3_insn): Ditto.
12299 (*thumb1_xorsi3_insn): Ditto.
12300 (*thumb1_ashlsi3): Ditto.
12301 (*thumb1_ashrsi3): Ditto.
12302 (*thumb1_lshrsi3): Ditto.
12303 (*thumb1_rotrsi3): Ditto.
12304 (*thumb1_negdi2): Ditto.
12305 (*thumb1_negsi2): Ditto.
12306 (*thumb1_abssi2): Ditto.
12307 (*thumb1_neg_abssi2): Ditto.
12308 (*thumb1_one_cmplsi2): Ditto.
12309 (*thumb1_zero_extendhisi2): Ditto.
12310 (*thumb1_zero_extendqisi2): Ditto.
12311 (*thumb1_zero_extendqisi2_v6): Ditto.
12312 (thumb1_extendhisi2): Ditto.
12313 (thumb1_extendqisi2): Ditto.
12314 (*thumb1_movdi_insn): Ditto.
12315 (*thumb1_movsi_insn): Ditto.
12316 (*thumb1_movhi_insn): Ditto.
12317 (thumb_movhi_clobber): Ditto.
12318 (*thumb1_movqi_insn): Ditto.
12319 (*thumb1_movhf): Ditto.
12320 (*thumb1_movsf_insn): Ditto.
12321 (*thumb_movdf_insn): Ditto.
12322 (movmem12b): Ditto.
12323 (movmem8b): Ditto.
12324 (cbranchqi4): Ditto.
12325 (cbranchsi4_insn): Ditto.
12326 (cbranchsi4_scratch): Ditto.
12327 (*negated_cbranchsi4): Ditto.
12328 (*tbit_cbranch): Ditto.
12329 (*tlobits_cbranch): Ditto.
12330 (*tstsi3_cbranch): Ditto.
12331 (*cbranchne_decr1): Ditto.
12332 (*addsi3_cbranch): Ditto.
12333 (*addsi3_cbranch_scratch): Ditto.
12334 (*thumb_cmpdi_zero): Ditto.
12335 (cstoresi_eq0_thumb1): Ditto.
12336 (cstoresi_ne0_thumb1): Ditto.
12337 (*cstoresi_eq0_thumb1_insn): Ditto.
12338 (*cstoresi_ne0_thumb1_insn): Ditto.
12339 (cstoresi_nltu_thumb1): Ditto.
12340 (cstoresi_ltu_thumb1): Ditto.
12341 (thumb1_addsi3_addgeu): Ditto.
12342 (*thumb_jump): Ditto.
12343 (*call_reg_thumb1_v5): Ditto.
12344 (*call_reg_thumb1): Ditto.
12345 (*call_value_reg_thumb1_v5): Ditto.
12346 (*call_value_reg_thumb1): Ditto.
12347 (*call_insn): Ditto.
12348 (*call_value_insn): Ditto.
12349 (thumb1_casesi_internal_pic): Ditto.
12350 (thumb1_casesi_dispatch): Ditto.
12351 (*thumb1_indirect_jump): Ditto.
12352 (prologue_thumb1_interwork): Ditto.
12353 (*epilogue_insns): Ditto.
12354 (consttable_1): Ditto.
12355 (consttable_2): Ditto.
12356 (tablejump): Ditto.
12357 (*thumb1_tablejump): Ditto.
12358 (thumb_eh_return): Ditto.
12359 (define_peephole2): Two of them are thumb1 only and got moved into
12360 new file thumb1.md.
12361 (define_split): Six of them are thumb1 only and got moved into new
12362 file thumb1.md.
12363 * config/arm/thumb1.md: New file comprised of above thumb1 only
12364 patterns.
12365
12366 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12367
12368 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12369 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12370 dependencies.
12371 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12372 (aarch64_crc_builtin_datum): New struct.
12373 (aarch64_crc_builtin_data): New.
12374 (aarch64_init_crc32_builtins): New function.
12375 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12376 (aarch64_crc32_expand_builtin): New.
12377 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12378 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12379 __ARM_FEATURE_CRC32 when appropriate.
12380 (TARGET_CRC32): Define.
12381 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12382 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12383 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12384 (aarch64_<crc_variant>): New pattern.
12385 * config/aarch64/arm_acle.h: New file.
12386 * config/aarch64/iterators.md (CRC): New int iterator.
12387 (crc_variant, crc_mode): New int attributes.
12388 * doc/aarch64-acle-intrinsics.texi: New file.
12389 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12390 Include aarch64-acle-intrinsics.texi.
12391
12392 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12393
12394 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12395 check for stores group of length 3.
12396 (vect_permute_store_chain): New permutations for stores group of
12397 length 3.
12398 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12399 of vec_perm_shuffle for the new permutations.
12400
12401 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12402
12403 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12404 table rewriting temporarily on targets not supporting ONE_ONLY.
12405
12406 2014-06-11 Richard Biener <rguenther@suse.de>
12407
12408 PR middle-end/61437
12409 Revert
12410 2014-06-04 Richard Biener <rguenther@suse.de>
12411
12412 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12413 TREE_PUBLIC and DECL_EXTERNAL decls.
12414
12415 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12416
12417 * varasm.c (set_implicit_section): New function.
12418 (resolve_unique_section): Use it to set implicit section
12419 for aliases, too.
12420 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12421 (default_function_section): Likewise.
12422 (decl_binds_to_current_def_p): Constify argument.
12423 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12424 * asan.c (asan_protect_global): Use
12425 symtab_get_node (decl)->implicit_section.
12426 * symtab.c (dump_symtab_base): Dump implicit sections.
12427 (verify_symtab_base): Verify sanity of sectoins and comdats.
12428 (symtab_resolve_alias): Alias share the section of its target.
12429 (set_section_1): New function.
12430 (symtab_node::set_section): Move here, recurse to aliases.
12431 (verify_symtab): Check for duplicated symtab lists.
12432 * tree-core.h (implicit_section_name_p): Remove.
12433 * tree-vect-data-refs.c: Include varasm.h.
12434 (vect_can_force_dr_alignment_p): Fix conditional on when
12435 decl bints to current definition; use
12436 symtab_get_node (decl)->implicit_section.
12437 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12438 * cgraph.h (struct symtab_node): Add implicit_section.
12439 (set_section): Rename to ...
12440 (set_section_for_node): ... this one.
12441 (set_section): Declare.
12442 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12443 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12444 input_overwrite_node, input_varpool_node): Stream implicit_section.
12445 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12446 removal; it will fail in LTO.
12447
12448 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12449
12450 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12451 Change second alternative type to f_mcr.
12452 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12453 and 12th alternatives' types to f_mcr and f_mrc.
12454 (*movdi_aarch64): Same for 12th and 13th alternatives.
12455 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12456 (aarch64_movtilow_tilow): Change type to fmov.
12457
12458 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12459
12460 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12461 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12462
12463 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12464
12465 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12466 New expander.
12467 (aarch64_sqrdmulh_lane<mode>): Likewise.
12468 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12469 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12470 (aarch64_sqdmulh_laneq<mode>): New expander.
12471 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12472 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12473 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12474 (aarch64_sqdmulh_lane<mode>): New expander.
12475 (aarch64_sqrdmulh_lane<mode>): Likewise.
12476 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12477 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12478 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12479 (aarch64_sqdmlal_laneq<mode>): Likewise.
12480 (aarch64_sqdmlsl_lane<mode>): Likewise.
12481 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12482 (aarch64_sqdmlal2_lane<mode>): Likewise.
12483 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12484 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12485 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12486 (aarch64_sqdmull_lane<mode>): Likewise.
12487 (aarch64_sqdmull_laneq<mode>): Likewise.
12488 (aarch64_sqdmull2_lane<mode>): Likewise.
12489 (aarch64_sqdmull2_laneq<mode>): Likewise.
12490
12491 2014-06-10 Richard Biener <rguenther@suse.de>
12492
12493 PR tree-optimization/61438
12494 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12495 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12496 insertion of IVs if running PRE.
12497 (eliminate): Adjust.
12498 (pass_pre::execute): Likewise.
12499 (pass_fre::execute): Likewise.
12500
12501 2014-06-10 Richard Biener <rguenther@suse.de>
12502
12503 PR middle-end/61456
12504 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12505 Do not use the main variant for the type comparison.
12506 (ncr_compar): Likewise.
12507 (nonoverlapping_component_refs_p): Likewise.
12508
12509 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12510
12511 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12512 REG_CFA_RESTORE mode.
12513
12514 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12515
12516 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12517 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12518 expand_vec_perm_pblendv.
12519
12520 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12521
12522 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12523 available.
12524 Simplify description of __crc32d and __crc32cd intrinsics.
12525 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12526 availability.
12527
12528 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12529
12530 PR lto/61334
12531 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12532 * config.in: Regenerate.
12533 * configure: Likewise.
12534
12535 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12536
12537 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12538 and public vars.
12539 (intersect_static_var_sets): Remove.
12540 (propagate): Do not prune local statics.
12541
12542 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12543
12544 PR fortran/60928
12545 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12546 Set lastprivate_firstprivate even if omp_private_outer_ref
12547 langhook returns true.
12548 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12549 langhook, call unshare_expr on new_var and call
12550 build_outer_var_ref to get the last argument.
12551
12552 2014-06-10 Marek Polacek <polacek@redhat.com>
12553
12554 PR c/60988
12555 * doc/extend.texi: Add cindex for transparent_union.
12556
12557 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12558
12559 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12560 init_symbolic_number ().
12561
12562 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12563
12564 PR middle-end/61141
12565 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12566 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12567 (verify_rtl_sharing): Likewise.
12568
12569 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12570
12571 PR c++/54442
12572 * tree.c (build_qualified_type): Use a canonical type for
12573 TYPE_CANONICAL.
12574
12575 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12576
12577 * config/arm/arm-modes.def: Remove XFmode.
12578
12579 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12580
12581 PR target/61062
12582 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12583 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12584 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12585 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12586 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12587 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12588 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12589 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12590 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12591
12592 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12593
12594 * tree-core.h (tree_decl_with_vis): Remove section_name.
12595
12596 2014-06-09 Kito Cheng <kito@0xlab.org>
12597
12598 * ira.c (ira): Don't call init_caller_save if LRA enabled
12599 since LRA use its own infrastructure to handle that.
12600
12601 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12602
12603 * symtab.c (dump_symtab_base): Update dumping.
12604 (symtab_make_decl_local): Clear only DECL_COMDAT.
12605 * tree-vect-data-refs.c (Check that variable is static before
12606 tampering with sections.
12607 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12608 (cgraph_create_virtual_clone): Likewise.
12609 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12610 (decl_section_name, set_decl_section_name): New accessors.
12611 (find_decls_types_r): Do not walk section name
12612 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12613 (decl_comdat_group, decl_comdat_group_id): Constify.
12614 (decl_section_name, set_decl_section_name): Update.
12615 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12616 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12617 (cgraph_make_node_local_1): Clear section and comdat group.
12618 * cgraph.h (set_comdat_group): Sanity check.
12619 (get_section, set_section): New.
12620 * ipa-comdats.c (ipa_comdats): Use get_section.
12621 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12622 * lto-streamer-out.c: Do not follow section names.
12623 * c-family/c-common.c (handle_section_attribute): Update.
12624 * lto-cgraph.c (lto_output_node): Output section.
12625 (lto_output_varpool_node): Likewise.
12626 (read_comdat_group): Rename to ...
12627 (read_identifier): ... this one.
12628 (read_string_cst): New function.
12629 (input_node, input_varpool_node): Input section names.
12630 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12631 (new_emutls_decl): Update.
12632 (secname_for_decl): Check section names only of static vars.
12633 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12634 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12635 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12636 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12637 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12638 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12639 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12640 * config/v850/v850.c (v850_insert_attributes): Likewise.
12641 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12642 Likewise.
12643 (h8300_handle_tiny_data_attribute): Likewise.
12644 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12645 (bfin_handle_l2_attribute): Likewise.
12646
12647 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12648
12649 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12650 remove static initializer.
12651
12652 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12653
12654 * varasm.c (use_blocks_for_decl_p): Check symbol table
12655 instead of alias attribute.
12656 (place_block_symbol): Recurse on aliases.
12657
12658 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12659
12660 * ipa-visibility.c: Include varasm.h
12661 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12662
12663 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12664
12665 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12666 outputting aliases.
12667
12668 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12669
12670 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12671 from test_insn into GGC space escape via SET_SRC.
12672
12673 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12674
12675 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12676 call statement, if any.
12677 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12678 statements, if any. Tidy up.
12679
12680 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12681
12682 PR target/61431
12683 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12684 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12685 handles swapping the two 64-bit double words on little endian
12686 systems. Include V1TImode and optionally TImode in VSX_LE so that
12687 these types are properly swapped. Change all of the insns and
12688 splits that do the 64-bit swaps to use VSX_LE.
12689 (vsx_le_perm_load_<mode>): Likewise.
12690 (vsx_le_perm_store_<mode>): Likewise.
12691 (splitters for little endian memory operations): Likewise.
12692 (vsx_xxpermdi2_le_<mode>): Likewise.
12693 (vsx_lxvd2x2_le_<mode>): Likewise.
12694 (vsx_stxvd2x2_le_<mode>): Likewise.
12695
12696 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12697
12698 PR target/61423
12699 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12700 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12701 and corresponding splitters. Zero extend general register
12702 or memory input operand to XMM temporary. Enable for
12703 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12704 (floatunssi<mode>2): Update expander predicate.
12705
12706 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12707
12708 PR rtl-optimization/61325
12709 * lra-constraints.c (process_address_1): Check scale equal to one
12710 to prevent transformation: base + scale * index => base + new_reg.
12711
12712 2014-06-06 Richard Biener <rguenther@suse.de>
12713
12714 PR tree-optimization/59299
12715 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12716 a def operand.
12717 (nearest_common_dominator_of_uses): Likewise.
12718 (statement_sink_location): Adjust. Support sinking loads.
12719
12720 2014-06-06 Martin Jambor <mjambor@suse.cz>
12721
12722 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12723 (build_agg_jump_func_from_list): Likewise.
12724 (determine_known_aggregate_parts): Renamed to
12725 determine_locally_known_aggregate_parts. Moved some functionality
12726 to the two functions above, removed bound checks.
12727
12728 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12729
12730 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12731 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12732 (aarch64_progress_pointer): Likewise.
12733 (aarch64_copy_one_part_and_move_pointers): Likewise.
12734 (aarch64_expand_movmen): Likewise.
12735 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12736 * config/aarch64/aarch64.md (movmem<mode>): New.
12737
12738 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12739
12740 * targhooks.c (default_add_stmt_cost): Call target specific
12741 hook instead of default one.
12742
12743 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12744
12745 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12746 endianness instead of host endianness.
12747 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12748 comments.
12749
12750 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12751
12752 PR debug/53927
12753 * function.c (instantiate_decls): Process the saved static chain.
12754 (expand_function_start): If not optimizing, save the static chain
12755 onto the stack.
12756 * tree-nested.c (convert_all_function_calls): Always create the static
12757 chain for nested functions if not optimizing.
12758
12759 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12760
12761 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12762
12763 2014-06-06 Richard Biener <rguenther@suse.de>
12764
12765 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12766 (construct_init_block): Likewise.
12767 (construct_exit_block): Likewise.
12768 (pass_expand::execute): Likewise.
12769 * graphite.c (graphite_transforms): Replace check for current_loops
12770 with a check for > 1 loops.
12771 (pass_graphite_transforms::execute): Adjust.
12772 * ipa-split.c (split_function): Remove check for current_loops.
12773 * omp-low.c (expand_parallel_call): Likewise.
12774 (expand_omp_for_init_counts): Likewise.
12775 (extract_omp_for_update_vars): Likewise.
12776 (expand_omp_for_generic): Likewise.
12777 (expand_omp_sections): Likewise.
12778 (expand_omp_target): Likewise.
12779 * tracer.c (tail_duplicate): Likewise.
12780 (pass_tracer::execute): Likewise.
12781 * trans-mem.c (expand_transaction): Likewise.
12782 * tree-complex.c (expand_complex_div_wide): Likewise.
12783 * tree-eh.c (lower_resx): Likewise.
12784 (cleanup_empty_eh_merge_phis): Likewise.
12785 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12786 current_loops with a check for > 1 loops.
12787 (pass_predcom::execute): Adjust.
12788 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12789 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12790 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12791 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12792 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12793 * tree-switch-conversion.c (process_switch): Likewise.
12794 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12795 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12796 (execute_vrp): Likewise.
12797 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12798
12799 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12800
12801 * rtl.h (insn_location): Declare.
12802 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12803 with UNKNOWN_LOCATION.
12804 * emit-rtl.c (insn_location): New function.
12805 * final.c (notice_source_line): Check that the instruction has a
12806 location before retrieving it and use insn_location.
12807 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12808 * print-rtl.c (print_rtx): Likewise.
12809
12810 2014-06-06 Richard Biener <rguenther@suse.de>
12811
12812 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12813
12814 2014-06-06 Christian Bruel <christian.bruel@st.com>
12815
12816 PR tree-optimization/43934
12817 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12818 cost.
12819
12820 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12821
12822 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12823 return NO_REGS for extra address and memory constraints. Handle
12824 operands that match (or are equivalent to something that matches)
12825 extra constant constraints. Ignore other non-register operands.
12826
12827 2014-06-06 Alan Modra <amodra@gmail.com>
12828
12829 PR target/61300
12830 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12831 * doc/tm.texi: Regenerate.
12832 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12833 Use throughout in place of REG_PARM_STACK_SPACE.
12834 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12835 "incoming" param. Pass to rs6000_function_parms_need_stack.
12836 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12837 prototype_p when incoming. Use function decl when incoming
12838 to handle K&R style functions.
12839 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12840 (INCOMING_REG_PARM_STACK_SPACE): Define.
12841
12842 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12843
12844 PR target/52472
12845 * cfgexpand.c (expand_debug_expr): Use address space of nested
12846 TREE_TYPE for ADDR_EXPR and MEM_REF.
12847
12848 2014-06-05 Jeff Law <law@redhat.com>
12849
12850 PR tree-optimization/61289
12851 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12852 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12853 looking for those which match LHS. All callers changed.
12854 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12855 parameters and code which manipulated them. All callers changed.
12856 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12857 and DST_MAP parameters. Simplify invalidation code by just calling
12858 invalidate_equivalences. All callers changed.
12859 (thread_across_edge): Simplify now that we don't need to maintain
12860 the map of equivalences to invalidate.
12861
12862 2014-06-05 Kai Tietz <ktietz@redhat.com>
12863 Richard Henderson <rth@redhat.com>
12864
12865 PR target/46219
12866 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12867 checking for !TARGET_X32.
12868 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12869 (sibcall_intern): New define_insn, plus required peepholes.
12870 (sibcall_pop_intern): Likewise.
12871 (sibcall_value_intern): Likewise.
12872 (sibcall_value_pop_intern): Likewise.
12873
12874 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12875
12876 * tree-inline.c (tree_function_versioning): Check DF info existence
12877 before accessing it.
12878
12879 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12880
12881 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12882 frame_size.
12883 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12884 aarch64_frame hard_fp_offset and frame_size.
12885 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12886 frame_size; remove original_frame_size.
12887 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12888 (aarch64_initial_elimination_offset): Remove frame_size and
12889 offset. Use aarch64_frame frame_size.
12890
12891 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12892 Jiong Wang <jiong.wang@arm.com>
12893 Renlin <renlin.li@arm.com>
12894
12895 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12896 initialization of R30 offset. Update offset. Iterate core
12897 regisers upto X30. Remove X29, X30 specific code.
12898
12899 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12900 Jiong Wang <jiong.wang@arm.com>
12901
12902 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12903 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12904 (aarch64_register_saved_on_entry): Adjust test.
12905
12906 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12907
12908 * config/aarch64/aarch64.h (machine_function): Move
12909 saved_varargs_size from here...
12910 (aarch64_frame): ... to here.
12911
12912 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12913 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12914 (aarch64_initial_elimination_offset)
12915 (aarch64_setup_incoming_varargs): Adjust location of
12916 saved_varargs_size.
12917
12918 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12919
12920 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12921 layout comment.
12922
12923 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12924 Prachi Godbole <Prachi.Godbole@imgtec.com>
12925
12926 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12927 mips32r5 entry to use PROCESSOR_P5600.
12928 * config/mips/mips-tables.opt: Regenerate.
12929 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12930 * config/mips/mips.c (mips_fmadd_bypass): New function.
12931 (mips_rtx_cost_data): Add costs for p5600.
12932 (mips_issue_rate): Add support for p5600.
12933 (mips_multipass_dfa_lookahead): Likewise.
12934 * config/mips/mips.h (TUNE_P5600): New define.
12935 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12936 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12937 * config/mips/mips.md: Include p5600.md.
12938 (processor): Add p5600.
12939 * config/mips/p5600.md: New file.
12940
12941 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12942
12943 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12944 * config/i386/predicates.md (palignr_operand): New.
12945 Indicates if permutation is suitable for palignr instruction.
12946
12947 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12948
12949 PR tree-optimization/61319
12950 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12951 stmt belongs to loop.
12952
12953 2014-06-05 Richard Biener <rguenther@suse.de>
12954
12955 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12956 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12957 (lookup_tmp_var): Adjust.
12958 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12959
12960 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12961
12962 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12963
12964 2014-06-05 Marek Polacek <polacek@redhat.com>
12965
12966 PR c/49706
12967 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12968
12969 2014-06-04 Tom de Vries <tom@codesourcery.com>
12970
12971 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12972 CONST_INT.
12973
12974 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12975
12976 PR tree-optimization/61385
12977 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12978
12979 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12980
12981 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12982 changed to use fatal_error.
12983 (main): Ensure lto_wrapper_cleanup is run atexit.
12984
12985 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12986
12987 * lra-constraints.c (valid_address_p): Move earlier in file.
12988 (address_eliminator): New structure.
12989 (satisfies_memory_constraint_p): New function.
12990 (satisfies_address_constraint_p): Likewise.
12991 (process_alt_operands, process_address, curr_insn_transform): Use them.
12992
12993 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12994
12995 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12996 const pointer.
12997 (target_lra_int, default_target_lra_int, this_target_lra_int)
12998 (op_alt_data): Delete.
12999 * lra.h (lra_init): Delete.
13000 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13001 (init_insn_code_data_once): Remove op_alt_data handling.
13002 (finish_insn_code_data_once): Likewise.
13003 (init_op_alt_data): Delete.
13004 (get_static_insn_data): Initialize operand_alternative to null.
13005 (free_insn_recog_data): Cast operand_alternative before freeing it.
13006 (setup_operand_alternative): Take the operand_alternative as
13007 parameter and assume it isn't already cached in the static
13008 insn data.
13009 (lra_set_insn_recog_data): Update accordingly.
13010 (lra_init): Delete.
13011 * ira.c (ira_init): Don't call lra_init.
13012 * target-globals.h (this_target_lra_int): Declare.
13013 (target_globals): Remove lra_int.
13014 (restore_target_globals): Update accordingly.
13015 * target-globals.c: Don't include lra-int.h.
13016 (default_target_globals, save_target_globals): Remove lra_int.
13017
13018 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13019
13020 * recog.h (operand_alternative): Convert reg_class, reject,
13021 matched and matches into bitfields.
13022 (preprocess_constraints): New overload.
13023 (preprocess_insn_constraints): New function.
13024 (preprocess_constraints): Take the insn as parameter.
13025 (recog_op_alt): Change into a pointer.
13026 (target_recog): Add x_op_alt.
13027 * recog.c (asm_op_alt): New variable.
13028 (recog_op_alt): Change into a pointer.
13029 (preprocess_constraints): New overload, replacing the old function
13030 definition with one that doesn't use global state.
13031 (preprocess_insn_constraints): New function.
13032 (preprocess_constraints): Use them. Take the insn as parameter.
13033 Use asm_op_alt for asms.
13034 (recog_init): Free existing x_op_alt entries.
13035 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13036 pointer const.
13037 (make_early_clobber_and_input_conflicts): Likewise.
13038 (process_bb_node_lives): Pass the insn to process_constraints.
13039 * reg-stack.c (check_asm_stack_operands): Likewise.
13040 (subst_asm_stack_regs): Likewise.
13041 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13042 * regrename.c (build_def_use): Likewise.
13043 * sched-deps.c (sched_analyze_insn): Likewise.
13044 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13045 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13046 (note_invalid_constants): Likewise.
13047 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13048 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13049 const.
13050
13051 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13052
13053 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13054 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13055 alternatives.
13056 (make_early_clobber_and_input_conflicts): Likewise.
13057 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13058
13059 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13060
13061 * recog.h (alternative_class): New function.
13062 (which_op_alt): Return a const recog_op_alt.
13063 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13064 (subst_asm_stack_regs): Likewise.
13065 * config/arm/arm.c (note_invalid_constants): Likewise.
13066 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13067 the operand_alternative; use alternative class instead.
13068 * sel-sched.c (get_reg_class): Likewise.
13069 * regrename.c (build_def_use): Likewise.
13070 (hide_operands, restore_operands, record_out_operands): Update type
13071 accordingly.
13072
13073 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13074
13075 * recog.h (recog_op_alt): Convert to a flat array.
13076 (which_op_alt): New function.
13077 * recog.c (recog_op_alt): Convert to a flat array.
13078 (preprocess_constraints): Update accordingly, grouping all
13079 operands of the same alternative together, rather than the
13080 other way around.
13081 * ira-lives.c (check_and_make_def_conflict): Likewise.
13082 (make_early_clobber_and_input_conflicts): Likewise.
13083 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13084 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13085 (subst_asm_stack_regs): Likewise.
13086 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13087 * regrename.c (hide_operands, record_out_operands): Likewise.
13088 (build_def_use): Likewise.
13089 * sel-sched.c (get_reg_class): Likewise.
13090 * config/arm/arm.c (note_invalid_constants): Likewise.
13091
13092 2014-06-04 Jason Merrill <jason@redhat.com>
13093
13094 PR c++/51253
13095 PR c++/61382
13096 * gimplify.c (gimplify_arg): Non-static.
13097 * gimplify.h: Declare it.
13098
13099 2014-06-04 Richard Biener <rguenther@suse.de>
13100
13101 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13102 TREE_PUBLIC and DECL_EXTERNAL decls.
13103
13104 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13105
13106 * regcprop.c (copyprop_hardreg_forward_1): Account for
13107 HARD_REGNO_CALL_PART_CLOBBERED.
13108
13109 2014-06-04 Richard Biener <rguenther@suse.de>
13110
13111 * configure.ac: Check whether the underlying type of int64_t
13112 is long or long long.
13113 * configure: Regenerate.
13114 * config.in: Likewise.
13115 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13116 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13117
13118 2014-06-04 Richard Biener <rguenther@suse.de>
13119
13120 PR tree-optimization/60098
13121 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13122 we hit a kill.
13123 (dse_optimize_stmt): Simplify, now that we found a kill
13124 earlier.
13125
13126 2014-06-04 Richard Biener <rguenther@suse.de>
13127
13128 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13129 of accesses with non-invariant address.
13130
13131 2014-06-04 Martin Liska <mliska@suse.cz>
13132
13133 * cgraph.h (cgraph_make_wrapper): New function introduced.
13134 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13135 * ipa-inline.h (inline_analyze_function): The function is global.
13136 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13137
13138 2014-06-04 Martin Liska <mliska@suse.cz>
13139
13140 * tree.h (private_lookup_attribute_starting): New function.
13141 (lookup_attribute_starting): Likewise.
13142 * tree.c (private_lookup_attribute_starting): Likewise.
13143
13144 2014-06-04 Martin Liska <mliska@suse.cz>
13145
13146 * cgraph.h (expand_thunk): New argument added.
13147 (address_taken_from_non_vtable_p): New global function.
13148 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13149 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13150 * cgraphunit.c (analyze_function): Likewise.
13151 (assemble_thunks_and_aliases): Argument added to call.
13152 (expand_thunk): New argument forces to produce GIMPLE thunk.
13153
13154 2014-06-04 Martin Liska <mliska@suse.cz>
13155
13156 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13157 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13158 * profile.c (branch_prob): Likewise.
13159
13160 2014-06-04 Martin Jambor <mjambor@suse.cz>
13161
13162 PR ipa/61340
13163 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13164 handler for switch on an ipa_ref_use enum.
13165 * ipa-reference.c (analyze_function): Likewise.
13166
13167 2014-06-04 Kai Tietz <ktietz@redhat.com>
13168
13169 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13170 from old call-instruction.
13171
13172 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13173
13174 * config/aarch64/aarch64.c (aarch64_classify_address)
13175 (aarch64_legitimize_reload_address): Support full addressing modes
13176 for vector modes.
13177 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13178 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13179
13180 2014-06-03 Andrew Pinski <apinski@cavium.com>
13181
13182 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13183 for OP0.
13184
13185 2014-06-03 Andrew Pinski <apinski@cavium.com>
13186
13187 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13188 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13189
13190 2014-06-03 Kai Tietz <ktietz@redhat.com>
13191
13192 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13193 for 64-bit ms-abi.
13194
13195 2014-06-03 Dehao Chen <dehao@google.com>
13196
13197 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13198 the same loop.
13199
13200 2014-06-03 Marek Polacek <polacek@redhat.com>
13201
13202 PR c/60439
13203 * doc/invoke.texi: Document -Wswitch-bool.
13204 * function.c (stack_protect_epilogue): Cast controlling expression of
13205 the switch to int.
13206 * gengtype.c (walk_type): Generate switch expression with its
13207 controlling expression cast to int.
13208
13209 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13210
13211 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13212 and attiny841.
13213 * config/avr/avr-tables.opt: Regenerate.
13214 * config/avr/t-multilib: Regenerate.
13215 * doc/avr-mmcu.texi: Regenerate.
13216
13217 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13218 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13219
13220 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13221 (ata6617c, ata664251): Add new avr35 devices.
13222 (ata6612c): Add new avr4 device.
13223 (ata6613c, ata6614q): Add new avr5 devices.
13224 * config/avr/avr-tables.opt: Regenerate.
13225 * config/avr/t-multilib: Regenerate.
13226 * doc/avr-mmcu.texi: Regenerate.
13227
13228 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13229
13230 * gcc/config/aarch64/aarch64-builtins.c
13231 (aarch64_types_binop_ssu_qualifiers): New static data.
13232 (TYPES_BINOP_SSU): Define.
13233 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13234 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13235 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13236 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13237 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13238 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13239 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13240 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13241 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13242 suffix to builtin function name, remove cast.
13243 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13244 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13245 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13246
13247 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13248
13249 * gcc/config/aarch64/aarch64-builtins.c
13250 (aarch64_types_binop_uus_qualifiers,
13251 aarch64_types_shift_to_unsigned_qualifiers,
13252 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13253 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13254 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13255 sqshlu_n, uqshl_n): Update qualifiers.
13256 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13257 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13258 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13259 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13260 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13261 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13262 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13263 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13264 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13265 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13266 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13267 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13268 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13269 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13270 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13271 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13272 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13273 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13274 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13275 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13276 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13277 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13278 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13279 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13280 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13281 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13282 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13283
13284 2014-06-03 Teresa Johnson <tejohnson@google.com>
13285
13286 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13287
13288 2014-06-02 Jason Merrill <jason@redhat.com>
13289
13290 PR c++/61020
13291 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13292
13293 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13294
13295 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13296 location == 0.
13297
13298 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13299
13300 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13301 New pattern.
13302 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13303 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13304 * config/aarch64/iterators.md (REVERSE): New iterator.
13305 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13306 (rev_op): New int_attribute.
13307 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13308 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13309 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13310 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13311 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13312 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13313 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13314 Replace temporary __asm__ with __builtin_shuffle.
13315
13316 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13317
13318 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13319 mips64r5.
13320 * config/mips/mips-tables.opt: Regenerate.
13321 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13322 to use mips_isa_rev rather than ISA_MIPS32R2.
13323 * config/mips/mips.h (ISA_MIPS32R3): New define.
13324 (ISA_MIPS32R5): New define.
13325 (ISA_MIPS64R3): New define.
13326 (ISA_MIPS64R5): New define.
13327 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13328 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13329 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13330 and mips64r5.
13331 (MIPS_ISA_SYNCI_SPEC): Likewise.
13332 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13333 (LINK_SPEC): Added mips32r3 and mips32r5.
13334 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13335 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13336 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13337 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13338 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13339 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13340 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13341
13342 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13343
13344 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13345 options.
13346 * config/mips/mips.opt (mxpa): New option.
13347 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13348 assembler.
13349
13350 2014-06-03 Martin Jambor <mjambor@suse.cz>
13351
13352 PR ipa/61160
13353 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13354 thunks.
13355
13356 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13357
13358 PR tree-optimization/61328
13359 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13360 initialization from find_bswap_or_nop_1.
13361 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13362 in source_expr2 before using the size value the function sets. Also
13363 make use of init_symbolic_number () in both the old place and
13364 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13365 doing recursion in the GIMPLE_BINARY_RHS case.
13366
13367 2014-06-03 Richard Biener <rguenther@suse.de>
13368
13369 PR tree-optimization/61383
13370 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13371 stmts can't trap.
13372
13373 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13374
13375 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13376 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13377 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13378 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13379 in this file.
13380 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13381 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13382 * system.h: ...here and make it unconditional.
13383 * target.def (conditional_register_usage): Mention
13384 define_register_constraint instead of old-style constraint macros.
13385 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13386 * doc/tm.texi: Regenerate.
13387 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13388 protected by !USE_MD_CONSTRAINTS.
13389 * config/frv/frv.md: Remove quote from old version of documentation.
13390 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13391 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13392 CONST_DOUBLE_OK_FOR_LETTER.
13393 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13394
13395 2014-06-02 Andrew Pinski <apinski@cavium.com>
13396
13397 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13398 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13399 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13400 file whose name depends on -mabi= and -mbig-endian.
13401 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13402 Handle LP64 better and handle ilp32 too.
13403 (MULTILIB_OPTIONS): Delete.
13404 (MULTILIB_DIRNAMES): Delete.
13405
13406 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13407
13408 * expr.h: Remove prototypes of functions defined in builtins.c.
13409 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13410 Remove prototypes of functions defined in builtins.c.
13411 * builtins.h: Update prototype list to include all exported functions.
13412 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13413 no_c99_libc_has_function): Move to targhooks.c
13414 (build_string_literal, build_call_expr_loc_array,
13415 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13416 to tree.c.
13417 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13418 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13419 no_c99_libc_has_function): Relocate from builtins.c.
13420 * tree.c: Include builtins.h.
13421 (build_call_expr_loc_array, build_call_expr_loc_vec,
13422 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13423 from builtins.c.
13424 * fold-const.h (fold_fma): Move prototype to builtins.h.
13425 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13426 * asan.c: Include builtins.h.
13427 * cfgexpand.c: Likewise.
13428 * convert.c: Likewise.
13429 * emit-rtl.c: Likewise.
13430 * except.c: Likewise.
13431 * expr.c: Likewise.
13432 * fold-const.c: Likewise.
13433 * gimple-fold.c: Likewise.
13434 * gimple-ssa-strength-reduction.c: Likewise.
13435 * gimplify.c: Likewise.
13436 * ipa-inline.c: Likewise.
13437 * ipa-prop.c: Likewise.
13438 * lto-streamer-out.c: Likewise.
13439 * stmt.c: Likewise.
13440 * tree-inline.c: Likewise.
13441 * tree-object-size.c: Likewise.
13442 * tree-sra.c: Likewise.
13443 * tree-ssa-ccp.c: Likewise.
13444 * tree-ssa-forwprop.c: Likewise.
13445 * tree-ssa-loop-ivcanon.c: Likewise.
13446 * tree-ssa-loop-ivopts.c: Likewise.
13447 * tree-ssa-math-opts.c: Likewise.
13448 * tree-ssa-reassoc.c: Likewise.
13449 * tree-ssa-threadedge.c: Likewise.
13450 * tree-streamer-in.c: Likewise.
13451 * tree-vect-data-refs.c: Likewise.
13452 * tree-vect-patterns.c: Likewise.
13453 * tree-vect-stmts.c: Likewise.
13454 * config/aarch64/aarch64.c: Likewise.
13455 * config/alpha/alpha.c: Likewise.
13456 * config/arc/arc.c: Likewise.
13457 * config/arm/arm.c: Likewise.
13458 * config/avr/avr.c: Likewise.
13459 * config/bfin/bfin.c: Likewise.
13460 * config/c6x/c6x.c: Likewise.
13461 * config/cr16/cr16.c: Likewise.
13462 * config/cris/cris.c: Likewise.
13463 * config/epiphany/epiphany.c: Likewise.
13464 * config/fr30/fr30.c: Likewise.
13465 * config/frv/frv.c: Likewise.
13466 * config/h8300/h8300.c: Likewise.
13467 * config/i386/i386.c: Likewise.
13468 * config/i386/winnt.c: Likewise.
13469 * config/ia64/ia64.c: Likewise.
13470 * config/iq2000/iq2000.c: Likewise.
13471 * config/lm32/lm32.c: Likewise.
13472 * config/m32c/m32c.c: Likewise.
13473 * config/m32r/m32r.c: Likewise.
13474 * config/m68k/m68k.c: Likewise.
13475 * config/mcore/mcore.c: Likewise.
13476 * config/mep/mep.c: Likewise.
13477 * config/microblaze/microblaze.c: Likewise.
13478 * config/mips/mips.c: Likewise.
13479 * config/mmix/mmix.c: Likewise.
13480 * config/mn10300/mn10300.c: Likewise.
13481 * config/moxie/moxie.c: Likewise.
13482 * config/msp430/msp430.c: Likewise.
13483 * config/nds32/nds32.c: Likewise.
13484 * config/pa/pa.c: Likewise.
13485 * config/pdp11/pdp11.c: Likewise.
13486 * config/picochip/picochip.c: Likewise.
13487 * config/rl78/rl78.c: Likewise.
13488 * config/rs6000/rs6000.c: Likewise.
13489 * config/rx/rx.c: Likewise.
13490 * config/s390/s390.c: Likewise.
13491 * config/score/score.c: Likewise.
13492 * config/sh/sh.c: Likewise.
13493 * config/sparc/sparc.c: Likewise.
13494 * config/spu/spu.c: Likewise.
13495 * config/stormy16/stormy16.c: Likewise.
13496 * config/tilegx/tilegx.c: Likewise.
13497 * config/tilepro/tilepro.c: Likewise.
13498 * config/v850/v850.c: Likewise.
13499 * config/vax/vax.c: Likewise.
13500 * config/xtensa/xtensa.c: Likewise.
13501
13502 2014-06-02 Jeff Law <law@redhat.com>
13503
13504 PR rtl-optimization/61094
13505 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13506 was marked as do_no_reextend. If a copy is needed to eliminate
13507 an extension, then mark it as do_not_reextend.
13508
13509 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13510
13511 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13512
13513 2014-06-02 Richard Henderson <rth@redhat.com>
13514
13515 PR target/61336
13516 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13517 addresses inside asms. Use output_operand_lossage instead of
13518 gcc_unreachable.
13519
13520 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13521
13522 PR target/61239
13523 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13524 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13525
13526 2014-06-02 Tom de Vries <tom@codesourcery.com>
13527
13528 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13529 case that x has VOIDmode.
13530
13531 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13532
13533 * varasm.c (copy_constant): Delete function.
13534 (build_constant_desc): Don't call it.
13535
13536 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13537
13538 PR target/61154
13539 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13540 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13541 with immediate_operand.
13542
13543 2014-06-02 Andreas Schwab <schwab@suse.de>
13544
13545 * config/ia64/ia64.c
13546 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13547 pending_data_specs first.
13548
13549 2014-06-02 Richard Biener <rguenther@suse.de>
13550
13551 PR tree-optimization/61378
13552 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13553 valueized_anything.
13554
13555 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13556
13557 * config/i386/constraints.md (Bw): Rename from 'w'.
13558 (Bz): Rename from 'z'.
13559 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13560
13561 2014-06-01 Kai Tietz <ktietz@redhat.com>
13562
13563 PR target/61377
13564 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13565 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13566 instead of m constraint.
13567
13568 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13569
13570 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13571 a separate alternative where the scratch operand 2 is marked as
13572 early clobber.
13573
13574 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13575
13576 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13577 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13578 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13579 and __builtins_arm_get_fpscr.
13580 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13581 __builtins_arm_get_fpscr.
13582 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13583 __builtins_arm_ldfpscr.
13584 (arm_atomic_assign_expand_fenv): New function.
13585 * config/arm/vfp.md (set_fpscr): New pattern.
13586 (get_fpscr) : Likewise.
13587 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13588 VUNSPEC_SET_FPSCR.
13589 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13590 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13591
13592 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13593
13594 * asan.c (report_error_func): Add SLOW_P argument, use
13595 BUILT_IN_ASAN_*_N if set.
13596 (build_check_stmt): Likewise.
13597 (instrument_derefs): If T has insufficient alignment,
13598 force same handling as for odd sizes.
13599
13600 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13601 BUILT_IN_ASAN_REPORT_STORE_N): New.
13602 * asan.c (struct asan_mem_ref): Change access_size type to
13603 HOST_WIDE_INT.
13604 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13605 update_mem_ref_hash_table): Likewise.
13606 (asan_mem_ref_hasher::hash): Hash in a HWI.
13607 (report_error_func): Change size_in_bytes argument to HWI.
13608 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13609 two.
13610 (build_shadow_mem_access): New function.
13611 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13612 Handle size_in_bytes not power of two or larger than 16.
13613 (instrument_derefs): Don't give up if size_in_bytes is not
13614 power of two or is larger than 16.
13615
13616 2014-05-30 Kai Tietz <ktietz@redhat.com>
13617
13618 PR target/60104
13619 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13620 for sibling-tail-calls.
13621 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13622 to its use.
13623 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13624 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13625
13626 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13627
13628 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13629 * config/avr/avr-tables.opt: Regenerate.
13630 * config/avr/t-multilib: Regenerate.
13631 * doc/avr-mmcu.texi: Regenerate.
13632
13633 2014-05-30 Ian Lance Taylor <iant@google.com>
13634
13635 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13636 target("sse").
13637
13638 2014-05-30 Tom de Vries <tom@codesourcery.com>
13639
13640 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13641 Redefine as true.
13642
13643 2014-05-30 Tom de Vries <tom@codesourcery.com>
13644
13645 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13646 * lra.c (initialize_lra_reg_info_element): Add init of
13647 actual_call_used_reg_set field.
13648 (lra): Call lra_create_live_ranges before lra_inheritance for
13649 -fuse-caller-save.
13650 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13651 -fuse-caller-save.
13652 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13653 instead of call_used_reg_set for -fuse-caller-save.
13654 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13655
13656 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13657
13658 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13659 to mov_imm.
13660 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13661
13662 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13663
13664 * ira.c (ira_get_dup_out_num): Check for output operands at
13665 the start of the loop. Handle cases where an included alternative
13666 follows an excluded one.
13667
13668 2014-05-29 Mike Stump <mikestump@comcast.net>
13669
13670 PR debug/61352
13671 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13672 post ld passes when lto is used.
13673
13674 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13675
13676 PR rtl-optimization/61325
13677 * lra-constraints.c (process_address): Rename to process_address_1.
13678 (process_address): New function.
13679
13680 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13681
13682 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13683 TYPES_BINOPV): New static data.
13684 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13685 New builtin.
13686 * config/aarch64/aarch64-simd.md (aarch64_ext,
13687 aarch64_im_lane_boundsi): New patterns.
13688 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13689 patterns for EXT.
13690 (aarch64_evpc_ext): New function.
13691
13692 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13693
13694 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13695 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13696 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13697 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13698 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13699
13700 2014-05-29 Tom de Vries <tom@codesourcery.com>
13701
13702 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13703
13704 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13705 Richard Sandiford <rdsandiford@googlemail.com>
13706
13707 * arm/iterators.md (shiftable_ops): New code iterator.
13708 (t2_binop0, arith_shift_insn): New code attributes.
13709 * arm/predicates.md (shift_nomul_operator): New predicate.
13710 * arm/arm.md (insn_enabled): Delete.
13711 (enabled): Remove insn_enabled test.
13712 (*arith_shiftsi): Delete. Replace with ...
13713 (*<arith_shift_insn>_multsi): ... new pattern.
13714 (*<arith_shift_insn>_shiftsi): ... new pattern.
13715 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13716
13717 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13718 Tom de Vries <tom@codesourcery.com>
13719
13720 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13721 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13722 clobber.
13723 (mips_split_call): Use POST_CALL_TMP_REG.
13724 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13725
13726 2014-05-29 Tom de Vries <tom@codesourcery.com>
13727
13728 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13729 with #ifdef STACK_REGS.
13730
13731 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13732
13733 * varasm.c (get_variable_section): Walk aliases.
13734 (place_block_symbol): Walk aliases.
13735
13736 2014-05-28 Tom de Vries <tom@codesourcery.com>
13737
13738 Revert:
13739 2014-05-28 Tom de Vries <tom@codesourcery.com>
13740
13741 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13742 * lra.c (initialize_lra_reg_info_element): Add init of
13743 actual_call_used_reg_set field.
13744 (lra): Call lra_create_live_ranges before lra_inheritance for
13745 -fuse-caller-save.
13746 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13747 -fuse-caller-save.
13748 * lra-constraints.c (need_for_call_save_p): Use
13749 actual_call_used_reg_set instead of call_used_reg_set for
13750 -fuse-caller-save.
13751 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13752
13753 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13754
13755 * doc/md.texi: Document that the % constraint character must
13756 be at the beginning of the string.
13757 * genoutput.c (validate_insn_alternatives): Check that '=',
13758 '+' and '%' only appear at the beginning of a constraint.
13759 * ira.c (commutative_constraint_p): Delete.
13760 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13761 at the start of the string.
13762 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13763 duplicate '='s.
13764 * config/arm/neon.md (bicdi3_neon): Likewise.
13765 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13766 (slt_si, sltu_si): Likewise.
13767 * config/vax/vax.md (sbcdi3): Likewise.
13768 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13769 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13770 (mul64): Move '%' to beginning of constraint.
13771 * config/arm/arm.md (*xordi3_insn): Likewise.
13772 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13773 (xorsi3): Likewise.
13774
13775 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13776
13777 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13778
13779 2014-05-28 Jason Merrill <jason@redhat.com>
13780
13781 PR c++/47202
13782 * cgraph.h (symtab_node::get_comdat_group_id): New.
13783 * cgraphunit.c (analyze_functions): Call it.
13784 * symtab.c (dump_symtab_node): Likewise.
13785 * tree.c (decl_comdat_group_id): New.
13786 * tree.h: Declare it.
13787 * lto-streamer-out.c (write_symbol): Use it.
13788 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13789
13790 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13791
13792 PR bootstrap/PR61146
13793 * wide-int.cc: Do not include longlong.h when compiling with clang.
13794
13795 2014-05-28 Richard Biener <rguenther@suse.de>
13796
13797 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13798 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13799 (vrp_visit_assignment_or_call): Print less vertical space.
13800 (vrp_visit_stmt): Likewise.
13801 (vrp_visit_phi_node): Likewise. For a PHI argument with
13802 VR_VARYING range consider recording it as copy.
13803
13804 2014-05-28 Richard Biener <rguenther@suse.de>
13805
13806 Revert
13807 2014-05-28 Richard Biener <rguenther@suse.de>
13808
13809 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13810
13811 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13812
13813 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13814 sufficiently aligned and an offset is used at the same time.
13815 (expand_expr_real_1): Likewise.
13816
13817 2014-05-28 Richard Biener <rguenther@suse.de>
13818
13819 PR middle-end/61045
13820 * fold-const.c (fold_comparison): When folding
13821 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13822 the sign of the remaining constant operand stays the same.
13823
13824 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13825
13826 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13827 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13828 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13829 to the assembler.
13830 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13831 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13832 (m32bit-doubles) Likewise.
13833 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13834 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13835 option for RL78.
13836
13837 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13838
13839 * configure.ac ($gcc_cv_ld_clearcap): New test.
13840 * configure: Regenerate.
13841 * config.in: Regenerate.
13842 * config/sol2.opt (mclear-hwcap): New option.
13843 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13844 * config/sol2-clearcap.map: Moved here from
13845 testsuite/gcc.target/i386/clearcap.map.
13846 * config/sol2-clearcapv2.map: Move here from
13847 gcc.target/i386/clearcapv2.map.
13848 * config/t-sol2 (install): Depend on install-clearcap-map.
13849 (install-clearcap-map): New target.
13850 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13851 -mclear-hwcap.
13852
13853 2014-05-28 Richard Biener <rguenther@suse.de>
13854
13855 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13856 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13857 ... here and remove the rest.
13858 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13859
13860 2014-05-28 Richard Biener <rguenther@suse.de>
13861
13862 PR tree-optimization/61335
13863 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13864 new range fails, drop to varying.
13865
13866 2014-05-28 Olivier Hainque <hainque@adacore.com>
13867
13868 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13869 (CPP_SPEC): Add entry for -mcpu=8548.
13870 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13871 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13872
13873 2014-05-28 Tom de Vries <tom@codesourcery.com>
13874
13875 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13876 * lra.c (initialize_lra_reg_info_element): Add init of
13877 actual_call_used_reg_set field.
13878 (lra): Call lra_create_live_ranges before lra_inheritance for
13879 -fuse-caller-save.
13880 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13881 -fuse-caller-save.
13882 * lra-constraints.c (need_for_call_save_p): Use
13883 actual_call_used_reg_set instead of call_used_reg_set for
13884 -fuse-caller-save.
13885 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13886
13887 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13888 Tom de Vries <tom@codesourcery.com>
13889
13890 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13891 to gccoptlist.
13892 (@item -fuse-caller-save): New item.
13893
13894 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13895 Tom de Vries <tom@codesourcery.com>
13896
13897 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13898 OPT_fuse_caller_save.
13899
13900 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13901 Tom de Vries <tom@codesourcery.com>
13902
13903 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13904 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13905 get_call_reg_set_usage.
13906 * resource.c (mark_set_resources, mark_target_live_regs): Use
13907 get_call_reg_set_usage.
13908 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13909 field.
13910 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13911 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13912 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13913 * ira-build.c (ira_create_allocno): Init
13914 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13915 (create_cap_allocno, propagate_allocno_info)
13916 (propagate_some_info_from_allocno)
13917 (copy_info_to_removed_store_destinations): Handle
13918 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13919 * ira-costs.c (ira_tune_allocno_costs): Use
13920 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13921
13922 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13923 Tom de Vries <tom@codesourcery.com>
13924
13925 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13926 and function_used_regs_valid fields.
13927 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13928 find_all_hard_reg_sets.
13929 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13930 (get_call_reg_set_usage): New function.
13931 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13932 * regs.h (get_call_reg_set_usage): Declare.
13933
13934 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13935
13936 PR libgcc/61152
13937 * config/dbx.h (License): Add Runtime Library Exception.
13938 * config/newlib-stdint.h (License): Same.
13939 * config/rtems.h (License): Same
13940 * config/initfini-array.h (License): Same
13941 * config/v850/v850.h (License): Same.
13942 * config/v850/v850-opts.h (License): Same
13943 * config/v850/rtems.h (License): Same.
13944
13945 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13946
13947 PR target/61044
13948 * doc/extend.texi (Local Labels): Note that label differences are
13949 not supported for AVR.
13950
13951 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13952 Olivier Hainque <hainque@adacore.com>
13953
13954 * rtl.h (set_for_reg_notes): Declare.
13955 * emit-rtl.c (set_for_reg_notes): New function.
13956 (set_unique_reg_note): Use it.
13957 * optabs.c (add_equal_note): Likewise
13958
13959 2014-05-27 Andrew Pinski <apinski@cavium.com>
13960
13961 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13962 Use <w> for the register in assembly template.
13963 (stack_protect_test): Use the mode of operands[0] for the result.
13964 (stack_protect_test_<mode>): Use <w> for the register
13965 in assembly template.
13966
13967 2014-05-27 DJ Delorie <dj@redhat.com>
13968
13969 * config/rx/rx.c (add_vector_labels): New.
13970 (rx_output_function_prologue): Call it.
13971 (rx_handle_func_attribute): Don't require empty arguments.
13972 (rx_handle_vector_attribute): New.
13973 (rx_attribute_table): Add "vector" attribute.
13974 * doc/extend.texi (interrupt, vector): Document new/changed
13975 RX-specific attributes.
13976
13977 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13978
13979 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13980
13981 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13982 predicate to detect a negative quotient.
13983
13984 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13985
13986 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13987 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13988 Add X - Y CMP 0 to X CMP Y transformation.
13989 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13990
13991 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13992
13993 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13994 before printing.
13995
13996 2014-05-27 Steve Ellcey <sellcey@mips.com>
13997
13998 * config/mips/mips.c: Add include of cgraph.h.
13999
14000 2014-05-27 Richard Biener <rguenther@suse.de>
14001
14002 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14003
14004 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14005
14006 PR libgcc/61152
14007 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14008 * config/arm/arm-cores.def (License): Same.
14009 * config/arm/arm-opts.h (License): Same.
14010 * config/arm/aout.h (License): Same.
14011 * config/arm/bpabi.h (License): Same.
14012 * config/arm/elf.h (License): Same.
14013 * config/arm/linux-elf.h (License): Same.
14014 * config/arm/linux-gas.h (License): Same.
14015 * config/arm/netbsd-elf.h (License): Same.
14016 * config/arm/uclinux-eabi.h (License): Same.
14017 * config/arm/uclinux-elf.h (License): Same.
14018 * config/arm/vxworks.h (License): Same.
14019
14020 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14021
14022 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14023 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14024 (arm_init_neon_builtins): Handle NEON_BSWAP.
14025 Define required type nodes.
14026 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14027 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14028 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14029 * config/arm/iterators.md (VDQHSD): New mode iterator.
14030
14031 2014-05-27 Richard Biener <rguenther@suse.de>
14032
14033 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14034 Try using literal operands when comparing value-ranges failed.
14035
14036 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14037
14038 * ira.c (commutative_operand): Adjust for change to recog_data.
14039 [Missing from previous commit.]
14040
14041 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14042
14043 * system.h (TEST_BIT): New macro.
14044 * recog.h (alternative_mask): New type.
14045 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14046 (recog_data_d): Replace alternative_enabled_p array with
14047 enabled_alternatives.
14048 (target_recog): New structure.
14049 (default_target_recog, this_target_recog): Declare.
14050 (get_enabled_alternatives, recog_init): Likewise.
14051 * recog.c (default_target_recog, this_target_recog): New variables.
14052 (get_enabled_alternatives): New function.
14053 (extract_insn): Use it.
14054 (recog_init): New function.
14055 (preprocess_constraints, constrain_operands): Adjust for change to
14056 recog_data.
14057 * postreload.c (reload_cse_simplify_operands): Likewise.
14058 * reload.c (find_reloads): Likewise.
14059 * ira-costs.c (record_reg_classes): Likewise.
14060 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14061 all alternatives after a disabled one would be skipped.
14062 (ira_implicitly_set_insn_hard_regs): Likewise.
14063 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14064 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14065 with enabled_alternatives.
14066 * lra.c (free_insn_recog_data): Update accordingly.
14067 (lra_update_insn_recog_data): Likewise.
14068 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14069 * lra-constraints.c (process_alt_operands): Likewise. Handle
14070 only_alternative as part of the enabled mask.
14071 * target-globals.h (this_target_recog): Declare.
14072 (target_globals): Add a recog field.
14073 (restore_target_globals): Restore this_target_recog.
14074 * target-globals.c: Include recog.h.
14075 (default_target_globals): Initialize recog field.
14076 (save_target_globals): Likewise.
14077 * reginfo.c (reinit_regs): Call recog_init.
14078 * toplev.c (backend_init_target): Likewise.
14079
14080 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14081
14082 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14083 rather than any named insn's code.
14084
14085 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14086
14087 PR libgcc/61152
14088 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14089 * config/arm/arm-cores.def (License): Same.
14090
14091 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14092
14093 * tree.h (decl_comdat_group): Declare.
14094 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14095 * tree.c (decl_comdat_group): Here.
14096
14097 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14098
14099 PR rtl-optimization/61222
14100 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14101 the shift, truncate the PLUS operand to the result mode.
14102
14103 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14104
14105 PR target/61271
14106 * config/i386/i386.c (ix86_rtx_costs)
14107 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14108 Fix condition.
14109
14110 2014-05-26 Martin Jambor <mjambor@suse.cz>
14111
14112 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14113 subreg uses.
14114
14115 2014-05-26 Richard Biener <rguenther@suse.de>
14116
14117 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14118 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14119 Provide specializations.
14120 (wi::int_traits <HOST_WIDE_INT>,
14121 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14122
14123 2014-05-26 Alan Modra <amodra@gmail.com>
14124
14125 PR target/61098
14126 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14127 params and return a bool. Remove dead code. Update comment.
14128 Assert we have a const_int source. Remove bogus code from
14129 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14130 handling of constants > 2G and reg_equal note, from..
14131 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14132 return value. Update comment. If we can, use a new pseudo
14133 for intermediate calculations.
14134 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14135 prototype.
14136 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14137 call to rs6000_emit_set_const in splitter.
14138 (movdi_internal64+2, +3): Likewise.
14139
14140 2014-05-26 Richard Biener <rguenther@suse.de>
14141
14142 * system.h: Define __STDC_FORMAT_MACROS before
14143 including inttypes.h.
14144 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14145 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14146 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14147 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14148 HOST_WIDEST_INT_C): Remove.
14149 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14150 if C99 inttypes.h is not available.
14151 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14152 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14153 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14154 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14155 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14156 (struct output_info): Likewise.
14157 (print_statistics): Adjust.
14158 (dump_bitmap_statistics): Likewise.
14159 * bt-load.c (migrate_btr_defs): Print with PRId64.
14160 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14161 (MAX_SAFE_MULTIPLIER): Adjust.
14162 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14163 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14164 dump_cgraph_node): Likewise.
14165 * final.c (dump_basic_block_info): Likewise.
14166 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14167 * gcov.c (format_gcov): Likewise.
14168 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14169 for calculation.
14170 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14171 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14172 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14173 Use PRId64 for dumping.
14174 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14175 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14176 (add_allocno_hard_regs): Adjust.
14177 * loop-doloop.c (doloop_modify): Print using PRId64.
14178 * loop-iv.c (inverse): Compute in uint64_t.
14179 (determine_max_iter, iv_number_of_iterations): Likewise.
14180 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14181 Print using PRId64.
14182 * lto-streamer-out.c (write_symbol): Use uint64_t.
14183 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14184 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14185 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14186 * modulo-sched.c (const_iteration_count): Use int64_t.
14187 (sms_schedule): Dump using PRId64.
14188 * predict.c (dump_prediction): Likewise.
14189 * pretty-print.h (pp_widest_integer): Remove.
14190 * profile.c (get_working_sets, is_edge_inconsistent,
14191 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14192 * tree-pretty-print.c (pp_double_int): Remove case handling
14193 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14194 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14195 and adjust users.
14196 (pass_optimize_bswap::execute): Remove restriction on hosts.
14197 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14198 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14199 * tree.c (widest_int_cst_value): Remove.
14200 * tree.h (widest_int_cst_value): Likewise.
14201 * value-prof.c (dump_histogram_value): Print using PRId64.
14202 * gengtype.c (main): Also inject int64_t.
14203 * ggc-page.c (struct max_alignment): Use int64_t.
14204 * alloc-pool.c (struct allocation_object_def): Likewise.
14205 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14206 for computation.
14207 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14208 * doc/tm.texi: Regenerated.
14209 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14210 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14211 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14212 mmix_output_register_setting): Use [u]int64_t in prototypes.
14213 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14214 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14215 mmix_output_octa, mmix_output_shifted_value): Adjust.
14216 (mmix_intval): Adjust. Remove unreachable case.
14217 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14218
14219 2014-05-26 Richard Biener <rguenther@suse.de>
14220
14221 * configure.ac: Drop __int64 type check. Insist that we
14222 found uint64_t and int64_t.
14223 * hwint.h (HOST_BITS_PER___INT64): Remove.
14224 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14225 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14226 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14227 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14228 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14229 for dst_q_src_df_rms_cdt.
14230 * configure: Regenerate.
14231 * config.in: Likewise.
14232
14233 2014-05-26 Michael Tautschnig <mt@debian.org>
14234
14235 PR target/61249
14236 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14237 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14238
14239 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14240
14241 PR rtl-optimization/61278
14242 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14243
14244 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14245
14246 PR rtl-optimization/61220
14247 Part of PR rtl-optimization/61225
14248 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14249 insn; skip split_edge for a block with only one successor.
14250
14251 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14252
14253 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14254 for variables.
14255
14256 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14257
14258 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14259 (update_vtable_references): New function.
14260 (function_and_variable_visibility): Rewrite also vtable initializers.
14261 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14262
14263 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14264
14265 * ggc.h (ggc_grow): New function.
14266 * ggc-none.c (ggc_grow): New function.
14267 * ggc-page.c (ggc_grow): Likewise.
14268
14269 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14270
14271 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14272 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14273 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14274 varpool_externally_visible_p, can_replace_by_local_alias,
14275 update_visibility_by_resolution_info, function_and_variable_visibility,
14276 pass_data_ipa_function_and_variable_visibility,
14277 make_pass_ipa_function_and_variable_visibility,
14278 whole_program_function_and_variable_visibility,
14279 pass_data_ipa_whole_program_visibility,
14280 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14281 * cgraph.h (cgraph_local_node_p): Declare.
14282 * ipa-visibility.c: New file.
14283 * Makefile.in (OBJS): Add ipa-visiblity.o
14284
14285 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14286
14287 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14288 that var decl is available.
14289
14290 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14291
14292 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14293 symtab_node pointer.
14294 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14295 (find_decls_types_r): Do not walk COMDAT_GROUP.
14296 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14297 * varasm.c (make_decl_one_only): Use set_comdat_group;
14298 create node if needed.
14299 * ipa-inline-transform.c (save_inline_function_body): Update
14300 way we decl->symtab mapping.
14301 * symtab.c (symtab_hash, hash_node, eq_node
14302 symtab_insert_node_to_hashtable): Remove.
14303 (symtab_register_node): Update.
14304 (symtab_unregister_node): Update.
14305 (symtab_get_node): Reimplement as inline function.
14306 (symtab_add_to_same_comdat_group): Update.
14307 (symtab_dissolve_same_comdat_group_list): Update.
14308 (dump_symtab_base): Update.
14309 (verify_symtab_base): Update.
14310 (symtab_make_decl_local): Update.
14311 (fixup_same_cpp_alias_visibility): Update.
14312 (symtab_nonoverwritable_alias): Update.
14313 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14314 * ipa.c (update_visibility_by_resolution_info): UPdate.
14315 * bb-reorder.c: Include cgraph.h
14316 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14317 with comdat groups.
14318 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14319 * cgraph.c (cgraph_get_create_node): Update.
14320 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14321 and comdat_group_.
14322 (symtab_get_node): Make inline.
14323 (symtab_insert_node_to_hashtable): Remove.
14324 (symtab_can_be_discarded): Update.
14325 (decl_comdat_group): New function.
14326 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14327 Update.
14328 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14329 comdat group name.
14330 (read_comdat_group): New function.
14331 (input_node, input_varpool_node): Use it.
14332 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14333 comdat groups.
14334 * mips.c (mips_start_unique_function): Likewise.
14335 (ix86_code_end): Likewise.
14336 (rs6000_code_end): Likweise.
14337 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14338
14339 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14340
14341 * gengtype-state.c (fatal_reading_state): Bring offline.
14342 * optabs.c (widening_optab_handler): Bring offline.
14343 * optabs.h (widening_optab_handler): Likewise.
14344 * final.c (get_attr_length_1): Likewise.
14345
14346 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14347
14348 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14349
14350 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14351
14352 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14353 (ppc440-compare): Include shift with dot.
14354 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14355 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14356 without dot.
14357 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14358 without dot.
14359 (e6500_sfx2): Include it.
14360 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14361 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14362 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14363 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14364 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14365 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14366 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14367 *lshiftrt_internal1le, *lshiftrt_internal1be,
14368 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14369 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14370 *rotldi3_internal10le, *rotldi3_internal10be,
14371 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14372 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14373 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14374 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14375 define_insns): Use type "shift" in the appropriate alternatives.
14376
14377 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14378
14379 * config/rs6000/rs6000.md (type): Add "logical". Delete
14380 "fast_compare".
14381 (dot): Adjust comment.
14382 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14383 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14384 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14385 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14386 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14387 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14388 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14389 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14390
14391 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14392 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14393 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14394 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14395 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14396 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14397 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14398 * config/rs6000/8540.md (ppc8540_su): Adjust.
14399 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14400 cell-cmp-microcoded): Adjust.
14401 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14402 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14403 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14404 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14405 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14406 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14407 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14408 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14409 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14410 Adjust.
14411 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14412 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14413 Adjust. Adjust comment.
14414 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14415 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14416
14417 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14418
14419 * config/rs6000/rs6000.md (type): Add "add".
14420 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14421 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14422 define_insns): Use it.
14423 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14424
14425 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14426 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14427 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14428 * config/rs6000/601.md (ppc601-integer): Adjust.
14429 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14430 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14431 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14432 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14433 * config/rs6000/8540.md (ppc8540_su): Adjust.
14434 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14435 cell-cmp-microcoded): Adjust.
14436 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14437 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14438 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14439 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14440 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14441 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14442 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14443 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14444 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14445 Adjust.
14446 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14447 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14448 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14449 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14450
14451 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14452
14453 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14454 "delayed_compare", "var_delayed_compare".
14455 (var_shift): New attribute.
14456 (cell_micro): Adjust.
14457 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14458 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14459 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14460 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14461 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14462 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14463 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14464 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14465 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14466 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14467 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14468 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14469 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14470 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14471 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14472 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14473 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14474 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14475 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14476 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14477 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14478 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14479 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14480 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14481 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14482
14483 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14484 * config/rs6000/440.md (ppc440-integer): Adjust.
14485 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14486 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14487 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14488 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14489 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14490 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14491 * config/rs6000/8540.md (ppc8540_su): Adjust.
14492 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14493 cell-cmp-microcoded): Adjust.
14494 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14495 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14496 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14497 e500mc64_delayed): Adjust.
14498 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14499 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14500 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14501 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14502 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14503 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14504 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14505 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14506 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14507 Adjust comment.
14508 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14509 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14510
14511 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14512
14513 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14514 (bits): New mode_attr.
14515 (idiv_ldiv): Delete mode_attr.
14516 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14517 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14518 rs6000_adjust_priority, is_nonpipeline_insn,
14519 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14520
14521 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14522 * config/rs6000/440.md (ppc440-idiv): Adjust.
14523 * config/rs6000/476.md (ppc476-idiv): Adjust.
14524 * config/rs6000/601.md (ppc601-idiv): Adjust.
14525 * config/rs6000/603.md (ppc603-idiv): Adjust.
14526 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14527 ppc620-ldiv): Adjust.
14528 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14529 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14530 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14531 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14532 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14533 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14534 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14535 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14536 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14537 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14538 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14539 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14540 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14541 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14542 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14543 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14544 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14545 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14546
14547 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14548
14549 * config/rs6000/rs6000.md (type): Delete "insert_word",
14550 "insert_dword". Add "insert".
14551 (size): Update comment.
14552 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14553 insn_must_be_first_in_group): Adjust.
14554 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14555 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14556 *insvsi_internal6, insvdi_internal): Adjust.
14557
14558 * config/rs6000/40x.md (ppc403-integer): Adjust.
14559 * config/rs6000/440.md (ppc440-integer): Adjust.
14560 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14561 * config/rs6000/601.md (ppc601-integer): Adjust.
14562 * config/rs6000/603.md (ppc603-integer): Adjust.
14563 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14564 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14565 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14566 * config/rs6000/8540.md (ppc8540_su): Adjust.
14567 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14568 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14569 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14570 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14571 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14572 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14573 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14574 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14575 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14576 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14577 * config/rs6000/power7.md (power7-integer): Adjust.
14578 * config/rs6000/power8.md (power8-1cyc): Adjust.
14579 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14580 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14581
14582 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14583
14584 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14585 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14586 (size): New attribute.
14587 (dot): New attribute.
14588 (cell_micro): Adjust.
14589 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14590 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14591 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14592 umuldi3_highpart): Adjust.
14593 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14594 rs6000_adjust_priority, is_nonpipeline_insn,
14595 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14596
14597 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14598 ppc405-imul3): Adjust.
14599 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14600 * config/rs6000/476.md (ppc476-imul): Adjust.
14601 * config/rs6000/601.md (ppc601-imul): Adjust.
14602 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14603 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14604 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14605 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14606 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14607 Adjust.
14608 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14609 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14610 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14611 cell-imul): Adjust.
14612 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14613 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14614 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14615 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14616 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14617 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14618 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14619 power4-lmul, power4-imul, power4-imul3): Adjust.
14620 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14621 power5-lmul, power5-imul, power5-imul3): Adjust.
14622 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14623 power6-lmul, power6-imul, power6-imul3): Adjust.
14624 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14625 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14626
14627 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14628 rs64a-lmul): Adjust.
14629 * config/rs6000/titan.md (titan_imul): Adjust.
14630
14631 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14632
14633 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14634 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14635 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14636 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14637 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14638 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14639 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14640 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14641 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14642 * config/rs6000/titan.md: Delete nonsensical comment.
14643 (titan_imul): Add type imul3.
14644 (titan_mulhw): Remove type imul3; add type halfmul.
14645
14646 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14647
14648 * config/rs6000/rs6000.md (type): Reorder, reformat.
14649
14650 2014-05-23 Martin Jambor <mjambor@suse.cz>
14651
14652 PR tree-optimization/53787
14653 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14654 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14655 analysis_done, update all uses.
14656 * ipa-prop.c: Include domwalk.h
14657 (param_analysis_info): Removed.
14658 (param_aa_status): New type.
14659 (ipa_bb_info): Likewise.
14660 (func_body_info): Likewise.
14661 (ipa_get_bb_info): New function.
14662 (aa_overwalked): Likewise.
14663 (find_dominating_aa_status): Likewise.
14664 (parm_bb_aa_status_for_bb): Likewise.
14665 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14666 (load_from_unmodified_param): Accept func_body_info as a parameter
14667 instead of parms_ainfo.
14668 (parm_ref_data_preserved_p): Changed to use new param AA info.
14669 (parm_ref_data_pass_through_p): Likewise.
14670 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14671 (compute_complex_assign_jump_func): Changed to use new param AA info.
14672 (compute_complex_ancestor_jump_func): Likewise.
14673 (ipa_compute_jump_functions_for_edge): Likewise.
14674 (ipa_compute_jump_functions): Removed.
14675 (ipa_compute_jump_functions_for_bb): New function.
14676 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14677 declarations down.
14678 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14679 and info, moved variable declarations down.
14680 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14681 node and info.
14682 (ipa_analyze_stmt_uses): Likewise.
14683 (ipa_analyze_params_uses): Removed.
14684 (ipa_analyze_params_uses_in_bb): New function.
14685 (ipa_analyze_controlled_uses): Likewise.
14686 (free_ipa_bb_info): Likewise.
14687 (analysis_dom_walker): New class.
14688 (ipa_analyze_node): Handle node-specific forbidden analysis,
14689 initialize and free func_body_info, use dominator walker.
14690 (ipcp_modif_dom_walker): New class.
14691 (ipcp_transform_function): Create and free func_body_info, use
14692 ipcp_modif_dom_walker, moved a lot of functionality there.
14693
14694 2014-05-23 Marek Polacek <polacek@redhat.com>
14695 Jakub Jelinek <jakub@redhat.com>
14696
14697 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14698 * gcc.c (sanitize_spec_function): Likewise.
14699 * convert.c (convert_to_integer): Include "ubsan.h". Add
14700 floating-point to integer instrumentation.
14701 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14702 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14703 SANITIZE_NONDEFAULT.
14704 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14705 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14706 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14707 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14708 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14709 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14710 float/double/long double.
14711 (ubsan_instrument_float_cast): New function.
14712 * ubsan.h (ubsan_instrument_float_cast): Declare.
14713
14714 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14715
14716 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14717 predicate.
14718 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14719 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14720 Adjust for tailcalling through registers.
14721 * config/aarch64/aarch64.h (enum reg_class): New caller save
14722 register class.
14723 (REG_CLASS_NAMES): Likewise.
14724 (REG_CLASS_CONTENTS): Likewise.
14725 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14726 Allow tailcalling without decls.
14727
14728 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14729
14730 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14731 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14732
14733 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14734 gsi, and variables v_* to v*.
14735
14736 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14737
14738 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14739
14740 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14741
14742 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14743 * omp-low.c: Update accordingly.
14744
14745 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14746 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14747 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14748 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14749 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14750 GF_OMP_TARGET_KIND_UPDATE.
14751
14752 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14753 Explicitly enumerate the expected region types.
14754
14755 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14756
14757 PR other/56955
14758 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14759 documentation; the old documentation didn't clearly state the
14760 constraints on the contents of the pointed-to storage.
14761
14762 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14763
14764 Fix bootstrap error on ia64
14765 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14766 Return default value.
14767
14768 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14769
14770 PR tree-optimization/54733
14771 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14772 (CMPNOP): Define.
14773 (find_bswap_or_nop_load): New.
14774 (find_bswap_1): Renamed to ...
14775 (find_bswap_or_nop_1): This. Also add support for memory source.
14776 (find_bswap): Renamed to ...
14777 (find_bswap_or_nop): This. Also add support for memory source and
14778 detection of bitwise operations equivalent to load in target
14779 endianness.
14780 (execute_optimize_bswap): Likewise. Also move its leading comment back
14781 in place and split statement transformation into ...
14782 (bswap_replace): This.
14783
14784 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14785
14786 PR rtl-optimization/61215
14787 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14788 simplify_gen_subreg until final substitution.
14789
14790 2014-05-23 Alan Modra <amodra@gmail.com>
14791
14792 PR target/61231
14793 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14794 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14795 Use "Y" constraint rather than "m".
14796
14797 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14798
14799 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14800 define.
14801 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14802 New function declaration.
14803 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14804 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14805 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14806 (aarch64_init_builtins) : Initialize builtins
14807 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14808 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14809 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14810 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14811 and __builtins_aarch64_set_fpsr.
14812 (aarch64_atomic_assign_expand_fenv): New function.
14813 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14814 (get_fpcr) : Likewise.
14815 (set_fpsr) : Likewise.
14816 (get_fpsr) : Likewise.
14817 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14818 and UNSPECV_SET_FPSR.
14819 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14820 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14821 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14822
14823 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14824
14825 PR rtl-optimization/60969
14826 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14827 constraints. Set up mem cost for NO_REGS case.
14828
14829 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14830
14831 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14832
14833 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14834
14835 * config/darwin.c: Include "lto-section-names.h".
14836 (LTO_SEGMENT_NAME): Don't define.
14837 * config/i386/winnt.c: Include "lto-section-names.h".
14838 * lto-streamer.c: Include "lto-section-names.h".
14839 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14840 * lto-wrapper.c: Include "lto-section-names.h".
14841 (LTO_SECTION_NAME_PREFIX): Don't define.
14842 * lto-section-names.h: New file.
14843 * cgraphunit.c: Include "lto-section-names.h".
14844
14845 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14846
14847 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14848
14849 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14850
14851 PR target/61208
14852 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14853
14854 2014-05-22 Nick Clifton <nickc@redhat.com>
14855
14856 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14857
14858 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14859
14860 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14861 -> (T)A transformation to integer types.
14862
14863 2014-05-22 Teresa Johnson <tejohnson@google.com>
14864
14865 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14866 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14867 (gcov_rewrite): Use gcov_nonruntime_assert.
14868 (gcov_open): Ditto.
14869 (gcov_write_words): Ditto.
14870 (gcov_write_length): Ditto.
14871 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14872 gcc_assert from IN_LIBGCOV code.
14873 (gcov_read_summary): Use gcov_error to flag profile corruption.
14874 (gcov_sync): Use gcov_nonruntime_assert.
14875 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14876 (gcov_histo_index): Use gcov_nonruntime_assert.
14877 (static void gcov_histogram_merge): Ditto.
14878 (compute_working_sets): Ditto.
14879 * gcov-io.h (gcov_nonruntime_assert): Define.
14880 (gcov_error): Define for !IN_LIBGCOV
14881
14882 2014-05-22 Richard Biener <rguenther@suse.de>
14883
14884 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14885 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14886 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14887 and deallocation site.
14888 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14889 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14890 passing through the incoming points-to set.
14891 (handle_lhs_call): Use flags argument instead of recomputing it.
14892 (find_func_aliases_for_call): Call handle_lhs_call with proper
14893 call return flags.
14894
14895 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14896
14897 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14898 all padding bits in REAL_VALUE_TYPE are cleared.
14899
14900 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14901
14902 Cleanup and improve multipass_dfa_lookahead_guard
14903 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14904 (core2i7_first_cycle_multipass_begin,)
14905 (core2i7_first_cycle_multipass_issue,)
14906 (core2i7_first_cycle_multipass_backtrack): Update signature.
14907 * config/ia64/ia64.c
14908 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14909 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14910 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14911 hook definition.
14912 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14913 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14914 values.
14915 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14916 return values.
14917 * doc/tm.texi: Regenerate.
14918 * doc/tm.texi.in
14919 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14920 * haifa-sched.c (ready_try): Make signed to allow negative values.
14921 (rebug_ready_list_1): Update.
14922 (choose_ready): Simplify.
14923 (sched_extend_ready_list): Update.
14924
14925 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14926
14927 Remove IA64 speculation tweaking flags
14928 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14929 speculation tuning flags.
14930 (msched-prefer-non-data-spec-insns,)
14931 (msched-prefer-non-control-spec-insns): Obsolete options.
14932 * haifa-sched.c (choose_ready): Remove handling of
14933 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14934 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14935 and PREFER_NON_DATA_SPEC.
14936 * sel-sched.c (process_spec_exprs): Remove handling of
14937 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14938
14939 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14940
14941 Improve scheduling debug output
14942 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14943 (advance_one_cycle): Update.
14944 (schedule_insn, queue_to_ready): Add debug printouts.
14945 (debug_ready_list_1): New static function.
14946 (debug_ready_list): Update.
14947 (max_issue): Add debug printouts.
14948 (dump_insn_stream): New static function.
14949 (schedule_block): Use it. Also better indent printouts.
14950
14951 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14952
14953 Fix sched_insn debug counter
14954 * haifa-sched.c (schedule_insn): Update.
14955 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14956 (save_backtrack_point, restore_backtrack_point): Update.
14957 (first_nonscheduled_insn): New static function.
14958 (queue_to_ready, choose_ready): Use it.
14959 (schedule_block): Init nonscheduled_insns_begin.
14960 (sched_emit_insn): Update.
14961
14962
14963 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14964
14965 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14966 to GENERAL_REGS.
14967 (aarch64_secondary_reload) : LikeWise.
14968 (aarch64_class_max_nregs) : Remove CORE_REGS.
14969 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14970 (REG_CLASS_NAMES) : Likewise.
14971 (REG_CLASS_CONTENTS) : LikeWise.
14972 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14973
14974 2014-05-21 Guozhi Wei <carrot@google.com>
14975
14976 PR target/61202
14977 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14978 constraint.
14979 (vqdmulhq_n_s16): Likewise.
14980
14981 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14982
14983 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14984
14985 2014-05-21 Marek Polacek <polacek@redhat.com>
14986
14987 PR sanitizer/61272
14988 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14989
14990 2014-05-21 Martin Jambor <mjambor@suse.cz>
14991
14992 * doc/invoke.texi (Optimize Options): Document parameters
14993 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14994 ipa-cp-array-index-hint-bonus.
14995
14996 2014-05-21 Mark Wielaard <mjw@redhat.com>
14997
14998 PR debug/16063
14999 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15000 version >= 3 or not strict DWARF.
15001 * langhooks.h (struct lang_hooks_for_types): Add
15002 enum_underlying_base_type.
15003 * langhooks.c (lhd_enum_underlying_base_type): New function.
15004 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15005 enum_underlying_base_type.
15006 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15007 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15008 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15009
15010 2014-05-21 Richard Biener <rguenther@suse.de>
15011
15012 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15013
15014 2014-05-21 John Marino <gnugcc@marino.st>
15015
15016 * config.gcc (*-*-dragonfly*): New target.
15017 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15018 * configure: Regenerate.
15019 * config/dragonfly-stdint.h: New.
15020 * config/dragonfly.h: New.
15021 * config/dragonfly.opt: New.
15022 * config/i386/dragonfly.h: New.
15023 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15024
15025 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15026
15027 * tree.def (VOID_CST): New.
15028 * tree-core.h (TI_VOID): New.
15029 * tree.h (void_node): New.
15030 * tree.c (tree_node_structure_for_code, tree_code_size)
15031 (iterative_hash_expr): Handle VOID_CST.
15032 (build_common_tree_nodes): Initialize void_node.
15033
15034 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15035
15036 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15037 functions.
15038 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15039
15040 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15041 more places.
15042
15043 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15044 flag_reorder_blocks_and_partition.
15045 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15046
15047 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15048
15049 PR target/54236
15050 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15051 constraints.
15052 (*addc_r_t): Add new insn_and_split.
15053
15054 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15055
15056 PR middle-end/61252
15057 * omp-low.c (handle_simd_reference): New function.
15058 (lower_rec_input_clauses): Use it. Defer adding reference
15059 initialization even for reduction without placeholder if in simd,
15060 handle it properly later on.
15061
15062 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15063
15064 PR tree-optimization/60899
15065 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15066 assume all static symbols will have definition wile parsing and
15067 check the do have definition later in compilation; check that
15068 variable referring symbol will be output before concluding that
15069 reference is safe; be conservative for referring local statics;
15070 be more precise about when comdat is output in other partition.
15071
15072 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15073
15074 PR bootstrap/60984
15075 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15076 parameter.
15077 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15078 (ipa_inline): Loop inline_to_all_callers until no more aliases
15079 are removed.
15080
15081 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15082
15083 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15084 set writeonly flag only for vars actually written to.
15085
15086 2014-05-20 Dehao Chen <dehao@google.com>
15087
15088 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15089 and callee count to get clone count.
15090 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15091 count in copy_body.
15092
15093 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15094
15095 PR rtl-optimization/61243
15096 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15097
15098 2014-05-20 Xinliang David Li <davidxl@google.com>
15099
15100 * cgraphunit.c (walk_polymorphic_call_targets): Add
15101 dbgcnt and fopt-info support.
15102 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15103 * ipa-devirt.c (ipa_devirt): Ditto.
15104 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15105 * ipa.c (walk_polymorphic_call_targets): Ditto.
15106 * gimple-fold.c (fold_gimple_assign): Ditto.
15107 (gimple_fold_call): Ditto.
15108 * dbgcnt.def: New counter.
15109
15110 2014-05-20 DJ Delorie <dj@redhat.com>
15111
15112 * config/msp430/msp430.md (split): Don't allow subregs when
15113 splitting SImode adds.
15114 (andneghi): Fix subtraction logic.
15115 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15116
15117 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15118
15119 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15120 symbols.
15121 * except.c (switch_to_exception_section, resolve_unique_section,
15122 get_named_text_section, default_function_rodata_section,
15123 align_variable, get_block_for_decl, default_section_type_flags):
15124 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15125 * symtab.c (symtab_add_to_same_comdat_group,
15126 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15127 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15128 Likewise.
15129 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15130 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15131 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15132 (c6x_function_in_section_p): Likewise.
15133 * config/darwin.c (machopic_select_section): Likewise.
15134 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15135 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15136 * config/mep/mep.c (mep_select_section): LIkewise.
15137 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15138
15139 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15140
15141 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15142 EH region of calls to pure functions that can throw an exception.
15143 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15144 (copy_reference_ops_from_call): Also copy the EH region of the call if
15145 it can throw an exception.
15146
15147 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15148
15149 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15150 nested VEC_SELECTs that are inverses of each other.
15151
15152 2014-05-20 Richard Biener <rguenther@suse.de>
15153
15154 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15155 (extract_and_process_scc_for_name): not here.
15156 (cond_dom_walker::before_dom_children): Only process
15157 stmts that end the BB in interesting ways.
15158 (run_scc_vn): Mark param uses as visited.
15159
15160 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15161
15162 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15163 arm_restrict_it.
15164
15165 2014-05-20 Nick Clifton <nickc@redhat.com>
15166
15167 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15168 (msp430_gimplify_va_arg_expr): New function.
15169 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15170
15171 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15172 operand 0 in order to prevent confusion about the number of
15173 registers involved.
15174
15175 2014-05-20 Richard Biener <rguenther@suse.de>
15176
15177 PR tree-optimization/61221
15178 * tree-ssa-pre.c (el_to_update): Remove.
15179 (eliminate_dom_walker::before_dom_children): Handle released
15180 VDEFs by value-numbering them to the associated VUSE. Update
15181 stmt immediately for substituted call address.
15182 (eliminate): Remove delayed stmt updating code.
15183 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15184 possibly late re-numbered vuses.
15185 (vn_reference_lookup_2): Adjust.
15186 (vn_reference_lookup_pieces): Likewise.
15187 (vn_reference_lookup): Likewise.
15188
15189 2014-05-20 Richard Biener <rguenther@suse.de>
15190
15191 * config.gcc: Remove need_64bit_hwint.
15192 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15193 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15194 it to be true.
15195 * config.in: Regenerate.
15196 * configure: Likewise.
15197
15198 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15199
15200 * doc/extend.texi: Create Label Attributes section,
15201 move all label attributes into it and reference it.
15202
15203 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15204
15205 * arm.c (thumb1_reorg): When scanning backwards skip anything
15206 that's not a proper insn.
15207
15208 2014-05-19 Richard Biener <rguenther@suse.de>
15209
15210 PR tree-optimization/61221
15211 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15212 Do nothing for unreachable blocks.
15213 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15214 Improve unreachability detection.
15215
15216 2014-05-19 Richard Biener <rguenther@suse.de>
15217
15218 PR tree-optimization/61209
15219 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15220
15221 2014-05-19 Nick Clifton <nickc@redhat.com>
15222
15223 * except.c (init_eh): Fix computation of builtin setjmp buffer
15224 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15225
15226 2014-05-19 Richard Biener <rguenther@suse.de>
15227
15228 PR tree-optimization/61184
15229 * tree-vrp.c (is_negative_overflow_infinity): Use
15230 TREE_OVERFLOW_P and do that check first.
15231 (is_positive_overflow_infinity): Likewise.
15232 (is_overflow_infinity): Likewise.
15233 (vrp_operand_equal_p): Properly treat operands with
15234 differing overflow as not equal.
15235
15236 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15237
15238 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15239 shift simplification where it was intended.
15240
15241 2014-05-19 Christian Bruel <christian.bruel@st.com>
15242
15243 PR target/61195
15244 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15245
15246 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15247
15248 PR target/61084
15249 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15250 than wide_int.
15251
15252 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15253
15254 * reg-notes.def (CROSSING_JUMP): Likewise.
15255 * rtl.h (rtx_def): Update comment for jump flag.
15256 (CROSSING_JUMP_P): Define.
15257 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15258 of a REG_CROSSING_JUMP note.
15259 * cfghooks.c (tidy_fallthru_edges): Likewise.
15260 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15261 * emit-rtl.c (try_split): Likewise.
15262 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15263 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15264 * jump.c (redirect_jump_2): Likewise.
15265 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15266 (relax_delay_slots): Likewise.
15267 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15268 (bbit_di): Likewise.
15269 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15270 * config/sh/sh.md (jump_compact): Likewise.
15271 * bb-reorder.c (rotate_loop): Likewise.
15272 (pass_duplicate_computed_gotos::execute): Likewise.
15273 (add_reg_crossing_jump_notes): Rename to...
15274 (update_crossing_jump_flags): ...this.
15275 (pass_partition_blocks::execute): Update accordingly.
15276
15277 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15278
15279 * tree.h: Remove extraneous template <>.
15280
15281 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15282
15283 * ipa.c (symtab_remove_unreachable_nodes): Remove
15284 symbol from comdat group if its body was eliminated.
15285 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15286 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15287 (symtab_unregister_node): ... this one.
15288 (verify_symtab_base): More strict checking of comdats.
15289 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15290
15291 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15292
15293 * tree-pass.h (make_pass_ipa_comdats): New pass.
15294 * timevar.def (TV_IPA_COMDATS): New timevar.
15295 * passes.def (pass_ipa_comdats): Add.
15296 * Makefile.in (OBJS): Add ipa-comdats.o
15297 * ipa-comdats.c: New file.
15298
15299 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15300
15301 * ipa.c (update_visibility_by_resolution_info): New function.
15302 (function_and_variable_visibility): Use it.
15303
15304 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15305
15306 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15307 New functions.
15308 (FOR_EACH_DEFINED_SYMBOL): New macro.
15309 (varpool_first_static_initializer, varpool_next_static_initializer,
15310 varpool_first_defined_variable, varpool_next_defined_variable):
15311 Fix comments.
15312 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15313
15314 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15315
15316 * ggc-page.c (ggc_handle_finalizers): Add comment.
15317
15318 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15319
15320 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15321 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15322 (ggc_internal_cleared_alloc): Likewise.
15323 * ggc-page.c (finalizer): New class.
15324 (vec_finalizer): Likewise.
15325 (globals::finalizers): New member.
15326 (globals::vec_finalizers): Likewise.
15327 (ggc_internal_alloc): Record the finalizer if any for the block being
15328 allocated.
15329 (ggc_handle_finalizers): New function.
15330 (ggc_collect): Call ggc_handle_finalizers.
15331 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15332 finalizer.
15333 (ggc_internal_cleared_alloc): Likewise.
15334 (finalize): New function.
15335 (need_finalization_p): Likewise.
15336 (ggc_alloc): Install the type's destructor as the finalizer if it
15337 might do something.
15338 (ggc_cleared_alloc): Likewise.
15339 (ggc_vec_alloc): Likewise.
15340 (ggc_cleared_vec_alloc): Likewise.
15341
15342 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15343
15344 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15345
15346 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15347
15348 * alias.c (record_alias_subset): Adjust.
15349 * bitmap.c (bitmap_element_allocate): Likewise.
15350 (bitmap_gc_alloc_stat): Likewise.
15351 * cfg.c (init_flow): Likewise.
15352 (alloc_block): Likewise.
15353 (unchecked_make_edge): Likewise.
15354 * cfgloop.c (alloc_loop): Likewise.
15355 (flow_loops_find): Likewise.
15356 (rescan_loop_exit): Likewise.
15357 * cfgrtl.c (init_rtl_bb_info): Likewise.
15358 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15359 (cgraph_allocate_node): Likewise.
15360 (cgraph_create_edge_1): Likewise.
15361 (cgraph_allocate_init_indirect_info): Likewise.
15362 * cgraphclones.c (cgraph_clone_edge): Likewise.
15363 * cgraphunit.c (add_asm_node): Likewise.
15364 (init_lowered_empty_function): Likewise.
15365 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15366 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15367 (alpha_use_linkage): Likewise.
15368 * config/arc/arc.c (arc_init_machine_status): Likewise.
15369 * config/arm/arm.c (arm_init_machine_status): Likewise.
15370 * config/avr/avr.c (avr_init_machine_status): Likewise.
15371 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15372 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15373 * config/cris/cris.c (cris_init_machine_status): Likewise.
15374 * config/darwin.c (machopic_indirection_name): Likewise.
15375 (darwin_build_constant_cfstring): Likewise.
15376 (darwin_enter_string_into_cfstring_table): Likewise.
15377 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15378 * config/frv/frv.c (frv_init_machine_status): Likewise.
15379 * config/i386/i386.c (get_dllimport_decl): Likewise.
15380 (ix86_init_machine_status): Likewise.
15381 (assign_386_stack_local): Likewise.
15382 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15383 (i386_pe_maybe_record_exported_symbol): Likewise.
15384 (i386_pe_record_stub): Likewise.
15385 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15386 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15387 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15388 (m32c_note_pragma_address): Likewise.
15389 * config/mep/mep.c (mep_init_machine_status): Likewise.
15390 (mep_note_pragma_flag): Likewise.
15391 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15392 (mips16_local_alias): Likewise.
15393 (mips_init_machine_status): Likewise.
15394 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15395 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15396 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15397 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15398 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15399 * config/pa/pa.c (pa_init_machine_status): Likewise.
15400 (pa_get_deferred_plabel): Likewise.
15401 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15402 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15403 (rs6000_init_machine_status): Likewise.
15404 (output_toc): Likewise.
15405 * config/s390/s390.c (s390_init_machine_status): Likewise.
15406 * config/score/score.c (score_output_external): Likewise.
15407 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15408 * config/spu/spu.c (spu_init_machine_status): Likewise.
15409 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15410 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15411 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15412 * coverage.c (coverage_end_function): Likewise.
15413 * dbxout.c (dbxout_init): Likewise.
15414 * doc/gty.texi: Don't mention variable_size attribute.
15415 * dwarf2cfi.c (new_cfi): Adjust.
15416 (new_cfi_row): Likewise.
15417 (copy_cfi_row): Likewise.
15418 (create_cie_data): Likewise.
15419 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15420 (new_loc_descr): Likewise.
15421 (find_AT_string_in_table): Likewise.
15422 (add_addr_table_entry): Likewise.
15423 (new_die): Likewise.
15424 (add_var_loc_to_decl): Likewise.
15425 (clone_die): Likewise.
15426 (clone_as_declaration): Likewise.
15427 (break_out_comdat_types): Likewise.
15428 (new_loc_list): Likewise.
15429 (add_loc_descr_to_each): Likewise.
15430 (add_location_or_const_value_attribute): Likewise.
15431 (add_linkage_name): Likewise.
15432 (lookup_filename): Likewise.
15433 (dwarf2out_var_location): Likewise.
15434 (new_line_info_table): Likewise.
15435 (dwarf2out_init): Likewise.
15436 (mem_loc_descriptor): Likewise.
15437 (loc_descriptor): Likewise.
15438 (add_const_value_attribute): Likewise.
15439 (tree_add_const_value_attribute): Likewise.
15440 (comp_dir_string): Likewise.
15441 (dwarf2out_vms_debug_main_pointer): Likewise.
15442 (string_cst_pool_decl): Likewise.
15443 * emit-rtl.c (set_mem_attrs): Likewise.
15444 (get_reg_attrs): Likewise.
15445 (start_sequence): Likewise.
15446 (init_emit): Likewise.
15447 (init_emit_regs): Likewise.
15448 * except.c (init_eh_for_function): Likewise.
15449 (gen_eh_region): Likewise.
15450 (gen_eh_region_catch): Likewise.
15451 (gen_eh_landing_pad): Likewise.
15452 (add_call_site): Likewise.
15453 * function.c (add_frame_space): Likewise.
15454 (insert_temp_slot_address): Likewise.
15455 (assign_stack_temp_for_type): Likewise.
15456 (get_hard_reg_initial_val): Likewise.
15457 (allocate_struct_function): Likewise.
15458 (prepare_function_start): Likewise.
15459 (types_used_by_var_decl_insert): Likewise.
15460 * gengtype.c (variable_size_p): Remove function.
15461 (enum alloc_quantity): Remove enum.
15462 (write_typed_alloc_def): Remove function.
15463 (write_typed_struct_alloc_def): Likewise.
15464 (write_typed_typedef_alloc_def): Likewise.
15465 (write_typed_alloc_defns): Likewise.
15466 (main): Adjust.
15467 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15468 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15469 * ggc.h (ggc_alloc): new function.
15470 (ggc_cleared_alloc): Likewise.
15471 (ggc_vec_alloc): Template on type of vector element, and remove
15472 element size argument.
15473 (ggc_cleared_vec_alloc): Likewise.
15474 * gimple.c (gimple_build_omp_for): Adjust.
15475 (gimple_copy): Likewise.
15476 * ipa-cp.c (get_replacement_map): Likewise.
15477 (find_aggregate_values_for_callers_subset): Likewise.
15478 (known_aggs_to_agg_replacement_list): Likewise.
15479 * ipa-devirt.c (get_odr_type): Likewise.
15480 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15481 (read_agg_replacement_chain): Likewise.
15482 * loop-iv.c (get_simple_loop_desc): Likewise.
15483 * lto-cgraph.c (input_node_opt_summary): Likewise.
15484 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15485 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15486 (input_eh_region): Likewise.
15487 (input_eh_lp): Likewise.
15488 (input_cfg): Likewise.
15489 * optabs.c (set_optab_libfunc): Likewise.
15490 (init_tree_optimization_optabs): Likewise.
15491 (set_conv_libfunc): Likewise.
15492 * passes.c (do_per_function_toporder): Likewise.
15493 * rtl.h: Don't use variable_size gty attribute.
15494 * sese.c (if_region_set_false_region): Adjust.
15495 * stringpool.c (gt_pch_save_stringpool): Likewise.
15496 * target-globals.c (save_target_globals): Likewise.
15497 * toplev.c (general_init): Likewise.
15498 * trans-mem.c (record_tm_replacement): Likewise.
15499 (split_bb_make_tm_edge): Likewise.
15500 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15501 * tree-data-ref.h (lambda_vector_new): Likewise.
15502 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15503 * tree-iterator.c (tsi_link_before): Likewise.
15504 (tsi_link_after): Likewise.
15505 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15506 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15507 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15508 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15509 * tree-ssa.c (init_tree_ssa): Adjust.
15510 * tree-ssanames.c (set_range_info): Likewise.
15511 (get_ptr_info): Likewise.
15512 (duplicate_ssa_name_ptr_info): Likewise.
15513 (duplicate_ssa_name_range_info): Likewise.
15514 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15515 (unpack_ts_fixed_cst_value_fields): Likewise.
15516 * tree.c (build_fixed): Likewise.
15517 (build_real): Likewise.
15518 (build_string): Likewise.
15519 (decl_priority_info): Likewise.
15520 (decl_debug_expr_insert): Likewise.
15521 (decl_value_expr_insert): Likewise.
15522 (decl_debug_args_insert): Likewise.
15523 (type_hash_add): Likewise.
15524 (build_omp_clause): Likewise.
15525 * ubsan.c (decl_for_type_insert): Likewise.
15526 * varasm.c (get_unnamed_section): Likewise.
15527 (get_noswitch_section): Likewise.
15528 (get_section): Likewise.
15529 (get_block_for_section): Likewise.
15530 (create_block_symbol): Likewise.
15531 (build_constant_desc): Likewise.
15532 (create_constant_pool): Likewise.
15533 (force_const_mem): Likewise.
15534 (record_tm_clone_pair): Likewise.
15535 * varpool.c (varpool_create_empty_node): Likewise.
15536
15537 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15538
15539 * dwarf2out.c (tree_add_const_value_attribute): Call
15540 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15541 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15542 instead of ggc_internal_<x>alloc_stat.
15543 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15544 (ggc_realloc): Likewise.
15545 * ggc-none.c (ggc_internal_alloc): Likewise.
15546 (ggc_internal_cleared_alloc): Likewise.
15547 * ggc-page.c: Likewise.
15548 * ggc.h (ggc_internal_alloc_stat): Likewise.
15549 (ggc_internal_alloc): Remove macro.
15550 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15551 (ggc_internal_cleared_alloc): Remove macro.
15552 (GGC_RESIZEVEC): Adjust.
15553 (ggc_resizevar): Remove macro.
15554 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15555 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15556 (ggc_internal_vec_cleared_alloc): Remove macro.
15557 (ggc_alloc_atomic_stat): Drop _stat suffix.
15558 (ggc_alloc_atomic): Remove macro.
15559 (ggc_alloc_cleared_atomic): Remove macro.
15560 (ggc_alloc_string_stat): Drop _stat suffix.
15561 (ggc_alloc_string): Remove macro.
15562 (ggc_alloc_rtx_def_stat): Adjust.
15563 (ggc_alloc_tree_node_stat): Likewise.
15564 (ggc_alloc_cleared_tree_node_stat): Likewise.
15565 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15566 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15567 * gimple.c (gimple_build_omp_for): Likewise.
15568 (gimple_copy): Likewise.
15569 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15570 * toplev.c (realloc_for_line_map): Adjust.
15571 * tree-data-ref.h (lambda_vector_new): Likewise.
15572 * tree-phinodes.c (allocate_phi_node): Likewise.
15573 * tree.c (grow_tree_vec_stat): Likewise.
15574 * vec.h (va_gc::reserve): Adjust.
15575
15576 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15577
15578 * config/microblaze/microblaze.c (break_handler): New Declaration.
15579 (microblaze_break_function_p,microblaze_is_break_handler): New.
15580 (compute_frame_size): Use microblaze_break_function_p.
15581 Add the test of break_handler.
15582 (microblaze_function_prologue) : Add the test of variable
15583 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15584 (microblaze_function_epilogue) : Add the test of break_handler.
15585 (microblaze_globalize_label) : Add the test of break_handler.
15586 Check the name by BREAK_HANDLER_NAME.
15587
15588 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15589
15590 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15591 microblaze_is_break_handler test.
15592 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15593 Use SYMBOL_REF_DECL.
15594
15595 * config/microblaze/microblaze-protos.h
15596 (microblaze_break_function_p,microblaze_is_break_handler):
15597 New Declaration.
15598
15599 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15600 new MicroBlaze break_handler functions.
15601
15602 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15603
15604 * doc/extend.texi (Size of an asm): Move node text according
15605 to its @menu entry position.
15606
15607 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15608
15609 PR tree-optimization/61140
15610 PR tree-optimization/61150
15611 PR tree-optimization/61197
15612 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15613
15614 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15615
15616 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15617
15618 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15619
15620 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15621 __SIZEOF_INT128__ is defined.
15622
15623 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15624
15625 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15626 (rs6000_delegitimize_address): Use it.
15627
15628 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15629
15630 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15631 inplace argument. Store the new address in the original MEM when true.
15632 * emit-rtl.c (change_address_1): Likewise.
15633 (adjust_address_1, adjust_automodify_address_1, offset_address):
15634 Update accordingly.
15635 * rtl.h (plus_constant): Add an inplace argument.
15636 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15637 when true. Avoid generating (plus X (const_int 0)).
15638 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15639 in-place. Pass true to plus_constant.
15640 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15641
15642 2014-05-16 Dehao Chen <dehao@google.com>
15643
15644 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15645
15646 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15647
15648 PR target/54089
15649 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15650 patterns.
15651 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15652
15653 2014-05-16 Dehao Chen <dehao@google.com>
15654
15655 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15656 optimize_function_for_size_p.
15657 * regs.h (REG_FREQ_FROM_BB): Likewise.
15658
15659 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15660
15661 PR target/51244
15662 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15663 negt_reg_operand cases.
15664 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15665 predicate.
15666 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15667
15668 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15669
15670 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15671 target variants.
15672
15673 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15674
15675 Revert:
15676 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15677
15678 * tree-cfg.c (dump_function_to_file): Dump the return type of
15679 functions, in a line to itself before the function body, mimicking
15680 the layout of a C function.
15681
15682 2014-05-16 Dehao Chen <dehao@google.com>
15683
15684 * cfghooks.c (make_forwarder_block): Use direct computation to
15685 get fall-through edge's count and frequency.
15686
15687 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15688
15689 * config/arc/arc.c (arc_init): Fix typo in error message.
15690 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15691 (split_stack_prologue_scratch_regno): Likewise.
15692 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15693 word from error message.
15694
15695 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15696
15697 * ira-costs.c: Fix typo in comment.
15698
15699 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15700
15701 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15702
15703 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15704
15705 * varpool.c (dump_varpool_node): Dump write-only flag.
15706 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15707 write-only flag.
15708 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15709 write-only variables.
15710 * ipa.c (process_references): New function.
15711 (set_readonly_bit): New function.
15712 (set_writeonly_bit): New function.
15713 (clear_addressable_bit): New function.
15714 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15715 fix handling of aliases.
15716 * cgraph.h (struct varpool_node): Add writeonly flag.
15717
15718 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15719
15720 PR rtl-optimization/60969
15721 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15722 Calculate costs for this case.
15723
15724 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15725
15726 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15727 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15728
15729 2014-05-16 Richard Biener <rguenther@suse.de>
15730
15731 PR tree-optimization/61194
15732 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15733 bool patterns ending in a COND_EXPR.
15734
15735 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15736
15737 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15738
15739 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15740
15741 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15742 where we were unable to cost an RTX.
15743
15744 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15745
15746 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15747 HIGH, LO_SUM.
15748
15749 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15750 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15751
15752 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
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 FMA,
15758 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
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): Cost comparison
15764 operators.
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_costs): Improve costs for
15770 DIV/MOD.
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_arith_op_extract_p): New.
15776 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
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): Improve costs for
15782 rotates and shifts.
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): Cost
15788 ZERO_EXTEND and SIGN_EXTEND better.
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): Improve cost for
15794 logical operations.
15795
15796 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15797 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15798
15799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15800 costs when costing loads and stores to memory.
15801
15802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15803 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15804
15805 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15806 for SET RTX.
15807
15808 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15809
15810 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15811
15812 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15813 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15814
15815 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15816 to...
15817 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15818 well formed.
15819 (aarch64_rtx_mult_cost): New.
15820 (aarch64_rtx_costs): Use it, refactor as appropriate.
15821
15822 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15823 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15824
15825 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15826 emit instructions, return number of instructions which would
15827 be emitted.
15828 (aarch64_add_constant): Update call to aarch64_build_constant.
15829 (aarch64_output_mi_thunk): Likewise.
15830 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15831 a CONST_DOUBLE.
15832
15833 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15834
15835 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15836 (TARGET_RTX_COSTS): Call it.
15837
15838 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15839
15840 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15841 (cortexa57_vector_cost): Likewise.
15842 (cortexa57_tunings): Use them.
15843
15844 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15845
15846 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15847 (cpu_addrcost_table): Use it.
15848 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15849 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15850 move it.
15851
15852 2014-05-16 Richard Biener <rguenther@suse.de>
15853
15854 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15855 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15856 (visit_phi): Ignore edges marked as not executable.
15857 (class cond_dom_walker): New.
15858 (cond_dom_walker::before_dom_children): Value-number
15859 control statements and mark successor edges as not
15860 executable if possible.
15861 (run_scc_vn): First walk all control statements in
15862 dominator order, marking edges as not executable.
15863 * tree-inline.c (copy_edges_for_bb): Be not confused
15864 about random edge flags.
15865
15866 2014-05-16 Richard Biener <rguenther@suse.de>
15867
15868 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15869
15870 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15871
15872 PR target/61193
15873 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15874 (__TM_simple_begin): Use it.
15875 (__TM_begin): Likewise.
15876
15877 2014-05-15 Martin Jambor <mjambor@suse.cz>
15878
15879 PR ipa/61085
15880 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15881 type_preserved flag when the indirect edge is polymorphic.
15882
15883 2014-05-15 Martin Jambor <mjambor@suse.cz>
15884
15885 PR tree-optimization/61090
15886 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15887 build_ref_for_model.
15888
15889 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15890
15891 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15892 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15893
15894 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15895
15896 PR tree-optimization/61158
15897 * fold-const.c (fold_binary_loc): If X is zero-extended and
15898 shiftc >= prec, make sure zerobits is all ones instead of
15899 invoking undefined behavior.
15900
15901 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15902
15903 * regcprop.h: New file.
15904 * regcprop.c (skip_debug_insn_p): New decl.
15905 (replace_oldest_value_reg): Check skip_debug_insn_p.
15906 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15907 * shrink-wrap.c: Include regcprop.h.
15908 (prepare_shrink_wrap): Call
15909 copyprop_hardreg_forward_bb_without_debug_insn.
15910
15911 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15912
15913 * shrink-wrap.h: Update comment.
15914 * shrink-wrap.c: Update comment.
15915 (next_block_for_reg): Rename to live_edge_for_reg.
15916 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15917 (move_insn_for_shrink_wrap): Split live_edge.
15918 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15919
15920 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15921
15922 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15923 Delete.
15924 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15925 * config/sparc/sparc.md (fptype_ut699): New attribute.
15926 (in_branch_delay): Return false if -mfix-ut699 is specified and
15927 fptype_ut699 is set to single.
15928 (truncdfsf2): Add fptype_ut699 attribute.
15929 (fix_truncdfsi2): Likewise.
15930 (floatsisf2): Change fptype attribute.
15931 (fix_truncsfsi2): Likewise.
15932 (negtf2_notv9): Delete.
15933 (negtf2_v9): Likewise.
15934 (negtf2_hq): New instruction.
15935 (negtf2): New instruction and splitter.
15936 (negdf2_notv9): Rewrite.
15937 (abstf2_notv9): Delete.
15938 (abstf2_hq_v9): Likewise.
15939 (abstf2_v9): Likewise.
15940 (abstf2_hq): New instruction.
15941 (abstf2): New instruction and splitter.
15942 (absdf2_notv9): Rewrite.
15943
15944 2014-05-14 Cary Coutant <ccoutant@google.com>
15945
15946 PR debug/61013
15947 * opts.c (common_handle_option): Don't special-case "-g".
15948 (set_debug_level): Default to at least level 2 with "-g".
15949
15950 2014-05-14 DJ Delorie <dj@redhat.com>
15951
15952 * config/msp430/msp430.c (msp430_builtin): Add
15953 MSP430_BUILTIN_DELAY_CYCLES.
15954 (msp430_init_builtins): Register void __delay_cycles(long long).
15955 (msp430_builtin_decl): Add it.
15956 (cg_magic_constant): New.
15957 (msp430_expand_delay_cycles): New.
15958 (msp430_expand_builtin): Call it.
15959 (msp430_print_operand_raw): Change integer printing from "int" to
15960 HOST_WIDE_INT.
15961 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15962 (delay_cycles_start): New.
15963 (delay_cycles_end): New.
15964 (delay_cycles_32): New.
15965 (delay_cycles_32x): New.
15966 (delay_cycles_16): New.
15967 (delay_cycles_16x): New.
15968 (delay_cycles_2): New.
15969 (delay_cycles_1): New.
15970 * doc/extend.texi: Document __delay_cycles().
15971
15972 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15973
15974 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15975 length attribute computation.
15976
15977 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15978
15979 PR debug/61188
15980 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15981
15982 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15983
15984 PR target/61084
15985 * config/sparc/sparc.md: Fix types of low and high in DI constant
15986 splitter. Use gen_int_mode in some other splitters.
15987
15988 2014-05-14 Martin Jambor <mjambor@suse.cz>
15989
15990 PR ipa/60897
15991 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15992
15993 2014-05-14 James Norris <jnorris@codesourcery.com>
15994
15995 * omp-low.c (expand_parallel_call): Remove shadow variable.
15996 (expand_omp_taskreg): Likewise.
15997
15998 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15999
16000 * common/config/i386/i386-common.c
16001 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16002 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16003 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16004 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16005 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16006 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16007 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16008 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16009 xsavecintrin.h, xsavesintrin.h.
16010 (x86_64-*-*): Ditto.
16011 * config/i386/clflushoptintrin.h: New.
16012 * config/i386/xsavecintrin.h: Ditto.
16013 * config/i386/xsavesintrin.h: Ditto.
16014 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16015 (bit_XSAVES): Ditto.
16016 (bit_XSAVES): Ditto.
16017 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16018 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16019 -mno-clflushopt.
16020 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16021 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16022 OPTION_MASK_ISA_XSAVES.
16023 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16024 -mxsavec, -mxsaves.
16025 (PTA_CLFLUSHOPT) Define.
16026 (PTA_XSAVEC): Ditto.
16027 (PTA_XSAVES): Ditto.
16028 (ix86_option_override_internal): Handle new options.
16029 (ix86_valid_target_attribute_inner_p): Ditto.
16030 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16031 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16032 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16033 (bdesc_special_args): Add __builtin_ia32_xsaves,
16034 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16035 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16036 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16037 (ix86_expand_builtin): Handle new builtins.
16038 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16039 (TARGET_CLFLUSHOPT_P): Ditto.
16040 (TARGET_XSAVEC): Ditto.
16041 (TARGET_XSAVEC_P): Ditto.
16042 (TARGET_XSAVES): Ditto.
16043 (TARGET_XSAVES_P): Ditto.
16044 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16045 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16046 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16047 (ANY_XRSTOR): New.
16048 (ANY_XRSTOR64): Ditto.
16049 (xrstor): Ditto.
16050 (xrstor): Change into <xrstor>.
16051 (xrstor_rex64): Change into <xrstor>_rex64.
16052 (xrstor64): Change into <xrstor>64
16053 (clflushopt): New.
16054 * config/i386/i386.opt (mclflushopt): New.
16055 (mxsavec): Ditto.
16056 (mxsaves): Ditto.
16057 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16058 xsavecintrin.h.
16059 * doc/invoke.texi: Document new options.
16060
16061 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16062
16063 PR rtl-optimization/60866
16064 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16065 Default it to -1. Pass it down to init_simplejump_data.
16066 (init_simplejump_data): New parameter old_seqno. Pass it down
16067 to get_seqno_for_a_jump.
16068 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16069 initializing new jump seqno as a last resort. Add comment.
16070 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16071 jump and pass it down to sel_init_new_insn.
16072 (sel_redirect_edge_and_branch_force): Likewise.
16073
16074 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16075
16076 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16077 shifted values to avoid build warning.
16078
16079 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16080
16081 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16082 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16083 (cfg_layout_merge_blocks): Likewise.
16084 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16085
16086 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16087
16088 PR rtl-optimization/60901
16089 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16090 bb predecessor belongs to the same scheduling region. Adjust comment.
16091
16092 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16093
16094 * doc/sourcebuild.texi: (dfp_hw): Document.
16095 (p8vector_hw): Likewise.
16096 (powerpc_eabi_ok): Likewise.
16097 (powerpc_elfv2): Likewise.
16098 (powerpc_htm_ok): Likewise.
16099 (ppc_recip_hw): Likewise.
16100 (vsx_hw): Likewise.
16101
16102 2014-05-13 Cary Coutant <ccoutant@google.com>
16103
16104 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16105
16106 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16107
16108 * gengtype-parse.c (require3): Eliminate in favor of...
16109 (require4): New.
16110 (require_template_declaration): Update to support optional single *
16111 on a type.
16112
16113 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16114 (create_user_defined_type): Handle a single level of explicit
16115 pointerness within template arguments.
16116 (struct write_types_data): Add field "kind".
16117 (filter_type_name): Handle "*" character.
16118 (write_user_func_for_structure_ptr): Require a write_types_data
16119 rather than just a prefix string, so that we can look up the kind
16120 of the wtd and use it as an index into wrote_user_func_for_ptr,
16121 ensuring that such functions are written at most once. Support
16122 subclasses by invoking the marking function of the ultimate base class.
16123 (write_user_func_for_structure_body): Require a write_types_data
16124 rather than just a prefix string, so that we can pass this to
16125 write_user_func_for_structure_ptr.
16126 (write_func_for_structure): Likewise.
16127 (ggc_wtd): Add initializer of new "kind" field.
16128 (pch_wtd): Likewise.
16129
16130 * gengtype.h (enum write_types_kinds): New.
16131 (struct type): Add field wrote_user_func_for_ptr to the "s"
16132 union member.
16133
16134 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16135
16136 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16137 instead of const_binop.
16138 (fold_binary_loc): Likewise.
16139
16140 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16141
16142 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16143 calculation to match get_ref_base_and_extent.
16144
16145 2014-05-13 Catherine Moore <clm@codesourcery.com>
16146 Sandra Loosemore <sandra@codesourcery.com>
16147
16148 * configure.ac: Fix assembly for explicit JALR relocation check.
16149 * configure: Regenerate.
16150
16151 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16152
16153 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16154 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16155 Remove associated type declarations and initialisations.
16156 (arm_expand_neon_builtin): Likewise.
16157 (neon_emit_pair_result_insn): Delete.
16158 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16159 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16160 (neon_vzip<mode>): Likewise.
16161 (neon_vuzp<mode>): Likewise.
16162
16163 2014-05-13 Richard Biener <rguenther@suse.de>
16164
16165 PR ipa/60973
16166 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16167 it needs revisiting whether the call still may be tail-called.
16168
16169 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16170
16171 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16172 * rtl.h (block_symbol): Reduce number of fields to 2.
16173 (rtx_def): Add u2.symbol_ref_flags.
16174 (SYMBOL_REF_FLAGS): Use it.
16175 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16176 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16177 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16178 Lower index of SYMBOL_REF_DATA.
16179 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16180 Print SYMBOL_REF_FLAGS at the same time.
16181 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16182
16183 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16184
16185 * rtl.def (VAR_LOCATION): Remove "i" field.
16186 * rtl.h (rtx_def): Add u2.var_location_status.
16187 (PAT_VAR_LOCATION_STATUS): Use it.
16188 (gen_rtx_VAR_LOCATION): Declare.
16189 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16190 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16191 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16192
16193 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16194
16195 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16196 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16197
16198 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16199
16200 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16201 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16202 * rtl.h (rtx_def): Add insn_uid to u2 field.
16203 (RTX_FLAG_CHECK8): Delete in favor of...
16204 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16205 (INSN_DELETED_P): Update accordingly.
16206 (INSN_UID): Use u2.insn_uid.
16207 (INSN_CHAIN_CODE_P): Define.
16208 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16209 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16210 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16211 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16212 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16213 indices accordingly.
16214 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16215 Update indices for insn-chain rtxes.
16216 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16217 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16218 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16219 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16220 * combine.c (try_combine): Likewise.
16221 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16222
16223 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16224
16225 * rtl.def (REG): Remove middle field.
16226 * rtl.h (rtx_def): Add orignal_regno to u2.
16227 (ORIGINAL_REGNO): Use it instead of field 1.
16228 (REG_ATTRS): Lower field index accordingly.
16229 * gengtype.c (adjust_field_rtx_def): Remove handling of
16230 ORIGINAL_REGNO. Move REG_ATTRS index down.
16231 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16232 code that prints the REGNO.
16233
16234 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16235
16236 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16237 GENERATOR_FILE.
16238
16239 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16240
16241 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16242
16243 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16244
16245 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16246 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16247
16248 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16249
16250 * config/aarch64/aarch64-protos.h
16251 (aarch64_hard_regno_caller_save_mode): New prototype.
16252 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16253 New function.
16254 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16255
16256 2014-05-13 Christian Bruel <christian.bruel@st.com>
16257
16258 * target.def (mode_switching): New hook vector.
16259 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16260 (mode_exit, modepriority_to_mode): Likewise.
16261 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16262 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16263 * target.h: Include tm.h and hard-reg-set.h.
16264 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16265 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16266 * doc/tm.texi Regenerate.
16267 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16268 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16269 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16270 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16271 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16272 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16273 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16274 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16275 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16276 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16277 (ix86_emit_mode_set): Hookify.
16278 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16279 Delete.
16280 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16281 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16282 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16283 (epiphany_mode_priority_to_mode): Remove declaration.
16284 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16285 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16286 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16287 Likewise.
16288 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16289 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16290 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16291
16292 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16293
16294 PR target/61060
16295 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16296 is const0_rtx, return immediately. Don't test count == 0 when
16297 it is always true.
16298
16299 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16300
16301 * Makefile.in: add shrink-wrap.o.
16302 * config/i386/i386.c: include "shrink-wrap.h"
16303 * function.c: Likewise.
16304 (requires_stack_frame_p, next_block_for_reg,
16305 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16306 dup_block_and_redirect): Move to shrink-wrap.c
16307 (thread_prologue_and_epilogue_insns): Extract three code segments
16308 as functions in shrink-wrap.c
16309 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16310 shrink-wrap.h
16311 * shrink-wrap.c: New file.
16312 * shrink-wrap.h: New file.
16313
16314 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16315
16316 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16317 reference to Solaris.
16318
16319 2014-05-12 Mike Stump <mikestump@comcast.net>
16320
16321 PR other/31778
16322 * genattrtab.c (filename): Add.
16323 (convert_set_attr_alternative): Improve error message.
16324 (check_defs): Restore read_md_filename for error messages.
16325 (gen_insn): Save filename.
16326
16327 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16328
16329 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16330 -fno-local-ivars and -fivar-visibility.
16331 * c-family/c.opt: Make -Wshadow also implicitly enable
16332 -Wshadow-ivar.
16333
16334 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16335
16336 * doc/tm.texi: Remove reference to deleted macro.
16337 * doc/tm.texi.in: Likewise.
16338
16339 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16340
16341 PR target/60991
16342 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16343 to restore Y.
16344
16345 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16346
16347 PR libgcc/61152
16348 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16349 * config/arm/aout.h (License): Same.
16350 * config/arm/bpabi.h (License): Same.
16351 * config/arm/elf.h (License): Same.
16352 * config/arm/linux-elf.h (License): Same.
16353 * config/arm/linux-gas.h (License): Same.
16354 * config/arm/netbsd-elf.h (License): Same.
16355 * config/arm/uclinux-eabi.h (License): Same.
16356 * config/arm/uclinux-elf.h (License): Same.
16357 * config/arm/vxworks.h (License): Same.
16358
16359 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16360
16361 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16362 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16363 number of operands to 3.
16364 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16365 * tree-nested.c (convert_nonlocal_omp_clauses,
16366 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16367 * gimplify.c (gimplify_scan_omp_clauses): Handle
16368 OMP_CLAUSE_LINEAR_STMT.
16369 * omp-low.c (lower_rec_input_clauses): Fix typo.
16370 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16371 cast between Fortran boolean_type_node and C _Bool if
16372 needed.
16373
16374 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16375
16376 PR tree-optimization/61136
16377 * wide-int.h (multiple_of_p): Define a version that doesn't return
16378 the quotient.
16379 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16380 integer_zerop/const_binop pair.
16381 (multiple_of_p): Likewise, converting both operands to widest_int
16382 precision.
16383
16384 2014-05-09 Teresa Johnson <tejohnson@google.com>
16385
16386 * cgraphunit.c (analyze_functions): Use correct dump file.
16387
16388 2014-05-09 Florian Weimer <fweimer@redhat.com>
16389
16390 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16391 expand_used_vars.
16392 (stack_protect_return_slot_p): New function.
16393 (expand_used_vars): Call stack_protect_decl_p and
16394 stack_protect_return_slot_p for -fstack-protector-strong.
16395
16396 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16397 Andrew Haley <aph@redhat.com>
16398 Richard Sandiford <rdsandiford@googlemail.com>
16399
16400 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16401 pages.
16402
16403 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16404
16405 PR middle-end/61111
16406 * fold-const.c (fold_binary_loc): Changed width of mask.
16407
16408 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16409
16410 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16411 unsigned int initializers for regno_in, regno_out.
16412
16413 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16414
16415 PR target/61055
16416 * config/avr/avr.md (cc): Add new attribute set_vzn.
16417 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16418 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16419 with INC, DEC or NEG.
16420 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16421 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16422 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16423
16424 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16425
16426 Revert:
16427 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16428
16429 * wide-int.cc (UTItype): Define.
16430 (UDWtype): Define for appropriate W_TYPE_SIZE.
16431
16432 2014-05-09 Richard Biener <rguenther@suse.de>
16433
16434 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16435 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16436 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16437 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16438 ssa_propagate): Adjust.
16439
16440 2014-05-08 Jeff Law <law@redhat.com>
16441
16442 PR tree-optimization/61009
16443 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16444 tri-state rather than a boolean. When a block is too big to
16445 thread through, inform caller via negative return value.
16446 (thread_across_edge): If a block was too big for normal threading,
16447 then it's too big for a joiner too, so remove temporary equivalences
16448 and return immediately.
16449
16450 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16451 Matthias Klose <doko@ubuntu.com>
16452
16453 PR driver/61106
16454 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16455
16456 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16457
16458 PR target/59952
16459 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16460
16461 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16462
16463 PR target/61092
16464 * config/alpha/alpha.c: Include gimple-iterator.h.
16465 (alpha_gimple_fold_builtin): New function. Move
16466 ALPHA_BUILTIN_UMULH folding from ...
16467 (alpha_fold_builtin): ... here.
16468 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16469
16470 2014-05-08 Wei Mi <wmi@google.com>
16471
16472 PR target/58066
16473 * config/i386/i386.c (ix86_compute_frame_layout): Update
16474 preferred_stack_boundary for call, expanded from tls descriptor.
16475 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16476 to depend on SP register.
16477 (*tls_local_dynamic_base_32_gnu): Ditto.
16478 (*tls_local_dynamic_32_once): Ditto.
16479 (tls_global_dynamic_64_<mode>): Set
16480 ix86_tls_descriptor_calls_expanded_in_cfun.
16481 (tls_local_dynamic_base_64_<mode>): Ditto.
16482 (tls_global_dynamic_32): Set
16483 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16484 to depend on SP register.
16485 (tls_local_dynamic_base_32): Ditto.
16486
16487 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16488
16489 * config/arm/arm_neon.h: Update comment.
16490 * config/arm/neon-docgen.ml: Delete.
16491 * config/arm/neon-gen.ml: Delete.
16492 * doc/arm-neon-intrinsics.texi: Update comment.
16493
16494 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16495
16496 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16497 and v4sf versions.
16498 (vand, vorr, veor, vorn, vbic): Remove.
16499 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16500 iterator.
16501 (neon_vsub_unspec): Likewise.
16502 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16503
16504 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16505
16506 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16507 (vadd_s16): Likewise.
16508 (vadd_s32): Likewise.
16509 (vadd_f32): Likewise.
16510 (vadd_u8): Likewise.
16511 (vadd_u16): Likewise.
16512 (vadd_u32): Likewise.
16513 (vadd_s64): Likewise.
16514 (vadd_u64): Likewise.
16515 (vaddq_s8): Likewise.
16516 (vaddq_s16): Likewise.
16517 (vaddq_s32): Likewise.
16518 (vaddq_s64): Likewise.
16519 (vaddq_f32): Likewise.
16520 (vaddq_u8): Likewise.
16521 (vaddq_u16): Likewise.
16522 (vaddq_u32): Likewise.
16523 (vaddq_u64): Likewise.
16524 (vmul_s8): Likewise.
16525 (vmul_s16): Likewise.
16526 (vmul_s32): Likewise.
16527 (vmul_f32): Likewise.
16528 (vmul_u8): Likewise.
16529 (vmul_u16): Likewise.
16530 (vmul_u32): Likewise.
16531 (vmul_p8): Likewise.
16532 (vmulq_s8): Likewise.
16533 (vmulq_s16): Likewise.
16534 (vmulq_s32): Likewise.
16535 (vmulq_f32): Likewise.
16536 (vmulq_u8): Likewise.
16537 (vmulq_u16): Likewise.
16538 (vmulq_u32): Likewise.
16539 (vsub_s8): Likewise.
16540 (vsub_s16): Likewise.
16541 (vsub_s32): Likewise.
16542 (vsub_f32): Likewise.
16543 (vsub_u8): Likewise.
16544 (vsub_u16): Likewise.
16545 (vsub_u32): Likewise.
16546 (vsub_s64): Likewise.
16547 (vsub_u64): Likewise.
16548 (vsubq_s8): Likewise.
16549 (vsubq_s16): Likewise.
16550 (vsubq_s32): Likewise.
16551 (vsubq_s64): Likewise.
16552 (vsubq_f32): Likewise.
16553 (vsubq_u8): Likewise.
16554 (vsubq_u16): Likewise.
16555 (vsubq_u32): Likewise.
16556 (vsubq_u64): Likewise.
16557 (vand_s8): Likewise.
16558 (vand_s16): Likewise.
16559 (vand_s32): Likewise.
16560 (vand_u8): Likewise.
16561 (vand_u16): Likewise.
16562 (vand_u32): Likewise.
16563 (vand_s64): Likewise.
16564 (vand_u64): Likewise.
16565 (vandq_s8): Likewise.
16566 (vandq_s16): Likewise.
16567 (vandq_s32): Likewise.
16568 (vandq_s64): Likewise.
16569 (vandq_u8): Likewise.
16570 (vandq_u16): Likewise.
16571 (vandq_u32): Likewise.
16572 (vandq_u64): Likewise.
16573 (vorr_s8): Likewise.
16574 (vorr_s16): Likewise.
16575 (vorr_s32): Likewise.
16576 (vorr_u8): Likewise.
16577 (vorr_u16): Likewise.
16578 (vorr_u32): Likewise.
16579 (vorr_s64): Likewise.
16580 (vorr_u64): Likewise.
16581 (vorrq_s8): Likewise.
16582 (vorrq_s16): Likewise.
16583 (vorrq_s32): Likewise.
16584 (vorrq_s64): Likewise.
16585 (vorrq_u8): Likewise.
16586 (vorrq_u16): Likewise.
16587 (vorrq_u32): Likewise.
16588 (vorrq_u64): Likewise.
16589 (veor_s8): Likewise.
16590 (veor_s16): Likewise.
16591 (veor_s32): Likewise.
16592 (veor_u8): Likewise.
16593 (veor_u16): Likewise.
16594 (veor_u32): Likewise.
16595 (veor_s64): Likewise.
16596 (veor_u64): Likewise.
16597 (veorq_s8): Likewise.
16598 (veorq_s16): Likewise.
16599 (veorq_s32): Likewise.
16600 (veorq_s64): Likewise.
16601 (veorq_u8): Likewise.
16602 (veorq_u16): Likewise.
16603 (veorq_u32): Likewise.
16604 (veorq_u64): Likewise.
16605 (vbic_s8): Likewise.
16606 (vbic_s16): Likewise.
16607 (vbic_s32): Likewise.
16608 (vbic_u8): Likewise.
16609 (vbic_u16): Likewise.
16610 (vbic_u32): Likewise.
16611 (vbic_s64): Likewise.
16612 (vbic_u64): Likewise.
16613 (vbicq_s8): Likewise.
16614 (vbicq_s16): Likewise.
16615 (vbicq_s32): Likewise.
16616 (vbicq_s64): Likewise.
16617 (vbicq_u8): Likewise.
16618 (vbicq_u16): Likewise.
16619 (vbicq_u32): Likewise.
16620 (vbicq_u64): Likewise.
16621 (vorn_s8): Likewise.
16622 (vorn_s16): Likewise.
16623 (vorn_s32): Likewise.
16624 (vorn_u8): Likewise.
16625 (vorn_u16): Likewise.
16626 (vorn_u32): Likewise.
16627 (vorn_s64): Likewise.
16628 (vorn_u64): Likewise.
16629 (vornq_s8): Likewise.
16630 (vornq_s16): Likewise.
16631 (vornq_s32): Likewise.
16632 (vornq_s64): Likewise.
16633 (vornq_u8): Likewise.
16634 (vornq_u16): Likewise.
16635 (vornq_u32): Likewise.
16636 (vornq_u64): Likewise.
16637
16638 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16639
16640 * wide-int.cc (UTItype): Define.
16641 (UDWtype): Define for appropriate W_TYPE_SIZE.
16642
16643 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16644
16645 PR tree-optimization/59100
16646 * tree-ssa-phiopt.c: Include tree-inline.h.
16647 (neutral_element_p, absorbing_element_p): New functions.
16648 (value_replacement): Handle conditional binary operations with a
16649 neutral or absorbing element.
16650
16651 2014-05-08 Richard Biener <rguenther@suse.de>
16652
16653 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16654 folding the expression.
16655 (valueize_expr): Remove.
16656 (visit_reference_op_load): Do not valueize the result of
16657 vn_get_expr_for.
16658 (simplify_binary_expression): Likewise.
16659 (simplify_unary_expression): Likewise.
16660
16661 2014-05-08 Richard Biener <rguenther@suse.de>
16662
16663 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16664 looking at TYPE_ARG_TYPES.
16665
16666 2014-05-08 Richard Biener <rguenther@suse.de>
16667
16668 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16669 pointer propagation special-case.
16670
16671 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16672
16673 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16674 core part of address expressions.
16675
16676 2014-05-08 Alan Modra <amodra@gmail.com>
16677
16678 PR target/60737
16679 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16680 loads and stores when -mno-strict-align at any alignment.
16681 (expand_block_clear): Similarly. Also correct calculation of
16682 instruction count.
16683
16684 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16685
16686 PR middle-end/39246
16687 * tree-complex.c (expand_complex_move): Keep line info when expanding
16688 complex move.
16689 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16690 of complex expression. Use new argument to display correct location
16691 for values coming from phi statement.
16692 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16693 (warn_uninitialized_phi): Pass location of phi argument to
16694 warn_uninit.
16695 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16696 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16697
16698 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16699
16700 * config/rs6000/predicates.md (indexed_address_mem): New.
16701 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16702 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16703 fpstore_ux, fpstore_u.
16704 (sign_extend, indexed, update): New.
16705 (cell_micro): Adjust.
16706 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16707 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16708 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16709 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16710 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16711 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16712 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16713 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16714 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16715 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16716 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16717 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16718 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16719 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16720 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16721
16722 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16723 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16724 *vsx_extract_<mode>_store): Adjust.
16725 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16726 is_cracked_insn, insn_must_be_first_in_group,
16727 insn_must_be_last_in_group): Adjust.
16728
16729 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16730 Adjust.
16731 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16732 ppc440-fpstore): Adjust.
16733 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16734 ppc476-fpstore): Adjust.
16735 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16736 ppc601-fpstore): Adjust.
16737 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16738 Adjust.
16739 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16740 Adjust.
16741 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16742 ppc7450-fpstore): Adjust.
16743 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16744 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16745 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16746 Adjust.
16747 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16748 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16749 cell-fpstore, cell-fpstore-update): Adjust.
16750 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16751 ppce300c3_store, ppce300c3_fpstore): Adjust.
16752 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16753 e500mc_fpstore): Adjust.
16754 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16755 e500mc64_store, e500mc64_fpstore): Adjust.
16756 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16757 e5500_fpstore): Adjust.
16758 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16759 e6500_fpstore): Adjust.
16760 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16761 Adjust.
16762 * config/rs6000/power4.md (power4-load, power4-load-ext,
16763 power4-load-ext-update, power4-load-ext-update-indexed,
16764 power4-load-update-indexed, power4-load-update, power4-fpload,
16765 power4-fpload-update, power4-store, power4-store-update,
16766 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16767 Adjust.
16768 * config/rs6000/power5.md (power5-load, power5-load-ext,
16769 power5-load-ext-update, power5-load-ext-update-indexed,
16770 power5-load-update-indexed, power5-load-update, power5-fpload,
16771 power5-fpload-update, power5-store, power5-store-update,
16772 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16773 Adjust.
16774 * config/rs6000/power6.md (power6-load, power6-load-ext,
16775 power6-load-update, power6-load-update-indexed,
16776 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16777 power6-fpload-update, power6-store, power6-store-update,
16778 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16779 Adjust.
16780 * config/rs6000/power7.md (power7-load, power7-load-ext,
16781 power7-load-update, power7-load-update-indexed,
16782 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16783 power7-fpload-update, power7-store, power7-store-update,
16784 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16785 Adjust.
16786 * config/rs6000/power8.md (power8-load, power8-load-update,
16787 power8-load-ext, power8-load-ext-update, power8-fpload,
16788 power8-fpload-update, power8-store, power8-store-update-indexed,
16789 power8-fpstore, power8-fpstore-update): Adjust.
16790 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16791 Adjust.
16792 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16793 titan_lsu_store, titan_lsu_fpstore): Adjust.
16794 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16795
16796 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16797
16798 PR target/60884
16799 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16800 unrolled byte insns. Emit address increments after move insns.
16801
16802 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16803
16804 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16805 const_gimple, rather than a gimple.
16806 (gimple_call_builtin_p): Likewise, for the three variants.
16807
16808 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16809 (gimple_call_builtin_p): Likewise, for the three variants.
16810
16811 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16812
16813 PR tree-optimization/61095
16814 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16815
16816 2014-05-07 Richard Biener <rguenther@suse.de>
16817
16818 PR tree-optimization/61034
16819 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16820 (maybe_skip_until): Use translate to take into account
16821 lattices when trying to do disambiguations.
16822 (get_continuation_for_phi_1): Likewise.
16823 (get_continuation_for_phi): Adjust for added translate arguments.
16824 (walk_non_aliased_vuses): Likewise.
16825 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16826 (walk_non_aliased_vuses): Likewise.
16827 (call_may_clobber_ref_p_1): Declare.
16828 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16829 calls. Stop early if we are only supposed to disambiguate.
16830 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16831
16832 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16833
16834 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16835 Emit an error when the function has arguments.
16836
16837 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16838
16839 * cfgloop.h (unswitch_loops): Remove.
16840 * doc/passes.texi: Remove references to loop-unswitch.c
16841 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16842
16843 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16844
16845 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16846 check for loads group of length 3.
16847 (vect_permute_load_chain): New permutations for loads group of
16848 length 3.
16849 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16850 of vec_perm_shuffle for the new permutations.
16851
16852 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16853
16854 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16855 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16856 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16857 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16858 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16859 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16860 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16861 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16862
16863 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16864
16865 * loop-unswitch.c: Delete.
16866
16867 2014-05-07 Richard Biener <rguenther@suse.de>
16868
16869 * config.gcc: Always set need_64bit_hwint to yes.
16870
16871 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16872
16873 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16874 of using optimize_size.
16875
16876 2014-05-06 Mike Stump <mikestump@comcast.net>
16877
16878 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16879
16880 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16881
16882 * config/i386/sse.md (*mov<mode>_internal)
16883 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16884 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16885 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16886 (*<code><mode>3, *andnot<mode>3<mask_name>)
16887 (<mask_codefor><code><mode>3<mask_name>): Only consider
16888 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16889
16890 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16891
16892 Revert:
16893 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16894
16895 * lra-constraints.c (valid_address_p): Move earlier in file.
16896 Add a constraint argument to the address_info version.
16897 (satisfies_memory_constraint_p): New function.
16898 (satisfies_address_constraint_p): Likewise.
16899 (process_alt_operands, curr_insn_transform): Use them.
16900 (process_address): Pass the constraint to valid_address_p when
16901 checking address operands.
16902
16903 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16904
16905 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16906 to their respective blocks. Fix inadvertent use of "node".
16907
16908 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16909
16910 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16911 out from...
16912 (init_emit_once): ...here.
16913 * rtl.h (init_derived_machine_modes): Declare.
16914 * toplev.c (do_compile): Call it even if no_backend.
16915
16916 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16917 Mike Stump <mikestump@comcast.net>
16918 Richard Sandiford <rdsandiford@googlemail.com>
16919 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16920
16921 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16922 (rtx_equal_for_memref_p): Update comment.
16923 (adjust_offset_for_component_ref): Use wide-int interfaces.
16924 * builtins.c (get_object_alignment_2): Likewise.
16925 (c_readstr): Likewise.
16926 (target_char_cast): Add comment.
16927 (determine_block_size): Use wide-int interfaces.
16928 (expand_builtin_signbit): Likewise.
16929 (fold_builtin_int_roundingfn): Likewise.
16930 (fold_builtin_bitop): Likewise.
16931 (fold_builtin_bswap): Likewise.
16932 (fold_builtin_logarithm): Use signop.
16933 (fold_builtin_pow): Likewise.
16934 (fold_builtin_memory_op): Use wide-int interfaces.
16935 (fold_builtin_object_size): Likewise.
16936 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16937 nb_iterations_estimate.
16938 (record_niter_bound): Use wide-int interfaces.
16939 (get_estimated_loop_iterations_int): Likewise.
16940 (get_estimated_loop_iterations): Likewise.
16941 (get_max_loop_iterations): Likewise.
16942 * cfgloop.h: Include wide-int.h.
16943 (struct nb_iter_bound): Change bound to widest_int.
16944 (struct loop): Change nb_iterations_upper_bound and
16945 nb_iterations_estimate to widest_int.
16946 (record_niter_bound): Switch to use widest_int.
16947 (get_estimated_loop_iterations): Likewise.
16948 (get_max_loop_iterations): Likewise.
16949 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16950 update for wide-int.
16951 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16952 * combine.c (try_combine): Likewise.
16953 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16954 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16955 interfaces.
16956 (aarch64_float_const_representable_p): Likewise.
16957 * config/arc/arc.c: Include wide-int.h.
16958 (arc_can_use_doloop_p): Use wide-int interfaces.
16959 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16960 (vfp3_const_double_index): Likewise.
16961 * config/avr/avr.c (avr_out_round): Likewise.
16962 (avr_fold_builtin): Likewise.
16963 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16964 (bfin_can_use_doloop_p): Likewise.
16965 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16966 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16967 * config/i386/i386.c: Include wide-int.h.
16968 (ix86_data_alignment): Use wide-int interfaces.
16969 (ix86_local_alignment): Likewise.
16970 (ix86_emit_swsqrtsf): Update real_from_integer.
16971 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16972 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16973 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16974 (zero_constant): Likewise.
16975 (input_operand): Likewise.
16976 (splat_input_operand): Likewise.
16977 (non_logical_cint_operand): Change const_double to const_wide_int.
16978 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16979 (easy_altivec_constant): Remove comment.
16980 (paired_expand_vector_init): Use CONSTANT_P.
16981 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16982 (rs6000_emit_move): Update checks.
16983 (rs6000_aggregate_candidate): Use wide-int interfaces.
16984 (rs6000_expand_ternop_builtin): Likewise.
16985 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16986 (rs6000_assemble_integer): Likewise.
16987 (rs6000_hash_constant): Likewise.
16988 (output_toc): Likewise.
16989 (rs6000_rtx_costs): Likewise.
16990 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16991 * config/rs6000/rs6000-c.c: Include wide-int.h.
16992 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16993 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16994 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16995 Handle CONST_WIDE_INT.
16996 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16997 Use tree_fits_uhwi_p.
16998 * config/sparc/sparc.c: Include wide-int.h.
16999 (sparc_fold_builtin): Use wide-int interfaces.
17000 * config/vax/vax.c: Include wide-int.h.
17001 (vax_float_literal): Use real_from_integer.
17002 * coretypes.h (struct hwivec_def): New.
17003 (hwivec): New.
17004 (const_hwivec): New.
17005 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17006 (equiv_constant): Handle CONST_WIDE_INT.
17007 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17008 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17009 * dbxout.c (stabstr_U): Use wide-int interfaces.
17010 (dbxout_type): Update to use cst_fits_shwi_p.
17011 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17012 (TARGET_SUPPORTS_WIDE_INT): Add default.
17013 * dfp.c: Include wide-int.h.
17014 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17015 decimal_real_to_integer.
17016 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17017 decimal_real_to_integer.
17018 * doc/generic.texi (Constant expressions): Update for wide_int.
17019 * doc/rtl.texi (const_double): Likewise.
17020 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17021 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17022 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17023 (REAL_VALUE_FROM_INT): Remove.
17024 (TARGET_SUPPORTS_WIDE_INT): New.
17025 * doc/tm.texi: Regenerate.
17026 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17027 * double-int.h: Include wide-int.h.
17028 (struct wi::int_traits): New.
17029 * dwarf2out.c (get_full_len): New.
17030 (dw_val_equal_p): Add case dw_val_class_wide_int.
17031 (size_of_loc_descr): Likewise.
17032 (output_loc_operands): Likewise.
17033 (insert_double): Remove.
17034 (insert_wide_int): New.
17035 (add_AT_wide): New.
17036 (print_die): Add case dw_val_class_wide_int.
17037 (attr_checksum): Likewise.
17038 (attr_checksum_ordered): Likewise.
17039 (same_dw_val_p): Likewise.
17040 (size_of_die): Likewise.
17041 (value_format): Likewise.
17042 (output_die): Likewise.
17043 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17044 Use wide-int.
17045 (clz_loc_descriptor): Use wide-int interfaces.
17046 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17047 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17048 (round_up_to_align): Use wide-int interfaces.
17049 (field_byte_offset): Likewise.
17050 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17051 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17052 CONST_DOUBLE handling. Use wide-int interfaces.
17053 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17054 (gen_enumeration_type_die): Use add_AT_wide.
17055 (hash_loc_operands): Add case dw_val_class_wide_int.
17056 (compare_loc_operands): Likewise.
17057 * dwarf2out.h: Include wide-int.h.
17058 (wide_int_ptr): New.
17059 (enum dw_val_class): Add dw_val_class_wide_int.
17060 (struct dw_val_struct): Add val_wide.
17061 * emit-rtl.c (const_wide_int_htab): New.
17062 (const_wide_int_htab_hash): New.
17063 (const_wide_int_htab_eq): New.
17064 (lookup_const_wide_int): New.
17065 (const_double_htab_hash): Use wide-int interfaces.
17066 (const_double_htab_eq): Likewise.
17067 (rtx_to_double_int): Conditionally compile for wide-int.
17068 (immed_double_int_const): Rename to immed_wide_int_const and
17069 update for wide-int.
17070 (immed_double_const): Conditionally compile for wide-int.
17071 (init_emit_once): Use wide-int interfaces.
17072 * explow.c (plus_constant): Likewise.
17073 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17074 (lshift_value): Use wide-int interfaces.
17075 (expand_mult): Likewise.
17076 (choose_multiplier): Likewise.
17077 (expand_smod_pow2): Likewise.
17078 (make_tree): Likewise.
17079 * expr.c (convert_modes): Consolidate handling of constants.
17080 Use wide-int interfaces.
17081 (emit_group_load_1): Add note.
17082 (store_expr): Update comment.
17083 (get_inner_reference): Use wide-int interfaces.
17084 (expand_constructor): Update comment.
17085 (expand_expr_real_2): Use wide-int interfaces.
17086 (expand_expr_real_1): Likewise.
17087 (reduce_to_bit_field_precision): Likewise.
17088 (const_vector_from_tree): Likewise.
17089 * final.c: Include wide-int-print.h.
17090 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17091 * fixed-value.c: Include wide-int.h.
17092 (fixed_from_string): Use wide-int interfaces.
17093 (fixed_to_decimal): Likewise.
17094 (fixed_convert_from_real): Likewise.
17095 (real_convert_from_fixed): Likewise.
17096 * fold-const.h (mem_ref_offset): Return an offset_int.
17097 (div_if_zero_remainder): Remove code parameter.
17098 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17099 Use wide-int interfaces.
17100 (may_negate_without_overflow_p): Use wide-int interfaces.
17101 (negate_expr_p): Likewise.
17102 (fold_negate_expr): Likewise.
17103 (int_const_binop_1): Likewise.
17104 (const_binop): Likewise.
17105 (fold_convert_const_int_from_int): Likewise.
17106 (fold_convert_const_int_from_real): Likewise.
17107 (fold_convert_const_int_from_fixed): Likewise.
17108 (fold_convert_const_fixed_from_int): Likewise.
17109 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17110 (sign_bit_p): Use wide-int interfaces.
17111 (make_range_step): Likewise.
17112 (build_range_check): Likewise. Pass an integer of the correct type
17113 instead of using integer_one_node.
17114 (range_predecessor): Pass an integer of the correct type instead
17115 of using integer_one_node.
17116 (range_successor): Likewise.
17117 (merge_ranges): Likewise.
17118 (unextend): Use wide-int interfaces.
17119 (extract_muldiv_1): Likewise.
17120 (fold_div_compare): Likewise.
17121 (fold_single_bit_test): Likewise.
17122 (fold_sign_changed_comparison): Likewise.
17123 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17124 (fold_plusminus_mult_expr): Use wide-int interfaces.
17125 (native_encode_int): Likewise.
17126 (native_interpret_int): Likewise.
17127 (fold_unary_loc): Likewise.
17128 (pointer_may_wrap_p): Likewise.
17129 (size_low_cst): Likewise.
17130 (mask_with_tz): Likewise.
17131 (fold_binary_loc): Likewise.
17132 (fold_ternary_loc): Likewise.
17133 (multiple_of_p): Likewise.
17134 (tree_call_nonnegative_warnv_p): Update calls to
17135 tree_int_cst_min_precision and real_from_integer.
17136 (fold_negate_const): Use wide-int interfaces.
17137 (fold_abs_const): Likewise.
17138 (fold_relational_const): Use tree_int_cst_lt.
17139 (round_up_loc): Use wide-int interfaces.
17140 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17141 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17142 * gengtype.c: Remove include of double-int.h.
17143 (do_typedef): Use wide-int interfaces.
17144 (open_base_files): Add wide-int.h.
17145 (main): Add offset_int and widest_int typedefs.
17146 * gengtype-lex.l: Handle "^".
17147 (CXX_KEYWORD): Add "static".
17148 * gengtype-parse.c (require3): New.
17149 (require_template_declaration): Handle constant template arguments
17150 and nested templates.
17151 * gengtype-state.c: Don't include "double-int.h".
17152 * genpreds.c (write_one_predicate_function): Update comment.
17153 (write_tm_constrs_h): Add check for hval and lval use in
17154 CONST_WIDE_INT.
17155 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17156 (add_to_sequence): Likewise.
17157 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17158 and const_double_operand.
17159 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17160 interfaces.
17161 * gimple-fold.c (get_base_constructor): Likewise.
17162 (fold_array_ctor_reference): Likewise.
17163 (fold_nonarray_ctor_reference): Likewise.
17164 (fold_const_aggregate_ref_1): Likewise.
17165 (gimple_val_nonnegative_real_p): Likewise.
17166 (gimple_fold_indirect_ref): Likewise.
17167 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17168 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17169 (struct slsr_cand_d): Change index to be widest_int.
17170 (struct incr_info_d): Change incr to be widest_int.
17171 (alloc_cand_and_find_basis): Use wide-int interfaces.
17172 (slsr_process_phi): Likewise.
17173 (backtrace_base_for_ref): Likewise. Return a widest_int.
17174 (restructure_reference): Take a widest_int instead of a double_int.
17175 (slsr_process_ref): Use wide-int interfaces.
17176 (create_mul_ssa_cand): Likewise.
17177 (create_mul_imm_cand): Likewise.
17178 (create_add_ssa_cand): Likewise.
17179 (create_add_imm_cand): Take a widest_int instead of a double_int.
17180 (slsr_process_add): Use wide-int interfaces.
17181 (slsr_process_cast): Likewise.
17182 (slsr_process_copy): Likewise.
17183 (dump_candidate): Likewise.
17184 (dump_incr_vec): Likewise.
17185 (replace_ref): Likewise.
17186 (cand_increment): Likewise. Return a widest_int.
17187 (cand_abs_increment): Likewise.
17188 (replace_mult_candidate): Take a widest_int instead of a double_int.
17189 (replace_unconditional_candidate): Use wide-int interfaces.
17190 (incr_vec_index): Take a widest_int instead of a double_int.
17191 (create_add_on_incoming_edge): Likewise.
17192 (create_phi_basis): Use wide-int interfaces.
17193 (replace_conditional_candidate): Likewise.
17194 (record_increment): Take a widest_int instead of a double_int.
17195 (record_phi_increments): Use wide-int interfaces.
17196 (phi_incr_cost): Take a widest_int instead of a double_int.
17197 (lowest_cost_path): Likewise.
17198 (total_savings): Likewise.
17199 (analyze_increments): Use wide-int interfaces.
17200 (ncd_with_phi): Take a widest_int instead of a double_int.
17201 (ncd_of_cand_and_phis): Likewise.
17202 (nearest_common_dominator_for_cands): Likewise.
17203 (insert_initializers): Use wide-int interfaces.
17204 (all_phi_incrs_profitable): Likewise.
17205 (replace_one_candidate): Likewise.
17206 (replace_profitable_candidates): Likewise.
17207 * godump.c: Include wide-int-print.h.
17208 (go_output_typedef): Use wide-int interfaces.
17209 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17210 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17211 (build_loop_iteration_domains): Likewise.
17212 * hooks.h: Include wide-int.h rather than double-int.h.
17213 (hook_bool_dint_dint_uint_bool_true): Delete.
17214 (hook_bool_wint_wint_uint_bool_true): Declare.
17215 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17216 (hook_bool_wint_wint_uint_bool_true): New.
17217 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17218 interfaces.
17219 (ubsan_expand_si_overflow_mul_check): Likewise.
17220 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17221 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17222 (get_ancestor_addr_info): Likewise.
17223 (ipa_modify_call_arguments): Likewise.
17224 * loop-doloop.c (doloop_modify): Likewise.
17225 (doloop_optimize): Likewise.
17226 * loop-iv.c (iv_number_of_iterations): Likewise.
17227 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17228 (unroll_loop_constant_iterations): Likewise.
17229 (decide_unroll_runtime_iterations): Likewise.
17230 (unroll_loop_runtime_iterations): Likewise.
17231 (decide_peel_simple): Likewise.
17232 (decide_unroll_stupid): Likewise.
17233 * lto-streamer-in.c (streamer_read_wi): Add.
17234 (input_cfg): Use wide-int interfaces.
17235 (lto_input_tree_1): Likewise.
17236 * lto-streamer-out.c (streamer_write_wi): Add.
17237 (hash_tree): Use wide-int interfaces.
17238 (output_cfg): Likewise.
17239 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17240 (GTFILES): Add wide-int.h and signop.h.
17241 (TAGS): Look for .cc files too.
17242 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17243 * optabs.c (expand_subword_shift): Likewise.
17244 (expand_doubleword_shift): Likewise.
17245 (expand_absneg_bit): Likewise.
17246 (expand_copysign_absneg): Likewise.
17247 (expand_copysign_bit): Likewise.
17248 * postreload.c (reload_cse_simplify_set): Likewise.
17249 * predict.c (predict_iv_comparison): Likewise.
17250 * pretty-print.h: Include wide-int-print.h.
17251 (pp_wide_int) New.
17252 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17253 * print-tree.c: Include wide-int-print.h.
17254 (print_node_brief): Use wide-int interfaces.
17255 (print_node): Likewise.
17256 * read-rtl.c (validate_const_wide_int): New.
17257 (read_rtx_code): Add CONST_WIDE_INT case.
17258 * real.c: Include wide-int.h.
17259 (real_to_integer2): Delete.
17260 (real_to_integer): New function, returning a wide_int.
17261 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17262 (ten_to_ptwo): Update call to real_from_integer.
17263 (real_digit): Likewise.
17264 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17265 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17266 (REAL_VALUE_TO_INT): Delete.
17267 (real_to_integer): Declare a wide-int form.
17268 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17269 * recog.c (const_int_operand): Improve comment.
17270 (const_scalar_int_operand): New.
17271 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17272 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17273 (split_double): Likewise.
17274 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17275 (rtx_size): Likewise.
17276 (rtx_alloc_stat_v): New.
17277 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17278 (cwi_output_hex): New.
17279 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17280 (cwi_check_failed_bounds): New.
17281 * rtl.def (CONST_WIDE_INT): New.
17282 * rtl.h: Include <utility> and wide-int.h.
17283 (struct hwivec_def): New.
17284 (CWI_GET_NUM_ELEM): New.
17285 (CWI_PUT_NUM_ELEM): New.
17286 (struct rtx_def): Add num_elem and hwiv.
17287 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17288 (CASE_CONST_UNIQUE): Likewise.
17289 (CASE_CONST_ANY): Likewise.
17290 (CONST_SCALAR_INT_P): Likewise.
17291 (CONST_WIDE_INT_P): New.
17292 (CWI_ELT): New.
17293 (HWIVEC_CHECK): New.
17294 (cwi_check_failed_bounds): New.
17295 (CWI_ELT): New.
17296 (HWIVEC_CHECK): New.
17297 (CONST_WIDE_INT_VEC) New.
17298 (CONST_WIDE_INT_NUNITS) New.
17299 (CONST_WIDE_INT_ELT) New.
17300 (rtx_mode_t): New type.
17301 (wi::int_traits <rtx_mode_t>): New.
17302 (wi::shwi): New.
17303 (wi::min_value): New.
17304 (wi::max_value): New.
17305 (rtx_alloc_v) New.
17306 (const_wide_int_alloc): New.
17307 (immed_wide_int_const): New.
17308 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17309 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17310 * signop.h: New file.
17311 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17312 (simplify_const_unary_operation): Use wide-int interfaces.
17313 (simplify_binary_operation_1): Likewise.
17314 (simplify_const_binary_operation): Likewise.
17315 (simplify_const_relational_operation): Likewise.
17316 (simplify_immed_subreg): Likewise.
17317 * stmt.c (expand_case): Likewise.
17318 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17319 signop rather than a bool.
17320 * stor-layout.c (layout_type): Use wide-int interfaces.
17321 (initialize_sizetypes): Update calls to
17322 set_min_and_max_values_for_integral_type.
17323 (set_min_and_max_values_for_integral_type): Take a signop rather
17324 than a bool. Use wide-int interfaces.
17325 (fixup_signed_type): Update accordingly. Remove
17326 HOST_BITS_PER_DOUBLE_INT limit.
17327 (fixup_unsigned_type): Likewise.
17328 * system.h (STATIC_CONSTANT_P): New.
17329 (STATIC_ASSERT): New.
17330 * target.def (can_use_doloop_p): Take widest_ints rather than
17331 double_ints.
17332 * target.h: Include wide-int.h rather than double-int.h.
17333 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17334 than double_ints.
17335 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17336 rather than INT_CST_LT_UNSIGNED.
17337 (can_use_doloop_if_innermost): Take widest_ints rather than
17338 double_ints.
17339 * tree-affine.c: Include wide-int-print.h.
17340 (double_int_ext_for_comb): Delete.
17341 (wide_int_ext_for_comb): New.
17342 (aff_combination_zero): Use wide-int interfaces.
17343 (aff_combination_const): Take a widest_int instead of a double_int.
17344 (aff_combination_elt): Use wide-int interfaces.
17345 (aff_combination_scale): Take a widest_int instead of a double_int.
17346 (aff_combination_add_elt): Likewise.
17347 (aff_combination_add_cst): Likewise.
17348 (aff_combination_add): Use wide-int interfaces.
17349 (aff_combination_convert): Likewise.
17350 (tree_to_aff_combination): Likewise.
17351 (add_elt_to_tree): Take a widest_int instead of a double_int.
17352 (aff_combination_to_tree): Use wide-int interfaces.
17353 (aff_combination_remove_elt): Likewise.
17354 (aff_combination_add_product): Take a widest_int instead of
17355 a double_int.
17356 (aff_combination_mult): Use wide-int interfaces.
17357 (aff_combination_expand): Likewise.
17358 (double_int_constant_multiple_p): Delete.
17359 (wide_int_constant_multiple_p): New.
17360 (aff_combination_constant_multiple_p): Take a widest_int pointer
17361 instead of a double_int pointer.
17362 (print_aff): Use wide-int interfaces.
17363 (get_inner_reference_aff): Take a widest_int pointer
17364 instead of a double_int pointer.
17365 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17366 * tree-affine.h: Include wide-int.h.
17367 (struct aff_comb_elt): Change type of coef to widest_int.
17368 (struct affine_tree_combination): Change type of offset to widest_int.
17369 (double_int_ext_for_comb): Delete.
17370 (wide_int_ext_for_comb): New.
17371 (aff_combination_const): Use widest_int instead of double_int.
17372 (aff_combination_scale): Likewise.
17373 (aff_combination_add_elt): Likewise.
17374 (aff_combination_constant_multiple_p): Likewise.
17375 (get_inner_reference_aff): Likewise.
17376 (aff_comb_cannot_overlap_p): Likewise.
17377 (aff_combination_zero_p): Use wide-int interfaces.
17378 * tree.c: Include tree.h.
17379 (init_ttree): Use make_int_cst.
17380 (tree_code_size): Removed code for INTEGER_CST case.
17381 (tree_size): Add INTEGER_CST case.
17382 (make_node_stat): Update comment.
17383 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17384 (build_int_cst_type): Use wide-int interfaces.
17385 (double_int_to_tree): Likewise.
17386 (double_int_fits_to_tree_p): Delete.
17387 (force_fit_type_double): Delete.
17388 (force_fit_type): New.
17389 (int_cst_hash_hash): Use wide-int interfaces.
17390 (int_cst_hash_eq): Likewise.
17391 (build_int_cst_wide): Delete.
17392 (wide_int_to_tree): New.
17393 (cache_integer_cst): Use wide-int interfaces.
17394 (build_low_bits_mask): Likewise.
17395 (cst_and_fits_in_hwi): Likewise.
17396 (real_value_from_int_cst): Likewise.
17397 (make_int_cst_stat): New.
17398 (integer_zerop): Use wide_int interfaces.
17399 (integer_onep): Likewise.
17400 (integer_all_onesp): Likewise.
17401 (integer_pow2p): Likewise.
17402 (integer_nonzerop): Likewise.
17403 (tree_log2): Likewise.
17404 (tree_floor_log2): Likewise.
17405 (tree_ctz): Likewise.
17406 (int_size_in_bytes): Likewise.
17407 (mem_ref_offset): Return an offset_int rather than a double_int.
17408 (build_type_attribute_qual_variant): Use wide_int interfaces.
17409 (type_hash_eq): Likewise
17410 (tree_int_cst_equal): Likewise.
17411 (tree_int_cst_lt): Delete.
17412 (tree_int_cst_compare): Likewise.
17413 (tree_fits_shwi_p): Use wide_int interfaces.
17414 (tree_fits_uhwi_p): Likewise.
17415 (tree_int_cst_sign_bit): Likewise.
17416 (tree_int_cst_sgn): Likewise.
17417 (tree_int_cst_min_precision): Take a signop rather than a bool.
17418 (simple_cst_equal): Use wide_int interfaces.
17419 (compare_tree_int): Likewise.
17420 (iterative_hash_expr): Likewise.
17421 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17422 INT_CST_LT.
17423 (get_type_static_bounds): Use wide_int interfaces.
17424 (tree_int_cst_elt_check_failed): New.
17425 (build_common_tree_nodes): Reordered to set prec before filling in
17426 value.
17427 (int_cst_value): Check cst_and_fits_in_hwi.
17428 (widest_int_cst_value): Use wide_int interfaces.
17429 (upper_bound_in_type): Likewise.
17430 (lower_bound_in_type): Likewise.
17431 (num_ending_zeros): Likewise.
17432 (drop_tree_overflow): Likewise.
17433 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17434 (gen_conditions_for_pow_cst_base): Likewise.
17435 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17436 (group_case_labels_stmt): Use wide-int interfaces.
17437 (verify_gimple_assign_binary): Likewise.
17438 (print_loop): Likewise.
17439 * tree-chrec.c (tree_fold_binomial): Likewise.
17440 * tree-core.h (struct tree_base): Add int_length.
17441 (struct tree_int_cst): Change rep of value.
17442 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17443 (dr_may_alias_p): Likewise.
17444 (max_stmt_executions_tree): Likewise.
17445 * tree.def (INTEGER_CST): Update comment.
17446 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17447 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17448 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17449 (dequeue_and_dump): Use wide-int interfaces.
17450 * tree.h: Include wide-int.h.
17451 (NULL_TREE): Moved to earlier loc in file.
17452 (TREE_INT_CST_ELT_CHECK): New.
17453 (tree_int_cst_elt_check_failed): New.
17454 (TYPE_SIGN): New.
17455 (TREE_INT_CST): Delete.
17456 (TREE_INT_CST_LOW): Use wide-int interfaces.
17457 (TREE_INT_CST_HIGH): Delete.
17458 (TREE_INT_CST_NUNITS): New.
17459 (TREE_INT_CST_EXT_NUNITS): Likewise.
17460 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17461 (TREE_INT_CST_ELT): Likewise.
17462 (INT_CST_LT): Delete.
17463 (tree_int_cst_elt_check): New (two forms).
17464 (type_code_size): Update comment.
17465 (make_int_cst_stat, make_int_cst): New.
17466 (tree_to_double_int): Delete.
17467 (double_int_fits_to_tree_p): Delete.
17468 (force_fit_type_double): Delete.
17469 (build_int_cstu): Replace with out-of-line function.
17470 (build_int_cst_wide): Delete.
17471 (tree_int_cst_lt): Define inline.
17472 (tree_int_cst_le): New.
17473 (tree_int_cst_compare): Define inline.
17474 (tree_int_cst_min_precision): Take a signop rather than a bool.
17475 (wi::int_traits <const_tree>): New.
17476 (wi::int_traits <tree>): New.
17477 (wi::extended_tree): New.
17478 (wi::int_traits <wi::extended_tree>): New.
17479 (wi::to_widest): New.
17480 (wi::to_offset): New.
17481 (wi::fits_to_tree_p): New.
17482 (wi::min_value): New.
17483 (wi::max_value): New.
17484 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17485 (copy_tree_body_r): Likewise.
17486 * tree-object-size.c (compute_object_offset): Likewise.
17487 (addr_object_size): Likewise.
17488 * tree-predcom.c: Include wide-int-print.h.
17489 (struct dref_d): Change type of offset to widest_int.
17490 (dump_dref): Call wide-int printer.
17491 (aff_combination_dr_offset): Use wide-int interfaces.
17492 (determine_offset): Take a widest_int pointer rather than a
17493 double_int pointer.
17494 (split_data_refs_to_components): Use wide-int interfaces.
17495 (suitable_component_p): Likewise.
17496 (order_drefs): Likewise.
17497 (add_ref_to_chain): Likewise.
17498 (valid_initializer_p): Likewise.
17499 (determine_roots_comp): Likewise.
17500 * tree-pretty-print.c: Include wide-int-print.h.
17501 (dump_generic_node): Use wide-int interfaces.
17502 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17503 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17504 (move_fixed_address_to_symbol): Likewise.
17505 (move_hint_to_base): Likewise.
17506 (move_pointer_to_base): Likewise.
17507 (move_variant_to_index): Likewise.
17508 (most_expensive_mult_to_index): Likewise.
17509 (addr_to_parts): Likewise.
17510 (copy_ref_info): Likewise.
17511 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17512 (indirect_refs_may_alias_p): Likewise.
17513 (stmt_kills_ref_p_1): Likewise.
17514 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17515 * tree-ssa-ccp.c: Update comment at top of file. Include
17516 wide-int-print.h.
17517 (struct prop_value_d): Change type of mask to widest_int.
17518 (extend_mask): New function.
17519 (dump_lattice_value): Use wide-int interfaces.
17520 (get_default_value): Likewise.
17521 (set_constant_value): Likewise.
17522 (set_value_varying): Likewise.
17523 (valid_lattice_transition): Likewise.
17524 (set_lattice_value): Likewise.
17525 (value_to_double_int): Delete.
17526 (value_to_wide_int): New.
17527 (get_value_from_alignment): Use wide-int interfaces.
17528 (get_value_for_expr): Likewise.
17529 (do_dbg_cnt): Likewise.
17530 (ccp_finalize): Likewise.
17531 (ccp_lattice_meet): Likewise.
17532 (bit_value_unop_1): Use widest_ints rather than double_ints.
17533 (bit_value_binop_1): Likewise.
17534 (bit_value_unop): Use wide-int interfaces.
17535 (bit_value_binop): Likewise.
17536 (bit_value_assume_aligned): Likewise.
17537 (evaluate_stmt): Likewise.
17538 (ccp_fold_stmt): Likewise.
17539 (visit_cond_stmt): Likewise.
17540 (ccp_visit_stmt): Likewise.
17541 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17542 (constant_pointer_difference): Likewise.
17543 (associate_pointerplus): Likewise.
17544 (combine_conversions): Likewise.
17545 * tree-ssa-loop.h: Include wide-int.h.
17546 (struct tree_niter_desc): Change type of max to widest_int.
17547 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17548 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17549 (remove_redundant_iv_tests): Likewise.
17550 (canonicalize_loop_induction_variables): Likewise.
17551 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17552 (constant_multiple_of): Take a widest_int pointer instead of
17553 a double_int pointer.
17554 (get_computation_aff): Use wide-int interfaces.
17555 (ptr_difference_cost): Likewise.
17556 (difference_cost): Likewise.
17557 (get_loop_invariant_expr_id): Likewise.
17558 (get_computation_cost_at): Likewise.
17559 (iv_elimination_compare_lt): Likewise.
17560 (may_eliminate_iv): Likewise.
17561 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17562 instead of double_int.
17563 (max_loop_iterations): Likewise.
17564 (max_stmt_executions): Likewise.
17565 (estimated_stmt_executions): Likewise.
17566 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17567 (split_to_var_and_offset): Use wide-int interfaces.
17568 (determine_value_range): Likewise.
17569 (bound_difference_of_offsetted_base): Likewise.
17570 (bounds_add): Take a widest_int instead of a double_int.
17571 (number_of_iterations_ne_max): Use wide-int interfaces.
17572 (number_of_iterations_ne): Likewise.
17573 (number_of_iterations_lt_to_ne): Likewise.
17574 (assert_loop_rolls_lt): Likewise.
17575 (number_of_iterations_lt): Likewise.
17576 (number_of_iterations_le): Likewise.
17577 (number_of_iterations_cond): Likewise.
17578 (number_of_iterations_exit): Likewise.
17579 (finite_loop_p): Likewise.
17580 (derive_constant_upper_bound_assign): Likewise.
17581 (derive_constant_upper_bound): Return a widest_int.
17582 (derive_constant_upper_bound_ops): Likewise.
17583 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17584 (record_estimate): Take a widest_int rather than a double_int.
17585 (record_nonwrapping_iv): Use wide-int interfaces.
17586 (double_int_cmp): Delete.
17587 (wide_int_cmp): New.
17588 (bound_index): Take a widest_int rather than a double_int.
17589 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17590 (maybe_lower_iteration_bound): Likewise.
17591 (estimate_numbers_of_iterations_loop): Likewise.
17592 (estimated_loop_iterations): Take a widest_int pointer than than
17593 a double_int pointer.
17594 (estimated_loop_iterations_int): Use wide-int interfaces.
17595 (max_loop_iterations): Take a widest_int pointer than than
17596 a double_int pointer.
17597 (max_loop_iterations_int): Use wide-int interfaces.
17598 (max_stmt_executions): Take a widest_int pointer than than
17599 a double_int pointer.
17600 (estimated_stmt_executions): Likewise.
17601 (n_of_executions_at_most): Use wide-int interfaces.
17602 (scev_probably_wraps_p): Likewise.
17603 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17604 to real_to_integer.
17605 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17606 interfaces.
17607 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17608 double_ints. Adjust for trailing_wide_ints <3> representation.
17609 (set_nonzero_bits): Likewise.
17610 (get_range_info): Return wide_ints rather than double_ints.
17611 Adjust for trailing_wide_ints <3> representation.
17612 (get_nonzero_bits): Likewise.
17613 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17614 representation.
17615 * tree-ssanames.h (struct range_info_def): Replace min, max and
17616 nonzero_bits with a trailing_wide_ints <3>.
17617 (set_range_info): Use wide_int_refs rather than double_ints.
17618 (set_nonzero_bits): Likewise.
17619 (get_range_info): Return wide_ints rather than double_ints.
17620 (get_nonzero_bits): Likewise.
17621 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17622 * tree-ssa-pre.c (phi_translate_1): Likewise.
17623 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17624 (acceptable_pow_call): Likewise.
17625 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17626 interfaces.
17627 (vn_reference_fold_indirect): Likewise.
17628 (vn_reference_maybe_forwprop_address): Likewise.
17629 (valueize_refs_1): Likewise.
17630 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17631 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17632 tree_int_cst_lt and tree_int_cst_le.
17633 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17634 interfaces.
17635 (streamer_alloc_tree): Likewise.
17636 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17637 (streamer_write_tree_header): Likewise.
17638 (streamer_write_integer_cst): Likewise.
17639 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17640 (build_constructors): Likewise.
17641 (array_value_type): Likewise.
17642 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17643 (vect_check_gather): Likewise.
17644 * tree-vect-generic.c (build_replicated_const): Likewise.
17645 (expand_vector_divmod): Likewise.
17646 * tree-vect-loop.c (vect_transform_loop): Likewise.
17647 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17648 (vect_do_peeling_for_alignment): Likewise.
17649 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17650 * tree-vrp.c: Include wide-int.h.
17651 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17652 (extract_range_from_assert): Use wide-int interfaces.
17653 (vrp_int_const_binop): Likewise.
17654 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17655 double_int pointers.
17656 (ranges_from_anti_range): Use wide-int interfaces.
17657 (quad_int_cmp): Delete.
17658 (quad_int_pair_sort): Likewise.
17659 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17660 (extract_range_from_unary_expr_1): Likewise.
17661 (adjust_range_with_scev): Likewise.
17662 (masked_increment): Take and return wide_ints rather than double_ints.
17663 (register_edge_assert_for_2): Use wide-int interfaces.
17664 (check_array_ref): Likewise.
17665 (search_for_addr_array): Likewise.
17666 (maybe_set_nonzero_bits): Likewise.
17667 (union_ranges): Pass an integer of the correct type instead of
17668 using integer_one_node.
17669 (intersect_ranges): Likewise.
17670 (simplify_truth_ops_using_ranges): Likewise.
17671 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17672 (range_fits_type_p): Likewise.
17673 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17674 a bool.
17675 (simplify_conversion_using_ranges): Use wide-int interfaces.
17676 (simplify_float_conversion_using_ranges): Likewise.
17677 (vrp_finalize): Likewise.
17678 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17679 (gimple_stringops_transform): Likewise.
17680 * varasm.c (decode_addr_const): Likewise.
17681 (const_hash_1): Likewise.
17682 (const_rtx_hash_1): Likewise
17683 (output_constant): Likewise.
17684 (array_size_for_constructor): Likewise.
17685 (output_constructor_regular_field): Likewise.
17686 (output_constructor_bitfield): Likewise.
17687 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17688 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17689 GENERATOR_FILEs.
17690 * gencheck.c: Define BITS_PER_UNIT.
17691 * wide-int.cc: New.
17692 * wide-int.h: New.
17693 * wide-int-print.cc: New.
17694 * wide-int-print.h: New.
17695
17696 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17697
17698 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17699
17700 2014-05-06 Richard Biener <rguenther@suse.de>
17701
17702 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17703 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17704 (TODO_verify_all): Adjust.
17705 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17706 TODO_verify_stmts and TODO_verify_rtl_sharing.
17707 * bb-reorder.c: Likewise.
17708 * cfgexpand.c: Likewise.
17709 * cprop.c: Likewise.
17710 * cse.c: Likewise.
17711 * function.c: Likewise.
17712 * fwprop.c: Likewise.
17713 * gcse.c: Likewise.
17714 * gimple-ssa-isolate-paths.c: Likewise.
17715 * gimple-ssa-strength-reduction.c: Likewise.
17716 * ipa-split.c: Likewise.
17717 * loop-init.c: Likewise.
17718 * loop-unroll.c: Likewise.
17719 * lower-subreg.c: Likewise.
17720 * modulo-sched.c: Likewise.
17721 * postreload-gcse.c: Likewise.
17722 * predict.c: Likewise.
17723 * recog.c: Likewise.
17724 * sched-rgn.c: Likewise.
17725 * store-motion.c: Likewise.
17726 * tracer.c: Likewise.
17727 * trans-mem.c: Likewise.
17728 * tree-call-cdce.c: Likewise.
17729 * tree-cfg.c: Likewise.
17730 * tree-cfgcleanup.c: Likewise.
17731 * tree-complex.c: Likewise.
17732 * tree-eh.c: Likewise.
17733 * tree-emutls.c: Likewise.
17734 * tree-if-conv.c: Likewise.
17735 * tree-into-ssa.c: Likewise.
17736 * tree-loop-distribution.c: Likewise.
17737 * tree-object-size.c: Likewise.
17738 * tree-parloops.c: Likewise.
17739 * tree-pass.h: Likewise.
17740 * tree-sra.c: Likewise.
17741 * tree-ssa-ccp.c: Likewise.
17742 * tree-ssa-copy.c: Likewise.
17743 * tree-ssa-copyrename.c: Likewise.
17744 * tree-ssa-dce.c: Likewise.
17745 * tree-ssa-dom.c: Likewise.
17746 * tree-ssa-dse.c: Likewise.
17747 * tree-ssa-forwprop.c: Likewise.
17748 * tree-ssa-ifcombine.c: Likewise.
17749 * tree-ssa-loop-ch.c: Likewise.
17750 * tree-ssa-loop-ivcanon.c: Likewise.
17751 * tree-ssa-loop.c: Likewise.
17752 * tree-ssa-math-opts.c: Likewise.
17753 * tree-ssa-phiopt.c: Likewise.
17754 * tree-ssa-phiprop.c: Likewise.
17755 * tree-ssa-pre.c: Likewise.
17756 * tree-ssa-reassoc.c: Likewise.
17757 * tree-ssa-sink.c: Likewise.
17758 * tree-ssa-strlen.c: Likewise.
17759 * tree-ssa-tail-merge.c: Likewise.
17760 * tree-ssa-uncprop.c: Likewise.
17761 * tree-switch-conversion.c: Likewise.
17762 * tree-tailcall.c: Likewise.
17763 * tree-vect-generic.c: Likewise.
17764 * tree-vectorizer.c: Likewise.
17765 * tree-vrp.c: Likewise.
17766 * tsan.c: Likewise.
17767 * var-tracking.c: Likewise.
17768 * bt-load.c: Likewise.
17769 * cfgcleanup.c: Likewise.
17770 * combine-stack-adj.c: Likewise.
17771 * combine.c: Likewise.
17772 * compare-elim.c: Likewise.
17773 * config/epiphany/resolve-sw-modes.c: Likewise.
17774 * config/i386/i386.c: Likewise.
17775 * config/mips/mips.c: Likewise.
17776 * config/s390/s390.c: Likewise.
17777 * config/sh/sh_treg_combine.cc: Likewise.
17778 * config/sparc/sparc.c: Likewise.
17779 * dce.c: Likewise.
17780 * dse.c: Likewise.
17781 * final.c: Likewise.
17782 * ifcvt.c: Likewise.
17783 * mode-switching.c: Likewise.
17784 * passes.c: Likewise.
17785 * postreload.c: Likewise.
17786 * ree.c: Likewise.
17787 * reg-stack.c: Likewise.
17788 * regcprop.c: Likewise.
17789 * regrename.c: Likewise.
17790 * web.c: Likewise.
17791
17792 2014-05-06 Richard Biener <rguenther@suse.de>
17793
17794 PR middle-end/61070
17795 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17796 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17797
17798 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17799
17800 PR ipa/60965
17801 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17802
17803 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17804 Tom de Vries <tom@codesourcery.com>
17805
17806 * target.def (call_fusage_contains_non_callee_clobbers): New
17807 DEFHOOKPOD.
17808 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17809 Hooks to @menu.
17810 (@node Miscellaneous Register Hooks): New node.
17811 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17812 * doc/tm.texi: Regenerate.
17813
17814 2014-05-05 Marek Polacek <polacek@redhat.com>
17815
17816 PR driver/61065
17817 * opts.c (common_handle_option): Call error_at instead of warning_at.
17818
17819 2014-05-05 Richard Biener <rguenther@suse.de>
17820
17821 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17822 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17823 under the TODO_verify_il umbrella.
17824
17825 2014-05-05 Richard Biener <rguenther@suse.de>
17826
17827 * passes.c (execute_function_todo): Move TODO_verify_flow under
17828 the TODO_verify_ul umbrella.
17829
17830 2014-05-05 Richard Biener <rguenther@suse.de>
17831
17832 PR middle-end/61010
17833 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17834 X & CST away from a CST that is the mask of a mode.
17835
17836 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17837
17838 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17839 int argument to enum machine_mode.
17840 (picochip_class_max_nregs): Ditto.
17841 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17842 (picochip_class_max_nregs): Ditto.
17843
17844 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17845
17846 * target.def: Add new target hook.
17847 * doc/tm.texi: Regenerate.
17848 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17849 * targhooks.c (default_keep_leaf_when_profiled): New function.
17850
17851 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17852 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17853
17854 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17855
17856 PR tree-optimization/60363
17857 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17858 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17859 (update_destination_phis): New parameter.
17860 (create_edge_and_update_destination_phis): Ditto.
17861 (ssa_fix_duplicate_block_edges): Pass new arguments.
17862 (thread_single_edge): Ditto.
17863
17864 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17865
17866 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17867 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17868 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17869 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17870 Use RS6000_BTM_HARD_FLOAT.
17871 (BU_MISC_2): Likewise.
17872 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17873 RS6000_BTM_HARD_FLOAT.
17874 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17875 is explicitly used.
17876 (rs6000_invalid_builtin): Add hard floating builtin support.
17877 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17878 hard float builtins.
17879 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17880
17881 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17882
17883 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17884 Add missing function* argument.
17885
17886 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17887
17888 * lra-constraints.c (valid_address_p): Move earlier in file.
17889 Add a constraint argument to the address_info version.
17890 (satisfies_memory_constraint_p): New function.
17891 (satisfies_address_constraint_p): Likewise.
17892 (process_alt_operands, curr_insn_transform): Use them.
17893 (process_address): Pass the constraint to valid_address_p when
17894 checking address operands.
17895
17896 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17897
17898 * config/mips/mips.c (mips_isa_rev): New variable.
17899 (mips_set_architecture): Set it.
17900 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17901 from mips_isa_rev.
17902 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17903 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17904 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17905 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17906 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17907 conditions in terms of mips_isa_rev.
17908 (mips_isa_rev): Declare.
17909
17910 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17911
17912 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17913 (prob_unlikely, prob_likely): Make variables const.
17914
17915 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17916
17917 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17918
17919 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17920
17921 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17922
17923 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17924
17925 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17926 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17927 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17928 functions.
17929 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17930 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17931 sh_pass_in_reg_p.
17932 Replace usage of ROUND_REG with sh_round_reg.
17933 Use CEIL instead of ROUND_ADVANCE.
17934
17935 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17936
17937 PR target/61026
17938 * config/sh/sh.c: Include stdlib headers before everything else.
17939
17940 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17941
17942 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17943 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17944 (gimplify_adjust_omp_clauses): Simd region is never
17945 directly nested in combined parallel. Instead, for linear
17946 with copyin/copyout, if in combined for simd loop, make decl
17947 firstprivate/lastprivate on OMP_FOR.
17948 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17949 expand_omp_for_static_chunk): When setting endvar, also set
17950 fd->loop.v to the same value.
17951
17952 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17953
17954 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17955
17956 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17957
17958 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17959 expression.
17960
17961 2014-05-02 Marek Polacek <polacek@redhat.com>
17962
17963 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17964
17965 2014-05-02 Kito Cheng <kito@0xlab.org>
17966
17967 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17968 to a C expression marco.
17969 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17970 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17971 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17972 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17973 HONOR_REG_ALLOC_ORDER.
17974 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17975
17976 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17977
17978 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17979
17980 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17981
17982 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17983
17984 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17985
17986 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17987 (convert_scalar_cond_reduction): Likewise.
17988 (predicate_scalar_phi): Add recognition and transformation
17989 of simple conditioanl reduction to be vectorizable.
17990
17991 2014-05-01 Marek Polacek <polacek@redhat.com>
17992
17993 PR c/43245
17994 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17995
17996 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17997
17998 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17999 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18000 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18001 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18002 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18003 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18004 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18005 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18006
18007 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18008
18009 * config/arc/arc.opt (mlra): Move comment above option name
18010 to avoid mis-parsing as language options.
18011
18012 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18013
18014 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18015 * config/sol2.h: ... here.
18016 * config/sol2-10.h: Remove.
18017
18018 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18019 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18020 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18021 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18022 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18023 * config/sol2.h: ... here.
18024 (SECTION_NAME_FORMAT): Don't redefine.
18025 (STARTFILE_ARCH32_SPEC): Rename to ...
18026 (STARTFILE_ARCH_SPEC): ... this.
18027 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18028 * config/sparc/sol2.h: ... here.
18029 (SECTION_NAME_FORMAT): Don't undef.
18030 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18031 (SUBTARGET_EXTRA_SPECS): Remove.
18032 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18033
18034 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18035 (MD_STARTFILE_PREFIX): Remove.
18036 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18037 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18038 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18039 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18040 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18041 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18042 * config/i386/sol2.h: ... here.
18043 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18044 * config/i386/sol2-bi.h: Remove.
18045 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18046 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18047
18048 * config/i386/t-sol2-64: Rename to ...
18049 * config/i386/t-sol2: ... this.
18050 * config/sparc/t-sol2-64: Rename to ...
18051 * config/sparc/t-sol2: ... this.
18052
18053 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18054 sol2_tm_file_head, sol2_tm_file_tail.
18055 Include ${cpu_type}/sol2.h before sol2.h.
18056 Remove sol2-10.h.
18057 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18058 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18059 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18060 Reflect i386/t-sol2-64 renaming.
18061 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18062 Reflect sparc/t-sol2-64 renaming.
18063
18064 2014-04-30 Richard Biener <rguenther@suse.de>
18065
18066 * passes.c (execute_function_todo): Move TODO_verify_stmts
18067 and TODO_verify_ssa under the TODO_verify_il umbrella.
18068 * tree-ssa.h (verify_ssa): Adjust prototype.
18069 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18070 we should verify SSA operands.
18071 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18072 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18073 whether we should verify whether not throwing stmts have EH info.
18074 * graphite-scop-detection.c (create_sese_edges): Adjust.
18075 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18076 * tree-eh.c (lower_try_finally_switch): Do not add the
18077 default case label twice.
18078
18079 2014-04-30 Marek Polacek <polacek@redhat.com>
18080
18081 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18082 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18083 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18084 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18085
18086 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18087
18088 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18089 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18090 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18091 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18092 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18093 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18094 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18095 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18096
18097 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18098
18099 * tree-cfg.c (dump_function_to_file): Dump the return type of
18100 functions, in a line to itself before the function body, mimicking
18101 the layout of a C function.
18102
18103 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18104
18105 PR tree-optimization/60971
18106 * tree-tailcall.c (process_assignment): Reject conversions which
18107 reduce precision.
18108
18109 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18110
18111 * calls.c (initialize_argument_information): Always treat
18112 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18113 (expand_call): Likewise.
18114 (emit_library_call_calue_1): Likewise.
18115 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18116 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18117 code accordingly.
18118
18119 2014-04-29 Nick Clifton <nickc@redhat.com>
18120
18121 * config/msp430/msp430.md (umulsidi): Fix typo.
18122 (mulhisi3): Enable even inside interrupt handlers.
18123 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18124 bigger return address pushed in large mode.
18125
18126 2014-04-29 Nick Clifton <nickc@redhat.com>
18127
18128 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18129 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18130 available modes.
18131 * config/m32r/m32r.c (init_reg_tables): Likewise.
18132 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18133 enum to hold the modes.
18134
18135 2014-04-29 Richard Biener <rguenther@suse.de>
18136
18137 * dominance.c (free_dominance_info): Add overload with
18138 function parameter.
18139 (dom_info_state): Likewise.
18140 (dom_info_available_p): Likewise.
18141 * basic-block.h (free_dominance_info, dom_info_state,
18142 dom_info_available_p): Declare overloads.
18143 * passes.c (execute_function_todo): Verify that verifiers
18144 don't change dominator info state. Drop dominator info
18145 for IPA pass invocations.
18146 * cgraph.c (release_function_body): Restore asserts that
18147 dominator information is released.
18148
18149 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18150
18151 * doc/invoke.texi: Fix typo.
18152 * tree-vrp.c: Fix typos.
18153 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18154
18155 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18156
18157 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18158
18159 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18160
18161 * config/aarch64/aarch64-builtins.c
18162 (aarch64_types_storestruct_lane_qualifiers): New.
18163 (TYPES_STORESTRUCT_LANE): Likewise.
18164 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18165 (st3_lane): Likewise.
18166 (st4_lane): Likewise.
18167 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18168 (vec_store_lanesci_lane<mode>): Likewise.
18169 (vec_store_lanesxi_lane<mode>): Likewise.
18170 (aarch64_st2_lane<VQ:mode>): Likewise.
18171 (aarch64_st3_lane<VQ:mode>): Likewise.
18172 (aarch64_st4_lane<VQ:mode>): Likewise.
18173 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18174 * config/aarch64/arm_neon.h
18175 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18176 use new macro arguments.
18177 (__ST3_LANE_FUNC): Likewise.
18178 (__ST4_LANE_FUNC): Likewise.
18179 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18180 (V_THREE_ELEM): Likewise.
18181 (V_FOUR_ELEM): Likewise.
18182
18183 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18184
18185 * doc/gimple.texi: Replace the description of the now-defunct
18186 union gimple_statement_d with a diagram showing the
18187 gimple_statement_base class hierarchy and its relationships to
18188 the GSS_ and GIMPLE_ enums.
18189
18190 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18191
18192 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18193 * config/aarch64/aarch64.c
18194 (aarch64_cannot_change_mode_class): Weaken conditions.
18195 (aarch64_modes_tieable_p): New.
18196 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18197
18198 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18199
18200 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18201 (loadsync_<mode>): Change mode.
18202 (load_quadpti, store_quadpti): New.
18203 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18204 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18205
18206 2014-04-28 Martin Jambor <mjambor@suse.cz>
18207
18208 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18209 same alias type as the original statement.
18210 (subreplacement_assignment_data): New type.
18211 (handle_unscalarized_data_in_subtree): New type of parameter,
18212 generate new memory accesses with same alias type as the original
18213 statement.
18214 (load_assign_lhs_subreplacements): Likewise.
18215 (sra_modify_constructor_assign): Generate new memory accesses with
18216 same alias type as the original statement.
18217
18218 2014-04-28 Richard Biener <rguenther@suse.de>
18219
18220 * tree-pass.h (TODO_verify_il): Define.
18221 (TODO_verify_all): Complete properly.
18222 * passes.c (execute_function_todo): Move existing loop-closed
18223 SSA verification under TODO_verify_il.
18224 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18225 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18226 Fix tree sharing issue.
18227
18228 2014-04-28 Richard Biener <rguenther@suse.de>
18229
18230 PR middle-end/60092
18231 * builtins.def (DEF_C11_BUILTIN): Add.
18232 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18233 * coretypes.h (enum function_class): Add function_c11_misc.
18234 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18235 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18236 (call_may_clobber_ref_p_1): Likewise.
18237 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18238 (mark_all_reaching_defs_necessary_1): Likewise.
18239 (propagate_necessity): Likewise.
18240 (eliminate_unnecessary_stmts): Likewise.
18241 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18242
18243 2014-04-28 Richard Biener <rguenther@suse.de>
18244
18245 * tree-vrp.c (vrp_var_may_overflow): Remove.
18246 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18247 with overflow immediately bump to one before that value and
18248 let iteration figure out overflow status.
18249
18250 2014-04-28 Richard Biener <rguenther@suse.de>
18251
18252 * configure.ac: Do valgrind header checks unconditionally.
18253 Add --enable-valgrind-annotations.
18254 * system.h: Guard valgrind header inclusion with
18255 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18256 * alloc-pool.c (pool_alloc, pool_free): Use
18257 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18258 to guard possibly dead code.
18259 * config.in: Regenerated.
18260 * configure: Likewise.
18261
18262 2014-04-28 Jeff Law <law@redhat.com>
18263
18264 PR tree-optimization/60902
18265 * tree-ssa-threadedge.c
18266 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18267 over real defs when invalidating outputs from statements that do not
18268 produce useful outputs for threading.
18269
18270 2014-04-28 Richard Biener <rguenther@suse.de>
18271
18272 PR tree-optimization/60979
18273 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18274 SCOPs that end in a block with a successor with abnormal
18275 predecessors.
18276
18277 2014-04-28 Richard Biener <rguenther@suse.de>
18278
18279 * tree-pass.h (execute_pass_list): Adjust prototype.
18280 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18281 (do_per_function): Change callback signature, push all actual
18282 work to the callbals.
18283 (do_per_function_toporder): Likewise.
18284 (execute_function_dump): Adjust.
18285 (execute_function_todo): Likewise.
18286 (clear_last_verified): Likewise.
18287 (verify_curr_properties): Likewise.
18288 (update_properties_after_pass): Likewise.
18289 (execute_pass_list_1): Split out from ...
18290 (execute_pass_list): ... here. Adjust.
18291 (execute_ipa_pass_list): Likewise.
18292 * cgraphunit.c (cgraph_add_new_function): Adjust.
18293 (analyze_function): Likewise.
18294 (expand_function): Likewise.
18295 * cgraph.c (release_function_body): Free dominance info
18296 here instead of asserting it was magically freed elsewhere.
18297
18298 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18299
18300 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18301 * configure: Regenerate.
18302 * config/sparc/sparc.opt (muser-mode): New option.
18303 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18304 for LEON3.
18305 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18306 * doc/invoke.texi (SPARC options): Document -muser-mode.
18307
18308 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18309
18310 * cselib.c (find_slot_memmode): Delete.
18311 (cselib_hasher): Change compare_type to a struct.
18312 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18313 constants.
18314 (preserve_constants_and_equivs): Adjust for new compare_type.
18315 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18316 (wrap_constant): Delete.
18317 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18318
18319 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18320
18321 * doc/install.texi (Building with profile feedback): Remove
18322 outdated sentence.
18323
18324 2014-04-26 Tom de Vries <tom@codesourcery.com>
18325
18326 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18327 array accesses.
18328
18329 2014-04-25 Cary Coutant <ccoutant@google.com>
18330
18331 PR debug/60929
18332 * dwarf2out.c (should_move_die_to_comdat): A type definition
18333 can contain a subprogram definition, but don't move it to a
18334 comdat unit.
18335 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18336 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18337 from original DIE.
18338 (clone_tree_hash): Rename to...
18339 (clone_tree_partial): ...this; change callers. Copy
18340 DW_TAG_subprogram DIEs as declarations.
18341 (copy_decls_walk): Don't copy children of a declaration into a
18342 type unit.
18343
18344 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18345
18346 PR target/60969
18347 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18348 alternative 12.
18349
18350 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18351
18352 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18353 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18354 reg for long_call.
18355 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18356 restriction.
18357
18358 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18359
18360 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18361
18362 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18363
18364 PR tree-optimization/60930
18365 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18366 creating a multiply candidate by folding two constant
18367 multiplicands when the result overflows.
18368
18369 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18370
18371 PR tree-optimization/60960
18372 * tree-vect-generic.c (expand_vector_operation): Only call
18373 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18374
18375 2014-04-25 Tom de Vries <tom@codesourcery.com>
18376
18377 * expr.c (clobber_reg_mode): New function.
18378 * expr.h (clobber_reg): New function.
18379
18380 2014-04-25 Tom de Vries <tom@codesourcery.com>
18381
18382 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18383 clobbers.
18384
18385 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18386 Tom de Vries <tom@codesourcery.com>
18387
18388 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18389 handle.
18390 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18391 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18392 new argument to find_all_hard_reg_sets call.
18393
18394 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18395
18396 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18397 Use HOST_WIDE_INT_C for mask literal.
18398 (aarch_rev16_shleft_mask_imm_p): Likewise.
18399
18400 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18401
18402 PR target/60941
18403 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18404
18405 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18406
18407 PR preprocessor/56540
18408 * config/i386/i386-c.c (ix86_target_macros): Define
18409 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18410
18411 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18412
18413 * configure.ac (tga_func): Remove.
18414 (LIB_TLS_SPEC): Remove.
18415 * configure: Regenerate.
18416 * config.in: Regenerate.
18417 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18418
18419 2014-04-25 Richard Biener <rguenther@suse.de>
18420
18421 PR ipa/60912
18422 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18423 call stmt use/clobber sets during stmt walk instead of
18424 walking the possibly incomplete set of caller edges.
18425
18426 2014-04-25 Richard Biener <rguenther@suse.de>
18427
18428 PR ipa/60911
18429 * passes.c (apply_ipa_transforms): Inline into only caller ...
18430 (execute_one_pass): ... here. Properly bring in function
18431 bodies for nodes we want to apply IPA transforms to.
18432
18433 2014-04-24 Cong Hou <congh@google.com>
18434
18435 PR tree-optimization/60896
18436 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18437 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18438 (vect_mark_pattern_stmts): Set the def type of all statements in
18439 PATTERN_DEF_SEQ as vect_internal_def.
18440
18441 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18442
18443 * doc/extend.texi (PowerPC Built-in Functions): Document new
18444 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18445 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18446
18447 * config/rs6000/predicates.md (const_0_to_3_operand): New
18448 predicate to match 0..3 integer constants.
18449
18450 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18451 to support adding miscellaneous builtin functions.
18452 (BU_DFP_MISC_2): Likewise.
18453 (BU_P7_MISC_1): Likewise.
18454 (BU_P7_MISC_2): Likewise.
18455 (BU_P8V_MISC_3): Likewise.
18456 (BU_MISC_1): Likewise.
18457 (BU_MISC_2): Likewise.
18458 (DIVWE): Add extended divide builtin functions.
18459 (DIVWEO): Likewise.
18460 (DIVWEU): Likewise.
18461 (DIVWEUO): Likewise.
18462 (DIVDE): Likewise.
18463 (DIVDEO): Likewise.
18464 (DIVDEU): Likewise.
18465 (DIVDEUO): Likewise.
18466 (DXEX): Add decimal floating-point builtin functions.
18467 (DXEXQ): Likewise.
18468 (DDEDPD): Likewise.
18469 (DDEDPDQ): Likewise.
18470 (DENBCD): Likewise.
18471 (DENBCDQ): Likewise.
18472 (DIEX): Likewise.
18473 (DIEXQ): Likewise.
18474 (DSCLI): Likewise.
18475 (DSCLIQ): Likewise.
18476 (DSCRI): Likewise.
18477 (DSCRIQ): Likewise.
18478 (CDTBCD): Add new BCD builtin functions.
18479 (CBCDTD): Likewise.
18480 (ADDG6S): Likewise.
18481 (BCDADD): Likewise.
18482 (BCDADD_LT): Likewise.
18483 (BCDADD_EQ): Likewise.
18484 (BCDADD_GT): Likewise.
18485 (BCDADD_OV): Likewise.
18486 (BCDSUB): Likewise.
18487 (BCDSUB_LT): Likewise.
18488 (BCDSUB_EQ): Likewise.
18489 (BCDSUB_GT): Likewise.
18490 (BCDSUB_OV): Likewise.
18491 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18492 (UNPACK_TD): Likewise.
18493 (PACK_TF): Likewise.
18494 (UNPACK_TF): Likewise.
18495 (UNPACK_TF_0): Likewise.
18496 (UNPACK_TF_1): Likewise.
18497 (PACK_V1TI): Likewise.
18498 (UNPACK_V1TI): Likewise.
18499
18500 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18501 support for decimal floating point builtin functions.
18502 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18503 functions that take constant arguments.
18504 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18505 (rs6000_init_builtins): Setup long double, _Decimal64, and
18506 _Decimal128 types for new builtin functions.
18507 (builtin_function_type): Set the unsigned flags appropriately for
18508 the new builtin functions.
18509 (rs6000_opt_masks): Add support for decimal floating point builtin
18510 functions.
18511
18512 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18513 floating point builtin functions.
18514 (RS6000_BTM_COMMON): Likewise.
18515 (RS6000_BTI_long_double): Likewise.
18516 (RS6000_BTI_dfloat64): Likewise.
18517 (RS6000_BTI_dfloat128): Likewise.
18518 (long_double_type_internal_node): Likewise.
18519 (dfloat64_type_internal_node): Likewise.
18520 (dfloat128_type_internal_node): Likewise.
18521
18522 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18523 2.07 bcd arithmetic instructions.
18524 (UNSPEC_BCDSUB): Likewise.
18525 (UNSPEC_BCD_OVERFLOW): Likewise.
18526 (UNSPEC_BCD_ADD_SUB): Likewise.
18527 (bcd_add_sub): Likewise.
18528 (BCD_TEST): Likewise.
18529 (bcd<bcd_add_sub>): Likewise.
18530 (bcd<bcd_add_sub>_test): Likewise.
18531 (bcd<bcd_add_sub>_test2): Likewise.
18532 (bcd<bcd_add_sub>_<code>): Likewise.
18533 (peephole2 for combined bcd ops): Likewise.
18534
18535 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18536 decimal floating point builtin functions.
18537 (UNSPEC_DENBCD): Likewise.
18538 (UNSPEC_DXEX): Likewise.
18539 (UNSPEC_DIEX): Likewise.
18540 (UNSPEC_DSCLI): Likewise.
18541 (UNSPEC_DSCRI): Likewise.
18542 (D64_D128): Likewise.
18543 (dfp_suffix): Likewise.
18544 (dfp_ddedpd_<mode>): Likewise.
18545 (dfp_denbcd_<mode>): Likewise.
18546 (dfp_dxex_<mode>): Likewise.
18547 (dfp_diex_<mode>): Likewise.
18548 (dfp_dscli_<mode>): Likewise.
18549 (dfp_dscri_<mode>): Likewise.
18550
18551 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18552 builtin functions.
18553 (UNSPEC_CDTBCD): Likewise.
18554 (UNSPEC_CBCDTD): Likewise.
18555 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18556 (UNSPEC_DIVEO): Likewise.
18557 (UNSPEC_DIVEU): Likewise.
18558 (UNSPEC_DIVEUO): Likewise.
18559 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18560 pack/unpack 128-bit types.
18561 (UNSPEC_PACK_128BIT): Likewise.
18562 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18563 (udiv<mode>3): Use idiv_ldiv mode attribute.
18564 (div<mode>3): Likewise.
18565 (addg6s): Add new BCD builtin functions.
18566 (cdtbcd): Likewise.
18567 (cbcdtd): Likewise.
18568 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18569 (div_extend): Likewise.
18570 (div<div_extend>_<mode>"): Likewise.
18571 (FP128_64): Add support for new builtin functions to pack/unpack
18572 128-bit types.
18573 (unpack<mode>): Likewise.
18574 (unpacktf_0): Likewise.
18575 (unpacktf_1): Likewise.
18576 (unpack<mode>_dm): Likewise.
18577 (unpack<mode>_nodm): Likewise.
18578 (pack<mode>): Likewise.
18579 (unpackv1ti): Likewise.
18580 (packv1ti): Likewise.
18581
18582 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18583
18584 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18585 is disabled.
18586
18587 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18588
18589 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18590 * gimplify.c (omp_is_private): Change last argument's type to int.
18591 Only diagnose lastprivate if the simd argument is 1, only diagnose
18592 linear if the simd argument is 2.
18593 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18594 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18595 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18596 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18597 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18598 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18599 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18600 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18601 * tree-nested.c (convert_nonlocal_omp_clauses,
18602 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18603
18604 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18605
18606 PR target/60822
18607 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18608 operand 1.
18609
18610 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18611
18612 * flag-types.h (enum ivar_visibility): Add.
18613
18614 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18615
18616 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18617 function * argument.
18618
18619 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18620
18621 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18622
18623 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18624 Tom de Vries <tom@codesourcery.com>
18625
18626 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18627 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18628 reg-note.
18629 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18630 * emit-rtl.c (try_split): Same.
18631
18632 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18633 Tom de Vries <tom@codesourcery.com>
18634
18635 * common.opt (fuse-caller-save): New option.
18636
18637 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18638
18639 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18640 elements for big-endian.
18641
18642 2014-04-24 Richard Biener <rguenther@suse.de>
18643
18644 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18645 during TER and instead use the sepops interface for expanding
18646 non-GIMPLE_SINGLE_RHS.
18647
18648 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18649
18650 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18651 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18652
18653 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18654
18655 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18656 assembler 64-bit option.
18657 * configure: Regenerate.
18658
18659 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18660
18661 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18662 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18663 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18664 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18665 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18666
18667 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18668
18669 * config/aarch64/aarch64-builtins.c
18670 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18671 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18672 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18673 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18674 builtins.
18675 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18676 (Vrevsuff): New mode attribute.
18677
18678 2014-04-24 Terry Guo <terry.guo@arm.com>
18679
18680 * config/arm/arm.h (machine_function): Define variable
18681 after_arm_reorg here.
18682 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18683 (arm_split_constant): Update the way to access variable
18684 after_arm_reorg.
18685 (arm_reorg): Ditto.
18686 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18687
18688 2014-04-23 Tom de Vries <tom@codesourcery.com>
18689
18690 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18691
18692 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18693
18694 * is-a.h: Update comments to reflect the following changes to the
18695 "pointerness" of the API, making the template parameter match the
18696 return type, allowing use of is-a.h with typedefs of pointers.
18697 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18698 that the return type matches the parameter to the is_a_helper.
18699 (as_a): Likewise.
18700 (dyn_cast): Likewise.
18701
18702 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18703 pointer from the is-a.h API.
18704
18705 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18706 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18707 is-a.h API.
18708 (is_a_helper <varpool_node>::test): Likewise, convert to...
18709 (is_a_helper <varpool_node *>::test): ...this.
18710
18711 (varpool_first_variable): Update for removal of implicit pointer
18712 from the is-a.h API.
18713 (varpool_next_variable): Likewise.
18714 (varpool_first_static_initializer): Likewise.
18715 (varpool_next_static_initializer): Likewise.
18716 (varpool_first_defined_variable): Likewise.
18717 (varpool_next_defined_variable): Likewise.
18718 (cgraph_first_defined_function): Likewise.
18719 (cgraph_next_defined_function): Likewise.
18720 (cgraph_first_function): Likewise.
18721 (cgraph_next_function): Likewise.
18722 (cgraph_first_function_with_gimple_body): Likewise.
18723 (cgraph_next_function_with_gimple_body): Likewise.
18724 (cgraph_alias_target): Likewise.
18725 (varpool_alias_target): Likewise.
18726 (cgraph_function_or_thunk_node): Likewise.
18727 (varpool_variable_node): Likewise.
18728 (symtab_real_symbol_p): Likewise.
18729 * cgraphunit.c (referred_to_p): Likewise.
18730 (analyze_functions): Likewise.
18731 (handle_alias_pairs): Likewise.
18732 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18733 * gimple-ssa.h (gimple_vuse_op): Likewise.
18734 (gimple_vdef_op): Likewise.
18735 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18736 * gimple.c (gimple_build_asm_1): Likewise.
18737 (gimple_build_try): Likewise.
18738 (gimple_build_resx): Likewise.
18739 (gimple_build_eh_dispatch): Likewise.
18740 (gimple_build_omp_for): Likewise.
18741 (gimple_omp_for_set_clauses): Likewise.
18742
18743 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18744 (is_a_helper <gimple_statement_asm *>::test): ...this.
18745 (is_a_helper <gimple_statement_bind>::test): Convert to...
18746 (is_a_helper <gimple_statement_bind *>::test): ...this.
18747 (is_a_helper <gimple_statement_call>::test): Convert to...
18748 (is_a_helper <gimple_statement_call *>::test): ...this.
18749 (is_a_helper <gimple_statement_catch>::test): Convert to...
18750 (is_a_helper <gimple_statement_catch *>::test): ...this.
18751 (is_a_helper <gimple_statement_resx>::test): Convert to...
18752 (is_a_helper <gimple_statement_resx *>::test): ...this.
18753 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18754 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18755 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18756 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18757 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18758 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18759 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18760 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18761 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18762 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18763 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18764 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18765 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18766 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18767 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18768 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18769 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18770 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18771 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18772 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18773 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18774 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18775 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18776 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18777 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18778 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18779 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18780 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18781 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18782 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18783 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18784 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18785 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18786 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18787 (is_a_helper <gimple_statement_phi>::test): Convert to...
18788 (is_a_helper <gimple_statement_phi *>::test): ...this.
18789 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18790 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18791 (is_a_helper <gimple_statement_try>::test): Convert to...
18792 (is_a_helper <gimple_statement_try *>::test): ...this.
18793 (is_a_helper <gimple_statement_wce>::test): Convert to...
18794 (is_a_helper <gimple_statement_wce *>::test): ...this.
18795 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18796 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18797 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18798 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18799 (is_a_helper <const gimple_statement_call>::test): Convert to...
18800 (is_a_helper <const gimple_statement_call *>::test): ...this.
18801 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18802 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18803 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18804 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18805 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18806 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18807 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18808 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18809 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18810 Convert to...
18811 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18812 ...this.
18813 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18814 Convert to...
18815 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18816 ...this.
18817 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18818 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18819 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18820 to...
18821 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18822 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18823 to...
18824 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18825 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18826 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18827 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18828 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18829 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18830 to...
18831 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18832 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18833 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18834 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18835 to...
18836 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18837 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18838 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18839 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18840 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18841 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18842 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18843 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18844 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18845 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18846 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18847 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18848 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18849 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18850 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18851 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18852 to...
18853 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18854 ...this.
18855 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18856 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18857
18858 (gimple_use_ops): Update for removal of implicit pointer from the
18859 is-a.h API.
18860 (gimple_set_use_ops): Likewise.
18861 (gimple_vuse): Likewise.
18862 (gimple_vdef): Likewise.
18863 (gimple_vuse_ptr): Likewise.
18864 (gimple_vdef_ptr): Likewise.
18865 (gimple_set_vuse): Likewise.
18866 (gimple_set_vdef): Likewise.
18867 (gimple_omp_return_set_lhs): Likewise.
18868 (gimple_omp_return_lhs): Likewise.
18869 (gimple_omp_return_lhs_ptr): Likewise.
18870 (gimple_call_fntype): Likewise.
18871 (gimple_call_set_fntype): Likewise.
18872 (gimple_call_set_internal_fn): Likewise.
18873 (gimple_call_use_set): Likewise.
18874 (gimple_call_clobber_set): Likewise.
18875 (gimple_bind_vars): Likewise.
18876 (gimple_bind_set_vars): Likewise.
18877 (gimple_bind_body_ptr): Likewise.
18878 (gimple_bind_set_body): Likewise.
18879 (gimple_bind_add_stmt): Likewise.
18880 (gimple_bind_block): Likewise.
18881 (gimple_bind_set_block): Likewise.
18882 (gimple_asm_ninputs): Likewise.
18883 (gimple_asm_noutputs): Likewise.
18884 (gimple_asm_nclobbers): Likewise.
18885 (gimple_asm_nlabels): Likewise.
18886 (gimple_asm_input_op): Likewise.
18887 (gimple_asm_input_op_ptr): Likewise.
18888 (gimple_asm_output_op): Likewise.
18889 (gimple_asm_output_op_ptr): Likewise.
18890 (gimple_asm_set_output_op): Likewise.
18891 (gimple_asm_clobber_op): Likewise.
18892 (gimple_asm_set_clobber_op): Likewise.
18893 (gimple_asm_label_op): Likewise.
18894 (gimple_asm_set_label_op): Likewise.
18895 (gimple_asm_string): Likewise.
18896 (gimple_catch_types): Likewise.
18897 (gimple_catch_types_ptr): Likewise.
18898 (gimple_catch_handler_ptr): Likewise.
18899 (gimple_catch_set_types): Likewise.
18900 (gimple_catch_set_handler): Likewise.
18901 (gimple_eh_filter_types): Likewise.
18902 (gimple_eh_filter_types_ptr): Likewise.
18903 (gimple_eh_filter_failure_ptr): Likewise.
18904 (gimple_eh_filter_set_types): Likewise.
18905 (gimple_eh_filter_set_failure): Likewise.
18906 (gimple_eh_must_not_throw_fndecl): Likewise.
18907 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18908 (gimple_eh_else_n_body_ptr): Likewise.
18909 (gimple_eh_else_e_body_ptr): Likewise.
18910 (gimple_eh_else_set_n_body): Likewise.
18911 (gimple_eh_else_set_e_body): Likewise.
18912 (gimple_try_eval_ptr): Likewise.
18913 (gimple_try_cleanup_ptr): Likewise.
18914 (gimple_try_set_eval): Likewise.
18915 (gimple_try_set_cleanup): Likewise.
18916 (gimple_wce_cleanup_ptr): Likewise.
18917 (gimple_wce_set_cleanup): Likewise.
18918 (gimple_phi_capacity): Likewise.
18919 (gimple_phi_num_args): Likewise.
18920 (gimple_phi_result): Likewise.
18921 (gimple_phi_result_ptr): Likewise.
18922 (gimple_phi_set_result): Likewise.
18923 (gimple_phi_arg): Likewise.
18924 (gimple_phi_set_arg): Likewise.
18925 (gimple_resx_region): Likewise.
18926 (gimple_resx_set_region): Likewise.
18927 (gimple_eh_dispatch_region): Likewise.
18928 (gimple_eh_dispatch_set_region): Likewise.
18929 (gimple_omp_critical_name): Likewise.
18930 (gimple_omp_critical_name_ptr): Likewise.
18931 (gimple_omp_critical_set_name): Likewise.
18932 (gimple_omp_for_clauses): Likewise.
18933 (gimple_omp_for_clauses_ptr): Likewise.
18934 (gimple_omp_for_set_clauses): Likewise.
18935 (gimple_omp_for_collapse): Likewise.
18936 (gimple_omp_for_index): Likewise.
18937 (gimple_omp_for_index_ptr): Likewise.
18938 (gimple_omp_for_set_index): Likewise.
18939 (gimple_omp_for_initial): Likewise.
18940 (gimple_omp_for_initial_ptr): Likewise.
18941 (gimple_omp_for_set_initial): Likewise.
18942 (gimple_omp_for_final): Likewise.
18943 (gimple_omp_for_final_ptr): Likewise.
18944 (gimple_omp_for_set_final): Likewise.
18945 (gimple_omp_for_incr): Likewise.
18946 (gimple_omp_for_incr_ptr): Likewise.
18947 (gimple_omp_for_set_incr): Likewise.
18948 (gimple_omp_for_pre_body_ptr): Likewise.
18949 (gimple_omp_for_set_pre_body): Likewise.
18950 (gimple_omp_parallel_clauses): Likewise.
18951 (gimple_omp_parallel_clauses_ptr): Likewise.
18952 (gimple_omp_parallel_set_clauses): Likewise.
18953 (gimple_omp_parallel_child_fn): Likewise.
18954 (gimple_omp_parallel_child_fn_ptr): Likewise.
18955 (gimple_omp_parallel_set_child_fn): Likewise.
18956 (gimple_omp_parallel_data_arg): Likewise.
18957 (gimple_omp_parallel_data_arg_ptr): Likewise.
18958 (gimple_omp_parallel_set_data_arg): Likewise.
18959 (gimple_omp_task_clauses): Likewise.
18960 (gimple_omp_task_clauses_ptr): Likewise.
18961 (gimple_omp_task_set_clauses): Likewise.
18962 (gimple_omp_task_child_fn): Likewise.
18963 (gimple_omp_task_child_fn_ptr): Likewise.
18964 (gimple_omp_task_set_child_fn): Likewise.
18965 (gimple_omp_task_data_arg): Likewise.
18966 (gimple_omp_task_data_arg_ptr): Likewise.
18967 (gimple_omp_task_set_data_arg): Likewise.
18968 (gimple_omp_taskreg_clauses): Likewise.
18969 (gimple_omp_taskreg_clauses_ptr): Likewise.
18970 (gimple_omp_taskreg_set_clauses): Likewise.
18971 (gimple_omp_taskreg_child_fn): Likewise.
18972 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18973 (gimple_omp_taskreg_set_child_fn): Likewise.
18974 (gimple_omp_taskreg_data_arg): Likewise.
18975 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18976 (gimple_omp_taskreg_set_data_arg): Likewise.
18977 (gimple_omp_task_copy_fn): Likewise.
18978 (gimple_omp_task_copy_fn_ptr): Likewise.
18979 (gimple_omp_task_set_copy_fn): Likewise.
18980 (gimple_omp_task_arg_size): Likewise.
18981 (gimple_omp_task_arg_size_ptr): Likewise.
18982 (gimple_omp_task_set_arg_size): Likewise.
18983 (gimple_omp_task_arg_align): Likewise.
18984 (gimple_omp_task_arg_align_ptr): Likewise.
18985 (gimple_omp_task_set_arg_align): Likewise.
18986 (gimple_omp_single_clauses): Likewise.
18987 (gimple_omp_single_clauses_ptr): Likewise.
18988 (gimple_omp_single_set_clauses): Likewise.
18989 (gimple_omp_target_clauses): Likewise.
18990 (gimple_omp_target_clauses_ptr): Likewise.
18991 (gimple_omp_target_set_clauses): Likewise.
18992 (gimple_omp_target_child_fn): Likewise.
18993 (gimple_omp_target_child_fn_ptr): Likewise.
18994 (gimple_omp_target_set_child_fn): Likewise.
18995 (gimple_omp_target_data_arg): Likewise.
18996 (gimple_omp_target_data_arg_ptr): Likewise.
18997 (gimple_omp_target_set_data_arg): Likewise.
18998 (gimple_omp_teams_clauses): Likewise.
18999 (gimple_omp_teams_clauses_ptr): Likewise.
19000 (gimple_omp_teams_set_clauses): Likewise.
19001 (gimple_omp_sections_clauses): Likewise.
19002 (gimple_omp_sections_clauses_ptr): Likewise.
19003 (gimple_omp_sections_set_clauses): Likewise.
19004 (gimple_omp_sections_control): Likewise.
19005 (gimple_omp_sections_control_ptr): Likewise.
19006 (gimple_omp_sections_set_control): Likewise.
19007 (gimple_omp_for_set_cond): Likewise.
19008 (gimple_omp_for_cond): Likewise.
19009 (gimple_omp_atomic_store_set_val): Likewise.
19010 (gimple_omp_atomic_store_val): Likewise.
19011 (gimple_omp_atomic_store_val_ptr): Likewise.
19012 (gimple_omp_atomic_load_set_lhs): Likewise.
19013 (gimple_omp_atomic_load_lhs): Likewise.
19014 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19015 (gimple_omp_atomic_load_set_rhs): Likewise.
19016 (gimple_omp_atomic_load_rhs): Likewise.
19017 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19018 (gimple_omp_continue_control_def): Likewise.
19019 (gimple_omp_continue_control_def_ptr): Likewise.
19020 (gimple_omp_continue_set_control_def): Likewise.
19021 (gimple_omp_continue_control_use): Likewise.
19022 (gimple_omp_continue_control_use_ptr): Likewise.
19023 (gimple_omp_continue_set_control_use): Likewise.
19024 (gimple_transaction_body_ptr): Likewise.
19025 (gimple_transaction_label): Likewise.
19026 (gimple_transaction_label_ptr): Likewise.
19027 (gimple_transaction_set_body): Likewise.
19028 (gimple_transaction_set_label): Likewise.
19029
19030 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19031 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19032 * ipa-ref.c (ipa_record_reference): Likewise.
19033 * ipa-reference.c (analyze_function): Likewise.
19034 (ipa_reference_write_optimization_summary): Likewise.
19035 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19036 (address_taken_from_non_vtable_p): Likewise.
19037 (comdat_can_be_unshared_p_1): Likewise.
19038 * lto-cgraph.c (lto_output_ref): Likewise.
19039 (add_references): Likewise.
19040 (compute_ltrans_boundary): Likewise.
19041 (output_symtab): Likewise.
19042 (input_ref): Likewise.
19043 (input_cgraph_1): Likewise.
19044 (output_cgraph_opt_summary): Likewise.
19045 * lto-streamer-out.c (lto_output): Likewise.
19046 (output_symbol_p): Likewise.
19047 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19048 (lsei_start_function_in_partition): Likewise.
19049 (lsei_next_variable_in_partition): Likewise.
19050 (lsei_start_variable_in_partition): Likewise.
19051 * symtab.c (insert_to_assembler_name_hash): Likewise.
19052 (unlink_from_assembler_name_hash): Likewise.
19053 (symtab_unregister_node): Likewise.
19054 (symtab_remove_node): Likewise.
19055 (dump_symtab_node): Likewise.
19056 (verify_symtab_base): Likewise.
19057 (verify_symtab_node): Likewise.
19058 (symtab_make_decl_local): Likewise.
19059 (symtab_alias_ultimate_target): Likewise.
19060 (symtab_resolve_alias): Likewise.
19061 (symtab_get_symbol_partitioning_class): Likewise.
19062 * tree-phinodes.c (allocate_phi_node): Likewise.
19063 (reserve_phi_args_for_new_edge): Likewise.
19064 (remove_phi_args): Likewise.
19065 * varpool.c (varpool_node_for_asm): Likewise.
19066 (varpool_remove_unreferenced_decls): Likewise.
19067
19068 2014-04-23 Jeff Law <law@redhat.com>
19069
19070 PR tree-optimization/60902
19071 * tree-ssa-threadedge.c
19072 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19073 invalidate outputs from statements that do not produce useful
19074 outputs for threading.
19075
19076 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19077
19078 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19079 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19080 machine descriptions for Stack Smashing Protector.
19081
19082 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19083
19084 * aarch64.md (<optab>_rol<mode>3): New pattern.
19085 (<optab>_rolsi3_uxtw): Likewise.
19086 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19087
19088 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19089
19090 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19091 (arm_cortex_a12_tune): Likewise.
19092
19093 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19094
19095 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19096
19097 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19098
19099 * config/arm/arm.md (arm_rev16si2): New pattern.
19100 (arm_rev16si2_alt): Likewise.
19101 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19102
19103 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19104
19105 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19106 (rev16<mode>2_alt): Likewise.
19107 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19108 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19109 (aarch_rev16_shleft_mask_imm_p): Likewise.
19110 (aarch_rev16_p_1): Likewise.
19111 (aarch_rev16_p): Likewise.
19112 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19113 (aarch_rev16_shright_mask_imm_p): Likewise.
19114 (aarch_rev16_shleft_mask_imm_p): Likewise.
19115
19116 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19117
19118 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19119 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19120 rev cost.
19121 (cortex_a53_extra_costs): Likewise.
19122 (cortex_a57_extra_costs): Likewise.
19123 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19124 (cortexa7_extra_costs): Likewise.
19125 (cortexa8_extra_costs): Likewise.
19126 (cortexa12_extra_costs): Likewise.
19127 (cortexa15_extra_costs): Likewise.
19128 (v7m_extra_costs): Likewise.
19129 (arm_new_rtx_costs): Handle BSWAP.
19130
19131 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19132
19133 * config/arm/arm.c (cortexa8_extra_costs): New table.
19134 (arm_cortex_a8_tune): New tuning struct.
19135 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19136
19137 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19138
19139 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19140
19141 2014-04-23 Richard Biener <rguenther@suse.de>
19142
19143 * Makefile.in (OBJS): Remove loop-unswitch.o.
19144 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19145 * passes.def (pass_rtl_unswitch): Likewise.
19146 * loop-init.c (gate_rtl_unswitch): Likewise.
19147 (rtl_unswitch): Likewise.
19148 (pass_data_rtl_unswitch): Likewise.
19149 (pass_rtl_unswitch): Likewise.
19150 (make_pass_rtl_unswitch): Likewise.
19151 * rtl.h (reversed_condition): Likewise.
19152 (compare_and_jump_seq): Likewise.
19153 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19154 and make static.
19155 * loop-unroll.c (compare_and_jump_seq): Likewise.
19156
19157 2014-04-23 Richard Biener <rguenther@suse.de>
19158
19159 PR tree-optimization/60903
19160 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19161 commented code block.
19162 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19163 loop flags to newly created BBs and edges.
19164
19165 2014-04-23 Nick Clifton <nickc@redhat.com>
19166
19167 * config/msp430/msp430.c (msp430_handle_option): Move function
19168 to msp430-common.c
19169 (msp430_option_override): Simplify mcu and mcpu option handling.
19170 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19171 support for -mhwmult command line option.
19172 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19173 -mhwmult command line option.
19174 (msp430_hwmult_enabled): Delete.
19175 (msp43o_output_labelref): Add support for -mhwmult command line option.
19176 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19177 (umulsidi3): Likewise.
19178 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19179 (mcpu, mlarge, msmall): Likewise.
19180 (mhwmult): New option.
19181 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19182 prototype.
19183 (msp430_is_f5_mcu): Remove prototype.
19184 (msp430_use_f5_series_hwmult): Add prototype.
19185 * config/msp430/msp430-opts.h: New file.
19186 * common/config/msp430: New directory.
19187 * common/config/msp430/msp430-common.c: New file.
19188 * config.gcc (msp430): Remove target_has_targetm_common.
19189 * doc/invoke.texi: Document -mhwmult command line option.
19190
19191 2014-04-23 Nick Clifton <nickc@redhat.com>
19192
19193 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19194 default-manifest.o if it can be found in the search path.
19195 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19196
19197 2014-04-23 Terry Guo <terry.guo@arm.com>
19198
19199 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19200
19201 2014-04-23 Richard Biener <rguenther@suse.de>
19202
19203 PR middle-end/60895
19204 * tree-inline.c (declare_return_variable): Use mark_addressable.
19205
19206 2014-04-23 Richard Biener <rguenther@suse.de>
19207
19208 PR middle-end/60891
19209 * loop-init.c (loop_optimizer_init): Make sure to apply
19210 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19211
19212 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19213
19214 PR sanitizer/60275
19215 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19216 New options.
19217 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19218 if flag_sanitize_undefined_trap_on_error.
19219 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19220 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19221 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19222 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19223 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19224 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19225 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19226 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19227 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19228 * ubsan.c (ubsan_instrument_unreachable): Return
19229 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19230 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19231 if flag_sanitize_undefined_trap_on_error and
19232 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19233 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19234 instrument_bool_enum_load): Emit __builtin_trap () if
19235 flag_sanitize_undefined_trap_on_error and
19236 __builtin_handle_*_abort () if !flag_sanitize_recover.
19237 * doc/invoke.texi (-fsanitize-recover,
19238 -fsanitize-undefined-trap-on-error): Document.
19239
19240 2014-04-22 Christian Bruel <christian.bruel@st.com>
19241
19242 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19243 Force immediates to SImode.
19244
19245 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19246
19247 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19248 (lroundsfsi2): New.
19249 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19250 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19251 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19252 (nios2_fpu_insn): Add entry for round.
19253 (N2FPU_NO_ERRNO_P): Define.
19254 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19255 flag_errno_math.
19256 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19257
19258 2014-04-22 Richard Henderson <rth@redhat.com>
19259
19260 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19261 (add<GPI>3_compare0): Remove leading * from name.
19262 (add<GPI>3_carryin): Likewise.
19263 (sub<GPI>3_compare0): Likewise.
19264 (sub<GPI>3_carryin): Likewise.
19265 (<su_optab>mulditi3): New expander.
19266 (multi3): New expander.
19267 (madd<GPI>): Remove leading * from name.
19268
19269 2014-04-22 Martin Jambor <mjambor@suse.cz>
19270
19271 * cgraphclones.c (cgraph_function_versioning): Copy
19272 ipa_transforms_to_apply instead of asserting it is empty.
19273
19274 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19275
19276 PR target/60868
19277 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19278 on count_exp to get mode.
19279
19280 2014-04-22 Andrew Pinski <apinski@cavium.com>
19281
19282 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19283 Handle TLS for ILP32.
19284 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19285 (tlsie_small_<mode>): this and handle PTR.
19286 (tlsie_small_sidi): New pattern.
19287 (tlsle_small): Change to an expand to handle ILP32.
19288 (tlsle_small_<mode>): New pattern.
19289 (tlsdesc_small): Rename to ...
19290 (tlsdesc_small_<mode>): this and handle PTR.
19291
19292 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19293
19294 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19295
19296 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19297
19298 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19299 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19300 (aarch64_types_signed_poly_qualifiers): Likewise.
19301 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19302 (aarch64_types_poly_signed_qualifiers): Likewise.
19303 (TYPES_REINTERP_SS): Type macro added.
19304 (TYPES_REINTERP_SU): Likewise.
19305 (TYPES_REINTERP_SP): Likewise.
19306 (TYPES_REINTERP_US): Likewise.
19307 (TYPES_REINTERP_PS): Likewise.
19308 (aarch64_fold_builtin): New expression folding added.
19309 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19310 Declarations removed.
19311 (REINTERP_SS): Declarations added.
19312 (REINTERP_US): Likewise.
19313 (REINTERP_PS): Likewise.
19314 (REINTERP_SU): Likewise.
19315 (REINTERP_SP): Likewise.
19316 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19317 (vreinterpretq_p8_f64): Likewise.
19318 (vreinterpret_p16_f64): Likewise.
19319 (vreinterpretq_p16_f64): Likewise.
19320 (vreinterpret_f32_f64): Likewise.
19321 (vreinterpretq_f32_f64): Likewise.
19322 (vreinterpret_f64_f32): Likewise.
19323 (vreinterpret_f64_p8): Likewise.
19324 (vreinterpret_f64_p16): Likewise.
19325 (vreinterpret_f64_s8): Likewise.
19326 (vreinterpret_f64_s16): Likewise.
19327 (vreinterpret_f64_s32): Likewise.
19328 (vreinterpret_f64_s64): Likewise.
19329 (vreinterpret_f64_u8): Likewise.
19330 (vreinterpret_f64_u16): Likewise.
19331 (vreinterpret_f64_u32): Likewise.
19332 (vreinterpret_f64_u64): Likewise.
19333 (vreinterpretq_f64_f32): Likewise.
19334 (vreinterpretq_f64_p8): Likewise.
19335 (vreinterpretq_f64_p16): Likewise.
19336 (vreinterpretq_f64_s8): Likewise.
19337 (vreinterpretq_f64_s16): Likewise.
19338 (vreinterpretq_f64_s32): Likewise.
19339 (vreinterpretq_f64_s64): Likewise.
19340 (vreinterpretq_f64_u8): Likewise.
19341 (vreinterpretq_f64_u16): Likewise.
19342 (vreinterpretq_f64_u32): Likewise.
19343 (vreinterpretq_f64_u64): Likewise.
19344 (vreinterpret_s64_f64): Likewise.
19345 (vreinterpretq_s64_f64): Likewise.
19346 (vreinterpret_u64_f64): Likewise.
19347 (vreinterpretq_u64_f64): Likewise.
19348 (vreinterpret_s8_f64): Likewise.
19349 (vreinterpretq_s8_f64): Likewise.
19350 (vreinterpret_s16_f64): Likewise.
19351 (vreinterpretq_s16_f64): Likewise.
19352 (vreinterpret_s32_f64): Likewise.
19353 (vreinterpretq_s32_f64): Likewise.
19354 (vreinterpret_u8_f64): Likewise.
19355 (vreinterpretq_u8_f64): Likewise.
19356 (vreinterpret_u16_f64): Likewise.
19357 (vreinterpretq_u16_f64): Likewise.
19358 (vreinterpret_u32_f64): Likewise.
19359 (vreinterpretq_u32_f64): Likewise.
19360
19361 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19362
19363 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19364 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19365 (vreinterpret_p8_s8): Likewise.
19366 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19367 (vreinterpret_p8_s16): Likewise.
19368 (vreinterpret_p8_s32): Likewise.
19369 (vreinterpret_p8_s64): Likewise.
19370 (vreinterpret_p8_f32): Likewise.
19371 (vreinterpret_p8_u8): Likewise.
19372 (vreinterpret_p8_u16): Likewise.
19373 (vreinterpret_p8_u32): Likewise.
19374 (vreinterpret_p8_u64): Likewise.
19375 (vreinterpret_p8_p16): Likewise.
19376 (vreinterpretq_p8_s8): Likewise.
19377 (vreinterpretq_p8_s16): Likewise.
19378 (vreinterpretq_p8_s32): Likewise.
19379 (vreinterpretq_p8_s64): Likewise.
19380 (vreinterpretq_p8_f32): Likewise.
19381 (vreinterpretq_p8_u8): Likewise.
19382 (vreinterpretq_p8_u16): Likewise.
19383 (vreinterpretq_p8_u32): Likewise.
19384 (vreinterpretq_p8_u64): Likewise.
19385 (vreinterpretq_p8_p16): Likewise.
19386 (vreinterpret_p16_s8): Likewise.
19387 (vreinterpret_p16_s16): Likewise.
19388 (vreinterpret_p16_s32): Likewise.
19389 (vreinterpret_p16_s64): Likewise.
19390 (vreinterpret_p16_f32): Likewise.
19391 (vreinterpret_p16_u8): Likewise.
19392 (vreinterpret_p16_u16): Likewise.
19393 (vreinterpret_p16_u32): Likewise.
19394 (vreinterpret_p16_u64): Likewise.
19395 (vreinterpret_p16_p8): Likewise.
19396 (vreinterpretq_p16_s8): Likewise.
19397 (vreinterpretq_p16_s16): Likewise.
19398 (vreinterpretq_p16_s32): Likewise.
19399 (vreinterpretq_p16_s64): Likewise.
19400 (vreinterpretq_p16_f32): Likewise.
19401 (vreinterpretq_p16_u8): Likewise.
19402 (vreinterpretq_p16_u16): Likewise.
19403 (vreinterpretq_p16_u32): Likewise.
19404 (vreinterpretq_p16_u64): Likewise.
19405 (vreinterpretq_p16_p8): Likewise.
19406 (vreinterpret_f32_s8): Likewise.
19407 (vreinterpret_f32_s16): Likewise.
19408 (vreinterpret_f32_s32): Likewise.
19409 (vreinterpret_f32_s64): Likewise.
19410 (vreinterpret_f32_u8): Likewise.
19411 (vreinterpret_f32_u16): Likewise.
19412 (vreinterpret_f32_u32): Likewise.
19413 (vreinterpret_f32_u64): Likewise.
19414 (vreinterpret_f32_p8): Likewise.
19415 (vreinterpret_f32_p16): Likewise.
19416 (vreinterpretq_f32_s8): Likewise.
19417 (vreinterpretq_f32_s16): Likewise.
19418 (vreinterpretq_f32_s32): Likewise.
19419 (vreinterpretq_f32_s64): Likewise.
19420 (vreinterpretq_f32_u8): Likewise.
19421 (vreinterpretq_f32_u16): Likewise.
19422 (vreinterpretq_f32_u32): Likewise.
19423 (vreinterpretq_f32_u64): Likewise.
19424 (vreinterpretq_f32_p8): Likewise.
19425 (vreinterpretq_f32_p16): Likewise.
19426 (vreinterpret_s64_s8): Likewise.
19427 (vreinterpret_s64_s16): Likewise.
19428 (vreinterpret_s64_s32): Likewise.
19429 (vreinterpret_s64_f32): Likewise.
19430 (vreinterpret_s64_u8): Likewise.
19431 (vreinterpret_s64_u16): Likewise.
19432 (vreinterpret_s64_u32): Likewise.
19433 (vreinterpret_s64_u64): Likewise.
19434 (vreinterpret_s64_p8): Likewise.
19435 (vreinterpret_s64_p16): Likewise.
19436 (vreinterpretq_s64_s8): Likewise.
19437 (vreinterpretq_s64_s16): Likewise.
19438 (vreinterpretq_s64_s32): Likewise.
19439 (vreinterpretq_s64_f32): Likewise.
19440 (vreinterpretq_s64_u8): Likewise.
19441 (vreinterpretq_s64_u16): Likewise.
19442 (vreinterpretq_s64_u32): Likewise.
19443 (vreinterpretq_s64_u64): Likewise.
19444 (vreinterpretq_s64_p8): Likewise.
19445 (vreinterpretq_s64_p16): Likewise.
19446 (vreinterpret_u64_s8): Likewise.
19447 (vreinterpret_u64_s16): Likewise.
19448 (vreinterpret_u64_s32): Likewise.
19449 (vreinterpret_u64_s64): Likewise.
19450 (vreinterpret_u64_f32): Likewise.
19451 (vreinterpret_u64_u8): Likewise.
19452 (vreinterpret_u64_u16): Likewise.
19453 (vreinterpret_u64_u32): Likewise.
19454 (vreinterpret_u64_p8): Likewise.
19455 (vreinterpret_u64_p16): Likewise.
19456 (vreinterpretq_u64_s8): Likewise.
19457 (vreinterpretq_u64_s16): Likewise.
19458 (vreinterpretq_u64_s32): Likewise.
19459 (vreinterpretq_u64_s64): Likewise.
19460 (vreinterpretq_u64_f32): Likewise.
19461 (vreinterpretq_u64_u8): Likewise.
19462 (vreinterpretq_u64_u16): Likewise.
19463 (vreinterpretq_u64_u32): Likewise.
19464 (vreinterpretq_u64_p8): Likewise.
19465 (vreinterpretq_u64_p16): Likewise.
19466 (vreinterpret_s8_s16): Likewise.
19467 (vreinterpret_s8_s32): Likewise.
19468 (vreinterpret_s8_s64): Likewise.
19469 (vreinterpret_s8_f32): Likewise.
19470 (vreinterpret_s8_u8): Likewise.
19471 (vreinterpret_s8_u16): Likewise.
19472 (vreinterpret_s8_u32): Likewise.
19473 (vreinterpret_s8_u64): Likewise.
19474 (vreinterpret_s8_p8): Likewise.
19475 (vreinterpret_s8_p16): Likewise.
19476 (vreinterpretq_s8_s16): Likewise.
19477 (vreinterpretq_s8_s32): Likewise.
19478 (vreinterpretq_s8_s64): Likewise.
19479 (vreinterpretq_s8_f32): Likewise.
19480 (vreinterpretq_s8_u8): Likewise.
19481 (vreinterpretq_s8_u16): Likewise.
19482 (vreinterpretq_s8_u32): Likewise.
19483 (vreinterpretq_s8_u64): Likewise.
19484 (vreinterpretq_s8_p8): Likewise.
19485 (vreinterpretq_s8_p16): Likewise.
19486 (vreinterpret_s16_s8): Likewise.
19487 (vreinterpret_s16_s32): Likewise.
19488 (vreinterpret_s16_s64): Likewise.
19489 (vreinterpret_s16_f32): Likewise.
19490 (vreinterpret_s16_u8): Likewise.
19491 (vreinterpret_s16_u16): Likewise.
19492 (vreinterpret_s16_u32): Likewise.
19493 (vreinterpret_s16_u64): Likewise.
19494 (vreinterpret_s16_p8): Likewise.
19495 (vreinterpret_s16_p16): Likewise.
19496 (vreinterpretq_s16_s8): Likewise.
19497 (vreinterpretq_s16_s32): Likewise.
19498 (vreinterpretq_s16_s64): Likewise.
19499 (vreinterpretq_s16_f32): Likewise.
19500 (vreinterpretq_s16_u8): Likewise.
19501 (vreinterpretq_s16_u16): Likewise.
19502 (vreinterpretq_s16_u32): Likewise.
19503 (vreinterpretq_s16_u64): Likewise.
19504 (vreinterpretq_s16_p8): Likewise.
19505 (vreinterpretq_s16_p16): Likewise.
19506 (vreinterpret_s32_s8): Likewise.
19507 (vreinterpret_s32_s16): Likewise.
19508 (vreinterpret_s32_s64): Likewise.
19509 (vreinterpret_s32_f32): Likewise.
19510 (vreinterpret_s32_u8): Likewise.
19511 (vreinterpret_s32_u16): Likewise.
19512 (vreinterpret_s32_u32): Likewise.
19513 (vreinterpret_s32_u64): Likewise.
19514 (vreinterpret_s32_p8): Likewise.
19515 (vreinterpret_s32_p16): Likewise.
19516 (vreinterpretq_s32_s8): Likewise.
19517 (vreinterpretq_s32_s16): Likewise.
19518 (vreinterpretq_s32_s64): Likewise.
19519 (vreinterpretq_s32_f32): Likewise.
19520 (vreinterpretq_s32_u8): Likewise.
19521 (vreinterpretq_s32_u16): Likewise.
19522 (vreinterpretq_s32_u32): Likewise.
19523 (vreinterpretq_s32_u64): Likewise.
19524 (vreinterpretq_s32_p8): Likewise.
19525 (vreinterpretq_s32_p16): Likewise.
19526 (vreinterpret_u8_s8): Likewise.
19527 (vreinterpret_u8_s16): Likewise.
19528 (vreinterpret_u8_s32): Likewise.
19529 (vreinterpret_u8_s64): Likewise.
19530 (vreinterpret_u8_f32): Likewise.
19531 (vreinterpret_u8_u16): Likewise.
19532 (vreinterpret_u8_u32): Likewise.
19533 (vreinterpret_u8_u64): Likewise.
19534 (vreinterpret_u8_p8): Likewise.
19535 (vreinterpret_u8_p16): Likewise.
19536 (vreinterpretq_u8_s8): Likewise.
19537 (vreinterpretq_u8_s16): Likewise.
19538 (vreinterpretq_u8_s32): Likewise.
19539 (vreinterpretq_u8_s64): Likewise.
19540 (vreinterpretq_u8_f32): Likewise.
19541 (vreinterpretq_u8_u16): Likewise.
19542 (vreinterpretq_u8_u32): Likewise.
19543 (vreinterpretq_u8_u64): Likewise.
19544 (vreinterpretq_u8_p8): Likewise.
19545 (vreinterpretq_u8_p16): Likewise.
19546 (vreinterpret_u16_s8): Likewise.
19547 (vreinterpret_u16_s16): Likewise.
19548 (vreinterpret_u16_s32): Likewise.
19549 (vreinterpret_u16_s64): Likewise.
19550 (vreinterpret_u16_f32): Likewise.
19551 (vreinterpret_u16_u8): Likewise.
19552 (vreinterpret_u16_u32): Likewise.
19553 (vreinterpret_u16_u64): Likewise.
19554 (vreinterpret_u16_p8): Likewise.
19555 (vreinterpret_u16_p16): Likewise.
19556 (vreinterpretq_u16_s8): Likewise.
19557 (vreinterpretq_u16_s16): Likewise.
19558 (vreinterpretq_u16_s32): Likewise.
19559 (vreinterpretq_u16_s64): Likewise.
19560 (vreinterpretq_u16_f32): Likewise.
19561 (vreinterpretq_u16_u8): Likewise.
19562 (vreinterpretq_u16_u32): Likewise.
19563 (vreinterpretq_u16_u64): Likewise.
19564 (vreinterpretq_u16_p8): Likewise.
19565 (vreinterpretq_u16_p16): Likewise.
19566 (vreinterpret_u32_s8): Likewise.
19567 (vreinterpret_u32_s16): Likewise.
19568 (vreinterpret_u32_s32): Likewise.
19569 (vreinterpret_u32_s64): Likewise.
19570 (vreinterpret_u32_f32): Likewise.
19571 (vreinterpret_u32_u8): Likewise.
19572 (vreinterpret_u32_u16): Likewise.
19573 (vreinterpret_u32_u64): Likewise.
19574 (vreinterpret_u32_p8): Likewise.
19575 (vreinterpret_u32_p16): Likewise.
19576 (vreinterpretq_u32_s8): Likewise.
19577 (vreinterpretq_u32_s16): Likewise.
19578 (vreinterpretq_u32_s32): Likewise.
19579 (vreinterpretq_u32_s64): Likewise.
19580 (vreinterpretq_u32_f32): Likewise.
19581 (vreinterpretq_u32_u8): Likewise.
19582 (vreinterpretq_u32_u16): Likewise.
19583 (vreinterpretq_u32_u64): Likewise.
19584 (vreinterpretq_u32_p8): Likewise.
19585 (vreinterpretq_u32_p16): Likewise.
19586
19587 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19588
19589 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19590 Pattern extended.
19591 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19592 (sqabs): Likewise.
19593 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19594 (vqnegd_s64): Likewise.
19595 (vqabs_s64): Likewise.
19596 (vqabsd_s64): Likewise.
19597
19598 2014-04-22 Richard Henderson <rth@redhat.com>
19599
19600 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19601 computation to the top of the loop.
19602
19603 2014-04-22 Renlin <renlin.li@arm.com>
19604 Jiong Wang <jiong.wang@arm.com>
19605
19606 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19607 * config/aarch64/aarch64.c (aarch64_layout_frame)
19608 (aarch64_initial_elimination_offset): Likewise.
19609
19610 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19611
19612 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19613 Fix indentation.
19614
19615 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19616
19617 * machmode.h (bitwise_mode_for_mode): Declare.
19618 * stor-layout.h (bitwise_type_for_mode): Likewise.
19619 * stor-layout.c (bitwise_mode_for_mode): New function.
19620 (bitwise_type_for_mode): Likewise.
19621 * builtins.c (fold_builtin_memory_op): Use it instead of
19622 int_mode_for_mode and build_nonstandard_integer_type.
19623
19624 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19625
19626 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19627 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19628 (*-*-solaris2*): Simplify.
19629 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19630 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19631 *-*-solaris2.9* handling.
19632
19633 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19634 as bug.
19635 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19636 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19637 handling, simplify.
19638 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19639 * configure: Regenerate.
19640
19641 * config/i386/sol2-9.h: Remove.
19642
19643 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19644 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19645 Remove Solaris 9 references.
19646
19647 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19648
19649 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19650 (floatuns<GPI:mode><GPF:mode>2): Remove.
19651 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19652 and floatuns conversions.
19653 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19654 and floatuns conversions.
19655 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19656 (w1,w2): New mode attributes for inequal width conversions.
19657
19658 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19659
19660 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19661 the output asm format.
19662
19663 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19664
19665 * config/aarch64/aarch64-simd.md
19666 (aarch64_cm<optab>di): Always split.
19667 (*aarch64_cm<optab>di): New.
19668 (aarch64_cmtstdi): Always split.
19669 (*aarch64_cmtstdi): New.
19670
19671 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19672
19673 PR tree-optimization/60823
19674 * omp-low.c (ipa_simd_modify_function_body): Go through
19675 all SSA_NAMEs and for those refering to vector arguments
19676 which are going to be replaced adjust SSA_NAME_VAR and,
19677 if it is a default definition, change it into a non-default
19678 definition assigned at the beginning of function from new_decl.
19679 (ipa_simd_modify_stmt_ops): Rewritten.
19680 * tree-dfa.c (set_ssa_default_def): When removing default def,
19681 check for NULL loc instead of NULL *loc.
19682
19683 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19684
19685 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19686 restrictions on core registers for DImode values in Thumb2.
19687
19688 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19689
19690 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19691 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19692
19693 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19694
19695 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19696 (*iordi_notzesidi_di): Likewise.
19697 (*iordi_notsesidi_di): Likewise.
19698
19699 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19700
19701 * config/arm/arm-protos.h (tune_params): New struct members.
19702 * config/arm/arm.c: Initialise tune_params per processor.
19703 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19704 for speed, based on new tune_params.
19705
19706 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19707
19708 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19709 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19710 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19711 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19712 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19713 (vrnda_f64): Likewise.
19714 (vrndi_f64): Likewise.
19715 (vrndm_f64): Likewise.
19716 (vrndn_f64): Likewise.
19717 (vrndp_f64): Likewise.
19718 (vrndx_f64): Likewise.
19719
19720 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19721
19722 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19723 GET_MODE_SIZE argument is enum machine_mode.
19724
19725 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19726
19727 PR target/60910
19728 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19729 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19730
19731 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19732
19733 PR middle-end/60281
19734 * asan.c (asan_emit_stack_protection): Force the base to align to
19735 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19736 appropriate bits if STRICT_ALIGNMENT.
19737 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19738 when asan is on.
19739 (expand_used_vars): Leave a space in the stack frame for alignment
19740 if STRICT_ALIGNMENT.
19741
19742 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19743
19744 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19745 than a gimple.
19746 (gimple_store_p): Likewise.
19747 (gimple_assign_load_p): Likewise.
19748 (gimple_assign_cast_p): Likewise.
19749 (gimple_clobber_p): Likewise.
19750
19751 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19752 rather than a gimple.
19753 (gimple_assign_cast_p): Likewise.
19754
19755 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19756
19757 PR target/60735
19758 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19759 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19760
19761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19762 more debug information for E500 if -mdebug=reg.
19763
19764 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19765
19766 PR target/60909
19767 * config/i386/i386.c (ix86_expand_builtin)
19768 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19769 register for target RTX.
19770 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19771
19772 2014-04-18 Cong Hou <congh@google.com>
19773
19774 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19775 the widen-mult pattern by handling two operands with different sizes,
19776 and operands whose size is smaller than half of the result type.
19777
19778 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19779
19780 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19781 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19782 (do_estimate_edge_time): Compute it.
19783 * ipa-inline.c (want_inline_small_function_p): Bypass
19784 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19785
19786 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19787
19788 * ipa-inline.c (spec_rem): New static variable.
19789 (dump_overall_stats): New function.
19790 (dump_inline_stats): New function.
19791
19792 2014-04-18 Richard Henderson <rth@redhat.com>
19793
19794 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19795 to GET_MODE_SIZE, not a reg_class_t.
19796
19797 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19798
19799 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19800 (vsx_xxmrglw_<mode>): Likewise.
19801
19802 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19803
19804 PR target/60876
19805 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19806 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19807 (rs6000_init_hard_regno_mode_ok): Likewise.
19808
19809 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19810
19811 * ipa-inline.c (inline_small_functions): Account only non-cold
19812 functions.
19813 * doc/invoke.texi (inline-unit-growth): Update documentation.
19814
19815 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19816
19817 * config/rs6000/rs6000.md (addti3, subti3): New.
19818
19819 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19820
19821 PR target/60863
19822 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19823 comment. Check optimize_insn_for_size_p instead of
19824 optimize_insn_for_speed_p.
19825
19826 2014-04-17 Martin Jambor <mjambor@suse.cz>
19827
19828 * gimple-iterator.c (gsi_start_edge): New function.
19829 * gimple-iterator.h (gsi_start_edge): Declare.
19830 * tree-sra.c (single_non_eh_succ): New function.
19831 (disqualify_ops_if_throwing_stmt): Renamed to
19832 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19833 having one non-EH successor BB.
19834 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19835 generate loads into replacements.
19836 (sra_modify_assign): Likewise and and also use the simple path for
19837 such statements.
19838 (sra_modify_function_body): Commit statements on edges.
19839
19840 2014-04-17 Richard Biener <rguenther@suse.de>
19841
19842 PR middle-end/60849
19843 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19844 comparison results and add clarifying comment.
19845
19846 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19847
19848 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19849 (blank_mode): Initialize it.
19850 (emit_mode_size_inline, emit_mode_nunits_inline,
19851 emit_mode_inner_inline): New functions.
19852 (emit_insn_modes_h): Call them and surround their output with
19853 #if GCC_VERSION >= 4001 ... #endif.
19854 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19855 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19856 mode_* arrays if the argument is __builtin_constant_p.
19857 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19858 is enum machine_mode.
19859
19860 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19861
19862 * passes.c (opt_pass::execute): Adjust.
19863 (pass_manager::execute_pass_mode_switching): Likewise.
19864 (early_local_passes::execute): Likewise.
19865 (execute_one_pass): Pass cfun to the pass's execute method.
19866 * tree-pass.h (opt_pass::execute): Add function * argument.
19867 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19868 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19869 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19870 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19871 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19872 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19873 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19874 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19875 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19876 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19877 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19878 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19879 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19880 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19881 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19882 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19883 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19884 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19885 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19886 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19887 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19888 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19889 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19890 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19891 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19892 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19893 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19894 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19895 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19896 Adjust.
19897
19898 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19899
19900 * passes.c (opt_pass::gate): Take function * argument.
19901 (gate_all_early_local_passes): Merge into
19902 (early_local_passes::gate): this.
19903 (gate_all_early_optimizations): Merge into
19904 (all_early_optimizations::gate): this.
19905 (gate_all_optimizations): Mege into
19906 (all_optimizations::gate): this.
19907 (gate_all_optimizations_g): Merge into
19908 (all_optimizations_g::gate): this.
19909 (gate_rest_of_compilation): Mege into
19910 (rest_of_compilation::gate): this.
19911 (gate_postreload): Merge into
19912 (postreload::gate): this.
19913 (dump_one_pass): Pass cfun to the pass's gate method.
19914 (execute_ipa_summary_passes): Likewise.
19915 (execute_one_pass): Likewise.
19916 (ipa_write_summaries_2): Likewise.
19917 (ipa_write_optimization_summaries_1): Likewise.
19918 (ipa_read_summaries_1): Likewise.
19919 (ipa_read_optimization_summaries_1): Likewise.
19920 (execute_ipa_stmt_fixups): Likewise.
19921 * tree-pass.h (opt_pass::gate): Add function * argument.
19922 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19923 combine-stack-adj.c, combine.c, compare-elim.c,
19924 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19925 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19926 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19927 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19928 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19929 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19930 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19931 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19932 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19933 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19934 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19935 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19936 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19937 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19938 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19939 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19940 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19941 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19942 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19943 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19944 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19945 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19946 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19947 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19948 var-tracking.c, vtable-verify.c, web.c: Adjust.
19949
19950 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19951
19952 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19953 * configure: Regenerate.
19954
19955 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19956
19957 * passes.c (dump_one_pass): don't check pass->has_gate.
19958 (execute_ipa_summary_passes): Likewise.
19959 (execute_one_pass): Likewise.
19960 (ipa_write_summaries_2): Likewise.
19961 (ipa_write_optimization_summaries_1): Likewise.
19962 (ipa_read_optimization_summaries_1): Likewise.
19963 (execute_ipa_stmt_fixups): Likewise.
19964 * tree-pass.h (pass_data::has_gate): Remove.
19965 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19966 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19967 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19968 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19969 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19970 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19971 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19972 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19973 gimple-low.c, gimple-ssa-isolate-paths.c,
19974 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19975 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19976 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19977 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19978 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19979 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19980 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19981 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19982 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19983 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19984 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19985 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19986 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19987 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19988 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19989 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19990 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19991 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19992 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19993 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19994 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19995 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19996 Adjust.
19997
19998 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19999
20000 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20001 declaration.
20002 * passes.c (pass_manager::register_dump_files_1): Merge into
20003 (pass_manager::register_dump_files): this, and remove its handling of
20004 properties since the pass always has the properties anyway.
20005 (pass_manager::pass_manager): Adjust.
20006
20007 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20008
20009 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20010 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20011 dealing with properties.
20012 (pass_manager::register_dump_files): Adjust.
20013
20014 2014-03-20 Mark Wielaard <mjw@redhat.com>
20015
20016 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20017 then represent the bound as normal constant value.
20018
20019 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20020
20021 PR target/60847
20022 Forward port from 4.8 branch
20023 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20024
20025 * config/i386/bmiintrin.h (_blsi_u32): New.
20026 (_blsi_u64): Ditto.
20027 (_blsr_u32): Ditto.
20028 (_blsr_u64): Ditto.
20029 (_blsmsk_u32): Ditto.
20030 (_blsmsk_u64): Ditto.
20031 (_tzcnt_u32): Ditto.
20032 (_tzcnt_u64): Ditto.
20033
20034 2014-04-17 Kito Cheng <kito@0xlab.org>
20035
20036 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20037
20038 2014-04-17 Richard Biener <rguenther@suse.de>
20039
20040 PR middle-end/60849
20041 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20042 boolean results for comparisons.
20043
20044 2014-04-17 Richard Biener <rguenther@suse.de>
20045
20046 PR tree-optimization/60836
20047 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20048 initial PHI args to be gimple values.
20049
20050 2014-04-17 Richard Biener <rguenther@suse.de>
20051
20052 PR tree-optimization/60841
20053 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20054 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20055 of stmts to SLP build.
20056 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20057 (vect_analyze_slp): Likewise.
20058 (vect_analyze_slp_instance): Likewise.
20059 (vect_build_slp_tree): Limit overall SLP tree growth.
20060 * tree-vectorizer.h (vect_analyze_data_refs,
20061 vect_analyze_slp): Adjust prototypes.
20062
20063 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20064
20065 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20066 Silvermont.
20067
20068 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20069
20070 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20071 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20072 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20073 for TARGET_SLOW_PSHUFB
20074
20075 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20076
20077 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20078 * config/i386/i386.c (intel_cost): Ditto.
20079
20080 2014-04-17 Joey Ye <joey.ye@arm.com>
20081
20082 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20083
20084 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20085
20086 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20087 with -fuse-profile.
20088
20089 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20090
20091 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20092 (type_all_derivations_known_p): New predicate.
20093 (type_all_ctors_visible_p): New predicate.
20094 (type_possibly_instantiated_p): New predicate.
20095 (get_odr_type): Compute all_derivations_known.
20096 (dump_odr_type): Dump the flag.
20097 (maybe_record_type): Cleanup.
20098 (record_target_from_binfo): Add bases_to_consider array;
20099 record bases for types w/o instances and skip CXX destructor.
20100 (possible_polymorphic_call_targets_1): Add bases_to_consider
20101 and consider_construction parameters; check if type may have instance.
20102 (get_polymorphic_call_info): Set maybe_in_construction to true
20103 when we know nothing.
20104 (record_targets_from_bases): Skip CXX destructors; they are
20105 never called for types in construction.
20106 (possible_polymorphic_call_targets): Do not record target when
20107 type may not have instance.
20108
20109 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20110
20111 PR ipa/60854
20112 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20113 external aliases alive, too.
20114
20115 2014-04-16 Andrew Pinski <apinski@cavium.com>
20116
20117 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20118 definition.
20119
20120 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20121
20122 * final.c (compute_alignments): Do not apply loop alignment to a block
20123 falling through to the exit.
20124
20125 2014-04-16 Catherine Moore <clm@codesourcery.com>
20126
20127 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20128 Adjust constraints for microMIPS store patterns.
20129
20130 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20131
20132 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20133
20134 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20135
20136 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20137 (append_use): Run at -O0.
20138 (append_vdef): Likewise.
20139 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20140 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20141
20142 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20143
20144 PR tree-optimization/60844
20145 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20146 (propagate_op_to_single_use, remove_visited_stmt_chain,
20147 linearize_expr, repropagate_negates, reassociate_bb): Use it
20148 instead of gsi_remove.
20149
20150 2014-04-16 Martin Jambor <mjambor@suse.cz>
20151
20152 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20153 ipa_transforms_to_apply.
20154 (cgraph_function_versioning): Assert that old_node has empty
20155 ipa_transforms_to_apply.
20156 * trans-mem.c (ipa_tm_create_version): Likewise.
20157 * tree-inline.c (tree_function_versioning): Do not duplicate
20158 ipa_transforms_to_apply.
20159
20160 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20161
20162 PR target/60817
20163 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20164 x86_64-*-* cases.
20165 Pass necessary as flags on 64-bit Solaris/x86.
20166 Use lowercase relocs for x86_64-*-*.
20167 * configure: Regenerate.
20168
20169 2014-04-15 Jan Hubicka <jh@suse.cz>
20170
20171 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20172 (maybe_record_node, likely_target_p): Use it.
20173
20174 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20175
20176 PR target/60839
20177 Revert following patch
20178
20179 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20180
20181 PR target/60735
20182 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20183 software floating point or no floating point registers, do not
20184 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20185 in GPRs that occurs after we tested for GPRs that would never be
20186 true.
20187
20188 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20189 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20190 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20191 specifically allow DDmode, since that does not use the SPE SIMD
20192 instructions.
20193
20194 2014-03-21 Mark Wielaard <mjw@redhat.com>
20195
20196 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20197 as unsigned or int depending on type and value used.
20198
20199 2014-04-15 Richard Biener <rguenther@suse.de>
20200
20201 PR rtl-optimization/56965
20202 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20203 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20204 ... here.
20205 * alias.c (true_dependence_1): Do not call
20206 nonoverlapping_component_refs_p.
20207 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20208 nonoverlapping_component_refs_p.
20209 (indirect_refs_may_alias_p): Likewise.
20210
20211 2014-04-15 Teresa Johnson <tejohnson@google.com>
20212
20213 * cfg.c (dump_bb_info): Fix flags check.
20214 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20215
20216 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20217
20218 PR rtl-optimization/60663
20219 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20220 avoid 0 cost.
20221
20222 2014-04-15 Richard Biener <rguenther@suse.de>
20223
20224 * lto-streamer.h (LTO_major_version): Bump to 4.
20225
20226 2014-04-15 Richard Biener <rguenther@suse.de>
20227
20228 * common.opt (lto_partition_model): New enum.
20229 (flto-partition=): Merge separate options with a single with argument,
20230 add -flto-partition=one support.
20231 * flag-types.h (enum lto_partition_model): Declare.
20232 * opts.c (finish_options): Remove duplicate -flto-partition=
20233 option check.
20234 * lto-wrapper.c (run_gcc): Adjust.
20235
20236 2014-04-15 Richard Biener <rguenther@suse.de>
20237
20238 * alias.c (ncr_compar): New function.
20239 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20240
20241 2014-04-15 Richard Biener <rguenther@suse.de>
20242
20243 * alias.c (record_component_aliases): Do not walk BINFOs.
20244
20245 2014-04-15 Richard Biener <rguenther@suse.de>
20246
20247 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20248 Add struct function argument and adjust.
20249 (find_func_aliases_for_call): Likewise.
20250 (find_func_aliases): Likewise.
20251 (find_func_clobbers): Likewise.
20252 (intra_create_variable_infos): Likewise.
20253 (compute_points_to_sets): Likewise.
20254 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20255
20256 2014-04-15 Richard Biener <rguenther@suse.de>
20257
20258 * tree.c (iterative_hash_expr): Use enum tree_code_class
20259 to store TREE_CODE_CLASS.
20260 (tree_block): Likewise.
20261 (tree_set_block): Likewise.
20262 * tree.h (fold_build_pointer_plus_loc): Use
20263 convert_to_ptrofftype_loc.
20264
20265 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20266
20267 PR plugins/59335
20268 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20269 added in 4.9.
20270
20271 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20272
20273 * cfgloop.h (struct loop): Move force_vectorize down.
20274 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20275 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20276 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20277 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20278 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20279 * tree-core.h (enum annot_expr_kind): Add new kind values.
20280 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20281 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20282 kinds.
20283 * tree.def (ANNOTATE_EXPR): Tweak comment.
20284
20285 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20286
20287 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20288 cxa_pure_virtual).
20289
20290 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20291
20292 * tree.h (TYPE_IDENTIFIER): Declare.
20293 * tree.c (subrange_type_for_debug_p): Use it.
20294 * godump.c (go_format_type): Likewise.
20295 * dwarf2out.c (is_cxx_auto, modified_type_die,
20296 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20297 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20298
20299 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20300
20301 PR lto/60820
20302 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20303
20304 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20305
20306 * config/i386/i386.c (examine_argument): Return bool. Return true if
20307 parameter should be passed in memory.
20308 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20309 (construct_container): Update calls to examine_argument.
20310 (function_arg_advance_64): Ditto.
20311 (return_in_memory_32): Merge with ix86_return_in_memory.
20312 (return_in_memory_64): Ditto.
20313 (return_in_memory_ms_64): Ditto.
20314
20315 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20316
20317 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20318 * coverage.c (coverage_compute_profile_id): Handle externally visible
20319 symbols.
20320
20321 2014-04-14 Martin Jambor <mjambor@suse.cz>
20322
20323 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20324 DECL_DISREGARD_INLINE_LIMITS functions.
20325
20326 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20327
20328 PR target/60827
20329 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20330
20331 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20332
20333 PR target/60827
20334 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20335 optimize_insn_for_speed_p instead of
20336 optimize_function_for_speed_p.
20337
20338 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20339
20340 * doc/invoke.texi (free): Document AArch64.
20341
20342 2014-04-14 Richard Biener <rguenther@suse.de>
20343
20344 PR tree-optimization/60042
20345 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20346 (insert_into_preds_of_block): Do not prevent PHI insertion
20347 for REFERENCE exprs here ...
20348 (eliminate_dom_walker::before_dom_children): ... but prevent
20349 their use here under similar conditions when applied to the
20350 IL after PRE optimizations.
20351
20352 2014-04-14 Richard Biener <rguenther@suse.de>
20353
20354 * passes.def: Move early points-to after early SRA.
20355
20356 2014-04-14 Richard Biener <rguenther@suse.de>
20357
20358 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20359 check for which sign-changes we allow when forwarding
20360 a converted value into a switch.
20361
20362 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20363
20364 * stor-layout.c (place_field): Finalize non-constant offset for the
20365 field, if any.
20366
20367 2014-04-14 Richard Biener <rguenther@suse.de>
20368
20369 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20370 as argument.
20371 (expand_switch_using_bit_tests_p): Likewise.
20372 (process_switch): Compute and pass on speed_p based on the
20373 switch stmt.
20374 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20375 optimize_bb_for_speed_p.
20376
20377 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20378
20379 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20380 * function.h (struct function): Rename has_force_vect_loops into
20381 has_force_vectorize_loops.
20382 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20383 (input_struct_function_base): Likewise.
20384 * lto-streamer-out.c (output_cfg): Likewise.
20385 (output_struct_function_base): Likewise.
20386 * omp-low.c (expand_omp_simd): Likewise.
20387 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20388 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20389 (version_loop_for_if_conversion): Likewise.
20390 (tree_if_conversion): Likewise.
20391 (main_tree_if_conversion): Likewise.
20392 (gate_tree_if_conversion): Likewise.
20393 * tree-inline.c (copy_loops): Likewise.
20394 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20395 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20396 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20397 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20398 * tree-vectorizer.c (vectorize_loops): Likewise.
20399 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20400
20401 2014-04-14 Richard Biener <rguenther@suse.de>
20402
20403 PR lto/60720
20404 * lto-streamer-out.c (wrap_refs): New function.
20405 (lto_output): Wrap symbol references in global initializes in
20406 type-preserving MEM_REFs.
20407
20408 2014-04-14 Christian Bruel <christian.bruel@st.com>
20409
20410 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20411
20412 2014-04-14 Christian Bruel <christian.bruel@st.com>
20413
20414 * config/sh/sh.md (setmemqi): New expand pattern.
20415 * config/sh/sh.h (CLEAR_RATIO): Define.
20416 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20417 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20418
20419 2014-04-14 Richard Biener <rguenther@suse.de>
20420
20421 PR middle-end/55022
20422 * fold-const.c (negate_expr_p): Don't negate directional rounding
20423 division.
20424 (fold_negate_expr): Likewise.
20425
20426 2014-04-14 Richard Biener <rguenther@suse.de>
20427
20428 PR tree-optimization/59817
20429 PR tree-optimization/60453
20430 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20431 recursion to catch all CHRECs in the scalar evolution and restrict
20432 the predicate for the remains appropriately.
20433
20434 2014-04-12 Catherine Moore <clm@codesourcery.com>
20435
20436 * config/mips/constraints.md: Add new register constraint "kb".
20437 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20438 (*movhi_internal): Likewise.
20439 (*movqi_internal): Likewise.
20440 * config/mips/mips.h (M16_STORE_REGS): New register class.
20441 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20442 (REG_CLASS_CONTENTS): Likewise.
20443 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20444
20445 2014-04-11 Tobias Burnus <burnus@net-b.de>
20446
20447 PR c/60194
20448 * doc/invoke.texi (-Wformat-signedness): Document it.
20449 (Wformat=2): Mention that this enables -Wformat-signedness.
20450
20451 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20452
20453 * common/config/epiphany/epiphany-common.c
20454 (epiphany_option_optimization_table): Enable section anchors by
20455 default at -O1 or higher.
20456 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20457 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20458 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20459 carries no extra cost.
20460 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20461 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20462 * config/epiphany/predicates.md (memclob_operand): New predicate.
20463 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20464 Use memclob_operand predicate and X constraint for operand 3.
20465
20466 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20467
20468 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20469 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20470 its operands.
20471
20472 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20473
20474 PR rtl-optimization/60651
20475 * mode-switching.c (optimize_mode_switching): Make sure to emit
20476 sets of a lower numbered entity before sets of a higher numbered
20477 entity to a mode of the same or lower priority.
20478 When creating a seginfo for a basic block that starts with a code
20479 label, move the insertion point past the code label.
20480 (new_seginfo): Document and enforce requirement that
20481 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20482 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20483 * doc/tm.texi: Regenerate.
20484
20485 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20486
20487 PR target/60811
20488 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20489
20490 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20491
20492 * BASE-VER: Set to 4.10.0.
20493
20494 2014-04-11 Tobias Burnus <burnus@net-b.de>
20495
20496 PR other/59055
20497 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20498 * doc/gcc.texi (Service): Update description in the @menu
20499 * doc/invoke.texi (Option Summary): Remove misplaced and
20500 duplicated @menu.
20501
20502 2014-04-11 Steve Ellcey <sellcey@mips.com>
20503 Jakub Jelinek <jakub@redhat.com>
20504
20505 PR middle-end/60556
20506 * expr.c (convert_move): Use emit_store_flag_force instead of
20507 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20508 argument to it.
20509
20510 2014-04-11 Richard Biener <rguenther@suse.de>
20511
20512 PR middle-end/60797
20513 * varasm.c (assemble_alias): Avoid endless error reporting
20514 recursion by setting TREE_ASM_WRITTEN.
20515
20516 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20517
20518 * config/s390/s390.md: Add a splitter for NOT rtx.
20519
20520 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20521
20522 PR rtl-optimization/60663
20523 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20524
20525 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20526 Jakub Jelinek <jakub@redhat.com>
20527
20528 PR lto/60567
20529 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20530 flag from decl_node to node.
20531
20532 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20533
20534 PR debug/60655
20535 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20536 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20537 ameliorating the cases where it can be.
20538
20539 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20540
20541 Revert
20542 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20543
20544 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20545 (loadsync_<mode>): Change mode.
20546 (load_quadpti, store_quadpti): New.
20547 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20548 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20549 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20550
20551 2014-04-09 Cong Hou <congh@google.com>
20552
20553 PR testsuite/60773
20554 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20555 documentation.
20556
20557 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20558
20559 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20560 instead of vnor to exploit possible fusion opportunity in the
20561 future.
20562 (altivec_expand_vec_perm_const_le): Likewise.
20563
20564 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20565
20566 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20567 (loadsync_<mode>): Change mode.
20568 (load_quadpti, store_quadpti): New.
20569 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20570 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20571
20572 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20573
20574 PR target/60763
20575 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20576 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20577 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20578
20579 2014-04-08 Richard Biener <rguenther@suse.de>
20580
20581 PR middle-end/60706
20582 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20583 a 64bit widest int print double-int similar to on HWI64 hosts.
20584
20585 2014-04-08 Richard Biener <rguenther@suse.de>
20586
20587 PR tree-optimization/60785
20588 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20589 default defs properly.
20590
20591 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20592
20593 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20594 (Weffc++): Likewise.
20595
20596 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20597
20598 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20599 set completep to false rather than true.
20600
20601 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20602
20603 PR target/60504
20604 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20605 ARM_TARGET2_DWARF_FORMAT.
20606
20607 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20608
20609 PR target/60609
20610 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20611 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20612 ADDR_DIFF_VEC.
20613
20614 2014-04-07 Richard Biener <rguenther@suse.de>
20615
20616 PR tree-optimization/60766
20617 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20618 (may_eliminate_iv): Convert cand_value_at result to desired type.
20619
20620 2014-04-07 Jason Merrill <jason@redhat.com>
20621
20622 PR c++/60731
20623 * common.opt (-fno-gnu-unique): Add.
20624 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20625
20626 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20627
20628 * haifa-sched.c: Fix outdated function reference and minor
20629 grammar errors in introductory comment.
20630
20631 2014-04-07 Richard Biener <rguenther@suse.de>
20632
20633 PR middle-end/60750
20634 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20635 for noreturn calls.
20636 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20637
20638 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20639
20640 PR debug/55794
20641 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20642 size accounting for thunks.
20643 (pa_asm_output_mi_thunk): Use final_start_function() and
20644 final_end_function() to output function start and end directives.
20645
20646 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20647
20648 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20649 device specific ISA/ feature information. Remove short_sp and
20650 errata_skip ds. Add avr_device_specific_features enum to have device
20651 specific info.
20652 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20653 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20654 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20655 updated device specific info.
20656 * config/avr/avr-mcus.def: Merge device specific details to
20657 dev_attribute field.
20658 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20659 errata_skip.
20660 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20661 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20662 assembler if RMW isa supported by current device.
20663 * config/avr/genmultilib.awk: Update as device info structure changed.
20664 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20665
20666 2014-04-04 Cong Hou <congh@google.com>
20667
20668 PR tree-optimization/60656
20669 * tree-vect-stmts.c (supportable_widening_operation):
20670 Fix a bug that elements in a vector with vect_used_by_reduction
20671 property are incorrectly reordered when the operation on it is not
20672 consistant with the one in reduction operation.
20673
20674 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20675
20676 PR rtl-optimization/60155
20677 * gcse.c (record_set_data): New function.
20678 (single_set_gcse): New function.
20679 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20680 (hoist_code): Likewise.
20681 (get_pressure_class_and_nregs): Likewise.
20682
20683 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20684
20685 * explow.c (probe_stack_range): Emit a final optimization blockage.
20686
20687 2014-04-04 Anthony Green <green@moxielogic.com>
20688
20689 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20690 typos.
20691
20692 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20693
20694 PR ipa/59626
20695 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20696 flags are set only during streaming.
20697 * ipa.c (process_references, walk_polymorphic_call_targets,
20698 symtab_remove_unreachable_nodes): Drop bodies of always inline
20699 after early inlining.
20700 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20701
20702 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20703 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20704
20705 PR debug/60655
20706 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20707 containing a NOT.
20708
20709 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20710
20711 PR bootstrap/60743
20712 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20713 duration.
20714 (cortex_a53_fdivd): Likewise.
20715
20716 2014-04-04 Martin Jambor <mjambor@suse.cz>
20717
20718 PR ipa/60640
20719 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20720 Adjust all callers.
20721 * cgraph.c (clone_of_p): Also return true if thunks match.
20722 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20723 cgraph_function_or_thunk_node and an obsolete comment.
20724 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20725 file.
20726 (build_function_decl_skip_args): Likewise.
20727 (set_new_clone_decl_and_node_flags): New function.
20728 (duplicate_thunk_for_node): Likewise.
20729 (redirect_edge_duplicating_thunks): Likewise.
20730 (cgraph_clone_node): New parameter args_to_skip, pass it to
20731 redirect_edge_duplicating_thunks which is called instead of
20732 cgraph_redirect_edge_callee.
20733 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20734 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20735
20736 2014-04-04 Jeff Law <law@redhat.com>
20737
20738 PR target/60657
20739 * config/arm/predicates.md (const_int_I_operand): New predicate.
20740 (const_int_M_operand): Similarly.
20741 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20742 const_int_operand.
20743 (insv_t2, extv_reg, extzv_t2): Likewise.
20744 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20745 (pop_multiple_with_writeback_and_return): Likewise.
20746 (vfp_pop_multiple_with_writeback): Likewise
20747
20748 2014-04-04 Richard Biener <rguenther@suse.de>
20749
20750 PR ipa/60746
20751 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20752 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20753 non-GIMPLE_LABELs.
20754 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20755 * gimplify.c (gimple_add_tmp_var_fn): New function.
20756 * gimple-expr.h (create_tmp_reg_fn): Declare.
20757 * gimple-expr.c (create_tmp_reg_fn): New function.
20758 * gimple-low.c (record_vars_into): Don't change cfun.
20759 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20760 code generation without cfun.
20761
20762 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20763
20764 PR bootstrap/60719
20765 * Makefile.in (install-driver): Fix shell scripting.
20766
20767 2014-04-03 Cong Hou <congh@google.com>
20768
20769 PR tree-optimization/60505
20770 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20771 threshold of number of iterations below which no vectorization
20772 will be done.
20773 * tree-vect-loop.c (new_loop_vec_info):
20774 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20775 * tree-vect-loop.c (vect_analyze_loop_operations):
20776 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20777 * tree-vect-loop.c (vect_transform_loop):
20778 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20779 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20780 of iterations of the loop and see if we should build the epilogue.
20781
20782 2014-04-03 Richard Biener <rguenther@suse.de>
20783
20784 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20785 (streamer_tree_cache_create): Adjust.
20786 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20787 to allow optional nodes array.
20788 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20789 (streamer_tree_cache_append): Likewise.
20790 (streamer_tree_cache_create): Create nodes array optionally
20791 as specified by parameter.
20792 * lto-streamer-out.c (create_output_block): Avoid maintaining
20793 the node array in the writer cache.
20794 (DFS_write_tree): Remove assertion.
20795 (produce_asm_for_decls): Free the out decl state hash table early.
20796 * lto-streamer-in.c (lto_data_in_create): Adjust for
20797 streamer_tree_cache_create prototype change.
20798
20799 2014-04-03 Richard Biener <rguenther@suse.de>
20800
20801 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20802 set TREE_CHAIN to NULL_TREE.
20803
20804 2014-04-03 Richard Biener <rguenther@suse.de>
20805
20806 PR tree-optimization/60740
20807 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20808 over all GIMPLE_COND operands.
20809
20810 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20811
20812 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20813 (Weffc++): Remove Scott's numbering, merge lists and reference
20814 Wnon-virtual-dtor.
20815
20816 2014-04-03 Nick Clifton <nickc@redhat.com>
20817
20818 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20819 properly.
20820
20821 2014-04-03 Martin Jambor <mjambor@suse.cz>
20822
20823 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20824 mention gcc_unreachable before failing.
20825 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20826 removed symbols.
20827
20828 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20829
20830 PR ipa/60659
20831 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20832 inconsistent code and instead mark the context inconsistent.
20833 (possible_polymorphic_call_targets): For inconsistent contexts
20834 return empty complete list.
20835
20836 2014-04-02 Anthony Green <green@moxielogic.com>
20837
20838 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20839 (extendqisi2, extendhisi2): Define.
20840 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20841 (WCHAR_TYPE): Change to unsigned int.
20842
20843 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20844
20845 PR tree-optimization/60733
20846 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20847 insertion point for PHI candidates to be the end of the feeding
20848 block for the PHI argument.
20849
20850 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20851
20852 PR rtl-optimization/60650
20853 * lra-constraints.c (process_alt_operands): Decrease reject for
20854 earlyclobber matching.
20855
20856 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20857
20858 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20859
20860 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20861
20862 * config/spu/spu.c (pad_bb): Do not crash when the last
20863 insn is CODE_FOR_blockage.
20864
20865 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20866
20867 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20868 lies outside the target mode.
20869
20870 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20871
20872 PR target/60735
20873 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20874 software floating point or no floating point registers, do not
20875 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20876 in GPRs that occurs after we tested for GPRs that would never be
20877 true.
20878
20879 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20880 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20881 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20882 specifically allow DDmode, since that does not use the SPE SIMD
20883 instructions.
20884
20885 2014-04-02 Richard Biener <rguenther@suse.de>
20886
20887 PR middle-end/60729
20888 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20889 MODE_INTs. Properly use negv_optab.
20890 (expand_abs): Likewise.
20891
20892 2014-04-02 Richard Biener <rguenther@suse.de>
20893
20894 PR bootstrap/60719
20895 * Makefile.in (install-driver): Guard extra installs with special
20896 names properly.
20897
20898 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20899
20900 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20901 Document vec_vgbbd.
20902
20903 2014-04-01 Richard Henderson <rth@redhat.com>
20904
20905 PR target/60704
20906 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20907 alternative enabled before register allocation.
20908
20909 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20910
20911 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20912 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20913 typo.
20914 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20915 (nios2_got_address): Update nios2_large_got_address call site.
20916 (nios2_delegitimize_address): New function.
20917 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20918 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20919 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20920
20921 2014-04-01 Martin Husemann <martin@duskware.de>
20922
20923 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20924 for -mabi=32.
20925
20926 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20927
20928 PR rtl-optimization/60604
20929 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20930 check from register_operand.
20931 (register_operand): Redefine in terms of general_operand.
20932 (nonmemory_operand): Use register_operand for the non-constant cases.
20933
20934 2014-04-01 Richard Biener <rguenther@suse.de>
20935
20936 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20937
20938 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20939
20940 * doc/invoke.texi (mapp-regs): Clarify.
20941
20942 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20943
20944 * config/i386/avx512fintrin.h (__v32hi): Define type.
20945 (__v64qi): Likewise.
20946 (_mm512_set1_epi8): Define.
20947 (_mm512_set1_epi16): Define.
20948 (_mm512_set4_epi32): Define.
20949 (_mm512_set4_epi64): Define.
20950 (_mm512_set4_pd): Define.
20951 (_mm512_set4_ps): Define.
20952 (_mm512_setr4_epi64): Define.
20953 (_mm512_setr4_epi32): Define.
20954 (_mm512_setr4_pd): Define.
20955 (_mm512_setr4_ps): Define.
20956 (_mm512_setzero_epi32): Define.
20957
20958 2014-03-31 Martin Jambor <mjambor@suse.cz>
20959
20960 PR middle-end/60647
20961 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20962 callsite_arguments_match_p. Updated all callers. Also check types of
20963 corresponding formal parameters and actual arguments.
20964 (not_all_callers_have_enough_arguments_p) Renamed to
20965 some_callers_have_mismatched_arguments_p.
20966
20967 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20968
20969 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20970
20971 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20972
20973 PR target/60034
20974 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20975 section anchor.
20976
20977 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20978
20979 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20980 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20981 Split out
20982 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20983 Use FMAMODE_NOVF512 mode iterator.
20984 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20985 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20986 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20987 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20988 Split out
20989 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20990 Use VF_128_256 mode iterator.
20991 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20992 Ditto.
20993
20994 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20995
20996 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20997 static chain if needed.
20998
20999 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21000
21001 PR target/60697
21002 * lra-constraints.c (index_part_to_reg): New.
21003 (process_address): Use it.
21004
21005 2014-03-27 Jeff Law <law@redhat.com>
21006 Jakub Jelinek <jakub@redhat.com>
21007
21008 PR target/60648
21009 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21010 gen_rtx_{PLUS,MULT} to build up the address expression.
21011
21012 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21013 creating non-canonical RTL.
21014
21015 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21016
21017 PR ipa/60243
21018 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21019 functions; reorganize to make cheap checks first.
21020 (inline_small_functions): Do not estimate growth when dumping;
21021 it is expensive.
21022 * ipa-inline.h (inline_summary): Add min_size.
21023 (growth_likely_positive): New function.
21024 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21025 (set_cond_stmt_execution_predicate): Cleanup.
21026 (estimate_edge_size_and_time): Compute min_size.
21027 (estimate_calls_size_and_time): Likewise.
21028 (estimate_node_size_and_time): Likewise.
21029 (inline_update_overall_summary): Update min_size.
21030 (do_estimate_edge_time): Likewise.
21031 (do_estimate_edge_size): Update.
21032 (do_estimate_edge_hints): Update.
21033 (growth_likely_positive): New function.
21034
21035 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21036
21037 PR target/60693
21038 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21039 also if addr has VOIDmode.
21040
21041 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21042
21043 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21044 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21045 Declare extern.
21046 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21047 instructions as well as AdvancedSIMD loads.
21048
21049 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21050
21051 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21052 Use crypto_aese type.
21053 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21054 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21055 crypto_aese, crypto_aesmc. Move to types.md.
21056 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21057 crypto_aesmc.
21058 * config/arm/iterators.md (crypto_type): Likewise.
21059
21060 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21061
21062 * cgraph.c: Include expr.h and tree-dfa.h.
21063 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21064 remove LHS.
21065
21066 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21067
21068 PR target/60675
21069 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21070 regs from checking multi-reg pseudos.
21071
21072 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21073
21074 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21075
21076 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21077
21078 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21079 if it would clobber the stack pointer, even temporarily.
21080
21081 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21082
21083 * mode-switching.c: Make small adjustments to the top comment.
21084
21085 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21086
21087 * config/rs6000/constraints.md (wD constraint): New constraint to
21088 match the constant integer to get the top DImode/DFmode out of a
21089 vector in a VSX register.
21090
21091 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21092 match the constant integer to get the top DImode/DFmode out of a
21093 vector in a VSX register.
21094
21095 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21096 for ISA 2.07.
21097
21098 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21099 vbpermq builtins.
21100
21101 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21102 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21103
21104 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21105 Optimize vec_extract of 64-bit values, where the value being
21106 extracted is in the top word, where we can use scalar
21107 instructions. Add direct move and store support. Combine the big
21108 endian/little endian vector select load support into a single insn.
21109 (vsx_extract_<mode>_internal1): Likewise.
21110 (vsx_extract_<mode>_internal2): Likewise.
21111 (vsx_extract_<mode>_load): Likewise.
21112 (vsx_extract_<mode>_store): Likewise.
21113 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21114 combined into vsx_extract_<mode>_load.
21115 (vsx_extract_<mode>_one_le): Likewise.
21116
21117 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21118 define the top 64-bit vector element.
21119
21120 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21121 constraint.
21122
21123 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21124 Document vec_vbpermq builtin.
21125
21126 PR target/60672
21127 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21128 enable use of xxsldwi and xxpermdi builtin functions.
21129 (vec_xxpermdi): Likewise.
21130
21131 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21132 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21133
21134 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21135
21136 PR rtl-optimization/60650
21137 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21138 first_p. Use it.
21139 (find_spills_for): New.
21140 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21141 Spill all pseudos on the second iteration.
21142
21143 2014-03-27 Marek Polacek <polacek@redhat.com>
21144
21145 PR c/50347
21146 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21147 types.
21148
21149 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21150
21151 * config/s390/s390.c (s390_can_use_return_insn): Check for
21152 call-saved FPRs on 31 bit.
21153
21154 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21155
21156 PR middle-end/60682
21157 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21158 if they need regimplification, just drop them instead of
21159 calling gimple_regimplify_operands on them.
21160
21161 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21162
21163 PR target/60580
21164 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21165 (aarch64_frame_pointer_required): Adjust logic.
21166 (aarch64_can_eliminate): Adjust logic.
21167 (aarch64_override_options_after_change): Adjust logic.
21168
21169 2014-03-27 Dehao Chen <dehao@google.com>
21170
21171 * ipa-inline.c (early_inliner): Update node's inline info.
21172
21173 2014-03-26 Dehao Chen <dehao@google.com>
21174
21175 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21176 compiler inserted conditional jumps for NAN float check.
21177
21178 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21179
21180 * ubsan.h (ubsan_create_data): Change second argument's type
21181 to const location_t *.
21182 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21183 _("<unknown>").
21184 (ubsan_create_data): Change second argument to const location_t *PLOC.
21185 Create Loc field whenever PLOC is non-NULL.
21186 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21187 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21188 callers.
21189
21190 PR other/59545
21191 * real.c (real_to_integer2): Change type of low to UHWI.
21192
21193 2014-03-26 Tobias Burnus <burnus@net-b.de>
21194
21195 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21196 (CILK_SELF_SPECS): New define.
21197 (driver_self_specs): Use it.
21198
21199 2014-03-26 Richard Biener <rguenther@suse.de>
21200
21201 * tree-pretty-print.c (percent_K_format): Implement special
21202 case for LTO and its stripped down BLOCK tree.
21203
21204 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21205
21206 PR sanitizer/60636
21207 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21208
21209 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21210 one range is range_int_cst_p, but not both, at least optimize
21211 addition/subtraction of 0 and multiplication by 0 or 1.
21212 * gimple-fold.c (gimple_fold_call): Fold
21213 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21214 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21215 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21216
21217 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21218
21219 PR rtl-optimization/60452
21220 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21221 <case REG>: Return 1 for invalid offsets from the frame pointer.
21222
21223 2014-03-26 Marek Polacek <polacek@redhat.com>
21224
21225 PR c/37428
21226 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21227 a structure/union.
21228
21229 2014-03-26 Marek Polacek <polacek@redhat.com>
21230
21231 PR c/39525
21232 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21233 field members.
21234
21235 2014-03-26 Marek Polacek <polacek@redhat.com>
21236
21237 PR other/59545
21238 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21239 multiplication in unsigned type.
21240
21241 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21242
21243 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21244
21245 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21246
21247 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21248
21249 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21250
21251 PR ipa/60315
21252 * cif-code.def (UNREACHABLE) New code.
21253 * ipa-inline.c (inline_small_functions): Skip edges to
21254 __builtlin_unreachable.
21255 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21256 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21257 predicate to __bulitin_unreachable.
21258 (set_cond_stmt_execution_predicate): Fix issue when
21259 invert_tree_comparison returns ERROR_MARK.
21260 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21261 propagate to inline clones.
21262 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21263 to unreachable.
21264 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21265 * cgraphclones.c (cgraph_clone_node): If call destination is already
21266 ureachable, do not redirect it back.
21267 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21268 unreachable.
21269
21270 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21271
21272 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21273 Do not modify inline clones.
21274
21275 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21276
21277 * config/i386/i386.md (general_sext_operand): New mode attr.
21278 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21279 don't generate (sign_extend (const_int)).
21280 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21281 operands[2]. Use We constraint instead of <i> and
21282 <general_sext_operand> predicate instead of <general_operand>.
21283 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21284 * config/i386/constraints.md (We): New constraint.
21285 * config/i386/predicates.md (x86_64_sext_operand,
21286 sext_operand): New predicates.
21287
21288 2014-03-25 Martin Jambor <mjambor@suse.cz>
21289
21290 PR ipa/60600
21291 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21292 inconsistent devirtualizations to __builtin_unreachable.
21293
21294 2014-03-25 Marek Polacek <polacek@redhat.com>
21295
21296 PR c/35449
21297 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21298
21299 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21300
21301 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21302 order of elements for big-endian.
21303
21304 2014-03-25 Richard Biener <rguenther@suse.de>
21305
21306 PR middle-end/60635
21307 * gimplify-me.c (gimple_regimplify_operands): Update the
21308 re-gimplifed stmt.
21309
21310 2014-03-25 Martin Jambor <mjambor@suse.cz>
21311
21312 PR ipa/59176
21313 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21314 (lto_output_varpool_node): Likewise.
21315 (input_overwrite_node): Likewise.
21316 (input_varpool_node): Likewise.
21317
21318 2014-03-25 Richard Biener <rguenther@suse.de>
21319
21320 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21321 (run_gcc): Likewise.
21322
21323 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21324
21325 * combine.c (simplify_compare_const): Add MODE argument.
21326 Handle mode_width 0 as very large mode_width.
21327 (try_combine, simplify_comparison): Adjust callers.
21328
21329 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21330 type to avoid signed integer overflow.
21331 * explow.c (plus_constant): Likewise.
21332
21333 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21334
21335 * doc/generic.texi: Correct typos.
21336
21337 2014-03-24 Tobias Burnus <burnus@net-b.de>
21338
21339 * doc/invoke.texi (-flto): Expand section about
21340 using static libraries with LTO.
21341
21342 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21343
21344 PR rtl-optimization/60501
21345 * optabs.def (addptr3_optab): New optab.
21346 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21347 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21348 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21349
21350 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21351
21352 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21353
21354 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21355
21356 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21357 _mm512_set1_pd.
21358
21359 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21360 (_mm256_undefined_ps): Define.
21361 (_mm256_undefined_pd): Define.
21362 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21363 (_mm_undefined_pd): Define.
21364 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21365 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21366 (_mm512_undefined_ps): Define.
21367 (_mm512_undefined_pd): Define.
21368 Use _mm*_undefined_*.
21369 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21370
21371 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21372
21373 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21374 (lshr_simd): DI mode added.
21375 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21376 (aarch64_ushr_simddi): Likewise.
21377 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21378 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21379 (vshrd_n_u64): Likewise.
21380
21381 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21382
21383 * Makefile.in (s-macro_list): Depend on cc1.
21384
21385 2014-03-23 Teresa Johnson <tejohnson@google.com>
21386
21387 * ipa-utils.c (ipa_print_order): Use specified dump file.
21388
21389 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21390
21391 PR rtl-optimization/60601
21392 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21393
21394 * gcc.c (eval_spec_function): Initialize save_growing_value.
21395
21396 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21397
21398 PR sanitizer/60613
21399 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21400 code == MINUS_EXPR, never swap op0 with op1.
21401
21402 * toplev.c (init_local_tick): Avoid signed integer multiplication
21403 overflow.
21404 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21405 shift by first operand's bitsize.
21406
21407 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21408
21409 PR target/60610
21410 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21411 redefine to 1 or 0.
21412 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21413 TARGET_ISA_64BIT_P(x).
21414
21415 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21416
21417 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21418 pattern for vector nor instead of subtract from splat(-1).
21419 (altivec_expand_vec_perm_const_le): Likewise.
21420
21421 2014-03-21 Richard Henderson <rth@twiddle.net>
21422
21423 PR target/60598
21424 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21425 related insns after epilogue_completed.
21426
21427 2014-03-21 Martin Jambor <mjambor@suse.cz>
21428
21429 PR ipa/59176
21430 * cgraph.h (symtab_node): New flag body_removed.
21431 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21432 when removing bodies.
21433 * symtab.c (dump_symtab_base): Dump body_removed flag.
21434 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21435 had their bodies removed.
21436
21437 2014-03-21 Martin Jambor <mjambor@suse.cz>
21438
21439 PR ipa/60419
21440 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21441 in the border.
21442
21443 2014-03-21 Richard Biener <rguenther@suse.de>
21444
21445 PR tree-optimization/60577
21446 * tree-core.h (struct tree_base): Document nothrow_flag use
21447 in DECL_NONALIASED.
21448 * tree.h (DECL_NONALIASED): New.
21449 (may_be_aliased): Adjust.
21450 * coverage.c (build_var): Set DECL_NONALIASED.
21451
21452 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21453
21454 * expr.c (expand_expr_real_1): Remove outdated comment.
21455
21456 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21457
21458 PR middle-end/60597
21459 * ira.c (adjust_cleared_regs): Call copy_rtx on
21460 *reg_equiv[REGNO (loc)].src_p before passing it to
21461 simplify_replace_fn_rtx.
21462
21463 PR target/60568
21464 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21465 into CONST, put pic register as first operand of PLUS. Use
21466 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21467
21468 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21469
21470 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21471
21472 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21473
21474 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21475 around for store forwarding issue in the FPU on the UT699.
21476 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21477 loads and operations if -mfix-ut699 is specified.
21478 (divtf3_hq): Tweak attribute.
21479 (sqrttf2_hq): Likewise.
21480
21481 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21482
21483 * calls.c (store_one_arg): Remove incorrect const qualification on the
21484 type of the temporary.
21485 * cfgexpand.c (expand_return): Likewise.
21486 * expr.c (expand_constructor): Likewise.
21487 (expand_expr_real_1): Likewise.
21488
21489 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21490
21491 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21492 of parts.
21493
21494 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21495
21496 PR target/60039
21497 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21498
21499 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21500
21501 * config/arm/aarch-common-protos.h
21502 (alu_cost_table): Fix spelling of "extend".
21503 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21504
21505 2014-03-19 Richard Biener <rguenther@suse.de>
21506
21507 PR middle-end/60553
21508 * tree-core.h (tree_type_common): Re-order pointer members
21509 to reduce recursion depth during GC walks.
21510
21511 2014-03-19 Marek Polacek <polacek@redhat.com>
21512
21513 PR sanitizer/60569
21514 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21515 before accessing it.
21516
21517 2014-03-19 Richard Biener <rguenther@suse.de>
21518
21519 PR lto/59543
21520 * lto-streamer-in.c (input_function): In WPA stage do not drop
21521 debug stmts.
21522
21523 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21524
21525 PR tree-optimization/60559
21526 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21527 with build_zero_cst assignment.
21528
21529 2014-03-18 Kai Tietz <ktietz@redhat.com>
21530
21531 PR rtl-optimization/56356
21532 * sdbout.c (sdbout_parms): Verify that parms'
21533 incoming argument is valid.
21534 (sdbout_reg_parms): Likewise.
21535
21536 2014-03-18 Richard Henderson <rth@redhat.com>
21537
21538 PR target/60562
21539 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21540 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21541 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21542
21543 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21544
21545 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21546 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21547 Italicize plugin event names in description. Explain that
21548 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21549 Remind that no GCC functions should be called after PLUGIN_FINISH.
21550 Explain what pragmas with expansion are.
21551
21552 2014-03-18 Martin Liska <mliska@suse.cz>
21553
21554 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21555 gimple call statement is update.
21556 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21557 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21558
21559 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21560
21561 PR sanitizer/60557
21562 * ubsan.c (ubsan_instrument_unreachable): Call
21563 initialize_sanitizer_builtins.
21564 (ubsan_pass): Likewise.
21565
21566 PR sanitizer/60535
21567 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21568 varpool_finalize_decl instead of rest_of_decl_compilation.
21569
21570 2014-03-18 Richard Biener <rguenther@suse.de>
21571
21572 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21573 by using bitmap_and_compl instead of bitmap_and_compl_into.
21574 (df_rd_transfer_function): Likewise.
21575
21576 2014-03-18 Richard Biener <rguenther@suse.de>
21577
21578 * doc/lto.texi (fresolution): Fix typo.
21579
21580 2014-03-18 Richard Biener <rguenther@suse.de>
21581
21582 * doc/invoke.texi (flto): Update for changes in 4.9.
21583
21584 2014-03-18 Richard Biener <rguenther@suse.de>
21585
21586 * doc/loop.texi: Remove section on the removed lambda framework.
21587 Update loop docs with recent changes in preserving loop structure.
21588
21589 2014-03-18 Richard Biener <rguenther@suse.de>
21590
21591 * doc/lto.texi (-fresolution): Document.
21592
21593 2014-03-18 Richard Biener <rguenther@suse.de>
21594
21595 * doc/contrib.texi: Adjust my name.
21596
21597 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21598
21599 PR ipa/58721
21600 * internal-fn.c: Include diagnostic-core.h.
21601 (expand_BUILTIN_EXPECT): New function.
21602 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21603 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21604 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21605 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21606 IFN_BUILTIN_EXPECT.
21607 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21608 Revert 3 argument __builtin_expect code.
21609 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21610 * gimple-fold.c (gimple_fold_call): Likewise.
21611 * tree.h (fold_builtin_expect): New prototype.
21612 * builtins.c (build_builtin_expect_predicate): Add predictor
21613 argument, if non-NULL, create 3 argument __builtin_expect.
21614 (fold_builtin_expect): No longer static. Add ARG2 argument,
21615 pass it through to build_builtin_expect_predicate.
21616 (fold_builtin_2): Adjust caller.
21617 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21618 * internal-fn.def (BUILTIN_EXPECT): New.
21619
21620 2014-03-18 Tobias Burnus <burnus@net-b.de>
21621
21622 PR ipa/58721
21623 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21624 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21625 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21626
21627 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21628
21629 PR ipa/58721
21630 * predict.c (combine_predictions_for_bb): Fix up formatting.
21631 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21632 fill what it points to if non-NULL.
21633 (tree_predict_by_opcode): Adjust caller, use the predictor.
21634 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21635
21636 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21637
21638 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21639 proper constant for the store mode.
21640
21641 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21642
21643 * symtab.c (change_decl_assembler_name): Fix transparent alias
21644 chain construction.
21645
21646 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21647
21648 * config/aarch64/aarch64.c: Correct the comments about the
21649 aarch64 stack layout.
21650
21651 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21652
21653 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21654 check for GF_OMP_FOR_KIND_FOR.
21655
21656 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21657
21658 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21659 ymm and zmm register names.
21660
21661 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21662
21663 PR target/60516
21664 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21665 note creation for the 2010-08-31 changes.
21666
21667 2014-03-17 Marek Polacek <polacek@redhat.com>
21668
21669 PR middle-end/60534
21670 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21671 as -fno-tree-loop-vectorize.
21672 (expand_omp_simd): Likewise.
21673
21674 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21675
21676 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21677 (eligible_for_call_delay): New prototype.
21678 * config/sparc/sparc.c (tls_call_delay): Rename into...
21679 (eligible_for_call_delay): ...this. Return false if the instruction
21680 cannot be put in the delay slot of a branch.
21681 (eligible_for_restore_insn): Simplify.
21682 (eligible_for_return_delay): Return false if the instruction cannot be
21683 put in the delay slot of a branch and simplify.
21684 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21685 put in the delay slot of a branch.
21686 * config/sparc/sparc.md (fix_ut699): New attribute.
21687 (tls_call_delay): Delete.
21688 (in_call_delay): Reimplement.
21689 (eligible_for_sibcall_delay): Rename into...
21690 (in_sibcall_delay): ...this.
21691 (eligible_for_return_delay): Rename into...
21692 (in_return_delay): ...this.
21693 (in_branch_delay): Reimplement.
21694 (in_uncond_branch_delay): Delete.
21695 (in_annul_branch_delay): Delete.
21696
21697 2014-03-14 Richard Henderson <rth@redhat.com>
21698
21699 PR target/60525
21700 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21701 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21702 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21703 (floathi splitters): Remove.
21704 (float<SWI48x>xf2): New pattern.
21705 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21706 code that tried to handle DImode for 32-bit, but which was excluded
21707 by the pattern's condition. Drop allocation of stack temporary.
21708 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21709 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21710 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21711 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21712 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21713 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21714 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21715 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21716 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21717 (*float<SWI48x><X87MODEF>2_i387): Remove.
21718 (all float _with_temp splitters): Remove.
21719 (*float<SWI48x><MODEF>2_i387): New pattern.
21720 (*float<SWI48><MODEF>2_sse): New pattern.
21721 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21722 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21723
21724 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21725 Marek Polacek <polacek@redhat.com>
21726
21727 PR middle-end/60484
21728 * common.opt (dump_base_name_prefixed): New Variable.
21729 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21730 if x_dump_base_name_prefixed is already set, set it at the end.
21731
21732 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21733
21734 PR rtl-optimization/60508
21735 * lra-constraints.c (get_reload_reg): Add new parameter
21736 in_subreg_p.
21737 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21738 Pass the new parameter values.
21739
21740 2014-03-14 Richard Biener <rguenther@suse.de>
21741
21742 * common.opt: Revert unintented changes from r205065.
21743 * opts.c: Likewise.
21744
21745 2014-03-14 Richard Biener <rguenther@suse.de>
21746
21747 PR middle-end/60518
21748 * cfghooks.c (split_block): Properly adjust all loops the
21749 block was a latch of.
21750
21751 2014-03-14 Martin Jambor <mjambor@suse.cz>
21752
21753 PR lto/60461
21754 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21755 and simplify it.
21756
21757 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21758
21759 PR target/59396
21760 * config/avr/avr.c (avr_set_current_function): Pass function name
21761 through default_strip_name_encoding before sanity checking instead
21762 of skipping the first char of the assembler name.
21763
21764 2014-03-13 Richard Henderson <rth@redhat.com>
21765
21766 PR debug/60438
21767 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21768 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21769 * config/i386/i386-protos.h: Likewise.
21770 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21771 in the expander instead of a splitter.
21772 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21773 any possibility of requiring a memory.
21774 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21775 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21776 (fp branch splitters): Update for ix86_split_fp_branch.
21777 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21778 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21779 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21780 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21781 (*fop_<MODEF>_3_i387): Likewise.
21782 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21783 (splitters for the fop_* register patterns): Remove.
21784 (fscalexf4_i387): Rename from *fscalexf4_i387.
21785 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21786
21787 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21788
21789 PR tree-optimization/59779
21790 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21791 type for bitsize and maxsize instead of HOST_WIDE_INT.
21792
21793 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21794
21795 PR rtl-optimization/57320
21796 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21797 the CFG after thread_prologue_and_epilogue_insns.
21798
21799 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21800
21801 PR rtl-optimization/57189
21802 * lra-constraints.c (process_alt_operands): Disfavor spilling
21803 vector pseudos.
21804
21805 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21806
21807 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21808
21809 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21810
21811 PR tree-optimization/59025
21812 PR middle-end/60418
21813 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21814 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21815
21816 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21817
21818 PR target/60486
21819 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21820 calls of avr_out_plus_1.
21821
21822 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21823
21824 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21825 BB's single pred and update the father loop's latch info later.
21826
21827 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21828
21829 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21830 (VEC_M): Likewise.
21831 (VEC_N): Likewise.
21832 (VEC_R): Likewise.
21833 (VEC_base): Likewise.
21834 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21835 registers, we need to swap double words in little endian mode.
21836
21837 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21838 to be a container mode for 128-bit integer operations added in ISA
21839 2.07. Unlike TImode and PTImode, the preferred register set is
21840 the Altivec/VMX registers for the 128-bit operations.
21841
21842 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21843 declarations.
21844 (rs6000_split_128bit_ok_p): Likewise.
21845
21846 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21847 macros for creating ISA 2.07 normal and overloaded builtin
21848 functions with 3 arguments.
21849 (BU_P8V_OVERLOAD_3): Likewise.
21850 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21851 for use as overloaded functions.
21852 (VPERM_1TI_UNS): Likewise.
21853 (VSEL_1TI): Likewise.
21854 (VSEL_1TI_UNS): Likewise.
21855 (ST_INTERNAL_1ti): Likewise.
21856 (LD_INTERNAL_1ti): Likewise.
21857 (XXSEL_1TI): Likewise.
21858 (XXSEL_1TI_UNS): Likewise.
21859 (VPERM_1TI): Likewise.
21860 (VPERM_1TI_UNS): Likewise.
21861 (XXPERMDI_1TI): Likewise.
21862 (SET_1TI): Likewise.
21863 (LXVD2X_V1TI): Likewise.
21864 (STXVD2X_V1TI): Likewise.
21865 (VEC_INIT_V1TI): Likewise.
21866 (VEC_SET_V1TI): Likewise.
21867 (VEC_EXT_V1TI): Likewise.
21868 (EQV_V1TI): Likewise.
21869 (NAND_V1TI): Likewise.
21870 (ORC_V1TI): Likewise.
21871 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21872 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21873 overloaded builtin.
21874 (VADDUQM): Likewise.
21875 (VSUBCUQ): Likewise.
21876 (VADDEUQM): Likewise.
21877 (VADDECUQ): Likewise.
21878 (VSUBEUQM): Likewise.
21879 (VSUBECUQ): Likewise.
21880
21881 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21882 __int128_t and __uint128_t types.
21883 (__uint128_type): Likewise.
21884 (altivec_categorize_keyword): Add support for vector __int128_t,
21885 vector __uint128_t, vector __int128, and vector unsigned __int128
21886 as a container type for TImode operations that need to be done in
21887 VSX/Altivec registers.
21888 (rs6000_macro_to_expand): Likewise.
21889 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21890 to support 128-bit integer instructions vaddcuq, vadduqm,
21891 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21892 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21893
21894 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21895 for V1TImode, and set up preferences to use VSX/Altivec registers.
21896 Setup VSX reload handlers.
21897 (rs6000_debug_reg_global): Likewise.
21898 (rs6000_init_hard_regno_mode_ok): Likewise.
21899 (rs6000_preferred_simd_mode): Likewise.
21900 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21901 (easy_altivec_constant): Likewise.
21902 (output_vec_const_move): Likewise.
21903 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21904 simple move.
21905 (rs6000_expand_vector_extract): Likewise.
21906 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21907 addressing.
21908 (rs6000_const_vec): Add support for V1TImode.
21909 (rs6000_emit_le_vsx_load): Swap double words when loading or
21910 storing TImode/V1TImode.
21911 (rs6000_emit_le_vsx_store): Likewise.
21912 (rs6000_emit_le_vsx_move): Likewise.
21913 (rs6000_emit_move): Add support for V1TImode.
21914 (altivec_expand_ld_builtin): Likewise.
21915 (altivec_expand_st_builtin): Likewise.
21916 (altivec_expand_vec_init_builtin): Likewise.
21917 (altivec_expand_builtin): Likewise.
21918 (rs6000_init_builtins): Add support for V1TImode type. Add
21919 support for ISA 2.07 128-bit integer builtins. Define type names
21920 for the VSX/Altivec vector types.
21921 (altivec_init_builtins): Add support for overloaded vector
21922 functions with V1TImode type.
21923 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21924 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21925 external function.
21926 (rs6000_split_128bit_ok_p): Likewise.
21927 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21928 __int128_t and vector __uint128_t.
21929
21930 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21931 and mode attributes.
21932 (VSX_M): Likewise.
21933 (VSX_M2): Likewise.
21934 (VSm): Likewise.
21935 (VSs): Likewise.
21936 (VSr): Likewise.
21937 (VSv): Likewise.
21938 (VS_scalar): Likewise.
21939 (VS_double): Likewise.
21940 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21941
21942 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21943 we support the ISA 2.07 128-bit integer arithmetic instructions.
21944 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21945 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21946 and TImode types for use with the builtin functions.
21947 (V1TI_type_node): Likewise.
21948 (unsigned_V1TI_type_node): Likewise.
21949 (intTI_type_internal_node): Likewise.
21950 (uintTI_type_internal_node): Likewise.
21951
21952 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21953 128-bit builtin functions.
21954 (UNSPEC_VADDEUQM): Likewise.
21955 (UNSPEC_VADDECUQ): Likewise.
21956 (UNSPEC_VSUBCUQ): Likewise.
21957 (UNSPEC_VSUBEUQM): Likewise.
21958 (UNSPEC_VSUBECUQ): Likewise.
21959 (VM): Add V1TImode to vector mode iterators.
21960 (VM2): Likewise.
21961 (VI_unit): Likewise.
21962 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21963 (altivec_vaddcuq): Likewise.
21964 (altivec_vsubuqm): Likewise.
21965 (altivec_vsubcuq): Likewise.
21966 (altivec_vaddeuqm): Likewise.
21967 (altivec_vaddecuq): Likewise.
21968 (altivec_vsubeuqm): Likewise.
21969 (altivec_vsubecuq): Likewise.
21970
21971 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21972 mode iterators.
21973 (BOOL_128): Likewise.
21974 (BOOL_REGS_OUTPUT): Likewise.
21975 (BOOL_REGS_OP1): Likewise.
21976 (BOOL_REGS_OP2): Likewise.
21977 (BOOL_REGS_UNARY): Likewise.
21978 (BOOL_REGS_AND_CR0): Likewise.
21979
21980 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21981 128-bit integer builtin support.
21982 (vec_vadduqm): Likewise.
21983 (vec_vaddecuq): Likewise.
21984 (vec_vaddeuqm): Likewise.
21985 (vec_vsubecuq): Likewise.
21986 (vec_vsubeuqm): Likewise.
21987 (vec_vsubcuq): Likewise.
21988 (vec_vsubuqm): Likewise.
21989
21990 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21991 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21992 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21993 128-bit integer add/subtract to ISA 2.07.
21994
21995 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21996
21997 * config/arc/arc.c (arc_predicate_delay_insns):
21998 Fix third argument passed to conditionalize_nonjump.
21999
22000 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22001
22002 * config/aarch64/aarch64-builtins.c
22003 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22004 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22005 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22006 instead of __builtin_lfloor.
22007 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22008
22009 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22010
22011 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22012 (tree_ssa_ifcombine_bb_1): New function.
22013 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22014 is an empty forwarder block to then_bb or vice versa and then_bb
22015 and else_bb are effectively swapped.
22016
22017 2014-03-12 Christian Bruel <christian.bruel@st.com>
22018
22019 PR target/60264
22020 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22021 REG_CFA_DEF_CFA note.
22022 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22023 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22024
22025 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22026
22027 PR tree-optimization/60454
22028 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22029
22030 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22031
22032 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22033 Do not define target_cpu_default2 to generic.
22034 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22035 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22036 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22037
22038 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22039 Marc Glisse <marc.glisse@inria.fr>
22040
22041 PR tree-optimization/60502
22042 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22043 instead of build_low_bits_mask.
22044
22045 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22046
22047 PR middle-end/60482
22048 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22049 if there are multiple uses, but op doesn't live on E edge.
22050 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22051 clobber stmts before __builtin_unreachable.
22052
22053 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22054
22055 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22056 hard_frame_pointer_rtx.
22057 * cse.c (cse_insn): Remove volatile check.
22058 * cselib.c (cselib_process_insn): Likewise.
22059 * dse.c (scan_insn): Likewise.
22060
22061 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22062
22063 * config/arc/arc.c (conditionalize_nonjump): New function,
22064 broken out of ...
22065 (arc_ifcvt): ... this.
22066 (arc_predicate_delay_insns): Use it.
22067
22068 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22069
22070 * config/arc/predicates.md (extend_operand): During/after reload,
22071 allow const_int_operand.
22072 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22073 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22074 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22075 to "i".
22076 (umulsi3_highpart_i): Likewise.
22077
22078 2014-03-11 Richard Biener <rguenther@suse.de>
22079
22080 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22081 Add asserts to guard possible wrong-code bugs.
22082
22083 2014-03-11 Richard Biener <rguenther@suse.de>
22084
22085 PR tree-optimization/60429
22086 PR tree-optimization/60485
22087 * tree-ssa-structalias.c (set_union_with_increment): Properly
22088 take into account all fields that overlap the shifted vars.
22089 (do_sd_constraint): Likewise.
22090 (do_ds_constraint): Likewise.
22091 (get_constraint_for_ptr_offset): Likewise.
22092
22093 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22094
22095 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22096 (nios2_compute_frame_layout):
22097 Add calculation of cfun->machine->fp_save_offset.
22098 (nios2_expand_prologue): Correct setting of frame pointer register
22099 in prologue.
22100 (nios2_expand_epilogue): Update recovery of stack pointer from
22101 frame pointer accordingly.
22102 (nios2_initial_elimination_offset): Update calculation of offset
22103 for eliminating to HARD_FRAME_POINTER_REGNUM.
22104
22105 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22106
22107 PR ipa/60457
22108 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22109 cgraph_get_create_node on VAR_DECLs.
22110
22111 2014-03-10 Richard Biener <rguenther@suse.de>
22112
22113 PR middle-end/60474
22114 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22115
22116 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22117
22118 * config/vms/vms.opt (vms_float_format): New variable.
22119
22120 2014-03-08 Tobias Burnus <burnus@net-b.de>
22121
22122 * doc/invoke.texi (-fcilkplus): Update implementation status.
22123
22124 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22125 Richard Biener <rguenther@suse.de>
22126
22127 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22128 consistently accross all TUs.
22129 (run_gcc): Enable -fshort-double automatically at link at link-time
22130 and disallow override.
22131
22132 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22133
22134 PR target/58271
22135 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22136 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22137 if they can't be used.
22138
22139 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22140
22141 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22142 for Solaris 11/x86 ld.
22143 * configure: Regenerate.
22144
22145 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22146
22147 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22148 (LIB_TLS_SPEC): Save as ld_tls_libs.
22149 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22150 (HAVE_AS_IX86_TLSLDM): New test.
22151 * configure, config.in: Regenerate.
22152 * config/i386/i386.c (legitimize_tls_address): Fall back to
22153 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22154 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22155 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22156 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22157
22158 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22159
22160 * common.opt (fira-loop-pressure): Mark as optimization.
22161
22162 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22163
22164 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22165 an OpenMP mappable type.
22166
22167 2014-03-06 Matthias Klose <doko@ubuntu.com>
22168
22169 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22170 MULTILIB_OSDIRNAMES is not defined.
22171
22172 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22173 Meador Inge <meadori@codesourcery.com>
22174
22175 PR target/58595
22176 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22177 (arm_legitimize_address): Call legitimize_tls_address for any
22178 arm_tls_referenced_p expression, handle constant addend. Call it
22179 before testing for !TARGET_ARM.
22180 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22181
22182 2014-03-06 Richard Biener <rguenther@suse.de>
22183
22184 PR middle-end/60445
22185 PR lto/60424
22186 PR lto/60427
22187 Revert
22188 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22189
22190 * tree-streamer.c (record_common_node): Assert we don't record
22191 nodes with type double.
22192 (preload_common_node): Skip type double, complex double and double
22193 pointer since it is now frontend dependent due to fshort-double option.
22194
22195 2014-03-06 Richard Biener <rguenther@suse.de>
22196
22197 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22198 or -fno-lto is specified and the linker has full plugin support.
22199 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22200 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22201 * lto-wrapper.c (merge_and_complain): Merge compile-time
22202 optimization levels.
22203 (run_gcc): And pass it through to the link options.
22204
22205 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22206
22207 PR debug/60381
22208 Revert:
22209 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22210 PR debug/59992
22211 * cselib.c (remove_useless_values): Skip to avoid quadratic
22212 behavior if the condition moved from...
22213 (cselib_process_insn): ... here holds.
22214
22215 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22216
22217 PR plugins/59335
22218 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22219 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22220
22221 PR plugins/59335
22222 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22223 (TM_H): Add x86-tune.def.
22224
22225 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22226
22227 * config/aarch64/aarch64.c (generic_tunings):
22228 Use cortexa57_extra_costs.
22229
22230 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22231
22232 PR lto/60404
22233 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22234 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22235 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22236 cost for in_lto_p.
22237
22238 2014-03-04 Heiher <r@hev.cc>
22239
22240 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22241 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22242
22243 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22244
22245 * config/i386/predicates.md (const2356_operand): Change to ...
22246 (const2367_operand): ... this.
22247 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22248 const2367_operand.
22249 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22250 (*avx512pf_scatterpf<mode>sf): Ditto.
22251 (avx512pf_scatterpf<mode>df): Ditto.
22252 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22253 (*avx512pf_scatterpf<mode>df): Ditto.
22254 * config/i386/i386.c (ix86_expand_builtin): Update
22255 incorrect hint operand error message.
22256
22257 2014-03-04 Richard Biener <rguenther@suse.de>
22258
22259 * lto-section-in.c (lto_get_section_data): Fix const cast.
22260
22261 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22262
22263 * tree-streamer.c (record_common_node): Assert we don't record
22264 nodes with type double.
22265 (preload_common_node): Skip type double, complex double and double
22266 pointer since it is now frontend dependent due to fshort-double option.
22267
22268 2014-03-04 Richard Biener <rguenther@suse.de>
22269
22270 PR lto/60405
22271 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22272 (lto_input_toplevel_asms): Likewise.
22273 * lto-section-in.c (lto_get_section_data): Instead do it here
22274 for every section.
22275
22276 2014-03-04 Richard Biener <rguenther@suse.de>
22277
22278 PR tree-optimization/60382
22279 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22280 dead PHIs a reduction.
22281
22282 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22283
22284 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22285 hint value.
22286 (_mm_prefetch): Move out of GCC target("sse") pragma.
22287 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22288 GCC target("prfchw") pragma.
22289 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22290 for locality <= 2.
22291 * config/i386/i386.c (ix86_option_override_internal): Enable
22292 -mprfchw with -mprefetchwt1.
22293
22294 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22295
22296 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22297 Mark as varying.
22298
22299 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22300
22301 * opts.h (CL_PCH_IGNORE): Define.
22302 * targhooks.c (option_affects_pch_p):
22303 Return false for options that have CL_PCH_IGNORE set.
22304 * opt-functions.awk: Process PchIgnore.
22305 * doc/options.texi: Document PchIgnore.
22306
22307 * config/arc/arc.opt (misize): Add PchIgnore property.
22308
22309 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22310
22311 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22312 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22313 constraint on constants to permit them being loaded into
22314 GENERAL_REGS or BASE_REGS.
22315
22316 2014-03-03 Nick Clifton <nickc@redhat.com>
22317
22318 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22319 anti-cacnonical alternatives.
22320 (negandhi3_real): New pattern.
22321 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22322
22323 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22324
22325 * config/avr/avr-mcus.def: Remove atxmega16x1.
22326 * config/avr/avr-tables.opt: Regenerate.
22327 * config/avr/t-multilib: Regenerate.
22328 * doc/avr-mmcu.texi: Regenerate.
22329
22330 2014-03-03 Tobias Grosser <tobias@grosser.es>
22331 Mircea Namolaru <mircea.namolaru@inria.fr>
22332
22333 PR tree-optimization/58028
22334 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22335 scalar dimensions.
22336
22337 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22338
22339 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22340 not handled by recognizers.
22341
22342 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22343
22344 PR middle-end/60175
22345 * function.c (expand_function_end): Don't emit
22346 clobber_return_register sequence if clobber_after is a BARRIER.
22347 * cfgexpand.c (construct_exit_block): Append instructions before
22348 return_label to prev_bb.
22349
22350 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22351
22352 * config/rs6000/constraints.md: Document reserved use of "wc".
22353
22354 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22355
22356 PR ipa/60150
22357 * ipa.c (function_and_variable_visibility): When dissolving comdat
22358 group, also set all symbols to local.
22359
22360 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22361
22362 PR ipa/60306
22363
22364 Revert:
22365 2013-12-14 Jan Hubicka <jh@suse.cz>
22366 PR middle-end/58477
22367 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22368
22369 2014-03-02 Jon Beniston <jon@beniston.com>
22370
22371 PR bootstrap/48230
22372 PR bootstrap/50927
22373 PR bootstrap/52466
22374 PR target/46898
22375 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22376 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22377 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22378 (simple_return, *simple_return): New patterns
22379 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22380 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22381
22382 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22383
22384 * dwarf2out.c (gen_subprogram_die): Tidy.
22385
22386 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22387
22388 PR target/60071
22389 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22390 (*mov_t_msb_neg_negc): ... this new insn.
22391
22392 2014-02-28 Jason Merrill <jason@redhat.com>
22393
22394 PR c++/58678
22395 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22396 function.
22397
22398 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22399
22400 PR c++/60314
22401 * dwarf2out.c (decltype_auto_die): New static.
22402 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22403 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22404 (is_cxx_auto): Likewise.
22405
22406 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22407
22408 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22409 we are not using general regs only.
22410
22411 2014-02-28 Richard Biener <rguenther@suse.de>
22412
22413 PR target/60280
22414 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22415 previous fix and only allow to remove trivial pre-headers
22416 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22417 (remove_forwarder_block): Properly update the latch of a loop.
22418
22419 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22420
22421 PR debug/59992
22422 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22423 (cselib_preserved_hash_table): New.
22424 (preserve_constants_and_equivs): Move preserved vals to it.
22425 (cselib_find_slot): Look it up first.
22426 (cselib_init): Initialize it.
22427 (cselib_finish): Release it.
22428 (dump_cselib_table): Dump it.
22429
22430 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22431
22432 PR debug/59992
22433 * cselib.c (remove_useless_values): Skip to avoid quadratic
22434 behavior if the condition moved from...
22435 (cselib_process_insn): ... here holds.
22436
22437 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22438
22439 PR debug/57232
22440 * var-tracking.c (vt_initialize): Apply the same condition to
22441 preserve the CFA base value.
22442
22443 2014-02-28 Joey Ye <joey.ye@arm.com>
22444
22445 PR target/PR60169
22446 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22447 if reload in progress or completed.
22448
22449 2014-02-28 Tobias Burnus <burnus@net-b.de>
22450
22451 PR middle-end/60147
22452 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22453 NAMELIST_DECL.
22454
22455 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22456
22457 * doc/tm.texi.in (Condition Code Status): Update documention for
22458 relative locations of cc0-setter and cc0-user.
22459
22460 2014-02-27 Jeff Law <law@redhat.com>
22461
22462 PR rtl-optimization/52714
22463 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22464 into two independent simple sets, if I3 is a jump, ensure the
22465 pattern we place into I3 is a (set (pc) ...).
22466
22467 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22468 Jeff Law <law@redhat.com>
22469
22470 PR rtl-optimization/49847
22471 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22472 are in different blocks.
22473 * doc/tm.texi (Condition Code Status): Update documention for
22474 relative locations of cc0-setter and cc0-user.
22475
22476 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22477
22478 PR target/59222
22479 * lra.c (lra_emit_add): Check SUBREG too.
22480
22481 2014-02-27 Andreas Schwab <schwab@suse.de>
22482
22483 * config/m68k/m68k.c (m68k_option_override): Disable
22484 -flive-range-shrinkage for classic m68k.
22485 (m68k_override_options_after_change): Likewise.
22486
22487 2014-02-27 Marek Polacek <polacek@redhat.com>
22488
22489 PR middle-end/59223
22490 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22491 -Wmaybe-uninitialized.
22492
22493 2014-02-27 Alan Modra <amodra@gmail.com>
22494
22495 PR target/57936
22496 * reload1.c (emit_input_reload_insns): When reload_override_in,
22497 set old to rl->in_reg when rl->in_reg is a subreg.
22498
22499 2014-02-26 Richard Biener <rguenther@suse.de>
22500
22501 PR bootstrap/60343
22502 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22503
22504 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22505
22506 * common/config/i386/predicates.md (const1256_operand): Remove.
22507 (const2356_operand): New.
22508 (const_1_to_2_operand): Remove.
22509 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22510 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22511 (*avx512pf_gatherpf<mode>sf): Ditto.
22512 (avx512pf_gatherpf<mode>df): Ditto.
22513 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22514 (*avx512pf_gatherpf<mode>df): Ditto.
22515 (avx512pf_scatterpf<mode>sf): Ditto.
22516 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22517 (*avx512pf_scatterpf<mode>sf): Ditto.
22518 (avx512pf_scatterpf<mode>df): Ditto.
22519 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22520 (*avx512pf_scatterpf<mode>df): Ditto.
22521 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22522
22523 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22524
22525 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22526 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22527 (_mm512_mask_testn_epi64_mask): Move to ...
22528 * config/i386/avx512cdintrin.h: Here.
22529 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22530 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22531 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22532 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22533 TARGET_AVX512F from TARGET_AVX512CD.
22534
22535 2014-02-26 Richard Biener <rguenther@suse.de>
22536
22537 PR ipa/60327
22538 * ipa.c (walk_polymorphic_call_targets): Properly guard
22539 call to inline_update_overall_summary.
22540
22541 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22542
22543 PR target/60280
22544 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22545 and latches only if requested. Fix latch if it is removed.
22546 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22547 LOOPS_HAVE_PREHEADERS.
22548
22549 2014-02-25 Andrew Pinski <apinski@cavium.com>
22550
22551 * builtins.c (expand_builtin_thread_pointer): Create a new target
22552 when the target is NULL.
22553
22554 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22555
22556 PR rtl-optimization/60317
22557 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22558 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22559 * lra-assigns.c: Include params.h.
22560 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22561 other reload pseudos considerations.
22562
22563 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22564
22565 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22566 to use canonical form for nor<mode>3.
22567
22568 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22569
22570 PR target/55426
22571 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22572 conversions.
22573
22574 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22575
22576 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22577 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22578 (ix86_handle_option): Handle OPT_mprefetchwt1.
22579 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22580 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22581 PREFETCHWT1 CPUID.
22582 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22583 OPTION_MASK_ISA_PREFETCHWT1.
22584 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22585 (PTA_PREFETCHWT1): New.
22586 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22587 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22588 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22589 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22590 (*prefetch_avx512pf_<mode>_: Change into ...
22591 (*prefetch_prefetchwt1_<mode>: This.
22592 * config/i386/i386.opt (mprefetchwt1): New.
22593 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22594 (_mm_prefetch): Handle intent to write.
22595 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22596
22597 2014-02-25 Richard Biener <rguenther@suse.de>
22598
22599 PR middle-end/60291
22600 * emit-rtl.c (mem_attrs_htab): Remove.
22601 (mem_attrs_htab_hash): Likewise.
22602 (mem_attrs_htab_eq): Likewise.
22603 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22604 (init_emit_once): Do not allocate mem_attrs_htab.
22605
22606 2014-02-25 Richard Biener <rguenther@suse.de>
22607
22608 PR lto/60319
22609 * lto-opts.c (lto_write_options): Output non-explicit conservative
22610 -fwrapv, -fno-trapv and -fno-strict-overflow.
22611 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22612 (run_gcc): And pass them through.
22613
22614 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22615
22616 * sel-sched.c (calculate_new_fences): New parameter ptime.
22617 Calculate it as a maximum over all fence cycles.
22618 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22619 Print the final schedule timing when sched_verbose.
22620
22621 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22622
22623 PR rtl-optimization/60292
22624 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22625 bit fot the fence instruction.
22626
22627 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22628
22629 * calls.h: Fix typo in comment.
22630
22631 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22632
22633 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22634 adjusting offsetable addresses.
22635
22636 2014-02-24 Guozhi Wei <carrot@google.com>
22637
22638 * sparseset.h (sparseset_pop): Fix the wrong index.
22639
22640 2014-02-24 Walter Lee <walt@tilera.com>
22641
22642 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22643 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22644 triplet.
22645 * common/config/tilegx/tilegx-common.c
22646 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22647 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22648 (LINK_SPEC): Ditto.
22649 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22650 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22651 (tilegx_gimplify_va_arg_expr): Handle big endian.
22652 (tilegx_expand_unaligned_load): Ditto.
22653 (tilegx_expand_unaligned_store): Ditto.
22654 (TARGET_RETURN_IN_MSB): New.
22655 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22656 (TARGET_ENDIAN_DEFAULT): New.
22657 (TARGET_BIG_ENDIAN): Handle big endian.
22658 (BYTES_BIG_ENDIAN): Ditto.
22659 (WORDS_BIG_ENDIAN): Ditto.
22660 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22661 (ENDIAN_SPEC): New.
22662 (EXTRA_SPECS): New.
22663 * config/tilegx/tilegx.md (extv): Handle big endian.
22664 (extzv): Ditto.
22665 (insn_st<n>): Ditto.
22666 (insn_st<n>_add<bitsuffix>): Ditto.
22667 (insn_stnt<n>): Ditto.
22668 (insn_stnt<n>_add<bitsuffix>):Ditto.
22669 (vec_interleave_highv8qi): Handle big endian.
22670 (vec_interleave_highv8qi_be): New.
22671 (vec_interleave_highv8qi_le): New.
22672 (insn_v1int_h): Handle big endian.
22673 (vec_interleave_lowv8qi): Handle big endian.
22674 (vec_interleave_lowv8qi_be): New.
22675 (vec_interleave_lowv8qi_le): New.
22676 (insn_v1int_l): Handle big endian.
22677 (vec_interleave_highv4hi): Handle big endian.
22678 (vec_interleave_highv4hi_be): New.
22679 (vec_interleave_highv4hi_le): New.
22680 (insn_v2int_h): Handle big endian.
22681 (vec_interleave_lowv4hi): Handle big endian.
22682 (vec_interleave_lowv4hi_be): New.
22683 (vec_interleave_lowv4hi_le): New.
22684 (insn_v2int_l): Handle big endian.
22685 (vec_interleave_highv2si): Handle big endian.
22686 (vec_interleave_highv2si_be): New.
22687 (vec_interleave_highv2si_le): New.
22688 (insn_v4int_h): Handle big endian.
22689 (vec_interleave_lowv2si): Handle big endian.
22690 (vec_interleave_lowv2si_be): New.
22691 (vec_interleave_lowv2si_le): New.
22692 (insn_v4int_l): Handle big endian.
22693 * config/tilegx/tilegx.opt (mbig-endian): New option.
22694 (mlittle-endian): New option.
22695 * doc/install.texi: Document tilegxbe-linux.
22696 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22697
22698 2014-02-24 Martin Jambor <mjambor@suse.cz>
22699
22700 PR ipa/60266
22701 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22702 there are no parameter descriptors.
22703
22704 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22705
22706 PR rtl-optimization/60268
22707 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22708 initialization to ...
22709 (sched_rgn_init): ... here.
22710 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22711
22712 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22713
22714 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22715 names.
22716
22717 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22718
22719 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22720 definition.
22721
22722 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22723
22724 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22725 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22726
22727 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22728
22729 * config/microblaze/predicates.md: Add cmp_op predicate.
22730 * config/microblaze/microblaze.md: Add branch_compare instruction
22731 which uses cmp_op predicate and emits cmp insn before branch.
22732 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22733 to microblaze_expand_conditional_branch and consolidate logic.
22734 (microblaze_expand_conditional_branch): emit branch_compare
22735 insn instead of handling cmp op separate from branch insn.
22736
22737 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22738
22739 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22740 to permit subregs.
22741
22742 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22743
22744 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22745 define_insn with define_expand and new define_insn
22746 *altivec_lve<VI_char>x_internal.
22747 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22748 and new define_insn *altivec_stve<VI_char>x_internal.
22749 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22750 prototype.
22751 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22752 lve*x built-ins.
22753 (altivec_expand_stvex_be): New function.
22754
22755 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22756
22757 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22758 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22759 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22760 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22761
22762 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22763
22764 PR target/60298
22765 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22766 instead of emit_move_insn.
22767
22768 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22769
22770 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22771 vspltw with vsldoi.
22772 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22773 gen_altivec_vsumsws.
22774
22775 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22776
22777 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22778 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22779 (altivec_lvxl_<mode>): New define_expand incorporating
22780 -maltivec=be semantics where needed.
22781 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22782 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22783 semantics where needed.
22784 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22785 (altivec_stvx_<mode>): New define_expand incorporating
22786 -maltivec=be semantics where needed.
22787 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22788 VM2 iterator instead of V4SI.
22789 (altivec_stvxl_<mode>): New define_expand incorporating
22790 -maltivec=be semantics where needed.
22791 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22792 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22793 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22794 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22795 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22796 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22797 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22798 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22799 ALTIVEC_BUILTIN_STVXL.
22800 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22801 (altivec_expand_stvx_be): Likewise.
22802 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22803 (altivec_expand_lvx_be): Likewise.
22804 (altivec_expand_stvx_be): Likewise.
22805 (altivec_expand_builtin): Add cases for
22806 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22807 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22808 (altivec_init_builtins): Add definitions for
22809 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22810 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22811
22812 2014-02-21 Catherine Moore <clm@codesourcery.com>
22813
22814 * doc/invoke.texi (mvirt, mno-virt): Document.
22815 * config/mips/mips.opt (mvirt): New option.
22816 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22817
22818 2014-02-21 Richard Biener <rguenther@suse.de>
22819
22820 PR tree-optimization/60276
22821 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22822 (STMT_VINFO_MIN_NEG_DIST): New macro.
22823 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22824 STMT_VINFO_MIN_NEG_DIST.
22825 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22826 made for negative dependence distances still hold.
22827
22828 2014-02-21 Richard Biener <rguenther@suse.de>
22829
22830 PR middle-end/60291
22831 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22832 DECL_INITIAL for globals not in the current function context.
22833
22834 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22835
22836 PR tree-optimization/56490
22837 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22838 * tree-ssa-uninit.c: Include params.h.
22839 (compute_control_dep_chain): Add num_calls argument, return false
22840 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22841 num_calls to recursive call.
22842 (find_predicates): Change dep_chain into normal array,
22843 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22844 variable and adjust compute_control_dep_chain caller.
22845 (find_def_preds): Likewise.
22846
22847 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22848
22849 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22850 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22851
22852 2014-02-21 Nick Clifton <nickc@redhat.com>
22853
22854 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22855 (pushhi1): Likewise.
22856 (popqi1): Add mode to pre_dec.
22857 (pophi1): Likewise.
22858
22859 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22860
22861 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22862 mode for mask of V8SFmode permutation.
22863
22864 2014-02-20 Richard Henderson <rth@redhat.com>
22865
22866 PR c++/60272
22867 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22868 a new pseudo for OLDVAL.
22869
22870 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22871
22872 PR target/57896
22873 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22874 gen_reg_rtx if d->testing_p.
22875 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22876 if d->testing_p and we will certainly return true.
22877 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22878 if d->testing_p.
22879
22880 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22881
22882 * emit-rtl.c (gen_reg_rtx): Assert that
22883 crtl->emit.regno_pointer_align_length is non-zero.
22884
22885 2014-02-20 Richard Henderson <rth@redhat.com>
22886
22887 PR c++/60272
22888 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22889 on failure the store back into EXPECT.
22890
22891 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22892 Sandra Loosemore <sandra@codesourcery.com>
22893
22894 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22895 * config/nios2/nios2.c (nios2_function_profiler): Add
22896 -fPIC (flag_pic == 2) support.
22897 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22898 (nios2_large_offset_p): New function.
22899 (nios2_unspec_reloc_p): Move up position, update to use
22900 nios2_large_offset_p.
22901 (nios2_unspec_address): Remove function.
22902 (nios2_unspec_offset): New function.
22903 (nios2_large_got_address): New function.
22904 (nios2_got_address): Add large offset support.
22905 (nios2_legitimize_tls_address): Update usage of removed and new
22906 functions.
22907 (nios2_symbol_binds_local_p): New function.
22908 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22909 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22910 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22911 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22912 processing for (const (unspec ...)).
22913 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22914
22915 2014-02-20 Richard Biener <rguenther@suse.de>
22916
22917 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22918 doing the substitution.
22919 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22920
22921 2014-02-20 Martin Jambor <mjambor@suse.cz>
22922
22923 PR ipa/55260
22924 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22925 info when checking whether lattices are bottom.
22926
22927 2014-02-20 Richard Biener <rguenther@suse.de>
22928
22929 PR middle-end/60221
22930 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22931 regions at -O0.
22932
22933 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22934
22935 PR ipa/58555
22936 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22937 parameter specifying the scaling.
22938 (inline_call): Update.
22939 (want_inline_recursively): Guard division by zero.
22940 (recursive_inlining): Update.
22941 * ipa-inline.h (clone_inlined_nodes): Update.
22942
22943 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22944
22945 PR target/60204
22946 * config/i386/i386.c (classify_argument): Pass structures of size
22947 64 bytes or less in register.
22948
22949 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22950 Kirill Yukhin <kirill.yukhin@intel.com>
22951
22952 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22953 (_mm_rcp28_round_ss): Ditto.
22954 (_mm_rsqrt28_round_sd): Ditto.
22955 (_mm_rsqrt28_round_ss): Ditto.
22956 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22957 (_mm_rcp14_round_ss): Ditto.
22958 (_mm_rsqrt14_round_sd): Ditto.
22959 (_mm_rsqrt14_round_ss): Ditto.
22960 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22961 the first input operand, get rid of match_dup.
22962 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22963 attribute to sse.
22964 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22965 Ditto.
22966 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22967 operand as the first input operand, set type attribute.
22968 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22969 Set type attribute.
22970 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22971 operand as the first input operand, set type attribute.
22972
22973 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22974
22975 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22976 bit of zero.
22977
22978 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22979
22980 PR target/60207
22981 * config/i386/i386.c (construct_container): Remove TFmode check
22982 for X86_64_INTEGER_CLASS.
22983
22984 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22985
22986 PR target/59794
22987 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22988 only when -Wpsabi is enabled.
22989
22990 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22991
22992 PR target/59799
22993 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22994 passing arrays in registers are the same as for structs, so remove the
22995 special case for them.
22996
22997 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22998
22999 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23000 destination type, extract only the valid bits if the source type is not
23001 integral and has a different mode.
23002
23003 2014-02-19 Richard Biener <rguenther@suse.de>
23004
23005 PR ipa/60243
23006 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23007 for all calls.
23008
23009 2014-02-19 Richard Biener <rguenther@suse.de>
23010
23011 PR ipa/60243
23012 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23013 (ipa_modify_call_arguments): Emit an argument load explicitely and
23014 preserve virtual SSA form there and for the replacement call.
23015 Do not update SSA form nor free dominance info.
23016
23017 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23018
23019 * ipa.c (function_and_variable_visibility): Also clear WEAK
23020 flag when disolving COMDAT_GROUP.
23021
23022 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23023
23024 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23025 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23026 not devirtualizing.
23027 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23028 do more sanity checks.
23029 (detect_type_change): Return true when giving up early.
23030 (compute_complex_assign_jump_func): Fix type parameter of
23031 ipa_set_ancestor_jf.
23032 (compute_complex_ancestor_jump_func): Likewise.
23033 (update_jump_functions_after_inlining): Fix updating of
23034 ancestor function.
23035 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23036
23037 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23038
23039 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23040 inline clones when edge disappears.
23041
23042 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23043
23044 PR target/60203
23045 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23046 Split 64-bit moves into 2 patterns. Do not allow the use of
23047 direct move for TDmode in little endian, since the decimal value
23048 has little endian bytes within a word, but the 64-bit pieces are
23049 ordered in a big endian fashion, and normal subreg's of TDmode are
23050 not allowed.
23051 (mov<mode>_64bit_dm): Likewise.
23052 (movtd_64bit_nodm): Likewise.
23053
23054 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23055
23056 PR tree-optimization/60174
23057 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23058 statement of an SSA_NAME that occurs in an abnormal PHI node.
23059
23060 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23061
23062 PR sanitizer/60142
23063 * final.c (SEEN_BB): Remove.
23064 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23065 (final_scan_insn): Don't force_source_line on second
23066 NOTE_INSN_BASIC_BLOCK.
23067
23068 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23069
23070 PR target/60205
23071 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23072 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23073 (type_natural_mode): Warn ABI change when %zmm register is not
23074 available for AVX512F vector value passing.
23075
23076 2014-02-18 Kai Tietz <ktietz@redhat.com>
23077
23078 PR target/60193
23079 * config/i386/i386.c (ix86_expand_prologue): Use value in
23080 rax register as displacement when restoring %r10 or %rax.
23081 Fix wrong offset when restoring both registers.
23082
23083 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23084
23085 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23086 assertion with conditional return.
23087
23088 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23089 Uros Bizjak <ubizjak@gmail.com>
23090
23091 PR driver/60233
23092 * config/i386/driver-i386.c (host_detect_local_cpu): If
23093 YMM state is not saved by the OS, also clear has_f16c. Move
23094 CPUID 0x80000001 handling before YMM state saving checking.
23095
23096 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23097
23098 PR rtl-optimization/58960
23099 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23100 factored out from ...
23101 (sched_init): ... here.
23102 (free_global_sched_pressure_data): New, factored out from ...
23103 (sched_finish): ... here.
23104 * sched-int.h (free_global_sched_pressure_data): Declare.
23105 * sched-rgn.c (nr_regions_initial): New static global.
23106 (haifa_find_rgns): Initialize it.
23107 (schedule_region): Disable sched-pressure for the newly
23108 generated regions.
23109
23110 2014-02-17 Richard Biener <rguenther@suse.de>
23111
23112 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23113 release SSA defs of pattern stmts.
23114
23115 2014-02-17 Richard Biener <rguenther@suse.de>
23116
23117 * tree-inline.c (expand_call_inline): Release the virtual
23118 operand defined by the call we are about to inline.
23119
23120 2014-02-17 Richard Biener <rguenther@suse.de>
23121
23122 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23123
23124 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23125 Ilya Tocar <ilya.tocar@intel.com>
23126
23127 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23128 arguments order in builtin.
23129 (_mm512_permutexvar_epi64): Ditto.
23130 (_mm512_mask_permutexvar_epi64): Ditto
23131 (_mm512_maskz_permutexvar_epi32): Ditto
23132 (_mm512_permutexvar_epi32): Ditto
23133 (_mm512_mask_permutexvar_epi32): Ditto
23134
23135 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23136
23137 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23138 (p8_vmrgow): Likewise.
23139
23140 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23141
23142 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23143 endian targets.
23144
23145 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23146
23147 PR target/60203
23148 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23149 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23150 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23151 using direct move instructions on ISA 2.07. Also adjust
23152 instruction length for 64-bit.
23153 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23154 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23155
23156 2014-02-15 Alan Modra <amodra@gmail.com>
23157
23158 PR target/58675
23159 PR target/57935
23160 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23161 find_replacement on parts of insn rtl that might be reloaded.
23162
23163 2014-02-15 Richard Biener <rguenther@suse.de>
23164
23165 PR tree-optimization/60183
23166 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23167 (tree_ssa_phiprop): Calculate and free post-dominators.
23168
23169 2014-02-14 Jeff Law <law@redhat.com>
23170
23171 PR rtl-optimization/60131
23172 * ree.c (get_extended_src_reg): New function.
23173 (combine_reaching_defs): Use it rather than assuming location of REG.
23174 (find_and_remove_re): Verify first operand of extension is
23175 a REG before adding the insns to the copy list.
23176
23177 2014-02-14 Roland McGrath <mcgrathr@google.com>
23178
23179 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23180 * configure: Regenerated.
23181 * config.in: Regenerated.
23182 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23183 instead of ASM_SHORT.
23184
23185 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23186 Richard Earnshaw <rearnsha@arm.com>
23187
23188 PR rtl-optimization/59535
23189 * lra-constraints.c (process_alt_operands): Encourage alternative
23190 when unassigned pseudo class is superset of the alternative class.
23191 (inherit_reload_reg): Don't inherit when optimizing for code size.
23192 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23193 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23194 modes not less than 4 for Thumb1.
23195
23196 2014-02-14 Kyle McMartin <kyle@redhat.com>
23197
23198 PR pch/60010
23199 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23200
23201 2014-02-14 Richard Biener <rguenther@suse.de>
23202
23203 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23204 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23205 Do not strip INDIRECT_REFs.
23206
23207 2014-02-14 Richard Biener <rguenther@suse.de>
23208
23209 PR lto/60179
23210 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23211 DECL_FUNCTION_SPECIFIC_TARGET.
23212 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23213 * tree-streamer-out.c (pack_ts_target_option): Remove.
23214 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23215 (write_ts_function_decl_tree_pointers): Do not stream
23216 DECL_FUNCTION_SPECIFIC_TARGET.
23217 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23218 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23219 (lto_input_ts_function_decl_tree_pointers): Do not stream
23220 DECL_FUNCTION_SPECIFIC_TARGET.
23221
23222 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23223
23224 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23225 (get_initial_def_for_induction, vectorizable_induction): Ignore
23226 debug stmts when looking for exit_phi.
23227 (vectorizable_live_operation): Fix up condition.
23228
23229 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23230
23231 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23232 nreverse() because it changes the content of original tree list.
23233
23234 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23235
23236 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23237 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23238
23239 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23240
23241 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23242 GNU coding standards.
23243
23244 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23245
23246 PR debug/60152
23247 * dwarf2out.c (gen_subprogram_die): Don't call
23248 add_calling_convention_attribute if subr_die is old_die.
23249
23250 2014-02-13 Sharad Singhai <singhai@google.com>
23251
23252 * doc/optinfo.texi: Fix order of nodes.
23253
23254 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23255
23256 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23257 operands[2], not operands[3].
23258
23259 2014-02-13 Richard Biener <rguenther@suse.de>
23260
23261 PR bootstrap/59878
23262 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23263 mention the possibility of an in-tree build.
23264 (CLooG): Update recommended version to 0.18.1, mention the
23265 possibility of an in-tree build and clarify that the ISL
23266 bundled with CLooG does not work.
23267
23268 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23269
23270 PR target/43546
23271 * expr.c (compress_float_constant): If x is a hard register,
23272 extend into a pseudo and then move to x.
23273
23274 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23275
23276 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23277 caused by bad second argument to warning_at() with -mhotpatch and
23278 nested functions (e.g. with gfortran).
23279
23280 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23281
23282 * opts.c (option_name): Remove "enabled by default" rider.
23283
23284 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23285
23286 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23287
23288 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23289 Uros Bizjak <ubizjak@gmail.com>
23290
23291 PR target/60151
23292 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23293 * configure: Regenerated.
23294
23295 2014-02-12 Richard Biener <rguenther@suse.de>
23296
23297 * vec.c (vec_prefix::calculate_allocation): Move as
23298 inline variant to vec.h.
23299 (vec_prefix::calculate_allocation_1): New out-of-line version.
23300 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23301 (vec_prefix::m_has_auto_buf): Rename to ...
23302 (vec_prefix::m_using_auto_storage): ... this.
23303 (vec_prefix::calculate_allocation): Inline the easy cases
23304 and dispatch to calculate_allocation_1 which doesn't need the
23305 prefix address.
23306 (va_heap::reserve): Use gcc_checking_assert.
23307 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23308 m_using_auto_storage.
23309 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23310 member and adjust.
23311 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23312 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23313 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23314
23315 2014-02-12 Richard Biener <rguenther@suse.de>
23316
23317 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23318 when we found a dependence.
23319
23320 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23321
23322 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23323 common code...
23324 (maybe_fold_stmt): ... into this new function.
23325 * omp-low.c (lower_omp): Update comment.
23326
23327 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23328 last use.
23329
23330 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23331 dereference.
23332
23333 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23334
23335 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23336 identifiers in comments.
23337 (cortexa53_extra_costs): Likewise.
23338 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23339 (cortexa7_extra_costs): Likewise.
23340 (cortexa12_extra_costs): Likewise.
23341 (cortexa15_extra_costs): Likewise.
23342 (v7m_extra_costs): Likewise.
23343
23344 2014-02-12 Richard Biener <rguenther@suse.de>
23345
23346 PR middle-end/60092
23347 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23348 of posix_memalign being successful.
23349 (lower_stmt): Restrict lowering of posix_memalign to when
23350 -ftree-bit-ccp is enabled.
23351
23352 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23353
23354 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23355 arg_loc.
23356 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23357
23358 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23359
23360 PR rtl-optimization/60116
23361 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23362 other_insn once the combination has been validated.
23363
23364 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23365
23366 PR lto/59468
23367 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23368 and wrapper.
23369 * ipa-devirt.c: Include demangle.h
23370 (odr_violation_reported): New static variable.
23371 (add_type_duplicate): Update odr_violations.
23372 (maybe_record_node): Add completep parameter; update it.
23373 (record_target_from_binfo): Add COMPLETEP parameter;
23374 update it as needed.
23375 (possible_polymorphic_call_targets_1): Likewise.
23376 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23377 rename FINAL to COMPLETE.
23378 (record_targets_from_bases): Sanity check we found the binfo;
23379 fix COMPLETEP updating.
23380 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23381 parameter, fix computing of COMPLETEP.
23382 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23383 at LTO time do demangling.
23384 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23385 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23386 parameter.
23387 (gimple_get_virt_method_for_binfo): Likewise.
23388 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23389 gimple_get_virt_method_for_vtable): Update prototypes.
23390
23391 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23392
23393 PR target/49008
23394 * genautomata.c (add_presence_absence): Fix typo with
23395 {final_}presence_list.
23396
23397 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23398
23399 PR target/60137
23400 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23401 for VSX/Altivec vectors that land in GPR registers.
23402
23403 2014-02-11 Richard Henderson <rth@redhat.com>
23404 Jakub Jelinek <jakub@redhat.com>
23405
23406 PR debug/59776
23407 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23408 around drhs if type conversion to lacc->type is not useless.
23409
23410 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23411
23412 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23413 tuning struct.
23414 (cortex-a57.cortex-a53): Likewise.
23415 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23416
23417 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23418
23419 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23420 arm_restrict_it.
23421
23422 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23423
23424 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23425 add_options_for_arm_vfp3.
23426
23427 2014-02-11 Jeff Law <law@redhat.com>
23428
23429 PR middle-end/54041
23430 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23431 object with an undesirable mode.
23432
23433 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23434
23435 PR libgomp/60107
23436 * config/i386/sol2-9.h: New file.
23437 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23438 *-*-solaris2.9*): Use it.
23439
23440 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23441
23442 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23443 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23444
23445 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23446
23447 * config/microblaze/microblaze.c: Extend mcpu version format
23448
23449 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23450
23451 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23452
23453 2014-02-10 Richard Henderson <rth@redhat.com>
23454
23455 PR target/59927
23456 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23457 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23458 ms-abi vs -mno-accumulate-outgoing-args.
23459 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23460 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23461 respect to ms-abi.
23462
23463 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23464
23465 PR middle-end/60080
23466 * cfgexpand.c (expand_asm_operands): Attach source location to
23467 ASM_INPUT rtx objects.
23468 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23469
23470 2014-02-10 Nick Clifton <nickc@redhat.com>
23471
23472 * config/mn10300/mn10300.c (popcount): New function.
23473 (mn10300_expand_prologue): Include saved registers in stack usage
23474 count.
23475
23476 2014-02-10 Jeff Law <law@redhat.com>
23477
23478 PR middle-end/52306
23479 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23480 when changing the SET_DEST of a prior insn to avoid an input reload.
23481
23482 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23483
23484 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23485 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23486 -mcall-openbsd, or -mcall-linux.
23487 (CC1_ENDIAN_BIG_SPEC): Remove.
23488 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23489 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23490 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23491 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23492 and %cc1_endian_default.
23493 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23494
23495 2014-02-10 Richard Biener <rguenther@suse.de>
23496
23497 PR tree-optimization/60115
23498 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23499 MEM_REF handling. Properly verify that the accesses are not
23500 out of the objects bound.
23501
23502 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23503
23504 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23505 coretex to cortex.
23506
23507 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23508
23509 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23510 proper constants and fix formatting.
23511 (possible_polymorphic_call_targets): Fix formatting.
23512
23513 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23514 Ilya Tocar <ilya.tocar@intel.com>
23515
23516 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23517 (_mm512_loadu_epi32): Renamed into...
23518 (_mm512_loadu_si512): This.
23519 (_mm512_storeu_epi32): Renamed into...
23520 (_mm512_storeu_si512): This.
23521 (_mm512_maskz_ceil_ps): Removed.
23522 (_mm512_maskz_ceil_pd): Ditto.
23523 (_mm512_maskz_floor_ps): Ditto.
23524 (_mm512_maskz_floor_pd): Ditto.
23525 (_mm512_floor_round_ps): Ditto.
23526 (_mm512_floor_round_pd): Ditto.
23527 (_mm512_ceil_round_ps): Ditto.
23528 (_mm512_ceil_round_pd): Ditto.
23529 (_mm512_mask_floor_round_ps): Ditto.
23530 (_mm512_mask_floor_round_pd): Ditto.
23531 (_mm512_mask_ceil_round_ps): Ditto.
23532 (_mm512_mask_ceil_round_pd): Ditto.
23533 (_mm512_maskz_floor_round_ps): Ditto.
23534 (_mm512_maskz_floor_round_pd): Ditto.
23535 (_mm512_maskz_ceil_round_ps): Ditto.
23536 (_mm512_maskz_ceil_round_pd): Ditto.
23537 (_mm512_expand_pd): Ditto.
23538 (_mm512_expand_ps): Ditto.
23539 * config/i386/i386.c (ix86_builtins): Remove
23540 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23541 (bdesc_args): Ditto.
23542 * config/i386/predicates.md (const1256_operand): New.
23543 (const_1_to_2_operand): Ditto.
23544 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23545 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23546 (*avx512pf_gatherpf<mode>sf): Ditto.
23547 (avx512pf_gatherpf<mode>df): Ditto.
23548 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23549 (*avx512pf_gatherpf<mode>df): Ditto.
23550 (avx512pf_scatterpf<mode>sf): Ditto.
23551 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23552 (*avx512pf_scatterpf<mode>sf): Ditto.
23553 (avx512pf_scatterpf<mode>df): Ditto.
23554 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23555 (*avx512pf_scatterpf<mode>df): Ditto.
23556 (avx512f_expand<mode>): Removed.
23557 (<shift_insn><mode>3<mask_name>): Change predicate type.
23558
23559 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23560
23561 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23562 not at the end of datarefs vector use ordered_remove to avoid
23563 reordering datarefs vector.
23564
23565 PR c/59984
23566 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23567 mark local addressable non-static vars as GOVD_PRIVATE
23568 instead of GOVD_LOCAL.
23569 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23570 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23571 than copying them.
23572
23573 PR middle-end/60092
23574 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23575 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23576 assume_aligned or alloc_align attributes.
23577 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23578 arguments. Handle also assume_aligned and alloc_align attributes.
23579 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23580 calls to functions with assume_aligned or alloc_align attributes.
23581 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23582
23583 2014-02-08 Terry Guo <terry.guo@arm.com>
23584
23585 * doc/invoke.texi: Document ARM -march=armv7e-m.
23586
23587 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23588
23589 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23590 flag on __cilkrts_rethrow builtin.
23591
23592 PR ipa/60026
23593 * ipa-cp.c (determine_versionability): Fail at -O0
23594 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23595 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23596
23597 Revert:
23598 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23599
23600 PR ipa/60026
23601 * tree-inline.c (copy_forbidden): Fail for
23602 __attribute__((optimize (0))) functions.
23603
23604 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23605
23606 * varpool.c: Include pointer-set.h.
23607 (varpool_remove_unreferenced_decls): Variables in other partitions
23608 will not be output; be however careful to not lose information
23609 about partitioning.
23610
23611 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23612
23613 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23614 lookup in the vtable constructor.
23615
23616 2014-02-07 Jeff Law <law@redhat.com>
23617
23618 PR target/40977
23619 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23620 define_insn_and_split.
23621
23622 * ipa-inline.c (inline_small_functions): Fix typos.
23623
23624 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23625
23626 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23627 (s390_can_use_return_insn): Declare.
23628 * config/s390/s390.h (EPILOGUE_USES): Define.
23629 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23630 instructions.
23631 (s390_chunkify_start): Handle return JUMP_LABELs.
23632 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23633 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23634 (s390_can_use_return_insn): New functions.
23635 (s390_fix_long_loop_prediction): Handle conditional returns.
23636 (TARGET_SET_UP_BY_PROLOGUE): Define.
23637 * config/s390/s390.md (ANY_RETURN): New code iterator.
23638 (*creturn, *csimple_return, return, simple_return): New patterns.
23639
23640 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23641
23642 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23643 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23644 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23645 REG_CFA_RESTORE list when deciding not to restore a register.
23646
23647 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23648
23649 * config/s390/s390.c: Include tree-pass.h and context.h.
23650 (s390_early_mach): New function, split out from...
23651 (s390_emit_prologue): ...here.
23652 (pass_data_s390_early_mach): New pass structure.
23653 (pass_s390_early_mach): New class.
23654 (s390_option_override): Create and register early_mach pass.
23655 Move to end of file.
23656
23657 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23658
23659 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23660 to match for the exit block.
23661
23662 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23663
23664 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23665 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23666 Reject misaligned operands.
23667
23668 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23669
23670 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23671
23672 2014-02-07 Richard Biener <rguenther@suse.de>
23673
23674 PR middle-end/60092
23675 * gimple-low.c (lower_builtin_posix_memalign): New function.
23676 (lower_stmt): Call it to lower posix_memalign in a way
23677 to make alignment info accessible.
23678
23679 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23680
23681 PR c++/60082
23682 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23683 __builtin_setjmp_receiver.
23684
23685 2014-02-07 Richard Biener <rguenther@suse.de>
23686
23687 PR middle-end/60092
23688 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23689 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23690 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23691 Handle BUILT_IN_POSIX_MEMALIGN.
23692 (find_func_clobbers): Likewise.
23693 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23694 (call_may_clobber_ref_p_1): Likewise.
23695
23696 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23697
23698 PR ipa/59918
23699 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23700 sanity check.
23701
23702 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23703
23704 PR ipa/59469
23705 * lto-cgraph.c (lto_output_node): Use
23706 symtab_get_symbol_partitioning_class.
23707 (lto_output_varpool_node): likewise.
23708 (symtab_get_symbol_partitioning_class): Move here from
23709 lto/lto-partition.c
23710 * cgraph.h (symbol_partitioning_class): Likewise.
23711 (symtab_get_symbol_partitioning_class): Declare.
23712
23713 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23714
23715 * ggc.h (ggc_internal_cleared_alloc): New macro.
23716 * vec.h (vec_safe_copy): Handle memory stats.
23717 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23718 * target-globals.c (save_target_globals): Likewise.
23719
23720 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23721
23722 PR target/60077
23723 * expr.c (emit_move_resolve_push): Export; be bit more selective
23724 on when to clear alias set.
23725 * expr.h (emit_move_resolve_push): Declare.
23726 * function.h (struct function): Add tail_call_marked.
23727 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23728 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23729 * config/i386/i386.md (TImode move expander): De not call
23730 ix86_expand_push.
23731 (FP push expanders): Preserve memory attributes.
23732 * config/i386/sse.md (push<mode>1): Remove.
23733 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23734 (ix86_expand_push): Remove.
23735 * config/i386/mmx.md (push<mode>1): Remove.
23736
23737 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23738
23739 PR rtl-optimization/60030
23740 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23741 lopart with paradoxical subreg before shifting it up by hprec.
23742
23743 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23744
23745 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23746 Remove extra newline at end of file.
23747 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23748 (arm_issue_rate): Handle cortexa57.
23749 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23750 (cortex-a57.cortex-a53): Likewise.
23751
23752 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23753
23754 PR target/59575
23755 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23756 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23757 bitmask.
23758 (arm_expand_prologue): Adjust all callers.
23759 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23760 info, registers also at the lowest numbered registers side. Use
23761 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23762 XEXP.
23763
23764 PR debug/59992
23765 * var-tracking.c (adjust_mems): Before adding a SET to
23766 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23767
23768 2014-02-06 Alan Modra <amodra@gmail.com>
23769
23770 PR target/60032
23771 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23772 change SDmode to DDmode when lra_in_progress.
23773
23774 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23775
23776 PR middle-end/59150
23777 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23778 free_data_ref on the dr first, and before goto again also set dr
23779 to the next dr. For simd_lane_access, free old datarefs[i] before
23780 overwriting it. For get_vectype_for_scalar_type failure, don't
23781 free_data_ref if simd_lane_access.
23782
23783 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23784
23785 PR target/60062
23786 * tree.h (opts_for_fn): New inline function.
23787 (opt_for_fn): Define.
23788 * config/i386/i386.c (ix86_function_regparm): Use
23789 opt_for_fn (decl, optimize) instead of optimize.
23790
23791 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23792
23793 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23794 for SYMBOL_REF in large memory model.
23795
23796 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23797
23798 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23799 and crypto support.
23800 (cortex-a57): Likewise.
23801 (cortex-a57.cortex-a53): Likewise.
23802
23803 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23804 Kugan Vivekanandarajah <kuganv@linaro.org>
23805
23806 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23807 unaligned_access.
23808 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23809
23810 2014-02-06 Richard Biener <rguenther@suse.de>
23811
23812 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23813 set_loop_copy and initialize_original_copy_tables.
23814
23815 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23816
23817 * config/aarch64/aarch64-simd.md
23818 (aarch64_ashr_simddi): Change QI to SI.
23819
23820 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23821 Jakub Jelinek <jakub@redhat.com>
23822
23823 PR middle-end/60013
23824 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23825 of the dataflow.
23826
23827 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23828
23829 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23830 CODE_FOR_altivec_vpku[hw]um to
23831 CODE_FOR_altivec_vpku[hw]um_direct.
23832 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23833 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23834 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23835 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23836
23837 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23838
23839 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23840 generation for -maltivec=be.
23841 (altivec_vsumsws): Simplify redundant test.
23842
23843 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23844
23845 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23846 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23847 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23848 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23849 gen_altivec_vpkuwum.
23850 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23851 BYTES_BIG_ENDIAN.
23852 (altivec_vpks<VI_char>ss): Likewise.
23853 (altivec_vpks<VI_char>us): Likewise.
23854 (altivec_vpku<VI_char>us): Likewise.
23855 (altivec_vpku<VI_char>um): Likewise.
23856 (altivec_vpku<VI_char>um_direct): New (copy of
23857 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23858 internal use).
23859 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23860 target is little endian and -maltivec=be is not specified.
23861 (*altivec_vupkhs<VU_char>_direct): New (copy of
23862 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23863 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23864 target is little endian and -maltivec=be is not specified.
23865 (*altivec_vupkls<VU_char>_direct): New (copy of
23866 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23867 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23868 little endian and -maltivec=be is not specified.
23869 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23870 little endian and -maltivec=be is not specified.
23871
23872 2014-02-05 Richard Henderson <rth@redhat.com>
23873
23874 PR debug/52727
23875 * combine-stack-adj.c: Revert r206943.
23876 * sched-int.h (struct deps_desc): Add last_args_size.
23877 * sched-deps.c (init_deps): Initialize it.
23878 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23879 contain REG_ARGS_SIZE notes.
23880
23881 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23882
23883 * lto-cgraph.c (asm_nodes_output): Make global.
23884 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23885 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23886 (driver_handle_option): Handle OPT_fwpa.
23887
23888 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23889
23890 PR ipa/59947
23891 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23892 a comment typo and formatting issue. If odr_hash hasn't been
23893 created, return vNULL and set *completep to false.
23894
23895 PR middle-end/57499
23896 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23897 bb with no successors.
23898
23899 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23900
23901 PR target/59718
23902 * doc/invoke.texi (-march): Clarify documentation for ARM.
23903 (-mtune): Likewise.
23904 (-mcpu): Likewise.
23905
23906 2014-02-05 Richard Biener <rguenther@suse.de>
23907
23908 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23909 when not vectorizing because of too many alias checks.
23910 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23911 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23912
23913 2014-02-05 Nick Clifton <nickc@redhat.com>
23914
23915 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23916 accept extended registers in any mode when compiling for the MN10300.
23917
23918 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23919
23920 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23921 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23922 sanitization attributes.
23923 (can_inline_edge_p): Likewise.
23924 (sanitize_attrs_match_for_inline_p): New function.
23925
23926 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23927
23928 * ipa-prop.c (detect_type_change): Shor circuit testing of
23929 type changes on THIS pointer.
23930
23931 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23932
23933 PR target/59777
23934 * config/pa/pa.c (legitimize_tls_address): Return original address
23935 if not passed a SYMBOL_REF rtx.
23936 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23937 addresses.
23938 (pa_emit_move_sequence): Simplify TLS source operands.
23939 (pa_legitimate_constant_p): Reject all TLS constants.
23940 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23941 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23942
23943 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23944
23945 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23946 groups when we know they are controlled by LTO.
23947 * varasm.c (default_binds_local_p_1): If object is in other partition,
23948 it will be resolved locally.
23949
23950 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23951
23952 * config/host-linux.c (linux_gt_pch_use_address): Don't
23953 use SSIZE_MAX because it is not always defined.
23954
23955 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23956
23957 PR bootstrap/59913
23958 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23959 threshold for pseudo splitting.
23960 (update_ebb_live_info): Process call argument hard registers and
23961 hard registers from insn definition too.
23962 (max_small_class_regs_num): New constant.
23963 (inherit_in_ebb): Update live hard regs through EBBs. Update
23964 reloads_num only for small register classes. Don't split for
23965 outputs of jumps.
23966
23967 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23968
23969 PR ipa/60058
23970 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23971 is non-null.
23972
23973 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23974
23975 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23976 visibility is safe.
23977
23978 2014-02-04 Marek Polacek <polacek@redhat.com>
23979
23980 * gdbinit.in (pel): Define.
23981
23982 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23983
23984 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23985 behavior.
23986
23987 2014-02-04 Richard Biener <rguenther@suse.de>
23988
23989 PR lto/59723
23990 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23991 in function context local.
23992 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23993 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23994 similar to LTO_imported_decl_ref.
23995
23996 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23997
23998 PR tree-optimization/60002
23999 * cgraphclones.c (build_function_decl_skip_args): Clear
24000 DECL_LANG_SPECIFIC.
24001
24002 PR tree-optimization/60023
24003 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24004 false to gsi_replace.
24005 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24006 has been in some EH region and vec_stmt could throw, add
24007 vec_stmt into the same EH region.
24008 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24009 has no lhs, ignore it.
24010 * internal-fn.c (expand_MASK_LOAD): Likewise.
24011
24012 PR ipa/60026
24013 * tree-inline.c (copy_forbidden): Fail for
24014 __attribute__((optimize (0))) functions.
24015
24016 PR other/58712
24017 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24018 is set, copy one less argument.
24019 (expand_simd_clones): Don't subtract clone_info->inbranch
24020 from simd_clone_struct_alloc argument.
24021
24022 PR rtl-optimization/57915
24023 * recog.c (simplify_while_replacing): If all unary/binary/relational
24024 operation arguments are constant, attempt to simplify those.
24025
24026 PR middle-end/59261
24027 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24028 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24029
24030 2014-02-04 Richard Biener <rguenther@suse.de>
24031
24032 PR tree-optimization/60012
24033 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24034 TBAA disambiguation to all DDRs.
24035
24036 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24037
24038 PR target/59788
24039 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24040 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24041
24042 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24043
24044 PR ipa/59882
24045 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24046
24047 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24048
24049 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24050 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24051
24052 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24053
24054 PR ipa/59831
24055 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24056 to figure out targets of polymorphic calls with known decl.
24057 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24058 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24059 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24060 (get_polymorphic_call_info): ... here.
24061 (get_polymorphic_call_info_from_invariant): New function.
24062
24063 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24064
24065 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24066 lookup via vtable pointer; check for type consistency
24067 and turn inconsitent facts into UNREACHABLE.
24068 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24069 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24070 type inconsistent querries; return UNREACHABLE instead.
24071
24072 2014-02-03 Richard Henderson <rth@twiddle.net>
24073
24074 PR tree-opt/59924
24075 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24076 already processed this node.
24077 (normalize_one_pred_1): Pass along mark_set.
24078 (normalize_one_pred): Create and destroy a pointer_set_t.
24079 (normalize_one_pred_chain): Likewise.
24080
24081 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24082
24083 PR gcov-profile/58602
24084 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24085
24086 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24087
24088 PR ipa/59831
24089 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24090 -fno-devirtualize; try to devirtualize by the knowledge of
24091 virtual table pointer given by aggregate propagation.
24092 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24093 (ipa_print_node_jump_functions): Dump also offset that
24094 is relevant for polymorphic calls.
24095 (determine_known_aggregate_parts): Add arg_type parameter; use it
24096 instead of determining the type from pointer type.
24097 (ipa_compute_jump_functions_for_edge): Update call of
24098 determine_known_aggregate_parts.
24099 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24100 (gimple_get_virt_method_for_binfo): ... here; simplify using
24101 vtable_pointer_value_to_vtable.
24102 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24103 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24104 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24105 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24106 POINTER_PLUS_EXPR.
24107 (vtable_pointer_value_to_binfo): ... here.
24108 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24109
24110 2014-02-03 Teresa Johnson <tejohnson@google.com>
24111
24112 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24113 redef of outer loop index variable.
24114
24115 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24116
24117 PR c++/53017
24118 PR c++/59211
24119 * doc/extend.texi (Function Attributes): Typo.
24120
24121 2014-02-03 Cong Hou <congh@google.com>
24122
24123 PR tree-optimization/60000
24124 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24125 if the vectorized statement is a store. A store statement can only
24126 appear at the end of pattern statements.
24127
24128 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24129
24130 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24131 (ix86_option_override_internal): Default long double to 64-bit for
24132 32-bit Bionic and to 128-bit for 64-bit Bionic.
24133
24134 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24135 TARGET_LONG_DOUBLE_128 is true.
24136 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24137
24138 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24139 (mlong-double-64): Negate -mlong-double-128.
24140 (mlong-double-128): New option.
24141
24142 * config/i386/i386-c.c (ix86_target_macros): Define
24143 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24144
24145 * doc/invoke.texi: Document -mlong-double-128.
24146
24147 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24148
24149 PR rtl-optimization/60024
24150 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24151
24152 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24153
24154 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24155
24156 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24157
24158 PR rtl-optimization/57662
24159 * sel-sched.c (code_motion_path_driver): Do not mark already not
24160 existing blocks in the visiting bitmap.
24161
24162 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24163
24164 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24165 on the insn being emitted.
24166
24167 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24168 Will Deacon <will.deacon@arm.com>
24169
24170 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24171
24172 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24173
24174 * config/arm/arm-tables.opt: Regenerate.
24175
24176 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24177
24178 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24179 for vector types other than V16QImode.
24180 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24181 define_expand, and call altivec_expand_vec_perm_le when producing
24182 code with little endian element order.
24183 (*altivec_vperm_<mode>_internal): New insn having previous
24184 behavior of altivec_vperm_<mode>.
24185 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24186 altivec_expand_vec_perm_le when producing code with little endian
24187 element order.
24188 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24189 behavior of altivec_vperm_<mode>_uns.
24190
24191 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24192
24193 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24194 (altivec_vsumsws): Add handling for -maltivec=be with a little
24195 endian target.
24196 (altivec_vsumsws_direct): New.
24197 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24198 gen_altivec_vsumsws.
24199
24200 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24201
24202 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24203 vtable_pointer_value_to_binfo): New functions.
24204 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24205 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24206
24207 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24208
24209 * config/nios2/nios2.md (load_got_register): Initialize GOT
24210 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24211 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24212
24213 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24214
24215 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24216 preserverd by passthrough, do not propagate the type.
24217
24218 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24219
24220 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24221 (mips_atomic_assign_expand_fenv): New function.
24222 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24223
24224 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24225
24226 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24227 (__builtin_mips_set_fcsr): Likewise.
24228 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24229 MIPS_USI_FTYPE_VOID.
24230 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24231 (mips16_expand_set_fcsr): Likewise.
24232 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24233 (mips16_set_fcsr_stub): Likewise.
24234 (mips16_get_fcsr_one_only_stub): New class.
24235 (mips16_set_fcsr_one_only_stub): Likewise.
24236 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24237 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24238 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24239 (hard_float): New availability predicate.
24240 (mips_builtins): Add get_fcsr and set_fcsr.
24241 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24242 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24243 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24244 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24245 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24246 patterns.
24247
24248 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24249
24250 * config/mips/mips.c (mips_one_only_stub): New class.
24251 (mips_need_mips16_rdhwr_p): Replace with...
24252 (mips16_rdhwr_stub): ...this new variable.
24253 (mips16_stub_call_address): New function.
24254 (mips16_rdhwr_one_only_stub): New class.
24255 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24256 (mips_output_mips16_rdhwr): Delete.
24257 (mips_finish_stub): New function.
24258 (mips_code_end): Use it to handle rdhwr stubs.
24259
24260 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24261
24262 PR target/60017
24263 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24264 when calculating size of integer atomic types.
24265
24266 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24267
24268 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24269
24270 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24271
24272 PR tree-optimization/60003
24273 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24274 * profile.c (branch_prob): Use gimple_call_builtin_p
24275 to check for BUILT_IN_SETJMP_RECEIVER.
24276 * tree-inline.c (copy_bb): Call notice_special_calls.
24277
24278 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24279
24280 PR bootstrap/59985
24281 * lra-constraints.c (process_alt_operands): Update reload_sum only
24282 on the first pass.
24283
24284 2014-01-31 Richard Henderson <rth@redhat.com>
24285
24286 PR middle-end/60004
24287 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24288 until after else_eh is processed.
24289
24290 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24291
24292 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24293 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24294 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24295 in smmintrin.h, remove them.
24296 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24297 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24298 * config/i386/i386.md (ROUND_SAE): Fix value.
24299 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24300 (const48_operand): New.
24301 * config/i386/subst.md (round), (round_expand): Use
24302 const_4_or_8_to_11_operand.
24303 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24304
24305 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24306
24307 * config/i386/constraints.md (Yk): Swap meaning with k.
24308 * config/i386/i386.md (movhi_internal): Change Yk to k.
24309 (movqi_internal): Ditto.
24310 (*k<logic><mode>): Ditto.
24311 (*andhi_1): Ditto.
24312 (*andqi_1): Ditto.
24313 (kandn<mode>): Ditto.
24314 (*<code>hi_1): Ditto.
24315 (*<code>qi_1): Ditto.
24316 (kxnor<mode>): Ditto.
24317 (kortestzhi): Ditto.
24318 (kortestchi): Ditto.
24319 (kunpckhi): Ditto.
24320 (*one_cmplhi2_1): Ditto.
24321 (*one_cmplqi2_1): Ditto.
24322 * config/i386/sse.md (): Change k to Yk.
24323 (avx512f_load<mode>_mask): Ditto.
24324 (avx512f_blendm<mode>): Ditto.
24325 (avx512f_store<mode>_mask): Ditto.
24326 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24327 (avx512f_storedqu<mode>_mask): Ditto.
24328 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24329 Ditto.
24330 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24331 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24332 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24333 (avx512f_maskcmp<mode>3): Ditto.
24334 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24335 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24336 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24337 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24338 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24339 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24340 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24341 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24342 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24343 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24344 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24345 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24346 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24347 (vec_extract_lo_<mode>_maskm): Ditto.
24348 (vec_extract_hi_<mode>_maskm): Ditto.
24349 (avx512f_vternlog<mode>_mask): Ditto.
24350 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24351 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24352 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24353 (avx512f_<code>v8div16qi2_mask): Ditto.
24354 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24355 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24356 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24357 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24358 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24359 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24360 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24361 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24362 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24363 (avx512cd_maskb_vec_dupv8di): Ditto.
24364 (avx512cd_maskw_vec_dupv16si): Ditto.
24365 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24366 (avx512f_vpermi2var<mode>3_mask): Ditto.
24367 (avx512f_vpermi2var<mode>3_mask): Ditto.
24368 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24369 (*avx512f_gathersi<mode>): Ditto.
24370 (*avx512f_gathersi<mode>_2): Ditto.
24371 (*avx512f_gatherdi<mode>): Ditto.
24372 (*avx512f_gatherdi<mode>_2): Ditto.
24373 (*avx512f_scattersi<mode>): Ditto.
24374 (*avx512f_scatterdi<mode>): Ditto.
24375 (avx512f_compress<mode>_mask): Ditto.
24376 (avx512f_compressstore<mode>_mask): Ditto.
24377 (avx512f_expand<mode>_mask): Ditto.
24378 * config/i386/subst.md (mask): Change k to Yk.
24379 (mask_scalar_merge): Ditto.
24380 (sd): Ditto.
24381
24382 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24383
24384 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24385
24386 2014-01-31 Richard Biener <rguenther@suse.de>
24387
24388 PR middle-end/59990
24389 * builtins.c (fold_builtin_memory_op): Make sure to not
24390 use a floating-point mode or a boolean or enumeral type for
24391 the copy operation.
24392
24393 2014-01-30 DJ Delorie <dj@redhat.com>
24394
24395 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24396 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24397 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24398 whenever main() has an epilogue.
24399
24400 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24401
24402 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24403 unused variable "field".
24404 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24405 (vsx_mergeh_<mode>): Likewise.
24406 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24407 (altivec_vmrghh): Likewise.
24408 (altivec_vmrghw): Likewise.
24409 (altivec_vmrglb): Likewise.
24410 (altivec_vmrglh): Likewise.
24411 (altivec_vmrglw): Likewise.
24412 (altivec_vspltb): Add missing uses.
24413 (altivec_vsplth): Likewise.
24414 (altivec_vspltw): Likewise.
24415 (altivec_vspltsf): Likewise.
24416
24417 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24418
24419 PR target/59923
24420 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24421 frame related instructions.
24422
24423 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24424
24425 PR rtl-optimization/59959
24426 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24427 any reload of register whose subreg is invalid.
24428
24429 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24430
24431 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24432 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24433 Add missing return type - void.
24434
24435 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24436
24437 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24438 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24439 remove element index adjustment for endian (now handled in vsx.md
24440 and altivec.md).
24441 (altivec_expand_vec_perm_const): Use
24442 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24443 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24444 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24445 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24446 define_expand and a new define_insn *altivec_vspltb_internal;
24447 adjust for -maltivec=be on a little endian target.
24448 (altivec_vspltb_direct): New.
24449 (altivec_vsplth): Divide into a define_expand and a new
24450 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24451 little endian target.
24452 (altivec_vsplth_direct): New.
24453 (altivec_vspltw): Divide into a define_expand and a new
24454 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24455 little endian target.
24456 (altivec_vspltw_direct): New.
24457 (altivec_vspltsf): Divide into a define_expand and a new
24458 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24459 a little endian target.
24460
24461 2014-01-30 Richard Biener <rguenther@suse.de>
24462
24463 PR tree-optimization/59993
24464 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24465 can propagate form the earlier stmt and avoid the transform
24466 when the intermediate result is needed.
24467
24468 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24469
24470 * README.Portability: Fix typo.
24471
24472 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24473
24474 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24475 comparison_operator with ordered_comparison_operator.
24476
24477 2014-01-30 Nick Clifton <nickc@redhat.com>
24478
24479 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24480 Rename to mn10300_store_multiple_regs.
24481 * config/mn10300/mn10300.c: Likewise.
24482 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24483 store_multiple_regs.
24484 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24485 Call mn10300_store_multiple_regs.
24486
24487 2014-01-30 Nick Clifton <nickc@redhat.com>
24488 DJ Delorie <dj@redhat.com>
24489
24490 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24491 %fp 2 to keep registers after it properly word-aligned.
24492 (rl78_alloc_physical_registers_umul): Handle the case where both
24493 input operands are the same.
24494
24495 2014-01-30 Richard Biener <rguenther@suse.de>
24496
24497 PR tree-optimization/59903
24498 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24499 check properly.
24500
24501 2014-01-30 Jason Merrill <jason@redhat.com>
24502
24503 PR c++/59633
24504 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24505
24506 PR c++/59645
24507 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24508
24509 2014-01-30 Richard Biener <rguenther@suse.de>
24510
24511 PR tree-optimization/59951
24512 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24513
24514 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24515
24516 PR target/59784
24517 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24518 SFmode to DFmode case.
24519
24520 2014-01-29 DJ Delorie <dj@redhat.com>
24521
24522 * config/msp430/msp430.opt (-minrt): New.
24523 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24524 if -minrt given.
24525 (ENDFILE_SPEC): Likewise.
24526
24527 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24528
24529 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24530 (estimate_function_body_sizes): Use it.
24531
24532 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24533
24534 PR c++/58561
24535 * dwarf2out.c (is_cxx_auto): New.
24536 (is_base_type): Use it.
24537 (gen_type_die_with_usage): Likewise.
24538
24539 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24540
24541 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24542 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24543 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24544 -maltivec=be with LE targets.
24545 (vsx_mergeh_<mode>): Likewise.
24546 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24547 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24548 (altivec_vmrghb): Replace with define_expand and new
24549 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24550 (altivec_vmrghb_direct): New define_insn.
24551 (altivec_vmrghh): Replace with define_expand and new
24552 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24553 (altivec_vmrghh_direct): New define_insn.
24554 (altivec_vmrghw): Replace with define_expand and new
24555 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24556 (altivec_vmrghw_direct): New define_insn.
24557 (*altivec_vmrghsf): Adjust for endianness.
24558 (altivec_vmrglb): Replace with define_expand and new
24559 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24560 (altivec_vmrglb_direct): New define_insn.
24561 (altivec_vmrglh): Replace with define_expand and new
24562 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24563 (altivec_vmrglh_direct): New define_insn.
24564 (altivec_vmrglw): Replace with define_expand and new
24565 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24566 (altivec_vmrglw_direct): New define_insn.
24567 (*altivec_vmrglsf): Adjust for endianness.
24568 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24569 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24570 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24571 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24572 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24573 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24574 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24575 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24576
24577 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24578
24579 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24580 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24581 whitespace.
24582
24583 2014-01-29 Richard Biener <rguenther@suse.de>
24584
24585 PR tree-optimization/58742
24586 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24587 associate_pointerplus_align.
24588 (associate_pointerplus_diff): New function.
24589 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24590 and associate_pointerplus_diff.
24591
24592 2014-01-29 Richard Biener <rguenther@suse.de>
24593
24594 * lto-streamer.h (LTO_major_version): Bump to 3.
24595 (LTO_minor_version): Reset to 0.
24596
24597 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24598
24599 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24600 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24601 (arm_file_start): Generate correct asm header for armv7ve.
24602 * config/arm/bpabi.h: Add multilib support for armv7ve.
24603 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24604 and cortex-a15 to armv7ve.
24605 * config/arm/t-aprofile: Add multilib support for armv7ve.
24606 * doc/invoke.texi: Document -march=armv7ve.
24607
24608 2014-01-29 Richard Biener <rguenther@suse.de>
24609
24610 PR tree-optimization/58742
24611 * tree-ssa-forwprop.c (associate_plusminus): Return true
24612 if we changed sth, defer EH cleanup to ...
24613 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24614 (simplify_mult): New function.
24615
24616 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24617
24618 PR middle-end/59917
24619 PR tree-optimization/59920
24620 * tree.c (build_common_builtin_nodes): Remove
24621 __builtin_setjmp_dispatcher initialization.
24622 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24623 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24624 instead of gsi_after_labels + manually skipping debug stmts.
24625 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24626 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24627 * tree-inline.c (copy_edges_for_bb): Remove
24628 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24629 argument. Ignore computed_goto_p stmts. Don't call
24630 make_abnormal_goto_edges. If a call might need abnormal edges
24631 for non-local gotos, see if it already has an edge to
24632 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24633 with true argument, don't do anything then, otherwise add
24634 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24635 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24636 caller.
24637 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24638 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24639 (lower_stmt): Don't set data->calls_builtin_setjmp.
24640 (lower_builtin_setjmp): Adjust comment.
24641 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24642 * tree-cfg.c (found_computed_goto): Remove.
24643 (factor_computed_gotos): Remove.
24644 (make_goto_expr_edges): Return bool, true for computed gotos.
24645 Don't call make_abnormal_goto_edges.
24646 (build_gimple_cfg): Don't set found_computed_goto, don't call
24647 factor_computed_gotos.
24648 (computed_goto_p): No longer static.
24649 (make_blocks): Don't set found_computed_goto.
24650 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24651 (make_edges): If make_goto_expr_edges returns true, push bb
24652 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24653 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24654 vector. Record mapping between bbs and OpenMP regions if there
24655 are any, adjust make_gimple_omp_edges caller. Call
24656 handle_abnormal_edges.
24657 (make_abnormal_goto_edges): Remove.
24658 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24659 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24660 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24661 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24662 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24663 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24664 filling *region also set *region_idx to (*region)->entry->index.
24665
24666 PR other/58712
24667 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24668 For REGs set ORIGINAL_REGNO.
24669
24670 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24671
24672 * doc/md.texi: Mention that a target shouldn't implement
24673 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24674 than hi/lo pair.
24675
24676 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24677
24678 PR tree-optimization/59594
24679 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24680 a copy of the datarefs vector rather than the vector itself.
24681
24682 2014-01-28 Jason Merrill <jason@redhat.com>
24683
24684 PR c++/53756
24685 * dwarf2out.c (auto_die): New static.
24686 (gen_type_die_with_usage): Handle C++1y 'auto'.
24687 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24688 on definition.
24689
24690 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24691
24692 PR target/59672
24693 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24694 (SPEC_X32): Likewise.
24695 (SPEC_64): Likewise.
24696 * config/i386/i386.c (ix86_option_override_internal): Turn off
24697 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24698 for TARGET_16BIT.
24699 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24700 * config/i386/i386.h (TARGET_16BIT): New macro.
24701 (TARGET_16BIT_P): Likewise.
24702 * config/i386/i386.opt: Add m16.
24703 * doc/invoke.texi: Document -m16.
24704
24705 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24706
24707 PR preprocessor/59935
24708 * input.c (location_get_source_line): Bail out on when line number
24709 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24710
24711 2014-01-28 Richard Biener <rguenther@suse.de>
24712
24713 PR tree-optimization/58742
24714 * tree-ssa-forwprop.c (associate_plusminus): Handle
24715 pointer subtraction of the form (T)(P + A) - (T)P.
24716
24717 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24718
24719 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24720 at const_int_cost.
24721
24722 2014-01-28 Richard Biener <rguenther@suse.de>
24723
24724 Revert
24725 2014-01-28 Richard Biener <rguenther@suse.de>
24726
24727 PR rtl-optimization/45364
24728 PR rtl-optimization/59890
24729 * var-tracking.c (local_get_addr_clear_given_value): Handle
24730 already cleared slot.
24731 (val_reset): Handle not allocated local_get_addr_cache.
24732 (vt_find_locations): Use post-order on the inverted CFG.
24733
24734 2014-01-28 Richard Biener <rguenther@suse.de>
24735
24736 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24737
24738 2014-01-28 Richard Biener <rguenther@suse.de>
24739
24740 PR rtl-optimization/45364
24741 PR rtl-optimization/59890
24742 * var-tracking.c (local_get_addr_clear_given_value): Handle
24743 already cleared slot.
24744 (val_reset): Handle not allocated local_get_addr_cache.
24745 (vt_find_locations): Use post-order on the inverted CFG.
24746
24747 2014-01-28 Alan Modra <amodra@gmail.com>
24748
24749 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24750 * configure.ac <recursive call for build != host>: Define
24751 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24752 and LD_FOR_BUILD too.
24753 * configure: Regenerate.
24754
24755 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24756
24757 * config/i386/i386.c (get_builtin_code_for_version): Separate
24758 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24759 Broadwell from Haswell.
24760
24761 2014-01-27 Steve Ellcey <sellcey@mips.com>
24762
24763 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24764 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24765 * config/mips/mips.c (mips_option_override): Change setting
24766 of TARGET_DSP.
24767 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24768 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24769 Change from Mask to Var.
24770
24771 2014-01-27 Jeff Law <law@redhat.com>
24772
24773 * ipa-inline.c (inline_small_functions): Fix typo.
24774
24775 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24776
24777 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24778 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24779 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24780 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24781 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24782 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24783 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24784 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24785 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24786 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24787 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24788 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24789 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24790 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24791 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24792 (_mm512_storeu_epi64): Ditto.
24793 (_mm512_cmpge_epi32_mask): Ditto.
24794 (_mm512_cmpge_epu32_mask): Ditto.
24795 (_mm512_cmpge_epi64_mask): Ditto.
24796 (_mm512_cmpge_epu64_mask): Ditto.
24797 (_mm512_cmple_epi32_mask): Ditto.
24798 (_mm512_cmple_epu32_mask): Ditto.
24799 (_mm512_cmple_epi64_mask): Ditto.
24800 (_mm512_cmple_epu64_mask): Ditto.
24801 (_mm512_cmplt_epi32_mask): Ditto.
24802 (_mm512_cmplt_epu32_mask): Ditto.
24803 (_mm512_cmplt_epi64_mask): Ditto.
24804 (_mm512_cmplt_epu64_mask): Ditto.
24805 (_mm512_cmpneq_epi32_mask): Ditto.
24806 (_mm512_cmpneq_epu32_mask): Ditto.
24807 (_mm512_cmpneq_epi64_mask): Ditto.
24808 (_mm512_cmpneq_epu64_mask): Ditto.
24809 (_mm512_expand_pd): Ditto.
24810 (_mm512_expand_ps): Ditto.
24811 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24812 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24813 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24814 * config/i386/i386.c (ix86_builtins): Add
24815 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24816 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24817 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24818 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24819 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24820 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24821 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24822 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24823 IX86_BUILTIN_PMOVUSQW512_MEM.
24824 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24825 __builtin_ia32_pmovsqd512mem_mask,
24826 __builtin_ia32_pmovqd512mem_mask,
24827 __builtin_ia32_pmovusqw512mem_mask,
24828 __builtin_ia32_pmovsqw512mem_mask,
24829 __builtin_ia32_pmovqw512mem_mask,
24830 __builtin_ia32_pmovusdw512mem_mask,
24831 __builtin_ia32_pmovsdw512mem_mask,
24832 __builtin_ia32_pmovdw512mem_mask,
24833 __builtin_ia32_pmovqb512mem_mask,
24834 __builtin_ia32_pmovusqb512mem_mask,
24835 __builtin_ia32_pmovsqb512mem_mask,
24836 __builtin_ia32_pmovusdb512mem_mask,
24837 __builtin_ia32_pmovsdb512mem_mask,
24838 __builtin_ia32_pmovdb512mem_mask.
24839 (bdesc_args): Add __builtin_ia32_expanddf512,
24840 __builtin_ia32_expandsf512.
24841 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24842 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24843 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24844 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24845 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24846 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24847 (avx512f_<code>v8div16qi2_mask_store): This.
24848 (avx512f_expand<mode>): New.
24849
24850 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24851
24852 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24853 New.
24854 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24855 (_mm512_prefetch_i32scatter_pd): Ditto.
24856 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24857 (_mm512_prefetch_i64scatter_pd): Ditto.
24858 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24859 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24860 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24861 (_mm512_prefetch_i32scatter_ps): Ditto.
24862 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24863 (_mm512_prefetch_i64scatter_ps): Ditto.
24864 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24865 * config/i386/i386-builtin-types.def: Define
24866 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24867 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24868 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24869 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24870 IX86_BUILTIN_SCATTERPFQPD.
24871 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24872 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24873 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24874 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24875 __builtin_ia32_scatterpfqps.
24876 (ix86_expand_builtin): Expand new built-ins.
24877 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24878 fix memory access data type.
24879 (*avx512pf_gatherpf<mode>_mask): Ditto.
24880 (*avx512pf_gatherpf<mode>): Ditto.
24881 (avx512pf_scatterpf<mode>): Ditto.
24882 (*avx512pf_scatterpf<mode>_mask): Ditto.
24883 (*avx512pf_scatterpf<mode>): Ditto.
24884 (GATHER_SCATTER_SF_MEM_MODE): New.
24885 (avx512pf_gatherpf<mode>df): Ditto.
24886 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24887 (*avx512pf_scatterpf<mode>df): Ditto.
24888
24889 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24890
24891 PR bootstrap/59934
24892 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24893 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24894 reached.
24895
24896 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24897
24898 * common/config/arm/arm-common.c
24899 (arm_rewrite_mcpu): Handle multiple names.
24900 * config/arm/arm.h
24901 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24902
24903 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24904
24905 * gimple-builder.h (create_gimple_tmp): Delete.
24906
24907 2014-01-27 Christian Bruel <christian.bruel@st.com>
24908
24909 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24910 words comparisons.
24911
24912 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24913
24914 * config/pa/pa.md (call): Generate indirect long calls to non-local
24915 functions when outputing 32-bit code.
24916 (call_value): Likewise except for special call to buggy powf function.
24917
24918 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24919 portable runtime and PIC indirect calls.
24920 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24921 and PIC call sequences. Use ldo instead of blr to set return register
24922 in PIC call sequence.
24923
24924 2014-01-25 Walter Lee <walt@tilera.com>
24925
24926 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24927 avoid clobbering a live register.
24928
24929 2014-01-25 Walter Lee <walt@tilera.com>
24930
24931 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24932 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24933 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24934 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24935
24936 2014-01-25 Walter Lee <walt@tilera.com>
24937
24938 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24939 arguments on even registers.
24940 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24941 STACK_BOUNDARY.
24942 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24943 (BIGGEST_ALIGNMENT): Ditto.
24944 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24945
24946 2014-01-25 Walter Lee <walt@tilera.com>
24947
24948 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24949 insns before bundling.
24950 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24951
24952 2014-01-25 Walter Lee <walt@tilera.com>
24953
24954 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24955 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24956 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24957
24958 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24959
24960 * config/mips/constraints.md (kl): Delete.
24961 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24962 define expands, using...
24963 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24964 instructions for MIPS16.
24965 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24966 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24967
24968 2014-01-25 Walter Lee <walt@tilera.com>
24969
24970 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24971 (clzdi2): Ditto.
24972 (ffsdi2): Ditto.
24973
24974 2014-01-25 Walter Lee <walt@tilera.com>
24975
24976 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24977 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24978
24979 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24980
24981 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24982 Handle XOR.
24983
24984 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24985
24986 * print-rtl.c (in_call_function_usage): New var.
24987 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24988 EXPR_LIST mode as mode and not as reg note name.
24989
24990 PR middle-end/59561
24991 * cfgloopmanip.c (copy_loop_info): If
24992 loop->warned_aggressive_loop_optimizations, make sure
24993 the flag is set in target loop too.
24994
24995 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24996
24997 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24998 flag_cilkplus.
24999 * builtins.def: Likewise.
25000 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25001 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25002 * ira.c (ira_setup_eliminable_regset): Likewise.
25003 * omp-low.c (gate_expand_omp): Likewise.
25004 (execute_lower_omp): Likewise.
25005 (diagnose_sb_0): Likewise.
25006 (gate_diagnose_omp_blocks): Likewise.
25007 (simd_clone_clauses_extract): Likewise.
25008 (gate): Likewise.
25009
25010 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25011
25012 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25013 correction for little endian...
25014 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25015 here.
25016
25017 2014-01-24 Jeff Law <law@redhat.com>
25018
25019 PR tree-optimization/59919
25020 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25021 for non-returning calls.
25022
25023 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25024
25025 * common/config/aarch64/aarch64-common.c
25026 (aarch64_rewrite_mcpu): Handle multiple names.
25027 * config/aarch64/aarch64.h
25028 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25029
25030 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25031
25032 * input.c (add_file_to_cache_tab): Handle the case where fopen
25033 returns NULL.
25034
25035 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25036
25037 PR target/59929
25038 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25039 from push operand if code of push isn't PRE_DEC.
25040
25041 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25042
25043 PR target/59909
25044 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25045 -mquad-memory-atomic. Update -mquad-memory documentation to say
25046 it is only used for non-atomic loads/stores.
25047
25048 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25049 -mquad-memory or -mquad-memory-atomic switches.
25050
25051 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25052 -mquad-memory-atomic to ISA 2.07 support.
25053
25054 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25055 to separate support of normal quad word memory operations (ldq, stq)
25056 from the atomic quad word memory operations.
25057
25058 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25059 support to separate non-atomic quad word operations from atomic
25060 quad word operations. Disable non-atomic quad word operations in
25061 little endian mode so that we don't have to swap words after the
25062 load and before the store.
25063 (quad_load_store_p): Add comment about atomic quad word support.
25064 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25065 options printed with -mdebug=reg.
25066
25067 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25068 -mquad-memory-atomic as the test for whether we have quad word
25069 atomic instructions.
25070 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25071 or -mp8-vector are used, allow byte/half-word atomic operations.
25072
25073 * config/rs6000/sync.md (load_lockedti): Insure that the address
25074 is a proper indexed or indirect address for the lqarx instruction.
25075 On little endian systems, swap the hi/lo registers after the lqarx
25076 instruction.
25077 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25078 insure the address is valid for the lqarx instruction.
25079 (store_conditionalti): Insure that the address is a proper indexed
25080 or indirect address for the stqcrx. instruction. On little endian
25081 systems, swap the hi/lo registers before doing the stqcrx.
25082 instruction.
25083 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25084 insure the address is valid for the stqcrx. instruction.
25085
25086 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25087 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25088 type of quad memory support is available.
25089
25090 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25091
25092 PR regression/59915
25093 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25094 there is a danger of looping.
25095
25096 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25097
25098 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25099 force flag_ira_loop_pressure if set via command line.
25100
25101 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25102
25103 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25104 (ashr_simd): New builtin handling DI mode.
25105 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25106 (aarch64_sshr_simddi): New match pattern.
25107 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25108 (vshrd_n_s64): Likewise.
25109 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25110
25111 2014-01-23 Nick Clifton <nickc@redhat.com>
25112
25113 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25114 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25115 favour of mcu specific scripts.
25116 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25117 430x multilibs.
25118
25119 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25120 Alex Velenko <Alex.Velenko@arm.com>
25121
25122 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25123 (vaddv_s16): Likewise.
25124 (vaddv_s32): Likewise.
25125 (vaddv_u8): Likewise.
25126 (vaddv_u16): Likewise.
25127 (vaddv_u32): Likewise.
25128 (vaddvq_s8): Likewise.
25129 (vaddvq_s16): Likewise.
25130 (vaddvq_s32): Likewise.
25131 (vaddvq_s64): Likewise.
25132 (vaddvq_u8): Likewise.
25133 (vaddvq_u16): Likewise.
25134 (vaddvq_u32): Likewise.
25135 (vaddvq_u64): Likewise.
25136 (vaddv_f32): Likewise.
25137 (vaddvq_f32): Likewise.
25138 (vaddvq_f64): Likewise.
25139 (vmaxv_f32): Likewise.
25140 (vmaxv_s8): Likewise.
25141 (vmaxv_s16): Likewise.
25142 (vmaxv_s32): Likewise.
25143 (vmaxv_u8): Likewise.
25144 (vmaxv_u16): Likewise.
25145 (vmaxv_u32): Likewise.
25146 (vmaxvq_f32): Likewise.
25147 (vmaxvq_f64): Likewise.
25148 (vmaxvq_s8): Likewise.
25149 (vmaxvq_s16): Likewise.
25150 (vmaxvq_s32): Likewise.
25151 (vmaxvq_u8): Likewise.
25152 (vmaxvq_u16): Likewise.
25153 (vmaxvq_u32): Likewise.
25154 (vmaxnmv_f32): Likewise.
25155 (vmaxnmvq_f32): Likewise.
25156 (vmaxnmvq_f64): Likewise.
25157 (vminv_f32): Likewise.
25158 (vminv_s8): Likewise.
25159 (vminv_s16): Likewise.
25160 (vminv_s32): Likewise.
25161 (vminv_u8): Likewise.
25162 (vminv_u16): Likewise.
25163 (vminv_u32): Likewise.
25164 (vminvq_f32): Likewise.
25165 (vminvq_f64): Likewise.
25166 (vminvq_s8): Likewise.
25167 (vminvq_s16): Likewise.
25168 (vminvq_s32): Likewise.
25169 (vminvq_u8): Likewise.
25170 (vminvq_u16): Likewise.
25171 (vminvq_u32): Likewise.
25172 (vminnmv_f32): Likewise.
25173 (vminnmvq_f32): Likewise.
25174 (vminnmvq_f64): Likewise.
25175
25176 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25177
25178 * config/aarch64/aarch64-simd.md
25179 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25180 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25181 (*aarch64_mul3_elt<mode>): Likewise.
25182 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25183 (*aarch64_mul3_elt_to_64v2df): Likewise.
25184 (*aarch64_mla_elt<mode>): Likewise.
25185 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25186 (*aarch64_mls_elt<mode>): Likewise.
25187 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25188 (*aarch64_fma4_elt<mode>): Likewise.
25189 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25190 (*aarch64_fma4_elt_to_64v2df): Likewise.
25191 (*aarch64_fnma4_elt<mode>): Likewise.
25192 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25193 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25194 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25195 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25196 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25197 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25198 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25199 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25200 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25201
25202 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25203
25204 * config/aarch64/aarch64-simd.md
25205 (aarch64_be_checked_get_lane<mode>): New define_expand.
25206 * config/aarch64/aarch64-simd-builtins.def
25207 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25208 New builtin definition.
25209 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25210 Use new safe be builtin.
25211
25212 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25213
25214 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25215 New define_insn.
25216 (aarch64_be_st1<mode>): Likewise.
25217 (aarch_ld1<VALL:mode>): Define_expand modified.
25218 (aarch_st1<VALL:mode>): Likewise.
25219 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25220 (UNSPEC_ST1): Likewise.
25221
25222 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25223
25224 * config/microblaze/microblaze.md: Add trap insn and attribute
25225
25226 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25227
25228 PR preprocessor/58580
25229 * input.h (location_get_source_line): Take an additional line_size
25230 parameter.
25231 (void diagnostics_file_cache_fini): Declare new function.
25232 * input.c (struct fcache): New type.
25233 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25234 New static constants.
25235 (diagnostic_file_cache_init, total_lines_num)
25236 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25237 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25238 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25239 (get_next_line, read_next_line, goto_next_line, read_line_num):
25240 New static function definitions.
25241 (diagnostic_file_cache_fini): New function.
25242 (location_get_source_line): Take an additional output line_len
25243 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25244 read_line_num.
25245 * diagnostic.c (diagnostic_finish): Call
25246 diagnostic_file_cache_fini.
25247 (adjust_line): Take an additional input parameter for the length
25248 of the line, rather than calculating it with strlen.
25249 (diagnostic_show_locus): Adjust the use of
25250 location_get_source_line and adjust_line with respect to their new
25251 signature. While displaying a line now, do not stop at the first
25252 null byte. Rather, display the zero byte as a space and keep
25253 going until we reach the size of the line.
25254 * Makefile.in: Add vec.o to OBJS-libcommon
25255
25256 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25257 Ilya Tocar <ilya.tocar@intel.com>
25258
25259 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25260 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25261 (__builtin_ia32_kmov16): Ditto.
25262 * config/i386/i386.md (UNSPEC_KMOV): New.
25263 (kmovw): Ditto.
25264
25265 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25266
25267 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25268 (_mm512_storeu_si512): Ditto.
25269
25270 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25271
25272 PR target/52125
25273 * rtl.h (get_referenced_operands): Declare.
25274 * recog.c (get_referenced_operands): New function.
25275 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25276 operands have been referenced when recording LO_SUM references.
25277
25278 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25279
25280 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25281
25282 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25283
25284 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25285 Enable for generic and recent AMD targets.
25286
25287 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25288
25289 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25290 ARG_SIZE note when adjustment was eliminated.
25291
25292 2014-01-22 Jeff Law <law@redhat.com>
25293
25294 PR tree-optimization/59597
25295 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25296 in file. Accept new argument REGISTERING and use it to modify
25297 dump output appropriately.
25298 (register_jump_thread): Corresponding changes.
25299 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25300 thread paths involving joiner blocks. Add code to dump cancelled
25301 jump threading paths.
25302
25303 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25304
25305 PR rtl-optimization/59477
25306 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25307 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25308
25309 2014-01-22 Tom Tromey <tromey@redhat.com>
25310
25311 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25312 PARAMS.
25313 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25314
25315 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25316
25317 PR rtl-optimization/59896
25318 * lra-constraints.c (process_alt_operands): Check unused note for
25319 matched operands of insn with no output reloads.
25320
25321 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25322
25323 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25324 (mips_move_from_gpr_cost): Likewise.
25325
25326 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25327
25328 PR rtl-optimization/59858
25329 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25330 ira_class_hard_regs_num.
25331 (process_alt_operands): Increase reject for dying matched operand.
25332
25333 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25334
25335 PR target/59003
25336 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25337 smaller than size, perform several stores or loads and stores
25338 at dst + count - size to store or copy all of size bytes, rather
25339 than just last modesize bytes.
25340
25341 2014-01-20 DJ Delorie <dj@redhat.com>
25342
25343 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25344 that CLOBBERs are REGs before propogating their values.
25345
25346 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25347
25348 PR middle-end/59789
25349 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25350 (cgraph_inline_failed_type): New function.
25351 * cgraph.h (DEFCIFCODE): Add type.
25352 (cgraph_inline_failed_type_t): New enum.
25353 (cgraph_inline_failed_type): New prototype.
25354 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25355 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25356 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25357 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25358 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25359 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25360 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25361 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25362 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25363 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25364 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25365 OPTIMIZATION_MISMATCH.
25366 * tree-inline.c (expand_call_inline): Emit errors during
25367 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25368
25369 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25370
25371 PR target/59685
25372 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25373 mode attribute in insn output.
25374
25375 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25376
25377 * output.h (output_constant): Delete.
25378 * varasm.c (output_constant): Make private.
25379
25380 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25381
25382 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25383
25384 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25385
25386 PR middle-end/59860
25387 * tree.h (fold_builtin_strcat): New prototype.
25388 * builtins.c (fold_builtin_strcat): No longer static. Add len
25389 argument, if non-NULL, don't call c_strlen. Optimize
25390 directly into __builtin_memcpy instead of __builtin_strcpy.
25391 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25392 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25393
25394 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25395
25396 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25397 for SImode_address_operand operands, having only a REG argument.
25398
25399 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25400
25401 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25402 loader name using mbig-endian.
25403 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25404
25405 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25406
25407 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25408 (-mtune): Likewise.
25409 (-mcpu): Likewise.
25410
25411 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25412
25413 * config/aarch64/aarch64-protos.h
25414 (aarch64_cannot_change_mode_class_ptr): Declare.
25415 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25416 aarch64_cannot_change_mode_class_ptr): New.
25417 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25418 backend hook aarch64_cannot_change_mode_class.
25419
25420 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25421
25422 * common/config/aarch64/aarch64-common.c
25423 (aarch64_handle_option): Don't handle any option order logic here.
25424 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25425 selected_cpu, warn on architecture version mismatch.
25426 (aarch64_override_options): Fix parsing order for option strings.
25427
25428 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25429 Iain Sandoe <iain@codesourcery.com>
25430
25431 PR bootstrap/59496
25432 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25433 warning. Amend comment to reflect current functionality.
25434
25435 2014-01-20 Richard Biener <rguenther@suse.de>
25436
25437 PR middle-end/59860
25438 * builtins.c (fold_builtin_strcat): Remove case better handled
25439 by tree-ssa-strlen.c.
25440
25441 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25442
25443 * config/aarch64/aarch64.opt
25444 (mcpu, march, mtune): Make case-insensitive.
25445
25446 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25447
25448 PR target/59880
25449 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25450 if operands[1] is a REG or ZERO_EXTEND of a REG.
25451
25452 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25453
25454 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25455
25456 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25457
25458 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25459 long non-pic millicode calls.
25460
25461 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25462
25463 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25464
25465 2014-01-19 Kito Cheng <kito@0xlab.org>
25466
25467 * builtins.c (expand_movstr): Check movstr expand done or fail.
25468
25469 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25470 H.J. Lu <hongjiu.lu@intel.com>
25471
25472 PR target/59379
25473 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25474 to DImode for zero-extended addresses.
25475
25476 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25477
25478 PR rtl-optimization/57763
25479 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25480 on the new indirect jump_insn and increment LABEL_NUSES (label).
25481
25482 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25483
25484 PR bootstrap/59580
25485 PR bootstrap/59583
25486 * config.gcc (x86_archs): New variable.
25487 (x86_64_archs): Likewise.
25488 (x86_cpus): Likewise.
25489 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25490 --with-arch/--with-cpu= options.
25491 Support --with-arch=/--with-cpu={nehalem,westmere,
25492 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25493
25494 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25495
25496 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25497 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25498
25499 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25500
25501 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25502
25503 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25504
25505 PR target/58944
25506 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25507 clear cpp_get_options (parse_in)->warn_unused_macros for
25508 ix86_target_macros_internal with cpp_define.
25509
25510 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25511
25512 * jump.c (delete_related_insns): Keep (use (insn))s.
25513 * reorg.c (redundant_insn): Check for barriers too.
25514
25515 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25516
25517 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25518
25519 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25520
25521 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25522 call to $$dyncall when TARGET_LONG_CALLS is true.
25523
25524 2014-01-17 Jeff Law <law@redhat.com>
25525
25526 * ree.c (combine_set_extension): Temporarily disable test for
25527 changing number of hard registers.
25528
25529 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25530
25531 PR middle-end/58125
25532 * ipa-inline-analysis.c (inline_free_summary):
25533 Do not free summary of aliases.
25534
25535 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25536
25537 PR middle-end/59706
25538 * gimplify.c (gimplify_expr): Use create_tmp_var
25539 instead of create_tmp_var_raw. If cond doesn't have
25540 integral type, don't add the IFN_ANNOTATE builtin at all.
25541
25542 2014-01-17 Martin Jambor <mjambor@suse.cz>
25543
25544 PR ipa/59736
25545 * ipa-cp.c (prev_edge_clone): New variable.
25546 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25547 Also resize prev_edge_clone vector.
25548 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25549 (ipcp_edge_removal_hook): New function.
25550 (ipcp_driver): Register ipcp_edge_removal_hook.
25551
25552 2014-01-17 Andrew Pinski <apinski@cavium.com>
25553 Steve Ellcey <sellcey@mips.com>
25554
25555 PR target/59462
25556 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25557 of operator mode.
25558
25559 2014-01-17 Jeff Law <law@redhat.com>
25560
25561 PR middle-end/57904
25562 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25563 so that pass_ccp runs first.
25564
25565 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25566
25567 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25568 (ix86_adjust_cost): Use !TARGET_XXX.
25569 (do_reorder_for_imul): Likewise.
25570 (swap_top_of_ready_list): Likewise.
25571 (ix86_sched_reorder): Likewise.
25572
25573 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25574
25575 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25576 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25577 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25578 (intel_memset): New. Duplicate slm_memset.
25579 (intel_cost): New. Duplicate slm_cost.
25580 (m_INTEL): New macro.
25581 (processor_target_table): Add "intel".
25582 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25583 with PROCESSOR_INTEL for "intel".
25584 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25585 PROCESSOR_SILVERMONT.
25586 (ix86_issue_rate): Likewise.
25587 (ix86_adjust_cost): Likewise.
25588 (ia32_multipass_dfa_lookahead): Likewise.
25589 (swap_top_of_ready_list): Likewise.
25590 (ix86_sched_reorder): Likewise.
25591 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25592 instead of TARGET_OPT_AGU.
25593 * config/i386/i386.h (TARGET_INTEL): New.
25594 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25595 (processor_type): Add PROCESSOR_INTEL.
25596 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25597 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25598
25599 2014-01-17 Marek Polacek <polacek@redhat.com>
25600
25601 PR c/58346
25602 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25603 size is zero.
25604
25605 2014-01-17 Richard Biener <rguenther@suse.de>
25606
25607 PR tree-optimization/46590
25608 * opts.c (default_options_table): Add entries for
25609 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25610 all enabled at -O1 but not for -Og.
25611 * common.opt (fbranch-count-reg): Remove Init(1).
25612 (fmove-loop-invariants): Likewise.
25613 (ftree-pta): Likewise.
25614
25615 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25616
25617 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25618 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25619 decls to at least the GCC 4.8 used alignments.
25620
25621 PR fortran/59440
25622 * tree-nested.c (convert_nonlocal_reference_stmt,
25623 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25624 of GIMPLE_BIND stmts, adjust associated decls.
25625
25626 2014-01-17 Richard Biener <rguenther@suse.de>
25627
25628 PR tree-optimization/46590
25629 * vec.h (vec<>::bseach): New member function implementing
25630 binary search according to C89 bsearch.
25631 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25632 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25633 bitmap pointer again. Make accesses_in_loop a flat array.
25634 (mem_ref_obstack): New global.
25635 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25636 (mark_ref_stored): Likewise.
25637 (ref_indep_loop_p_2): Likewise.
25638 (set_ref_stored_in_loop): New helper function.
25639 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25640 (memref_free): Adjust.
25641 (record_mem_ref_loc): Simplify.
25642 (gather_mem_refs_stmt): Adjust.
25643 (sort_locs_in_loop_postorder_cmp): New function.
25644 (analyze_memory_references): Sort accesses_in_loop after
25645 loop postorder number.
25646 (find_ref_loc_in_loop_cmp): New function.
25647 (for_all_locs_in_loop): Find relevant cluster of locs in
25648 accesses_in_loop and iterate without recursion.
25649 (execute_sm): Avoid uninit warning.
25650 (struct ref_always_accessed): Simplify.
25651 (ref_always_accessed::operator ()): Likewise.
25652 (ref_always_accessed_p): Likewise.
25653 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25654 loop postorder numbers here.
25655 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25656 numbers.
25657
25658 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25659
25660 PR c++/57945
25661 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25662 on decls for which assemble_alias has been called.
25663
25664 2014-01-17 Nick Clifton <nickc@redhat.com>
25665
25666 * config/msp430/msp430.opt: (mcpu): New option.
25667 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25668 (msp430_option_override): Parse target_cpu. If the MCU name
25669 matches a generic string, clear target_mcu.
25670 (msp430_attr): Allow numeric interrupt values up to 63.
25671 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25672 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25673 option.
25674 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25675 Add mcpu matches.
25676 * config/msp430/msp430.md (popm): Use %J rather than %I.
25677 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25678 (addhi_cy_i): Use immediate_operand for operand 2.
25679 * doc/invoke.texi: Document -mcpu option.
25680
25681 2014-01-17 Richard Biener <rguenther@suse.de>
25682
25683 PR rtl-optimization/38518
25684 * df.h (df_analyze_loop): Declare.
25685 * df-core.c: Include cfgloop.h.
25686 (df_analyze_1): Split out main part of df_analyze.
25687 (df_analyze): Adjust.
25688 (loop_inverted_post_order_compute): New function.
25689 (loop_post_order_compute): Likewise.
25690 (df_analyze_loop): New function avoiding whole-function
25691 postorder computes.
25692 * loop-invariant.c (find_defs): Use df_analyze_loop.
25693 (find_invariants): Adjust.
25694 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25695
25696 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25697
25698 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25699 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25700
25701 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25702
25703 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25704 traversal when removing references.
25705
25706 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25707
25708 PR ipa/59775
25709 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25710
25711 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25712
25713 PR middle-end/56791
25714 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25715 pushing a reload for an autoinc when we had previously reloaded an
25716 inner part of the address.
25717
25718 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25719
25720 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25721 field.
25722 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25723 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25724 when not giving up or versioning for alias only because of
25725 loop->safelen.
25726 (vect_analyze_data_ref_dependences): Set to true.
25727 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25728 is a GIMPLE_PHI.
25729 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25730 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25731 to the condition.
25732
25733 PR middle-end/58344
25734 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25735
25736 PR target/59839
25737 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25738 operand 0 predicate for gathers, use a new pseudo as subtarget.
25739
25740 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25741
25742 PR middle-end/59609
25743 * lra-constraints.c (process_alt_operands): Add printing debug info.
25744 Check absence of input/output reloads for matched operands too.
25745
25746 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25747
25748 PR rtl-optimization/59835
25749 * ira.c (ira_init_register_move_cost): Increase cost for
25750 impossible modes.
25751
25752 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25753
25754 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25755
25756 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25757
25758 PR target/59780
25759 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25760 non-register objects. Use gen_(high/low)part more consistently.
25761 Fix assertions.
25762
25763 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25764
25765 PR target/59844
25766 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25767 endian support, remove tests for WORDS_BIG_ENDIAN.
25768 (p8_mfvsrd_3_<mode>): Likewise.
25769 (reload_gpr_from_vsx<mode>): Likewise.
25770 (reload_gpr_from_vsxsf): Likewise.
25771 (p8_mfvsrd_4_disf): Likewise.
25772
25773 2014-01-16 Richard Biener <rguenther@suse.de>
25774
25775 PR rtl-optimization/46590
25776 * lcm.c (compute_antinout_edge): Use postorder iteration.
25777 (compute_laterin): Use inverted postorder iteration.
25778
25779 2014-01-16 Nick Clifton <nickc@redhat.com>
25780
25781 PR middle-end/28865
25782 * varasm.c (output_constant): Return the number of bytes actually
25783 emitted.
25784 (output_constructor_array_range): Update the field size with the
25785 number of bytes emitted by output_constant.
25786 (output_constructor_regular_field): Likewise. Also do not
25787 complain if the total number of bytes emitted is now greater
25788 than the expected fieldpos.
25789 * output.h (output_constant): Update prototype and descriptive comment.
25790
25791 2014-01-16 Marek Polacek <polacek@redhat.com>
25792
25793 PR middle-end/59827
25794 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25795 it is error_mark_node.
25796
25797 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25798
25799 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25800 VALID_AVX256_REG_OR_OI_MODE.
25801
25802 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25803
25804 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25805 current procedure should be profiled.
25806
25807 2014-01-15 Andrew Pinski <apinski@cavium.com>
25808
25809 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25810 of moving from/to the STACK_REG register class.
25811
25812 2014-01-15 Richard Henderson <rth@redhat.com>
25813
25814 PR debug/54694
25815 * reginfo.c (global_regs_decl): Globalize.
25816 * rtl.h (global_regs_decl): Declare.
25817 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25818 reserved via global_regs.
25819
25820 2014-01-15 Teresa Johnson <tejohnson@google.com>
25821
25822 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25823
25824 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25825
25826 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25827 and vmulosh rather than call gen_vec_widen_smult_*.
25828 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25829 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25830 (vec_widen_smult_even_v16qi): Likewise.
25831 (vec_widen_umult_even_v8hi): Likewise.
25832 (vec_widen_smult_even_v8hi): Likewise.
25833 (vec_widen_umult_odd_v16qi): Likewise.
25834 (vec_widen_smult_odd_v16qi): Likewise.
25835 (vec_widen_umult_odd_v8hi): Likewise.
25836 (vec_widen_smult_odd_v8hi): Likewise.
25837 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25838 vmuloub rather than call gen_vec_widen_umult_*.
25839 (vec_widen_umult_lo_v16qi): Likewise.
25840 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25841 vmulosb rather than call gen_vec_widen_smult_*.
25842 (vec_widen_smult_lo_v16qi): Likewise.
25843 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25844 rather than call gen_vec_widen_umult_*.
25845 (vec_widen_umult_lo_v8hi): Likewise.
25846 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25847 rather than call gen_vec_widen_smult_*.
25848 (vec_widen_smult_lo_v8hi): Likewise.
25849
25850 2014-01-15 Jeff Law <law@redhat.com>
25851
25852 PR tree-optimization/59747
25853 * ree.c (find_and_remove_re): Properly handle case where a second
25854 eliminated extension requires widening a copy created for elimination
25855 of a prior extension.
25856 (combine_set_extension): Ensure that the number of hard regs needed
25857 for a destination register does not change when we widen it.
25858
25859 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25860
25861 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25862 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25863 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25864 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25865 (avr-*-rtems*): Likewise.
25866 (bfin*-rtems*): Likewise.
25867 (moxie-*-rtems*): Likewise.
25868 (h8300-*-rtems*): Likewise.
25869 (i[34567]86-*-rtems*): Likewise.
25870 (lm32-*-rtems*): Likewise.
25871 (m32r-*-rtems*): Likewise.
25872 (m68k-*-rtems*): Likewise.
25873 (microblaze*-*-rtems*): Likewise.
25874 (mips*-*-rtems*): Likewise.
25875 (powerpc-*-rtems*): Likewise.
25876 (sh-*-rtems*): Likewise.
25877 (sparc-*-rtems*): Likewise.
25878 (sparc64-*-rtems*): Likewise.
25879 (v850-*-rtems*): Likewise.
25880 (m32c-*-rtems*): Likewise.
25881
25882 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25883
25884 PR rtl-optimization/59511
25885 * ira.c (ira_init_register_move_cost): Use memory costs for some
25886 cases of register move cost calculations.
25887 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25888 instead of BB frequency.
25889 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25890 * lra-assigns.c (find_hard_regno_for): Ditto.
25891
25892 2014-01-15 Richard Biener <rguenther@suse.de>
25893
25894 PR tree-optimization/59822
25895 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25896 (vectorizable_load): Use it to hoist defs of uses of invariant
25897 loads out of the loop.
25898
25899 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25900 Kugan Vivekanandarajah <kuganv@linaro.org>
25901
25902 PR target/59695
25903 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25904 truncation.
25905
25906 2014-01-15 Richard Biener <rguenther@suse.de>
25907
25908 PR rtl-optimization/59802
25909 * lcm.c (compute_available): Use inverted postorder to seed
25910 the initial worklist.
25911
25912 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25913
25914 PR target/59803
25915 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25916 ADDR_REGS for invalid symrefs in non-PIC code.
25917
25918 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25919
25920 PR other/58712
25921 * builtins.c (determine_block_size): Initialize *probable_max_size
25922 even if len_rtx is CONST_INT.
25923
25924 2014-01-14 Andrew Pinski <apinski@cavium.com>
25925
25926 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25927 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25928 (cortexa53_tunings): Likewise.
25929 (aarch64_sched_issue_rate): New function.
25930 (TARGET_SCHED_ISSUE_RATE): Define.
25931
25932 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25933
25934 * ira-costs.c (find_costs_and_classes): Add missed
25935 ira_init_register_move_cost_if_necessary.
25936
25937 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25938
25939 PR target/59787
25940 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25941
25942 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25943
25944 PR target/59794
25945 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25946 to indicate if type is used for function return value. Warn ABI
25947 change if the vector mode isn't available for function return value.
25948 (ix86_function_arg_advance): Pass false to type_natural_mode.
25949 (ix86_function_arg): Likewise.
25950 (ix86_gimplify_va_arg): Likewise.
25951 (function_arg_32): Don't warn ABI change.
25952 (ix86_function_value): Pass true to type_natural_mode.
25953 (ix86_return_in_memory): Likewise.
25954 (ix86_struct_value_rtx): Removed.
25955 (TARGET_STRUCT_VALUE_RTX): Likewise.
25956
25957 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25958
25959 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25960 converting a conditional jump into a conditional return.
25961
25962 2014-01-14 Richard Biener <rguenther@suse.de>
25963
25964 PR tree-optimization/58921
25965 PR tree-optimization/59006
25966 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25967 hoisting invariant stmts.
25968 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25969 invariant loads on the preheader edge if possible.
25970
25971 2014-01-14 Joey Ye <joey.ye@arm.com>
25972
25973 * doc/plugin.texi (Building GCC plugins): Update to C++.
25974
25975 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25976
25977 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25978 (_mm_rcp28_round_ss): Ditto.
25979 (_mm_rsqrt28_round_sd): Ditto.
25980 (_mm_rsqrt28_round_ss): Ditto.
25981 (_mm_rcp28_sd): Ditto.
25982 (_mm_rcp28_ss): Ditto.
25983 (_mm_rsqrt28_sd): Ditto.
25984 (_mm_rsqrt28_ss): Ditto.
25985 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25986 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25987 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25988 (IX86_BUILTIN_RCP28SD): Ditto.
25989 (IX86_BUILTIN_RCP28SS): Ditto.
25990 (IX86_BUILTIN_RSQRT28SD): Ditto.
25991 (IX86_BUILTIN_RSQRT28SS): Ditto.
25992 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25993 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25994 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25995 (ix86_expand_special_args_builtin): Expand new FTYPE.
25996 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25997 (srcp14<mode>): Make insn unary.
25998 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25999 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26000 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26001 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26002 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26003 Fix rounding: make it SAE only.
26004 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26005 Ditto.
26006 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26007 Ditto.
26008 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26009 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26010 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26011 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26012 (round_saeonly_mask_scalar_operand4): Ditto.
26013 (round_saeonly_mask_scalar_op3): Ditto.
26014 (round_saeonly_mask_scalar_op4): Ditto.
26015
26016 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26017
26018 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26019 Implement -maltivec=be for vec_insert and vec_extract.
26020
26021 2014-01-10 DJ Delorie <dj@redhat.com>
26022
26023 * config/msp430/msp430.md (call_internal): Don't allow memory
26024 references with SP as the base register.
26025 (call_value_internal): Likewise.
26026 * config/msp430/constraints.md (Yc): New. For memory references
26027 that don't use SP as a base register.
26028
26029 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26030 "an integer without a # prefix"
26031 * config/msp430/msp430.md (epilogue_helper): Use it.
26032
26033 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26034
26035 PR target/59617
26036 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26037 AVX512F gather builtins.
26038 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26039 on gather decls with INTEGER_TYPE masktype.
26040 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26041 directly into the builtin rather than hoisting it before loop.
26042
26043 PR tree-optimization/59387
26044 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26045 (scev_const_prop): If folded_casts and type has undefined overflow,
26046 use force_gimple_operand instead of force_gimple_operand_gsi and
26047 for each added stmt if it is assign with
26048 arith_code_with_undefined_signed_overflow, call
26049 rewrite_to_defined_overflow.
26050 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26051 gimple-fold.h instead.
26052 (arith_code_with_undefined_signed_overflow,
26053 rewrite_to_defined_overflow): Moved to ...
26054 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26055 rewrite_to_defined_overflow): ... here. No longer static.
26056 Include gimplify-me.h.
26057 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26058 rewrite_to_defined_overflow): New prototypes.
26059
26060 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26061
26062 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26063
26064 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26065
26066 * builtins.c (get_object_alignment_2): Minor tweak.
26067 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26068
26069 2014-01-13 Christian Bruel <christian.bruel@st.com>
26070
26071 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26072 optimized non constant lengths.
26073
26074 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26075
26076 PR libgomp/59194
26077 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26078 load as __atomic_load_N if possible.
26079
26080 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26081
26082 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26083 target parameter.
26084 (rs6000_expand_builtin): Adjust call.
26085
26086 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26087
26088 PR target/58115
26089 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26090 * config/rs6000/rs6000.c: Include target-globals.h.
26091 (rs6000_set_current_function): Instead of doing target_reinit
26092 unconditionally, use save_target_globals_default_opts and
26093 restore_target_globals.
26094
26095 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26096 FPSCR.
26097 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26098 (rs6000_expand_builtin): Handle mffs and mtfsf.
26099 (rs6000_init_builtins): Define mffs and mtfsf.
26100 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26101 (rs6000_mffs): New pattern.
26102 (rs6000_mtfsf): New pattern.
26103
26104 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26105
26106 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26107 Start narrowing with START. Apply candidate-use pair
26108 and check overall cost in narrowing.
26109 (iv_ca_prune): Pass new argument.
26110
26111 2014-01-10 Jeff Law <law@redhat.com>
26112
26113 PR middle-end/59743
26114 * ree.c (combine_reaching_defs): Ensure the defining statement
26115 occurs before the extension when optimizing extensions with
26116 different source and destination hard registers.
26117
26118 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26119
26120 PR ipa/58585
26121 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26122 vtables into the type inheritance graph.
26123
26124 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26125
26126 PR rtl-optimization/59754
26127 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26128 modes in the REGNO != REGNO case.
26129
26130 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26131
26132 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26133
26134 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26135
26136 PR tree-optimization/59745
26137 * tree-predcom.c (tree_predictive_commoning_loop): Call
26138 free_affine_expand_cache if giving up because components is NULL.
26139
26140 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26141 GC in payload of target_globals struct instead of allocating them on
26142 the heap and the larger structs separately using GC.
26143 * target-globals.h (struct target_globals): Make regs, hard_regs,
26144 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26145 of GTY((skip)) and change type to void *.
26146 (reset_target_globals): Cast loads from those fields to corresponding
26147 types.
26148
26149 2014-01-10 Steve Ellcey <sellcey@mips.com>
26150
26151 PR plugins/59335
26152 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26153 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26154 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26155
26156 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26157
26158 PR target/59744
26159 * aarch64-modes.def (CC_Zmode): New flags mode.
26160 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26161 represents an equality.
26162 (aarch64_get_condition_code): Handle CC_Zmode.
26163 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26164
26165 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26166
26167 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26168 extraction in good case.
26169
26170 2014-01-10 Richard Biener <rguenther@suse.de>
26171
26172 PR tree-optimization/59374
26173 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26174 checking after SLP discovery. Mark stmts not participating
26175 in any SLP instance properly.
26176
26177 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26178
26179 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26180 when handling a SET rtx.
26181
26182 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26183
26184 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26185 (cortex-a57): Likewise.
26186 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26187
26188 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26189
26190 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26191 non-iwmmxt builtins.
26192
26193 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26194
26195 PR ipa/58252
26196 PR ipa/59226
26197 * ipa-devirt.c record_target_from_binfo): Take as argument
26198 stack of binfos and lookup matching one for virtual inheritance.
26199 (possible_polymorphic_call_targets_1): Update.
26200
26201 2014-01-10 Huacai Chen <chenhc@lemote.com>
26202
26203 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26204 kernel strings for Loongson-2E/2F/3A.
26205
26206 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26207
26208 PR middle-end/59670
26209 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26210 is_gimple_call before calling gimple_call_internal_p.
26211
26212 2014-01-09 Steve Ellcey <sellcey@mips.com>
26213
26214 * Makefile.in (TREE_FLOW_H): Remove.
26215 (TREE_SSA_H): Add file names from tree-flow.h.
26216 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26217 * tree.h: Remove tree-flow.h reference.
26218 * hash-table.h: Remove tree-flow.h reference.
26219 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26220 reference with tree-ssa-loop.h.
26221
26222 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26223
26224 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26225 default element-order behavior for -maltivec.
26226 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26227 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26228 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26229 when targeting big endian, at least for now.
26230 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26231
26232 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26233
26234 PR middle-end/47735
26235 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26236 var satisfies use_register_for_decl, just take into account type
26237 alignment, rather than decl alignment.
26238
26239 PR tree-optimization/59622
26240 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26241 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26242 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26243 Don't devirtualize for inplace at all. For targets.length () == 1,
26244 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26245
26246 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26247
26248 * config/i386/i386.md (cpu): Remove the unused btver1.
26249
26250 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26251
26252 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26253
26254 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26255
26256 PR target/58115
26257 * tree-core.h (struct target_globals): New forward declaration.
26258 (struct tree_target_option): Add globals field.
26259 * tree.h (TREE_TARGET_GLOBALS): Define.
26260 (prepare_target_option_nodes_for_pch): New prototype.
26261 * target-globals.h (struct target_globals): Define even if
26262 !SWITCHABLE_TARGET.
26263 * tree.c (prepare_target_option_node_for_pch,
26264 prepare_target_option_nodes_for_pch): New functions.
26265 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26266 * config/i386/i386.c: Include target-globals.h.
26267 (ix86_set_current_function): Instead of doing target_reinit
26268 unconditionally, use save_target_globals_default_opts and
26269 restore_target_globals.
26270
26271 2014-01-09 Richard Biener <rguenther@suse.de>
26272
26273 PR tree-optimization/59715
26274 * tree-cfg.h (split_critical_edges): Declare.
26275 * tree-cfg.c (split_critical_edges): Export.
26276 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26277
26278 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26279
26280 * cfgexpand.c (expand_stack_vars): Optionally disable
26281 asan stack protection.
26282 (expand_used_vars): Likewise.
26283 (partition_stack_vars): Likewise.
26284 * asan.c (asan_emit_stack_protection): Optionally disable
26285 after return stack usage.
26286 (instrument_derefs): Optionally disable memory access instrumentation.
26287 (instrument_builtin_call): Likewise.
26288 (instrument_strlen_call): Likewise.
26289 (asan_protect_global): Optionally disable global variables protection.
26290 * doc/invoke.texi: Added doc for new options.
26291 * params.def: Added new options.
26292 * params.h: Likewise.
26293
26294 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26295
26296 PR rtl-optimization/59724
26297 * ifcvt.c (cond_exec_process_if_block): Don't call
26298 flow_find_head_matching_sequence with 0 longest_match.
26299 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26300 non-active insns if !stop_after.
26301 (try_head_merge_bb): Revert 2014-01-07 changes.
26302
26303 2014-01-08 Jeff Law <law@redhat.com>
26304
26305 * ree.c (get_sub_rtx): New function, extracted from...
26306 (merge_def_and_ext): Here.
26307 (combine_reaching_defs): Use get_sub_rtx.
26308
26309 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26310
26311 * cgraph.h (varpool_variable_node): Do not choke on null node.
26312
26313 2014-01-08 Catherine Moore <clm@codesourcery.com>
26314
26315 * config/mips/mips.md (simple_return): Attempt to use JRC
26316 for microMIPS.
26317 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26318
26319 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26320
26321 PR rtl-optimization/59137
26322 * reorg.c (steal_delay_list_from_target): Call update_block for
26323 elided insns.
26324 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26325
26326 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26327
26328 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26329 two duplicate entries.
26330
26331 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26332
26333 Revert:
26334 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26335
26336 * config/mips/mips.c (mips_truncated_op_cost): New function.
26337 (mips_rtx_costs): Adjust test for BADDU.
26338 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26339
26340 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26341
26342 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26343 (*baddu_si): ...this new pattern.
26344
26345 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26346
26347 PR ipa/59722
26348 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26349
26350 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26351
26352 PR middle-end/57748
26353 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26354 inner_reference_p.
26355 (expand_expr, expand_normal): Adjust.
26356 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26357 inner_reference_p. Use inner_reference_p to expand inner references.
26358 (store_expr): Adjust.
26359 * cfgexpand.c (expand_call_stmt): Adjust.
26360
26361 2014-01-08 Rong Xu <xur@google.com>
26362
26363 * gcov-io.c (gcov_var): Move from gcov-io.h.
26364 (gcov_position): Ditto.
26365 (gcov_is_error): Ditto.
26366 (gcov_rewrite): Ditto.
26367 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26368 only part to libgcc/libgcov.h.
26369
26370 2014-01-08 Marek Polacek <polacek@redhat.com>
26371
26372 PR middle-end/59669
26373 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26374
26375 2014-01-08 Marek Polacek <polacek@redhat.com>
26376
26377 PR sanitizer/59667
26378 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26379
26380 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26381
26382 PR rtl-optimization/59649
26383 * stor-layout.c (get_mode_bounds): For BImode return
26384 0 and STORE_FLAG_VALUE.
26385
26386 2014-01-08 Richard Biener <rguenther@suse.de>
26387
26388 PR middle-end/59630
26389 * gimple.h (is_gimple_builtin_call): Remove.
26390 (gimple_builtin_call_types_compatible_p): New.
26391 (gimple_call_builtin_p): New overload.
26392 * gimple.c (is_gimple_builtin_call): Remove.
26393 (validate_call): Rename to ...
26394 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26395 check return types.
26396 (validate_type): New static function.
26397 (gimple_call_builtin_p): New overload and adjust.
26398 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26399 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26400 (gimple_fold_stmt_to_constant_1): Likewise.
26401 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26402
26403 2014-01-08 Richard Biener <rguenther@suse.de>
26404
26405 PR middle-end/59471
26406 * gimplify.c (gimplify_expr): Gimplify register-register type
26407 VIEW_CONVERT_EXPRs to separate stmts.
26408
26409 2014-01-07 Jeff Law <law@redhat.com>
26410
26411 PR middle-end/53623
26412 * ree.c (combine_set_extension): Handle case where source
26413 and destination registers in an extension insn are different.
26414 (combine_reaching_defs): Allow source and destination registers
26415 in extension to be different under limited circumstances.
26416 (add_removable_extension): Remove restriction that the
26417 source and destination registers in the extension are the same.
26418 (find_and_remove_re): Emit a copy from the extension's
26419 destination to its source after the defining insn if
26420 the source and destination registers are different.
26421
26422 PR middle-end/59285
26423 * ifcvt.c (merge_if_block): If we are merging a block with more than
26424 one successor with a block with no successors, remove any BARRIER
26425 after the second block.
26426
26427 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26428
26429 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26430
26431 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26432
26433 PR target/59652
26434 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26435 for 14-bit register offsets when INT14_OK_STRICT is false.
26436
26437 2014-01-07 Roland Stigge <stigge@antcom.de>
26438 Michael Meissner <meissner@linux.vnet.ibm.com>
26439
26440 PR 57386/target
26441 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26442 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26443
26444 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26445
26446 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26447 -mcpu.
26448
26449 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26450
26451 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26452 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26453 rtx is const0_rtx or not.
26454
26455 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26456
26457 PR target/58115
26458 * target-globals.c (save_target_globals): Remove this_fn_optab
26459 handling.
26460 * toplev.c: Include optabs.h.
26461 (target_reinit): Temporarily restore the global options if another
26462 set of options are in force.
26463
26464 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26465
26466 PR rtl-optimization/58668
26467 * cfgcleanup.c (flow_find_cross_jump): Don't count
26468 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26469 to determine what is counted.
26470 (flow_find_head_matching_sequence): Use active_insn_p to determine
26471 what is counted.
26472 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26473 counting change.
26474 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26475 determine what is counted.
26476
26477 PR tree-optimization/59643
26478 * tree-predcom.c (split_data_refs_to_components): If one dr is
26479 read and one write, determine_offset fails and the write isn't
26480 in the bad component, just put the read into the bad component.
26481
26482 2014-01-07 Mike Stump <mikestump@comcast.net>
26483 Jakub Jelinek <jakub@redhat.com>
26484
26485 PR pch/59436
26486 * tree-core.h (struct tree_optimization_option): Change optabs
26487 type from unsigned char * to void *.
26488 * optabs.c (init_tree_optimization_optabs): Adjust
26489 TREE_OPTIMIZATION_OPTABS initialization.
26490
26491 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26492
26493 PR target/59644
26494 * config/i386/i386.h (struct machine_function): Add
26495 no_drap_save_restore field.
26496 * config/i386/i386.c (ix86_save_reg): Use
26497 !cfun->machine->no_drap_save_restore instead of
26498 crtl->stack_realign_needed.
26499 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26500 this function clears frame_pointer_needed. Set
26501 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26502 and DRAP reg is needed.
26503
26504 2014-01-06 Marek Polacek <polacek@redhat.com>
26505
26506 PR c/57773
26507 * doc/implement-c.texi: Mention that other integer types are
26508 permitted as bit-field types in strictly conforming mode.
26509
26510 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26511
26512 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26513 is newly allocated.
26514
26515 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26516
26517 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26518
26519 2014-01-06 Martin Jambor <mjambor@suse.cz>
26520
26521 PR ipa/59008
26522 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26523 to int.
26524 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26525
26526 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26527
26528 PR debug/59350
26529 PR debug/59510
26530 * var-tracking.c (add_stores): Preserve the value of the source even if
26531 we don't record the store.
26532
26533 2014-01-06 Terry Guo <terry.guo@arm.com>
26534
26535 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26536
26537 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26538
26539 PR bootstrap/59541
26540 * config/darwin.c (darwin_function_section): Adjust return values to
26541 correspond to optimisation changes made in r206070.
26542
26543 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26544
26545 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26546 from prefetch_block tune setting.
26547 (nocona_cost): Correct size of prefetch block to 64.
26548
26549 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26550
26551 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26552 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26553 used to save the static chain register in the computation of the offset
26554 from which the FP registers need to be restored.
26555
26556 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26557
26558 PR tree-optimization/59519
26559 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26560 ICE if get_current_def (current_new_name) is already non-NULL, as long
26561 as it is a phi result of some other phi in *new_exit_bb that has
26562 the same argument.
26563
26564 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26565 or vmovdqu* for misaligned_operand.
26566 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26567 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26568 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26569 aligned_mem for AVX512F masked aligned load and store builtins and for
26570 non-temporal moves.
26571
26572 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26573
26574 PR tree-optimization/59651
26575 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26576 Address range for negative step should be added by TYPE_SIZE_UNIT.
26577
26578 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26579
26580 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26581 overlapping registers also for registers other than the stack pointer.
26582
26583 2014-01-03 Marek Polacek <polacek@redhat.com>
26584
26585 PR other/59661
26586 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26587 __builtin_FILE.
26588
26589 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26590
26591 PR target/59625
26592 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26593 asm goto as jump.
26594
26595 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26596 (push splitter): Use <P:MODE_SIZE> instead of
26597 GET_MODE_SIZE (<P:MODE>mode).
26598 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26599 (mov -1, reg peephole2): Likewise.
26600 * config/i386/sse.md (*mov<mode>_internal,
26601 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26602 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26603 *<code><mode>3, *andnot<mode>3<mask_name>,
26604 <mask_codefor><code><mode>3<mask_name>): Likewise.
26605 * config/i386/subst.md (mask_mode512bit_condition,
26606 sd_mask_mode512bit_condition): Likewise.
26607
26608 2014-01-02 Xinliang David Li <davidxl@google.com>
26609
26610 PR tree-optimization/59303
26611 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26612 (dump_predicates): Better output format.
26613 (pred_equal_p): New function.
26614 (is_neq_relop_p): Ditto.
26615 (is_neq_zero_form_p): Ditto.
26616 (pred_expr_equal_p): Ditto.
26617 (pred_neg_p): Ditto.
26618 (simplify_pred): Ditto.
26619 (simplify_preds_2): Ditto.
26620 (simplify_preds_3): Ditto.
26621 (simplify_preds_4): Ditto.
26622 (simplify_preds): Ditto.
26623 (push_pred): Ditto.
26624 (push_to_worklist): Ditto.
26625 (get_pred_info_from_cmp): Ditto.
26626 (is_degenerated_phi): Ditto.
26627 (normalize_one_pred_1): Ditto.
26628 (normalize_one_pred): Ditto.
26629 (normalize_one_pred_chain): Ditto.
26630 (normalize_preds): Ditto.
26631 (normalize_cond_1): Remove function.
26632 (normalize_cond): Ditto.
26633 (is_gcond_subset_of): Ditto.
26634 (is_subset_of_any): Ditto.
26635 (is_or_set_subset_of): Ditto.
26636 (is_and_set_subset_of): Ditto.
26637 (is_norm_cond_subset_of): Ditto.
26638 (pred_chain_length_cmp): Ditto.
26639 (convert_control_dep_chain_into_preds): Type change.
26640 (find_predicates): Ditto.
26641 (find_def_preds): Ditto.
26642 (destroy_predicates_vecs): Ditto.
26643 (find_matching_predicates_in_rest_chains): Ditto.
26644 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26645 (is_pred_expr_subset): Ditto.
26646 (is_pred_chain_subset_of): Ditto.
26647 (is_included_in): Ditto.
26648 (is_superset_of): Ditto.
26649
26650 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26651
26652 Update copyright years.
26653
26654 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26655
26656 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26657 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26658 config/arc/arc.md, config/arc/arc.opt,
26659 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26660 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26661 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26662 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26663 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26664 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26665 vtable-verify.c, vtable-verify.h: Use the standard form for the
26666 copyright notice.
26667
26668 2014-01-02 Tobias Burnus <burnus@net-b.de>
26669
26670 * gcc.c (process_command): Update copyright notice dates.
26671 * gcov-dump.c: Ditto.
26672 * gcov.c: Ditto.
26673 * doc/cpp.texi: Bump @copying's copyright year.
26674 * doc/cppinternals.texi: Ditto.
26675 * doc/gcc.texi: Ditto.
26676 * doc/gccint.texi: Ditto.
26677 * doc/gcov.texi: Ditto.
26678 * doc/install.texi: Ditto.
26679 * doc/invoke.texi: Ditto.
26680
26681 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26682
26683 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26684
26685 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26686
26687 * config/i386/sse.md (*mov<mode>_internal): Guard
26688 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26689
26690 PR rtl-optimization/59647
26691 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26692 new_rtx into UNSIGNED_FLOAT rtxes.
26693 \f
26694 Copyright (C) 2014 Free Software Foundation, Inc.
26695
26696 Copying and distribution of this file, with or without modification,
26697 are permitted in any medium without royalty provided the copyright
26698 notice and this notice are preserved.