]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
dbdae273604c896d4518da500f4819e9654b56e5
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * coretypes.h (class rtx_expr_list): Add forward declaration.
4 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
5 * gengenrtl.c (special_rtx): Add EXPR_LIST.
6 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
7 invariant: GET_CODE (X) == EXPR_LIST.
8 (is_a_helper <rtx_expr_list *>::test): New.
9 (rtx_expr_list::next): New.
10 (rtx_expr_list::element): New.
11 (gen_rtx_EXPR_LIST): New.
12
13 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14
15 * varasm.c (mark_constants): Convert a GET_CODE check into a
16 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
17 Use methods of rtx_sequence to clarify the code.
18
19 2014-08-27 David Malcolm <dmalcolm@redhat.com>
20
21 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22 local "seq" via a checked cast, and use methods of rtx_sequence
23 to simplify the code.
24
25 2014-08-27 David Malcolm <dmalcolm@redhat.com>
26
27 * resource.c (mark_referenced_resources): Strengthen local
28 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
29 using methods of rtx_sequence to clarify the code.
30 (find_dead_or_set_registers): Within the switch statement, convert
31 a GET_CODE check to a dyn_cast, introducing local "seq". Within
32 the JUMP_P handling, introduce another local "seq", adding a
33 checked cast to rtx_sequence *. In both cases, use methods of
34 rtx_sequence to clarify the code.
35 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
36 via a checked cast, and use methods of rtx_sequence to simplify
37 the code.
38
39 2014-08-27 David Malcolm <dmalcolm@redhat.com>
40
41 * reorg.c (redundant_insn): In two places in the function, replace
42 a check of GET_CODE with a dyn_cast, introducing local "seq", and
43 usings methods of rtx_sequence to clarify the code.
44
45 2014-08-27 David Malcolm <dmalcolm@redhat.com>
46
47 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
48 local "seq" with a checked cast, and use methods of rtx_sequence
49 to clarify the code.
50
51 2014-08-27 David Malcolm <dmalcolm@redhat.com>
52
53 * function.c (contains): Introduce local "seq" for PATTERN (insn),
54 with a checked cast, in the region for where we know it's a
55 SEQUENCE. Use methods of rtx_sequence.
56
57 2014-08-27 David Malcolm <dmalcolm@redhat.com>
58
59 * final.c (get_attr_length_1): Replace GET_CODE check with a
60 dyn_cast, introducing local "seq" and the use of methods of
61 rtx_sequence.
62 (shorten_branches): Likewise, introducing local "body_seq".
63 Strengthen local "inner_insn" from rtx to rtx_insn *.
64 (reemit_insn_block_notes): Replace GET_CODE check with a
65 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
66 Use methods of rtx_sequence.
67 (final_scan_insn): Likewise, introducing local "seq" for when
68 "body" is known to be a SEQUENCE, using its methods.
69
70 2014-08-27 David Malcolm <dmalcolm@redhat.com>
71
72 * except.c (can_throw_external): Strengthen local "seq" from rtx
73 to rtx_sequence *. Use methods of rtx_sequence.
74 (insn_nothrow_p): Likewise.
75
76 2014-08-27 David Malcolm <dmalcolm@redhat.com>
77
78 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
79 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
80 Use methods of rtx_sequence.
81 (scan_trace): Likewise for local "pat".
82
83 2014-08-27 David Malcolm <dmalcolm@redhat.com>
84
85 * coretypes.h (class rtx_sequence): Add forward declaration.
86 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
87 invariant: GET_CODE (X) == SEQUENCE.
88 (is_a_helper <rtx_sequence *>::test): New.
89 (is_a_helper <const rtx_sequence *>::test): New.
90 (rtx_sequence::len): New.
91 (rtx_sequence::element): New.
92 (rtx_sequence::insn): New.
93
94 2014-08-27 David Malcolm <dmalcolm@redhat.com>
95
96 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
97 rtx_insn_list **.
98 (alloc_INSN_LIST): Strengthen return type from rtx to
99 rtx_insn_list *.
100 (copy_INSN_LIST): Likewise for return type and param.
101 (concat_INSN_LIST): Likewise for both params and return type.
102 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
103 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
104 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
105 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
106
107 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
108 "implicit_sets", "control_uses", "clobbers" from rtx to
109 rtx_insn_list *.
110 (struct deps_desc): Likewise for fields "pending_read_insns",
111 "pending_write_insns", "pending_jump_insns",
112 "last_pending_memory_flush", "last_function_call",
113 "last_function_call_may_noreturn", "sched_before_next_call",
114 "sched_before_next_jump".
115 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
116 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
117
118 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
119 from rtx to rtx_insn_list *.
120 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
121 rtx_insn_list *.
122
123 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
124 to rtx_insn_list **.
125 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
126 rtx_insn_list *.
127 (queue_insn): Likewise for local "link".
128 (struct haifa_saved_data): Strengthen field "insn_queue" from
129 rtx * to rtx_insn_list **.
130 (save_backtrack_point): Update allocation of save->insn_queue to
131 reflect the strengthening of elements from rtx to rtx_insn_list *.
132 (queue_to_ready): Strengthen local "link" from rtx to
133 rtx_insn_list *; use methods "next" and "insn" when traversing the
134 list.
135 (early_queue_to_ready): Likewise for locals "link", "next_link",
136 "prev_link".
137 (schedule_block): Update allocation of insn_queue to reflect the
138 strengthening of elements from rtx to rtx_insn_list *. Strengthen
139 local "link" from rtx to rtx_insn_list *, and use methods when
140 working it.
141 (add_to_speculative_block): Strengthen locals "twins" and
142 "next_node" from rtx to rtx_insn_list *, and use methods when
143 working with them. Strengthen local "twin" from rtx to
144 rtx_insn *, eliminating a checked cast.
145 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
146 from rtx to rtx_insn_list *, and use methods when working with
147 them.
148
149 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
150 from rtx to rtx_insn_list *, adding a checked cast.
151 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
152 rtx_insn_list **.
153 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
154 "newlink" from rtx to rtx_insn_list *. Strengthen local
155 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
156 from rtx to rtx_insn *.
157 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
158 from rtx to rtx_insn_list *. Use methods of the latter class.
159 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
160 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
161 (remove_free_INSN_LIST_node): Strengthen return type and local
162 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
163 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
164 rtx_insn_list *, using "insn" method.
165
166 * sched-deps.c (add_dependence_list): Strengthen param "list"
167 from rtx to rtx_insn_list *, and use methods when working with it.
168 (add_dependence_list_and_free): Strengthen param "listp" from
169 rtx * to rtx_insn_list **.
170 (remove_from_dependence_list): Strenghten param "listp" from rtx *
171 to rtx_insn_list **, and use methods when working with *listp.
172 (remove_from_both_dependence_lists): Strengthen param "listp" from
173 rtx * to rtx_insn_list **
174 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
175 to rtx_insn_list **. Eliminate local "link", in favor of two new
176 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
177 respectively.
178 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
179 by introducing local "cond_deps".
180 (remove_from_deps): Strengthen param "insn" from rtx to
181 rtx_insn *.
182
183 * sched-rgn.c (concat_insn_mem_list): Strengthen param
184 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
185 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
186 Use methods of rtx_insn_list.
187
188 * store-motion.c (struct st_expr): Strengthen fields
189 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
190 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
191 rtx_insn_list *.
192 (find_moveable_store): Split out "tmp" into multiple more-tightly
193 scoped locals. Use methods of rtx_insn_list *.
194 (compute_store_table): Strengthen local "tmp" from rtx to
195 rtx_insn *. Use methods of rtx_insn_list *.
196
197 2014-08-27 David Malcolm <dmalcolm@redhat.com>
198
199 * coretypes.h (class rtx_insn_list): Add forward declaration.
200 * rtl.h (class rtx_insn_list): New subclass of rtx_def
201 (is_a_helper <rtx_insn_list *>::test): New.
202 (rtx_insn_list::next): New.
203 (rtx_insn_list::insn): New.
204 (gen_rtx_INSN_LIST): Add prototype.
205 * emit-rtl.c (gen_rtx_INSN_LIST): New.
206 * gengenrtl.c (special_rtx): Add INSN_LIST.
207
208 2014-08-27 David Malcolm <dmalcolm@redhat.com>
209
210 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
211 "prev" from rtx to rtx_insn *.
212
213 2014-08-27 David Malcolm <dmalcolm@redhat.com>
214
215 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
216 functions. Require merely an rtx for now, not an rtx_insn *.
217 (BLOCK_FOR_INSN): Likewise.
218 (INSN_LOCATION): Likewise.
219 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
220
221 2014-08-27 David Malcolm <dmalcolm@redhat.com>
222
223 * rtl.h (PATTERN): Convert this macro into a pair of inline
224 functions, for now, requiring const_rtx and rtx.
225
226 2014-08-27 David Malcolm <dmalcolm@redhat.com>
227
228 * target.def (unwind_emit): Strengthen param "insn" from rtx to
229 rtx_insn *.
230 (final_postscan_insn): Likewise.
231 (adjust_cost): Likewise.
232 (adjust_priority): Likewise.
233 (variable_issue): Likewise.
234 (macro_fusion_pair_p): Likewise.
235 (dfa_post_cycle_insn): Likewise.
236 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
237 (first_cycle_multipass_issue): Likewise.
238 (dfa_new_cycle): Likewise.
239 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
240 (speculate_insn): Likewise for param "insn".
241 (gen_spec_check): Likewise for params "insn" and "label".
242 (get_insn_spec_ds): Likewise for param "insn".
243 (get_insn_checked_ds): Likewise.
244 (dispatch_do): Likewise.
245 (dispatch): Likewise.
246 (cannot_copy_insn_p): Likewise.
247 (invalid_within_doloop): Likewise.
248 (legitimate_combined_insn): Likewise.
249 (needed): Likewise.
250 (after): Likewise.
251
252 * doc/tm.texi: Automatically updated to reflect changes to
253 target.def.
254
255 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
256 working with insn.
257 (schedule_block): Likewise.
258 (sched_init): Likewise.
259 (sched_speculate_insn): Strengthen param "insn" from rtx to
260 rtx_insn *.
261 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
262 working with insn.
263 * hooks.c (hook_bool_rtx_true): Rename to...
264 hook_bool_rtx_insn_true): ...this, and strengthen first param from
265 rtx to rtx_insn *.
266 (hook_constcharptr_const_rtx_null): Rename to...
267 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
268 first param from const_rtx to const rtx_insn *.
269 (hook_bool_rtx_int_false): Rename to...
270 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
271 param from rtx to rtx_insn *.
272 (hook_void_rtx_int): Rename to...
273 (hook_void_rtx_insn_int): ...this, and strengthen first param from
274 rtx to rtx_insn *.
275
276 * hooks.h (hook_bool_rtx_true): Rename to...
277 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
278 rtx to rtx_insn *.
279 (hook_bool_rtx_int_false): Rename to...
280 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
281 param from rtx to rtx_insn *.
282 (hook_void_rtx_int): Rename to...
283 (hook_void_rtx_insn_int): ...this, and strengthen first param from
284 rtx to rtx_insn *.
285 (hook_constcharptr_const_rtx_null): Rename to...
286 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
287 first param from const_rtx to const rtx_insn *.
288
289 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
290 and local "prev" from rtx to rtx_insn *.
291
292 * sched-int.h (sched_speculate_insn): Strengthen first param from
293 rtx to rtx_insn *.
294
295 * sel-sched.c (create_speculation_check): Likewise for local "label".
296 * targhooks.c (default_invalid_within_doloop): Strengthen param
297 "insn" from const_rtx to const rtx_insn *.
298 * targhooks.h (default_invalid_within_doloop): Strengthen param
299 from const_rtx to const rtx_insn *.
300
301 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
302 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
303
304 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
305 "insn".
306 (arc_invalid_within_doloop): Likewise, with const.
307
308 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
309 (arm_cannot_copy_insn_p): Likewise for param "insn".
310 (arm_unwind_emit): Likewise.
311
312 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
313 "dep_insn".
314
315 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
316 (c6x_variable_issue): Likewise. Removed now-redundant checked
317 cast.
318 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
319
320 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
321 Likewise for param "insn".
322 (epiphany_mode_after): Likewise.
323 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
324 params "insn", "dep_insn".
325 (epiphany_mode_needed): Likewise for param "insn".
326 (epiphany_mode_after): Likewise.
327
328 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
329 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
330 (ix86_avx_u128_mode_needed): Likewise.
331 (ix86_i387_mode_needed): Likewise.
332 (ix86_mode_needed): Likewise.
333 (ix86_avx_u128_mode_after): Likewise.
334 (ix86_mode_after): Likewise.
335 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
336 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
337 (ix86_adjust_priority): Likewise for param "insn".
338 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
339 (do_dispatch): Likewise.
340 (has_dispatch): Likewise.
341 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
342
343 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
344 reflect renaming of default hook implementation from
345 hook_constcharptr_const_rtx_null to
346 hook_constcharptr_const_rtx_insn_null.
347 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
348 rtx to rtx_insn *.
349 (ia64_variable_issue): Likewise for param "insn".
350 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
351 (ia64_dfa_new_cycle): Likewise.
352 (ia64_get_insn_spec_ds): Likewise.
353 (ia64_get_insn_checked_ds): Likewise.
354 (ia64_speculate_insn): Likewise.
355 (ia64_gen_spec_check): Likewise for params "insn", "label".
356 (ia64_asm_unwind_emit): Likewise for param "insn".
357
358 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
359
360 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
361 "insn", "def_insn".
362 (m68k_sched_variable_issue): Likewise for param "insn".
363
364 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
365 "def_insn".
366
367 * config/microblaze/microblaze.c (microblaze_adjust_cost):
368 Likewise for params "insn", "dep".
369
370 * config/mips/mips.c (mips_adjust_cost): Likewise.
371 (mips_variable_issue): Likewise for param "insn".
372 (mips_final_postscan_insn): Likewise.
373
374 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
375 for params "insn", "dep".
376
377 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
378 "dep_insn".
379 (pa_adjust_priority): Likewise for param "insn".
380
381 * config/picochip/picochip.c (picochip_sched_adjust_cost):
382 Likewise for params "insn", "dep_insn".
383
384 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
385 param "insn".
386 (rs6000_variable_issue): Likewise.
387 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
388 (rs6000_debug_adjust_cost): Likewise.
389 (rs6000_adjust_priority): Likewise for param "insn".
390 (rs6000_use_sched_lookahead_guard): Likewise.
391 (get_next_active_insn): Likewise for return type and both params.
392 (redefine_groups): Likewise for params "prev_head_insn", "tail"
393 and locals "insn", "next_insn".
394 (pad_groups): Likewise.
395
396 * config/s390/s390.c (s390_adjust_priority): Likewise for param
397 "insn".
398 (s390_cannot_copy_insn_p): Likewise.
399 (s390_sched_variable_issue): Likewise for third param, eliminating
400 checked cast.
401 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
402 default hook implementation from hook_constcharptr_const_rtx_null
403 to hook_constcharptr_const_rtx_insn_null.
404
405 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
406 from rtx to rtx_insn *.
407 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
408 (sh_variable_issue): Likewise for param "insn".
409 (sh_dfa_new_cycle): Likewise.
410 (sh_mode_needed): Likewise.
411 (sh_mode_after): Likewise.
412
413 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
414 params "insn", "dep_insn".
415 (hypersparc_adjust_cost): Likewise.
416 (sparc_adjust_cost): Likewise.
417
418 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
419 param, eliminated checked cast.
420 (spu_sched_adjust_cost): Likewise for first and third params.
421
422 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
423 params "insn" and "dep_insn" from rtx to rtx_insn *.
424
425 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
426
427 2014-08-27 David Malcolm <dmalcolm@redhat.com>
428
429 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
430 (set_is_load_p): ...this, updating to work on a SET pattern rather
431 than an insn.
432 (is_store_insn): Rename to...
433 (set_is_store_p): ...this, updating to work on a SET pattern
434 rather than an insn.
435 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
436 top of function to where it is needed. Rewrite the bogus
437 condition that checks for "insn" and "dep" being PARALLEL to
438 instead use single_set, introducing locals "insn_set" and
439 "dep_set". Given that we only ever returned "cost" for a non-pair
440 of SETs, bail out early if we don't have a pair of SET.
441 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
442 use the new locals "insn_set" and "dep_set", and update calls to
443 is_load_insn and is_store_insn to be calls to set_is_load_p and
444 set_is_store_p.
445
446 2014-08-27 Guozhi Wei <carrot@google.com>
447
448 PR target/62262
449 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
450 amount before using it.
451
452 2014-08-27 Richard Biener <rguenther@suse.de>
453
454 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
455 get_maxval_strlen inside a more useful API.
456 (gimple_fold_builtin_with_strlen): Remove and fold into ...
457 (gimple_fold_builtin): ... caller.
458 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
459 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
460 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
461 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
462 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
463 gimple_fold_builtin_sprintf): Adjust to compute maxval
464 themselves.
465
466 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
467
468 PR other/62248
469 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
470
471 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
472 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
473 Anna Tikhonova <anna.tikhonova@intel.com>
474 Ilya Tocar <ilya.tocar@intel.com>
475 Andrey Turetskiy <andrey.turetskiy@intel.com>
476 Ilya Verbin <ilya.verbin@intel.com>
477 Kirill Yukhin <kirill.yukhin@intel.com>
478 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
479
480 * config/i386/sse.md
481 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
482 Use `concat_tg_mode' attribute to determine asm register size.
483
484 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
486 Anna Tikhonova <anna.tikhonova@intel.com>
487 Ilya Tocar <ilya.tocar@intel.com>
488 Andrey Turetskiy <andrey.turetskiy@intel.com>
489 Ilya Verbin <ilya.verbin@intel.com>
490 Kirill Yukhin <kirill.yukhin@intel.com>
491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
492
493 * config/i386/sse.md
494 (define_mode_iterator VI48_AVX512VL): New.
495 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
496 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
497 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
498 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
499 with VI1): Change mode iterator.
500 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
501 with VI_ULOADSTORE_BW_AVX512VL): New.
502 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
503 with VI_ULOADSTORE_F_AVX512VL): Ditto.
504 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
505 with VI1): Change mode iterator.
506 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
507 with VI_ULOADSTORE_BW_AVX512VL): New.
508 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
509 with VI_ULOADSTORE_F_AVX512VL): Ditto.
510 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
511 with VI1): Change mode iterator.
512 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
513 with VI_ULOADSTORE_BW_AVX512VL): New.
514 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
515 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
516 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
517 (define_insn "<avx512>_storedqu<mode>_mask" with
518 VI48_AVX512VL): New.
519 (define_insn "<avx512>_storedqu<mode>_mask" with
520 VI12_AVX512VL): Ditto.
521
522 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
524 Anna Tikhonova <anna.tikhonova@intel.com>
525 Ilya Tocar <ilya.tocar@intel.com>
526 Andrey Turetskiy <andrey.turetskiy@intel.com>
527 Ilya Verbin <ilya.verbin@intel.com>
528 Kirill Yukhin <kirill.yukhin@intel.com>
529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
530
531 * config/i386/sse.md
532 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
533 (define_mode_iterator VI48_AVX512BW): New.
534 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
535 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
536 with VI48_AVX2_48_AVX512F): New.
537 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
538 with VI2_AVX512VL): Ditto.
539
540 2014-08-27 Richard Biener <rguenther@suse.de>
541
542 PR middle-end/62239
543 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
544 (fold_builtin_3): Do not fold strcat_chk here.
545 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
546 from builtins.c.
547 (gimple_fold_builtin): Fold strcat_chk here.
548
549 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
550
551 * dwarf2out.h (dwarf2out_decl): Remove prototype.
552 * dwarf2out.c (dwarf2out_decl): Make static.
553
554 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
555
556 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
557
558 2014-08-26 David Malcolm <dmalcolm@redhat.com>
559
560 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
561 from rtx to rtx_insn *.
562 (cselib_lookup_from_insn): Likewise for final param.
563 (cselib_subst_to_values_from_insn): Likewise.
564 (cselib_add_permanent_equiv): Likewise.
565
566 * cselib.c (cselib_current_insn): Likewise for this variable.
567 (cselib_subst_to_values_from_insn): Likewise for param "insn".
568 (cselib_lookup_from_insn): Likewise.
569 (cselib_add_permanent_equiv): Likewise for param "insn" and local
570 "save_cselib_current_insn".
571 (cselib_process_insn): Replace use of NULL_RTX with NULL.
572
573 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
574 from rtx to rtx_insn *.
575
576 2014-08-26 David Malcolm <dmalcolm@redhat.com>
577
578 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
579 rtx_insn *.
580
581 2014-08-26 David Malcolm <dmalcolm@redhat.com>
582
583 * df.h (df_dump_insn_problem_function): Strengthen first param of
584 this callback from const_rtx to const rtx_insn *.
585 (struct df_insn_info): Strengthen field "insn" from rtx to
586 rtx_insn *.
587 (DF_REF_INSN): Eliminate this function, reinstating the older
588 macro definition.
589 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
590 (df_reg_defined): Likewise.
591 (df_find_use): Likewise.
592 (df_reg_used): Likewise.
593 (df_dump_insn_top): Strengthen param 1 from const_rtx to
594 const rtx_insn *.
595 (df_dump_insn_bottom): Likewise.
596 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
597 (df_insn_debug_regno): Likewise.
598 (debug_df_insn): Likewise.
599 (df_rd_simulate_one_insn): Likewise for param 2.
600 (df_word_lr_simulate_defs): Likewise for param 1.
601 (df_word_lr_simulate_uses): Likewise.
602 (df_md_simulate_one_insn): Likewise for param 2.
603 (df_simulate_find_noclobber_defs): Likewise for param 1.
604 (df_simulate_find_defs): Likewise.
605 (df_simulate_defs): Likewise.
606 (df_simulate_uses): Likewise.
607 (df_simulate_one_insn_backwards): Likewise for param 2.
608 (df_simulate_one_insn_forwards): Likewise.
609 (df_uses_create): Likewise for param 2.
610 (df_insn_create_insn_record): Likewise for param 1.
611 (df_insn_delete): Likewise.
612 (df_insn_rescan): Likewise.
613 (df_insn_rescan_debug_internal): Likewise.
614 (df_insn_change_bb): Likewise.
615 (df_notes_rescan): Likewise.
616 * rtl.h (remove_death): Likewise for param 2.
617 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
618 const rtx_insn *.
619 * sched-int.h (reemit_notes): Strengthen param from rtx to
620 rtx_insn *.
621 * valtrack.h (propagate_for_debug): Likewise for param 1.
622
623 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
624 local "tmp_rtx" from const_rtx to const rtx_insn *.
625 * combine.c (remove_death): Strengthen param "insn" from rtx to
626 rtx_insn *.
627 (move_deaths): Likewise for local "where_dead".
628 * cse.c (delete_trivially_dead_insns): Introduce local
629 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
630 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
631 rtx_insn *.
632 (df_reg_defined): Likewise.
633 (df_find_use): Likewise.
634 (df_reg_used): Likewise.
635 (df_dump_insn_problem_data): Strengthen param "insn" from
636 const_rtx to const rtx_insn *.
637 (df_dump_insn_top): Likewise.
638 (df_dump_insn_bottom): Likewise.
639 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
640 (df_insn_debug_regno): Likewise.
641 (debug_df_insn): Likewise.
642 (DF_REF_INSN): Delete.
643 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
644 from rtx to rtx_insn *.
645 (df_chain_insn_top_dump): Strengthen param "insn" from
646 const_rtx to const rtx_insn *.
647 (df_chain_insn_bottom_dump): Likewise.
648 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
649 rtx_insn *.
650 (df_word_lr_simulate_uses): Likewise.
651 (df_print_note): Likewise.
652 (df_remove_dead_and_unused_notes): Likewise.
653 (df_set_unused_notes_for_mw): Likewise.
654 (df_set_dead_notes_for_mw): Likewise.
655 (df_create_unused_note): Likewise.
656 (df_simulate_find_defs): Likewise.
657 (df_simulate_find_uses): Likewise.
658 (df_simulate_find_noclobber_defs): Likewise.
659 (df_simulate_defs): Likewise.
660 (df_simulate_uses): Likewise.
661 (df_simulate_one_insn_backwards): Likewise.
662 (df_simulate_one_insn_forwards): Likewise.
663 (df_md_simulate_one_insn): Likewise.
664 * df-scan.c (df_uses_create): Likewise.
665 (df_insn_create_insn_record): Likewise.
666 (df_insn_delete): Likewise.
667 (df_insn_rescan): Likewise.
668 (df_insn_rescan_debug_internal): Likewise.
669 (df_insn_change_bb): Likewise.
670 (df_notes_rescan): Likewise.
671 (df_refs_add_to_chains): Likewise.
672 (df_insn_refs_verify): Likewise.
673 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
674 when invoking df_insn_delete.
675 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
676 (set_unique_reg_note): Add checked cast.
677 * final.c (cleanup_subreg_operands): Likewise.
678 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
679 "insn" from rtx to rtx_insn *.
680 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
681 "last" from rtx to rtx_insn *.
682 * ira-emit.c (change_regs_in_insn): New function.
683 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
684 Invoke change_regs_in_insn rather than change_regs.
685 * ira.c (update_equiv_regs): Strengthen locals "insn",
686 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
687 for_each_rtx_in_insn rather than for_each_rtx.
688 * recog.c (confirm_change_group): Add checked casts.
689 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
690 Add checked cast.
691 (peep2_fill_buffer): Add checked cast.
692 * rtlanal.c (remove_note): Likewise.
693 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
694 locals "next" "end" from rtx to rtx_insn *.
695
696 2014-08-26 David Malcolm <dmalcolm@redhat.com>
697
698 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
699 to rtx_insn *.
700 (struct reg_use_data): Likewise for field "insn".
701 (insn_cost): Likewise for param.
702 (real_insn_for_shadow): Likewise for return type and param.
703 (increase_insn_priority): Likewise for param 1.
704 (debug_dependencies): Likewise for both params.
705
706 * haifa-sched.c (insn_delay): Likewise for param "insn".
707 (real_insn_for_shadow): Likewise for return type and param "insn".
708 (update_insn_after_change): Likewise for param "insn".
709 (recompute_todo_spec): Likewise for param "next" and locals "pro",
710 "other".
711 (insn_cost): Likewise for param "insn".
712 (increase_insn_priority): Likewise.
713 (calculate_reg_deaths): Likewise.
714 (setup_insn_reg_pressure_info): Likewise.
715 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
716 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
717 (model_recompute): Likewise.
718 (must_restore_pattern_p): Likewise for param "next".
719 (model_excess_cost): Likewise for param "insn".
720 (queue_remove): Likewise.
721 (adjust_priority): Likewise for param "prev".
722 (update_register_pressure): Likewise for param "insn".
723 (setup_insn_max_reg_pressure): Likewise for local "insn".
724 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
725 (model_add_to_schedule): Likewise.
726 (model_reset_queue_indices): Likewise for local "insn".
727 (unschedule_insns_until): Strengthen local "recompute_vec" from
728 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
729 "con" from rtx to rtx_insn *.
730 (restore_last_backtrack_point): Likewise for both locals "x". Add
731 checked casts.
732 (estimate_insn_tick): Likewise for param "insn".
733 (commit_schedule): Likewise for params "prev_head", "tail" and
734 local "x".
735 (verify_shadows): Likewise for locals "i1", "i2".
736 (dump_insn_stream): Likewise for params "head", "tail" and locals
737 "next_tail", "insn".
738 (schedule_block): Likewise for locals "insn", "x". Add a checked
739 cast.
740 (fix_inter_tick): Likewise for params "head", "tail".
741 (create_check_block_twin): Likewise for local "jump".
742 (haifa_change_pattern): Likewise for param "insn".
743 (haifa_speculate_insn): Likewise.
744 (dump_new_block_header): Likewise for params "head", "tail".
745 (fix_jump_move): Likewise for param "jump".
746 (move_block_after_check): Likewise.
747 (sched_init_insn_luid): Likewise for param "insn".
748 (sched_init_luids): Likewise for local "insn".
749 (insn_luid): Likewise for param "insn".
750 (init_h_i_d): Likewise.
751 (haifa_init_h_i_d): Likewise for local "insn".
752 (haifa_init_insn): Likewise for param "insn".
753 * sched-deps.c (add_dependence): Likewise for local "real_pro",
754 "other".
755 (create_insn_reg_use): Likewise for param "insn".
756 (setup_insn_reg_uses): Likewise. Add a checked cast.
757 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
758 "tail" from rtx to rtx_insn *.
759 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
760 "insn", "next_tail".
761
762 2014-08-26 David Malcolm <dmalcolm@redhat.com>
763
764 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
765 from rtx to rtx_insn *.
766 (model_add_to_schedule): Likewise for locals "start", "end",
767 "iter".
768
769 2014-08-26 David Malcolm <dmalcolm@redhat.com>
770
771 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
772 rtx_insn *.
773 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
774 "to" and locals "insn", "next", "copy". Remove now-redundant
775 checked cast.
776
777 2014-08-26 David Malcolm <dmalcolm@redhat.com>
778
779 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
780 rtx_insn * and param 4 from rtx * to rtx_insn **.
781 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
782 param 2 from rtx * to rtx_insn **.
783
784 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
785 rtx_insn * and final param from rtx * to rtx_insn **.
786
787 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
788 from rtx to rtx_insn *.
789 (try_head_merge_bb): Likewise for both locals named "move_upto".
790 * df-problems.c (can_move_insns_across): Likewise for params
791 "from", "to", "across_from", "across_to" and locals "insn",
792 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
793 rtx_insn **.
794 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
795 from rtx to rtx_insn *.
796 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
797 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
798 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
799 rtx_insn *.
800 (noce_try_abs): Likewise.
801 (noce_get_condition): Likewise for param "jump". Strengthen param
802 "earliest" from rtx * to rtx_insn **.
803 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
804 rtx_insn *.
805 (find_cond_trap): Likewise.
806 (dead_or_predicable): Likewise for local "earliest".
807 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
808 checked cast.
809 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
810 and local "prev". Strengthen param "earliest" from rtx * to
811 rtx_insn **.
812 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
813 Strengthen param "earliest" from rtx * to rtx_insn **.
814
815 2014-08-26 David Malcolm <dmalcolm@redhat.com>
816
817 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
818 "to" and local "insn" from rtx to rtx_insn *.
819
820 2014-08-26 David Malcolm <dmalcolm@redhat.com>
821
822 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
823 from rtx to rtx_insn *.
824 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
825 (code_motion_path_driver): Likewise for local "last_insn".
826 (simplify_changed_insns): Likewise for local "insn".
827
828 2014-08-26 David Malcolm <dmalcolm@redhat.com>
829
830 * rtl.h (push_to_sequence): Strengthen param from rtx to
831 rtx_insn *.
832 (push_to_sequence2): Likewise for both params.
833 (delete_insns_since): Likewise for param.
834 (reorder_insns_nobb): Likewise for all three params.
835 (set_new_first_and_last_insn): Likewise for both params.
836
837 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
838 rtx_insn *. Remove now-redundant cast.
839 (set_last_insn): Likewise.
840
841 * builtins.c (expand_builtin_return): Strengthen local
842 "call_fusage" from rtx to rtx_insn *.
843 * cfgrtl.c (create_basic_block_structure): Likewise for local
844 "after".
845 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
846 "first", "last" and local "insn".
847 (delete_insns_since): Likewise for param "from".
848 (reorder_insns_nobb): Likewise for params "from", "to", "after"
849 and local "x".
850 (push_to_sequence): Likewise for param "first" and local "last".
851 (push_to_sequence2): Likewise for params "first" and "last".
852 * lra.c (emit_add3_insn): Likewise for local "last".
853 (lra_emit_add): Likewise.
854 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
855 "last_insn".
856 (process_address_1): Likewise for locals "insn", last".
857 * modulo-sched.c (ps_first_note): Likewise for return type.
858 * optabs.c (expand_binop_directly): Likewise for param "last".
859
860 2014-08-26 David Malcolm <dmalcolm@redhat.com>
861
862 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
863 to rtx_insn*.
864 * emit-rtl.c (get_last_insn_anywhere): Likewise.
865
866 2014-08-26 David Malcolm <dmalcolm@redhat.com>
867
868 * function.h (struct sequence_stack): Strengthen fields "first"
869 and "last" from rtx to rtx_insn *.
870 (struct emit_status): Likewise for fields "x_first_insn" and
871 "x_last_insn".
872
873 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
874 (set_first_insn): Add checked cast.
875 (get_last_insn): Remove now-redundant checked cast.
876 (set_last_insn): Add checked cast.
877
878 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
879 "saved_first" and "saved_last" from rtx to rtx_insn *.
880
881 2014-08-26 David Malcolm <dmalcolm@redhat.com>
882
883 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
884 (unlink_insn_chain): Strengthen both params from rtx to
885 rtx_insn *.
886
887 * cfgrtl.c (cfg_layout_function_header): Likewise for this
888 variable.
889 (unlink_insn_chain): Likewise for params "first" and "last".
890 Remove now-redundant checked cast.
891 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
892 (fixup_reorder_chain): Strengthen local "insn" from rtx to
893 rtx_insn *.
894 * emit-rtl.c (link_insn_into_chain): Likewise for all three
895 params.
896 (add_insn): Likewise for param "insn" and local "prev".
897 (add_insn_after_nobb): Likewise for both params and local "next".
898 (add_insn_before_nobb): Likewise for both params and local "prev".
899 (add_insn_after): Rename param "after" to "uncast_after",
900 introducing local "after" with another checked cast.
901 (add_insn_before): Rename params "insn" and "before", giving them
902 "uncast_" prefixes, adding the old names back using checked casts.
903 (emit_note_after): Likewise for param "after".
904 (emit_note_before): Likewise for param "before".
905 (emit_label): Add a checked cast.
906
907 2014-08-26 David Malcolm <dmalcolm@redhat.com>
908
909 * cselib.h (cselib_record_sets_hook): Strengthen initial param
910 "insn" from rtx to rtx_insn *.
911
912 * cselib.c (cselib_record_sets_hook): Likewise.
913
914 * var-tracking.c (add_with_sets): Likewise, renaming back from
915 "uncast_insn" to "insn" and eliminating the checked cast from rtx
916 to rtx_insn *.
917
918 2014-08-26 David Malcolm <dmalcolm@redhat.com>
919
920 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
921 and "header_" from rtx to rtx_insn *.
922 (struct basic_block_d): Likewise for field "head_" within "x"
923 field of union basic_block_il_dependent.
924 (BB_HEAD): Drop function...
925 (SET_BB_HEAD): ...and this function in favor of...
926 (BB_HEAD): ...reinstate macro.
927 (BB_END): Drop function...
928 (SET_BB_END): ...and this function in favor of...
929 (BB_END): ...reinstate macro.
930 (BB_HEADER): Drop function...
931 (SET_BB_HEADER): ...and this function in favor of...
932 (BB_HEADER): ...reinstate macro.
933
934 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
935 (fix_crossing_unconditional_branches): Likewise.
936 * caller-save.c (save_call_clobbered_regs): Likewise.
937 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
938 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
939 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
940 (merge_blocks_move_successor_nojumps): Likewise.
941 (outgoing_edges_match): Update use of for_each_rtx to
942 for_each_rtx_in_insn.
943 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
944 (expand_gimple_cond): Likewise.
945 (expand_gimple_tailcall): Likewise.
946 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
947 SET_BB_END.
948 (construct_exit_block): Drop use of SET_BB_END.
949 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
950 rtx_insn *.
951 (delete_insn): Rename param "insn" to "uncast_insn", introducing
952 a new local "insn" with a checked cast to rtx_insn *. Drop use of
953 SET_BB_HEAD and SET_BB_END.
954 (create_basic_block_structure): Drop use of SET_BB_HEAD and
955 SET_BB_END.
956 (rtl_delete_block): Drop use of SET_BB_HEAD.
957 (rtl_split_block): Drop use of SET_BB_END.
958 (emit_nop_for_unique_locus_between): Likewise.
959 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
960 (block_label): Drop use of SET_BB_HEAD.
961 (fixup_abnormal_edges): Drop use of SET_BB_END.
962 (record_effective_endpoints): Drop use of SET_BB_HEADER.
963 (relink_block_chain): Likewise.
964 (fixup_reorder_chain): Drop use of SET_BB_END.
965 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
966 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
967 rtx_insn **. Drop use of SET_BB_HEADER.
968 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
969 SET_BB_HEAD.
970 (BB_HEAD): Delete this function.
971 (SET_BB_HEAD): Likewise.
972 (BB_END): Likewise.
973 (SET_BB_END): Likewise.
974 (BB_HEADER): Likewise.
975 (SET_BB_HEADER): Likewise.
976 * emit-rtl.c (add_insn_after): Rename param "insn" to
977 "uncast_insn", adding a new local "insn" and a checked cast to
978 rtx_insn *. Drop use of SET_BB_END.
979 (remove_insn): Strengthen locals "next" and "prev" from rtx to
980 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
981 (reorder_insns): Drop use of SET_BB_END.
982 (emit_insn_after_1): Strengthen param "first" and locals "last",
983 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
984 (emit_pattern_after_noloc): Add checked cast.
985 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
986 (restore_other_notes): Likewise.
987 (move_insn): Likewise.
988 (sched_extend_bb): Likewise.
989 (fix_jump_move): Likewise.
990 * ifcvt.c (noce_process_if_block): Likewise.
991 (dead_or_predicable): Likewise.
992 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
993 * reg-stack.c (change_stack): Drop use of SET_BB_END.
994 * sel-sched-ir.c (sel_move_insn): Likewise.
995 * sel-sched.c (move_nop_to_previous_block): Likewise.
996
997 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
998 SET_BB_END.
999 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1000
1001 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1002
1003 * basic-block.h (create_basic_block_structure): Strengthen params
1004 1 "head" and 2 "end" from rtx to rtx_insn *.
1005 * cfgrtl.c (create_basic_block_structure): Likewise.
1006 (rtl_create_basic_block): Update casts from void * to rtx to
1007 rtx_insn *, so that we can pass them as rtx_insn * to
1008 create_basic_block_structure.
1009 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1010
1011 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1012
1013 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1014 rtx_insn **.
1015 (check_for_inc_dec): Strengthen param "insn" from rtx to
1016 rtx_insn *.
1017
1018 * cselib.h (cselib_process_insn): Likewise.
1019
1020 * cselib.c (cselib_record_sets): Likewise.
1021 (cselib_process_insn): Likewise.
1022
1023 * dse.c (struct insn_info): Likewise for field "insn".
1024 (check_for_inc_dec_1): Likewise for local "insn".
1025 (check_for_inc_dec): Likewise for param "insn".
1026 (scan_insn): Likewise.
1027 (dse_step1): Likewise for local "insn".
1028
1029 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1030 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1031
1032 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1033
1034 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1035 from rtx to rtx_insn *.
1036 (DEP_PRO): Delete this function and...
1037 (SET_DEP_PRO): ...this function in favor of...
1038 (DEP_PRO): ...reinstate this macro.
1039 (DEP_CON): Delete this function and...
1040 (SET_DEP_CON): ...this function in favor of...
1041 (DEP_CON): ...reinstate this old macro.
1042 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1043 (init_dep): Likewise.
1044 (set_priorities): Likewise for both params.
1045 (sd_copy_back_deps): Likewise for params 1 and 2.
1046
1047 * haifa-sched.c (priority): Likewise for param "insn" and local
1048 "next".
1049 (set_priorities): Likewise for params "head" and "tail" and local
1050 "insn".
1051 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1052 local "consumer".
1053 (add_to_speculative_block): Add a checked cast.
1054 (create_check_block_twin): Drop use of SET_DEP_CON.
1055 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1056 rtx to rtx_insn *.
1057
1058 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1059 Drop use of SET_DEP_PRO
1060 (init_dep): Strengthen params "pro" and "con" from rtx to
1061 rtx_insn *.
1062 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1063 use of SET_DEP_CON.
1064 (DEP_PRO): Delete.
1065 (DEP_CON): Delete.
1066 (SET_DEP_PRO): Delete.
1067 (SET_DEP_CON): Delete.
1068
1069 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1070
1071 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1072 from rtx to rtx_insn *.
1073 (VINSN_INSN_RTX): Eliminate rvalue function and...
1074 (SET_VINSN_INSN): ...lvalue function in favor of...
1075 (VINSN_INSN_RTX): reinstate this old macro.
1076
1077 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1078 in favor of VINSN_INSN_RTX.
1079 (VINSN_INSN_RTX): Delete this function.
1080 (SET_VINSN_INSN_RTX): Likewise.
1081
1082 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1083
1084 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1085 (BND_TO): Delete this function and...
1086 (SET_BND_TO): ...this functions in favor of...
1087 (BND_TO): ...reinstating this macro.
1088 (struct _fence): Strengthen field "executing_insns" from
1089 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1090 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1091 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1092 and param "insn" from rtx to insn_t.
1093 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1094 rtx_insn *.
1095
1096 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1097 vec<rtx_insn *> .
1098 (rtx_vec_t): Likewise.
1099 (struct sched_deps_info_def): Strengthen param of "start_insn"
1100 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1101 "note_mem_dep" callback and first param of "note_dep" callback.
1102
1103 * haifa-sched.c (add_to_speculative_block): Strengthen param
1104 "insn" from rtx to rtx_insn *.
1105 (clear_priorities): Likewise.
1106 (calc_priorities): Likewise for local "insn".
1107
1108 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1109 Remove redundant checked cast.
1110 (haifa_note_mem_dep): Likewise for param "pending_insn".
1111 (haifa_note_dep): Likewise for param "elem".
1112 (note_mem_dep): Likewise for param "e".
1113 (sched_analyze_1): Add checked casts.
1114 (sched_analyze_2): Likewise.
1115
1116 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1117 from rtx to rtx_insn *.
1118 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1119 from vec<rtx> * to vec<rtx_insn *> *.
1120
1121 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1122 scaffolding.
1123 (flist_add): Strengthen param "executing_insns" from
1124 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1125 (advance_deps_context): Remove now-redundant checked cast.
1126 (init_fences): Replace uses of NULL_RTX with NULL.
1127 (merge_fences): Strengthen params "last_scheduled_insn" and
1128 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1129 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1130 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1131 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1132 an instruction, rather than doing double-duty as a pattern.
1133 (return_nop_to_pool): Update for change of insn_t.
1134 (deps_init_id): Remove now-redundant checked cast.
1135 (struct sched_scan_info_def): Strengthen param of "init_insn"
1136 callback from rtx to insn_t.
1137 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1138 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1139 NULL.
1140 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1141 "end" from rtx to rtx_insn *.
1142 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1143 (rtx insn_rtx, bool force_unique_p)
1144 (BND_TO): Delete function.
1145 (SET_BND_TO): Delete function.
1146
1147 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1148 rtx to rtx_insn *.
1149 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1150 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1151 rtx to rtx_insn *.
1152 (undo_transformations): Likewise for param "insn".
1153 (update_liveness_on_insn): Likewise.
1154 (compute_live_below_insn): Likewise for param "insn" and local
1155 "succ".
1156 (update_data_sets): Likewise for param "insn".
1157 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1158 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1159 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1160 rtx_insn *.
1161 (move_cond_jump): Likewise for param "insn".
1162 (move_cond_jump): Drop use of SET_BND_TO.
1163 (compute_av_set_on_boundaries): Likewise.
1164 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1165 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1166 from rtx to rtx_insn *.
1167 (maybe_emit_renaming_copy): Likewise for param "insn".
1168 (maybe_emit_speculative_check): Likewise.
1169 (handle_emitting_transformations): Likewise.
1170 (remove_insn_from_stream): Likewise.
1171 (code_motion_process_successors): Strengthen local "succ" from rtx
1172 to insn_t.
1173
1174 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1175
1176 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1177 ilist_t, not _xlist_t;
1178 (ILIST_INSN): Define in terms of new union field "insn".
1179 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1180 _XLIST_NEXT.
1181 (struct _list_node): Add new field "insn" to the union, of type
1182 insn_t.
1183 (ilist_add): Replace macro with an inline function, requiring an
1184 insn_t.
1185 (ilist_remove): Define this macro directly in terms of
1186 _list_remove, rather than indirectly via _xlist_remove.
1187 (ilist_clear): Likewise, in terms of _list_clear rather than
1188 _xlist_clear.
1189 (ilist_is_in_p): Replace macro with an inline function, requiring
1190 an insn_t.
1191 (_list_iter_cond_insn): New function.
1192 (ilist_iter_remove): Define this macro directly in terms of
1193 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1194 (ilist_iterator): Define directly in terms of _list_iterator
1195 rather than indirectly through _xlist_iterator.
1196 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1197 than in terms of _FOR_EACH_X.
1198 (FOR_EACH_INSN_1): Likewise.
1199
1200 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1201
1202 PR target/60606
1203 PR target/61330
1204 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1205 DECL_HARD_REGISTER and return for invalid register specifications.
1206 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1207 DECL_HARD_REGISTER, call expand_one_error_var.
1208 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1209 CC_REGNUM with non-MODE_CC modes.
1210 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1211
1212 2014-08-26 Marek Polacek <polacek@redhat.com>
1213
1214 PR c/61271
1215 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1216
1217 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1218
1219 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1220 qi cost; add di cost.
1221 (cortexa57_addrcost_table): Likewise.
1222
1223 2014-08-26 Marek Polacek <polacek@redhat.com>
1224
1225 PR c/61271
1226 * expr.c (is_aligning_offset): Remove logical not.
1227
1228 2014-08-26 Marek Polacek <polacek@redhat.com>
1229
1230 PR c/61271
1231 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1232 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1233
1234 2014-08-26 Richard Biener <rguenther@suse.de>
1235
1236 PR tree-optimization/62175
1237 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1238 expand possibly trapping operations.
1239
1240 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1241
1242 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1243 "insn" from rtx to rtx_insn *.
1244 (permute_load): Likewise for param "insn".
1245 (permute_store): Likewise.
1246 (handle_special_swappables): Likewise for local "insn".
1247 (replace_swap_with_copy): Likewise for locals "insn" and
1248 "new_insn".
1249 (rs6000_analyze_swaps): Likewise for local "insn".
1250
1251 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1252
1253 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1254 to rtx_insn *.
1255
1256 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1257
1258 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1259 "note_list" from rtx to rtx_insn *.
1260 (BB_NOTE_LIST): Replace this function and...
1261 (SET_BB_NOTE_LIST): ...this function with...
1262 (BB_NOTE_LIST): ...the former macro implementation.
1263
1264 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1265 local "from_start" from rtx to rtx_insn *. Strengthen param
1266 "to_endp" from rtx * to rtx_insn **.
1267
1268 * haifa-sched.c (concat_note_lists): Likewise.
1269 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1270 BB_NOTE_LIST.
1271 (sel_restore_notes): Likewise.
1272 (move_bb_info): Likewise.
1273 (BB_NOTE_LIST): Delete this function.
1274 (SET_BB_NOTE_LIST): Delete this function.
1275 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1276 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1277
1278 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1279
1280 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1281 from rtx * to rtx_insn **.
1282 (reorder2): Likewise.
1283 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1284 from rtx to rtx_insn *.
1285
1286 * doc/tm.texi: Update mechanically for above change to target.def.
1287
1288 * sched-int.h (note_list): Strengthen this variable from rtx to
1289 rtx_insn *.
1290 (remove_notes): Likewise for both params.
1291 (restore_other_notes): Likewise for return type and first param.
1292 (struct ready_list): Strengthen field "vec" from rtx * to
1293 rtx_insn **.
1294 (struct dep_replacement): Strenghten field "insn" from rtx to
1295 rtx_insn *.
1296 (struct deps_desc): Likewise for fields "last_debug_insn",
1297 "last_args_size".
1298 (struct haifa_sched_info): Likewise for callback field
1299 "can_schedule_ready_p"'s param, for first param of "new_ready"
1300 callback field, for both params of "rank" callback field, for
1301 first field of "print_insn" callback field (with a const), for
1302 both params of "contributes_to_priority" callback, for param
1303 of "insn_finishes_block_p" callback, for fields "prev_head",
1304 "next_tail", "head", "tail", for first param of "add_remove_insn"
1305 callback, for first param of "begin_schedule_ready" callback, for
1306 both params of "begin_move_insn" callback, and for second param
1307 of "advance_target_bb" callback.
1308 (add_dependence): Likewise for params 1 and 2.
1309 (sched_analyze): Likewise for params 2 and 3.
1310 (deps_analyze_insn): Likewise for param 2.
1311 (ready_element): Likewise for return type.
1312 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1313 (try_ready): Strenghten param from rtx to rtx_insn *.
1314 (sched_emit_insn): Likewise for return type.
1315 (record_delay_slot_pair): Likewise for params 1 and 2.
1316 (add_delay_dependencies): Likewise for param.
1317 (contributes_to_priority): Likewise for both params.
1318 (find_modifiable_mems): Likewise.
1319
1320 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1321 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1322 "first_older_only_insn" from rtx to rtx_insn *.
1323 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1324 rtx_insn **.
1325
1326 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1327 "last_scheduled_iter0" from rtx to rtx_insn *.
1328 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1329 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1330 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1331 "insn" from rtx to rtx_insn *.
1332 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1333 rtx_insn **.
1334 (c6x_sched_reorder2): Strengthen param "ready" and locals
1335 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1336 "insn" from rtx to rtx_insn *.
1337 (c6x_variable_issue): Add a checked cast when assigning from insn
1338 to ss.last_scheduled_iter0.
1339 (split_delayed_branch): Strengthen param "insn" and local "i1"
1340 from rtx to rtx_insn *.
1341 (split_delayed_nonbranch): Likewise.
1342 (undo_split_delayed_nonbranch): Likewise for local "insn".
1343 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1344 "entry_after", "end_packet", "head_insn", "tail_insn",
1345 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1346 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1347 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1348 but add a checked cast on loop->start_label. Consolidate calls to
1349 avoid assigning result of gen_spkernel to "insn", now an
1350 rtx_insn *.
1351
1352 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1353 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1354 rtx to rtx_insn *.
1355 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1356 rtx_insn **. Strengthen locals "top", "next" from rtx to
1357 rtx_insn *.
1358 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1359 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1360 (add_parameter_dependencies): Strengthen params "call", "head" and
1361 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1362 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1363 (add_dependee_for_func_arg): Likewise for param "arg" and local
1364 "insn".
1365 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1366 "tail" and locals "insn", "first_arg".
1367
1368 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1369 for params "head", "tail" and locals "insn", "next", "next_tail".
1370 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1371 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1372 "insn", "lowest", "highest" from rtx to rtx_insn *.
1373 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1374 rtx_insn **.
1375 (ia64_sched_reorder2): Likewise.
1376
1377 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1378 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1379 from rtx * to rtx_insn **.
1380 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1381 rtx_insn **.
1382 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1383 rtx_insn *.
1384 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1385 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1386 to rtx_insn *.
1387
1388 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1389 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1390 to rtx_insn *.
1391 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1392 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1393 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1394 rtx_insn **.
1395 (vr4130_reorder): Likewise.
1396 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1397 rtx to rtx_insn *.
1398 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1399 rtx_insn **.
1400 (mips_sched_reorder): Likewise.
1401 (mips_sched_reorder2): Likewise.
1402
1403 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1404
1405 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1406 Strengthen local "tmp" from rtx to rtx_insn *.
1407 (rs6000_sched_reorder2): Likewise.
1408
1409 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1410 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1411 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1412 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1413
1414 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1415 "tmp2" from rtx to rtx_insn *.
1416 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1417 Strengthen local "insn" from rtx to rtx_insn *.
1418 (ready_reorder): Strengthen param "ready" from rtx * to
1419 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1420 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1421 (sh_reorder2): Likewise.
1422
1423 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1424 local "insn" from rtx to rtx_insn *.
1425
1426 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1427 rtx_insn *.
1428 (scheduled_insns): Strengthen this variable from vec<rtx> to
1429 vec<rtx_insn *>.
1430 (set_modulo_params): Likewise for locals "i1", "i2".
1431 (record_delay_slot_pair): Likewise for params "i1", "i2".
1432 (add_delay_dependencies): Likewise for param "insn".
1433 (cond_clobbered_p): Likewise.
1434 (recompute_todo_spec): Likewise for local "prev".
1435 (last_scheduled_insn): Likewise for this variable.
1436 (nonscheduled_insns_begin): Likewise.
1437 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1438 rtx_insn **.
1439 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1440 rtx_insn *.
1441 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1442 Strengthen local "insn" from rtx to rtx_insn *.
1443 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1444 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1445 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1446 (ready_remove_first): Likewise for return type and local "t".
1447 (ready_element): Likewise for return type.
1448 (ready_remove): Likewise for return type and local "t".
1449 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1450 (check_clobbered_conditions): Strengthen local "x" from rtx to
1451 rtx_insn *, adding a checked cast.
1452 (schedule_insn): Likewise for param "insn".
1453 (remove_notes): Likewise for params "head", "tail" and locals
1454 "next_tail", "insn", "next".
1455 (struct haifa_saved_data): Likewise for fields
1456 "last_scheduled_insn", "nonscheduled_insns_begin".
1457 (save_backtrack_point): Update for change to field "vec" of
1458 struct ready_list.
1459 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1460 rtx_insn **.
1461 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1462 from rtx to rtx_insn *
1463 (resolve_dependencies): Strengthen param "insn" from rtx to
1464 rtx_insn *
1465 (restore_other_notes): Likewise for return type, for param "head"
1466 and local "note_head".
1467 (undo_all_replacements): Likewise for local "insn".
1468 (first_nonscheduled_insn): Likewise for return type and local "insn".
1469 (queue_to_ready): Likewise for local "insn", adding checked casts.
1470 (early_queue_to_ready): Likewise for local "insn".
1471 (debug_ready_list_1): Strengthen local "p" from rtx * to
1472 rtx_insn **.
1473 (move_insn): Strengthen param "insn" and local "note" from rtx to
1474 rtx_insn *
1475 (insn_finishes_cycle_p): Likewise for param "insn".
1476 (max_issue): Likewise for local "insn".
1477 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1478 to rtx_insn **.
1479 (commit_schedule): Strengthen param "prev_head" and local "insn"
1480 from rtx to rtx_insn *
1481 (prune_ready_list): Likewise for local "insn".
1482 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1483 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1484 (set_priorities): Likewise for local "prev_head".
1485 (try_ready): Likewise for param "next".
1486 (fix_tick_ready): Likewise.
1487 (change_queue_index): Likewise.
1488 (sched_extend_ready_list): Update for change to field "vec" of
1489 struct ready_list.
1490 (generate_recovery_code): Strengthen param "insn" from rtx to
1491 rtx_insn *.
1492 (begin_speculative_block): Likewise.
1493 (create_check_block_twin): Likewise for param "insn" and locals
1494 "label", "check", "twin". Introduce local "check_pat" to avoid
1495 "check" being used as a plain rtx before being used as an insn.
1496 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1497 extracting elements from ready_list.
1498 (sched_remove_insn): Strengthen param "insn" from rtx to
1499 rtx_insn *.
1500 (sched_emit_insn): Likewise for return type.
1501 (ready_remove_first_dispatch): Likewise for return type and local
1502 "insn".
1503
1504 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1505
1506 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1507 const rtx_insn *.
1508
1509 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1510 from rtx to rtx_insn *.
1511 (add_dependence_list): Likewise for param "insn". Add a checked
1512 cast.
1513 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1514 to rtx_insn *. Strengthen param "list_p" from rtx * to
1515 rtx_insn **.
1516 (chain_to_prev_insn): Strengthen param "insn" and locals
1517 "prec_nonnote", "i" from rtx to rtx_insn *.
1518 (flush_pending_lists): Likewise for param "insn".
1519 (cur_insn): Likewise for this variable.
1520 (haifa_start_insn): Add a checked cast.
1521 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1522 (sched_analyze_reg): Likewise for param "insn".
1523 (sched_analyze_1): Likewise.
1524 (sched_analyze_2): Likewise. Add checked casts.
1525 (sched_analyze_insn): Likewise. Also for local "prev".
1526 (deps_analyze_insn): Likewise for param "insn".
1527 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1528 (add_dependence_1): Likewise for params "insn", "elem".
1529 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1530 (parse_add_or_inc): Likewise for param "insn".
1531 (find_inc): Likewise for local "inc_cand".
1532 (find_modifiable_mems): Likewise for params "head", "tail" and
1533 locals "insn", "next_tail".
1534
1535 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1536 (begin_schedule_ready): Likewise for param "insn".
1537 (begin_move_insn): Likewise for params "insn" and "last".
1538 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1539 const rtx_insn *.
1540 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1541 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1542 (ebb_add_remove_insn): Likewise for param "insn".
1543 (advance_target_bb): Likewise.
1544
1545 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1546 "insn".
1547 (check_live): Likewise for param "insn".
1548 (init_ready_list): Likewise for local "insn".
1549 (can_schedule_ready_p): Likewise for param "insn".
1550 (begin_schedule_ready): Likewise.
1551 (new_ready): Likewise for param "next".
1552 (rgn_print_insn): Likewise for param "insn".
1553 (rgn_rank): Likewise for params "insn1", "insn2".
1554 (contributes_to_priority): Likewise for params "next", "insn".
1555 (rgn_insn_finishes_block_p): Likewise for param "insn".
1556 (add_branch_dependences): Likewise for params "head", "tail" and
1557 locals "insn", "last".
1558 (rgn_add_remove_insn): Likewise for param "insn".
1559 (advance_target_bb): Likewise.
1560
1561 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1562 const_rtx to const rtx_insn *.
1563
1564 * sel-sched-dump.h (sel_print_insn): Likewise.
1565
1566 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1567 (deps_init_id): Likewise.
1568
1569 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1570 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1571 rtx_insn **.
1572
1573 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1574
1575 * output.h (final_start_function): Strengthen param 1 from rtx to
1576 rtx_insn *.
1577
1578 * final.c (final_start_function): Likewise, renaming back from
1579 "uncast_first" to "first", and dropping the checked cast from rtx
1580 to rtx_insn *.
1581
1582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1583
1584 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1585 * final.c (final): Likewise. Rename param back from
1586 "uncast_first" to "first" and eliminate the checked cast from rtx
1587 to rtx_insn *.
1588
1589 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1590
1591 * output.h (shorten_branches): Strengthen param from rtx to
1592 rtx_insn *.
1593
1594 * final.c (shorten_branches): Likewise, renaming param back from
1595 "uncast_first" to "first", and dropping the checked cast from rtx
1596 to rtx_insn *.
1597
1598 * genattr.c (gen_attr): Likewise when writing out the prototype of
1599 shorten_branches.
1600
1601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1602
1603 * sched-int.h (struct haifa_sched_info): Strengthen fields
1604 "prev_head" and "next_tail" from rtx to rtx_insn *.
1605
1606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1607
1608 * rtl.h (rtx_jump_table_data::get_labels): New method.
1609 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1610 with use of the new rtx_jump_table_data::get_labels method.
1611 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1612 to rtx_jump_table_data *. Simplify by using get_labels method.
1613 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1614 a dyn_cast, introducing local "table", using it to replace
1615 label-lookup logic with a get_labels method call.
1616 (patch_jump_insn): Simplify using get_labels method.
1617 * dwarf2cfi.c (create_trace_edges): Likewise.
1618 * rtlanal.c (label_is_jump_target_p): Likewise.
1619
1620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1621
1622 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1623 to rtx_insn *.
1624
1625 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1626 (unshare_all_rtl_again): Likewise, also for local "p".
1627
1628 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1629
1630 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1631 to rtx_insn *.
1632 * cfgrtl.c (delete_insn_and_edges): Likewise.
1633
1634 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1635
1636 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1637 from rtx to rtx_insn *.
1638
1639 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1640
1641 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1642
1643 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1644 locals "returnjump", "epilogue_end", "insn", "next".
1645
1646 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1647 "returnjump" from rtx * to rtx_insn **.
1648 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1649
1650 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1651
1652 * basic-block.h (struct edge_def). Strengthen "r" within
1653 union edge_def_insns from rtx to rtx_insn *.
1654
1655 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1656 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1657 rtx_insn *.
1658 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1659 from rtx to rtx_insn *.
1660 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1661 rtx_insn *.
1662 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1663 (reg_used_on_edge): Likewise.
1664 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1665 (gt_pch_nx): New overload for rtx_insn *&.
1666 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1667 from rtx to rtx_insn *.
1668
1669 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1670
1671 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1672 from rtx to rtx_insn *.
1673 (BB_FOOTER): Replace function with access macro.
1674 (SET_BB_FOOTER): Delete.
1675
1676 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1677 with BB_FOOTER.
1678 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1679 (emit_barrier_after_bb): Likewise.
1680 (record_effective_endpoints): Likewise.
1681 (relink_block_chain): Likewise.
1682 (fixup_fallthru_exit_predecessor): Likewise.
1683 (cfg_layout_duplicate_bb): Likewise.
1684 (cfg_layout_split_block): Likewise.
1685 (cfg_layout_delete_block): Likewise.
1686 (cfg_layout_merge_blocks): Likewise.
1687 (BB_FOOTER): Delete function.
1688 (SET_BB_FOOTER): Delete function.
1689 * combine.c (update_cfg_for_uncondjump): Replace uses of
1690 SET_BB_FOOTER with BB_FOOTER.
1691
1692 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1693
1694 * except.h (struct eh_landing_pad_d): Strengthen field
1695 "landing_pad" from rtx to rtx_code_label *.
1696
1697 * except.c (sjlj_emit_dispatch_table): Likewise for param
1698 "dispatch_label"
1699 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1700
1701 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1702
1703 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1704 first param from rtx to rtx_insn *.
1705 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1706 field "set_frame_ptr_insn".
1707 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1708 "csend" from rtx to rtx_code_label *.
1709 (xtensa_expand_atomic): Likewise for local "csloop".
1710 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1711 rtx_insn *.
1712 (xtensa_call_tls_desc): Likewise for return type and locals
1713 "call_insn", "insns".
1714 (xtensa_legitimize_tls_address): Likewise for local "insns".
1715 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1716
1717 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1718
1719 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1720 first param from rtx to rtx_insn *.
1721 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1722 "insn".
1723
1724 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1725
1726 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1727 Strengthen param 1 from rtx to rtx_insn *.
1728 (tilepro_output_cbranch): Likewise.
1729 (tilepro_adjust_insn_length): Likewise.
1730 (tilepro_final_prescan_insn): Likewise for sole param.
1731
1732 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1733 Likewise for local "last".
1734 (cbranch_predicted_p): Likewise for param "insn".
1735 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1736 (tilepro_output_cbranch_with_opcode): Likewise.
1737 (tilepro_output_cbranch): Likewise.
1738 (frame_emit_load): Likewise for return type and locals "seq",
1739 "insn".
1740 (emit_sp_adjust): Likewise for return type and local "insn".
1741 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1742 "insn".
1743 (tilepro_adjust_insn_length): Likewise for param "insn".
1744 (next_insn_to_bundle): Likewise for return type and params
1745 "r", "end".
1746 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1747 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1748 local "new_insns".
1749 (match_addli_pcrel): Likewise for param "insn".
1750 (replace_addli_pcrel): Likewise.
1751 (match_auli_pcrel): Likewise.
1752 (replace_auli_pcrel): Likewise.
1753 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1754 "next_insn".
1755 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1756 "queue", "next_queue", "prev".
1757 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1758 (tilepro_final_prescan_insn): Likewise for param "insn".
1759
1760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1761
1762 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1763 Strengthen param 1 from rtx to rtx_insn *.
1764 (tilegx_output_cbranch): Likewise.
1765 (tilegx_adjust_insn_length): Likewise.
1766 (tilegx_final_prescan_insn): Likewise for sole param.
1767
1768 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1769 or local "last".
1770 (cbranch_predicted_p): Likewise for param "insn".
1771 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1772 (tilegx_output_cbranch_with_opcode): Likewise.
1773 (tilegx_output_cbranch): Likewise.
1774 (frame_emit_load): Likewise for return type.
1775 (set_frame_related_p): Likewise for locals "seq", "insn".
1776 (emit_sp_adjust): Likewise for return type, and for local "insn".
1777 Introduce local "pat" for use in place of "insn" where the latter
1778 isn't an instruction.
1779 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1780 from rtx to rtx_insn *.
1781 (tilegx_adjust_insn_length): Likewise for param "insn".
1782 (next_insn_to_bundle): Likewise for return type and params "r" and
1783 "end".
1784 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1785 "end".
1786 (replace_insns): Likewise for params "old_insn", "new_insns".
1787 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1788 "new_insns".
1789 (replace_mov_pcrel_step2): Likewise.
1790 (replace_mov_pcrel_step3): Likewise.
1791 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1792 "next_insn".
1793 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1794 "queue", "next_queue", "prev".
1795 (tilegx_output_mi_thunk): Likewise for local "insn".
1796 (tilegx_final_prescan_insn): Likewise for param "insn".
1797
1798 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1799
1800 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1801 rtx to rtx_insn *.
1802 (frame_emit_load): Likewise.
1803 (frame_emit_add_imm): Likewise, also for local "insn".
1804 (spu_expand_prologue): Likewise for local "insn".
1805 (struct spu_bb_info): Likewise for field "prop_jump".
1806 (emit_nop_for_insn): Likewise for param "insn" and local
1807 "new_insn".
1808 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1809 "hbr_insn".
1810 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1811 locals "hint", "insn".
1812 (get_branch_target): Likewise for param "branch".
1813 (insn_clobbers_hbr): Likewise for param "insn".
1814 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1815 locals "insn", "before_4", "before_16".
1816 (insert_hbrp): Likewise for local "insn".
1817 (spu_machine_dependent_reorg): Likewise for locals "branch",
1818 "insn", "next", "bbend".
1819 (uses_ls_unit): Likewise for param "insn".
1820 (get_pipe): Likewise.
1821 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1822 introducing a checked cast.
1823 (spu_sched_adjust_cost): Likewise for params "insn" and
1824 "dep_insn".
1825 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1826 (spu_sms_res_mii): Likewise.
1827
1828 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1829
1830 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1831 from rtx to rtx_insn *.
1832 (output_cbranch): Likewise for param 6.
1833 (output_return): Likewise for param 1.
1834 (output_sibcall): Likewise.
1835 (output_v8plus_shift): Likewise.
1836 (output_v8plus_mult): Likewise.
1837 (output_v9branch): Likewise for param 7.
1838 (output_cbcond): Likewise for param 3.
1839
1840 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1841 for local "insn".
1842 (sparc_legitimize_pic_address): Likewise.
1843 (sparc_emit_call_insn): Likewise.
1844 (emit_save_or_restore_regs): Likewise.
1845 (emit_window_save): Likewise for return type and local "insn".
1846 (sparc_expand_prologue): Likewise for local "insn".
1847 (sparc_flat_expand_prologue): Likewise.
1848 (output_return): Likewise for param "insn".
1849 (output_sibcall): Likewise for param "insn" and local "delay".
1850 (output_ubranch): Likewise for param "insn".
1851 (output_cbranch): Likewise.
1852 (output_cbcond): Likewise.
1853 (output_v9branch): Likewise.
1854 (output_v8plus_shift): Likewise.
1855 (sparc_output_mi_thunk): Likewise for local "insn".
1856 (get_some_local_dynamic_name): Likewise.
1857 (output_v8plus_mult): Likewise for param "insn".
1858
1859 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1860
1861 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1862 from rtx to rtx_insn *.
1863 (output_branchy_insn): Likewise for param 3.
1864 (output_far_jump): Likewise for param 1.
1865 (final_prescan_insn): Likewise.
1866 (sh_insn_length_adjustment): Likewise for sole param.
1867
1868 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1869 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1870 rtx_code_label *.
1871 (sh_emit_compare_and_set): Likewise for local "lab".
1872 (output_far_jump): Strengthen param "insn" and local "prev" from
1873 rtx to rtx_insn *.
1874 (output_branchy_insn): Likewise for param "insn" and local
1875 "next_insn".
1876 (output_ieee_ccmpeq): Likewise for param "insn".
1877 (struct label_ref_list_d): Strengthen field "label" from rtx to
1878 rtx_code_label *.
1879 (pool_node): Likewise.
1880 (pool_window_label): Likewise for this global.
1881 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1882 (dump_table): Strengthen params "start", "barrier" and local
1883 "scan" from rtx to rtx_insn *.
1884 (broken_move): Likewise for param "insn".
1885 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1886 Strengthen param "first_mova" from rtx * to rtx_insn **.
1887 (mova_p): Likewise for param "insn".
1888 (fixup_mova): Likewise for param "mova".
1889 (find_barrier): Likewise for return type, params "mova" and
1890 "from", and locals "barrier_before_mova", "found_barrier",
1891 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1892 "label" from rtx to rtx_code_label *.
1893 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1894 rtx to rtx_insn *.
1895 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1896 (split_branches): Likewise for param "first" and local "insn".
1897 (final_prescan_insn): Likewise for param "insn".
1898 (sequence_insn_p): Likewise for locals "prev", "next".
1899 (sh_insn_length_adjustment): Likewise for param "insn".
1900 (sh_can_redirect_branch): Likewise for local "insn".
1901 (find_r0_life_regions): Likewise for locals "end", "insn".
1902 (sh_output_mi_thunk): Likewise for local "insns".
1903
1904 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1905
1906 * config/score/score.c (score_output_mi_thunk): Strengthen local
1907 "insn" from rtx to rtx_insn *.
1908 (score_prologue): Likewise.
1909
1910 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1911
1912 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1913 1 from rtx to rtx_insn *.
1914 (s390_emit_jump): Likewise for return type.
1915 (s390_emit_call): Likewise.
1916 (s390_load_got): Likewise.
1917
1918 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1919 variable.
1920 (s390_match_ccmode): Likewise for param "insn".
1921 (s390_emit_jump): Likewise for return type.
1922 (s390_split_branches): Likewise for local "label".
1923 (struct constant): Strengthen field "label" from rtx to
1924 rtx_code_label *.
1925 (struct constant_pool): Likewise for field "label". Strengthen
1926 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1927 rtx_insn *.
1928 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1929 insns.
1930 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1931 (s390_end_pool): Likewise.
1932 (s390_dump_pool): Likewise for local "insn".
1933 (s390_mainpool_start): Likewise.
1934 (s390_chunkify_start): Likewise.
1935 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1936 with insns. Strengthen locals "label", "jump", "barrier", "next",
1937 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1938 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1939 rtx_insn *.
1940 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1941 "jump", "label", "next_insn".
1942 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1943 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1944 "tbegin_insn".
1945 (s390_load_got): Likewise for return type and local "insns".
1946 (s390_save_gprs_to_fprs): Likewise for local "insn".
1947 (s390_restore_gprs_from_fprs): Likewise.
1948 (pass_s390_early_mach::execute): Likewise.
1949 (s390_emit_prologue): Likewise for local "insns".
1950 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1951 rtx_code_label *.
1952 (s390_emit_call): Strengthen return type and local "insn" from
1953 rtx to rtx_insn *.
1954 (s390_emit_tpf_eh_return): Likewise for local "insn".
1955 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1956 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1957 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1958 local "cur_insn".
1959 (s390_non_addr_reg_read_p): Likewise for param "insn".
1960 (find_cond_jump): Likewise for return type and param "insn".
1961 (s390_swap_cmp): Likewise for param "insn".
1962 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1963 "prev_insn", "next_insn".
1964 (s390_reorg): Likewise for locals "insn", "target".
1965 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1966 (s390_sched_variable_issue): For now, rename param "insn" to
1967 "uncast_insn", introducing a checked cast.
1968 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1969 insn.
1970 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1971 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1972
1973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1974
1975 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1976 param from rtx to rtx_insn *.
1977 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1978
1979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1980
1981 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1982 4 from rtx to rtx_insn *.
1983 (rs6000_final_prescan_insn): Likewise for first param.
1984 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1985 local "insn".
1986 (rs6000_get_some_local_dynamic_name): Likewise.
1987 (output_cbranch): Likewise for param "insn".
1988 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1989 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1990 (rs6000_emit_allocate_stack): Likewise for local "insn".
1991 (load_cr_save): Likewise.
1992 (restore_saved_cr): Likewise.
1993 (restore_saved_lr): Likewise.
1994 (emit_cfa_restores): Likewise.
1995 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1996 "deleted_debug_label".
1997 (rs6000_output_mi_thunk): Likewise for local "insn".
1998 (rs6000_final_prescan_insn): Likewise for param "insn".
1999
2000 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2001
2002 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2003 Strengthen param "insn" from rtx to rtx_insn *.
2004 * config/picochip/picochip.c (picochip_current_prescan_insn):
2005 Likewise for this variable.
2006 (picochip_final_prescan_insn): Likewise for param "insn".
2007
2008 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2009
2010 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2011 from rtx to rtx_insn *.
2012 (pa_output_indirect_call): Likewise.
2013 (pa_adjust_insn_length): Likewise.
2014 (pa_attr_length_millicode_call): Likewise.
2015 (pa_attr_length_call): Likewise.
2016 (pa_attr_length_indirect_call): Likewise.
2017
2018 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2019 "insn".
2020 (pa_attr_length_millicode_call): Likewise.
2021 (pa_attr_length_call): Likewise.
2022 (pa_output_call): Likewise.
2023 (pa_attr_length_indirect_call): Likewise.
2024 (pa_output_indirect_call): Likewise.
2025
2026 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2027
2028 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2029 Strengthen first param from rtx to rtx_insn *.
2030 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2031 param "insn".
2032
2033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2034
2035 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2036 type from rtx to rtx_insn *.
2037 (mips_expand_call): Likewise.
2038 (mips_adjust_insn_length): Likewise for first param.
2039 (mips_output_conditional_branch): Likewise.
2040 (mips_output_order_conditional_branch): Likewise.
2041 (mips_final_prescan_insn): Likewise.
2042
2043 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2044 rtx_insn * for the SEQUENCE case.
2045 (SEQ_END): Likewise.
2046 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2047 (mips_emit_call_insn): Likewise, also for local "insn".
2048 (mips16_gp_pseudo_reg): Likewise for local "scan".
2049 (mips16_build_call_stub): Likewise for return type and for local
2050 "insn". Introduce a new local "pattern" so that "insn" can indeed
2051 be an insn.
2052 (mips_expand_call): Strengthen return type and local "insn" from
2053 rtx to rtx_insn *.
2054 (mips_block_move_loop): Strengthen local "label" from rtx to
2055 rtx_code_label *.
2056 (mips_expand_synci_loop): Likewise for locals "label",
2057 "end_label".
2058 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2059 rtx_insn *.
2060 (mips16e_collect_argument_saves): Likewise for locals "insn",
2061 "next".
2062 (mips_find_gp_ref): Likewise for param of callback for "pred"
2063 param, and for local "insn".
2064 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2065 (mips_insn_has_flexible_gp_ref_p): Likewise.
2066 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2067 local "insn".
2068 (mips_epilogue_set_cfa): Likewise for local "insn".
2069 (mips_expand_epilogue): Likewise.
2070 (mips_adjust_insn_length): Likewise for param "insn".
2071 (mips_output_conditional_branch): Likewise.
2072 (mips_output_order_conditional_branch): Likewise.
2073 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2074 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2075 "falu2_turn_enabled_insn".
2076 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2077 "done_label" from rtx to rtx_code_label *.
2078 (struct mips16_constant): Likewise for field "label".
2079 (mips16_add_constant): Likewise for return type.
2080 (mips16_emit_constants_1): Strengthen return type and param "insn"
2081 from rtx to rtx_insn *.
2082 (mips16_emit_constants): Likewise for param "insn".
2083 (mips16_insn_length): Likewise.
2084 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2085 to rtx_code_label *.
2086 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2087 from rtx to rtx_insn *.
2088 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2089 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2090 (r10k_simplify_address): Strengthen param "insn" and local
2091 "def_insn" from rtx to rtx_insn *.
2092 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2093 rtx_insn *.
2094 (r10k_needs_protection_p_1): Update target type of cast of data
2095 from to rtx to rtx_insn *.
2096 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2097 rtx * to rtx_insn **.
2098 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2099 rtx_insn *.
2100 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2101 (mips_call_expr_from_insn): Likewise for param "insn".
2102 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2103 (mips_find_pic_call_symbol): Likewise for param "insn".
2104 (mips_annotate_pic_calls): Likewise for local "insn".
2105 (mips_sim_insn): Likewise for this variable.
2106 (struct mips_sim): Likewise for field "insn" within elements of
2107 last_set array.
2108 (mips_sim_wait_reg): Likewise for param "insn".
2109 (mips_sim_wait_regs): Likewise.
2110 (mips_sim_wait_units): Likewise.
2111 (mips_sim_wait_insn): Likewise.
2112 (mips_sim_issue_insn): Likewise.
2113 (mips_sim_finish_insn): Likewise.
2114 (mips_seq_time): Likewise for param "seq" and local "insn".
2115 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2116 locals "first", "second".
2117 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2118 "last", "last2", "next".
2119 (mips_avoid_hazard): Likewise for params "after", "insn".
2120 (mips_reorg_process_insns): Likewise for locals "insn",
2121 "last_insn", "subinsn", "next_insn".
2122 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2123 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2124 "jump_sequence".
2125 (mips_output_mi_thunk): Likewise for local "insn".
2126 (mips_final_prescan_insn): Likewise for param "insn".
2127
2128 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2129
2130 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2131 Strengthen return type and local "insns" from rtx to rtx_insn *.
2132 (microblaze_legitimize_tls_address): Likewise for local "insns".
2133 (microblaze_block_move_loop): Strengthen local "label" from rtx
2134 to rtx_code_label *.
2135 (microblaze_expand_prologue): Strengthen two locals named "insn"
2136 from rtx to rtx_insn *.
2137 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2138 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2139 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2140 to rtx_code_label *.
2141
2142 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2143
2144 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2145 param from rtx to rtx_insn *.
2146 (mep_reuse_lo): Likewise for third param.
2147 (mep_use_post_modify_p): Likewise for first param.
2148 (mep_core_address_length): Likewise.
2149 (mep_cop_address_length): Likewise.
2150 (mep_final_prescan_insn): Likewise.
2151 (mep_store_data_bypass_p): Likewise for both params.
2152 (mep_mul_hilo_bypass_p): Likewise.
2153 (mep_ipipe_ldc_p): Likewise for param.
2154
2155 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2156 (mep_rewrite_mult): Likewise.
2157 (mep_rewrite_mulsi3): Likewise.
2158 (mep_rewrite_maddsi3): Likewise.
2159 (mep_reuse_lo_p_1): Likewise.
2160 (mep_reuse_lo_p): Likewise.
2161 (mep_frame_expr): Likewise.
2162 (mep_make_parallel): Likewise for both params.
2163 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2164 local "insn".
2165 (mep_use_post_modify_p): Likewise for param "insn".
2166 (mep_core_address_length): Likewise.
2167 (mep_cop_address_length): Likewise.
2168 (mep_reg_set_in_function): Likewise for local "insn".
2169 (mep_asm_without_operands_p): Likewise.
2170 (F): Likewise for return type and param "x".
2171 (add_constant): Likewise for local "insn".
2172 (maybe_dead_move): Likewise for return type and local "insn".
2173 (mep_expand_prologue): Likewise for local "insn".
2174 (mep_final_prescan_insn): Likewise for param "insn".
2175 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2176 "next", "follow", "x".
2177 (mep_insert_repeat_label_last): Likewise for return type, param
2178 "last_insn", and locals "next", "prev". Strengthen param "label"
2179 from rtx to rtx_code_label *.
2180 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2181 rtx_insn *.
2182 (struct mep_doloop_end): Likewise for fields "insn" and
2183 "fallthrough".
2184 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2185 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2186 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2187 rtx_insn *.
2188 (mep_invert_branch): Likewise for params "insn" and "after".
2189 (mep_reorg_erepeat): Likewise for param "insns" and locals
2190 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2191 "l" from rtx to rtx_code_label *.
2192 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2193 from rtx to rtx_insn *.
2194 (mep_reorg_addcombine): Likewise for param "insns" and locals
2195 "i", "n".
2196 (add_sp_insn_p): Likewise for param "insn".
2197 (mep_reorg_noframe): Likewise for param "insns" and locals
2198 "start_frame_insn", "end_frame_insn", "next".
2199 (mep_reorg): Likewise for local "insns".
2200 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2201 cast.
2202 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2203 (mep_mul_hilo_bypass_p): Likewise.
2204 (mep_ipipe_ldc_p): Likewise for param "insn".
2205 (mep_make_bundle): Likewise for return type, param "cop" and local
2206 "insn", splitting out the latter into a new local "seq" for when it
2207 is a SEQUENCE rather than an insn.
2208 (core_insn_p): Likewise for param "insn".
2209 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2210 "last", "first", "note", "prev", "core_insn".
2211
2212 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2213
2214 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2215 rtx to rtx_insn *.
2216 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2217 (m68k_final_prescan_insn): Likewise for first param.
2218
2219 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2220 (m68k_set_frame_related): Likewise for param "insn".
2221 (output_btst): Likewise for param "insn".
2222 (m68k_final_prescan_insn): Likewise.
2223 (m68k_move_to_reg): Likewise for local "insn".
2224 (m68k_call_tls_get_addr): Likewise for local "insns".
2225 (m68k_call_m68k_read_tp): Likewise.
2226 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2227 (m68k_output_mi_thunk): Likewise for local "insn".
2228
2229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2230
2231 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2232 first param from rtx to rtx_insn *.
2233 (iq2000_adjust_insn_length): Likewise.
2234 (iq2000_output_conditional_branch): Likewise.
2235 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2236 "insn" and local "nop_insn".
2237 (iq2000_annotate_frame_insn): Likewise for param "insn".
2238 (iq2000_expand_prologue): Likewise for both locals "insn".
2239 (iq2000_adjust_insn_length): Likewise for param "insn".
2240 (iq2000_output_conditional_branch): Likewise.
2241
2242 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2243
2244 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2245 "insns" from rtx to rtx_insn *.
2246 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2247 (struct spill_fill_data): Likewise for field "init_after" and for
2248 elements of array field "prev_insn".
2249 (spill_restore_mem): Likewise for locals "insn", "first".
2250 (do_spill): Likewise for local "insn".
2251 (do_restore): Likewise.
2252 (ia64_expand_prologue): Likewise.
2253 (ia64_expand_epilogue): Likewise.
2254 (emit_insn_group_barriers): Likewise for locals "insn",
2255 "last_label".
2256 (emit_all_insn_group_barriers): Likewise for locals "insn",
2257 "last".
2258 (dfa_stop_insn): Likewise for this global.
2259 (dfa_pre_cycle_insn): Likewise.
2260 (ia64_nop): Likewise.
2261 (final_emit_insn_group_barriers): Likewise for locals "insn",
2262 "last".
2263 (emit_predicate_relation_info): Likewise for locals "head", "n",
2264 "insn", "b", "a".
2265 (ia64_reorg): Likewise for local "insn".
2266 (ia64_output_mi_thunk): Likewise.
2267 (expand_vec_perm_interleave_2): Likewise for local "seq".
2268
2269 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2270
2271 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2272 param 1 "insn" from rtx to rtx_insn *.
2273 (ix86_use_lea_for_mov): Likewise.
2274 (ix86_avoid_lea_for_addr): Likewise.
2275 (ix86_split_lea_for_addr): Likewise.
2276 (ix86_lea_for_add_ok): Likewise.
2277 (ix86_output_call_insn): Likewise.
2278
2279 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2280 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2281 (ix86_output_function_epilogue): Likewise for locals "insn",
2282 "deleted_debug_label".
2283 (legitimize_tls_address): Likewise for local "insn".
2284 (get_some_local_dynamic_name): Likewise.
2285 (increase_distance): Likewise for params "prev", "next".
2286 (distance_non_agu_define_in_bb): Likewise for params "insn",
2287 "start" and locals "prev", "next".
2288 (distance_non_agu_define): Likewise for param "insn".
2289 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2290 locals "next", "prev".
2291 (distance_agu_use): Likewise for param "insn".
2292 (ix86_lea_outperforms): Likewise.
2293 (ix86_ok_to_clobber_flags): Likewise.
2294 (ix86_avoid_lea_for_add): Likewise.
2295 (ix86_use_lea_for_mov): Likewise.
2296 (ix86_avoid_lea_for_addr): Likewise.
2297 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2298 (ix86_split_lea_for_addr): Likewise for param "insn".
2299 (ix86_lea_for_add_ok): Likewise for param "insn".
2300 (ix86_expand_carry_flag_compare): Likewise for local
2301 "compare_seq".
2302 (ix86_expand_int_movcc): Likewise.
2303 (ix86_output_call_insn): Likewise for param "insn".
2304 (ix86_output_call_insn): Likewise for local "i".
2305 (x86_output_mi_thunk): Introduce local "insn", using it in place
2306 of "tmp" when dealing with insns.
2307 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2308 "start".
2309 (ix86_pad_returns): Likewise for locals "ret", "prev".
2310 (ix86_count_insn_bb): Likewise for local "insn".
2311 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2312 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2313 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2314 (expand_vec_perm_interleave2): Likewise for local "seq".
2315 (expand_vec_perm_vperm2f128_vblend): Likewise.
2316 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2317 call to for_each_rtx with for_each_rtx_in_insn.
2318
2319 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2320
2321 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2322 "label" from rtx to rtx_code_label *.
2323 (ix86_expand_prologue): Likewise.
2324 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2325 "varargs_label".
2326 (ix86_split_idivmod): Likewise for locals "end_label" and
2327 "qimode_label".
2328 (ix86_expand_branch): Likewise for local "label2".
2329 (ix86_expand_aligntest): Likewise for return type and local "label".
2330 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2331 "top_label".
2332 (expand_movmem_epilogue): Likewise for the various locals named
2333 "label".
2334 (expand_setmem_epilogue): Likewise.
2335 (expand_small_movmem_or_setmem): Likewise for local "label".
2336 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2337 Strengthen param "done_label" from rtx * to rtx_code_label **.
2338 Strengthen locals "loop_label" and "label" from rtx to
2339 rtx_code_label *.
2340 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2341 Likewise for locals "loop_label", "label".
2342 (ix86_expand_set_or_movmem): Likewise for locals "label",
2343 "jump_around_label", "hot_label".
2344 (ix86_expand_strlensi_unroll_1): Likewise for locals
2345 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2346 "end_2_label".
2347 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2348 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2349 "label2", "jump_label".
2350 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2351 local "label".
2352 (ix86_expand_lfloorceil): Likewise for local "label".
2353 (ix86_expand_rint): Likewise.
2354 (ix86_expand_floorceildf_32): Likewise.
2355 (ix86_expand_floorceil): Likewise.
2356 (ix86_expand_rounddf_32): Likewise.
2357 (ix86_expand_trunc): Likewise.
2358 (ix86_expand_truncdf_32): Likewise.
2359 (ix86_expand_round): Likewise.
2360
2361 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2362
2363 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2364 first param from rtx to rtx_insn *.
2365 (h8300_insn_length_from_table): Likewise.
2366 * config/h8300/h8300.c (F): Likewise for return type and param
2367 "x".
2368 (Fpa): Add a checked cast to rtx_insn *.
2369 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2370 rtx_insn *.
2371 (final_prescan_insn): Likewise for param "insn".
2372 (h8300_binary_length): Likewise.
2373 (h8300_insn_length_from_table): Likewise.
2374
2375 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2376
2377 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2378 Strengthen first param "insn" from rtx to rtx_insn *.
2379
2380 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2381 Likewise.
2382 (frame_insn): Likewise for return type. Introduce local "insn"
2383 for use in place of local "x" for use as an rtx_insn *.
2384 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2385 (epiphany_expand_prologue): Likewise for local "insn".
2386 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2387 * config/epiphany/resolve-sw-modes.c
2388 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2389 "seq".
2390
2391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2392
2393 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2394 param from rtx to rtx_insn *.
2395 (c6x_final_prescan_insn): Likewise for first param.
2396
2397 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2398 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2399 (c6x_expand_compare): Strengthen local "insns" from rtx to
2400 rtx_insn *.
2401 (c6x_get_unit_specifier): Likewise for param "insn".
2402 (c6x_print_unit_specifier_field): Likewise.
2403 (c6x_final_prescan_insn): Likewise.
2404 (emit_add_sp_const): Likewise for local "insn".
2405 (c6x_expand_prologue): Likewise.
2406
2407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2408
2409 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2410 param 1 from rtx to rtx_insn *.
2411 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2412 the various locals named "insn".
2413 (expand_epilogue_reg_restore): Likewise.
2414 (frame_related_constant_load): Likewise.
2415 (add_to_reg): Likewise.
2416 (emit_link_insn): Likewise.
2417 (do_link): Likewise.
2418 (expand_interrupt_handler_prologue): Likewise.
2419 (branch_dest): Likewise for param "branch".
2420 (asm_conditional_branch): Likewise for param "insn".
2421 (gen_one_bundle): Likewise for elements of param "slot" and local
2422 "t".
2423 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2424 elements of local "slot".
2425 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2426 "queue", "next_queue", "prev".
2427 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2428 (add_sched_insns_for_speculation): Likewise for local "insn".
2429
2430 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2431
2432 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2433 from rtx to rtx_insn *.
2434 (output_movhi): Likewise.
2435 (output_movsisf): Likewise.
2436 (avr_out_tstsi): Likewise.
2437 (avr_out_tsthi): Likewise.
2438 (avr_out_tstpsi): Likewise.
2439 (avr_out_compare): Likewise.
2440 (avr_out_compare64): Likewise.
2441 (avr_out_movpsi): Likewise.
2442 (ashlqi3_out): Likewise.
2443 (ashlhi3_out): Likewise.
2444 (ashlsi3_out): Likewise.
2445 (ashrqi3_out): Likewise.
2446 (ashrhi3_out): Likewise.
2447 (ashrsi3_out): Likewise.
2448 (lshrqi3_out): Likewise.
2449 (lshrhi3_out): Likewise.
2450 (lshrsi3_out): Likewise.
2451 (avr_out_ashlpsi3): Likewise.
2452 (avr_out_ashrpsi3): Likewise.
2453 (avr_out_lshrpsi3): Likewise.
2454 (avr_out_fract): Likewise.
2455 (avr_out_sbxx_branch): Likewise.
2456 (avr_out_round): Likewise.
2457 (avr_out_xload): Likewise.
2458 (avr_out_movmem): Likewise.
2459 (adjust_insn_length): Likewise.
2460 (avr_out_lpm): Likewise.
2461 (reg_unused_after): Likewise.
2462 (_reg_unused_after): Likewise.
2463 (avr_jump_mode): Likewise for second param.
2464 (jump_over_one_insn): Likewise for first param.
2465 (avr_final_prescan_insn): Likewise.
2466 (out_shift_with_cnt): Likewise for second param.
2467
2468 * config/avr/avr.c (get_sequence_length): Likewise for param
2469 "insns" and local "insn".
2470 (emit_push_byte): Likewise for local "insn".
2471 (emit_push_sfr): Likewise.
2472 (avr_prologue_setup_frame): Likewise for locals "insn",
2473 "fp_plus_insns", "sp_plus_insns".
2474 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2475 "sp_plus_insns".
2476 (avr_jump_mode): Likewise for param "insn".
2477 (avr_final_prescan_insn): Likewise.
2478 (avr_find_unused_d_reg): Likewise.
2479 (avr_out_lpm_no_lpmx): Likewise.
2480 (avr_out_lpm): Likewise.
2481 (avr_out_xload): Likewise.
2482 (output_movqi): Likewise.
2483 (output_movhi): Likewise.
2484 (out_movqi_r_mr): Likewise.
2485 (out_movhi_r_mr): Likewise.
2486 (out_movsi_r_mr): Likewise.
2487 (out_movsi_mr_r): Likewise.
2488 (output_movsisf): Likewise.
2489 (avr_out_load_psi): Likewise.
2490 (avr_out_store_psi): Likewise.
2491 (avr_out_movpsi): Likewise.
2492 (out_movqi_mr_r): Likewise.
2493 (avr_out_movhi_mr_r_xmega): Likewise.
2494 (out_movhi_mr_r): Likewise.
2495 (compare_condition): Likewise for param "insn" and local "next".
2496 (compare_sign_p): Likewise for param "insn".
2497 (compare_diff_p): Likewise.
2498 (compare_eq_p): Likewise.
2499 (avr_out_compare): Likewise.
2500 (avr_out_compare64): Likewise.
2501 (avr_out_tsthi): Likewise.
2502 (avr_out_tstpsi): Likewise.
2503 (avr_out_tstsi): Likewise.
2504 (out_shift_with_cnt): Likewise.
2505 (ashlqi3_out): Likewise.
2506 (ashlhi3_out): Likewise.
2507 (avr_out_ashlpsi3): Likewise.
2508 (ashlsi3_out): Likewise.
2509 (ashrqi3_out): Likewise.
2510 (ashrhi3_out): Likewise.
2511 (avr_out_ashrpsi3): Likewise.
2512 (ashrsi3_out): Likewise.
2513 (lshrqi3_out): Likewise.
2514 (lshrhi3_out): Likewise.
2515 (avr_out_lshrpsi3): Likewise.
2516 (lshrsi3_out): Likewise.
2517 (avr_out_fract): Likewise.
2518 (avr_out_round): Likewise.
2519 (avr_adjust_insn_length): Likewise.
2520 (reg_unused_after): Likewise.
2521 (_reg_unused_after): Likewise.
2522 (avr_compare_pattern): Likewise.
2523 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2524 and locals "branch1", "branch2", "insn2", "jump".
2525 (avr_reorg): Likewise for local "insn".
2526 (avr_2word_insn_p): Likewise for param "insn".
2527 (jump_over_one_insn_p): Likewise.
2528 (avr_out_sbxx_branch): Likewise.
2529 (avr_out_movmem): Likewise.
2530
2531 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2532
2533 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2534 param from rtx to rtx_insn *.
2535 (thumb1_final_prescan_insn): Likewise.
2536 (thumb2_final_prescan_insn): Likewise.
2537
2538 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2539 rtx to rtx_insn *.
2540 (struct minipool_node): Likewise for field "insn".
2541 (dump_minipool): Likewise for param "scan".
2542 (create_fix_barrier): Likewise for local "from". Strengthen local
2543 "label" from rtx to rtx_code_label *.
2544 (push_minipool_barrier): Strengthen param "insn" from rtx to
2545 rtx_insn *.
2546 (push_minipool_fix): Likewise.
2547 (note_invalid_constants): Likewise.
2548 (thumb2_reorg): Likewise for local "insn".
2549 (arm_reorg): Likewise.
2550 (thumb2_final_prescan_insn): Likewise for param
2551 "insn" and local "first_insn".
2552 (arm_final_prescan_insn): Likewise for param "insn" and locals
2553 "start_insn", "this_insn".
2554 (arm_debugger_arg_offset): Likewise for param "insn".
2555 (thumb1_emit_multi_reg_push): Likewise for return type and local
2556 "insn".
2557 (thumb1_final_prescan_insn): Likewise for param "insn".
2558 (thumb_far_jump_used_p): Likewise for local "insn".
2559 (thumb1_expand_prologue): Likewise.
2560 (arm_expand_epilogue_apcs_frame): Likewise.
2561 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2562 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2563 from rtx to rtx_code_label *.
2564 (arm_split_atomic_op): Likewise for local "label".
2565 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2566
2567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2568
2569 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2570 first param from rtx to rtx_insn *.
2571 (arc_verify_short): Likewise.
2572 (arc_short_long): Likewise.
2573 (arc_need_delay): Likewise.
2574
2575 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2576 "target_insn".
2577 (arc_ccfsm_advance): Likewise for param "insn" and locals
2578 "start_insn", "this_insn".
2579 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2580 (arc_ccfsm_post_advance): Likewise for param "insn".
2581 (arc_next_active_insn): Likewise for return type and param "insn".
2582 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2583 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2584 (output_short_suffix): Likewise for local "insn".
2585 (arc_final_prescan_insn): Likewise for param "insn". Remove
2586 now-redundant checked cast.
2587 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2588 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2589 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2590 for use where lc_set became an insn.
2591 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2592 rtx to rtx_insn *.
2593 (arc_get_insn_variants): Likewise for local "prev".
2594 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2595 "next".
2596 (arc_predicate_delay_insns): Likewise for local "insn".
2597 (arc_pad_return): Likewise for local "prev". For now, add a
2598 checked cast when extracting the insn from "final_sequence".
2599 (arc_short_long): Likewise for param "insn".
2600 (arc_need_delay): Likewise for param "insn" and local "next".
2601 (arc_label_align): Likewise for locals "prev", "next".
2602
2603 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2604
2605 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2606 "insn" from rtx to rtx_insn *.
2607 (alpha_gp_save_rtx): Likewise for local "seq".
2608 (alpha_instantiate_decls): Likewise for local "top".
2609 (get_some_local_dynamic_name): Likewise for local "insn".
2610 (alpha_does_function_need_gp): Likewise.
2611 (set_frame_related_p): Likewise for return type and for locals
2612 "seq" and "insn".
2613 (emit_frame_store_1): Likewise for local "insn".
2614 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2615 (alpha_end_function): Likewise for local "insn".
2616 (alpha_output_mi_thunk_osf): Likewise.
2617 (alphaev4_insn_pipe): Likewise for param "insn".
2618 (alphaev5_insn_pipe): Likewise.
2619 (alphaev4_next_group): Likewise for return type and param 1
2620 "insn".
2621 (alphaev5_next_group): Likewise.
2622 (alpha_align_insns_1): Likewise for return type and param 1 of
2623 callback param "next_group", and for locals "i", "next", "prev",
2624 "where", "where2", "insn".
2625
2626 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2627
2628 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2629 rather than modifying the stmt.
2630
2631 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2632
2633 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2634 cgraph_state conversion.
2635
2636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2637
2638 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2639 Strengthen local "insns" from rtx to rtx_insn *.
2640 (aarch64_set_frame_expr): Likewise for local "insn".
2641 (aarch64_save_or_restore_fprs): Likewise.
2642 (aarch64_save_or_restore_callee_save_registers): Likewise.
2643 (aarch64_expand_prologue): Likewise.
2644 (aarch64_expand_epilogue): Likewise.
2645 (aarch64_output_mi_thunk): Likewise.
2646 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2647 "label2" from rtx to rtx_code_label *.
2648 (aarch64_split_atomic_op): Likewise for local "label".
2649
2650 2014-08-25 Martin Liska <mliska@suse.cz>
2651
2652 * cgraph.h (symtab_node):
2653 (bool needed_p (void)): created from decide_is_symbol_needed
2654 (bool referred_to_p (void)): created from referred_to_p
2655 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2656 * cgraph.h (cgraph_node):
2657 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2658 (void expand (void)): created from expand_function
2659 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2660 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2661 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2662 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2663 * cgraph.h (varpool_node):
2664 (static void add (tree decl): created from varpool_add_new_variable
2665 * cgraph.h (cgraph_edge):
2666 void remove (void);
2667 (void remove_caller (void)): created from cgraph_edge_remove_caller
2668 (void remove_callee (void)): created from cgraph_edge_remove_callee
2669 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2670 created from cgraph_set_call_stmt
2671 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2672 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2673 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2674 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2675 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2676 created from cgraph_speculative_call_info
2677 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2678 int freq_scale, bool update_original)): created from cgraph_clone_edge
2679 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2680 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2681 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2682 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2683 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2684 (static void rebuild_references (void)): created from cgraph_rebuild_references
2685 * cgraph.h (symbol_table):
2686 (create_reference): renamed from add_reference
2687 (maybe_create_reference): renamed from maybe_add_reference
2688 (void register_symbol (symtab_node *node)): new function
2689 (void clear_asm_symbols (void)): new function
2690 (void unregister (symtab_node *node)): new function
2691 (void release_symbol (cgraph_node *node, int uid)): new function
2692 (cgraph_node * allocate_cgraph_symbol (void)): new function
2693 (void initialize (void)): created from cgraph_init
2694 (symtab_node *first_symbol (void)):new function
2695 (asm_node *first_asm_symbol (void)):new function
2696 (symtab_node *first_defined_symbol (void)):new function
2697 (varpool_node *first_variable (void)):new function
2698 (varpool_node *next_variable (varpool_node *node)):new function
2699 (varpool_node *first_static_initializer (void)):new function
2700 (varpool_node *next_static_initializer (varpool_node *node)):new function
2701 (varpool_node *first_defined_variable (void)):new function
2702 (varpool_node *next_defined_variable (varpool_node *node)):new function
2703 (cgraph_node *first_defined_function (void)):new function
2704 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2705 (cgraph_node *first_function (void)):new function
2706 (cgraph_node *next_function (cgraph_node *node)):new function
2707 (cgraph_node *first_function_with_gimple_body (void)):new function
2708 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2709 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2710 created from symtab_remove_unreachable_nodes
2711 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2712 (void process_new_functions (void)): created from cgraph_process_new_functions
2713 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2714 (bool output_variables (void)): created from varpool_node::output_variables
2715 (void output_asm_statements (void)): created from output_asm_statements
2716 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2717 (void compile (void)): created from compile
2718 (void output_weakrefs (void)): created from output_weakrefs
2719 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2720 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2721 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2722 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2723 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2724 created from cgraph_next_function_with_gimple_body
2725 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2726 created from cgraph_remove_edge_removal_hook
2727 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2728 created from cgraph_add_node_removal_hook
2729 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2730 created from cgraph_remove_node_removal_hook
2731 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2732 created from varpool_add_node_removal_hook
2733 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2734 created from varpool_remove_node_removal_hook
2735 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2736 created from cgraph_add_function_insertion_hook
2737 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2738 created from cgraph_remove_function_insertion_hook
2739 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2740 created from varpool_add_variable_insertion_hook
2741 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2742 created from varpool_remove_variable_insertion_hook
2743 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2744 created from cgraph_add_edge_duplication_hook
2745 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2746 created from cgraph_remove_edge_duplication_hook
2747 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2748 created from cgraph_add_node_duplication_hook
2749 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2750 created from cgraph_remove_node_duplication_hook
2751 (void call_edge_removal_hooks (cgraph_edge *e)):
2752 created from cgraph_call_edge_removal_hooks
2753 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2754 created from call_function_insertion_hooks
2755 (void call_cgraph_removal_hooks (cgraph_node *node)):
2756 created from cgraph_call_node_removal_hooks
2757 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2758 created from cgraph_node::call_duplication_hooks
2759 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2760 created from cgraph_call_edge_duplication_hooks
2761 (void call_varpool_removal_hooks (varpool_node *node)):
2762 created from varpool_call_node_removal_hooks
2763 (void call_varpool_insertion_hooks (varpool_node *node)):
2764 created from varpool_call_variable_insertion_hooks
2765 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2766 created from insert_to_assembler_name_hash
2767 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2768 created from unlink_from_assembler_name_hash
2769 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2770 created from symtab_prevail_in_asm_name_hash
2771 (void symtab_initialize_asm_name_hash (void)):
2772 created from symtab_initialize_asm_name_hash
2773 (void change_decl_assembler_name (tree decl, tree name)):
2774 created from change_decl_assembler_name
2775 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2776 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2777 created from decl_assembler_name_hash
2778 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2779 created from decl_assembler_name_equal
2780 (static hashval_t hash_node_by_assembler_name (const void *p)):
2781 created from hash_node_by_assembler_name
2782 (static int eq_assembler_name (const void *p1, const void *p2)):
2783 created from eq_assembler_name
2784
2785 2014-08-25 Marek Polacek <polacek@redhat.com>
2786
2787 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2788
2789 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2790
2791 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2792 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2793 SWI1248_AVX512BW mode iterator.
2794
2795 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2796
2797 PR target/62111
2798 * config/sh/predicates.md (general_extend_operand): Disable
2799 TRUNCATE before reload completes.
2800
2801 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2802
2803 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2804
2805 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2806
2807 PR target/61996
2808 * config/sh/sh.opt (musermode): Allow negative form.
2809 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2810 targets that don't support it.
2811 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2812 Document -mno-usermode option.
2813
2814 2014-08-24 Kito Cheng <kito@0xlab.org>
2815
2816 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2817 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2818 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2819 * doc/tm.texi: Regenerate.
2820
2821 2014-08-24 Kito Cheng <kito@0xlab.org>
2822
2823 * ira.c: Fix typo in comment.
2824
2825 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2826
2827 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2828 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2829
2830 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2831
2832 PR target/62038
2833 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2834 last_address when the current function is a thunk.
2835 (pa_asm_output_mi_thunk): When we don't have named sections or they
2836 are not being used, check that thunk can reach the stub table with a
2837 short branch.
2838
2839 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2840
2841 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2842 rtx_insn *.
2843 (pass_web::execute): Likewise for local "insn".
2844
2845 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2846
2847 * var-tracking.c (struct micro_operation_def): Strengthen field
2848 "insn" from rtx to rtx_insn *.
2849 (struct emit_note_data_def): Likewise.
2850 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2851 (vt_stack_adjustments): Likewise for local "insn".
2852 (adjust_insn): Likewise for param "insn".
2853 (val_store): Likewise.
2854 (val_resolve): Likewise.
2855 (struct count_use_info): Likewise for field "insn".
2856 (log_op_type): Likewise for param "insn".
2857 (reverse_op): Likewise.
2858 (prepare_call_arguments): Likewise.
2859 (add_with_sets): The initial param takes an insn, but we can't
2860 yet strengthen it from rtx to rtx_insn * since it's used as a
2861 cselib_record_sets_hook callback. For now rename initial param
2862 from "insn" to "uncast_insn", and introduce a local "insn" of
2863 the stronger rtx_insn * type, with a checked cast.
2864 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2865 rtx_insn *.
2866 (emit_note_insn_var_location): Likewise.
2867 (emit_notes_for_changes): Likewise.
2868 (emit_notes_for_differences): Likewise.
2869 (next_non_note_insn_var_location): Likewise for return type and
2870 for param "insn".
2871 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2872 (vt_initialize): Likewise for local "insn".
2873 (delete_debug_insns): Likewise for locals "insn" and "next".
2874
2875 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2876
2877 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2878 rtx_insn *.
2879 (mark_constant_pool): Likewise for local "insn".
2880
2881 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2882
2883 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2884 rtx to rtx_insn *.
2885 (dead_debug_promote_uses): Likewise.
2886 (dead_debug_insert_temp): Likewise.
2887
2888 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2889
2890 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2891 from const_rtx to const rtx_insn *.
2892 (store_killed_after): Likewise. Strengthen locals "last", "act"
2893 from rtx to rtx_insn *.
2894 (store_killed_before): Strengthen param "insn" from const_rtx to
2895 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2896 (find_moveable_store): Strengthen param "insn" from rtx to
2897 rtx_insn *.
2898 (compute_store_table): Likewise for local "insn".
2899 (insert_insn_start_basic_block): Likewise for param "insn" and
2900 locals "prev", "before", "insn".
2901 (insert_store): For now, add a checked cast to rtx_insn * on the
2902 result of gen_move_insn.
2903 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2904 to rtx_insn *.
2905 (replace_store_insn): Likewise. For now, add a checked cast to
2906 rtx_insn * on the result of gen_move_insn.
2907
2908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2909
2910 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2911 rtx_insn *.
2912 (expand_sjlj_dispatch_table): Likewise.
2913
2914 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2915
2916 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2917 "insn" from rtx to rtx_insn *.
2918
2919 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2920
2921 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2922 "insn" from rtx to rtx_insn *.
2923 (dup_block_and_redirect): Likewise for param 3 "before".
2924
2925 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2926 from rtx to rtx_insn *.
2927 (move_insn_for_shrink_wrap): Likewise.
2928 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2929 (dup_block_and_redirect): Likewise for param "before" and local
2930 "insn".
2931 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2932 "end".
2933 (convert_to_simple_return): Likewise for local "start".
2934
2935 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2936 Strengthen local "insn" from rtx to rtx_insn *, for use when
2937 invoking requires_stack_frame_p.
2938
2939 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2940
2941 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2942 rtx_insn *.
2943 (speculate_expr): Likewise for locals "orig_insn_rtx",
2944 "spec_insn_rtx".
2945 (eq_transformed_insns): Likewise for locals "i1", "i2".
2946 (check_for_new_jump): Likewise for return type and local "end".
2947 (find_new_jump): Likewise for return type and local "jump".
2948 (sel_split_edge): Likewise for local "jump".
2949 (sel_create_recovery_block): Likewise.
2950 (sel_redirect_edge_and_branch_force): Likewise.
2951 (sel_redirect_edge_and_branch): Likewise.
2952
2953 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2954
2955 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2956 "new_insn" from rtx to rtx_insn *.
2957 (create_insn_rtx_with_rhs): Likewise for return type and for local
2958 "insn_rtx".
2959 (create_insn_rtx_with_lhs): Likewise.
2960 (create_speculation_check): Likewise for local "insn_rtx".
2961 (implicit_clobber_conflict_p): Likewise for local "insn".
2962 (get_expr_cost): Likewise.
2963 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2964 (move_cond_jump): Likewise for locals "next", "prev", "link",
2965 "head", "from", "to".
2966
2967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2968
2969 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2970 "next" from rtx to rtx_insn *.
2971 (find_conditional_protection): Likewise for local "next".
2972 (is_conditionally_protected): Likewise for local "insn1".
2973 (is_pfree): Likewise for locals "insn1", "insn2".
2974
2975 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2976
2977 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2978 from rtx to rtx_insn *.
2979
2980 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2981 locals "insn1", "insn2" from rtx to rtx_insn *.
2982 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2983 locals "insn", "prev", "last_jump", "next_tail".
2984 (schedule_ebb): Likewise for params "head", "tail".
2985 (schedule_ebbs): Likewise for locals "tail", "head".
2986
2987 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2988 to rtx_insn on "last_insn" in one of the invocations of
2989 schedule_ebb.
2990
2991 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2992
2993 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2994 "elem", "insn" from rtx to rtx_insn *.
2995 (change_spec_dep_to_hard): Likewise.
2996 (get_back_and_forw_lists): Likewise for local "con".
2997 (sd_add_dep): Likewise for locals "elem", "insn".
2998 (sd_resolve_dep): Likewise for locals "pro", "con".
2999 (sd_unresolve_dep): Likewise.
3000 (sd_delete_dep): Likewise.
3001 (chain_to_prev_insn): Likewise for local "pro".
3002 (find_inc): Likewise for locals "pro", "con".
3003
3004 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3005
3006 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3007 to rtx_insn *.
3008 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3009 const rtx_insn *.
3010 (modified_between_p): Strengthen local "insn" from rtx to
3011 rtx_insn *.
3012 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3013 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3014 const rtx_insn *.
3015
3016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3017
3018 * resource.c (next_insn_no_annul): Strengthen local "next" from
3019 rtx to rtx_insn *.
3020 (mark_referenced_resources): Likewise for local "insn".
3021
3022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3023
3024 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3025 to rtx_insn *.
3026 (find_reloads): Likewise for param 1.
3027 (subst_reloads): Likewise for sole param.
3028 (find_equiv_reg): Likwise for param 2.
3029 (regno_clobbered_p): Likwise for param 2.
3030 (reload): Likewise for param 1.
3031
3032 * caller-save.c (save_call_clobbered_regs): Strengthen local
3033 "insn" from rtx to rtx_insn *.
3034 (insert_one_insn): Likewise for local "insn".
3035
3036 * reload.c (this_insn): Likewise for this global.
3037 (find_reloads): Likewise for param "insn".
3038 (find_reloads_toplev): Likewise.
3039 (find_reloads_address): Likewise.
3040 (subst_reg_equivs): Likewise.
3041 (update_auto_inc_notes): Likewise.
3042 (find_reloads_address_1): Likewise.
3043 (find_reloads_subreg_address): Likewise.
3044 (subst_reloads): Likewise.
3045 (find_equiv_reg): Likewise, also for local "p".
3046 (regno_clobbered_p): Likewise for param "insn".
3047
3048 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3049 array.
3050 (spill_reg_store): Likewise for the elements of this array.
3051 (remove_init_insns): Likewise for local "equiv_insn".
3052 (will_delete_init_insn_p): Likewise for param "insn".
3053 (reload): Likewise for param ""first" and local "insn".
3054 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3055 rtx_insn *.
3056 (calculate_elim_costs_all_insns): Likewise.
3057 (delete_caller_save_insns): Likewise.
3058 (spill_failure): Likewise for param "insn".
3059 (delete_dead_insn): Likewise.
3060 (set_label_offsets): Likewise.
3061 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3062 "prev_insn".
3063 (elimination_costs_in_insn): Likewise for param "insn".
3064 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3065 when referring to an insn.
3066 (set_initial_label_offsets): Likewise.
3067 (set_offsets_for_label): Strengthen param "insn" from rtx to
3068 rtx_insn *.
3069 (init_eliminable_invariants): Likewise for param "first" and local
3070 "insn".
3071 (fixup_eh_region_note): Likewise for param "insn".
3072 (reload_as_needed): Likewise for locals "prev", "insn",
3073 "old_next", "old_prev", "next".
3074 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3075 "last".
3076 (reload_inheritance_insn): Strengthen elements of this array from
3077 rtx to rtx_insn *.
3078 (failed_reload): Likewise for param "insn".
3079 (choose_reload_regs): Likewise for local "insn". Replace use of
3080 NULL_RTX with NULL when referring to an insn.
3081 (input_reload_insns): Strengthen elements of this array from rtx
3082 to rtx_insn *.
3083 (other_input_address_reload_insns): Likewise for this global.
3084 (other_input_reload_insns): Likewise for this global.
3085 (input_address_reload_insns): Likwise for the elements of this
3086 array.
3087 (inpaddr_address_reload_insns): Likwise for the elements of this
3088 array.
3089 (output_reload_insns): Likewise for the elements of this array.
3090 (output_address_reload_insns): Likewise for the elements of this
3091 array.
3092 (outaddr_address_reload_insns): Likewise for the elements of this
3093 array.
3094 (operand_reload_insns): Likewise for this global.
3095 (other_operand_reload_insns): Likewise for this global.
3096 (other_output_reload_insns): Likewise for the elements of this
3097 array.
3098 (new_spill_reg_store): Likewise for the elements of this
3099 array.
3100 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3101 Strengthen local "where" from rtx * to rtx_insn **.
3102 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3103 from rtx to rtx_insn *.
3104 (do_input_reload): Likewise for local "insn".
3105 (do_output_reload): Likewise for local "insn".
3106 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3107 (emit_insn_if_valid_for_reload): Likewise for return type and local
3108 "last". Add checked cast to rtx_insn when returning "insn" since
3109 this has been through emit_insn.
3110 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3111 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3112 returning "insn" since it's been through
3113 emit_insn_if_valid_for_reload at this point.
3114 (delete_output_reload): Strengthen param "insn" and locals
3115 "output_reload_insn", "i2" from rtx to rtx_insn *.
3116 (delete_address_reloads): Likewise for params "dead_insn",
3117 "current_insn" and locals "prev", "next".
3118 (delete_address_reloads_1): Likewise for params "dead_insn",
3119 "current_insn" and locals "prev", "i2".
3120 (inc_for_reload): Likewise for locals "last", "add_insn".
3121 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3122 rtx_insn *.
3123
3124 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3125 param of this duplicate of the prototype from reload.h
3126
3127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3128
3129 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3130 rtx to rtx_insn *.
3131 (regstat_bb_compute_calls_crossed): Likewise.
3132
3133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3134
3135 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3136 to rtx_insn *.
3137 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3138 with an insn.
3139 (regrename_analyze): Strengthen local "insn" from rtx to
3140 rtx_insn *.
3141 (scan_rtx_reg): Likewise for param "insn".
3142 (scan_rtx_address): Likewise.
3143 (scan_rtx): Likewise.
3144 (restore_operands): Likewise.
3145 (record_out_operands): Likewise.
3146 (build_def_use): Likewise for local "insn". Replace use of
3147 NULL_RTX with NULL when dealing with an insn.
3148
3149 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3150
3151 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3152 * reginfo.c (reg_scan): Likewise, also for local "insn".
3153 (reg_scan_mark_refs): Likewise for param "insn".
3154 (init_subregs_of_mode): Likewise for local "insn".
3155
3156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3157
3158 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3159 "insn" from rtx to rtx_insn *.
3160 (replace_oldest_value_reg): Likewise for param "insn".
3161 (replace_oldest_value_addr): Likewise.
3162 (replace_oldest_value_mem): Likewise.
3163 (apply_debug_insn_changes): Likewise for local "last_insn".
3164 (copyprop_hardreg_forward_1): Likewise for local "insn".
3165
3166 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3167
3168 * reg-stack.c (next_flags_user): Strengthen return type and param
3169 "insn" from rtx to rtx_insn *.
3170 (straighten_stack): Likewise for param "insn".
3171 (check_asm_stack_operands): Likewise.
3172 (remove_regno_note): Likewise.
3173 (emit_pop_insn): Likewise for return type, param "insn", local
3174 "pop_insn".
3175 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3176 "limit" from rtx to rtx_insn *.
3177 (swap_to_top): Likewise for param "insn".
3178 (move_for_stack_reg): Likewise.
3179 (move_nan_for_stack_reg): Likewise.
3180 (swap_rtx_condition): Likewise.
3181 (compare_for_stack_reg): Likewise.
3182 (subst_all_stack_regs_in_debug_insn): Likewise.
3183 (subst_stack_regs_pat): Likewise, and local "insn2".
3184 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3185 rtx_insn *.
3186 (subst_stack_regs): Likewise.
3187 (change_stack): Likewise.
3188 (convert_regs_1): Likewise for locals "insn", "next".
3189
3190 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3191
3192 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3193 rtx_insn *.
3194 (combine_set_extension): Likewise for param "curr_insn".
3195 (transform_ifelse): Likewise for param "def_insn".
3196 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3197 from vec<rtx> * to vec<rtx_insn *> *.
3198 (is_cond_copy_insn): Likewise for param "insn".
3199 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3200 to vec<rtx_insn *>.
3201 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3202 local "def_insn" from rtx to rtx_insn *.
3203 (get_sub_rtx): Likewise for param "def_insn".
3204 (merge_def_and_ext): Likewise.
3205 (combine_reaching_defs): Likewise.
3206 (add_removable_extension): Likewise for param "insn".
3207 (find_removable_extensions): Likewise for local "insn".
3208 (find_and_remove_re): Likewise for locals "curr_insn" and
3209 "def_insn". Strengthen locals "reinsn_del_list" and
3210 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3211
3212 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3213
3214 * recog.c (split_insn): Strengthen param "insn" and locals
3215 "first", "last" from rtx to rtx_insn *.
3216 (split_all_insns): Likewise for locals "insn", "next".
3217 (split_all_insns_noflow): Likewise.
3218
3219 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3220
3221 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3222 const rtx_insn *.
3223 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3224 (debug_rtx_find): Likewise for param 1 "x".
3225
3226 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3227 const_rtx to const rtx_insn *. Likewise for local "insn".
3228 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3229 (debug_rtx_find): Likewise for param 1 "x".
3230 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3231 from const_rtx to const rtx_insn * within the appropriate cases of
3232 the switch statement.
3233
3234 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3235 Strengthen local "insns" from rtx to rtx_insn * since this is
3236 passed to a call to debug_rtx_list.
3237
3238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3239
3240 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3241 to rtx_insn *.
3242
3243 * function.c (stack_protect_epilogue): Add checked cast to
3244 rtx_insn for now when invoking predict_insn_def.
3245
3246 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3247 rtx_insn *.
3248 (predict_insn_def): Likewise.
3249 (rtl_predict_edge): Likewise for local "last_insn".
3250 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3251 const rtx_insn *.
3252 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3253 to rtx_insn *.
3254 (bb_estimate_probability_locally): Likewise for local "last_insn".
3255 (expensive_function_p): Likewise for local "insn".
3256
3257 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3258 local "jmp", since this is used when invoking predict_insn_def.
3259
3260 2014-08-22 Marek Polacek <polacek@redhat.com>
3261
3262 PR c++/62199
3263 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3264
3265 2014-08-22 Marek Polacek <polacek@redhat.com>
3266
3267 PR c/61271
3268 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3269 a comparison in parens.
3270 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3271 in parens.
3272
3273 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3274
3275 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3276 rtx_insn *.
3277
3278 * cprop.c (fis_get_condition): Likewise.
3279
3280 * postreload.c (reload_cse_regs): Likewise for param "first".
3281 (reload_cse_simplify): Likewise for param "insn".
3282 (reload_cse_regs_1): Likewise for local "insn".
3283 (reload_cse_simplify_set): Likewise for param "insn".
3284 (reload_cse_simplify_operands): Likewise.
3285 (struct reg_use): Likewise for field "insn".
3286 (reload_combine_purge_insn_uses): Likewise for param "insn".
3287 (fixup_debug_insns): Likewise for params "from", "to" and local
3288 "insn".
3289 (try_replace_in_use): Likewise for local "use_insn".
3290 (reload_combine_recognize_const_pattern): Likewise for param
3291 "insn" and locals "add_moved_after_insn", "use_insn".
3292 (reload_combine_recognize_pattern): Likewise for param "insn" and
3293 local "prev".
3294 (reload_combine): Likewise for locals "insn", "prev".
3295 (reload_combine_note_use): Likewise for param "insn".
3296 (move2add_use_add2_insn): Likewise.
3297 (move2add_use_add3_insn): Likewise.
3298 (reload_cse_move2add): Likewise, also for local "next".
3299 (move2add_note_store): Likewise for local "insn".
3300
3301 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3302
3303 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3304 rtx to rtx_insn *.
3305 (struct unoccr): Likewise.
3306 (struct modifies_mem): Likewise.
3307 (alloc_mem): Likewise for local "insn".
3308 (insert_expr_in_table): Likewise for param "insn".
3309 (dump_expr_hash_table_entry): Likewise for local "insn".
3310 (oprs_unchanged_p): Likewise for param "insn".
3311 (load_killed_in_block_p): Likewise for local "setter".
3312 (record_last_reg_set_info): Likewise for param "insn".
3313 (record_last_reg_set_info_regno): Likewise.
3314 (record_last_mem_set_info): Likewise.
3315 (record_last_set_info): Likewise for local "last_set_insn".
3316 (record_opr_changes): Likewise for param "insn".
3317 (hash_scan_set): Likewise.
3318 (compute_hash_table): Likewise for local "insn".
3319 (get_avail_load_store_reg): Likewise for param "insn".
3320 (eliminate_partially_redundant_load): Likewise, also for locals
3321 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3322 RTX for insns.
3323 (eliminate_partially_redundant_loads): Likewise for local "insn".
3324
3325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3326
3327 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3328 rtx to rtx_insn *.
3329 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3330 (expand_twoval_unop): Likewise for locals entry_last", "last".
3331 (expand_twoval_binop): Likewise.
3332 (expand_twoval_binop_libfunc): Likewise for local "insns".
3333 (widen_leading): Likewise for local "last".
3334 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3335 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3336 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3337 (expand_parity): Likewise for locals "last" and "seq".
3338 (expand_ffs): Likewise for local "seq". Strengthen local
3339 "nonzero_label" from rtx to rtx_code_label *.
3340 (expand_absneg_bit): Strengthen local "insns" from rtx to
3341 rtx_insn *.
3342 (expand_unop_direct): Likewise for local "last".
3343 (expand_unop): Likewise for locals "last", "insns".
3344 (expand_abs_nojump): Likewise for local "last".
3345 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3346 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3347 rtx_insn *.
3348 (expand_copysign_absneg): Strengthen local "label" from rtx to
3349 rtx_code_label *.
3350 (expand_copysign_bit): Strengthen local "insns" from rtx to
3351 rtx_insn *.
3352 (struct no_conflict_data): Likewise for fields "first", "insn".
3353 (emit_libcall_block_1): Likewise for param "insns" and locals
3354 "next", "last", "insn".
3355 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3356 on "insns" when invoking emit_libcall_block_1. Ultimately we
3357 want to strengthen insns itself.
3358 (prepare_cmp_insn): Strengthen local "last" from rtx to
3359 rtx_insn *.
3360 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3361 (prepare_float_lib_cmp): Likewise for local "insns".
3362 (emit_conditional_move): Likewise for local "last".
3363 (emit_conditional_add): Likewise.
3364 (have_sub2_insn): Likewise for local "seq".
3365 (expand_float): Likewise for local "insns". Strengthen locals
3366 "label", "neglabel" from rtx to rtx_code_label *.
3367 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3368 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3369 (expand_fixed_convert): Likewise for local "insns" (to
3370 rtx_insn *).
3371 (expand_sfix_optab): Likewise for local "last".
3372 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3373 to rtx_code_label *.
3374 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3375 from rtx to rtx_insn *.
3376 (expand_atomic_fetch_op): Likewise for local "insn".
3377 (maybe_legitimize_operand_same_code): Likewise for local "last".
3378 (maybe_legitimize_operands): Likewise.
3379
3380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3381
3382 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3383 "insn" from rtx to rtx_insn *.
3384 (ps_rtl_insn): Likewise for return type.
3385 (doloop_register_get): Likewise for params "head", "tail" and
3386 locals "insn", "first_insn_not_to_check".
3387 (schedule_reg_move): Likewise for local "this_insn".
3388 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3389 of gen_move_insn for now.
3390 (reset_sched_times): Strengthen local "insn" from rtx to
3391 rtx_insn *.
3392 (permute_partial_schedule): Likewise.
3393 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3394 (dump_insn_location): Likewise for param "insn".
3395 (loop_canon_p): Likewise for local "insn".
3396 (sms_schedule): Likewise.
3397 (print_partial_schedule): Likewise.
3398 (ps_has_conflicts): Likewise.
3399
3400 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3401
3402 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3403 "tailp" from rtx * to rtx_insn **.
3404
3405 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3406 from rtx to rtx_insn *.
3407 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3408 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3409 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3410 rtx to rtx_insn *.
3411 * modulo-sched.c (const_iteration_count): Strengthen return type
3412 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3413 use of NULL_RTX with NULL when working with insns.
3414 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3415 to rtx_insn *.
3416 (sms_schedule): Likewise.
3417 * sched-rgn.c (init_ready_list): Likewise, also for locals
3418 "src_head" and "src_next_tail".
3419 (compute_block_dependences): Likewise.
3420 (free_block_dependencies): Likewise.
3421 (debug_rgn_dependencies): Likewise.
3422 (free_rgn_deps): Likewise.
3423 (compute_priorities): Likewise.
3424 (schedule_region): Likewise.
3425 * sel-sched.c (find_ebb_boundaries): Likewise.
3426
3427 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3428 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3429
3430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3431
3432 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3433 from rtx to rtx_insn *.
3434 (new_seginfo): Likewise for param "insn".
3435 (create_pre_exit): Likewise for locals "last_insn",
3436 "before_return_copy", "return_copy".
3437 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3438 "mode_set".
3439
3440 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3441
3442 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3443 from rtx to rtx_insn *.
3444 (lra_push_insn): Likewise for 1st param.
3445 (lra_push_insn_and_update_insn_regno_info): Likewise.
3446 (lra_pop_insn): Likewise for return type.
3447 (lra_invalidate_insn_data): Likewise for 1st param.
3448 (lra_set_insn_deleted): Likewise.
3449 (lra_delete_dead_insn): Likewise.
3450 (lra_process_new_insns): Likewise for first 3 params.
3451 (lra_set_insn_recog_data): Likewise for 1st param.
3452 (lra_update_insn_recog_data): Likewise.
3453 (lra_set_used_insn_alternative): Likewise.
3454 (lra_invalidate_insn_regno_info): Likewise.
3455 (lra_update_insn_regno_info): Likewise.
3456 (lra_former_scratch_operand_p): Likewise.
3457 (lra_eliminate_regs_1): Likewise.
3458 (lra_get_insn_recog_data): Likewise.
3459
3460 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3461 rtx to rtx_insn *.
3462
3463 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3464 "mv1" and "mv2".
3465 (substitute_within_insn): New.
3466 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3467 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3468 Replace call to "substitute" with call to substitute_within_insn.
3469
3470 * lra-constraints.c (curr_insn): Strengthen from rtx to
3471 rtx_insn *.
3472 (get_equiv_with_elimination): Likewise for param "insn".
3473 (match_reload): Strengthen params "before" and "after" from rtx *
3474 to rtx_insn **.
3475 (emit_spill_move): Likewise for return type. Add a checked cast
3476 to rtx_insn * on result of gen_move_insn for now.
3477 (check_and_process_move): Likewise for local "before". Replace
3478 NULL_RTX with NULL when referring to insns.
3479 (process_addr_reg): Strengthen params "before" and "after" from
3480 rtx * to rtx_insn **.
3481 (insert_move_for_subreg): Likewise.
3482 (simplify_operand_subreg): Strengthen locals "before" and "after"
3483 from rtx to rtx_insn *.
3484 (process_address_1): Strengthen params "before" and "after" from
3485 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3486 rtx to rtx_insn *.
3487 (process_address): Strengthen params "before" and "after" from
3488 rtx * to rtx_insn **.
3489 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3490 (curr_insn_transform): Strengthen locals "before" and "after"
3491 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3492 to insns.
3493 (loc_equivalence_callback): Update cast of "data", changing
3494 resulting type from rtx to rtx_insn *.
3495 (substitute_pseudo_within_insn): New.
3496 (inherit_reload_reg): Strengthen param "insn" from rtx to
3497 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3498 NULL when referring to insns. Add a checked cast to rtx_insn *
3499 when using usage_insn to invoke lra_update_insn_regno_info.
3500 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3501 likewise for locals "restore", "save". Add checked casts to
3502 rtx_insn * when using usage_insn to invoke
3503 lra_update_insn_regno_info and lra_process_new_insns. Replace
3504 NULL_RTX with NULL when referring to insns.
3505 (split_if_necessary): Strengthen param "insn" from rtx to
3506 rtx_insn *.
3507 (update_ebb_live_info): Likewise for params "head", "tail" and local
3508 "prev_insn".
3509 (get_last_insertion_point): Likewise for return type and local "insn".
3510 (get_live_on_other_edges): Likewise for local "last".
3511 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3512 "prev_insn", "next_insn", "restore".
3513 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3514 (undo_optional_reloads): Likewise for local "insn".
3515
3516 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3517 "insn".
3518 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3519 insns.
3520 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3521 rtx_insn *.
3522 (spill_pseudos): Likewise for local "insn".
3523 (init_elimination): Likewise.
3524 (process_insn_for_elimination): Likewise for param "insn".
3525
3526 * lra-lives.c (curr_insn): Likewise.;
3527
3528 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3529 (remove_pseudos): Likewise for param "insn".
3530 (spill_pseudos): Likewise for local "insn".
3531 (lra_final_code_change): Likewise for locals "insn", "curr".
3532
3533 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3534 (lra_set_insn_deleted): Likewise.
3535 (lra_delete_dead_insn): Likewise, and for local "prev".
3536 (new_insn_reg): Likewise for param "insn".
3537 (lra_set_insn_recog_data): Likewise.
3538 (lra_update_insn_recog_data): Likewise.
3539 (lra_set_used_insn_alternative): Likewise.
3540 (get_insn_freq): Likewise.
3541 (invalidate_insn_data_regno_info): Likewise.
3542 (lra_invalidate_insn_regno_info): Likewise.
3543 (lra_update_insn_regno_info): Likewise.
3544 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3545 vec<rtx_insn *>.
3546 (lra_push_insn_1): Strengthen param "insn" from rtx to
3547 rtx_insn *.
3548 (lra_push_insn): Likewise.
3549 (lra_push_insn_and_update_insn_regno_info): Likewise.
3550 (lra_pop_insn): Likewise for return type and local "insn".
3551 (push_insns): Likewise for params "from", "to", and local "insn".
3552 (setup_sp_offset): Likewise for params "from", "last" and locals
3553 "before", "insn".
3554 (lra_process_new_insns): Likewise for params "insn", "before",
3555 "after" and local "last".
3556 (struct sloc): Likewise for field "insn".
3557 (lra_former_scratch_operand_p): Likewise for param "insn".
3558 (remove_scratches): Likewise for locals "insn", "last".
3559 (check_rtl): Likewise for local "insn".
3560 (add_auto_inc_notes): Likewise for param "insn".
3561 (update_inc_notes): Likewise for local "insn".
3562 (lra): Replace NULL_RTX with NULL when referring to insn.
3563
3564 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3565
3566 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3567 to rtx_insn *.
3568 (resolve_reg_notes): Likewise.
3569 (resolve_simple_move): Likewise for return type, param "insn", and
3570 locals "insns", "minsn".
3571 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3572 (resolve_use): Likewise.
3573 (resolve_debug): Likewise.
3574 (find_decomposable_shift_zext): Likewise.
3575 (resolve_shift_zext): Likewise for return type, param "insn", and
3576 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3577 (decompose_multiword_subregs): Likewise for local "insn",
3578 "orig_insn", "decomposed_shift", "end".
3579
3580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3581
3582 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3583 param "insns" from rtx to rtx_insn *.
3584
3585 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3586 rtx to rtx_insn *.
3587 (struct iv_to_split): Likewise.
3588 (loop_exit_at_end_p): Likewise for local "insn".
3589 (split_edge_and_insert): Likewise for param "insns".
3590 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3591 and locals "seq", "jump".
3592 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3593 "branch_code"; update invocations of compare_and_jump_seq to
3594 eliminate NULL_RTX in favor of NULL.
3595 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3596 rtx to rtx_insn *.
3597 (reset_debug_uses_in_loop): Likewise.
3598 (analyze_insn_to_expand_var): Likewise for param "insn".
3599 (analyze_iv_to_split_insn): Likewise.
3600 (analyze_insns_in_loop): Likewise for local "insn".
3601 (insert_base_initialization): Likewise for param
3602 "insn" and local "seq".
3603 (split_iv): Likewise for param "insn" and local "seq".
3604 (expand_var_during_unrolling): Likewise for param "insn".
3605 (insert_var_expansion_initialization): Likewise for local "seq".
3606 (combine_var_copies_in_loop_exit): Likewise.
3607 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3608 "insn".
3609 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3610 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3611 "next".
3612
3613 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3614
3615 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3616 rtx_insn *.
3617 (iv_analyze_result): Likewise.
3618 (iv_analyze_expr): Likewise.
3619 (biv_p): Likewise.
3620
3621 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3622 local "def_insn" from rtx to rtx_insn *.
3623 (get_biv_step_1): Likewise for local "insn".
3624 (iv_analyze_expr): Likewise for param "insn".
3625 (iv_analyze_def): Likewise for local "insn".
3626 (iv_analyze_op): Likewise for param "insn".
3627 (iv_analyze): Likewise.
3628 (iv_analyze_result): Likewise.
3629 (biv_p): Likewise.
3630 (suitable_set_for_replacement): Likewise.
3631 (simplify_using_initial_values): Likewise for local "insn".
3632 (iv_number_of_iterations): Likewise for param "insn".
3633 (check_simple_exit): Add checked cast to rtx_insn when invoking
3634 iv_number_of_iterations for now (until get_condition is
3635 strengthened).
3636
3637 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3638 "insn" from rtx to rtx_insn *.
3639 (analyze_insns_in_loop): Likewise for local "insn".
3640
3641 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3642
3643 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3644 to rtx_insn *.
3645 (struct invariant): Likewise.
3646 (hash_invariant_expr_1): Likewise for param "insn".
3647 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3648 (find_exits): Likewise for local "insn".
3649 (create_new_invariant): Likewise for param "insn".
3650 (check_dependencies): Likewise.
3651 (find_invariant_insn): Likewise.
3652 (record_uses): Likewise.
3653 (find_invariants_insn): Likewise.
3654 (find_invariants_bb): Likewise for local "insn".
3655 (get_pressure_class_and_nregs): Likewise for param "insn".
3656 (calculate_loop_reg_pressure): Likewise for local "insn".
3657
3658 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3659
3660 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3661 to rtx_insn *.
3662 (add_test): Likewise for locals "seq", "jump".
3663 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3664
3665 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3666
3667 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3668 rtx_insn *.
3669 (rebuild_jump_labels_chain): Likewise for param "chain".
3670
3671 * cfgexpand.c (pass_expand::execute): Add checked cast to
3672 rtx_insn * when calling rebuild_jump_labels_chain in region where
3673 we know e->insns.r is non-NULL.
3674
3675 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3676 rtx_insn *.
3677 (rebuild_jump_labels): Likewise.
3678 (rebuild_jump_labels_chain): Likewise for param "chain".
3679 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3680 (init_label_info): Likewise for param "f".
3681 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3682 "prev_nonjump_insn".
3683 (mark_all_labels): Likewise for param "f" and locals "insn",
3684 "prev_nonjump_insn".
3685
3686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3687
3688 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3689 from rtx to rtx_insn *insn.
3690 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3691 (ira_add_allocno_copy): Likewise.
3692 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3693 rtx to rtx_insn *.
3694 (ira_create_copy): Likewise.
3695 (ira_add_allocno_copy): Likewise.
3696 (create_bb_allocnos): Likewise for local "insn".
3697 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3698 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3699 process_regs_for_copy for rtx_insn * param.
3700 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3701 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3702 process_regs_for_copy for rtx_insn * param.
3703 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3704 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3705 (record_operand_costs): Likewise.
3706 (scan_one_insn): Likewise for return type, and for param "insn".
3707 (process_bb_for_costs): Likewise for local "insn".
3708 (process_bb_node_for_hard_reg_moves): Likewise.
3709 * ira-emit.c (struct move): Likewise for field "insn".
3710 (create_move): Eliminate use of NULL_RTX when dealing with an
3711 rtx_insn *.
3712 (emit_move_list): Strengthen return type and locals "result",
3713 "insn" from rtx to rtx_insn *insn.
3714 (emit_moves): Likewise for locals "insns", "tmp".
3715 (ira_emit): Likewise for local "insn".
3716 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3717 "insn".
3718 (find_call_crossed_cheap_reg): Likewise.
3719 (process_bb_node_lives): Likewise for local "insn".
3720 * ira.c (decrease_live_ranges_number): Likewise.
3721 (compute_regs_asm_clobbered): Likewise.
3722 (build_insn_chain): Likewise.
3723 (find_moveable_pseudos): Likewise, also locals "def_insn",
3724 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3725 to rtx_insn **. Add a checked cast when assigning from
3726 "closest_use" into closest_uses array in a region where we know
3727 it's a non-NULL insn.
3728 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3729 to rtx_insn *.
3730 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3731 "last_interesting_insn", "uin".
3732 (move_unallocated_pseudos): Likewise for locals "def_insn",
3733 "move_insn", "newinsn".
3734
3735 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3736
3737 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3738 Strengthen locals "done_label", "do_error" from rtx to
3739 rtx_code_label *.
3740 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3741 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3742 rtx_code_label *.
3743 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3744 "done_label", "do_error" to rtx_code_label * and local "last" to
3745 rtx_insn *.
3746 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3747 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3748 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3749 "after_lopart_neg", "do_overflow", "hipart_different" to
3750 rtx_code_label * and local "last" to rtx_insn *.
3751
3752 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3753
3754 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3755 "insn" and "move_insn" from rtx to rtx_insn *.
3756
3757 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3758
3759 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3760 rtx_insn *.
3761 (cheap_bb_rtx_cost_p): Likewise.
3762 (first_active_insn): Likewise for return type and local "insn".
3763 (last_active_insn): Likewise for return type and locals "insn",
3764 "head".
3765 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3766 "insn_b".
3767 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3768 "seq".
3769 (noce_try_move): Likewise for local "seq".
3770 (noce_try_store_flag): Likewise.
3771 (noce_try_store_flag_constants): Likewise.
3772 (noce_try_addcc): Likewise.
3773 (noce_try_store_flag_mask): Likewise.
3774 (noce_try_cmove): Likewise.
3775 (noce_try_minmax): Likewise.
3776 (noce_try_abs): Likewise.
3777 (noce_try_sign_mask): Likewise.
3778 (noce_try_bitop): Likewise.
3779 (noce_can_store_speculate_p): Likewise for local "insn".
3780 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3781 seq".
3782 (check_cond_move_block): Likewise for local "insn".
3783 (cond_move_convert_if_block): Likewise.
3784 (cond_move_process_if_block): Likewise for locals "seq",
3785 "loc_insn".
3786 (noce_find_if_block): Likewise for local "jump".
3787 (merge_if_block): Likewise for local "last".
3788 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3789 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3790 (block_has_only_trap): Likewise for return type and local "trap".
3791 (find_if_case_1): Likewise for local "jump".
3792 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3793 "insn".
3794
3795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3796
3797 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3798 "last_insn", "loop_end" from rtx to rtx_insn *.
3799
3800 * hw-doloop.c (scan_loop): Likewise for local "insn".
3801 (discover_loop): Likewise for param "tail_insn".
3802 (discover_loops): Likewise for local "tail".
3803
3804 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3805 cast to rtx_insn * when assigning from an rtx local to a
3806 hwloop_info's "last_insn" field.
3807
3808 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3809
3810 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3811 (add_delay_dependencies): Strengthen local "pro" from rtx to
3812 rtx_insn *.
3813 (recompute_todo_spec): Likewise.
3814 (dep_cost_1): Likewise for locals "insn", "used".
3815 (schedule_insn): Likewise for local "dbg".
3816 (schedule_insn): Likewise for locals "pro", "next".
3817 (unschedule_insns_until): Likewise for local "con".
3818 (restore_pattern): Likewise for local "next".
3819 (estimate_insn_tick): Likewise for local "pro".
3820 (resolve_dependencies): Likewise for local "next".
3821 (fix_inter_tick): Likewise.
3822 (fix_tick_ready): Likewise for local "pro".
3823 (add_to_speculative_block): Likewise for locals "check", "twin",
3824 "pro".
3825 (sched_extend_bb): Likewise for locals "end", "insn".
3826 (init_before_recovery): Likewise for local "x".
3827 (sched_create_recovery_block): Likewise for local "barrier".
3828 (create_check_block_twin): Likewise for local "pro".
3829 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3830 "consumer".
3831 (unlink_bb_notes): Update for change to type of bb_header.
3832 Strengthen locals "prev", "label", "note", "next" from rtx to
3833 rtx_insn *.
3834 (clear_priorities): Likewise for local "pro".
3835
3836 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3837
3838 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3839 rtx_insn *.
3840 (test_insn): Likewise for this global.
3841 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3842 const rtx_insn *.
3843 (oprs_anticipatable_p): Likewise.
3844 (oprs_available_p): Likewise.
3845 (insert_expr_in_table): Strengthen param "insn" from rtx to
3846 rtx_insn *.
3847 (hash_scan_set): Likewise.
3848 (hash_scan_clobber): Likewise.
3849 (hash_scan_call): Likewise.
3850 (hash_scan_insn): Likewise.
3851 (compute_hash_table_work): Likewise for local "insn".
3852 (process_insert_insn): Likewise for return type and local "pat".
3853 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3854 "pat", "pat_end", "maybe_cc0_setter".
3855 (pre_edge_insert): Likewise for local "insn".
3856 (pre_insert_copy_insn): Likewise for param "insn".
3857 (pre_insert_copies): Likewise for local "insn".
3858 (struct set_data): Likewise for field "insn".
3859 (single_set_gcse): Likewise for param "insn".
3860 (gcse_emit_move_after): Likewise.
3861 (pre_delete): Likewise for local "insn".
3862 (update_bb_reg_pressure): Likewise for param "from" and local
3863 "insn".
3864 (should_hoist_expr_to_dom): Likewise for param "from".
3865 (hoist_code): Likewise for local "insn".
3866 (get_pressure_class_and_nregs): Likewise for param "insn".
3867 (calculate_bb_reg_pressure): Likewise for local "insn".
3868 (compute_ld_motion_mems): Likewise.
3869
3870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3871
3872 * genpeep.c (main): Rename param back from "uncast_ins1" to
3873 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3874 checked cast.
3875
3876 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3877
3878 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3879
3880 PR target/62195
3881 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3882 documentation to state it is only for VSX operations.
3883
3884 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3885 constraint only active if VSX.
3886
3887 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3888 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3889 (lfiwzx): Likewise.
3890
3891 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3892
3893 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3894 Strengthen local "insn" from rtx to rtx_insn *.
3895 (use_killed_between): Likewise for param "target_insn".
3896 (all_uses_available_at): Likewise for param "target_insn" and
3897 local "next".
3898 (update_df_init): Likewise for params "def_insn", "insn".
3899 (update_df): Likewise for param "insn".
3900 (try_fwprop_subst): Likewise for param "def_insn" and local
3901 "insn".
3902 (free_load_extend): Likewise for param "insn".
3903 (forward_propagate_subreg): Likewise for param "def_insn" and
3904 local "use_insn".
3905 (forward_propagate_asm): Likewise for param "def_insn" and local
3906 "use_insn".
3907 (forward_propagate_and_simplify): Likewise for param "def_insn"
3908 and local "use_insn".
3909 (forward_propagate_into): Likewise for locals "def_insn" and
3910 "use_insn".
3911
3912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3913
3914 * function.c (emit_initial_value_sets): Strengthen local "seq"
3915 from rtx to rtx_insn *.
3916 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3917 local "seq".
3918 (instantiate_virtual_regs): Likewise for local "insn".
3919 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3920 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3921 (expand_function_end): Likewise for locals "insn" and "seq".
3922 (epilogue_done): Likewise for local "insn".
3923 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3924 "last", "trial".
3925 (reposition_prologue_and_epilogue_notes): Likewise for locals
3926 "insn", "last", "note", "first".
3927 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3928 (pass_match_asm_constraints::execute): Likewise for local "insn".
3929
3930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3931
3932 * output.h (final_scan_insn): Strengthen return type from rtx to
3933 rtx_insn *.
3934 (final_forward_branch_p): Likewise for param.
3935 (current_output_insn): Likewise for this global.
3936
3937 * final.c (rtx debug_insn): Likewise for this variable.
3938 (current_output_insn): Likewise.
3939 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3940 adding "insn" back in as an rtx_insn * with a checked cast, so
3941 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3942 first param.
3943 (compute_alignments): Strengthen local "label" from rtx to
3944 rtx_insn *.
3945 (shorten_branches): Rename param from "first" to "uncast_first",
3946 introducing a new local rtx_insn * "first" using a checked cast to
3947 effectively strengthen "first" from rtx to rtx_insn * without
3948 affecting the type signature. Strengthen locals "insn", "seq",
3949 "next", "label" from rtx to rtx_insn *.
3950 (change_scope): Strengthen param "orig_insn" and local "insn" from
3951 rtx to rtx_insn *.
3952 (final_start_function): Rename param from "first" to "uncast_first",
3953 introducing a new local rtx_insn * "first" using a checked cast to
3954 effectively strengthen "first" from rtx to rtx_insn * without
3955 affecting the type signature. Strengthen local "insn" from rtx to
3956 rtx_insn *.
3957 (dump_basic_block_info): Strengthen param "insn" from rtx to
3958 rtx_insn *.
3959 (final): Rename param from "first" to "uncast_first",
3960 introducing a new local rtx_insn * "first" using a checked cast to
3961 effectively strengthen "first" from rtx to rtx_insn * without
3962 affecting the type signature. Strengthen locals "insn", "next"
3963 from rtx to rtx_insn *.
3964 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3965 rtx_insn *.
3966 (call_from_call_insn): Strengthen param "insn" from rtx to
3967 rtx_call_insn *.
3968 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3969 introducing a new local rtx_insn * "insn" using a checked cast to
3970 effectively strengthen "insn" from rtx to rtx_insn * without
3971 affecting the type signature. Strengthen return type and locals
3972 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3973 now-redundant checked cast to rtx_insn * from both invocations of
3974 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3975 introducing a local "call_insn" for use when invoking
3976 call_from_call_insn.
3977 (notice_source_line): Strengthen param "insn" from rtx to
3978 rtx_insn *.
3979 (leaf_function_p): Likewise for local "insn".
3980 (final_forward_branch_p): Likewise.
3981 (leaf_renumber_regs): Likewise for param "first".
3982 (rest_of_clean_state): Likewise for locals "insn" and "next".
3983 (self_recursive_call_p): Likewise for param "insn".
3984 (collect_fn_hard_reg_usage): Likewise for local "insn".
3985 (get_call_fndecl): Likewise for param "insn".
3986 (get_call_cgraph_rtl_info): Likewise.
3987 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3988 introducing a new local rtx_insn * "insn" using a checked cast to
3989 effectively strengthen "insn" from rtx to rtx_insn * without
3990 affecting the type signature.
3991
3992 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3993 cast when assigning from param "insn" to current_output_insn.
3994 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3995 so that we can assign it back to current_output_insn.
3996
3997 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3998
3999 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4000 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4001 atmxt540s and atmxt540sreva devices.
4002 * config/avr/avr-tables.opt: Regenerate.
4003 * config/avr/t-multilib: Regenerate.
4004 * doc/avr-mmcu.texi: Regenerate.
4005
4006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4007
4008 * expr.c (convert_move): Strengthen local "insns" from rtx to
4009 rtx_insn *.
4010 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4011 "top_label" from rtx to rtx_code_label *.
4012 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4013 rtx_insn *.
4014 (emit_single_push_insn): Likewise for locals "prev", "last".
4015 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4016 to rtx_code_label *.
4017 (store_constructor): Likewise for locals "loop_start", "loop_end".
4018 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4019 rtx_insn *.
4020 (expand_expr_real_2): Likewise.
4021 (expand_expr_real_1): Strengthen local "label" from rtx to
4022 rtx_code_label *.
4023
4024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4025
4026 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4027 from rtx to rtx_insn *.
4028 (store_bit_field_1): Likewise.
4029 (extract_bit_field_1): Likewise.
4030 (expand_mult_const): Likewise for local "insns".
4031 (expmed_mult_highpart): Strengthen local "label" from rtx to
4032 rtx_code_label *.
4033 (expand_smod_pow2): Likewise.
4034 (expand_sdiv_pow2): Likewise.
4035 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4036 rtx_insn *. Strengthen locals "label", "label1", "label2",
4037 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4038 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4039 (emit_store_flag): Likewise.
4040 (emit_store_flag_force): Strengthen local "label" from rtx to
4041 rtx_code_label *.
4042 (do_cmp_and_jump): Likewise for param "label".
4043
4044 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4045
4046 * explow.c (force_reg): Strengthen local "insn" from rtx to
4047 rtx_insn *.
4048 (adjust_stack_1): Likewise.
4049 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4050 "final_label", "available_label", "space_available" from rtx to
4051 rtx_code_label *.
4052 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4053 (anti_adjust_stack_and_probe): Likewise.
4054
4055 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4056
4057 * except.h (sjlj_emit_function_exit_after): Strengthen param
4058 "after" from rtx to rtx_insn *. This is only called with
4059 result of get_last_insn (in function.c) so type-change should be
4060 self-contained.
4061
4062 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4063 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4064 to rtx_insn *. These fields are only used from except.c so this
4065 type-change should be self-contained to this patch.
4066
4067 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4068 local "last" from rtx to rtx_insn *.
4069 (dw2_build_landing_pads): Likewise for local "seq".
4070 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4071 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4072 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4073 rtx to rtx_insn *.
4074 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4075 to rtx_insn *.
4076 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4077 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4078 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4079 referring to an insn. Strengthen local "dispatch_label" from
4080 rtx to rtx_code_label *.
4081 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4082 rtx_insn *.
4083 (expand_eh_return): Strengthen local "around_label" from
4084 rtx to rtx_code_label *.
4085 (convert_to_eh_region_ranges): Strengthen locals "iter",
4086 "last_action_insn", "first_no_action_insn",
4087 "first_no_action_insn_before_switch",
4088 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4089
4090 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4091
4092 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4093 from rtx to rtx_insn *.
4094 (cached_next_real_insn): Likewise.
4095 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4096 working with insns.
4097 (dwarf2out_var_location): Strengthen locals "next_real",
4098 "next_note", "expected_next_loc_note", "last_start", "insn" from
4099 rtx to rtx_insn *.
4100
4101 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4102
4103 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4104 from rtx to rtx_insn *.
4105 (create_pseudo_cfg): Likewise for local "insn".
4106
4107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4108
4109 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4110 from rtx to rtx_insn *.
4111 (df_bb_regno_last_def_find): Likewise.
4112
4113 * df-problems.c (df_rd_bb_local_compute): Likewise.
4114 (df_lr_bb_local_compute): Likewise.
4115 (df_live_bb_local_compute): Likewise.
4116 (df_chain_remove_problem): Likewise.
4117 (df_chain_create_bb): Likewise.
4118 (df_word_lr_bb_local_compute): Likewise.
4119 (df_remove_dead_eq_notes): Likewise for param "insn".
4120 (df_note_bb_compute): Likewise for local "insn".
4121 (simulate_backwards_to_point): Likewise.
4122 (df_md_bb_local_compute): Likewise.
4123
4124 * df-scan.c (df_scan_free_bb_info): Likewise.
4125 (df_scan_start_dump): Likewise.
4126 (df_scan_start_block): Likewise.
4127 (df_install_ref_incremental): Likewise for local "insn".
4128 (df_insn_rescan_all): Likewise.
4129 (df_reorganize_refs_by_reg_by_insn): Likewise.
4130 (df_reorganize_refs_by_insn_bb): Likewise.
4131 (df_recompute_luids): Likewise.
4132 (df_bb_refs_record): Likewise.
4133 (df_update_entry_exit_and_calls): Likewise.
4134 (df_bb_verify): Likewise.
4135
4136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4137
4138 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4139 "first_note" from rtx to rtx_insn *.
4140 (get_node_of_insn): Likewise for param 2 "insn".
4141 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4142
4143 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4144 rtx_insn *.
4145 (mem_write_insn_p): Likewise.
4146 (mem_access_insn_p): Likewise.
4147 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4148 (def_has_ccmode_p): Likewise for param "insn".
4149 (add_cross_iteration_register_deps): Likewise for locals
4150 "def_insn" and "use_insn".
4151 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4152 (build_intra_loop_deps): Likewise for local "src_insn".
4153 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4154 to rtx_insn *.
4155 (get_node_of_insn): Likewise for param "insn".
4156
4157 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4158
4159 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4160 (deletable_insn_p): Strengthen param "insn" from rtx to
4161 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4162 find_call_stack_args, since this is guarded by CALL_P (insn).
4163 (marked_insn_p): Strengthen param "insn" from rtx to
4164 rtx_insn *.
4165 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4166 invoking find_call_stack_args, since this is guarded by
4167 CALL_P (insn).
4168 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4169 rtx_insn *; we know this is an insn since this was called by
4170 mark_nonreg_stores.
4171 (mark_nonreg_stores_2): Likewise.
4172 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4173 rtx_insn *.
4174 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4175 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4176 to rtx_insn *.
4177 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4178 from rtx to rtx_insn *.
4179 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4180 "next", "ref_insn".
4181 (delete_unmarked_insns): Likewise for locals "insn", "next".
4182 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4183 (mark_reg_dependencies): Likewise for param "insn".
4184 (rest_of_handle_ud_dce): Likewise for local "insn".
4185 (word_dce_process_block): Likewise.
4186 (dce_process_block): Likewise.
4187
4188 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4189
4190 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4191 from rtx to rtx_insn *.
4192 (struct change_cc_mode_args): Likewise for field "insn".
4193 (this_insn): Strengthen from rtx to rtx_insn *.
4194 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4195 with insn.
4196 (validate_canon_reg): Strengthen param "insn" from rtx to
4197 rtx_insn *.
4198 (canon_reg): Likewise.
4199 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4200 dealing with insn.
4201 (record_jump_equiv): Strengthen param "insn" from rtx to
4202 rtx_insn *.
4203 (try_back_substitute_reg): Likewise, also for locals "prev",
4204 "bb_head".
4205 (find_sets_in_insn): Likewise for param "insn".
4206 (canonicalize_insn): Likewise.
4207 (cse_insn): Likewise. Add a checked cast.
4208 (invalidate_from_clobbers): Likewise for param "insn".
4209 (invalidate_from_sets_and_clobbers): Likewise.
4210 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4211 dealing with insn.
4212 (cse_prescan_path): Strengthen local "insn" from rtx to
4213 rtx_insn *.
4214 (cse_extended_basic_block): Likewise for locals "insn" and
4215 "prev_insn".
4216 (cse_main): Likewise for param "f".
4217 (check_for_label_ref): Likewise for local "insn".
4218 (set_live_p): Likewise for second param ("insn").
4219 (insn_live_p): Likewise for first param ("insn") and for local
4220 "next".
4221 (cse_change_cc_mode_insn): Likewise for first param "insn".
4222 (cse_change_cc_mode_insns): Likewise for first and second params
4223 "start" and "end".
4224 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4225 and "end".
4226 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4227 "cc_src_insn".
4228
4229 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4230 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4231 Anna Tikhonova <anna.tikhonova@intel.com>
4232 Ilya Tocar <ilya.tocar@intel.com>
4233 Andrey Turetskiy <andrey.turetskiy@intel.com>
4234 Ilya Verbin <ilya.verbin@intel.com>
4235 Kirill Yukhin <kirill.yukhin@intel.com>
4236 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4237
4238 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4239 New.
4240 * config/i386/sse.md
4241 (define_mode_iterator VI248_AVX2): Delete.
4242 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4243 (define_mode_iterator VI48_AVX2): Ditto.
4244 (define_insn <shift_insn><mode>3): Delete.
4245 (define_insn "<shift_insn><mode>3<mask_name>" with
4246 VI2_AVX2_AVX512BW): New.
4247 (define_insn "<shift_insn><mode>3<mask_name>" with
4248 VI48_AVX2): Ditto.
4249
4250 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4251 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4252 Anna Tikhonova <anna.tikhonova@intel.com>
4253 Ilya Tocar <ilya.tocar@intel.com>
4254 Andrey Turetskiy <andrey.turetskiy@intel.com>
4255 Ilya Verbin <ilya.verbin@intel.com>
4256 Kirill Yukhin <kirill.yukhin@intel.com>
4257 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4258
4259 * config/i386/sse.md
4260 (define_mode_iterator VI4F_BRCST32x2): New.
4261 (define_mode_attr 64x2_mode): Ditto.
4262 (define_mode_attr 32x2mode): Ditto.
4263 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4264 with VI4F_BRCST32x2): Ditto.
4265 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4266 with V16FI mode iterator): Ditto.
4267 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4268 with V16FI): Ditto.
4269 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4270 with VI8F_BRCST64x2): Ditto.
4271
4272 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4273 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4274 Anna Tikhonova <anna.tikhonova@intel.com>
4275 Ilya Tocar <ilya.tocar@intel.com>
4276 Andrey Turetskiy <andrey.turetskiy@intel.com>
4277 Ilya Verbin <ilya.verbin@intel.com>
4278 Kirill Yukhin <kirill.yukhin@intel.com>
4279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4280
4281 * config/i386/sse.md
4282 (define_mode_iterator VI8_AVX512VL): New.
4283 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4284
4285 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4286
4287 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4288 (define_mode_iterator V48_AVX512VL): New.
4289 (define_mode_iterator V12_AVX512VL): Ditto.
4290 (define_insn <avx512>_load<mode>_mask): Split into two similar
4291 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4292 Refactor output template.
4293 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4294
4295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4296
4297 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4298 rtx_insn *.
4299 (reg_available_p): Likewise for param "insn".
4300 (insert_set_in_table): Likewise.
4301 (hash_scan_set): Likewise.
4302 (hash_scan_insn): Likewise.
4303 (make_set_regs_unavailable): Likewise.
4304 (compute_hash_table_work): Likewise for local "insn".
4305 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4306 const rtx_insn *.
4307 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4308 (try_replace_reg): Likewise.
4309 (find_avail_set): Likewise.
4310 (cprop_jump): Likewise for params "setcc", "jump".
4311 (constprop_register): Likewise for param "insn".
4312 (cprop_insn): Likewise.
4313 (do_local_cprop): Likewise.
4314 (local_cprop_pass): Likewise for local "insn".
4315 (bypass_block): Likewise for params "setcc" and "jump".
4316 (bypass_conditional_jumps): Likewise for locals "setcc" and
4317 "insn".
4318 (one_cprop_pass): Likewise for local "insn".
4319
4320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4321
4322 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4323 from rtx to rtx_insn *.
4324 (struct comparison): Likewise, also for field "prev_clobber".
4325 (conforming_compare): Likewise for param "insn".
4326 (arithmetic_flags_clobber_p): Likewise.
4327 (find_flags_uses_in_insn): Likewise.
4328 (find_comparison_dom_walker::before_dom_children): Likewise for
4329 locals "insn", "next", "last_clobber".
4330 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4331
4332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4333
4334 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4335 "insn" from rtx to rtx_insn *.
4336 (single_set_for_csa): Likewise for param "insn".
4337 (record_one_stack_ref): Likewise.
4338 (try_apply_stack_adjustment): Likewise.
4339 (struct record_stack_refs_data): Likewise for field "insn".
4340 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4341 (prev_active_insn_bb): Likewise for return type and param "insn".
4342 (next_active_insn_bb): Likewise.
4343 (force_move_args_size_note): Likewise for params "prev" and "last"
4344 and locals "test", "next_candidate", "prev_candidate".
4345 (combine_stack_adjustments_for_block): Strengthen locals
4346 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4347 rtx_insn *.
4348
4349 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4350
4351 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4352 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4353 (subst_insn): Likewise for this variable.
4354 (added_links_insn): Likewise.
4355 (struct insn_link): Likewise for field "insn".
4356 (alloc_insn_link): Likewise for param "insn".
4357 (struct undobuf): Likewise for field "other_insn".
4358 (find_single_use): Likewise for param "insn" and local "next".
4359 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4360 (delete_noop_moves): Likewise for locals "insn", "next".
4361 (create_log_links): Likewise for locals "insn", "use_insn".
4362 Strengthen local "next_use" from rtx * to rtx_insn **.
4363 (insn_a_feeds_b): Likewise for params "a", "b".
4364 (combine_instructions): Likewise for param "f" and locals "insn",
4365 "next", "prev", "first", "last_combined_insn", "link", "link1",
4366 "temp". Replace use of NULL_RTX with NULL when referring to
4367 insns.
4368 (setup_incoming_promotions): Likewise for param "first"
4369 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4370 (can_combine_p): Likewise for params "insn", "i3", "pred",
4371 "pred2", "succ", "succ2" and for local "p".
4372 (combinable_i3pat): Likewise for param "i3".
4373 (cant_combine_insn_p): Likewise for param "insn".
4374 (likely_spilled_retval_p): Likewise.
4375 (adjust_for_new_dest): Likewise.
4376 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4377 (try_combine): Likewise for return type and for params "i3", "i2",
4378 "i1", "i0", "last_combined_insn", and for locals "insn",
4379 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4380 "i0_insn". Eliminate local "tem" in favor of new locals
4381 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4382 checked cast for now to rtx_insn * on the return type of
4383 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4384 insns.
4385 (find_split_point): Strengthen param "insn" from rtx to
4386 rtx_insn *.
4387 (simplify_set): Likewise for local "other_insn".
4388 (recog_for_combine): Likewise for param "insn".
4389 (record_value_for_reg): Likewise.
4390 (record_dead_and_set_regs_1): Likewise for local
4391 "record_dead_insn".
4392 (record_dead_and_set_regs): Likewise for param "insn".
4393 (record_promoted_value): Likewise.
4394 (check_promoted_subreg): Likewise.
4395 (get_last_value_validate): Likewise.
4396 (reg_dead_at_p): Likewise.
4397 (move_deaths): Likewise for param "to_insn".
4398 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4399 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4400 in favor of new locals "tem_note" and "tem_insn", the latter being
4401 an rtx_insn *.
4402 (distribute_links): Strengthen locals "place", "insn" from rtx to
4403 rtx_insn *.
4404
4405 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4406
4407 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4408 than a const_rtx.
4409 (can_delete_label_p): Require a const rtx_code_label * rather than
4410 a const_rtx.
4411 (delete_insn): Add checked cast to rtx_code_label * when we know
4412 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4413 rtx to rtx_insn *.
4414 (delete_insn_chain): Strengthen locals "prev" and "current" from
4415 rtx to rtx_insn *. Add a checked cast when assigning from
4416 "finish" (strengthening the params will come later). Add a
4417 checked cast to rtx_note * in region where we know
4418 NOTE_P (current).
4419 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4420 rtx_insn *.
4421 (compute_bb_for_insn): Likewise.
4422 (free_bb_for_insn): Likewise for local "insn".
4423 (compute_bb_for_insn): Likewise.
4424 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4425 local "insn" from rtx to rtx_insn *
4426 (flow_active_insn_p): Require a const rtx_insn * rather than a
4427 const_rtx.
4428 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4429 rtx_insn *.
4430 (can_fallthru): Likewise for locals "insn" and "insn2".
4431 (bb_note): Likewise for local "note".
4432 (first_insn_after_basic_block_note): Likewise for local "note" and
4433 for return type.
4434 (rtl_split_block): Likewise for locals "insn" and "next".
4435 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4436 "end".
4437 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4438 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4439 "prev", "tmp".
4440 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4441 them), "kill_from", "barrier", "new_insn".
4442 (patch_jump_insn): Likewise for params "insn", "old_label".
4443 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4444 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4445 "old_label", "new_label".
4446 (rtl_tidy_fallthru_edge): Likewise for local "q".
4447 (rtl_split_edge): Likewise for locals "before", "last".
4448 (commit_one_edge_insertion): Likewise for locals "before",
4449 "after", "insns", "tmp", "last", adding a checked cast where
4450 currently necessary.
4451 (commit_edge_insertions): Likewise.
4452 (rtl_dump_bb): Likewise for locals "insn", "last".
4453 (print_rtl_with_bb): Likewise for local "x".
4454 (rtl_verify_bb_insns): Likewise for local "x".
4455 (rtl_verify_bb_pointers): Likewise for local "insn".
4456 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4457 "head", "end".
4458 (rtl_verify_fallthru): Likewise for local "insn".
4459 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4460 (purge_dead_edges): Likewise for local "insn".
4461 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4462 (skip_insns_after_block): Likewise for return type and for locals
4463 "insn", "last_insn", "next_head", "prev".
4464 (record_effective_endpoints): Likewise for locals "next_insn",
4465 "insn", "end".
4466 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4467 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4468 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4469 (duplicate_insn_chain): For now, add checked cast from rtx to
4470 rtx_insn * when returning insn.
4471 (cfg_layout_duplicate_bb): Likewise for local "insn".
4472 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4473 "prev", "remaints".
4474 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4475 (rtl_block_empty_p): Likewise.
4476 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4477 "split_point", "last".
4478 (rtl_block_ends_with_call_p): Likewise for local "insn".
4479 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4480 const rtx_insn *.
4481 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4482 "split_at_insn" from rtx to rtx_insn *.
4483 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4484 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4485 to const rtx_insn *.
4486 (rtl_account_profile_record): Likewise.
4487
4488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4489
4490 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4491 rtx to rtx_insn *.
4492 (average_num_loop_insns): Likewise.
4493 (init_set_costs): Likewise for local "seq".
4494 (seq_cost): Likewise for param "seq", from const_rtx to const
4495 rtx_insn *.
4496
4497 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4498
4499 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4500 rtx to rtx_insn *.
4501
4502 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4503
4504 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4505 "f1" and "f2" from rtx * to rtx_insn **.
4506 (flow_find_head_matching_sequence): Likewise.
4507
4508 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4509 "cbranch_insn" from rtx to rtx_insn *.
4510 (thread_jump): Likewise for local "insn".
4511 (try_forward_edges): Likewise for local "last".
4512 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4513 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4514 "real_b_end".
4515 (can_replace_by): Likewise for params "i1", "i2".
4516 (old_insns_match_p): Likewise.
4517 (merge_notes): Likewise.
4518 (walk_to_nondebug_insn): Likewise for param "i1".
4519 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4520 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4521 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4522 (flow_find_head_matching_sequence): Strengthen params "f1" and
4523 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4524 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4525 rtx_insn *.
4526 (outgoing_edges_match): Likewise for locals "last1", "last2".
4527 (try_crossjump_to_edge): Likewise for local "insn".
4528 Replace call to for_each_rtx with for_each_rtx_in_insn.
4529
4530 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4531 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4532 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4533 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4534 (try_optimize_cfg): Strengthen local "last" from rtx to
4535 rtx_insn *.
4536 (delete_dead_jumptables): Likewise for locals "insn", "next",
4537 "label".
4538
4539 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4540 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4541 "rtx else_first_tail", to reflect the basic-block.h changes above.
4542
4543 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4544
4545 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4546 rtx_insn *.
4547 (purge_dead_tablejump_edges): Likewise.
4548 (find_bb_boundaries): Likewise for locals "insn", "end",
4549 "flow_transfer_insn".
4550
4551 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4552
4553 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4554 "ins" and "prev" from rtx to rtx_insn *.
4555
4556 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4557
4558 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4559 rtx_insn *.
4560 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4561 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4562 "scan_start".
4563 (load_register_parameters): Likewise for local "before_arg".
4564 (check_sibcall_argument_overlap): Likewise for param "insn".
4565 (expand_call): Likewise for locals "normal_call_insns",
4566 "tail_call_insns", "insns", "before_call", "after_args",
4567 "before_arg", "last", "prev". Strengthen one of the "last" from
4568 rtx to rtx_call_insn *.
4569 (fixup_tail_calls): Strengthen local "insn" from rtx to
4570 rtx_insn *.
4571 (emit_library_call_value_1): Likewise for locals "before_call" and
4572 "last".
4573
4574 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4575
4576 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4577 and "last" from rtx to rtx_insn *.
4578 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4579 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4580 rtx_call_insn *.
4581 (expand_errno_check): Strengthen local "lab" from rtx to
4582 rtx_code_label *.
4583 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4584 rtx_insn *.
4585 (expand_builtin_mathfn_2): Likewise.
4586 (expand_builtin_mathfn_ternary): Likewise.
4587 (expand_builtin_mathfn_3): Likewise.
4588 (expand_builtin_interclass_mathfn): Likewise for local "last".
4589 (expand_builtin_int_roundingfn): Likewise for local "insns".
4590 (expand_builtin_int_roundingfn_2): Likewise.
4591 (expand_builtin_strlen): Likewise for local "before_strlen".
4592 (expand_builtin_strncmp): Likewise for local "seq".
4593 (expand_builtin_signbit): Likewise for local "last".
4594 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4595 from rtx to rtx_code_label *.
4596 (expand_stack_restore): Strengthen local "prev" from rtx to
4597 rtx_insn *.
4598
4599 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4600
4601 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4602 to rtx_insn *.
4603 (struct btr_def_s): Likewise.
4604 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4605 const rtx_insn *.
4606 (add_btr_def): Likewise.
4607 (new_btr_user): Likewise.
4608 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4609 rtx to rtx_insn *.
4610 (link_btr_uses): Likewise.
4611 (move_btr_def): Likewise for locals "insp", "old_insn",
4612 "new_insn". Add checked cast to rtx_insn * for now on result of
4613 gen_move_insn.
4614 (can_move_up): Strengthen param "insn" from const_rtx to
4615 const rtx_insn *.
4616
4617 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4618
4619 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4620 rtx_insn *.
4621 (get_uncond_jump_length): Likewise for locals "label", "jump".
4622 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4623 "jump", "insn".
4624 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4625 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4626 (find_jump_block): Likewise for local "insn".
4627 (fix_crossing_conditional_branches): Likewise for locals
4628 "old_jump", "new_jump".
4629 (fix_crossing_unconditional_branches): Likewise for locals
4630 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4631 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4632
4633 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4634
4635 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4636 rtx to rtx_insn *.
4637 (struct mem_insn): Likewise for field "insn".
4638 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4639 (reg_next_inc_use): Likewise.
4640 (reg_next_def): Likewise.
4641 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4642 from rtx to rtx_insn *.
4643 (move_insn_before): Likewise for param "next_insn" and local "insns".
4644 (attempt_change): Likewise for local "mov_insn".
4645 (try_merge): Likewise for param "last_insn".
4646 (get_next_ref): Likewise for return type and local "insn".
4647 Strengthen param "next_array" from rtx * to rtx_insn **.
4648 (parse_add_or_inc): Strengthen param "insn" from rtx to
4649 rtx_insn *.
4650 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4651 the latter).
4652 (merge_in_block): Likewise for locals "insn", "curr",
4653 "other_insn".
4654 (pass_inc_dec::execute): Update allocations of the arrays to
4655 reflect the stronger types.
4656
4657 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4658
4659 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4660 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4661 from rtx to rtx_code_label *.
4662
4663 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4664
4665 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4666 to rtx_insn *.
4667
4668 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4669
4670 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4671 generated a warning and prevented bootstrapping the compiler.
4672
4673 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4674
4675 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4676 rtx_insn *.
4677
4678 * jump.c (delete_related_insns): Likewise, also for locals "next"
4679 and "prev".
4680
4681 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4682
4683 * genautomata.c (output_internal_insn_latency_func): When writing
4684 the function "internal_insn_latency" to insn-automata.c,
4685 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4686 allowing the optional guard function of (define_bypass) clauses to
4687 expect a pair of rtx_insn *, rather than a pair of rtx.
4688 (output_insn_latency_func): When writing the function
4689 "insn_latency", add an "uncast_" prefix to params "insn" and
4690 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4691 using checked casts from the params, thus enabling the above
4692 change to the generated "internal_insn_latency" function.
4693
4694 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4695
4696 PR tree-optimization/62091
4697 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4698 handle correctly arrays.
4699 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4700 inheritance binfos.
4701 (record_known_type): Walk into inner type.
4702 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4703 condition on no type changes.
4704
4705 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4706
4707 * genattrtab.c (write_attr_get): Within the generated get_attr_
4708 functions, rename param "insn" to "uncast_insn" and reintroduce
4709 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4710 is an rtx_insn * within insn-attrtab.c
4711
4712 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4713
4714 * output.h (peephole): Strengthen return type from rtx to
4715 rtx_insn *.
4716 * rtl.h (delete_for_peephole): Likewise for both params.
4717 * genpeep.c (main): In generated "peephole" function, strengthen
4718 return type and local "insn" from rtx to rtx_insn *. For now,
4719 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4720 rtx_insn *, with a checked cast.
4721 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4722 locals "insn", "next", "prev" from rtx to rtx_insn *.
4723
4724 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4725
4726 PR tree-optimization/62112
4727 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4728 * gimple-iterator.h (gsi_replace): Return bool.
4729 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4730 moved from ref_may_alias_global_p.
4731 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4732 New overloads.
4733 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4734 (stmt_kills_ref_p_1): Rename...
4735 (stmt_kills_ref_p): ... to this.
4736 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4737 stmt_kills_ref_p): Declare.
4738 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4739 Move the self-assignment case...
4740 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4741
4742 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4743
4744 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4745
4746 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4747 "after". For now, don't strengthen param "trial", which requires
4748 adding checked casts when returning it.
4749
4750 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4751
4752 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4753 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4754 "var_location" hook from rtx to rtx_insn *.
4755 (debug_nothing_rtx): Delete in favor of...
4756 (debug_nothing_rtx_code_label): New prototype.
4757 (debug_nothing_rtx_rtx): Delete unused prototype.
4758 (debug_nothing_rtx_insn): New prototype.
4759
4760 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4761 invoking debug_hooks->var_location (in two places, one in a NOTE
4762 case of a switch statement, the other guarded by a CALL_P
4763 conditional. Add checked cast to rtx_code_label * when invoking
4764 debug_hooks->label (within CODE_LABEL case of switch statement).
4765
4766 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4767 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4768 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4769 (xcoff_debug_hooks): Likewise.
4770 * debug.c (do_nothing_debug_hooks): Likewise.
4771 (debug_nothing_rtx): Delete in favor of...
4772 (debug_nothing_rtx_insn): New function.
4773 (debug_nothing_rtx_rtx): Delete unused function.
4774 (debug_nothing_rtx_code_label): New function.
4775 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4776 debug_nothing_rtx to debug_nothing_rtx_code_label.
4777 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4778 to rtx_insn *.
4779 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4780 debug_nothing_rtx to debug_nothing_rtx_insn.
4781 (sdbout_label): Strengthen param "insn" from rtx to
4782 rtx_code_label *.
4783 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4784 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4785 "var_location" hook from debug_nothing_rtx to
4786 debug_nothing_rtx_insn.
4787
4788 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4789
4790 * recog.h (insn_output_fn): Update this function typedef to match
4791 the changes below to the generated output functions, strengthening
4792 the 2nd param from rtx to rtx_insn *.
4793
4794 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4795 insn when invoking an output function, to match the new signature
4796 of insn_output_fn with a stronger second param.
4797
4798 * genconditions.c (write_header): In the generated code for
4799 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4800 to match the other changes in this patch.
4801
4802 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4803 the generated "gen_" functions from rtx to rtx_insn * within their
4804 implementations.
4805
4806 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4807 the subfunctions within the generated "recog_", "split", "peephole2"
4808 function trees from rtx to rtx_insn *. For now, the top-level
4809 generated functions ("recog", "split", "peephole2") continue to
4810 take a plain rtx for "insn", to avoid introducing dependencies on
4811 other patches. Rename this 2nd param from "insn" to
4812 "uncast_insn", and reintroduce "insn" as a local variable of type
4813 rtx_insn *, initialized at the top of the generated function with
4814 a checked cast on "uncast_insn".
4815 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4816 the generated "gen_" functions from rtx to rtx_insn * within their
4817 prototypes.
4818
4819 * genoutput.c (process_template): Strengthen the 2nd param within
4820 the generated "output_" functions "insn" from rtx to rtx_insn *.
4821
4822 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4823
4824 * tree-profile.c (tree_profiling): Skip external functions
4825 when doing coverage instrumentation.
4826 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4827
4828 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4829
4830 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4831 (vec_mergee): Likewise.
4832 (vec_mergeo): Likewise.
4833 (vec_cntlz): Likewise.
4834 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4835 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4836 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4837 VMRGEW, and VMRGOW.
4838 * doc/extend.texi: Document various forms of vec_cpsgn,
4839 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4840 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4841 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4842 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4843 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4844
4845 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4846
4847 * config/rs6000/rs6000.c (context.h): New include.
4848 (tree-pass.h): Likewise.
4849 (make_pass_analyze_swaps): New decl.
4850 (rs6000_option_override): Register pass_analyze_swaps.
4851 (swap_web_entry): New subsclass of web_entry_base (df.h).
4852 (special_handling_values): New enum.
4853 (union_defs): New function.
4854 (union_uses): Likewise.
4855 (insn_is_load_p): Likewise.
4856 (insn_is_store_p): Likewise.
4857 (insn_is_swap_p): Likewise.
4858 (rtx_is_swappable_p): Likewise.
4859 (insn_is_swappable_p): Likewise.
4860 (chain_purpose): New enum.
4861 (chain_contains_only_swaps): New function.
4862 (mark_swaps_for_removal): Likewise.
4863 (swap_const_vector_halves): Likewise.
4864 (adjust_subreg_index): Likewise.
4865 (permute_load): Likewise.
4866 (permute_store): Likewise.
4867 (handle_special_swappables): Likewise.
4868 (replace_swap_with_copy): Likewise.
4869 (dump_swap_insn_table): Likewise.
4870 (rs6000_analyze_swaps): Likewise.
4871 (pass_data_analyze_swaps): New pass_data.
4872 (pass_analyze_swaps): New rtl_opt_pass.
4873 (make_pass_analyze_swaps): New function.
4874 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4875
4876 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4877
4878 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4879 type from rtx to rtx_insn *.
4880 (create_copy_of_insn_rtx): Likewise.
4881 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4882 (create_copy_of_insn_rtx): Likewise, also for local "res".
4883
4884 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4885
4886 * rtl.h (find_first_parameter_load): Strengthen return type from
4887 rtx to rtx_insn *.
4888 * rtlanal.c (find_first_parameter_load): Strengthen return type
4889 from rtx to rtx_insn *. Add checked cast for now, to postpone
4890 strengthening the params.
4891
4892 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4893
4894 PR fortran/44054
4895 * diagnostic.c: Set default caret.
4896 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4897 line is needed.
4898 * diagnostic.h (struct diagnostic_context):
4899
4900 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4901
4902 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4903 (sel_bb_head): Strengthen return type insn_t (currently just an
4904 rtx) to rtx_insn *.
4905 (sel_bb_end): Likewise.
4906
4907 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4908 (sel_bb_head): Strengthen return type and local "head" from
4909 insn_t (currently just an rtx) to rtx_insn *.
4910 (sel_bb_end): Likewise for return type.
4911 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4912 working with insn.
4913
4914 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4915
4916 * basic-block.h (get_last_bb_insn): Strengthen return type from
4917 rtx to rtx_insn *.
4918 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4919 end".
4920
4921 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4922
4923 PR fortran/44054
4924 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4925 to here ...
4926 (diagnostic_report_diagnostic): ... from here.
4927 * toplev.c (general_init): Move code to c-family.
4928
4929 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4930
4931 * df.h (web_entry_base): Replace existing struct web_entry with a
4932 new class web_entry_base with only the predecessor member.
4933 (unionfind_root): Remove declaration and move to class member.
4934 (unionfind_union): Remove declaration and move to friend
4935 function.
4936 (union_defs): Remove declaration.
4937 * web.c (web_entry_base::unionfind_root): Modify to be member
4938 function and adjust accessors.
4939 (unionfind_union): Modify to be friend function and adjust
4940 accessors.
4941 (web_entry): New subclass of web_entry_base containing the reg
4942 member.
4943 (union_match_dups): Modify for struct -> class changes.
4944 (union_defs): Likewise.
4945 (entry_register): Likewise.
4946 (pass_web::execute): Likewise.
4947
4948 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4949
4950 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4951 builtin define __VEC_ELEMENT_REG_ORDER__.
4952
4953 2014-08-20 Martin Jambor <mjambor@suse.cz>
4954 Wei Mi <wmi@google.com>
4955
4956 PR ipa/60449
4957 PR middle-end/61776
4958 * tree-ssa-operands.c (update_stmt_operands): Remove
4959 MODIFIED_NORETURN_CALLS.
4960 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4961 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4962 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4963 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4964 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4965 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4966 (gimple_call_set_ctrl_altering): New func.
4967 (gimple_call_ctrl_altering_p): Ditto.
4968 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4969 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4970 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4971 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4972 remove MODIFIED_NORETURN_CALLS.
4973
4974 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4975
4976 * coverage.c (coverage_compute_profile_id): Return non-0;
4977 also handle symbols with unique name.
4978 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4979
4980 2014-08-20 Steve Ellcey <sellcey@mips.com>
4981
4982 PR middle-end/49191
4983 * doc/sourcebuild.texi (non_strict_align): New.
4984
4985 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4986
4987 * cgraphunit.c (ipa_passes, compile): Reshedule
4988 symtab_remove_unreachable_nodes passes; update comments.
4989 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4990 TODO_remove_functions before the pass; the functions ought to be
4991 already removed.
4992 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4993 TODO_remove_functions.
4994 * passes.c (pass_data_early_local_passes): Do not schedule function
4995 removal.
4996 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4997
4998 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4999
5000 PR c/59304
5001 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5002 before setting the option.
5003 * diagnostic.c (diagnostic_classify_diagnostic): Record
5004 command-line status.
5005
5006 2014-08-20 Richard Biener <rguenther@suse.de>
5007
5008 PR lto/62190
5009 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5010 to build uint{16,32,64}_type_node.
5011
5012 2014-08-20 Terry Guo <terry.guo@arm.com>
5013
5014 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5015 with immediate_operand.
5016
5017 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5018
5019 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5020 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5021 NULL.
5022
5023 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5024
5025 PR preprocessor/51303
5026 * incpath.c (remove_duplicates): Use cpp_warning.
5027
5028 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5029
5030 PR c/60975
5031 PR c/53063
5032 * doc/options.texi (CPP): Document it.
5033 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5034 * optc-gen.awk: Handle CPP.
5035 * opth-gen.awk: Likewise.
5036
5037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5038
5039 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5040 rtx_insn *.
5041 (duplicate_insn_chain): Likewise.
5042 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5043 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5044 checked cast for now (until we can strengthen the params in the
5045 same way).
5046 (duplicate_insn_chain): Likewise.
5047
5048 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5049
5050 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5051 rtx_insn *.
5052 (prev_cc0_setter): Likewise.
5053
5054 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5055 rtx_insn *, adding checked casts for now as necessary.
5056 (prev_cc0_setter): Likewise.
5057
5058 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5059
5060 * expr.h (emit_move_insn): Strengthen return type from rtx to
5061 rtx_insn *.
5062 (emit_move_insn_1): Likewise.
5063 (emit_move_complex_push): Likewise.
5064 (emit_move_complex_parts): Likewise.
5065
5066 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5067 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5068 with insns.
5069 (emit_move_complex_push): Strengthen return type from rtx to
5070 rtx_insn *.
5071 (emit_move_complex): Likewise, also for local "ret".
5072 (emit_move_ccmode): Likewise.
5073 (emit_move_multi_word): Likewise for return type and locals
5074 "last_insn", "seq".
5075 (emit_move_insn_1): Likewise for return type and locals "result",
5076 "ret".
5077 (emit_move_insn): Likewise for return type and local "last_insn".
5078 (compress_float_constant): Likewise.
5079
5080 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5081
5082 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5083 from rtx to rtx_insn *.
5084
5085 * rtl.h (emit_insn_before): Likewise.
5086 (emit_insn_before_noloc): Likewise.
5087 (emit_insn_before_setloc): Likewise.
5088 (emit_jump_insn_before): Likewise.
5089 (emit_jump_insn_before_noloc): Likewise.
5090 (emit_jump_insn_before_setloc): Likewise.
5091 (emit_call_insn_before): Likewise.
5092 (emit_call_insn_before_noloc): Likewise.
5093 (emit_call_insn_before_setloc): Likewise.
5094 (emit_debug_insn_before): Likewise.
5095 (emit_debug_insn_before_noloc): Likewise.
5096 (emit_debug_insn_before_setloc): Likewise.
5097 (emit_label_before): Likewise.
5098 (emit_insn_after): Likewise.
5099 (emit_insn_after_noloc): Likewise.
5100 (emit_insn_after_setloc): Likewise.
5101 (emit_jump_insn_after): Likewise.
5102 (emit_jump_insn_after_noloc): Likewise.
5103 (emit_jump_insn_after_setloc): Likewise.
5104 (emit_call_insn_after): Likewise.
5105 (emit_call_insn_after_noloc): Likewise.
5106 (emit_call_insn_after_setloc): Likewise.
5107 (emit_debug_insn_after): Likewise.
5108 (emit_debug_insn_after_noloc): Likewise.
5109 (emit_debug_insn_after_setloc): Likewise.
5110 (emit_label_after): Likewise.
5111 (emit_insn): Likewise.
5112 (emit_debug_insn): Likewise.
5113 (emit_jump_insn): Likewise.
5114 (emit_call_insn): Likewise.
5115 (emit_label): Likewise.
5116 (gen_clobber): Likewise.
5117 (emit_clobber): Likewise.
5118 (gen_use): Likewise.
5119 (emit_use): Likewise.
5120 (emit): Likewise.
5121
5122 (emit_barrier_before): Strengthen return type from rtx to
5123 rtx_barrier *.
5124 (emit_barrier_after): Likewise.
5125 (emit_barrier): Likewise.
5126
5127 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5128 from rtx to rtx_insn *. Add checked casts for now when converting
5129 "last" from rtx to rtx_insn *.
5130 (emit_insn_before_noloc): Likewise for return type.
5131 (emit_jump_insn_before_noloc): Likewise.
5132 (emit_call_insn_before_noloc): Likewise.
5133 (emit_debug_insn_before_noloc): Likewise.
5134 (emit_barrier_before): Strengthen return type and local "insn"
5135 from rtx to rtx_barrier *.
5136 (emit_label_before): Strengthen return type from rtx to
5137 rtx_insn *. Add checked cast for now when returning param
5138 (emit_pattern_after_noloc): Strengthen return type from rtx to
5139 rtx_insn *. Add checked casts for now when converting "last" from
5140 rtx to rtx_insn *.
5141 (emit_insn_after_noloc): Strengthen return type from rtx to
5142 rtx_insn *.
5143 (emit_jump_insn_after_noloc): Likewise.
5144 (emit_call_insn_after_noloc): Likewise.
5145 (emit_debug_insn_after_noloc): Likewise.
5146 (emit_barrier_after): Strengthen return type from rtx to
5147 rtx_barrier *.
5148 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5149 Add checked cast for now when converting "label" from rtx to
5150 rtx_insn *.
5151 (emit_pattern_after_setloc): Strengthen return type from rtx to
5152 rtx_insn *. Add checked casts for now when converting "last" from
5153 rtx to rtx_insn *.
5154 (emit_pattern_after): Strengthen return type from rtx to
5155 rtx_insn *.
5156 (emit_insn_after_setloc): Likewise.
5157 (emit_insn_after): Likewise.
5158 (emit_jump_insn_after_setloc): Likewise.
5159 (emit_jump_insn_after): Likewise.
5160 (emit_call_insn_after_setloc): Likewise.
5161 (emit_call_insn_after): Likewise.
5162 (emit_debug_insn_after_setloc): Likewise.
5163 (emit_debug_insn_after): Likewise.
5164 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5165 when converting "last" from rtx to rtx_insn *.
5166 (emit_pattern_before): Strengthen return type from rtx to
5167 rtx_insn *.
5168 (emit_insn_before_setloc): Likewise.
5169 (emit_insn_before): Likewise.
5170 (emit_jump_insn_before_setloc): Likewise.
5171 (emit_jump_insn_before): Likewise.
5172 (emit_call_insn_before_setloc): Likewise.
5173 (emit_call_insn_before): Likewise.
5174 (emit_debug_insn_before_setloc): Likewise.
5175 (emit_debug_insn_before): Likewise.
5176 (emit_insn): Strengthen return type and locals "last", "insn",
5177 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5178 within cases where we know we have an insn.
5179 (emit_debug_insn): Likewise.
5180 (emit_jump_insn): Likewise.
5181 (emit_call_insn): Strengthen return type and local "insn" from rtx
5182 to rtx_insn *.
5183 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5184 a checked cast to rtx_insn * for now on "label".
5185 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5186 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5187 (emit_use): Likewise.
5188 (gen_use): Likewise, also for local "seq".
5189 (emit): Likewise for return type and local "insn".
5190 (rtx_insn): Likewise for return type and local "new_rtx".
5191
5192 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5193 from rtx to rtx_barrier *.
5194
5195 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5196 changed return type from rtx to rtx_insn *, we must update
5197 "emit_fn" type, and this in turn means updating...
5198 (frame_insn): ...this. Strengthen return type from rtx to
5199 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5200
5201 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5202
5203 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5204 rtx to rtx_jump_table_data *. Also for local.
5205 * rtl.h (emit_jump_table_data): Likewise.
5206
5207 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5208
5209 * basic-block.h (create_basic_block_structure): Strengthen third
5210 param "bb_note" from rtx to rtx_note *.
5211 * rtl.h (emit_note_before): Strengthen return type from rtx to
5212 rtx_note *.
5213 (emit_note_after): Likewise.
5214 (emit_note): Likewise.
5215 (emit_note_copy): Likewise. Also, strengthen param similarly.
5216 * function.h (struct rtl_data): Strengthen field
5217 "x_stack_check_probe_note" from rtx to rtx_note *.
5218
5219 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5220 from rtx to rtx_note *.
5221 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5222 "bb_note" from rtx to rtx_note *.
5223 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5224 when calling emit_note_copy.
5225 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5226 rtx_note *.
5227 (emit_note_after): Likewise.
5228 (emit_note_before): Likewise.
5229 (emit_note_copy): Likewise. Also, strengthen param similarly.
5230 (emit_note): Likewise.
5231 * except.c (emit_note_eh_region_end): Likewise for return type.
5232 Strengthen local "next" from rtx to rtx_insn *.
5233 (convert_to_eh_region_ranges): Strengthen local "note"
5234 from rtx to rtx_note *.
5235 * final.c (change_scope): Likewise.
5236 (reemit_insn_block_notes): Likewise, for both locals named "note".
5237 Also, strengthen local "insn" from rtx to rtx_insn *.
5238 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5239 rtx to rtx_note *.
5240 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5241 strengthen local "seq" from rtx to rtx_insn *.
5242 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5243 to rtx_note *.
5244 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5245 vec<rtx_note *>.
5246 (get_bb_note_from_pool): Strengthen return type from rtx to
5247 rtx_note *.
5248 (sel_create_basic_block): Strengthen local "new_bb_note" from
5249 insn_t to rtx_note *.
5250 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5251 "note" from rtx to rtx_note *.
5252 (emit_notes_in_bb): Likewise.
5253
5254 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5255
5256 * function.h (struct rtl_data): Strengthen field
5257 "x_parm_birth_insn" from rtx to rtx_insn *.
5258 * function.c (struct assign_parm_data_all): Strengthen fields
5259 "first_conversion_insn" and "last_conversion_insn" from rtx to
5260 rtx_insn *.
5261
5262 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5263
5264 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5265 to rtx_insn *; also for local "var_end_seq".
5266 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5267 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5268 "insn".
5269 (expand_gimple_cond): Likewise for locals "last2" and "last".
5270 (mark_transaction_restart_calls): Likewise for local "insn".
5271 (expand_gimple_stmt): Likewise for return type and locals "last"
5272 and "insn".
5273 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5274 (avoid_complex_debug_insns): Likewise for param "insn".
5275 (expand_debug_locations): Likewise for locals "insn", "last",
5276 "prev_insn" and "insn2".
5277 (expand_gimple_basic_block): Likewise for local "last".
5278 (construct_exit_block): Likewise for locals "head", "end",
5279 "orig_end".
5280 (pass_expand::execute): Likewise for locals "var_seq",
5281 "var_ret_seq", "next".
5282
5283 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5284
5285 * asan.h (asan_emit_stack_protection): Strengthen return type from
5286 rtx to rtx_insn *.
5287 * asan.c (asan_emit_stack_protection): Likewise. Add local
5288 "insns" to hold the return value.
5289
5290 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5291
5292 * basic-block.h (bb_note): Strengthen return type from rtx to
5293 rtx_note *.
5294 * sched-int.h (bb_note): Likewise.
5295 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5296
5297 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5298
5299 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5300 rtx_insn *.
5301
5302 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5303 "insn" from rtx to rtx_insn *.
5304 (make_debug_insn_raw): Strengthen return type from rtx to
5305 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5306 (make_jump_insn_raw): Strengthen return type from rtx to
5307 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5308 (make_call_insn_raw): Strengthen return type from rtx to
5309 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5310 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5311 callback from rtx to rtx_insn *; likewise for local "insn" and
5312 "next", adding a checked cast to rtx_insn in the relevant cases of
5313 the switch statement.
5314 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5315 callback from rtx to rtx_insn *.
5316 (emit_pattern_after_setloc): Likewise.
5317 (emit_pattern_after): Likewise.
5318 (emit_pattern_before_setloc): Likewise.
5319 (emit_pattern_before): Likewise.
5320
5321 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5322
5323 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5324 rtx_call_insn *.
5325 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5326 accepting an rtx_insn *.
5327 (last_call_insn): Strengthen return type from rtx to
5328 rtx_call_insn *.
5329
5330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5331
5332 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5333 "insns" from rtx to rtx_insn *.
5334 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5335 locals "insn" and "prev".
5336
5337 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5338
5339 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5340 rtx_jump_table_data **.
5341
5342 * cfgbuild.c (make_edges): Introduce local "table", using it in
5343 place of "tmp" for jump table data.
5344 (find_bb_boundaries): Strengthen local "table" from rtx to
5345 rtx_jump_table_data *.
5346 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5347 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5348 (try_crossjump_to_edge): Likewise.
5349 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5350 "table".
5351 (patch_jump_insn): Introduce local "table", using it in place of
5352 "tmp" for jump table data.
5353 (force_nonfallthru_and_redirect): Introduce local "table", so that
5354 call to tablejump_p can receive an rtx_jump_table_data **. Update
5355 logic around the call to overwrite "note" appropriately if
5356 tablejump_p returns non-zero.
5357 (get_last_bb_insn): Introduce local "table", using it in place of
5358 "tmp" for jump table data.
5359 * dwarf2cfi.c (create_trace_edges): Likewise.
5360
5361 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5362 from rtx to rtx_jump_table_data *.
5363 (create_fix_barrier): Strengthen local "tmp" from rtx to
5364 rtx_jump_table_data *.
5365 (arm_reorg): Likewise for local "table".
5366
5367 * config/s390/s390.c (s390_chunkify_start): Likewise.
5368
5369 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5370
5371 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5372 rtx to rtx_jump_table_data *.
5373
5374 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5375 rtx_jump_table_data **. Add a checked cast when writing through
5376 the pointer: we know there that local "table" is non-NULL and that
5377 JUMP_TABLE_DATA_P (table) holds.
5378 (label_is_jump_target_p): Introduce local "table", using it in
5379 place of "tmp" for jump table data.
5380
5381 2014-08-19 Marek Polacek <polacek@redhat.com>
5382
5383 PR c++/62153
5384 * doc/invoke.texi: Document -Wbool-compare.
5385
5386 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5387
5388 * rtl.h (entry_of_function): Strengthen return type from rtx to
5389 rtx_insn *.
5390 * cfgrtl.c (entry_of_function): Likewise.
5391
5392 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5393
5394 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5395 rtx_insn *, adding a checked cast for now.
5396 (get_last_insn): Likewise.
5397
5398 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5399
5400 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5401 rtx_code_label *.
5402
5403 * emit-rtl.c (gen_label_rtx): Likewise.
5404
5405 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5406
5407 * rtl.h (previous_insn): Strengthen return type from rtx to
5408 rtx_insn *.
5409 (next_insn): Likewise.
5410 (prev_nonnote_insn): Likewise.
5411 (prev_nonnote_insn_bb): Likewise.
5412 (next_nonnote_insn): Likewise.
5413 (next_nonnote_insn_bb): Likewise.
5414 (prev_nondebug_insn): Likewise.
5415 (next_nondebug_insn): Likewise.
5416 (prev_nonnote_nondebug_insn): Likewise.
5417 (next_nonnote_nondebug_insn): Likewise.
5418 (prev_real_insn): Likewise.
5419 (next_real_insn): Likewise.
5420 (prev_active_insn): Likewise.
5421 (next_active_insn): Likewise.
5422
5423 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5424 rtx_insn *, adding a checked cast.
5425 (previous_insn): Likewise.
5426 (next_nonnote_insn): Likewise.
5427 (next_nonnote_insn_bb): Likewise.
5428 (prev_nonnote_insn): Likewise.
5429 (prev_nonnote_insn_bb): Likewise.
5430 (next_nondebug_insn): Likewise.
5431 (prev_nondebug_insn): Likewise.
5432 (next_nonnote_nondebug_insn): Likewise.
5433 (prev_nonnote_nondebug_insn): Likewise.
5434 (next_real_insn): Likewise.
5435 (prev_real_insn): Likewise.
5436 (next_active_insn): Likewise.
5437 (prev_active_insn): Likewise.
5438
5439 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5440 param "stepfunc" so that it returns an rtx_insn * rather than an
5441 rtx, to track the change to prev_nonnote_insn_bb, which is the
5442 only function this is called with.
5443 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5444
5445 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5446
5447 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5448 assert.
5449
5450 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5451
5452 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5453 (class rtx_nonjump_insn): Likewise.
5454 (class rtx_jump_insn): Likewise.
5455 (class rtx_call_insn): Likewise.
5456 (class rtx_jump_table_data): Likewise.
5457 (class rtx_barrier): Likewise.
5458 (class rtx_code_label): Likewise.
5459 (class rtx_note): Likewise.
5460
5461 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5462 adding the invariant DEBUG_INSN_P (X).
5463 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5464 the invariant NONJUMP_INSN_P (X).
5465 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5466 the invariant JUMP_P (X).
5467 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5468 the invariant CALL_P (X).
5469 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5470 invariant JUMP_TABLE_DATA_P (X).
5471 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5472 invariant BARRIER_P (X).
5473 (class rtx_code_label): New, a subclass of rtx_insn, adding
5474 the invariant LABEL_P (X).
5475 (class rtx_note): New, a subclass of rtx_insn, adding
5476 the invariant NOTE_P(X).
5477 (is_a_helper <rtx_debug_insn *>::test): New.
5478 (is_a_helper <rtx_nonjump_insn *>::test): New.
5479 (is_a_helper <rtx_jump_insn *>::test): New.
5480 (is_a_helper <rtx_call_insn *>::test): New.
5481 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5482 overloaded for both rtx and rtx_insn *.
5483 (is_a_helper <rtx_barrier *>::test): New.
5484 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5485 for both rtx and rtx_insn *.
5486 (is_a_helper <rtx_note *>::test): New.
5487
5488 2014-08-19 Marek Polacek <polacek@redhat.com>
5489
5490 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5491 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5492 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5493 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5494
5495 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5496
5497 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5498 rtx_insn *. To help with transition, for now, convert from an
5499 access macro into a pair of functions: BND_TO, returning an
5500 rtx_insn *, and...
5501 (SET_BND_TO): New function, for use where BND_TO is used as an
5502 lvalue.
5503
5504 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5505 SET_BND_TO.
5506 (BND_TO): New function, adding a checked cast.
5507 (SET_BND_TO): New function.
5508
5509 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5510 SET_BND_TO.
5511 (compute_av_set_on_boundaries): Likewise.
5512
5513 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5514
5515 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5516 destination if it is used in source.
5517 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5518 (*popcount<mode>2_falsedep_1): Likewise.
5519
5520 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5521
5522 PR other/62168
5523 * configure.ac: Set install_gold_as_default to no first.
5524 * configure: Regenerated.
5525
5526 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5527
5528 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5529 "note_list" field will eventually be an rtx_insn *. To help with
5530 transition, for now, convert from an access macro into a pair of
5531 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5532 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5533 used as an lvalue.
5534
5535 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5536 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5537
5538 * sel-sched-ir.c (init_bb): Likewise.
5539 (sel_restore_notes): Likewise.
5540 (move_bb_info): Likewise.
5541 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5542 (SET_BB_NOTE_LIST): New function.
5543
5544 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5545
5546 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5547 field will eventually be an rtx_insn *. To help with transition,
5548 for now, convert from an access macro into a pair of functions:
5549 VINSN_INSN_RTX, returning an rtx_insn *, and...
5550 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5551 is used as an lvalue.
5552
5553 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5554 SET_VINSN_INSN_RTX where it's used as an lvalue.
5555 (VINSN_INSN_RTX): New function.
5556 (SET_VINSN_INSN_RTX): New function.
5557
5558 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5559
5560 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5561 eventually be rtx_insn *, but to help with transition, for now,
5562 convert from an access macro into a pair of functions: DEP_PRO
5563 returning an rtx_insn * and...
5564 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5565 lvalue, returning an rtx&.
5566 (DEP_CON): Analogous changes to DEP_PRO above.
5567 (SET_DEP_CON): Likewise.
5568
5569 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5570 an lvalue to SET_DEP_CON.
5571 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5572 (sd_copy_back_deps): Likewise for DEP_CON.
5573 (DEP_PRO): New function, adding a checked cast for now.
5574 (DEP_CON): Likewise.
5575 (SET_DEP_PRO): New function.
5576 (SET_DEP_CON): Likewise.
5577
5578 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5579
5580 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5581 (extra_options): Add i386/cygwin.opt.
5582 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5583 (CPP_SPEC): Accept -pthread.
5584 (LINK_SPEC): Ditto.
5585 (GOMP_SELF_SPECS): Update comment.
5586 * config/i386/cygwin.opt: New file for -pthread flag.
5587
5588 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5589
5590 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5591 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5592 that we can return an rtx_insn *.
5593
5594 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5595
5596 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5597 when building executables, not DLLs. Add --large-address-aware
5598 under the same conditions.
5599 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5600 when building executables, not DLLs. Add --large-address-aware
5601 under the same conditions when using -m32.
5602
5603 * config/i386/cygwin-stdint.h: Throughout, make type
5604 definitions dependent on target architecture, not host.
5605
5606 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5607
5608 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5609 the return type from rtx to rtx_insn *, which will enable various
5610 conversions in followup patches. For now this is is done by a
5611 checked cast.
5612 (NEXT_INSN): Likewise.
5613 (SET_PREV_INSN): Convert to an inline function. This is intended
5614 for use as an lvalue, and so returns an rtx& to allow in-place
5615 modification.
5616 (SET_NEXT_INSN): Likewise.
5617
5618 2014-07-08 Mark Wielaard <mjw@redhat.com>
5619
5620 PR debug/59051
5621 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5622
5623 2014-08-19 Marek Polacek <polacek@redhat.com>
5624
5625 PR c/61271
5626 * cgraphunit.c (handle_alias_pairs): Fix condition.
5627
5628 2014-08-19 Richard Biener <rguenther@suse.de>
5629
5630 * gimple-fold.c (fold_gimple_assign): Properly build a
5631 null-pointer constant when devirtualizing addresses.
5632
5633 2014-07-07 Mark Wielaard <mjw@redhat.com>
5634
5635 * dwarf2out.c (decl_quals): New function.
5636 (modified_type_die): Take one cv_quals argument instead of two,
5637 one for const and one for volatile.
5638 (add_type_attribute): Likewise.
5639 (generic_parameter_die): Call add_type_attribute with one modifier
5640 argument.
5641 (base_type_for_mode): Likewise.
5642 (add_bounds_info): Likewise.
5643 (add_subscript_info): Likewise.
5644 (gen_array_type_die): Likewise.
5645 (gen_descr_array_type_die): Likewise.
5646 (gen_entry_point_die): Likewise.
5647 (gen_enumeration_type_die): Likewise.
5648 (gen_formal_parameter_die): Likewise.
5649 (gen_subprogram_die): Likewise.
5650 (gen_variable_die): Likewise.
5651 (gen_const_die): Likewise.
5652 (gen_field_die): Likewise.
5653 (gen_pointer_type_die): Likewise.
5654 (gen_reference_type_die): Likewise.
5655 (gen_ptr_to_mbr_type_die): Likewise.
5656 (gen_inheritance_die): Likewise.
5657 (gen_subroutine_type_die): Likewise.
5658 (gen_typedef_die): Likewise.
5659 (force_type_die): Likewise.
5660
5661 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5662
5663 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5664 if unset.
5665 * configure: Regenerate.
5666
5667 2014-08-19 Richard Biener <rguenther@suse.de>
5668
5669 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5670 DECL_EXTERNALs in BLOCKs as non-references.
5671 * tree-streamer-out.c (streamer_write_chain): Likewise.
5672
5673 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5675 Anna Tikhonova <anna.tikhonova@intel.com>
5676 Ilya Tocar <ilya.tocar@intel.com>
5677 Andrey Turetskiy <andrey.turetskiy@intel.com>
5678 Ilya Verbin <ilya.verbin@intel.com>
5679 Kirill Yukhin <kirill.yukhin@intel.com>
5680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5681
5682 * config/i386/sse.md
5683 (define_mode_iterator VI48_AVX512F): Delete.
5684 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5685 (define_mode_iterator VI2_AVX512VL): Ditto.
5686 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5687 Delete.
5688 (define_insn
5689 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5690 New.
5691 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5692 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5693 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5694 with VI48_AVX512F_AVX512VL): New.
5695 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5696 with VI2_AVX512VL): Ditto.
5697
5698 2014-08-19 Marek Polacek <polacek@redhat.com>
5699
5700 * doc/invoke.texi: Document -Wc99-c11-compat.
5701
5702 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5703
5704 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5705 for rvalues, and...
5706 (SET_PREV_INSN): New macro, for use as an lvalue.
5707 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5708
5709 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5710 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5711 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5712 (fixup_abnormal_edges): Likewise.
5713 (unlink_insn_chain): Likewise.
5714 (fixup_reorder_chain): Likewise.
5715 (cfg_layout_delete_block): Likewise.
5716 (cfg_layout_merge_blocks): Likewise.
5717 * combine.c (update_cfg_for_uncondjump): Likewise.
5718 * emit-rtl.c (link_insn_into_chain): Likewise.
5719 (remove_insn): Likewise.
5720 (delete_insns_since): Likewise.
5721 (reorder_insns_nobb): Likewise.
5722 (emit_insn_after_1): Likewise.
5723 * final.c (rest_of_clean_state): Likewise.
5724 (final_scan_insn): Likewise.
5725 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5726 * haifa-sched.c (concat_note_lists): Likewise.
5727 (remove_notes): Likewise.
5728 (restore_other_notes): Likewise.
5729 (move_insn): Likewise.
5730 (unlink_bb_notes): Likewise.
5731 (restore_bb_notes): Likewise.
5732 * jump.c (delete_for_peephole): Likewise.
5733 * optabs.c (emit_libcall_block_1): Likewise.
5734 * reorg.c (emit_delay_sequence): Likewise.
5735 (fill_simple_delay_slots): Likewise.
5736 * sel-sched-ir.c (sel_move_insn): Likewise.
5737 (sel_remove_insn): Likewise.
5738 (get_bb_note_from_pool): Likewise.
5739 * sel-sched.c (move_nop_to_previous_block): Likewise.
5740
5741 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5742 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5743 (c6x_gen_bundles): Likewise.
5744 (hwloop_optimize): Likewise.
5745 * config/frv/frv.c (frv_function_prologue): Likewise.
5746 (frv_register_nop): Likewise.
5747 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5748 (ia64_reorg): Likewise.
5749 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5750 (mep_make_bundle): Likewise.
5751 (mep_bundle_insns): Likewise.
5752 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5753 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5754 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5755
5756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5757
5758 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5759 return type from rtx to rtx_insn *.
5760 (BB_END): Likewise.
5761 (BB_HEADER): Likewise.
5762 (BB_FOOTER): Likewise.
5763 (SET_BB_HEAD): Convert to a function.
5764 (SET_BB_END): Likewise.
5765 (SET_BB_HEADER): Likewise.
5766 (SET_BB_FOOTER): Likewise.
5767
5768 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5769 Strengthen the return type from rtx to rtx_insn *. For now, this
5770 is done by adding a checked cast, but this will eventually
5771 become a field lookup.
5772 (BB_END): Likewise.
5773 (BB_HEADER): Likewise.
5774 (BB_FOOTER): Likewise.
5775 (SET_BB_HEAD): New function, from macro of same name. This is
5776 intended for use as an lvalue, and so returns an rtx& to allow
5777 in-place modification.
5778 (SET_BB_END): Likewise.
5779 (SET_BB_HEADER): Likewise.
5780 (SET_BB_FOOTER): Likewise.
5781
5782 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5783
5784 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5785 for rvalues, and...
5786 (SET_BB_HEAD): New macro, for use as a lvalue.
5787 (BB_END, SET_BB_END): Likewise.
5788 (BB_HEADER, SET_BB_HEADER): Likewise.
5789 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5790
5791 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5792 of BB_* macros into SET_BB_* macros.
5793 (fix_crossing_unconditional_branches): Likewise.
5794 * caller-save.c (save_call_clobbered_regs): Likewise.
5795 (insert_one_insn): Likewise.
5796 * cfgbuild.c (find_bb_boundaries): Likewise.
5797 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5798 (outgoing_edges_match): Likewise.
5799 (try_optimize_cfg): Likewise.
5800 * cfgexpand.c (expand_gimple_cond): Likewise.
5801 (expand_gimple_tailcall): Likewise.
5802 (expand_gimple_basic_block): Likewise.
5803 (construct_exit_block): Likewise.
5804 * cfgrtl.c (delete_insn): Likewise.
5805 (create_basic_block_structure): Likewise.
5806 (rtl_delete_block): Likewise.
5807 (rtl_split_block): Likewise.
5808 (emit_nop_for_unique_locus_between): Likewise.
5809 (rtl_merge_blocks): Likewise.
5810 (block_label): Likewise.
5811 (try_redirect_by_replacing_jump): Likewise.
5812 (emit_barrier_after_bb): Likewise.
5813 (fixup_abnormal_edges): Likewise.
5814 (record_effective_endpoints): Likewise.
5815 (relink_block_chain): Likewise.
5816 (fixup_reorder_chain): Likewise.
5817 (fixup_fallthru_exit_predecessor): Likewise.
5818 (cfg_layout_duplicate_bb): Likewise.
5819 (cfg_layout_split_block): Likewise.
5820 (cfg_layout_delete_block): Likewise.
5821 (cfg_layout_merge_blocks): Likewise.
5822 * combine.c (update_cfg_for_uncondjump): Likewise.
5823 * emit-rtl.c (add_insn_after): Likewise.
5824 (remove_insn): Likewise.
5825 (reorder_insns): Likewise.
5826 (emit_insn_after_1): Likewise.
5827 * haifa-sched.c (get_ebb_head_tail): Likewise.
5828 (restore_other_notes): Likewise.
5829 (move_insn): Likewise.
5830 (sched_extend_bb): Likewise.
5831 (fix_jump_move): Likewise.
5832 * ifcvt.c (noce_process_if_block): Likewise.
5833 (dead_or_predicable): Likewise.
5834 * ira.c (update_equiv_regs): Likewise.
5835 * reg-stack.c (change_stack): Likewise.
5836 * sel-sched-ir.c (sel_move_insn): Likewise.
5837 * sel-sched.c (move_nop_to_previous_block): Likewise.
5838
5839 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5840 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5841
5842 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5843
5844 * rtl.h (for_each_rtx_in_insn): New function.
5845 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5846
5847 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5848
5849 * coretypes.h (class rtx_insn): Add forward declaration.
5850
5851 * rtl.h: Include is-a.h.
5852 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5853 workaround to ensure gengtype knows inheritance is occurring,
5854 whilst continuing to use the pre-existing special-casing for
5855 rtx_def.
5856 (class rtx_insn): New subclass of rtx_def, adding the
5857 invariant that we're dealing with something we can sanely use
5858 INSN_UID, NEXT_INSN, PREV_INSN on.
5859 (is_a_helper <rtx_insn *>::test): New.
5860 (is_a_helper <const rtx_insn *>::test): New.
5861
5862 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5863
5864 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5865
5866 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5867
5868 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5869 comdats as extern.
5870
5871 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5872
5873 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5874 to BUILT_IN_UNREACHABLE.
5875
5876 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5877
5878 PR target/62011
5879 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5880 New tune flag.
5881 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5882 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5883 (ffs<mode>2): Do not expand with tzcnt for
5884 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5885 (ffssi2_no_cmove): Ditto.
5886 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5887 (ctz<mode>2): New expander.
5888 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5889 (*ctz<mode>2_falsedep): New insn.
5890 (*ctz<mode>2): Rename from ctz<mode>2.
5891 (clz<mode>2_lzcnt): New expander.
5892 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5893 (*clz<mode>2_lzcnt_falsedep): New insn.
5894 (*clz<mode>2): Rename from ctz<mode>2.
5895 (popcount<mode>2): New expander.
5896 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5897 (*popcount<mode>2_falsedep): New insn.
5898 (*popcount<mode>2): Rename from ctz<mode>2.
5899 (*popcount<mode>2_cmp): Remove.
5900 (*popcountsi2_cmp_zext): Ditto.
5901
5902 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5903
5904 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5905 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5906 * config/microblaze/microblaze.h
5907 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5908
5909 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5910
5911 PR other/62168
5912 * configure.ac: Set install_gold_as_default to no for
5913 --enable-gold=no.
5914 * configure: Regenerated.
5915
5916 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5917
5918 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5919 * config.in: Add undef of HAVE_isl.
5920 * configure: Regenerate.
5921 * configure.ac: Add definition of HAVE_isl.
5922 * graphite-blocking.c: Add checking of HAVE_isl.
5923 * graphite-dependences.c: Likewise.
5924 * graphite-interchange.c: Likewise.
5925 * graphite-isl-ast-to-gimple.c: Likewise.
5926 * graphite-optimize-isl.c: Likewise.
5927 * graphite-poly.c: Likewise.
5928 * graphite-scop-detection.c: Likewise.
5929 * graphite-sese-to-poly.c: Likewise.
5930 * graphite.c: Likewise.
5931 * toplev.c: Replace the checking of HAVE_cloog with the checking
5932 of HAVE_isl.
5933
5934 2014-08-18 Richard Biener <rguenther@suse.de>
5935
5936 PR tree-optimization/62090
5937 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5938 (fold_builtin_3): Do not fold snprintf.
5939 (fold_builtin_4): Likewise.
5940 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5941 moved from builtins.c.
5942 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5943 (gimple_fold_builtin): Do not fold sprintf here.
5944
5945 2014-08-18 Richard Biener <rguenther@suse.de>
5946
5947 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5948 code to ...
5949 (maybe_canonicalize_mem_ref_addr): ... this function.
5950 (fold_stmt_1): Apply it here before all simplification.
5951
5952 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5953
5954 PR ipa/61800
5955 * cgraph.h (cgraph_node::create_indirect_edge): Add
5956 compute_indirect_info param.
5957 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5958 indirect_info only when it is required.
5959 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5960 indirect_info fore cloned indirect edge.
5961
5962 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5964 Anna Tikhonova <anna.tikhonova@intel.com>
5965 Ilya Tocar <ilya.tocar@intel.com>
5966 Andrey Turetskiy <andrey.turetskiy@intel.com>
5967 Ilya Verbin <ilya.verbin@intel.com>
5968 Kirill Yukhin <kirill.yukhin@intel.com>
5969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5970
5971 * config/i386/sse.md
5972 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5973 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5974
5975 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5976 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5977 Anna Tikhonova <anna.tikhonova@intel.com>
5978 Ilya Tocar <ilya.tocar@intel.com>
5979 Andrey Turetskiy <andrey.turetskiy@intel.com>
5980 Ilya Verbin <ilya.verbin@intel.com>
5981 Kirill Yukhin <kirill.yukhin@intel.com>
5982 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5983
5984 * config/i386/sse.md
5985 (define_mode_iterator VF1_AVX512VL): New.
5986 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5987 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5988 New.
5989
5990 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5991 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5992 Anna Tikhonova <anna.tikhonova@intel.com>
5993 Ilya Tocar <ilya.tocar@intel.com>
5994 Andrey Turetskiy <andrey.turetskiy@intel.com>
5995 Ilya Verbin <ilya.verbin@intel.com>
5996 Kirill Yukhin <kirill.yukhin@intel.com>
5997 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5998
5999 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6000 * config/i386/i386.md
6001 (define_code_iterator any_float): New.
6002 (define_code_attr floatsuffix): New.
6003 * config/i386/sse.md
6004 (define_mode_iterator VF1_128_256VL): New.
6005 (define_mode_iterator VF2_512_256VL): New.
6006 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6007 TARGET check.
6008 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6009 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6010 New.
6011 (define_mode_attr qq2pssuff): New.
6012 (define_mode_attr sselongvecmode): New.
6013 (define_mode_attr sselongvecmodelower): New.
6014 (define_mode_attr sseintvecmode3): New.
6015 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6016 New.
6017 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6018 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6019 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6020 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6021
6022 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6023 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6024 Anna Tikhonova <anna.tikhonova@intel.com>
6025 Ilya Tocar <ilya.tocar@intel.com>
6026 Andrey Turetskiy <andrey.turetskiy@intel.com>
6027 Ilya Verbin <ilya.verbin@intel.com>
6028 Kirill Yukhin <kirill.yukhin@intel.com>
6029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6030
6031 * config/i386/sse.md
6032 (define_mode_iterator VF2_AVX512VL): New.
6033 (define_mode_attr sseintvecmode2): New.
6034 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6035 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6036 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6037 (define_insn
6038 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6039 Ditto.
6040 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6041 Ditto.
6042 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6043 Ditto.
6044
6045 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6047 Anna Tikhonova <anna.tikhonova@intel.com>
6048 Ilya Tocar <ilya.tocar@intel.com>
6049 Andrey Turetskiy <andrey.turetskiy@intel.com>
6050 Ilya Verbin <ilya.verbin@intel.com>
6051 Kirill Yukhin <kirill.yukhin@intel.com>
6052 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6053
6054 * config/i386/i386.md
6055 (define_insn "*movoi_internal_avx"): Add evex version.
6056 (define_insn "*movti_internal"): Ditto.
6057
6058 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6059 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6060 Anna Tikhonova <anna.tikhonova@intel.com>
6061 Ilya Tocar <ilya.tocar@intel.com>
6062 Andrey Turetskiy <andrey.turetskiy@intel.com>
6063 Ilya Verbin <ilya.verbin@intel.com>
6064 Kirill Yukhin <kirill.yukhin@intel.com>
6065 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6066
6067 * config/i386/i386.md
6068 (define_attr "isa"): Add avx512dq, noavx512dq.
6069 (define_attr "enabled"): Ditto.
6070 * config/i386/sse.md
6071 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6072
6073 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6074 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6075 Anna Tikhonova <anna.tikhonova@intel.com>
6076 Ilya Tocar <ilya.tocar@intel.com>
6077 Andrey Turetskiy <andrey.turetskiy@intel.com>
6078 Ilya Verbin <ilya.verbin@intel.com>
6079 Kirill Yukhin <kirill.yukhin@intel.com>
6080 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6081
6082 * config/i386/i386.c
6083 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6084 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6085 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6086 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6087 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6088 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6089 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6090 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6091 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6092 * config/i386/sse.md
6093 (define_mode_iterator VMOVE): Allow V4TI mode.
6094 (define_mode_iterator V_AVX512VL): New.
6095 (define_mode_iterator V): New handling for AVX512VL.
6096 (define_insn "avx512f_load<mode>_mask"): Delete.
6097 (define_insn "<avx512>_load<mode>_mask"): New.
6098 (define_insn "avx512f_store<mode>_mask"): Delete.
6099 (define_insn "<avx512>_store<mode>_mask"): New.
6100
6101
6102 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6103
6104 PR sanitizer/62089
6105 * asan.c (instrument_derefs): Fix bitfield check.
6106
6107 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6108
6109 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6110 * config/rs6000/htm.md (ttest): Remove clobber.
6111 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6112 (and_operand): Reformat.
6113 (and_2rld_operand): New predicate.
6114 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6115 parameter.
6116 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6117 parameter. Handle AND directly.
6118 (rs6000_split_logical_di): Remove last parameter.
6119 (rs6000_split_logical): Remove last parameter. Remove obsolete
6120 comment.
6121 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6122 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6123 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6124 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6125 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6126 and 5 anonymous splitters): Delete.
6127 (and<mode>3): New expander.
6128 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6129 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6130 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6131 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6132 (floatdisf2_internal1): Remove clobbers.
6133 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6134 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6135 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6136 (and<mode>3 for BOOL_128): Remove clobber.
6137 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6138 rs6000_split_logical.
6139 (*bool<mode>3_internal for BOOL_128): Adjust call of
6140 rs6000_split_logical.
6141 (*boolc<mode>3_internal1 for BOOL_128,
6142 *boolc<mode>3_internal2 for BOOL_128,
6143 *boolcc<mode>3_internal1 for BOOL_128,
6144 *boolcc<mode>3_internal2 for BOOL_128,
6145 *eqv<mode>3_internal1 for BOOL_128,
6146 *eqv<mode>3_internal2 for BOOL_128,
6147 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6148 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6149 clobber.
6150 (*vec_reload_and_reg_<mptrsize>): Delete.
6151
6152 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6153
6154 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6155 and split, *boolccsi3_internal3 and split): Delete.
6156 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6157 *boolccdi3_internal3 and split): Delete.
6158 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6159 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6160
6161 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6162
6163 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6164 and split, *boolcsi3_internal3 and split): Delete.
6165 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6166 *boolcdi3_internal3 and split): Delete.
6167 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6168
6169 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6170
6171 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6172 <'u'>: Also support printing the low-order 16 bits.
6173 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6174 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6175 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6176 *booldi3_internal3 and split): Delete.
6177 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6178 *bool<mode>3_dot2): New.
6179 (two anonymous define_splits for non_logical_cint_operand): Merge.
6180
6181 2014-08-17 Marek Polacek <polacek@redhat.com>
6182 Manuel López-Ibáñez <manu@gcc.gnu.org>
6183
6184 PR c/62059
6185 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6186 (diagnostic_show_locus): Don't print caret diagnostic
6187 if a column is larger than the line_width.
6188
6189 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6190
6191 * common.opt: Make the ISL AST generator to be the main code generator
6192 of Graphite.
6193
6194 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6195
6196 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6197
6198 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6199
6200 PR target/61641
6201 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6202 Declare.
6203 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6204 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6205 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6206 Define.
6207 * config/pa/pa.md (begin_brtab): Delete insn.
6208 (end_brtab): Likewise.
6209
6210 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6211
6212 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6213
6214 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6215
6216 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6217 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6218 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6219 (get_dynamic_type): Remove.
6220 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6221 (clear_speculation): Bring to ipa-deivrt.h
6222 (get_class_context): Rename to ...
6223 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6224 (contains_type_p): Update.
6225 (get_dynamic_type): Rename to ...
6226 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6227 (possible_polymorphic_call_targets): UPdate.
6228 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6229 * ipa-prop.c (ipa_analyze_call_uses): Update.
6230
6231 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6232
6233 * doc/invoke.texi (SH options): Document missing processor variant
6234 options. Remove references to Hitachi. Undocument deprecated mspace
6235 option.
6236
6237 2014-08-15 Jason Merrill <jason@redhat.com>
6238
6239 * tree.c (type_hash_canon): Uncomment assert.
6240
6241 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6242
6243 * input.h (in_system_header_at): Add comment.
6244
6245 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6246
6247 PR fortran/44054
6248 * diagnostic.c (build_message_string): Make it extern.
6249 * diagnostic.h (build_message_string): Make it extern.
6250
6251 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6252
6253 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6254 load/store from/to non-floating class pseudo.
6255
6256 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6257
6258 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6259
6260 2014-08-15 Richard Biener <rguenther@suse.de>
6261
6262 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6263 (get_constraint_for_ssa_var): Remove dead code.
6264 (get_constraint_for_1): Adjust.
6265 (find_what_var_points_to): Likewise.
6266 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6267
6268 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6269
6270 PR target/61878
6271 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6272 (_mm512_mask_cmpge_epu32_mask): Ditto.
6273 (_mm512_cmpge_epu32_mask): Ditto.
6274 (_mm512_mask_cmpge_epi64_mask): Ditto.
6275 (_mm512_cmpge_epi64_mask): Ditto.
6276 (_mm512_mask_cmpge_epu64_mask): Ditto.
6277 (_mm512_cmpge_epu64_mask): Ditto.
6278 (_mm512_mask_cmple_epi32_mask): Ditto.
6279 (_mm512_cmple_epi32_mask): Ditto.
6280 (_mm512_mask_cmple_epu32_mask): Ditto.
6281 (_mm512_cmple_epu32_mask): Ditto.
6282 (_mm512_mask_cmple_epi64_mask): Ditto.
6283 (_mm512_cmple_epi64_mask): Ditto.
6284 (_mm512_mask_cmple_epu64_mask): Ditto.
6285 (_mm512_cmple_epu64_mask): Ditto.
6286 (_mm512_mask_cmplt_epi32_mask): Ditto.
6287 (_mm512_cmplt_epi32_mask): Ditto.
6288 (_mm512_mask_cmplt_epu32_mask): Ditto.
6289 (_mm512_cmplt_epu32_mask): Ditto.
6290 (_mm512_mask_cmplt_epi64_mask): Ditto.
6291 (_mm512_cmplt_epi64_mask): Ditto.
6292 (_mm512_mask_cmplt_epu64_mask): Ditto.
6293 (_mm512_cmplt_epu64_mask): Ditto.
6294 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6295 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6296 (_mm512_cmpneq_epu32_mask): Ditto.
6297 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6298 (_mm512_cmpneq_epi64_mask): Ditto.
6299 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6300 (_mm512_cmpneq_epu64_mask): Ditto.
6301 (_mm512_castpd_ps): Ditto.
6302 (_mm512_castpd_si512): Ditto.
6303 (_mm512_castps_pd): Ditto.
6304 (_mm512_castps_si512): Ditto.
6305 (_mm512_castsi512_ps): Ditto.
6306 (_mm512_castsi512_pd): Ditto.
6307 (_mm512_castpd512_pd128): Ditto.
6308 (_mm512_castps512_ps128): Ditto.
6309 (_mm512_castsi512_si128): Ditto.
6310 (_mm512_castpd512_pd256): Ditto.
6311 (_mm512_castps512_ps256): Ditto.
6312 (_mm512_castsi512_si256): Ditto.
6313 (_mm512_castpd128_pd512): Ditto.
6314 (_mm512_castps128_ps512): Ditto.
6315 (_mm512_castsi128_si512): Ditto.
6316 (_mm512_castpd256_pd512): Ditto.
6317 (_mm512_castps256_ps512): Ditto.
6318 (_mm512_castsi256_si512): Ditto.
6319 (_mm512_cmpeq_epu32_mask): Ditto.
6320 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6321 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6322 (_mm512_cmpeq_epu64_mask): Ditto.
6323 (_mm512_cmpgt_epu32_mask): Ditto.
6324 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6325 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6326 (_mm512_cmpgt_epu64_mask): Ditto.
6327 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6328 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6329 * config/i386/i386.c (enum ix86_builtins): Add
6330 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6331 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6332 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6333 (bdesc_args): Add __builtin_ia32_si512_256si,
6334 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6335 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6336 __builtin_ia32_pd512_pd.
6337 (ix86_expand_args_builtin): Handle new FTYPEs.
6338 * config/i386/sse.md (castmode): Add 512-bit modes.
6339 (AVX512MODE2P): New.
6340 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6341 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6342
6343 2014-08-15 Richard Biener <rguenther@suse.de>
6344
6345 * fold-const.c (tree_swap_operands_p): Put all constants
6346 last, also strip sign-changing NOPs when considering further
6347 canonicalization. Canonicalize also when optimizing for size.
6348
6349 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6350
6351 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6352 one_match > zero_match case to just before simple_sequence.
6353
6354 2014-08-15 Richard Biener <rguenther@suse.de>
6355
6356 * data-streamer.h (streamer_string_index, string_for_index):
6357 Remove.
6358 * data-streamer-out.c (streamer_string_index): Make static.
6359 * data-streamer-in.c (string_for_index): Likewise.
6360 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6361 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6362
6363 2014-08-15 Richard Biener <rguenther@suse.de>
6364
6365 PR tree-optimization/62031
6366 * tree-data-ref.c (dr_analyze_indices): Do not set
6367 DR_UNCONSTRAINED_BASE.
6368 (dr_may_alias_p): All indirect accesses have to go the
6369 formerly DR_UNCONSTRAINED_BASE path.
6370 * tree-data-ref.h (struct indices): Remove
6371 unconstrained_base member.
6372 (DR_UNCONSTRAINED_BASE): Remove.
6373
6374 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6375
6376 PR middle-end/62092
6377 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6378 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6379 in OMP_CLAUSE_MAP in some outer target region.
6380
6381 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6382
6383 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6384 name_expansion_cache.
6385 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6386 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6387 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6388 (difference_cannot_overflow_p): New parameter. Use affine
6389 expansion for equality check.
6390 (iv_elimination_compare_lt): Pass new argument.
6391
6392 2014-08-14 DJ Delorie <dj@redhat.com>
6393
6394 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6395 variables to the accumulator.
6396
6397 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6398 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6399 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6400 with far-far moves.
6401
6402 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6403 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6404 (umulqihi3_virt): Likewise.
6405 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6406 (umulqihi3_real): Likewise.
6407
6408 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6409
6410 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6411
6412 PR tree-optimization/62091
6413 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6414 function_entry_reached.
6415 (walk_aliased_vdefs): Clear it here.
6416 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6417
6418 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6419
6420 * ipa-utils.h (compare_virtual_tables): Declare.
6421 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6422
6423 2014-08-14 Marek Polacek <polacek@redhat.com>
6424
6425 DR 458
6426 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6427 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6428
6429 2014-08-14 Tom de Vries <tom@codesourcery.com>
6430
6431 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6432
6433 2014-08-14 Tom de Vries <tom@codesourcery.com>
6434
6435 PR rtl-optimization/62004
6436 PR rtl-optimization/62030
6437 * ifcvt.c (rtx_interchangeable_p): New function.
6438 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6439 * emit-rtl.h (mem_attrs_eq_p): Declare.
6440
6441 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6442
6443 * graphite-scop-detection.c:
6444 Add inclusion of cp-tree.h.
6445 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6446 in case they are pointers to object types
6447
6448 2014-08-14 Richard Biener <rguenther@suse.de>
6449
6450 * BASE-VER: Change to 5.0.0
6451
6452 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6453 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6454 Anna Tikhonova <anna.tikhonova@intel.com>
6455 Ilya Tocar <ilya.tocar@intel.com>
6456 Andrey Turetskiy <andrey.turetskiy@intel.com>
6457 Ilya Verbin <ilya.verbin@intel.com>
6458 Kirill Yukhin <kirill.yukhin@intel.com>
6459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6460
6461 * config/i386/sse.md (define_mode_attr avx512): New.
6462 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6463 V4DI modes.
6464 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6465 (define_mode_attr ssse3_avx2): Ditto.
6466 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6467 (define_mode_attr avx2_avx512bw): New.
6468 (define_mode_attr ssedoublemodelower): New.
6469 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6470 V32HI, V64QI modes.
6471 (define_mode_attr ssebytemode): Allow V8DI modes.
6472 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6473 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6474 (define_mode_attr ssePSmode2): New.
6475 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6476 V16HI, V32HI modes.
6477 (define_mode_attr dbpsadbwmode): New.
6478 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6479 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6480 (vi8_sse4_1_avx2_avx512): New.
6481 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6482 mode attribute.
6483 (define_mode_attr blendbits): Move before its immediate use.
6484
6485 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6487 Anna Tikhonova <anna.tikhonova@intel.com>
6488 Ilya Tocar <ilya.tocar@intel.com>
6489 Andrey Turetskiy <andrey.turetskiy@intel.com>
6490 Ilya Verbin <ilya.verbin@intel.com>
6491 Kirill Yukhin <kirill.yukhin@intel.com>
6492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6493
6494 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6495 * config/i386/subst.md
6496 (define_mode_iterator SUBST_V): Update.
6497 (define_mode_iterator SUBST_A): Ditto.
6498 (define_subst_attr "mask_operand7"): New.
6499 (define_subst_attr "mask_operand10"): New.
6500 (define_subst_attr "mask_operand_arg34") : New.
6501 (define_subst_attr "mask_expand_op3"): New.
6502 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6503 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6504 (define_subst_attr "mask_avx512vl_condition"): New.
6505 (define_subst_attr "round_mask_operand4"): Ditto.
6506 (define_subst_attr "round_mask_scalar_op3"): Delete.
6507 (define_subst_attr "round_mask_op4"): New.
6508 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6509 V16SImode.
6510 (define_subst_attr "round_modev8sf_condition"): New.
6511 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6512 <MODE>mode.
6513 (define_subst_attr "round_saeonly_mask_operand4"): New.
6514 (define_subst_attr "round_saeonly_mask_op4"): New.
6515 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6516 V8DImode, V16SImode.
6517 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6518 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6519 (define_subst_attr "mask_expand4_args"): New.
6520 (define_subst "mask_expand4"): New.
6521
6522 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6524 Anna Tikhonova <anna.tikhonova@intel.com>
6525 Ilya Tocar <ilya.tocar@intel.com>
6526 Andrey Turetskiy <andrey.turetskiy@intel.com>
6527 Ilya Verbin <ilya.verbin@intel.com>
6528 Kirill Yukhin <kirill.yukhin@intel.com>
6529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6530
6531 * config/i386/i386.md
6532 (define_attr "isa"): Add avx512bw,noavx512bw.
6533 (define_attr "enabled"): Ditto.
6534 (define_split): Add 32/64-bit mask logic.
6535 (define_insn "*k<logic>qi"): New.
6536 (define_insn "*k<logic>hi"): New.
6537 (define_insn "*anddi_1"): Add mask version.
6538 (define_insn "*andsi_1"): Ditto.
6539 (define_insn "*<code><mode>_1"): Ditto.
6540 (define_insn "*<code>hi_1"): Ditto.
6541 (define_insn "kxnor<mode>"): New.
6542 (define_insn "kunpcksi"): New.
6543 (define_insn "kunpckdi"): New.
6544 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6545 (define_insn "*one_cmplhi2_1"): Ditto.
6546
6547 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6548 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6549 Anna Tikhonova <anna.tikhonova@intel.com>
6550 Ilya Tocar <ilya.tocar@intel.com>
6551 Andrey Turetskiy <andrey.turetskiy@intel.com>
6552 Ilya Verbin <ilya.verbin@intel.com>
6553 Kirill Yukhin <kirill.yukhin@intel.com>
6554 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6555
6556 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6557 V32HImode.
6558
6559 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6561 Anna Tikhonova <anna.tikhonova@intel.com>
6562 Ilya Tocar <ilya.tocar@intel.com>
6563 Andrey Turetskiy <andrey.turetskiy@intel.com>
6564 Ilya Verbin <ilya.verbin@intel.com>
6565 Kirill Yukhin <kirill.yukhin@intel.com>
6566 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6567
6568 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6569 registers.
6570 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6571 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6572 xmm/ymm16+ when availble.
6573 * config/i386/i386.h
6574 (HARD_REGNO_NREGS): Add mask regs.
6575 (VALID_AVX512F_REG_MODE): Ditto.
6576 (VALID_AVX512F_REG_MODE) : Define.
6577 (VALID_MASK_AVX512BW_MODE): Ditto.
6578 (reg_class) (MASK_REG_P(X)): Define.
6579 * config/i386/i386.md: Do not split long moves with mask register,
6580 use kmovb if avx512bw is availible.
6581 (movdi_internal): Handle mask registers.
6582
6583 2014-08-14 Richard Biener <rguenther@suse.de>
6584
6585 PR tree-optimization/62081
6586 * tree-ssa-loop.c (pass_fix_loops): New pass.
6587 (pass_tree_loop::gate): Do not fixup loops here.
6588 * tree-pass.h (make_pass_fix_loops): Declare.
6589 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6590
6591 2014-08-14 Richard Biener <rguenther@suse.de>
6592
6593 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6594 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6595
6596 2014-08-14 Richard Biener <rguenther@suse.de>
6597
6598 PR tree-optimization/62090
6599 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6600 (fold_builtin_2): Do not fold sprintf.
6601 (fold_builtin_3): Likewise.
6602 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6603 moved from builtins.c.
6604 (gimple_fold_builtin): Fold sprintf.
6605
6606 2014-08-14 Richard Biener <rguenther@suse.de>
6607
6608 PR rtl-optimization/62079
6609 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6610 run cleanup_cfg.
6611
6612 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6613
6614 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6615 current_function_decl.
6616
6617 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6618
6619 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6620 cgraph_function_node to cgraph_node::function_symbol
6621 refactoring.
6622
6623 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6624
6625 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6626 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6627
6628 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6629
6630 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6631 warning.
6632
6633 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6634
6635 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6636 generator.
6637
6638 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6639
6640 PR target/62025
6641 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6642 any registers that are used in mem_insn.
6643
6644 2014-08-12 Steve Ellcey <sellcey@mips.com>
6645
6646 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6647
6648 2014-08-12 Steve Ellcey <sellcey@mips.com>
6649
6650 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6651 (MULTILIB_DIRNAMES): Ditto.
6652 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6653 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6654 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6655 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6656 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6657 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6658
6659 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6660
6661 PR target/61413
6662 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6663 of __ARM_SIZEOF_WCHAR_T.
6664
6665 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6666
6667 PR target/62098
6668 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6669 Remove unnecessary attributes.
6670
6671 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6672
6673 * internal-fn.c (init_internal_fns): Fix off-by-one.
6674
6675 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6676 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6677 Anna Tikhonova <anna.tikhonova@intel.com>
6678 Ilya Tocar <ilya.tocar@intel.com>
6679 Andrey Turetskiy <andrey.turetskiy@intel.com>
6680 Ilya Verbin <ilya.verbin@intel.com>
6681 Kirill Yukhin <kirill.yukhin@intel.com>
6682 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6683
6684 * config/i386/i386.c (standard_sse_constant_opcode): Use
6685 vpxord/vpternlog if avx512 is availible.
6686
6687 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6688
6689 PR middle-end/62103
6690 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6691 bitfields, that is when size doesn't match the size of type or the
6692 size of the constructor.
6693
6694 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6695
6696 * config/rs6000/constraints.md (wh constraint): New constraint,
6697 for FP registers if direct move is available.
6698 (wi constraint): New constraint, for VSX/FP registers that can
6699 handle 64-bit integers.
6700 (wj constraint): New constraint for VSX/FP registers that can
6701 handle 64-bit integers for direct moves.
6702 (wk constraint): New constraint for VSX/FP registers that can
6703 handle 64-bit doubles for direct moves.
6704 (wy constraint): Make documentation match implementation.
6705
6706 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6707 scalar_in_vmx_p field to simplify tests of whether SFmode or
6708 DFmode can go in the Altivec registers.
6709 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6710 (rs6000_setup_reg_addr_masks): Likewise.
6711 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6712 field, and wh/wi/wj/wk constraints.
6713 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6714 the wh/wi/wj/wk constraints.
6715 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6716 upper registers, prefer VSX registers unless the operation is a
6717 memory operation with REG+OFFSET addressing.
6718
6719 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6720 DImode. Change SFmode to use ww constraint instead of d to allow
6721 SF registers in the upper registers.
6722 (VSr2): Likewise.
6723 (VSr3): Likewise.
6724 (VSr5): Fix thinko in comment.
6725 (VSa): New mode attribute that is an alternative to wa, that
6726 returns the VSX register class that a mode can go in, but may not
6727 be the preferred register class.
6728 (VS_64dm): New mode attribute for appropriate register classes for
6729 referencing 64-bit elements of vectors for direct moves and normal
6730 moves.
6731 (VS_64reg): Likewise.
6732 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6733 register allocator to only registers the data type can handle.
6734 (vsx_le_perm_load_<mode>): Likewise.
6735 (vsx_le_perm_store_<mode>): Likewise.
6736 (vsx_xxpermdi2_le_<mode>): Likewise.
6737 (vsx_xxpermdi4_le_<mode>): Likewise.
6738 (vsx_lxvd2x2_le_<mode>): Likewise.
6739 (vsx_lxvd2x4_le_<mode>): Likewise.
6740 (vsx_stxvd2x2_le_<mode>): Likewise.
6741 (vsx_add<mode>3): Likewise.
6742 (vsx_sub<mode>3): Likewise.
6743 (vsx_mul<mode>3): Likewise.
6744 (vsx_div<mode>3): Likewise.
6745 (vsx_tdiv<mode>3_internal): Likewise.
6746 (vsx_fre<mode>2): Likewise.
6747 (vsx_neg<mode>2): Likewise.
6748 (vsx_abs<mode>2): Likewise.
6749 (vsx_nabs<mode>2): Likewise.
6750 (vsx_smax<mode>3): Likewise.
6751 (vsx_smin<mode>3): Likewise.
6752 (vsx_sqrt<mode>2): Likewise.
6753 (vsx_rsqrte<mode>2): Likewise.
6754 (vsx_tsqrt<mode>2_internal): Likewise.
6755 (vsx_fms<mode>4): Likewise.
6756 (vsx_nfma<mode>4): Likewise.
6757 (vsx_eq<mode>): Likewise.
6758 (vsx_gt<mode>): Likewise.
6759 (vsx_ge<mode>): Likewise.
6760 (vsx_eq<mode>_p): Likewise.
6761 (vsx_gt<mode>_p): Likewise.
6762 (vsx_ge<mode>_p): Likewise.
6763 (vsx_xxsel<mode>): Likewise.
6764 (vsx_xxsel<mode>_uns): Likewise.
6765 (vsx_copysign<mode>3): Likewise.
6766 (vsx_float<VSi><mode>2): Likewise.
6767 (vsx_floatuns<VSi><mode>2): Likewise.
6768 (vsx_fix_trunc<mode><VSi>2): Likewise.
6769 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6770 (vsx_x<VSv>r<VSs>i): Likewise.
6771 (vsx_x<VSv>r<VSs>ic): Likewise.
6772 (vsx_btrunc<mode>2): Likewise.
6773 (vsx_b2trunc<mode>2): Likewise.
6774 (vsx_floor<mode>2): Likewise.
6775 (vsx_ceil<mode>2): Likewise.
6776 (vsx_<VS_spdp_insn>): Likewise.
6777 (vsx_xscvspdp): Likewise.
6778 (vsx_xvcvspuxds): Likewise.
6779 (vsx_float_fix_<mode>2): Likewise.
6780 (vsx_set_<mode>): Likewise.
6781 (vsx_extract_<mode>_internal1): Likewise.
6782 (vsx_extract_<mode>_internal2): Likewise.
6783 (vsx_extract_<mode>_load): Likewise.
6784 (vsx_extract_<mode>_store): Likewise.
6785 (vsx_splat_<mode>): Likewise.
6786 (vsx_xxspltw_<mode>): Likewise.
6787 (vsx_xxspltw_<mode>_direct): Likewise.
6788 (vsx_xxmrghw_<mode>): Likewise.
6789 (vsx_xxmrglw_<mode>): Likewise.
6790 (vsx_xxsldwi_<mode>): Likewise.
6791 (vsx_xscvdpspn): Tighten constraints to only use register classes
6792 the types use.
6793 (vsx_xscvspdpn): Likewise.
6794 (vsx_xscvdpspn_scalar): Likewise.
6795
6796 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6797 wj, and wk constraints.
6798 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6799 general purpose registers.
6800
6801 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6802 direct moves.
6803 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6804 DImode instead of wm. Use wk constraint for direct move of DFmode
6805 instead of wm.
6806 (extendsidi2_lfiwax): Likewise.
6807 (lfiwax): Likewise.
6808 (lfiwzx): Likewise.
6809 (movdi_internal64): Likewise.
6810
6811 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6812 wk constraints. Make the wy constraint documentation match them
6813 implementation.
6814
6815 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6816
6817 Replacement of isl_int by isl_val
6818 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6819 (compute_bounds_for_param): use isl_val instead of isl_int
6820 (compute_bounds_for_loop): likewise
6821 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6822 (build_linearized_memory_access): use isl_val instead of isl_int
6823 (pdr_stride_in_loop): likewise
6824 * graphite-optimize-isl.c:
6825 (getPrevectorMap): use isl_val instead of isl_int
6826 * graphite-poly.c:
6827 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6828 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6829 (extern the_isl_ctx): declare
6830 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6831 (extract_affine_gmp): likewise
6832 (wrap): likewise
6833 (build_loop_iteration_domains): likewise
6834 (add_param_constraints): likewise
6835
6836 2014-08-11 Richard Biener <rguenther@suse.de>
6837
6838 PR tree-optimization/62075
6839 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6840 handle uses in patterns.
6841
6842 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6844 Anna Tikhonova <anna.tikhonova@intel.com>
6845 Ilya Tocar <ilya.tocar@intel.com>
6846 Andrey Turetskiy <andrey.turetskiy@intel.com>
6847 Ilya Verbin <ilya.verbin@intel.com>
6848 Kirill Yukhin <kirill.yukhin@intel.com>
6849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6850
6851 * common/config/i386/i386-common.c
6852 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6853 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6854 (ix86_handle_option): Handle OPT_mavx512vl.
6855 * config/i386/cpuid.h (bit_AVX512VL): Define.
6856 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6857 set -mavx512vl accordingly.
6858 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6859 OPTION_MASK_ISA_AVX512VL.
6860 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6861 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6862 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6863 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6864 * config/i386/i386.h (TARGET_AVX512VL): Define.
6865 (TARGET_AVX512VL_P(x)): Ditto.
6866 * config/i386/i386.opt: Add mavx512vl.
6867
6868 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6869
6870 PR tree-optimization/62073
6871 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6872 a basic block.
6873
6874 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6875 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6876 Anna Tikhonova <anna.tikhonova@intel.com>
6877 Ilya Tocar <ilya.tocar@intel.com>
6878 Andrey Turetskiy <andrey.turetskiy@intel.com>
6879 Ilya Verbin <ilya.verbin@intel.com>
6880 Kirill Yukhin <kirill.yukhin@intel.com>
6881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6882
6883 * common/config/i386/i386-common.c
6884 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6885 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6886 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6887 (ix86_handle_option): Handle OPT_mavx512bw.
6888 * config/i386/cpuid.h (bit_AVX512BW): Define.
6889 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6890 set -mavx512bw accordingly.
6891 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6892 OPTION_MASK_ISA_AVX512BW.
6893 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6894 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6895 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6896 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6897 * config/i386/i386.h (TARGET_AVX512BW): Define.
6898 (TARGET_AVX512BW_P(x)): Ditto.
6899 * config/i386/i386.opt: Add mavx512bw.
6900
6901 2014-08-11 Richard Biener <rguenther@suse.de>
6902
6903 PR tree-optimization/62070
6904 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6905 Remove SSA checking.
6906
6907 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6908
6909 * asan.c (asan_check_flags): New enum.
6910 (build_check_stmt_with_calls): Removed function.
6911 (build_check_stmt): Split inlining logic to
6912 asan_expand_check_ifn.
6913 (instrument_derefs): Rename parameter.
6914 (instrument_mem_region_access): Rename parameter.
6915 (instrument_strlen_call): Likewise.
6916 (asan_expand_check_ifn): New function.
6917 (asan_instrument): Remove old code.
6918 (pass_sanopt::execute): Change handling of
6919 asan-instrumentation-with-call-threshold.
6920 (asan_clear_shadow): Fix formatting.
6921 (asan_function_start): Likewise.
6922 (asan_emit_stack_protection): Likewise.
6923 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6924 Update description.
6925 * internal-fn.c (expand_ASAN_CHECK): New function.
6926 * internal-fn.def (ASAN_CHECK): New internal function.
6927 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6928 Update description.
6929 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6930 * tree.c: Small comment fix.
6931
6932 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6933
6934 * gimple.c (gimple_call_fnspec): Support internal functions.
6935 (gimple_call_return_flags): Use const.
6936 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6937 * internal-fn.def: Add fnspec information.
6938 * internal-fn.h (internal_fn_fnspec): New function.
6939 (init_internal_fns): Declare new function.
6940 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6941 (init_internal_fns): New function.
6942 * tree-core.h: Update macro call.
6943 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6944
6945 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6946
6947 * lto-streamer.h (struct output_block::symbol): Change from
6948 struct symtab_node to plain symtab_node.
6949 (referenced_from_this_partition_p): Change first parameter
6950 from struct symtab_node to plain symtab_node.
6951
6952 2014-08-10 Marek Polacek <polacek@redhat.com>
6953
6954 PR c/51849
6955 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6956
6957 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6958
6959 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6960 DECL correctly; do not give up on types in static storage.
6961
6962 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6963
6964 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6965
6966 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6967
6968 * graphite-isl-ast-to-gimple.c:
6969 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6970
6971 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6972
6973 2014-08-08 Guozhi Wei <carrot@google.com>
6974
6975 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6976
6977 2014-08-08 Cary Coutant <ccoutant@google.com>
6978
6979 * dwarf2out.c (get_skeleton_type_unit): Remove.
6980 (output_skeleton_debug_sections): Remove skeleton type units.
6981 (output_comdat_type_unit): Likewise.
6982 (dwarf2out_finish): Likewise.
6983
6984 2014-08-07 Yi Yang <ahyangyi@google.com>
6985
6986 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6987
6988 2014-08-08 Richard Biener <rguenther@suse.de>
6989
6990 * lto-streamer.h (struct lto_input_block): Make it a class
6991 with a constructor.
6992 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6993 (struct lto_function_header, struct lto_simple_header,
6994 struct lto_simple_header_with_strings,
6995 struct lto_decl_header, struct lto_function_header): Make
6996 a simple inheritance hieararchy. Remove unused fields.
6997 (struct lto_asm_header): Remove.
6998 * lto-streamer-out.c (produce_asm): Adjust.
6999 (lto_output_toplevel_asms): Likewise.
7000 (produce_asm_for_decls): Likewise.
7001 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7002 * data-streamer-in.c (string_for_index): Likewise.
7003 * ipa-inline-analysis.c (inline_read_section): Likewise.
7004 * ipa-prop.c (ipa_prop_read_section): Likewise.
7005 (read_replacements_section): Likewise.
7006 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7007 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7008 (lto_destroy_simple_input_block): Likewise.
7009 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7010 (lto_input_toplevel_asms): Likewise.
7011
7012 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7013 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7014 Anna Tikhonova <anna.tikhonova@intel.com>
7015 Ilya Tocar <ilya.tocar@intel.com>
7016 Andrey Turetskiy <andrey.turetskiy@intel.com>
7017 Ilya Verbin <ilya.verbin@intel.com>
7018 Kirill Yukhin <kirill.yukhin@intel.com>
7019 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7020
7021 * common/config/i386/i386-common.c
7022 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7023 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7024 (ix86_handle_option): Handle OPT_mavx512dq.
7025 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7026 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7027 set -mavx512dq accordingly.
7028 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7029 OPTION_MASK_ISA_AVX512DQ.
7030 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7031 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7032 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7033 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7034 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7035 (TARGET_AVX512DQ_P(x)): Ditto.
7036 * config/i386/i386.opt: Add mavx512dq.
7037
7038 2014-08-08 Richard Biener <rguenther@suse.de>
7039
7040 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7041 target_percent, target_percent_s): Export.
7042 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7043 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7044 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7045 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7046 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7047 Move to gimple-fold.c.
7048 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7049 strcat and strcpy.
7050 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7051 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7052 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7053 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7054 (rewrite_call_expr_array): Remove.
7055 (fold_builtin_sprintf_chk): Likewise.
7056 (fold_builtin_snprintf_chk): Likewise.
7057 (fold_builtin_varargs): Remove handling of sprintf_chk,
7058 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7059 (gimple_fold_builtin_sprintf_chk): Remove.
7060 (gimple_fold_builtin_snprintf_chk): Likewise.
7061 (gimple_fold_builtin_varargs): Likewise.
7062 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7063 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7064 * gimple.c (gimple_seq_add_seq_without_update): New function.
7065 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7066 * gimple-fold.c: Include output.h.
7067 (gsi_replace_with_seq_vops): New function, split out from ...
7068 (gimplify_and_update_call_from_tree): ... here.
7069 (replace_call_with_value): New function.
7070 (replace_call_with_call_and_fold): Likewise.
7071 (var_decl_component_p): Moved from builtins.c.
7072 (gimple_fold_builtin_memory_op): Moved from builtins.c
7073 fold_builtin_memory_op and rewritten to GIMPLE.
7074 (gimple_fold_builtin_memset): Likewise.
7075 (gimple_fold_builtin_strcpy): Likewise.
7076 (gimple_fold_builtin_strncpy): Likewise.
7077 (gimple_fold_builtin_strcat): Likewise.
7078 (gimple_fold_builtin_fputs): Likewise.
7079 (gimple_fold_builtin_memory_chk): Likewise.
7080 (gimple_fold_builtin_stxcpy_chk): Likewise.
7081 (gimple_fold_builtin_stxncpy_chk): Likewise.
7082 (gimple_fold_builtin_snprintf_chk): Likewise.
7083 (gimple_fold_builtin_sprintf_chk): Likewise.
7084 (gimple_fold_builtin_strlen): New function.
7085 (gimple_fold_builtin_with_strlen): New function split out from
7086 gimple_fold_builtin.
7087 (gimple_fold_builtin): Change signature and handle
7088 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7089 here. Call gimple_fold_builtin_with_strlen.
7090 (gimple_fold_call): Adjust.
7091
7092 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7093
7094 * calls.c (precompute_arguments): Check
7095 promoted_for_signed_and_unsigned_p and set the promoted mode.
7096 (promoted_for_signed_and_unsigned_p): New function.
7097 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7098 and set the promoted mode.
7099 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7100 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7101 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7102
7103
7104 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7105
7106 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7107 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7108 (expand_call): Likewise.
7109 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7110 to get promoted mode.
7111 * combine.c (record_promoted_value): Skip > 0 comparison with
7112 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7113 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7114 of SUBREG_PROMOTED_UNSIGNED_P.
7115 (convert_modes): Likewise.
7116 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7117 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7118 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7119 SUBREG_PROMOTED_UNSIGNED_SET.
7120 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7121 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7122 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7123 SUBREG_PROMOTED_SET.
7124 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7125 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7126 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7127 of SUBREG_PROMOTED_UNSIGNED_P.
7128 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7129 (SUBREG_PROMOTED_SET): New define.
7130 (SUBREG_PROMOTED_GET): Likewise.
7131 (SUBREG_PROMOTED_SIGN): Likewise.
7132 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7133 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7134 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7135 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7136 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7137 (nonzero_bits1): Skip > 0 comparison with the results as
7138 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7139 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7140 of !SUBREG_PROMOTED_UNSIGNED_P.
7141 * simplify-rtx.c (simplify_unary_operation_1): Use new
7142 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7143 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7144 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7145 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7146
7147 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7148
7149 * ipa-devirt.c: Include gimple-pretty-print.h
7150 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7151 further tests.
7152 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7153 (get_polymorphic_call_info): Fix return value
7154 (type_change_info): New sturcture based on ipa-prop
7155 variant.
7156 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7157 based on ipa-prop variant.
7158 (extr_type_from_vtbl_ptr_store): New function
7159 based on ipa-prop variant.
7160 (record_known_type): New function.
7161 (check_stmt_for_type_change): New function.
7162 (get_dynamic_type): New function.
7163 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7164 * tree-ssa-pre.c: ipa-utils.h
7165 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7166 machinery; sanity check with ipa-prop devirtualization.
7167 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7168 polymorphic flag.
7169
7170 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7171
7172 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7173 * alias.c, cfgexpand.c, cgraphbuild.c,
7174 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7175 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7176 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7177 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7178 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7179 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7180 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7181 dse.c, except.c, gengtype.c, gimple-expr.c,
7182 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7183 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7184 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7185 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7186 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7187 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7188 pointer-set.h.
7189 * pointer-set.c: Remove file.
7190 * pointer-set.h: Remove file.
7191
7192 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7193
7194 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7195 * config/arm/types.md (f_sels, f_seld): Delete.
7196
7197 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7198
7199 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7200 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7201 (aarch64_movdi_<mode>high): Likewise.
7202 (aarch64_mov<mode>high_di): Likewise.
7203 (aarch64_movdi_<mode>low): Likewise.
7204 (aarch64_mov<mode>low_di): Likewise.
7205 (aarch64_movtilow_tilow): Likewise.
7206 Add comment explaining usage of fp,simd attributes and of
7207 TARGET_FLOAT and TARGET_SIMD.
7208
7209 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7210 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7211
7212 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7213 Use MOVN when one of the half-words is 0xffff.
7214
7215 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7216
7217 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7218
7219 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7220
7221 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7222 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7223 (rfs_str): String corresponding to RFS_* constants.
7224 (rank_for_schedule_stats_t): New typedef.
7225 (rank_for_schedule_stats): New static variable.
7226 (rfs_result): New static function.
7227 (rank_for_schedule): Track statistics for deciding heuristics.
7228 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7229 static functions.
7230 (ready_sort): Use them for debug printouts.
7231 (schedule_block): Init statistics state. Print statistics on
7232 rank_for_schedule decisions.
7233
7234 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7235
7236 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7237
7238 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7239
7240 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7241 constraint.
7242
7243 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7244
7245 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7246 function to not conflict.
7247 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7248 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7249 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7250 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7251 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7252 of pointer_map.
7253
7254 2014-08-07 Marek Polacek <polacek@redhat.com>
7255
7256 * fold-const.c (fold_binary_loc): Add folding of
7257 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7258
7259 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7260
7261 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7262 instead of type size.
7263 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7264
7265 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7266
7267 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7268 (*thumb1_movqi_insn): Likewise.
7269 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7270
7271 2014-08-07 Tom de Vries <tom@codesourcery.com>
7272
7273 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7274 (glibc_2_11_or_earlier): Remove effective-target keywords.
7275
7276 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7277
7278 * config/arm/arm.c (bdesc_2arg): Fix typo.
7279 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7280
7281 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7282
7283 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7284
7285 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7286
7287 PR debug/61923
7288 * haifa-sched.c (advance_one_cycle): Fix dump.
7289 (schedule_block): Don't advance cycle if we are already at the
7290 beginning of the cycle.
7291
7292 2014-08-06 Martin Jambor <mjambor@suse.cz>
7293
7294 PR ipa/61393
7295 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7296
7297 2014-08-06 Richard Biener <rguenther@suse.de>
7298
7299 PR lto/62034
7300 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7301 SCCs here.
7302 (lto_input_tree): Pop SCCs here.
7303
7304 2014-08-06 Richard Biener <rguenther@suse.de>
7305
7306 PR tree-optimization/61320
7307 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7308 handle misaligned loads.
7309
7310 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7311
7312 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7313 (aarch64_expand_vec_perm_const): Check for dup before zip.
7314
7315 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7316
7317 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7318 CONST_INT_P instead of GET_CODE and compare.
7319 (aarch64_select_cc_mode): Likewise.
7320 (aarch64_print_operand): Likewise.
7321 (aarch64_rtx_costs): Likewise.
7322 (aarch64_simd_valid_immediate): Likewise.
7323 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7324 (aarch64_simd_emit_pair_result_insn): Likewise.
7325
7326 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7327
7328 * gdbhooks.py (find_gcc_source_dir): New helper function.
7329 (class PassNames): New class, locating and parsing passes.def.
7330 (class BreakOnPass): New command "break-on-pass".
7331
7332 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7333
7334 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7335 getting olde.
7336
7337 2014-08-05 Richard Biener <rguenther@suse.de>
7338
7339 PR rtl-optimization/61672
7340 * emit-rtl.h (mem_attrs_eq_p): Declare.
7341 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7342 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7343 * cfgcleanup.c (merge_memattrs): Likewise.
7344 Include emit-rtl.h.
7345
7346 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7347
7348 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7349 rather than singleton vectors.
7350 (vqdmlsls_lane_s32): Likewise.
7351
7352 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7353
7354 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7355 Use VSDQ_HSI mode iterator.
7356 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7357 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7358 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7359 Use BUILTIN_VDQHS macro.
7360 (sqrdmulh_laneq): Likewise.
7361 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7362 (vqdmlals_laneq_s32): Likewise.
7363 (vqdmlslh_laneq_s16): Likewise.
7364 (vqdmlsls_laneq_s32): Likewise.
7365 (vqdmulhh_laneq_s16): Likewise.
7366 (vqdmulhs_laneq_s32): Likewise.
7367 (vqrdmulhh_laneq_s16): Likewise.
7368 (vqrdmulhs_laneq_s32): Likewise.
7369
7370 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7371
7372 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7373 (vmuld_laneq_f64): Likewise.
7374 (vmuls_laneq_f32): Likewise.
7375 (vmul_n_f64): Likewise.
7376 (vmuld_lane_f64): Reimplement in C.
7377 (vmuls_lane_f32): Likewise.
7378
7379 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7380
7381 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7382 to reservation.
7383 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7384
7385 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7386
7387 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7388 (rbitsi2): Likewise.
7389 (*arm_rev): Set predicable and predicable_short_it attributes.
7390
7391 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7392
7393 * convert.c (convert_to_integer): Guard transformation to lrint by
7394 -fno-math-errno.
7395
7396 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7397
7398 * config/aarch64/aarch64-builtins.c
7399 (aarch64_simd_builtin_type_mode): Delete.
7400 (v8qi_UP): Remap to V8QImode.
7401 (v4hi_UP): Remap to V4HImode.
7402 (v2si_UP): Remap to V2SImode.
7403 (v2sf_UP): Remap to V2SFmode.
7404 (v1df_UP): Remap to V1DFmode.
7405 (di_UP): Remap to DImode.
7406 (df_UP): Remap to DFmode.
7407 (v16qi_UP):V16QImode.
7408 (v8hi_UP): Remap to V8HImode.
7409 (v4si_UP): Remap to V4SImode.
7410 (v4sf_UP): Remap to V4SFmode.
7411 (v2di_UP): Remap to V2DImode.
7412 (v2df_UP): Remap to V2DFmode.
7413 (ti_UP): Remap to TImode.
7414 (ei_UP): Remap to EImode.
7415 (oi_UP): Remap to OImode.
7416 (ci_UP): Map to CImode.
7417 (xi_UP): Remap to XImode.
7418 (si_UP): Remap to SImode.
7419 (sf_UP): Remap to SFmode.
7420 (hi_UP): Remap to HImode.
7421 (qi_UP): Remap to QImode.
7422 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7423 (VAR1): Build builtin name.
7424 (aarch64_init_simd_builtins): Remove dead code.
7425
7426 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7427
7428 * graphite-isl-ast-to-gimple.c:
7429 (set_options): New function.
7430 (scop_to_isl_ast): Add calling of set_options.
7431
7432 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7433
7434 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7435 (analyze_iv_to_split_insn): Don't initialize them.
7436 (get_ivts_expr): Removed.
7437 (allocate_basic_variable, insert_base_initialization): Use
7438 SET_SRC instead of *get_ivts_expr.
7439 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7440
7441 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7442
7443 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7444 (translate_isl_ast_for_loop): Add checking of the
7445 flag_loop_parallelize_all.
7446 (ast_build_before_for): New function.
7447 (scop_to_isl_ast): Add checking of the
7448 flag_loop_parallelize_all.
7449 * graphite-dependences.c: Move the defenition of the
7450 scop_get_dependences from graphite-optimize-isl.c to this file.
7451 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7452 (carries_deps): Add checking of the x's value.
7453 * graphite-optimize-isl.c: Move the defenition of the
7454 scop_get_dependences to graphite-dependences.c.
7455 * graphite-poly.h: Add declarations of scop_get_dependences
7456 and carries_deps.
7457
7458 2014-08-04 Rohit <rohitarulraj@freescale.com>
7459
7460 PR target/60102
7461 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7462 names.
7463 (alt_reg_names): Likewise.
7464 (rs6000_dwarf_register_span): For SPE high registers, replace
7465 dwarf register numbers with GCC hard register numbers.
7466 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7467 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7468 register number for the corresponding GCC hard register number.
7469 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7470 newly added GCC hard register numbers for SPE high registers.
7471 (DWARF_FRAME_REGISTERS): Likewise.
7472 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7473 (DWARF_FRAME_REGNUM): Likewise.
7474 (FIXED_REGISTERS): Likewise.
7475 (CALL_USED_REGISTERS): Likewise.
7476 (CALL_REALLY_USED_REGISTERS): Likewise.
7477 (REG_ALLOC_ORDER): Likewise.
7478 (enum reg_class): Likewise.
7479 (REG_CLASS_NAMES): Likewise.
7480 (REG_CLASS_CONTENTS): Likewise.
7481 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7482
7483 2014-08-04 Richard Biener <rguenther@suse.de>
7484
7485 * gimple-fold.h (gimple_fold_builtin): Remove.
7486 * gimple-fold.c (gimple_fold_builtin): Make static.
7487 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7488 fold_stmt, not gimple_fold_builtin.
7489
7490 2014-08-04 Martin Liska <mliska@suse.cz>
7491
7492 * cgraph.h (csi_end_p): Removed.
7493 (csi_next): Likewise.
7494 (csi_node): Likewise.
7495 (csi_start): Likewise.
7496 (cgraph_node_in_set_p): Likewise.
7497 (cgraph_node_set_size): Likewise.
7498 (vsi_end_p): Likewise.
7499 (vsi_next): Likewise.
7500 (vsi_node): Likewise.
7501 (vsi_start): Likewise.
7502 (varpool_node_set_size): Likewise.
7503 (cgraph_node_set_nonempty_p): Likewise.
7504 (varpool_node_set_nonempty_p): Likewise.
7505 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7506 cgraph_node_set.
7507 * ipa-inline-transform.c: Likewise.
7508 * ipa-utils.c (cgraph_node_set_new): Removed.
7509 (cgraph_node_set_add): Likewise.
7510 (cgraph_node_set_remove): Likewise.
7511 (cgraph_node_set_find): Likewise.
7512 (dump_cgraph_node_set): Likewise.
7513 (debug_cgraph_node_set): Likewise.
7514 (free_cgraph_node_set): Likewise.
7515 (varpool_node_set_new): Likewise.
7516 (varpool_node_set_add): Likewise.
7517 (varpool_node_set_remove): Likewise.
7518 (varpool_node_set_find): Likewise.
7519 (dump_varpool_node_set): Likewise.
7520 (free_varpool_node_set): Likewise.
7521 (debug_varpool_node_set): Likewise.
7522 * tree-emutls.c (struct tls_var_data):
7523 (emutls_index): Removed.
7524 (emutls_decl): Likewise.
7525 (gen_emutls_addr): Function implementation uses newly added
7526 hash_map<varpool_node *, tls_var_data>.
7527 (clear_access_vars): Likewise.
7528 (create_emultls_var): Likewise.
7529 (ipa_lower_emutls): Likewise.
7530 (reset_access): New function.
7531
7532 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7533
7534 * config/i386/i386.c (ix86_option_override_internal): Add
7535 PTA_RDRND and PTA_MOVBE for bdver4.
7536
7537 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7538 James Greenhalgh <james.greenhalgh@arm.com>
7539
7540 * doc/md.texi (clrsb): Document.
7541 (clz): Change reference to x into operand 1.
7542 (ctz): Likewise.
7543 (popcount): Likewise.
7544
7545 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7546
7547 PR target/61713
7548 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7549 move to subtarget in serial version if result is ignored.
7550
7551 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7552 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7553
7554 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7555 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7556 (sched_analyze_insn): Update use of try_group_insn to
7557 sched_macro_fuse_insns.
7558 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7559 arguments that are not conditional jumps.
7560
7561 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7562
7563 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7564 family information. Handle BTVER2 cpu with cpuid family value.
7565
7566 2014-08-04 Tom de Vries <tom@codesourcery.com>
7567
7568 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7569 (glibc_2_11_or_earlier): Document effective-target keywords.
7570
7571 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7572
7573 * ipa-devirt.c (odr_type_warn_count): Add type.
7574 (possible_polymorphic_call_targets): Set it.
7575 (ipa_devirt): Use it.
7576
7577 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7578
7579 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7580 Document.
7581 * ipa-devirt.c: Include hash-map.h
7582 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7583 (clear_speculation): Break out of ...
7584 (get_class_context): ... here; speed up handling obviously useless
7585 speculations.
7586 (odr_type_warn_count, decl_warn_count): New structures.
7587 (final_warning_record): New structure.
7588 (final_warning_records): New static variable.
7589 (possible_polymorphic_call_targets): Cleanup handling of
7590 speculative info; do not build speculation when user do not care;
7591 record info about warnings when asked for.
7592 (add_decl_warning): New function.
7593 (type_warning_cmp): New function.
7594 (decl_warning_cmp): New function.
7595 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7596 (gate): Enable pass when warnings are requested.
7597 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7598 options.
7599
7600 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7601
7602 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7603 Fix cast.
7604 (hash_map::remove): New method.
7605 (hash_map::traverse): New method.
7606 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7607 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7608 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7609 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7610 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7611 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7612 pointer_map.
7613
7614 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7615
7616 * hash-set.h: new File.
7617 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7618 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7619 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7620 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7621 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7622 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7623 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7624 varpool.c: Use hash_set instead of pointer_set.
7625
7626 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7627
7628 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7629
7630 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7631
7632 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7633 for frame access when strict_p is false.
7634
7635 2014-08-01 Renlin Li <renlin.li@arm.com>
7636 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7637
7638 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7639 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7640 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7641 Declaration.
7642 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7643 predicate.
7644 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7645 aarch64_mem_pair_offset.
7646
7647 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7648
7649 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7650 offset.
7651 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7652 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7653
7654 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7655
7656 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7657
7658 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7659
7660 PR regression/61510
7661 * cgraphunit.c (analyze_functions): Use get_create rather than get
7662 for decls which are clones of abstract functions.
7663
7664 2014-08-01 Martin Liska <mliska@suse.cz>
7665
7666 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7667 * ipa-prop.h (count_formal_params): Global function created from static.
7668 * ipa-prop.c (count_formal_params): Likewise.
7669 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7670 profiles for semantically equivalent functions.
7671 * passes.c (do_per_function): If we load body of a function
7672 during WPA, this condition should behave same.
7673 * varpool.c (ctor_for_folding): More tolerant assert for variable
7674 aliases created during WPA.
7675
7676 2014-08-01 Martin Liska <mliska@suse.cz>
7677
7678 * doc/invoke.texi (Options That Control Optimization): Documentation
7679 for -foptimize-strlen introduced. Optimization levels default options
7680 fixed.
7681
7682 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7683
7684 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7685 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7686 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7687 type to bool.
7688 * stor-layout.h (min_align_of_type): New prototype.
7689 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7690 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7691 check.
7692 * ubsan.c: Include builtins.h.
7693 (ubsan_expand_bounds_ifn): Change return type to bool,
7694 always return true.
7695 (ubsan_expand_null_ifn): Change return type to bool, change
7696 argument to gimple_stmt_iterator *. Handle both null and alignment
7697 sanitization, take type from ckind argument's type rather than
7698 first argument.
7699 (instrument_member_call): Removed.
7700 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7701 Handle both null and alignment sanitization, don't say whole
7702 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7703 call instead of 2 argument.
7704 (instrument_null): Adjust instrument_mem_ref caller. Don't
7705 instrument calls here.
7706 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7707 like SANITIZE_NULL.
7708 * stor-layout.c (min_align_of_type): New function.
7709 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7710 Or it into SANITIZE_UNDEFINED.
7711 * doc/invoke.texi (-fsanitize=alignment): Document.
7712
7713 2014-07-31 Andi Kleen <ak@linux.intel.com>
7714
7715 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7716
7717 2014-07-31 Andi Kleen <ak@linux.intel.com>
7718
7719 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7720 inchash.
7721 (vn_reference_compute_hash): Dito.
7722 (vn_nary_op_compute_hash): Dito.
7723 (vn_phi_compute_hash): Dito.
7724 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7725
7726 2014-07-31 Andi Kleen <ak@linux.intel.com>
7727
7728 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7729 Rename to inchash:add_expr_commutative. Convert to inchash.
7730 (iterative_hash_hashable_expr): Rename to
7731 inchash:add_hashable_expr. Convert to inchash.
7732 (avail_expr_hash): Dito.
7733
7734 2014-07-31 Andi Kleen <ak@linux.intel.com>
7735
7736 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7737 Convert to inchash.
7738
7739 2014-07-31 Andi Kleen <ak@linux.intel.com>
7740
7741 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7742
7743 2014-07-31 Andi Kleen <ak@linux.intel.com>
7744
7745 * Makefile.in (OBJS): Add rtlhash.o
7746 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7747 (loc_checksum): Dito.
7748 (loc_checksum_ordered): Dito.
7749 (hash_loc_operands): Dito.
7750 (hash_locs): Dito.
7751 (hash_loc_list): Dito.
7752 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7753 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7754 * rtlhash.c: New file.
7755 * rtlhash.h: New file.
7756
7757 2014-07-31 Andi Kleen <ak@linux.intel.com>
7758
7759 * inchash.h (inchash): Change inchash class to namespace.
7760 (class hash): ... Rename from inchash.
7761 (add_object): Move from macro to class template.
7762 * lto-streamer-out.c (hash_tree): Change inchash
7763 to inchash::hash.
7764 * tree.c (build_type_attribute_qual_variant): Dito.
7765 (type_hash_list): Dito.
7766 (attribute_hash_list): Dito.
7767 (iterative_hstate_expr): Rename to inchash::add_expr
7768 (build_range_type_1): Change inchash to inchash::hash
7769 and use hash::add_expr.
7770 (build_array_type_1): Dito.
7771 (build_function_type): Dito
7772 (build_method_type_directly): Dito.
7773 (build_offset_type): Dito.
7774 (build_complex_type): Dito.
7775 (make_vector_type): Dito.
7776 * tree.h (iterative_hash_expr): Dito.
7777
7778 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7779
7780 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7781
7782 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7783
7784 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7785 correct alphabetical position.
7786 (vpaddd_f64): Rewrite using builtins.
7787 (vpaddd_s64): Move to correct alphabetical position.
7788 (vpaddd_u64): New.
7789
7790 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7791
7792 PR target/61844
7793 * config/sh/sh.c (sh_legitimate_address_p,
7794 sh_legitimize_reload_address): Handle reg+reg address modes when
7795 ALLOW_INDEXED_ADDRESS is false.
7796 * config/sh/predicates.md (general_movsrc_operand,
7797 general_movdst_operand): Likewise.
7798
7799 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7800
7801 * config/aarch64/aarch64-builtins.c
7802 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7803 BYTES_BIG_ENDIAN.
7804
7805 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7806
7807 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7808 the generated mask based on BYTES_BIG_ENDIAN.
7809 (aarch64_simd_check_vect_par_cnst_half): New.
7810 * config/aarch64/aarch64-protos.h
7811 (aarch64_simd_check_vect_par_cnst_half): New.
7812 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7813 the check out to aarch64_simd_check_vect_par_cnst_half.
7814 (vect_par_cnst_lo_half): Likewise.
7815 * config/aarch64/aarch64-simd.md
7816 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7817 (move_hi_quad_<mode>): Always generate a low mask.
7818
7819 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7820
7821 * doc/invoke.texi (AVR Options): Add documentation about
7822 __AVR_DEVICE_NAME__ built-in macro.
7823
7824 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7825
7826 PR target/61948
7827 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7828 constraints are satisfied.
7829 (<shift>di3_neon): Likewise.
7830
7831 2014-07-31 Richard Biener <rguenther@suse.de>
7832
7833 PR tree-optimization/61964
7834 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7835 by structural equality.
7836
7837 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7838
7839 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7840 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7841 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7842 New enums.
7843 * gcc.c (sanitize_spec_function): Support new option.
7844 (SANITIZER_SPEC): Remove now redundant check.
7845 * opts.c (common_handle_option): Support new option.
7846 (finish_options): Check for incompatibilities.
7847 * toplev.c (process_options): Split userspace-specific checks.
7848
7849 2014-07-31 Richard Biener <rguenther@suse.de>
7850
7851 * lto-streamer.h (struct output_block): Remove global.
7852 (struct data_in): Remove labels, num_named_labels and
7853 num_unnamed_labels.
7854 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7855 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7856
7857 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7858
7859 PR c++/60517
7860 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7861 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7862 (isolate_path): New argument to avoid inserting a trap.
7863 (find_implicit_erroneous_behaviour): Handle returning the address
7864 of a local variable.
7865 (find_explicit_erroneous_behaviour): Likewise.
7866
7867 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7868
7869 PR lto/61868
7870 * toplev.c (init_random_seed): Move piece of code never called to
7871 set_random_seed.
7872 (set_random_seed): see above.
7873
7874 2014-07-31 Tom de Vries <tom@codesourcery.com>
7875
7876 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7877
7878 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7879
7880 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7881 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7882
7883 2014-07-31 Richard Biener <rguenther@suse.de>
7884
7885 * data-streamer.h (streamer_write_data_stream): Declare here,
7886 renamed from ...
7887 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7888 * lto-cgraph.c (lto_output_node): Adjust.
7889 (lto_output_varpool_node): Likewise.
7890 * data-streamer-out.c (streamer_string_index): Likewise.
7891 (streamer_write_data_stream, lto_append_block): Move from ...
7892 * lto-section-out.c (lto_output_data_stream,
7893 lto_append_block): ... here.
7894
7895 2014-07-30 Mike Stump <mikestump@comcast.net>
7896
7897 * configure.ac: Also check for popen.
7898 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7899 * configure: Regenerate.
7900 * config.in: Regenerate.
7901
7902 2014-07-30 Martin Jambor <mjambor@suse.cz>
7903
7904 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7905 parameter to gimple.
7906
7907 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7908
7909 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7910 address as second parameter to __tpf_eh_return routine.
7911
7912 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7913
7914 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7915 Thumb2.
7916
7917 2014-07-30 Tom Tromey <tromey@redhat.com>
7918
7919 PR c/59855
7920 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7921 * doc/extend.texi (Type Attributes): Document designated_init
7922 attribute.
7923
7924 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7925
7926 * graphite-isl-ast-to-gimple.c:
7927 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7928 (gcc_expression_from_isl_expression): Pass type to
7929 gcc_expression_from_isl_ast_expr_id.
7930
7931 2014-07-30 Richard Biener <rguenther@suse.de>
7932
7933 * lto-streamer.h (lto_write_data): New function.
7934 * langhooks.c (lhd_append_data): Do not free block.
7935 * lto-section-out.c (lto_write_data): New function writing
7936 raw data to the current section.
7937 (lto_write_stream): Adjust for langhook semantic change.
7938 (lto_destroy_simple_output_block): Write header directly.
7939 * lto-opts.c (lto_write_options): Write options directly.
7940 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7941 (lto_output_toplevel_asms): Likewise.
7942 (copy_function_or_variable): Copy data directly.
7943 (write_global_references): Output index table directly.
7944 (lto_output_decl_state_refs): Likewise.
7945 (write_symbol): Write data directly.
7946 (produce_symtab): Adjust.
7947 (produce_asm_for_decls): Output header and refs directly.
7948
7949 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7950
7951 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7952 to speculative_targets
7953 (get_class_context): Fix handling of contextes without outer type;
7954 avoid matching non-polymorphic types in LTO.
7955 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7956 parameter to speculative_targetsp; handle speculation.
7957 (dump_possible_polymorphic_call_targets): Update dumping.
7958
7959 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7960
7961 * common.opt (Wodr): Enable by default.
7962
7963 2014-07-29 Olivier Hainque <hainque@adacore.com>
7964
7965 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7966
7967 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7968
7969 PR bootstrap/61914
7970 * gengtype.c (strtoken): New function.
7971 (create_user_defined_type): Replace strtok with strtoken.
7972
7973 2014-07-29 Nathan Sidwell <nathan@acm.org>
7974
7975 * gcov-io.c (gcov_var): Make hidden.
7976 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7977 (gcov_do_dump): Declare.
7978 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7979
7980 2014-07-29 Martin Jambor <mjambor@suse.cz>
7981
7982 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7983 parameter to gimple.
7984 (sra_modify_assign): Likewise.
7985
7986 2014-07-29 Richard Biener <rguenther@suse.de>
7987
7988 PR middle-end/52478
7989 * expr.c (expand_expr_real_2): Revert last change.
7990
7991 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7992
7993 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7994 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7995 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7996 call.
7997 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7998 (contains_type_p): Forward declare.
7999 (polymorphic_call_target_hasher::hash): Hash speculative info.
8000 (polymorphic_call_target_hasher::equal): Compare speculative info.
8001 (get_class_context): Handle speuclation.
8002 (contains_type_p): Update.
8003 (get_polymorphic_call_info_for_decl): Update.
8004 (walk_ssa_copies): Break out from ...
8005 (get_polymorphic_call_info): ... here; set speculative context
8006 before giving up.
8007 * ipa-prop.c (ipa_write_indirect_edge_info,
8008 ipa_read_indirect_edge_info): Stream speculative context.
8009 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8010 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8011 SPECULATIVE_MAYBE_DERIVED_TYPE).
8012 (possible_polymorphic_call_targets overriders): Update.
8013 (dump_possible_polymorphic_call_targets overriders): Update.
8014 (dump_possible_polymorphic_call_target_p overriders): Update.
8015
8016 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8017
8018 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8019 ipa-devirt path; fix thinko there.
8020
8021 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8022
8023 * config/i386/i386.c (ix86_return_in_memory): Replace one
8024 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8025
8026 2014-07-28 Marek Polacek <polacek@redhat.com>
8027
8028 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8029
8030 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8031
8032 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8033 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8034 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8035 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8036 (USE_LD_AS_NEEDED): Likewise.
8037 (ASM_APP_ON): Likewise.
8038 (ASM_APP_OFF): Likewise.
8039 (TARGET_POSIX_IO): Likewise.
8040 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8041 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8042 (USE_LD_AS_NEEDED): Likewise.
8043 (ASM_APP_ON): Likewise.
8044 (ASM_APP_OFF): Likewise.
8045 (TARGET_POSIX_IO): Likewise.
8046
8047 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8048
8049 PR middle-end/61734
8050 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8051 operators other than the equality operators.
8052
8053 2014-07-28 Richard Biener <rguenther@suse.de>
8054
8055 PR middle-end/52478
8056 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8057 sure to register SImode ones, not only >= word_mode ones.
8058 * expr.c (expand_expr_real_2): When expanding -ftrapv
8059 binops do not use OPTAB_LIB_WIDEN.
8060
8061 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8062
8063 PR middle-end/61919
8064 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8065 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8066 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8067 inserting them in the insn stream.
8068
8069 2014-07-28 Marek Polacek <polacek@redhat.com>
8070
8071 PR middle-end/61913
8072 * common.opt (Wodr): Add Var.
8073
8074 2014-07-28 Richard Biener <rguenther@suse.de>
8075
8076 PR tree-optimization/61921
8077 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8078 if there is a varpool node before dereferencing it.
8079
8080 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8081
8082 * graphite-sese-to-poly.c:
8083 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8084 id of the pbb), which contains pointer to the pbb1.
8085
8086 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8087
8088 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8089
8090 * graphite-isl-ast-to-gimple.c:
8091 (graphite_create_new_guard): New function.
8092 (translate_isl_ast_node_if): New function.
8093 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8094
8095 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8096
8097 2014-07-27 Anthony Green <green@moxielogic.com>
8098
8099 * config.gcc: Add moxie-*-moxiebox* configuration.
8100 * config/moxie/moxiebox.h: New file.
8101
8102 2014-07-26 Andrew Pinski <apinski@cavium.com>
8103
8104 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8105 from the read only register.
8106
8107 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8108
8109 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8110 as the allocation class if it isn't likely to be spilled.
8111
8112 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8113
8114 * rtl.h (tls_referenced_p): Declare.
8115 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8116 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8117 (mips_cannot_force_const_mem): Use tls_referenced_p.
8118 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8119 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8120 instead of pa_tls_referenced_p.
8121 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8122 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8123 (pa_legitimate_constant_p): Likewise.
8124 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8125 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8126 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8127 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8128 rs6000_tls_referenced_p.
8129 (rs6000_tls_symbol_ref_1): Delete.
8130
8131 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8132
8133 PR target/44551
8134 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8135 Optimize inverse of a VEC_CONCAT.
8136
8137 2014-07-25 Xinliang David Li <davidxl@google.com>
8138
8139 * params.def: New parameter.
8140 * coverage.c (get_coverage_counts): Check new flag.
8141 (coverage_compute_profile_id): Check new flag.
8142 (coverage_begin_function): Check new flag.
8143 (coverage_end_function): Check new flag.
8144 * value-prof.c (coverage_node_map_initialized_p): New function.
8145 (init_node_map): Populate map with all functions.
8146 * doc/invoke.texi: Document new parameter.
8147
8148 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8149 Richard Biener <rguenther@suse.de>
8150
8151 * lto-streamer-out.c (struct sccs): Turn to ...
8152 (class DFS): ... this one; refactor the DFS walk so it can
8153 be re-done on per-SCC basis.
8154 (DFS::DFS): New constructor.
8155 (DFS::~DFS): New destructor.
8156 (hash_tree): Add new MAP argument holding in-SCC hash values;
8157 remove POINTER_TYPE hashing hack.
8158 (scc_entry_compare): Rename to ...
8159 (DFS::scc_entry_compare): ... this one.
8160 (hash_scc): Rename to ...
8161 (DFS::hash_scc): ... this one; pass output_block instead
8162 of streamer_cache; work harder to get unique and stable SCC
8163 hashes.
8164 (DFS_write_tree): Rename to ...
8165 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8166 (lto_output_tree): Update.
8167
8168 2014-07-25 Andi Kleen <ak@linux.intel.com>
8169
8170 * lto-streamer-out.c (hash_tree): Convert to inchash.
8171
8172 2014-07-25 Andi Kleen <ak@linux.intel.com>
8173
8174 * tree.c (build_type_attribute_qual_variant): Use inchash.
8175 (type_hash_list): Dito.
8176 (attribute_hash_list): Dito
8177 (iterative_hstate_expr): Dito.
8178 (iterative_hash_expr): Dito.
8179 (build_range_type_1): Dito.
8180 (build_array_type_1): Dito.
8181 (build_function_type): Dito.
8182 (build_method_type_directly): Dito.
8183 (build_offset_type): Dito.
8184 (build_complex_type): Dito.
8185 (make_vector_type): Dito.
8186 * tree.h (iterative_hash_expr): Add compat wrapper.
8187 (iterative_hstate_expr): Add.
8188
8189 2014-07-25 Andi Kleen <ak@linux.intel.com>
8190
8191 * Makefile.in (OBJS): Add inchash.o.
8192 (PLUGIN_HEADERS): Add inchash.h.
8193 * ipa-devirt.c: Include inchash.h.
8194 * lto-streamer-out.c: Dito.
8195 * tree-ssa-dom.c: Dito.
8196 * tree-ssa-pre.c: Dito.
8197 * tree-ssa-sccvn.c: Dito.
8198 * tree-ssa-tail-merge.c: Dito.
8199 * asan.c: Dito.
8200 * tree.c (iterative_hash_hashval_t): Move to ...
8201 (iterative_hash_host_wide_int): Move to ...
8202 * inchash.c: Here. New file.
8203 * tree.h (iterative_hash_hashval_t): Move to ...
8204 (iterative_hash_host_wide_int): Move to ...
8205 * inchash.h: Here. New file.
8206
8207 2014-07-25 Richard Biener <rguenther@suse.de>
8208
8209 PR middle-end/61762
8210 PR middle-end/61894
8211 * fold-const.c (native_encode_int): Add and handle offset
8212 parameter to do partial encodings of expr.
8213 (native_encode_fixed): Likewise.
8214 (native_encode_real): Likewise.
8215 (native_encode_complex): Likewise.
8216 (native_encode_vector): Likewise.
8217 (native_encode_string): Likewise.
8218 (native_encode_expr): Likewise.
8219 * fold-const.c (native_encode_expr): Add offset parameter
8220 defaulting to -1.
8221 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8222 (fold_ctor_reference): Handle all reads from tcc_constant
8223 ctors.
8224
8225 2014-07-25 Richard Biener <rguenther@suse.de>
8226
8227 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8228 as possibly unused.
8229
8230 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8231
8232 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8233
8234 2014-07-24 Kyle McMartin <kyle@redhat.com>
8235
8236 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8237
8238 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8239
8240 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8241 Add prototype.
8242 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8243 function.
8244 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8245 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8246 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8247
8248 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8249
8250 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8251 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8252 aggregate types. Instead, *all* aggregate types, except for single-
8253 element or homogeneous float/vector aggregates, are quadword-aligned
8254 if required by their type alignment. Issue -Wpsabi note when a type
8255 is now treated differently than before.
8256
8257 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8258
8259 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8260 does not fit fully into floating-point registers, and there is still
8261 space in the register parameter area, use GPRs to pass those parts
8262 of the argument. Issue -Wpsabi note if any parameter is now treated
8263 differently than before.
8264 (rs6000_arg_partial_bytes): Update.
8265
8266 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8267
8268 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8269
8270 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8271
8272 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8273 * toplev.c (initialize_rtl): Don't use it. Move previously
8274 "language-dependent" calls to...
8275 (backend_init): ...here.
8276 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8277 Assert that RTL initialization hasn't happend yet.
8278
8279 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8280
8281 PR rtl-optimization/61629
8282 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8283 they have already been initialized.
8284
8285 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8286
8287 PR middle-end/61268
8288 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8289 DECL_INCOMING_RTL and entry_parm.
8290 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8291 * calls.c (load_register_parameters): Likewise argument values.
8292 (emit_library_call_value_1, store_one_arg): Likewise argument
8293 save areas.
8294 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8295 stack slot.
8296 * explow.c (validize_mem): Modify the argument in-place.
8297
8298 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8299
8300 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8301 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8302
8303 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8304
8305 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8306 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8307
8308 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8309
8310 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8311 (aarch64_save_callee_saves): New parameter "skip_wb".
8312 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8313
8314 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8315
8316 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8317 "wb_candidate2".
8318 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8319
8320 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8321
8322 * graphite-isl-ast-to-gimple.c:
8323 (graphite_create_new_loop): Add calling of isl_id_free to properly
8324 decrement reference counts.
8325
8326 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8327
8328 2014-07-24 Martin Liska <mliska@suse.cz>
8329 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8330 function used.
8331 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8332 (rs6000_code_end): Likewise.
8333
8334 2014-07-24 Martin Liska <mliska@suse.cz>
8335
8336 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8337 symtab_node funtion used.
8338 (rs6000_xcoff_declare_object_name): Likewise.
8339
8340 2014-07-24 Martin Liska <mliska@suse.cz>
8341
8342 * cgraphunit.c (compile): Correct function used.
8343
8344 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8345
8346 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8347 as non-indexable.
8348
8349 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8350
8351 PR lto/61802
8352 * varasm.c (bss_initializer_p): Handle offlined ctors.
8353 (align_variable, get_variable_align): Likewise.
8354 (make_decl_one_only): Likewise.
8355 (default_binds_local_p_1): Likewise.
8356 (decl_binds_to_current_def_p): Likewise.
8357 (get_variable_section): Get constructor if it is offlined.
8358 (assemble_variable_contents): Sanity check that the caller
8359 streamed in the ctor in LTO.
8360
8361 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8362
8363 * graphite-isl-ast-to-gimple.c:
8364 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8365 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8366 isl_ast_op_pdiv_r to the different case.
8367
8368 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8369
8370 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8371
8372 PR middle-end/61876
8373 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8374 when flag_errno_math is on.
8375
8376 2014-07-24 Martin Liska <mliska@suse.cz>
8377
8378 * cgraph.h (varpool_node):
8379 (availability get_availability (void)):
8380 created from cgraph_variable_initializer_availability
8381 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8382 created from: cgraph_variable_initializer_availability
8383 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8384 (void finalize_named_section_flags (void)):
8385 created from varpool_finalize_named_section_flags
8386 (bool assemble_decl (void)): created from varpool_assemble_decl
8387 (void analyze (void)): created from varpool_analyze_node
8388 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8389 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8390 (void remove_initializer (void)): created from varpool_remove_initializer
8391 (tree get_constructor (void)): created from varpool_get_constructor
8392 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8393 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8394 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8395 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8396 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8397 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8398 (static bool output_variables (void)): created from varpool_output_variables
8399 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8400 created from varpool_extra_name_alias
8401 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8402 (static void dump_varpool (FILE *f)): created from dump_varpool
8403 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8404 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8405 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8406 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8407 (void assemble_aliases (void)): created from assemble_aliases
8408
8409 2014-07-24 Martin Liska <mliska@suse.cz>
8410
8411 * cgraph.h (symtab_node):
8412 (void register_symbol (void)): created from symtab_register_node
8413 (void remove (void)): created from symtab_remove_node
8414 (void dump (FILE *f)): created from dump_symtab_node
8415 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8416 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8417 (struct ipa_ref *add_reference (symtab_node *referred_node,
8418 enum ipa_ref_use use_type)): created from add_reference
8419 (struct ipa_ref *add_reference (symtab_node *referred_node,
8420 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8421 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8422 gimple stmt)): created from maybe_add_reference
8423 (bool semantically_equivalent_p (symtab_node *target)): created from
8424 symtab_semantically_equivalent_p
8425 (void remove_from_same_comdat_group (void)): created from
8426 remove_from_same_comdat_group
8427 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8428 symtab_add_to_same_comdat_group
8429 (void dissolve_same_comdat_group_list (void)): created from
8430 symtab_dissolve_same_comdat_group_list
8431 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8432 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8433 created from symtab_alias_ultimate_target
8434 (inline symtab_node *next_defined_symbol (void)): created from
8435 symtab_next_defined_symbol
8436 (bool resolve_alias (symtab_node *target)): created from
8437 symtab_resolve_alias
8438 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8439 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8440 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8441 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8442 (void set_section (const char *section)): created from set_section_1
8443 (enum availability get_availability (void)): created from symtab_node_availability
8444 (void make_decl_local (void)): created from symtab_make_decl_local
8445 (bool real_symbol_p (void)): created from symtab_read_node
8446 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8447 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8448 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8449 symtab_in_same_comdat_p;
8450 (bool address_taken_from_non_vtable_p (void)): created from
8451 address_taken_from_non_vtable_p
8452 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8453 (static void dump_table (FILE *)): created from dump_symtab
8454 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8455 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8456 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8457 symtab_used_from_object_file_p
8458 (void dump_base (FILE *)): created from dump_symtab_base
8459 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8460 (void unregister (void)): created from symtab_unregister_node
8461 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8462 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8463 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8464 symtab_nonoverwritable_alias_1
8465 * cgraph.h (cgraph_node):
8466 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8467 created from cgraph_remove_node_and_inline_clones
8468 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8469 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8470 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8471 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8472 created from cgraph_function_node
8473 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8474 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8475 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8476 created from cgraph_create_clone
8477 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8478 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8479 created from cgraph_create_virtual_clone
8480 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8481 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8482 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8483 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8484 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8485 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8486 created from cgraph_function_version_info
8487 (struct cgraph_function_version_info *insert_new_function_version (void)):
8488 created from insert_new_cgraph_node_version
8489 (struct cgraph_function_version_info *function_version (void)): created from
8490 get_cgraph_node_version
8491 (void analyze (void)): created from analyze_function
8492 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8493 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8494 tree real_alias) cgraph_add_thunk
8495 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8496 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8497 created from cgraph_function_or_thunk_node
8498 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8499 created from expand_thunk
8500 (void reset (void)): created from cgraph_reset_node
8501 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8502 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8503 (void remove (void)): created from cgraph_remove_node
8504 (void dump (FILE *f)): created from dump_cgraph_node
8505 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8506 (bool get_body (void)): created from cgraph_get_body
8507 (void release_body (void)): created from cgraph_release_function_body
8508 (void unnest (void)): created from cgraph_unnest_node
8509 (void make_local (void)): created from cgraph_make_node_local
8510 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8511 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8512 gcov_type count, int freq)): created from cgraph_create_edge
8513 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8514 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8515 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8516 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8517 created from cgraph_create_edge_including_clones
8518 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8519 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8520 (void remove_callers (void)): created from cgraph_node_remove_callers
8521 (void remove_callees (void)): created from cgraph_node_remove_callees
8522 (enum availability get_availability (void)): created from cgraph_function_body_availability
8523 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8524 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8525 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8526 (void call_duplication_hooks (cgraph_node *node2)): created from
8527 cgraph_call_node_duplication_hooks
8528 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8529 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8530 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8531 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8532 (void call_function_insertion_hooks (void)):
8533 created from cgraph_call_function_insertion_hooks
8534 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8535 (bool local_p (void)): created from cgraph_local_node
8536 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8537 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8538 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8539 (inline bool only_called_directly_or_aliased_p (void)):
8540 created from cgraph_only_called_directly_or_aliased_p
8541 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8542 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8543 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8544 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8545 (bool can_remove_if_no_direct_calls_p (void)):
8546 created from cgraph_can_remove_if_no_direct_calls_p
8547 (inline bool has_gimple_body_p (void)):
8548 created from cgraph_function_with_gimple_body_p
8549 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8550 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8551 (static inline void debug_cgraph (void)): created from debug_cgraph
8552 (static void record_function_versions (tree decl1, tree decl2)):
8553 created from record_function_versions
8554 (static void delete_function_version (tree decl)):
8555 created from delete_function_version
8556 (static void add_new_function (tree fndecl, bool lowered)):
8557 created from cgraph_add_new_function
8558 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8559 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8560 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8561 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8562 (static cgraph_node *get_for_asmname (tree asmname)):
8563 created from cgraph_node_for_asm
8564 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8565 created from cgraph_same_body_alias
8566 (static bool used_from_object_file_p_worker (cgraph_node *node,
8567 void *): new function
8568 (static bool non_local_p (cgraph_node *node, void *)):
8569 created from cgraph_non_local_node_p_1
8570 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8571 created from verify_cgraph
8572 (static bool make_local (cgraph_node *node, void *)):
8573 created from cgraph_make_node_local
8574 (static cgraph_node *create_alias (tree alias, tree target)):
8575 created from cgraph_create_function_alias
8576 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8577 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8578 created from cgraph_create_edge_1
8579 * cgraph.h (varpool_node):
8580 (void remove (void)): created from varpool_remove_node
8581 (void dump (FILE *f)): created from dump_varpool_node
8582
8583 2014-07-24 Richard Biener <rguenther@suse.de>
8584
8585 PR ipa/61823
8586 * tree-ssa-structalias.c (create_variable_info_for_1):
8587 Use varpool_get_constructor.
8588 (create_variable_info_for): Likewise.
8589
8590 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8591
8592 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8593 subtract outgoing area size when restoring stack_pointer_rtx.
8594
8595 2014-07-24 Nick Clifton <nickc@redhat.com>
8596
8597 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8598 that operations are taking place in parallel.
8599 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8600
8601 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8602
8603 * omp-low.c (extract_omp_for_data): Add missing break statement.
8604
8605 2014-07-24 Richard Biener <rguenther@suse.de>
8606
8607 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8608 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8609 and adjust MOVE_RATIO query accordingly.
8610 (estimate_num_insns): Adjust callers.
8611 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8612 * ipa-cp.c (gather_context_independent_values,
8613 estimate_local_effects): Likewise.
8614 * ipa-split.c (consider_split): Likewise.
8615
8616 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8617
8618 * config/i386/driver-i386.c: Remove names of unused arguments and
8619 unnecessary unused attributes.
8620 * config/i386/host-mingw32.c: Likewise.
8621 * config/i386/i386.c: Likewise.
8622 * config/i386/winnt-stubs.c: Likewise.
8623 * config/i386/winnt.c: Likewise.
8624
8625 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8626
8627 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8628 (aarch64_gen_loadwb_pair): New helper function.
8629 (aarch64_expand_epilogue): Simplify code using new helper functions.
8630 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8631
8632 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8633
8634 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8635 (aarch64_gen_storewb_pair): New helper function.
8636 (aarch64_expand_prologue): Simplify code using new helper functions.
8637 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8638
8639 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8640
8641 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8642 Rename to aarch64_save_callee_saves, remove restore code.
8643 (aarch64_restore_callee_saves): New function.
8644
8645 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8646
8647 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8648 (aarch64_save_callee_saves): New function to handle reg save
8649 for both core and vectore regs.
8650
8651 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8652
8653 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8654 (aarch64_gen_store_pair): New helper function.
8655 (aarch64_save_or_restore_callee_save_registers)
8656 (aarch64_save_or_restore_fprs): Use new helper functions.
8657
8658 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8659
8660 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8661 (aarch64_save_or_restore_callee_save_registers)
8662 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8663
8664 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8665
8666 * config/aarch64/aarch64.c
8667 (aarch64_save_or_restore_callee_save_registers)
8668 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8669
8670 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8671
8672 * config/aarch64/aarch64.c
8673 (aarch64_save_or_restore_callee_save_registers)
8674 (aarch64_save_or_restore_fprs): Remove 'increment'.
8675
8676 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8677
8678 * config/aarch64/aarch64.c
8679 (aarch64_save_or_restore_callee_save_registers)
8680 (aarch64_save_or_restore_fprs): Use register offset in
8681 cfun->machine->frame.reg_offset.
8682
8683 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8684
8685 * config/aarch64/aarch64.c
8686 (aarch64_save_or_restore_callee_save_registers)
8687 (aarch64_save_or_restore_fprs): Remove base_rtx.
8688
8689 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8690
8691 * config/aarch64/aarch64.c
8692 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8693 to 'start_offset'. Remove local variable 'start_offset'.
8694
8695 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8696
8697 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8698 type to HOST_WIDE_INT.
8699
8700 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8701
8702 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8703 (aarch64_save_or_restore_fprs)
8704 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8705
8706 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8707
8708 * config/arm/t-rtems-eabi: Add
8709 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8710 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8711 mbig-endian/mthumb/march=armv7-r, and
8712 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8713 multilibs.
8714
8715 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8716 Chris Johns <chrisj@rtems.org>
8717 Joel Sherrill <joel.sherrill@oarcorp.com>
8718
8719 * config.gcc: Add nios2-*-rtems*.
8720 * config/nios2/rtems.h: New file.
8721 * gcc/config/nios2/t-rtems: New file.
8722
8723 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8724
8725 PR target/61396
8726 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8727 constant numbers, not general constants.
8728 (rs6000_expand_vector_init): Ditto.
8729
8730 2014-07-23 Nathan Sidwell <nathan@acm.org>
8731
8732 * gcov-tool.c (gcov_list): Declare here.
8733 (set_gcov_list): Remove.
8734 (gcov_output_files): Set gcov_list directly.
8735
8736 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8737
8738 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8739
8740 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8741
8742 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8743 callee-saved registers are available for padding purpose
8744 and r3 is not mandatory, then prefer use those callee-saved
8745 instead of r3.
8746
8747 2014-07-23 Richard Biener <rguenther@suse.de>
8748
8749 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8750 * combine.c: Include statistics.h and params.h.
8751 (combine_instructions): Guard three and four insn combines
8752 with max-combine-insns value. Record statistics for combines
8753 performed.
8754 * doc/invoke.texi (max-combine-insns): Document new param.
8755
8756 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8757
8758 * graphite-isl-ast-to-gimple.c:
8759 (translate_isl_ast_node_block): New function.
8760 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8761
8762 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8763 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8764
8765 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8766
8767 * graphite-isl-ast-to-gimple.c:
8768 (get_max_schedule_dimensions): New function.
8769 (extend_schedule): Likewise.
8770 (generate_isl_schedule): Add calling of extend_schedule and
8771 get_max_schedule_dimensions.
8772
8773 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8774
8775 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8776 (case UNSPEC): Handle UNSPEC_RBIT.
8777
8778 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8779
8780 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8781 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8782
8783 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8784
8785 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8786
8787 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8788
8789 * graphite-isl-ast-to-gimple.c:
8790 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8791 (ivs_params_clear):
8792 (build_iv_mapping): New function.
8793 (translate_isl_ast_node_user): Likewise.
8794 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8795
8796 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8797 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8798 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8799
8800 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8801
8802 PR target/55701
8803 * config/arm/arm.md (setmem): New pattern.
8804 * config/arm/arm-protos.h (struct tune_params): New fields.
8805 (arm_gen_setmem): New prototype.
8806 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8807 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8808 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8809 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8810 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8811 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8812 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8813 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8814 (arm_const_inline_cost): New function.
8815 (arm_block_set_max_insns): New function.
8816 (arm_block_set_non_vect_profit_p): New function.
8817 (arm_block_set_vect_profit_p): New function.
8818 (arm_block_set_unaligned_vect): New function.
8819 (arm_block_set_aligned_vect): New function.
8820 (arm_block_set_unaligned_non_vect): New function.
8821 (arm_block_set_aligned_non_vect): New function.
8822 (arm_block_set_vect, arm_gen_setmem): New functions.
8823
8824 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8825
8826 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8827
8828 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8829
8830 PR target/61855
8831 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8832 out of #ifdef __OPTIMIZE__.
8833
8834 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8835
8836 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8837 different trapping status if -fnon-call-exceptions is enabled.
8838
8839 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8840
8841 * expr.c (store_field): Handle VOIDmode for calls that return values
8842 in multiple locations.
8843
8844 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8845
8846 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8847 (altivec_vsldoi_<mode>): Likewise.
8848
8849 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8850
8851 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8852 to the number of characters in the line.
8853
8854 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8855
8856 * graphite-isl-ast-to-gimple.c: Add using of
8857 build_nonstandard_integer_type instead of int128_integer_type_node.
8858
8859 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8860
8861 * toplev.c (output_stack_usage): Adjust the location of the warning.
8862
8863 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8864
8865 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8866 (*membar_storeload): Disable for LEON3.
8867
8868 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8869
8870 PR rtl-optimization/61461
8871 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8872
8873 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8874
8875 PR target/61794
8876 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8877 Fix instruction constraint.
8878 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8879
8880 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8881
8882 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8883
8884 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8885
8886 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8887 GNU coding standards.
8888 (nds32_register_move_cost): Likewise.
8889 (nds32_memory_move_cost): Likewise.
8890 (nds32_address_cost): Likewise.
8891
8892 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8893
8894 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8895
8896 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8897
8898 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8899 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8900 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8901 (HAVE_sync_compare_and_swapqi): Define.
8902 (HAVE_sync_compare_and_swaphi): Likewise.
8903 (HAVE_sync_compare_and_swapsi): Likewise.
8904
8905 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8906
8907 * config/mips/p5600.md: Add missing cpu tests.
8908
8909 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8910
8911 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8912 (vmla_f64): Likewise.
8913 (vfms_f64): Likewise.
8914 (vmls_f64): Likewise.
8915
8916 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8917
8918 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8919 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8920
8921 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8922
8923 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8924 (vmlal_high_lane_s32): Likewise.
8925 (vmlal_high_lane_u16): Likewise.
8926 (vmlal_high_lane_u32): Likewise.
8927 (vmlsl_high_lane_s16): Likewise.
8928 (vmlsl_high_lane_s32): Likewise.
8929 (vmlsl_high_lane_u16): Likewise.
8930 (vmlsl_high_lane_u32): Likewise.
8931
8932 2014-07-17 Terry Guo <terry.guo@arm.com>
8933
8934 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8935 (alus_reg): Renamed to alus_sreg.
8936 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8937 from alu_reg to alu_sreg. Change type of dsp instructions from
8938 alu_reg to alu_dsp_reg.
8939 * config/arm/thumb1.md: Likewise.
8940 * config/arm/thumb2.md: Likewise.
8941 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8942 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8943 with alu_sreg and alus_sreg.
8944 * config/arm/arm1026ejs.md (alu_op): Likewise.
8945 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8946 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8947 * config/arm/fa526.md (526_alu_op): Likewise.
8948 * config/arm/fa606te.md (606te_alu_op): Likewise.
8949 * config/arm/fa626te.md (626te_alu_op): Likewise.
8950 * config/arm/fa726te.md (726te_alu_op): Likewise.
8951 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8952 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8953 alu_sreg, alu_dsp_reg and alus_sreg.
8954 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8955 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8956 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8957 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8958 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8959 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8960 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8961 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8962 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8963 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8964 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8965 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8966 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8967 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8968 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8969 alus_reg to alus_sreg.
8970
8971 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8972
8973 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8974 infinity format.
8975
8976 2014-07-17 Richard Biener <rguenther@suse.de>
8977
8978 PR rtl-optimization/61801
8979 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8980 don't set reg_pending_barrier if it appears in a debug-insn.
8981
8982 2014-07-16 DJ Delorie <dj@redhat.com>
8983
8984 * config/rx/rx.c (rx_option_override): Fix alignment values.
8985 (rx_align_for_label): Likewise.
8986
8987 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8988
8989 PR target/61737.
8990 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8991 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8992 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8993 functions.
8994 (cris_print_index, cris_print_operand, cris_constant_index_p)
8995 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8996 (cris_address_cost): Ditto last CONSTANT_P.
8997 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8998 callers changed. Yield cris_offsettable_symbol for non-PIC
8999 constant symbolic expressions including labels. Yield cris_unspec
9000 for all unspecs.
9001 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9002 target to pic_offset_table_rtx for calls that will likely go
9003 through PLT, const0_rtx when they can't. All callers changed.
9004 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9005 symbolic expressions to be PICified. Remove second, redundant,
9006 assert on can_create_pseudo_p returning non-zero. Use
9007 replace_equiv_address_nv, not replace_equiv_address, for final
9008 operand update.
9009 * config/cris/cris.md ("movsi"): Move variable t to pattern
9010 toplevel. Adjust assert for new cris_symbol_type member. Use
9011 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9012 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9013 for lapc stricter.
9014 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9015 ("call", "call_value"): Use second incoming operand as a marker
9016 for pic-offset-table-register being used.
9017 ("*expanded_call_non_v32", "*expanded_call_v32")
9018 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9019 second incoming operand to CALL, match cris_call_type_marker.
9020 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9021 ("*expanded_call_side"): Ditto. Fix typo in comment.
9022 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9023 CONSTANT_P.
9024 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9025 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9026 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9027 users changed. Add members cris_offsettable_symbol and cris_unspec.
9028 (cris_symbol_type): Rename from cris_pic_symbol_type.
9029 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9030 just CONSTANT_P.
9031 * config/cris/cris-protos.h (cris_symbol_type_of,
9032 cris_expand_pic_call_address): Adjust prototypes.
9033 (cris_legitimate_constant_p): New prototype.
9034
9035 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9036 an existing tmake_file. Don't add t-slibgcc and t-linux.
9037
9038 2014-07-17 Jason Merrill <jason@redhat.com>
9039
9040 PR c++/61623
9041 * symtab.c (symtab_remove_from_same_comdat_group): Also
9042 set_comdat_group to NULL_TREE.
9043 (verify_symtab): Fix diagnostic.
9044
9045 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9046
9047 PR target/61662
9048 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9049
9050 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9051
9052 Support location tracking for built-in macro tokens
9053 * input.h (is_location_from_builtin_token): New function declaration.
9054 * input.c (is_location_from_builtin_token): New function definition.
9055 * toplev.c (general_init): Tell libcpp what the pre-defined
9056 spelling location for built-in tokens is.
9057
9058 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9059
9060 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9061 on the FUNCTION_DECL.
9062
9063 2014-07-16 Richard Biener <rguenther@suse.de>
9064
9065 PR other/61782
9066 * doc/extend.texi (always_inline): Clarify.
9067
9068 2014-07-15 Eric Christopher <echristo@gmail.com>
9069
9070 * doc/invoke.texi (Link Options): Document -z option.
9071
9072 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9073
9074 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9075 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9076
9077 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9078
9079 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9080
9081 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9082
9083 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9084 varpool_assemble_decl.
9085 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9086 true.
9087
9088 2014-07-15 Michael Matz <matz@suse.de>
9089
9090 PR rtl-optimization/61772
9091 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9092
9093 2014-07-15 Richard Biener <rguenther@suse.de>
9094
9095 * opts.c (default_options_table): Disable bit-ccp at -Og.
9096
9097 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9098
9099 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9100
9101 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9102
9103 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9104 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9105 call langhook for unknown declaration.
9106 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9107 * tree.h (DECL_ARGUMENTS): Update.
9108 * print-tree.c (print_node): Update.
9109 * tree-core.h (tree_decl_non_common): Remove arguments.
9110 (tree_function_decl): Add arguments.
9111
9112 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9113
9114 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9115
9116 2014-07-14 Richard Biener <rguenther@suse.de>
9117
9118 PR tree-optimization/61779
9119 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9120 simplifying a condition.
9121
9122 2014-07-14 Richard Biener <rguenther@suse.de>
9123
9124 * builtins.c (c_strlen): Make only_value == 2 really only
9125 affect warning generation.
9126
9127 2014-07-14 Richard Biener <rguenther@suse.de>
9128
9129 PR tree-optimization/61757
9130 PR tree-optimization/61783
9131 PR tree-optimization/61787
9132 * tree-ssa-dom.c (record_equality): Revert canonicalization
9133 change and add comment.
9134 (propagate_rhs_into_lhs): Revert previous fix, removing
9135 loop depth restriction again.
9136
9137 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9138
9139 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9140 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9141 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9142 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9143 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9144 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9145 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9146
9147 2014-07-14 Richard Biener <rguenther@suse.de>
9148
9149 * cgraph.h (decl_in_symtab_p): Make inline.
9150
9151 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9152
9153 PR middle-end/61294
9154 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9155
9156 PR target/61656
9157 * config/i386/i386.c (classify_argument): Don't merge classes above
9158 number of words.
9159
9160 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9161
9162 * cgraph.h (symtab_node): Add nonzero_address.
9163 (decl_in_symtab_p): Break out from ...
9164 (symtab_get_node): ... here.
9165 * fold-const.c: Include cgraph.h
9166 (tree_single_nonzero_warnv_p): Use symtab to determine
9167 if symbol is non-zero.
9168 * symtab.c (symtab_node::nonzero_address): New method.
9169
9170 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9171
9172 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9173 forgotten in previous commit.
9174
9175 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9176
9177 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9178 on builtin types.
9179 * ipa-devirt.c: Include stor-layout.h and intl.h
9180 (odr_subtypes_equivalent_p): New function.
9181 (warn_odr): New function.
9182 (warn_type_mismatch): New function.
9183 (odr_types_equivalent_p): New function.
9184 (add_type_duplicate): Use it.
9185 * common.opt (Wodr): New flag.
9186 * doc/invoke.texi (Wodr): Document new warning.
9187
9188 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9189
9190 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9191 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9192 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9193 (varpool_get_constructor): Push CTORS_IN timevar.
9194 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9195
9196 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9197
9198 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9199 Remove VOID_FTYPE_PUSHORT.
9200 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9201 Change code to USHORT_FTYPE_VOID.
9202 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9203 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9204 (ix86_atomic_assign_expand_fenv): Update for
9205 __builtin_ia32_fnstsw changes.
9206 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9207 (fnstsw): Change operand 0 to nonimmediate operand.
9208
9209 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9210
9211 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9212 (varpool_get_constructor): New function.
9213 (varpool_ctor_useable_for_folding_p): Break out from ...
9214 (ctor_for_folding): ... here; use varpool_get_constructor.
9215 (varpool_assemble_decl): Likewise.
9216 * lto-streamer.h (struct output_block): Turn cgraph_node
9217 to symbol filed.
9218 (lto_input_variable_constructor): Declare.
9219 * ipa-visibility.c (function_and_variable_visibility): Use
9220 varpool_get_constructor.
9221 * cgraph.h (varpool_get_constructor): Declare.
9222 (varpool_ctor_useable_for_folding_p): New function.
9223 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9224 parameter; return error_mark_node for non-trivial constructors.
9225 (lto_write_tree_1, DFS_write_tree): Update use of
9226 get_symbol_initial_value.
9227 (output_function): Update initialization of symbol.
9228 (output_constructor): New function.
9229 (copy_function): Rename to ..
9230 (copy_function_or_variable): ... this one; handle vars too.
9231 (lto_output): Output variable sections.
9232 * lto-streamer-in.c (input_constructor): New function.
9233 (lto_read_body): Rename from ...
9234 (lto_read_body_or_constructor): ... this one; handle vars too.
9235 (lto_input_variable_constructor): New function.
9236 * ipa-prop.c (ipa_prop_write_jump_functions,
9237 ipa_prop_write_all_agg_replacement): Update.
9238 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9239 (output_cgraph_opt_summary): Set symbol to NULL.
9240
9241 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9242
9243 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9244 non-polymorphic types.
9245 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9246 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9247 of types is not polymorphic.
9248
9249 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9250
9251 * lra-constraints.c (remove_inheritance_pseudos): Process
9252 destination pseudo too.
9253
9254 2014-07-11 Rong Xu <xur@google.com>
9255
9256 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9257 commit r212448.
9258
9259 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9260
9261 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9262 * config/avr/avr-devices.c (AVR_MCU): Same.
9263 (avr_mcu_types): add text start value to end of device list.
9264 * config/avr/avr-mcus.def: Add text section start for all devices.
9265 (ata5782): Add new avr5 device.
9266 (ata5831): Same.
9267 * config/avr/avr-tables.opt: Regenerate.
9268 * config/avr/avr.h: Add declaration for text section start handler.
9269 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9270 SPEC functions.
9271 (LINK_SPEC): Include text section start handler to linker spec.
9272 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9273 pass -Ttext option to linker if the text section start for the device
9274 is not zero.
9275 * config/avr/t-multilib: Regenerate.
9276 * doc/avr-mmcu.texi: Regenerate.
9277
9278 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9279
9280 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9281 * config/rs6000/aix52.h (LINK_SPEC): Same.
9282 * config/rs6000/aix53.h (LINK_SPEC): Same.
9283 * config/rs6000/aix61.h (LINK_SPEC): Same.
9284 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9285
9286 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9287
9288 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9289 (graphite_verify): New function.
9290 (ivs_params_clear): New function.
9291 (gcc_expression_from_isl_ast_expr_id): New function.
9292 (gcc_expression_from_isl_expr_int): New function.
9293 (binary_op_to_tree): New function.
9294 (ternary_op_to_tree): New function.
9295 (unary_op_to_tree): New function.
9296 (nary_op_to_tree): New function.
9297 (gcc_expression_from_isl_expr_op): New function.
9298 (gcc_expression_from_isl_expression): New function.
9299 (graphite_create_new_loop): New function.
9300 (translate_isl_ast_for_loop): New function.
9301 (get_upper_bound): New function.
9302 (graphite_create_new_loop_guard): New function.
9303 (translate_isl_ast_node_for): New function.
9304 (translate_isl_ast): New function.
9305 (add_parameters_to_ivs_params): New function.
9306 (scop_to_isl_ast): New parameter ip.
9307 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9308
9309 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9310
9311 * config/xtensa/predicates.md (call expander): Update for
9312 DECL_SECTION_NAME being string.
9313
9314 2014-07-11 Richard Biener <rguenther@suse.de>
9315
9316 PR middle-end/61473
9317 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9318 can be implemented with a single load followed by a single store.
9319 (c_strlen): Only warn when only_value is not 2.
9320
9321 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9322
9323 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9324
9325 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9326
9327 PR target/61561
9328 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9329 (*movhi_bytes): Likewise.
9330 (*arm_movqi_insn): Likewise.
9331
9332 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9333
9334 PR target/56858
9335 * config/alpha/alpha.c: Include tree-pass.h, context.h
9336 and pass_manager.h.
9337 (pass_data_handle_trap_shadows): New pass.
9338 (pass_handle_trap_shadows::gate): New pass gate function.
9339 (make_pass_handle_trap_shadows): New function.
9340 (rest_of_handle_trap_shadows): Ditto.
9341
9342 (alpha_align_insns_1): Rename from alpha_align_insns.
9343 (pass_data_align_insns): New pass.
9344 (pass_align_insns::gate): New pass gate function.
9345 (make_pass_aling_insns): New function.
9346 (rest_of_align_insns): Ditto.
9347 (alpha_align_insns): Ditto.
9348
9349 (alpha_option_override): Declare handle_trap_shadows info
9350 and align_insns_info. Register handle_trap_shadows and align_insns
9351 passes here.
9352 (alpha_reorg): Do not call alpha_trap_shadows and
9353 alpha_align_insn from here.
9354
9355 (alpha_pad_function_end): Do not skip BARRIERs.
9356
9357 2014-07-10 Rong Xu <xur@google.com>
9358
9359 Add gcov-tool: an offline gcda profile processing tool support.
9360 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9361 (gcov_is_error): Ditto.
9362 (gcov_read_string): Ditto.
9363 (gcov_read_sync): Ditto.
9364 * gcov-io.h: Move counter defines to gcov-counter.def.
9365 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9366 * coverage.c: Ditto.
9367 * gcov-tool.c: Offline gcda profile processing tool.
9368 (unlink_gcda_file): Remove one gcda file.
9369 (unlink_profile_dir): Remove gcda files from the profile path.
9370 (gcov_output_files): Output gcda files to an output dir.
9371 (profile_merge): Merge two profiles in directory.
9372 (print_merge_usage_message): Print merge usage.
9373 (merge_usage): Print merge usage and exit.
9374 (do_merge): Driver for profile merge sub-command.
9375 (profile_rewrite): Rewrite profile.
9376 (print_rewrite_usage_message): Print rewrite usage.
9377 (rewrite_usage): Print rewrite usage and exit.
9378 (do_rewrite): Driver for profile rewrite sub-command.
9379 (print_usage): Print gcov-info usage and exit.
9380 (print_version): Print gcov-info version.
9381 (process_args): Process arguments.
9382 (main): Main routine for gcov-tool.
9383 * Makefile.in: Build and install gcov-tool.
9384 * gcov-counter.def: New file split from gcov-io.h.
9385 * doc/gcc.texi: Include gcov-tool.texi.
9386 * doc/gcov-tool.texi: Document for gcov-tool.
9387
9388 2014-07-10 Richard Biener <rguenther@suse.de>
9389
9390 PR tree-optimization/61757
9391 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9392 (propagate_rhs_into_lhs): Revert part of last change.
9393
9394 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9395
9396 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9397 FUNCTION_DECLs.
9398
9399 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9400
9401 PR middle-end/53590
9402 * function.c (allocate_struct_function): Revert r188667 change.
9403
9404 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9405
9406 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9407
9408 * doc/install.texi: Remove links to defunct package providers for
9409 Solaris.
9410
9411 2014-07-09 Tom de Vries <tom@codesourcery.com>
9412
9413 * final.c (get_call_fndecl): Declare.
9414 (self_recursive_call_p): New function.
9415 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9416
9417 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9418
9419 * ipa-devirt.c (record_node): Walk through aliases.
9420
9421 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9422
9423 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9424
9425 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9426
9427 Revert:
9428 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9429
9430 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9431
9432 * ipa-visibility.c (function_and_variable_visibility): Remove
9433 temporary hack disabling local aliases on AIX.
9434
9435 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9436
9437 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9438 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9439
9440 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9441
9442 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9443 * rs6000/rs6000.c: Inline output of .set instruction.
9444 (declare_alias_data): New struct.
9445 (rs6000_declare_alias): New function.
9446 (rs6000_xcoff_declare_function_name): Use it.
9447 (rs6000_xcoff_declare_object_name): New function.
9448 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9449 (ASM_OUTPUT_DEF): Turn to empty definition.
9450
9451 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9452
9453 PR bootstrap/61679
9454 * hash-table.h: use hash_table::value_type instead of
9455 Descriptor::value_type in the return types of several methods.
9456
9457 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9458
9459 * tree-pass.h (pass_data): Remove has_execute member.
9460 * passes.c (execute_one_pass): Don't check pass->has_execute.
9461 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9462 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9463 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9464 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9465 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9466 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9467 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9468 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9469 gimple-low.c, gimple-ssa-isolate-paths.c,
9470 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9471 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9472 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9473 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9474 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9475 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9476 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9477 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9478 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9479 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9480 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9481 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9482 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9483 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9484 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9485 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9486 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9487 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9488 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9489 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9490 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9491 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9492 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9493 web.c: Remove initializer for pass_data::has_execute.
9494
9495 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9496
9497 * graphite-htab.h: Use hash_map instead of hash_table.
9498 * graphite-clast-to-gimple.c: Adjust.
9499 * passes.c: Use hash_map instead of hash_table.
9500 * sese.c: Likewise.
9501 * sese.h: Remove now unused code.
9502
9503 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9504
9505 PR target/61599
9506 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9507 than zero.
9508
9509 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9510
9511 PR rtl-optimization/61673
9512 * combine.c (simplify_comparison): Test just mode's sign bit
9513 in tmode rather than the sign bit and any bits above it.
9514
9515 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9516
9517 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9518 Add __isl_give to the declaration.
9519 (generate_isl_schedule): Likewise.
9520 (scop_to_isl_ast): Likewise.
9521
9522 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9523
9524 * config/arm/arm.c (cortexa5_extra_costs): New table.
9525 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9526
9527 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9528
9529 PR tree-optimization/61725
9530 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9531 range, use range_includes_zerop_p instead of integer_zerop on
9532 vr0->min, only use log2 of max if min is not negative.
9533
9534 2014-07-08 Richard Biener <rguenther@suse.de>
9535
9536 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9537 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9538 restriction on loop depth difference.
9539 (record_equality): Likewise.
9540 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9541 (loop_depth_of_name): Remove.
9542 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9543 restriction on loop depth difference.
9544 (init_copy_prop): Likewise.
9545
9546 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9547
9548 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9549 parameter.
9550 (walk_aliased_vdefs): Likewise.
9551 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9552 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9553 (detect_type_change_from_memory_writes): Check if entry was reached.
9554
9555 2014-07-08 Richard Biener <rguenther@suse.de>
9556
9557 PR tree-optimization/61681
9558 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9559 NONLOCAL inside ESCAPED.
9560
9561 2014-07-08 Richard Biener <rguenther@suse.de>
9562
9563 PR tree-optimization/61680
9564 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9565 Handle properly all read-write dependences with group accesses.
9566
9567 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9568
9569 PR tree-optimization/61576
9570 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9571 block containing reduction statement is predecessor of phi basi block.
9572
9573 2014-07-08 Marek Polacek <polacek@redhat.com>
9574
9575 PR c/60226
9576 * fold-const.c (round_up_loc): Change the parameter type.
9577 Remove assert.
9578 * fold-const.h (round_up_loc): Adjust declaration.
9579 * stor-layout.c (finalize_record_size): Check for too large types.
9580
9581 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9582
9583 * symtab.c: Include calls.h.
9584 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9585
9586 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9587
9588 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9589 little-endian code generation.
9590 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9591 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9592 (spe_evmergehilo): Rename to...
9593 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9594 (spe_evmergelo): Rename to...
9595 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9596 (spe_evmergelohi): Rename to...
9597 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9598 (spe_evmergehi, spe_evmergehilo): New expanders.
9599 (spe_evmergelo, spe_evmergelohi): Likewise.
9600 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9601 (*frob_tf_ti): Likewise.
9602 (*frob_<mode>_di_2): Likewise.
9603 (*frob_tf_di_8_2): Likewise.
9604 (*frob_di_<mode>): Likewise.
9605 (*frob_ti_tf): Likewise.
9606 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9607 (*frob_ti_<mode>_8_2): Likewise.
9608 (*frob_ti_tf_2): Likewise.
9609 (mov_si<mode>_e500_subreg0): Rename to...
9610 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9611 endianness only.
9612 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9613 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9614 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9615 the big endianness only.
9616 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9617 (*mov_si<mode>_e500_subreg0_2): Rename to...
9618 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9619 big big endianness only.
9620 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9621 (*mov_si<mode>_e500_subreg4): Rename to...
9622 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9623 endianness only.
9624 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9625 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9626 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9627 the big endianness only.
9628 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9629 pattern.
9630 (*mov_si<mode>_e500_subreg4_2): Rename to...
9631 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9632 endianness only.
9633 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9634 (*mov_sitf_e500_subreg8): Rename to...
9635 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9636 endianness only.
9637 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9638 (*mov_sitf_e500_subreg8_2): Rename to...
9639 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9640 endianness only.
9641 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9642 (*mov_sitf_e500_subreg12): Rename to...
9643 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9644 endianness only.
9645 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9646 (*mov_sitf_e500_subreg12_2): Rename to...
9647 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9648 endianness only.
9649 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9650
9651 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9652
9653 * asan.c (instrument_strlen_call): Do not instrument first byte
9654 in strlen if already instrumented.
9655
9656 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9657
9658 * config/arm/arm.opt (mwords-little-endian): Delete.
9659 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9660 of TARGET_LITTLE_WORDS.
9661 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9662 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9663 warning.
9664 * doc/invoke.texi: Remove references to -mwords-little-endian.
9665
9666 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9667
9668 * expmed.c (struct init_expmed_rtl): Change all fields but
9669 pow2 and cint from struct rtx_def to rtx.
9670 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9671 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9672 at the end again.
9673
9674 2014-07-06 Marek Polacek <polacek@redhat.com>
9675
9676 PR c/6940
9677 * doc/invoke.texi: Document -Wsizeof-array-argument.
9678
9679 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9680
9681 * wide-int.h (wide_int_storage): Change declaration from struct
9682 to class.
9683
9684 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9685
9686 * cgraph.c (cgraph_create_indirect_edge): Update call of
9687 get_polymorphic_call_info.
9688 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9689 (possible_polymorphic_call_targets): Add parameter call.
9690 (decl_maybe_in_construction_p): New predicate.
9691 (get_polymorphic_call_info): Add parameter call;
9692 use decl_maybe_in_construction_p.
9693 * gimple-fold.c (fold_gimple_assign): Update use of
9694 possible_polymorphic_call_targets.
9695 (gimple_fold_call): Likewise.
9696 * ipa-prop.c: Inlcude calls.h
9697 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9698 (param_type_may_change_p): New predicate.
9699 (detect_type_change_from_memory_writes): Break out from ...
9700 (detect_type_change): ... this one; use param_type_may_change_p.
9701 (detect_type_change_ssa): Use param_type_may_change_p.
9702 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9703
9704 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9705
9706 PR target/49423
9707 * config/arm/arm-protos.h (arm_legitimate_address_p,
9708 arm_is_constant_pool_ref): Add prototypes.
9709 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9710 (arm_is_constant_pool_ref) New function.
9711 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9712 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9713 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9714 operand. Remove pool_range and neg_pool_range attributes.
9715 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9716 pool_range and neg_pool_range attributes.
9717 * config/arm/constraints.md (Uh): New constraint.
9718 (Uq): Don't allow constant pool references.
9719
9720 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9721
9722 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9723 (move_lo_quad_internal_be_<mode>): Likewise.
9724 (move_lo_quad_<mode>): Convert to define_expand.
9725 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9726 (aarch64_simd_move_hi_quad_be_<mode>): New.
9727 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9728 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9729 (aarch64_combinez_be<mode>): New.
9730 (aarch64_combine<mode>): Convert to define_expand.
9731 (aarch64_combine_internal<mode>): New.
9732 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9733
9734 2014-07-04 Tom de Vries <tom@codesourcery.com>
9735
9736 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9737 combination of earlyclobber and read/write modifiers.
9738
9739 2014-07-04 Tom de Vries <tom@codesourcery.com>
9740
9741 * config/aarch64/aarch64-simd.md
9742 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9743
9744 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9745
9746 PR target/61714
9747 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9748
9749 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9750
9751 PR middle-end/61654
9752 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9753
9754 PR tree-optimization/61684
9755 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9756 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9757
9758 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9759 Kito Cheng <kito@0xlab.org>
9760 Monk Chiang <sh.chiang04@gmail.com>
9761
9762 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9763 (nds32_symbol_load_store_p): Move to ...
9764 (nds32_fp_as_gp_check_available): Move to ...
9765 * config/nds32/nds32-fp-as-gp.c: ... here.
9766 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9767 extern declaration.
9768
9769 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9770 Kito Cheng <kito@0xlab.org>
9771 Monk Chiang <sh.chiang04@gmail.com>
9772
9773 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9774 (nds32_expand_store_multiple): Move to ...
9775 (nds32_expand_movmemqi): Move to ...
9776 * config/nds32/nds32-memory-manipulation.c: ... here.
9777
9778 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9779 Kito Cheng <kito@0xlab.org>
9780 Monk Chiang <sh.chiang04@gmail.com>
9781
9782 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9783 (nds32_output_casesi_pc_relative): Move to ...
9784 (nds32_output_casesi): Move to ...
9785 (nds32_mem_format): Move to ...
9786 (nds32_output_16bit_store): Move to ...
9787 (nds32_output_16bit_load): Move to ...
9788 (nds32_output_32bit_store): Move to ...
9789 (nds32_output_32bit_load): Move to ...
9790 (nds32_output_32bit_load_s): Move to ...
9791 (nds32_output_stack_push): Move to ...
9792 (nds32_output_stack_pop): Move to ...
9793 * config/nds32/nds32-md-auxiliary.c: ... here.
9794
9795 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9796 Ling-Hua Tseng <uranus@tinlans.org>
9797
9798 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9799 the purpose of this file.
9800
9801 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9802 Kito Cheng <kito@0xlab.org>
9803 Monk Chiang <sh.chiang04@gmail.com>
9804
9805 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9806 (nds32_address_cost): Move implementation to ...
9807 * config/nds32/nds32-cost.c: ... here.
9808 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9809 (nds32_address_cost_impl): Declare.
9810
9811 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9812 Kito Cheng <kito@0xlab.org>
9813 Monk Chiang <sh.chiang04@gmail.com>
9814
9815 * config/nds32/nds32.c
9816 (nds32_consecutive_registers_load_store_p): Move to ...
9817 (nds32_valid_multiple_load_store): Move to ...
9818 (nds32_valid_stack_push_pop): Move to ...
9819 (nds32_can_use_bclr_p): Move to ...
9820 (nds32_can_use_bset_p): Move to ...
9821 (nds32_can_use_btgl_p): Move to ...
9822 (nds32_can_use_bitci_p): Move to ...
9823 * config/nds32/nds32-predicates.c: ... here.
9824
9825 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9826 Kito Cheng <kito@0xlab.org>
9827 Monk Chiang <sh.chiang04@gmail.com>
9828
9829 * config/nds32/nds32.c
9830 (nds32_expand_builtin_null_ftype_reg): Move to ...
9831 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9832 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9833 (nds32_init_builtins): Move implementation to ...
9834 (nds32_expand_builtin): Move implementation to ...
9835 * config/nds32/nds32-intrinsic.c: ... here.
9836 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9837 (nds32_expand_builtin_impl): Declare.
9838
9839 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9840 Kito Cheng <kito@0xlab.org>
9841 Monk Chiang <sh.chiang04@gmail.com>
9842
9843 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9844 (nds32_emit_section_tail_template): Move to ...
9845 (nds32_emit_isr_jmptbl_section): Move to ...
9846 (nds32_emit_isr_vector_section): Move to ...
9847 (nds32_emit_isr_reset_conten): Move to ...
9848 (nds32_check_isr_attrs_conflict): Move to ...
9849 (nds32_construct_isr_vectors_information): Move to ...
9850 (nds32_asm_file_start): Move implementation to ...
9851 (nds32_asm_file_end): Move implementation to ...
9852 * config/nds32/nds32-isr.c: ... here.
9853 * config/nds32/nds32-protos.h
9854 (nds32_check_isr_attrs_conflict): Declare.
9855 (nds32_construct_isr_vectors_information): Declare.
9856 (nds32_asm_file_start_for_isr): Declare.
9857 (nds32_asm_file_end_for_isr): Declare.
9858
9859 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9860 Kito Cheng <kito@0xlab.org>
9861 Monk Chiang <sh.chiang04@gmail.com>
9862
9863 * config.gcc (nds32*): Add new modules to extra_objs.
9864 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9865 (nds32be-*-*): Likewise.
9866 * config/nds32/nds32-cost.c: New file.
9867 * config/nds32/nds32-fp-as-gp.c: New file.
9868 * config/nds32/nds32-intrinsic.c: New file.
9869 * config/nds32/nds32-isr.c: New file.
9870 * config/nds32/nds32-md-auxiliary.c: New file.
9871 * config/nds32/nds32-memory-manipulation.c: New file.
9872 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9873 * config/nds32/nds32-predicates.c: New file.
9874 * config/nds32/t-nds32: New file.
9875
9876 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9877
9878 PR tree-optimization/61682
9879 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9880 using cases and when one of the operands is equal to 1.
9881
9882 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9883
9884 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9885 ashr<mode>3): Correct mode of operands[2].
9886 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9887 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9888 Correct mode of operands[2]. Fix split condition.
9889
9890 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9891
9892 * arm.md (arch): Add armv6_or_vfpv3.
9893 (arch_enabled): Add test for the above.
9894 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9895 on VFP9.
9896 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9897
9898 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9899
9900 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9901 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9902 HWI 1 and negate the unsigned value.
9903 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9904 use AND instead of shift.
9905 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9906
9907 2014-07-03 Marek Polacek <polacek@redhat.com>
9908
9909 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9910 (-fsanitize=float-divide-by-zero): Move to the table with
9911 -fsanitize=undefined suboptions.
9912 (-fsanitize=float-cast-overflow): Likewise.
9913
9914 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9915
9916 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9917 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9918 endianness.
9919
9920 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9921
9922 * loop-invariant.c (struct invariant): Add a new member: eqno;
9923 (find_identical_invariants): Update eqno;
9924 (create_new_invariant): Init eqno;
9925 (get_inv_cost): Compute comp_cost with eqno;
9926
9927 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9928
9929 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9930 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9931 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9932 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9933 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9934
9935 2014-07-02 Christian Bruel <christian.bruel@st.com>
9936
9937 PR target/29349
9938 PR target/53513
9939 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9940 (make_preds_opaque): Delete.
9941 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9942 (commit_mode_sets): New function.
9943 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9944 Process all modes at once.
9945 * basic-block.h (pre_edge_lcm_avs): Declare.
9946 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9947 Call clear_aux_for_edges. Fix comments.
9948 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9949 (pre_edge_rev_lcm): Idem.
9950 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9951 parameter.
9952 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9953 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9954 Idem.
9955 * config/i386/i386.c (x96_emit_mode_set): Idem.
9956 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9957 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9958 (fpscr_toggle) Disallow from delay slot.
9959 * target.def (emit_mode_set): Add prev_mode parameter.
9960 * doc/tm.texi: Regenerate.
9961
9962 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9963
9964 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9965 variable i.
9966
9967 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9968
9969 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9970 vtable_pointer_value_to_vtable): Constify.
9971 (contains_polymorphic_type_p): Declare.
9972 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9973 vtable_pointer_value_to_vtable): Constify.
9974 (contains_polymorphic_type_p): New predicate.
9975 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9976 polymorphic types.
9977 (ipa_set_ancestor_jf): Likewise.
9978 (detect_type_change): Return false in easy cases.
9979 (compute_complex_assign_jump_func): Require type to contain
9980 polymorphic type.
9981 (compute_known_type_jump_func): Likewise.
9982
9983 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9984
9985 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9986 Remove.
9987 (type_in_anonymous_namespace_p): Constify argument.
9988 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9989 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9990 (main_odr_variant): New function.
9991 (hash_type_name): Make static; update assert; do not ICE on
9992 non-records.
9993 (types_same_for_odr): Bring here from tree.c; simplify and remove
9994 old structural comparing code that doesn't work for templates.
9995 (odr_hasher::equal): Update assert.
9996 (add_type_duplicate): Return true when bases should be computed;
9997 replace incomplete loader by complete; do not output duplicated
9998 warnings; do not ICE on non-records; set odr_violated flag.
9999 (get_odr_type): Be ready to replace incomplete type by complete
10000 one; work on ODR variants instead of main variants; reorder item
10001 in array so bases have still smaller indexes.
10002 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10003 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10004
10005 2014-07-01 Cary Coutant <ccoutant@google.com>
10006
10007 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10008 lookup.
10009 (resolve_addr_in_expr): When replacing the rtx in a location list
10010 entry, get a new address table entry.
10011 (dwarf2out_finish): Call index_location_lists even if there are no
10012 addr_index_table entries yet.
10013
10014 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10015
10016 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10017 change for not being obvious.
10018
10019 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10020
10021 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10022 unused argument.
10023
10024 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10025
10026 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10027 (vcagt_f64): Likewise.
10028 (vcale_f64): Likewise.
10029 (vcaled_f64): Likewise.
10030 (vcales_f32): Likewise.
10031 (vcalt_f64): Likewise.
10032 (vcaltd_f64): Likewise.
10033 (vcalts_f32): Likewise.
10034
10035 2014-07-01 Marek Polacek <polacek@redhat.com>
10036
10037 * doc/invoke.texi: Document -Wint-conversion.
10038
10039 2014-07-01 Marek Polacek <polacek@redhat.com>
10040
10041 PR c/58286
10042 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10043
10044 2014-07-01 Martin Liska <mliska@suse.cz>
10045
10046 IPA REF alias refactoring
10047 * cgraph.h (iterate_direct_aliases): New function.
10048 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10049 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10050 FOR_EACH_ALIAS added.
10051 (cgraph_for_node_and_aliases): Likewise.
10052 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10053 * ipa-inline.c (reset_edge_caches): Likewise.
10054 (update_caller_keys): Likewise.
10055 * trans-mem.c (ipa_tm_execute): Likewise.
10056 *varpool.c (varpool_analyze_node): Likewise.
10057 (varpool_for_node_and_aliases): Likewise.
10058 * ipa-ref.h (first_alias): New function.
10059 (last_alias): Likewise.
10060 (has_aliases_p): Likewise.
10061 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10062 is sensitive to IPA_REF_ALIASes.
10063 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10064 are put at the beginning of the list.
10065 (symtab_node::iterate_direct_aliases): New function.
10066
10067 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10068
10069 Revert:
10070 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10071 type is complete.
10072 (write_ts_type_common_tree_pointers): Do not stream fields not set
10073 for incomplete types; do not stream duplicated fields for variants;
10074 sanity check that variant and type match.
10075 (write_ts_type_non_common_tree_pointers): Likewise.
10076 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10077 TYPE_SIZE whether type is complete.
10078 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10079 write_ts_type_common_tree_pointers
10080 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10081
10082 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10083
10084 * var-tracking.c (add_stores): Return instead of asserting if old
10085 and new values for conditional store are the same.
10086
10087 2014-06-30 Richard Henderson <rth@redhat.com>
10088
10089 PR rtl-opt/61608
10090 PR target/39284
10091 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10092 the cfg if there were any changes.
10093 * passes.def: Revert move of peephole2 after reorder_blocks;
10094 move duplicate_computed_gotos before peephole2.
10095
10096 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10097
10098 * except.c (emit_note_eh_region_end): New helper function.
10099 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10100 emit EH_REGION_END note.
10101 * jump.c (cleanup_barriers): Do not split a call and its
10102 corresponding CALL_ARG_LOCATION note.
10103
10104 2014-06-30 Jeff Law <law@redhat.com>
10105
10106 PR tree-optimization/61607
10107 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10108 deeper into the SSA_NAME_VALUE chain.
10109
10110 2014-06-30 Marek Polacek <polacek@redhat.com>
10111
10112 * convert.c (convert_to_integer): Don't instrument conversions if the
10113 function has no_sanitize_undefined attribute.
10114 * ubsan.c: Don't run the ubsan pass if the function has
10115 no_sanitize_undefined attribute.
10116
10117 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10118
10119 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10120 -fsanitize=undefined suboptions.
10121
10122 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10123
10124 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10125 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10126 against bigendian and adjust indices.
10127
10128 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10129
10130 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10131
10132 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10133
10134 PR target/61633
10135 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10136 Add alternative; make early clobber. Adjust both split patterns
10137 to use operand 0 as the working register.
10138
10139 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10140
10141 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10142 as ira_object_id_map might be NULL, or 1.
10143
10144 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10145
10146 * loop-invariant.c (get_inv_cost): Handle register class.
10147 (gain_for_invariant): Check the register pressure of the inv
10148 and its overlapped register class, other than all.
10149
10150 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10151
10152 * doc/invoke.texi (Optimize Options): Fix descriptions of
10153 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10154
10155 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10156
10157 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10158 documentation.
10159
10160 2014-06-29 Tobias Grosser <tobias@grosser.es>
10161
10162 PR bootstrap/61650
10163 * graphite-isl-ast-to-gimple.c: Add missing guards.
10164
10165 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10166
10167 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10168 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10169 * flag-types.h: Add new enum fgraphite_generator.
10170 * graphite-isl-ast-to-gimple.c: New.
10171 * graphite-isl-ast-to-gimple.h: New.
10172 * graphite.c (graphite_transform_loops): Add choice of Graphite
10173 code generator, which depends on flag_graphite_code_gen.
10174
10175 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10176
10177 * graphite-dependences.c (subtract_commutative_associative_deps):
10178 Add NULL checking of the following variables: must_raw_no_source,
10179 may_raw_no_source, must_war_no_source, may_war_no_source,
10180 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10181 must_war, may_war, must_waw, may_waw.
10182
10183 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10184
10185 * graphite-clast-to-gimple.c: gloog is renamed to
10186 graphite_regenerate_ast_cloog. gloog_error is renamed to
10187 graphite_regenerate_error.
10188 * graphite-clast-to-gimple.h: The definition of the struct
10189 bb_pbb_def is moved to graphite-htab.h.
10190 Add inclusion of the hash-table.h.
10191 * graphite-htab.h: The declaration of the function gloog is moved
10192 to graphite-clast-to-gimple.h and renamed to
10193 graphite_regenerate_ast_cloog.
10194 * graphite.c (graphite_transform_loops): gloog is renamed
10195 to graphite_regenerate_ast_cloog.
10196
10197 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10198
10199 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10200 type is complete.
10201 (write_ts_type_common_tree_pointers): Do not stream fields not set
10202 for incomplete types; do not stream duplicated fields for variants;
10203 sanity check that variant and type match.
10204 (write_ts_type_non_common_tree_pointers): Likewise.
10205 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10206 TYPE_SIZE whether type is complete.
10207 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10208 write_ts_type_common_tree_pointers
10209 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10210
10211 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10212
10213 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10214
10215 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10216
10217 * tree-inline.c (remap_type_1): Do not duplicate fields
10218 that are shared in between type and its main variant.
10219
10220 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10221
10222 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10223 of the type.
10224 (ipa_set_ancestor_jf) Likewise.
10225 (check_stmt_for_type_change): Check that we work on main variant.
10226 (detect_type_change): Look into main variant.
10227 (compute_known_type_jump_func): Check that main variant has BINFO.
10228
10229 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10230
10231 * ipa-devirt.c (set_type_binfo): New function.
10232 (add_type_duplicate): Use it.
10233 (get_odr_type): Sanity check that binfos points to main variants.
10234 (get_class_context): Be sure the context's outer_type is main variant.
10235 (contains_type_p): Walk main variant.
10236 (get_polymorphic_call_info_for_decl): Set outer_type to be
10237 main variant.
10238 (get_polymorphic_call_info): Likewise.
10239 (possible_polymorphic_call_targets): Sanity check that we operate
10240 on main variant.
10241
10242 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10243
10244 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10245
10246 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10247
10248 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10249 accidental change due to wide-int branch merge.
10250
10251 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10252
10253 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10254 compressed debug support.
10255 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10256 * configure: Regenerate.
10257 * config.in: Regenerate.
10258 * common.opt (compressed_debug_sections): New enum.
10259 (gz, gz=): New options.
10260 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10261 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10262 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10263 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10264 LINK_COMPRESS_DEBUG_SPEC.
10265 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10266 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10267 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10268 (Debugging Options): Document -gz[=type].
10269
10270 2014-06-27 Martin Jambor <mjambor@suse.cz>
10271
10272 PR ipa/61160
10273 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10274 args_to_skip, use those from node instead. Copy args_to_skip and
10275 combined_args_to_skip from node to the new thunk.
10276 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10277 (cgraph_create_virtual_clone): Moved computation of
10278 combined_args_to_skip...
10279 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10280
10281 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10282
10283 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10284 redundant diagnostic machinary.
10285
10286 2014-06-27 Richard Biener <rguenther@suse.de>
10287
10288 * tree-ssa-math-opts.c (bswap_replace): Fix
10289 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10290
10291 2014-06-27 Martin Liska <mliska@suse.cz>
10292
10293 * gimple.h (gimple_location_safe): New function introduced.
10294 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10295 of gimple_location_safe replaces gimple_location.
10296 (gimple_fold_call): Likewise.
10297 * ipa-devirt.c (ipa_devirt): Likewise.
10298 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10299 * ipa.c (walk_polymorphic_call_targets): Likewise.
10300 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10301
10302 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10303
10304 PR tree-optimization/57233
10305 PR tree-optimization/61299
10306 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10307 functions.
10308 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10309 would be lowered to scalar shifts, check if corresponding
10310 shifts and vector BIT_IOR_EXPR are supported and don't lower
10311 or lower just to narrower vector type in that case.
10312 * expmed.c (expand_shift_1): Fix up handling of vector
10313 shifts and rotates.
10314
10315 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10316
10317 PR target/61586
10318 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10319
10320 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10321
10322 * doc/invoke.texi (-fsemantic-interposition): Document.
10323 * common.opt (fsemantic-interposition): New flag.
10324 * varasm.c (decl_replaceable_p): Use it.
10325
10326 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10327
10328 PR target/61542
10329 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10330 extraction other than index 3.
10331
10332 2014-06-26 Teresa Johnson <tejohnson@google.com>
10333
10334 * doc/invoke.texi: Fix typo.
10335 * dumpfile.c: Add support for documented -fdump-* options
10336 optimized/missed/note/optall.
10337
10338 2014-06-26 Martin Jambor <mjambor@suse.cz>
10339
10340 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10341 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10342 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10343 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10344 * opts.c (default_options_optimization): Set
10345 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10346 * doc/invoke.texi (allow-load-data-races)
10347 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10348 (allow-store-data-races): Document the new default.
10349
10350 2014-06-26 Martin Jambor <mjambor@suse.cz>
10351
10352 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10353 renamed to ipa_impossible_devirt_target. Fix typo.
10354 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10355 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10356 ipa_impossible_devirt_target.
10357
10358 2014-06-26 Richard Biener <rguenther@suse.de>
10359
10360 PR tree-optimization/61607
10361 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10362 explaining why we restrict copies on loop depth.
10363 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10364 on loop depth.
10365 (record_equivalences_from_phis): Instead add it here.
10366
10367 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10368
10369 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10370 (LTO_WRAPPER_OBJS): New variable.
10371 (lto-wrapper$(exeext)): Use it.
10372 * collect2.c: Include "collect-utils.h".
10373 (verbose, debug): Remove variables.
10374 (at_file_supplied): No longer static.
10375 (tool_name): New variable.
10376 (do_wait, fork_execute, maybe_unlink): Don't declare.
10377 (tool_cleanup): No longer static.
10378 (notice): Remove function.
10379 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10380 fork_execute calls.
10381 (collect_wait, do_wait, collect_execute): Remove functions.
10382 (maybe_unlink): No longer static.
10383 * collect2.h (verbose, debug): Don't declare.
10384 (at_file_supplied): Declare.
10385 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10386 changed.
10387 (collect_execute): Replace with implementation from collect2, plus a
10388 new arg use_atfile. All callers changed.
10389 (collect_wait): Replace with implementation from collect2.
10390 (maybe_unlink_file): Remove function.
10391 (fork_execute): Replace with implementation from collect2, plus a
10392 new arg use_atfile. All callers changed.
10393 (do_wait): Add call to utils_cleanup to the error path.
10394 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10395 (tool_cleanup): Adjust declarations.
10396 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10397 * tlink.c: Include "collect-utils.h".
10398 (tlink_execute): New arg use_atfile. All callers changed.
10399 (tlink_init, tlink_execute): Remove declarations.
10400
10401 * collect-utils.c (save_temps): New variable.
10402 (do_wait): Use it instead of debug. Use fatal_error.
10403 * collect-utils.h (save_temps): Declare.
10404 * collect2.c (verbose): Rename from vflag. All uses changed.
10405 (tool_cleanup): New function, copied from collect_atexit.
10406 (collect_atexit, handler): Just call it.
10407 * collect2.h (verbose): Declaration renamed from vflag.
10408 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10409 debug.
10410
10411 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10412 (lto-wrapper$(exeext)): Link with collect-utils.o.
10413 * collect-utils.c: New file.
10414 * collect-utils.h: New file.
10415 * lto-wrapper.c: Include "collect-utils.h".
10416 (args_name): Delete variable.
10417 (tool_name): New variable.
10418 (tool_cleanup): New function.
10419 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10420 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10421 (fork_execute): Remove functions.
10422
10423 2014-06-26 Nick Clifton <nickc@redhat.com>
10424
10425 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10426
10427 * doc/extend.texi (Function Attributes): Fix typo in description
10428 of RX vector attribute.
10429
10430 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10431
10432 * config.gcc (supported_defaults): Error when passing either
10433 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10434
10435 2014-06-26 Richard Biener <rguenther@suse.de>
10436
10437 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10438 propagating volatile pointers.
10439
10440 2014-06-26 Richard Biener <rguenther@suse.de>
10441
10442 PR tree-optimization/61607
10443 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10444 loop if we redirected its latch edge.
10445 (thread_block_1): Do not cancel loops prematurely.
10446
10447 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10448
10449 * toplev.c (backend_init_target): Move init_emit_regs and
10450 init_regs to...
10451 (backend_init) ... here; skip ira_init_once and backend_init_target.
10452 (target_reinit) ... and here; clear
10453 this_target_rtl->lang_dependent_initialized.
10454 (lang_dependent_init_target): Clear
10455 this_target_rtl->lang_dependent_initialized;
10456 break out rtl initialization to ...
10457 (initialize_rtl): ... here; call also backend_init_target
10458 and ira_init_once.
10459 * toplev.h (initialize_rtl): New function.
10460 * function.c: Include toplev.h
10461 (init_function_start): Call initialize_rtl.
10462 * rtl.h (target_rtl): Add target_specific_initialized,
10463 lang_dependent_initialized.
10464
10465 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10466 Jakub Jelinek <jakub@redhat.com>
10467
10468 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10469
10470 2014-06-25 Tom de Vries <tom@codesourcery.com>
10471
10472 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10473
10474 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10475
10476 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10477 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10478 Issue a strict overflow warning if appropriate.
10479
10480 2014-06-25 Martin Liska <mliska@suse.cz>
10481
10482 IPA REF refactoring
10483 * Makefile.in: Removed header file (ipa-ref-inline.h).
10484 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10485 called.
10486 (cgraph_speculative_call_info): Likewise.
10487 (cgraph_for_node_thunks_and_aliases): Likewise.
10488 (cgraph_for_node_and_aliases): Likewise.
10489 (verify_cgraph_node): Likewise.
10490 * cgraph.h: Batch of IPA REF functions become member functions of
10491 symtab_node: add_reference, maybe_add_reference, clone_references,
10492 clone_referring, clone_reference, find_reference,
10493 remove_stmt_references, remove_all_references,
10494 remove_all_referring, dump_references, dump_referring,
10495 has_alias_p, iterate_reference, iterate_referring.
10496 * cgraphbuild.c (record_reference): New IPA REF function used.
10497 (record_type_list): Likewise.
10498 (record_eh_tables): Likewise.
10499 (mark_address): Likewise.
10500 (mark_load): Likewise.
10501 (mark_store): Likewise.
10502 (pass_build_cgraph_edges): Likewise.
10503 (rebuild_cgraph_edge): Likewise.
10504 (cgraph_rebuild_references): Likewise.
10505 (pass_remove_cgraph_callee_edges): Likewise.
10506 * cgraphclones.c (cgraph_clone_node): Likewise.
10507 (cgraph_create_virtual_clone): Likewise.
10508 (cgraph_materialize_clone): Likewise.
10509 (cgraph_materialize_all_clones): Likewise.
10510 * cgraphunit.c (cgraph_reset_node): Likewise.
10511 (cgraph_reset_node): Likewise.
10512 (analyze_function): Likewise.
10513 (assemble_thunks_and_aliases): Likewise.
10514 (expand_function): Likewise.
10515 * ipa-comdats.c (propagate_comdat_group): Likewise.
10516 (enqueue_references): Likewise.
10517 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10518 (create_specialized_node): Likewise.
10519 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10520 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10521 * ipa-inline.c (reset_edge_caches): Likewise.
10522 (update_caller_keys): Likewise.
10523 (execute): Likewise.
10524 * ipa-prop.c (remove_described_reference): Likewise.
10525 (propagate_controlled_uses): Likewise.
10526 (ipa_edge_duplication_hook): Likewise.
10527 (ipa_modify_call_arguments): Likewise.
10528 * ipa-pure-const.c (propagate_pure_const): Likewise.
10529 * ipa-ref-inline.h: Header file removed, functions moved
10530 to symtab_node class.
10531 * ipa-ref.c (remove_reference): New class member function.
10532 (cannot_lead_to_return): New class member function.
10533 (referring_ref_list): Likewise.
10534 (referred_ref_list): Likewise.
10535 Rest of functions moved to symtab_node class.
10536 * ipa-ref.h: New member functions remove_reference,
10537 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10538 to ipa_ref class.
10539 ipa_ref_list class has new member functions: first_reference,
10540 first_referring, clear, nreferences.
10541 * ipa-reference.c (analyze_function): New IPA REF function used.
10542 (write_node_summary_p): Likewise.
10543 (ipa_reference_write_optimization_summary): Likewise.
10544 * ipa-split.c (split_function): Likewise.
10545 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10546 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10547 (function_and_variable_visibility): Likewise.
10548 * ipa.c (has_addr_references_p): Likewise.
10549 (process_references): Argument type changed.
10550 (symtab_remove_unreachable_nodes): New IPA REF function used.
10551 (process_references): Likewise.
10552 (set_writeonly_bit): Likewise.
10553 * lto-cgraph.c: Implementation of new symtab_node member functions
10554 that uses new IPA REF functions.
10555 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10556 function used.
10557 * lto-streamer-out.c (output_symbol_p): Likewise.
10558 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10559 changed.
10560 * symtab.c: Implementation of new IPA REF API.
10561 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10562 (ipa_tm_create_version): Likewise.
10563 (ipa_tm_execute): Likewise.
10564 * tree-emutls.c (gen_emutls_addr): Likewise.
10565 * tree-inline.c (copy_bb): Likewise.
10566 (delete_unreachable_blocks_update_callgraph): Likewise.
10567 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10568 (varpool_for_node_and_aliases): Likewise.
10569
10570 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10571
10572 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10573
10574 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10575
10576 PR bootstrap/61598
10577 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10578 tree_node * instead of tree_node *.
10579 (fold): Adjust.
10580 (print_fold_checksum): Likewise.
10581 (fold_check_failed): Likewise.
10582 (debug_fold_checksum): Likewise.
10583 (fold_build1_stat_loc): Likewise.
10584 (fold_build2_stat_loc): Likewise.
10585 (fold_build3_stat_loc): Likewise.
10586 (fold_build_call_array_loc): Likewise.
10587
10588 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10589
10590 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10591 implementation with call to...
10592 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10593 function.
10594 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10595 Declare.
10596
10597 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10598
10599 PR tree-optimization/57742
10600 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10601 after replacing the statement.
10602
10603 2014-06-25 Nick Clifton <nickc@redhat.com>
10604
10605 * config/v850/v850.c (GHS_default_section_names): Change to const
10606 char * type.
10607 (GHS_current_section_names): Likewise.
10608 (v850_insert_attributes): Do not build strings, just assign the
10609 names directly. Change the type of 'chosen_section' to const
10610 char*.
10611 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10612 directly to the array entry.
10613 * config/v850/v850.h (GHS_default_section_names): Change to const
10614 char * type.
10615 (GHS_current_section_names): Likewise.
10616
10617 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10618
10619 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10620 (LANG_HOOKS_DECLS): Add it.
10621 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10622 has correct type.
10623 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10624 * langhooks.h (struct lang_hooks_for_decls): Add
10625 omp_clause_linear_ctor hook.
10626 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10627 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10628 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10629 combined simd loop use omp_clause_linear_ctor hook.
10630
10631 2014-06-24 Cong Hou <congh@google.com>
10632
10633 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10634 pattern recognition.
10635 (type_conversion_p): PROMOTION is true if it's a type promotion
10636 conversion, and false otherwise. Return true if the given expression
10637 is a type conversion one.
10638 * tree-vectorizer.h: Adjust the number of patterns.
10639 * tree.def: Add SAD_EXPR.
10640 * optabs.def: Add sad_optab.
10641 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10642 * expr.c (expand_expr_real_2): Likewise.
10643 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10644 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10645 * optabs.c (optab_for_tree_code): Likewise.
10646 * tree-cfg.c (estimate_operator_cost): Likewise.
10647 * tree-ssa-operands.c (get_expr_operands): Likewise.
10648 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10649 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10650 * doc/generic.texi: Add document for SAD_EXPR.
10651 * doc/md.texi: Add document for ssad and usad.
10652
10653 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10654
10655 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10656 qualification in cast.
10657
10658 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10659
10660 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10661 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10662 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10663 (tree_function_decl): ... here.
10664 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10665 streaming of vindex to ...
10666 (write_ts_function_decl_tree_pointers): ... here.
10667 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10668 Do not stream DECL_VINDEX.
10669 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10670
10671 2014-06-24 Catherine Moore <clm@codesourcery.com>
10672 Sandra Loosemore <sandra@codesourcery.com>
10673
10674 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10675 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10676 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10677
10678 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10679
10680 * doc/invoke.texi (Warning Options): Remove duplicated
10681 -Wmaybe-uninitialized.
10682
10683 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10684
10685 PR tree-optimization/57742
10686 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10687 (handle_builtin_malloc, handle_builtin_memset): New functions.
10688 (strlen_optimize_stmt): Call them.
10689 * passes.def: Move strlen after loop+dom but before vrp.
10690
10691 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10692
10693 PR target/61570
10694 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10695 model family 6 CPU with has_longmode never use a CPU without
10696 64-bit support.
10697
10698 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10699
10700 PR target/61570
10701 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10702 the last change.
10703
10704 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10705
10706 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10707 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10708 pointer_map.
10709 * hash-map.h: New file.
10710 * ipa-comdats.c: Use hash_map instead of pointer_map.
10711 * ipa.c: Likewise.
10712 * lto-section-out.c: Adjust.
10713 * lto-streamer.h: Replace pointer_map with hash_map.
10714 * symtab.c (verify_symtab): Likewise.
10715 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10716 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10717 * tree-streamer.h: Likewise.
10718 * tree-streamer.c: Adjust.
10719 * pointer-set.h: Remove pointer_map.
10720
10721 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10722
10723 * hash-table.h: Add a template arg to choose between storing values
10724 and storing pointers to values, and then provide partial
10725 specializations for both.
10726 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10727 should store, not the type values should point to.
10728 * tree-into-ssa.c (var_info_hasher): Likewise.
10729 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10730 * tree-complex.c: Adjust.
10731 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10732 table instead of int_tree_map *.
10733 * tree-parloops.c: Adjust.
10734 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10735 type is being stored.
10736 * tree-vectorizer.c: Adjust.
10737
10738 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10739
10740 * hash-table.h: Remove a layer of indirection from hash_table so that
10741 it contains the hash table's data instead of a pointer to the data.
10742 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10743 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10744 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10745 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10746 fold-const.c, gcse.c, ggc-common.c,
10747 gimple-ssa-strength-reduction.c, gimplify.c,
10748 graphite-clast-to-gimple.c, graphite-dependences.c,
10749 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10750 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10751 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10752 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10753 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10754 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10755 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10756 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10757 tree-ssa-live.c, tree-ssa-loop-im.c,
10758 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10759 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10760 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10761 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10762 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10763 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10764 vtable-verify.c, vtable-verify.h: Adjust.
10765
10766 2014-06-24 Richard Biener <rguenther@suse.de>
10767
10768 PR tree-optimization/61572
10769 * tree-ssa-sink.c (statement_sink_location): Do not sink
10770 loads from hard registers.
10771
10772 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10773
10774 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10775 not mentioned in clauses use private clause if the iterator is
10776 declared in #pragma omp for simd, and when adding lastprivate
10777 instead, add it to the outer #pragma omp for too. Diagnose
10778 if the variable is private in outer context. For simd collapse > 1
10779 loops, replace all iterators with temporaries.
10780 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10781 same even in collapse > 1 loops.
10782
10783 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10784 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10785 non-NULL.
10786 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10787 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10788 non-NULL.
10789 (gimplify_adjust_omp_clauses): Likewise.
10790 * omp-low.c (lower_rec_simd_input_clauses,
10791 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10792 safelen the same as safelen(1).
10793 * tree-nested.c (convert_nonlocal_omp_clauses,
10794 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10795 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10796 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10797 Fixup handling of GIMPLE_OMP_TARGET.
10798 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10799 GIMPLE_OMP_TARGET.
10800
10801 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10802
10803 PR tree-optimization/61554
10804 * tree-ssa-propagate.c: Include "bitmap.h".
10805 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10806 properly update constructor/destructor.
10807 (substitute_and_fold_dom_walker::before_dom_children):
10808 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10809 need_eh_cleaup instead.
10810 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10811 need_eh_cleanup.
10812
10813 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10814
10815 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10816 * tree-pass.h (make_pass_ipa_single_use): New pass.
10817 * cgraph.h (used_by_single_function): New flag.
10818 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10819 Stream it.
10820 * passes.def (pass_ipa_single_use): Scedule.
10821 * ipa.c (BOTTOM): New macro.
10822 (meet): New function
10823 (propagate_single_user): New function.
10824 (ipa_single_use): New function.
10825 (pass_data_ipa_single_use): New pass.
10826 (pass_ipa_single_use): New pass.
10827 (pass_ipa_single_use::gate): New gate.
10828 (make_pass_ipa_single_use): New function.
10829
10830 2014-06-23 Kai Tietz <ktietz@redhat.com>
10831
10832 PR target/39284
10833 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10834 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10835
10836 2014-06-23 Richard Biener <rguenther@suse.de>
10837
10838 * tree-ssa-loop.c (gate_loop): New function.
10839 (pass_tree_loop::gate): Call it.
10840 (pass_data_tree_no_loop, pass_tree_no_loop,
10841 make_pass_tree_no_loop): New.
10842 * tree-vectorizer.c: Include tree-scalar-evolution.c
10843 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10844 required.
10845 (pass_slp_vectorize::clone): New method.
10846 * timevar.def (TV_TREE_NOLOOP): New.
10847 * tree-pass.h (make_pass_tree_no_loop): Declare.
10848 * passes.def (pass_tree_no_loop): New pass group with
10849 SLP vectorizer.
10850
10851 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10852
10853 PR target/61570
10854 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10855 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10856
10857 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10858
10859 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10860 "yes" where needed.
10861
10862 2014-06-23 Alan Modra <amodra@gmail.com>
10863
10864 PR bootstrap/61583
10865 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10866 to zero on debug statements.
10867
10868 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10869
10870 PR target/60825
10871 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10872 Ignore third operand if present by marking qualifier_internal.
10873
10874 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10875
10876 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10877 vector extension.
10878 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10879 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10880 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10881 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10882 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10883 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10884 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10885 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10886 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10887 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10888 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10889 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10890 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10891 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10892 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10893 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10894 logic in GCC vector extensions
10895
10896 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10897 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10898 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10899 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10900 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10901 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10902 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10903 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10904 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10905 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10906
10907 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10908
10909 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10910 extensions.
10911
10912 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10913 (vget_low_s64): Use __GET_LOW macro.
10914 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10915 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10916 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10917 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10918 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10919
10920 (vcombine_s64): Use GCC vector extensions; remove cast.
10921 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10922 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10923 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10924 Fix type signature; remove cast.
10925
10926 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10927
10928 PR target/60825
10929 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10930 V1DFmode.
10931 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10932 add V1DFmode
10933 (BUILTIN_VD1): New.
10934 (BUILTIN_VD_RE): Remove.
10935 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10936 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10937 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10938 variant but not df.
10939 (vreinterpretv1df*, vreinterpret*v1df): New.
10940 (vreinterpretdf*, vreinterpret*df): Remove.
10941 * config/aarch64/aarch64-simd.md (aarch64_create,
10942 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10943 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10944 (VD1): New.
10945 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10946 (vcreate_f64): Remove cast, use v1df builtin.
10947 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10948 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10949 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10950 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10951 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10952 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10953 add range check using __builtin_aarch64_im_lane_boundsi.
10954 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10955 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10956 type signature, use gcc vector extensions.
10957 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10958 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10959 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10960 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10961 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10962 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10963 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10964 vreinterpret_u64_f64): Use v1df builtin not df.
10965
10966 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10967
10968 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10969 vector registers.
10970
10971 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10972
10973 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10974 priority directly.
10975
10976 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10977
10978 * loop-invariant.c (pre_check_invariant_p): New function.
10979 (find_invariant_insn): Call pre_check_invariant_p.
10980
10981 2014-06-22 Richard Henderson <rth@redhat.com>
10982
10983 PR target/61565
10984 * compare-elim.c (struct comparison): Add eh_note.
10985 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10986 a redundant comparison in a different EH region. Purge EH edges if
10987 necessary.
10988
10989 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10990
10991 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10992 (var_shift): Use it.
10993 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10994 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10995 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10996 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10997 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10998 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10999 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11000 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11001 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11002 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11003 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11004 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11005 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11006 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11007 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11008 *rotldi3_internal15be): Use the new attribute. Merge register and
11009 integer alternatives.
11010
11011 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11012
11013 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11014 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11015 split, *ashrdi3_internal3 and split): Delete, merge into...
11016 (ashr<mode>3): New expander.
11017 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11018 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11019
11020 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11021
11022 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11023 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11024 *rotldi3_internal3 and split): Delete, merge into...
11025 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11026 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11027 Use "rotlw" extended mnemonic.
11028
11029 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11030
11031 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11032 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11033 and split, *ashldi3_internal3 and split): Delete, merge into...
11034 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11035 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11036
11037 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11038
11039 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11040 (lshrsi3, two anonymous define_insns and define_splits,
11041 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11042 *lshrdi3_internal3 and split): Delete, merge into...
11043 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11044 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11045
11046 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11047
11048 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11049 Remove "O" alternative.
11050
11051 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11052
11053 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11054 (mips_move_from_gpr_cost): Likewise.
11055 (mips_register_move_cost): Update accordingly.
11056 (mips_secondary_reload_class): Remove name of in_p.
11057
11058 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11059
11060 PR target/61503
11061 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11062 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11063
11064 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11065
11066 * config/nios2/nios2.c: Include "builtins.h".
11067
11068 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11069
11070 * cgraph.h (tls_model_names): New variable.
11071 * print-tree.c (print_node): Simplify.
11072 * varpool.c (tls_model_names): New variable.
11073 (dump_varpool_node): Output tls model.
11074
11075 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11076
11077 * ipa-visibility.c (function_and_variable_visibility): Disable
11078 temporarily local aliases for some targets.
11079
11080 2014-06-20 Marek Polacek <polacek@redhat.com>
11081
11082 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11083 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11084 into SANITIZE_UNDEFINED.
11085 * doc/invoke.texi: Describe -fsanitize=bounds.
11086 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11087 functions created in the FEs.
11088 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11089 (expand_UBSAN_BOUNDS): New function.
11090 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11091 * internal-fn.h: Don't define internal functions here.
11092 * opts.c (common_handle_option): Add -fsanitize=bounds.
11093 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11094 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11095 * tree-core.h: Define internal functions here.
11096 (struct tree_base): Add ifn field.
11097 * tree-pretty-print.c: Include "internal-fn.h".
11098 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11099 * tree.c (get_callee_fndecl): Likewise.
11100 (build_call_expr_internal_loc): New function.
11101 * tree.def (CALL_EXPR): Update description.
11102 * tree.h (CALL_EXPR_IFN): Define.
11103 (build_call_expr_internal_loc): Declare.
11104 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11105 types.
11106 (ubsan_type_descriptor): Change bool parameter to enum
11107 ubsan_print_style. Adjust the code. Add handling of
11108 UBSAN_PRINT_ARRAY.
11109 (ubsan_expand_bounds_ifn): New function.
11110 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11111 (ubsan_build_overflow_builtin): Likewise.
11112 (instrument_bool_enum_load): Likewise.
11113 (ubsan_instrument_float_cast): Likewise.
11114 * ubsan.h (enum ubsan_print_style): New enum.
11115 (ubsan_expand_bounds_ifn): Declare.
11116 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11117
11118 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11119
11120 * config/rs6000/rs6000.md: Append `DONE' to preparation
11121 statements of `bswap' pattern splitters.
11122
11123 2014-06-20 Tom de Vries <tom@codesourcery.com>
11124
11125 * target.def (call_fusage_contains_non_callee_clobbers): Update
11126 definition.
11127 * doc/tm.texi: Regenerate.
11128
11129 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11130 Max Ostapenko <m.ostapenko@partner.samsung.com>
11131
11132 PR sanitizer/61547
11133 * asan.c (instrument_strlen_call): Fixed instrumentation of
11134 trailing byte.
11135
11136 2014-06-20 Martin Jambor <mjambor@suse.cz>
11137
11138 PR ipa/61540
11139 * ipa-prop.c (impossible_devirt_target): New function.
11140 (try_make_edge_direct_virtual_call): Use it, also instead of
11141 asserting.
11142
11143 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11144 Max Ostapenko <m.ostapenko@partner.samsung.com>
11145
11146 PR sanitizer/61530
11147 * asan.c (build_check_stmt): Add condition.
11148
11149 2014-06-20 Martin Jambor <mjambor@suse.cz>
11150
11151 PR ipa/61211
11152 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11153 expanded clones.
11154
11155 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11156
11157 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11158 Update comments.
11159 (VCONQ): Make comment more helpful.
11160 (VCON): Delete.
11161 * config/aarch64/aarch64-simd.md
11162 (aarch64_sqdmulh_lane<mode>):
11163 Use VCOND for operands 2. Update lane checking and flipping logic.
11164 (aarch64_sqrdmulh_lane<mode>): Likewise.
11165 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11166 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11167 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11168 attribute of operand 3 to VCOND.
11169 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11170 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11171 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11172 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11173 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11174 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11175 define_insn.
11176 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11177 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11178 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11179 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11180 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11181 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11182 operand to VCOND. Update lane flipping and bounds checking logic.
11183 (aarch64_sqdmlal2_lane<mode>): Likewise.
11184 (aarch64_sqdmlsl_lane<mode>): Likewise.
11185 (aarch64_sqdmull_lane<mode>): Likewise.
11186 (aarch64_sqdmull2_lane<mode>): Likewise.
11187 (aarch64_sqdmlal_laneq<mode>):
11188 Replace VCON usage with VCONQ.
11189 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11190 (aarch64_sqdmlal2_laneq<mode>): Emit
11191 aarch64_sqdmlal2_laneq<mode>_internal insn.
11192 Replace VCON with VCONQ.
11193 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11194 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11195 (aarch64_sqdmull_laneq<mode>): Emit
11196 aarch64_sqdmull_laneq<mode>_internal insn.
11197 Replace VCON with VCONQ.
11198 (aarch64_sqdmull2_laneq<mode>): Emit
11199 aarch64_sqdmull2_laneq<mode>_internal insn.
11200 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11201 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11202 of 3rd argument to int16x4_t.
11203 (vqdmlalh_lane_s16): Likewise.
11204 (vqdmlslh_lane_s16): Likewise.
11205 (vqdmull_high_lane_s16): Likewise.
11206 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11207 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11208 (vqdmlsl_lane_s16): Likewise.
11209 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11210 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11211 (vqdmlals_lane_s32): Likewise.
11212 (vqdmlsls_lane_s32): Likewise.
11213 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11214 (vqdmulls_lane_s32): Likewise.
11215 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11216 (vqdmlsl_lane_s32): Likewise.
11217 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11218 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11219 (vqrdmulhh_lane_s16): Likewise.
11220 (vqdmlsl_high_lane_s16): Likewise.
11221 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11222 (vqdmlsl_high_lane_s32): Likewise.
11223 (vqrdmulhs_lane_s32): Likewise.
11224
11225 2014-06-20 Tom de Vries <tom@codesourcery.com>
11226
11227 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11228 get_call_reg_set_usage.
11229
11230 2014-06-20 Tom de Vries <tom@codesourcery.com>
11231
11232 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11233 it contains all call_used_regs.
11234
11235 2014-06-20 Tom de Vries <tom@codesourcery.com>
11236
11237 * final.c (collect_fn_hard_reg_usage): Add and use variable
11238 function_used_regs.
11239
11240 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11241
11242 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11243 (set_init_priority, get_init_priority, set_fini_priority,
11244 get_fini_priority): New methods.
11245 * tree.c (init_priority_for_decl): Remove.
11246 (init_ttree): Do not initialize init priority.
11247 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11248 (decl_priority_info): Remove.
11249 (decl_init_priority_insert): Rewrite.
11250 (decl_fini_priority_insert): Rewrite.
11251 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11252 tree_priority_map_marked_p): Remove.
11253 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11254 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11255 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11256 not output priorities.
11257 (pack_ts_function_decl_value_fields): Likewise.
11258 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11259 not input priorities.
11260 (unpack_ts_function_decl_value_fields): Likewise.
11261 * symtab.c (symbol_priority_map): Declare.
11262 (init_priority_hash): Declare.
11263 (symtab_unregister_node): Unregister from priority hash, too.
11264 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11265 New methods.
11266 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11267 (symbol_priority_info): New function.
11268 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11269 New methods.
11270 * tree-core.h (tree_priority_map): Remove.
11271
11272 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11273
11274 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11275 0xff to uint64_t before shifting it up.
11276
11277 2014-06-20 Julian Brown <julian@codesourcery.com>
11278 Chung-Lin Tang <cltang@codesourcery.com>
11279
11280 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11281 TARGET_THUMB1_ONLY. Add comments.
11282
11283 2014-06-19 Tom de Vries <tom@codesourcery.com>
11284
11285 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11286 return type to void.
11287 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11288
11289 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11290
11291 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11292 as "move", from depends_on.
11293
11294 2014-06-19 Terry Guo <terry.guo@arm.com>
11295
11296 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11297 stage.
11298
11299 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11300
11301 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11302 Remove cr5.
11303 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11304
11305 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11306
11307 PR target/61550
11308 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11309 addresses here if reload in progress or completed.
11310
11311 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11312
11313 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11314 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11315 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11316 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11317 (mips_register_priority): New function that implements the target
11318 hook TARGET_REGISTER_PRIORITY.
11319 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11320 (mips_lra_p): Likewise for TARGET_LRA_P.
11321 (TARGET_REGISTER_PRIORITY): Define macro.
11322 (TARGET_SPILL_CLASS): Likewise.
11323 (TARGET_LRA_P): Likewise.
11324 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11325 classes.
11326 (REG_CLASS_NAMES): Likewise.
11327 (REG_CLASS_CONTENTS): Likewise.
11328 (BASE_REG_CLASS): Use M16_SP_REGS.
11329 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11330 New set attribute to enable alternatives depending on the register
11331 allocator used.
11332 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11333 (*lea64): Disable pattern for MIPS16.
11334 * config/mips/mips.opt (mlra): New option.
11335
11336 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11337
11338 * lra-constraints.c (base_to_reg): New function.
11339 (process_address): Use new function.
11340
11341 2014-06-18 Tom de Vries <tom@codesourcery.com>
11342
11343 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11344 * config/aarch64/aarch64.c
11345 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11346 (aarch64_emit_call_insn): New function.
11347 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11348 of emit_call_insn.
11349 * config/aarch64/aarch64.md (define_expand "call_internal")
11350 (define_expand "call_value_internal", define_expand "sibcall_internal")
11351 (define_expand "sibcall_value_internal"): New.
11352 (define_expand "call", define_expand "call_value")
11353 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11354 expand variant and aarch64_emit_call_insn.
11355
11356 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11357 Tom de Vries <tom@codesourcery.com>
11358
11359 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11360 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11361 Redefine to true.
11362 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11363 clobbers to CALL_INSN_FUNCTION_USAGE.
11364 (define_expand "sibcall_internal")
11365 (define_expand "sibcall_value_internal"): New.
11366 (define_expand "call", define_expand "call_value"): Add argument to
11367 arm_emit_call_insn.
11368 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11369 (define_expand "sibcall_value"): Use sibcall_value_internal and
11370 arm_emit_call_insn.
11371
11372 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11373
11374 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11375
11376 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11377
11378 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11379 __udivmoddi4.
11380
11381 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11382
11383 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11384 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11385 annotations. Fix DWARF information.
11386
11387 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11388
11389 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11390 __udivmoddi4, and fixups for negative operands.
11391
11392 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11393
11394 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11395
11396 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11397
11398 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11399 to __udivmoddi4.
11400
11401 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11402
11403 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11404 manipulation.
11405
11406 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11407
11408 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11409 describing register usage on function entry and exit.
11410
11411 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11412
11413 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11414 (__aeabi_ldivmod): Fix whitespace.
11415
11416 2014-06-18 Andreas Schwab <schwab@suse.de>
11417
11418 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11419 Remove blank line after @item.
11420
11421 2014-06-18 Richard Henderson <rth@redhat.com>
11422
11423 PR target/61545
11424 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11425
11426 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11427
11428 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11429 POST_MODIFY for neon loads and stores.
11430 (arm_print_operand): Output post-index register for neon loads and
11431 stores.
11432
11433 2014-06-18 Richard Biener <rguenther@suse.de>
11434
11435 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11436
11437 2014-06-18 Richard Biener <rguenther@suse.de>
11438
11439 * tree-pass.h (make_pass_dce_loop): Remove.
11440 * passes.def: Replace pass_dce_loop with pass_dce.
11441 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11442 changed free niter estimates and reset the scev cache.
11443 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11444 make_pass_dce_loop): Remove.
11445 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11446 (fini_copy_prop): Return whether something changed. Always
11447 let substitute_and_fold perform DCE and free niter estimates
11448 and reset the scev cache if so.
11449 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11450 (pass_data_copy_prop): Do not unconditionally schedule
11451 cleanup-cfg or update-ssa.
11452
11453 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11454
11455 PR tree-optimization/61518
11456 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11457 reduction var is used in reduction stmt or phi-function only.
11458
11459 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11460
11461 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11462
11463 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11464
11465 PR tree-optimization/61517
11466 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11467 whose rhs's first tree is the source expression instead of the
11468 expression itself.
11469 (find_bswap_or_nop): Likewise.
11470 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11471 gimple stmt whose rhs's first tree is the source. In the memory source
11472 case, move the stmt to be replaced close to one of the original load to
11473 avoid the problem of a store between the load and the stmt's original
11474 location.
11475 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11476 signature.
11477
11478 2014-06-18 Andreas Schwab <schwab@suse.de>
11479
11480 PR rtl-optimization/54555
11481 * postreload.c (move2add_use_add2_insn): Substitute
11482 STRICT_LOW_PART only if it is cheaper.
11483
11484 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11485
11486 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11487 Do not use unspec as call operand. Use memory_operand instead of
11488 memory_nox32_operand and add "m" operand constraint. Disable
11489 pattern for TARGET_X32.
11490 (*sibcall_pop_memory): Ditto.
11491 (*sibcall_value_memory): Ditto.
11492 (*sibcall_value_pop_memory): Ditto.
11493 (sibcall peepholes): Merge SImode and DImode patterns using
11494 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11495 Disable pattern for TARGET_X32. Check if eliminated register is
11496 really dead after call insn. Generate call RTX without unspec operand.
11497 (sibcall_value peepholes): Ditto.
11498 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11499 instead of memory_nox32_operand. Check if eliminated register is
11500 really dead after call insn. Generate call RTX without unspec operand.
11501 (sibcall_value_pop peepholes): Ditto.
11502 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11503
11504 2014-06-18 Terry Guo <terry.guo@arm.com>
11505
11506 PR target/61544
11507 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11508 reach the head.
11509
11510 2014-06-18 Olivier Hainque <hainque@adacore.com>
11511
11512 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11513 memorization of the end of block source location.
11514 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11515 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11516 end source location info we have on the block entry/exit code we
11517 generate.
11518
11519 2014-06-18 Richard Biener <rguenther@suse.de>
11520
11521 * common.opt (fssa-phiopt): New option.
11522 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11523 but not with -Og.
11524 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11525 * doc/invoke.texi (-fssa-phiopt): Document.
11526
11527 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11528
11529 * genattrtab.c (n_bypassed): New variable.
11530 (process_bypasses): Initialise n_bypassed.
11531 Count number of bypassed reservations.
11532 (make_automaton_attrs): Allocate space for bypassed reservations
11533 rather than number of bypasses.
11534
11535 2014-06-18 Richard Biener <rguenther@suse.de>
11536
11537 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11538 we propagated anything.
11539 (substitute_and_fold_dom_walker::before_dom_children): Something
11540 changed if we propagated into PHI arguments.
11541 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11542 we removed a stmt.
11543
11544 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11545
11546 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11547 vector case.
11548 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11549 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11550 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11551 Introduces alternative way of loads group permutaions.
11552 (vect_transform_grouped_load): Try alternative way of permutations.
11553
11554 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11555
11556 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11557 changed in ORT_TARGET region, don't jump to do_outer.
11558 (struct gimplify_adjust_omp_clauses_data): New type.
11559 (gimplify_adjust_omp_clauses_1): Adjust for data being
11560 a struct gimplify_adjust_omp_clauses_data pointer instead
11561 of tree *. Pass pre_p as a new argument to
11562 lang_hooks.decls.omp_finish_clause hook.
11563 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11564 splay_tree_foreach to pass both list_p and pre_p.
11565 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11566 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11567 gimplify_adjust_omp_clauses callers.
11568 * langhooks.c (lhd_omp_finish_clause): New function.
11569 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11570 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11571 * langhooks.h (struct lang_hooks_for_decls): Add a new
11572 gimple_seq * argument to omp_finish_clause hook.
11573 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11574 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11575 (scan_omp_parallel, lower_omp_for): When adding
11576 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11577 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11578 * tree-nested.c (convert_nonlocal_omp_clauses,
11579 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11580 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11581
11582 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11583
11584 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11585 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11586
11587 2014-06-17 Xinliang David Li <davidxl@google.com>
11588
11589 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11590 * passes.c (pass_init_dump_file): Do not set initialize
11591 flag to false unconditionally.
11592
11593 2014-06-17 Richard Biener <rguenther@suse.de>
11594
11595 * genopinit.c (main): Use vec<>::qsort method.
11596 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11597 Likewise.
11598 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11599
11600 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11601
11602 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11603 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11604 (mips_move_to_gpr_cost): Remove ST_REGS case.
11605 (mips_move_from_gpr_cost): Likewise.
11606 (mips_register_move_cost): Likewise.
11607 (mips_secondary_reload_class): Likewise.
11608
11609 2014-06-17 Richard Biener <rguenther@suse.de>
11610
11611 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11612 (pass_all_optimizations): Move 3rd copy-prop pass from after
11613 fre to before ifcombine/phiopt.
11614
11615 2014-06-17 Richard Biener <rguenther@suse.de>
11616
11617 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11618 and allow all blocks to be forwarders.
11619
11620 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11621
11622 PR target/61483
11623 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11624 variable 'size'; calculate 'size' right in the front; use
11625 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11626 pcum->aapcs_stack_words.
11627
11628 2014-06-17 Nick Clifton <nickc@redhat.com>
11629
11630 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11631 (umulhi3, mulsidi3, umulsidi3): Likewise.
11632
11633 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11634
11635 PR middle-end/61508
11636 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11637 check for section name.
11638
11639 2014-06-17 Richard Biener <rguenther@suse.de>
11640
11641 * tree-ssa-propagate.c: Include domwalk.h.
11642 (substitute_and_fold): Outline main worker into a domwalker ...
11643 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11644 Schedule stmts we can fully propagate for removal. Remove
11645 poor-mans DCE.
11646 (substitute_and_fold): Apply a dominator walk to perform
11647 substitution. Process stmts scheduled for removal here.
11648
11649 2014-06-17 Richard Biener <rguenther@suse.de>
11650
11651 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11652 of PHI node moving.
11653
11654 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11655
11656 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11657 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11658 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11659 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11660 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11661 TARGET_HARD_FLOAT.
11662 (get_fpscr) : Likewise.
11663
11664 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11665
11666 PR rtl-optimization/61325
11667 * lra-constraints.c (valid_address_p): Add forward declaration.
11668 (simplify_operand_subreg): Check address validity before and after
11669 alter_reg of memory subreg.
11670
11671 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11672
11673 * config/i386/i386.c (decide_alg): Correctly handle
11674 maximum size of stringop algorithm.
11675
11676 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11677
11678 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11679
11680 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11681
11682 PR rtl-optimization/61522
11683 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11684
11685 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11686
11687 Revert:
11688 * symtab.c (symtab_node::reset_section): New method.
11689 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11690 for localization.
11691 * cgraph.h (reset_section): Declare.
11692 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11693 do not consider comdat locals.
11694 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11695 for new symbol.
11696 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11697 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11698 reset sections of symbols dragged out of the comdats.
11699 (function_and_variable_visibility): Reset sections of
11700 localized symbols.
11701
11702 2014-06-16 Richard Biener <rguenther@suse.de>
11703
11704 PR tree-optimization/61482
11705 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11706 [-INF(OVF), +INF(OVF)] range.
11707
11708 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11709
11710 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11711 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11712 handling 32-bit multiplication.
11713
11714 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11715
11716 PR middle-end/61430
11717 * lra-lives.c (process_bb_lives): Skip creating copy during
11718 insn scan when src/dest has constrained to same regno.
11719
11720 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11721
11722 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11723 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11724
11725 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11726
11727 * asan.c (check_func): New function.
11728 (maybe_create_ssa_name): Likewise.
11729 (build_check_stmt_with_calls): Likewise.
11730 (use_calls_p): Likewise.
11731 (report_error_func): Change interface.
11732 (build_check_stmt): Allow non-integer lengths; add support
11733 for new parameter.
11734 (asan_instrument): Likewise.
11735 (instrument_mem_region_access): Moved code to build_check_stmt.
11736 (instrument_derefs): Likewise.
11737 (instrument_strlen_call): Likewise.
11738 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11739 * doc/invoke.texi: Describe new parameter.
11740 * params.def: Define new parameter.
11741 * params.h: Likewise.
11742 * sanitizer.def: Describe new builtins.
11743
11744 2014-06-16 Richard Biener <rguenther@suse.de>
11745
11746 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11747 Make all defs available at the end.
11748 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11749
11750 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11751
11752 PR plugins/45078
11753 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11754
11755 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11756
11757 PR bootstrap/61516
11758 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11759 initialization. Replace remaining use of uid.
11760
11761 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11762
11763 * c-family/c-common.c (handle_tls_model_attribute): Use
11764 set_decl_tls_model.
11765 * c-family/c-common.c (handle_tls_model_attribute): Use
11766 set_decl_tls_model.
11767 * cgraph.h (struct varpool_node): Add tls_model.
11768 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11769 * tree.h (DECL_TLS_MODEL): Update.
11770 (DECL_THREAD_LOCAL_P): Check that variable is static.
11771 (decl_tls_model): Declare.
11772 (set_decl_tls_model): Declare.
11773 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11774 set symbol prorperties.
11775 (get_emutls_init_templ_addr): Cleanup.
11776 (new_emutls_decl): Update.
11777 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11778 (lto_input_varpool_node): Likewise.
11779 * lto-streamer-out.c (hash_tree): Likewise.
11780 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11781 not stream DECL_TLS_MODEL.
11782 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11783 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11784
11785 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11786
11787 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11788
11789 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11790
11791 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11792 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11793 lists.
11794 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11795 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11796 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11797 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11798 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11799 (df_get_artificial_defs, df_get_artificial_uses)
11800 (df_single_def, df_single_use): Update accordingly.
11801 (df_refs_chain_dump): Take the first element in a linked list as
11802 parameter, rather than a pointer to an array of pointers.
11803 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11804 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11805 (df_chain_create_bb_process_use): Likewise.
11806 (df_md_bb_local_compute_process_def): Likewise.
11807 * fwprop.c (process_defs, process_uses): Likewise.
11808 (register_active_defs, update_uses): Likewise.
11809 (forward_propagate_asm): Update for new df_ref linking.
11810 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11811 (df_null_ref_rec, df_null_mw_rec): Likewise.
11812 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11813 explicitly.
11814 (df_scan_free_bb_info): Remove check for null artificial_defs.
11815 (df_install_ref_incremental): Adjust for new df_ref linking.
11816 Use a single-element insertion rather than a full sort.
11817 (df_ref_chain_delete_du_chain): Take the first element
11818 in a linked list as parameter, rather than a pointer to an array of
11819 pointers.
11820 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11821 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11822 (df_insn_info_delete): Remove check for null defs and call to
11823 df_scan_free_mws_vec.
11824 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11825 null rather than df_null_*_rec.
11826 (df_insn_rescan_debug_internal): Likewise, and update null
11827 checks in the same way. Remove check for null defs.
11828 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11829 Move a single element rather doing a full sort.
11830 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11831 linking.
11832 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11833 Initialize df_ref and df_mw_hardreg lists to null rather than
11834 df_null_*_rec.
11835 (df_ref_compare): Take df_refs as parameter, transferring the
11836 old interface to...
11837 (df_ref_ptr_compare): ...this new function.
11838 (df_sort_and_compress_refs): Update accordingly.
11839 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11840 old interface to...
11841 (df_mw_ptr_compare): ...this new function.
11842 (df_sort_and_compress_mws): Update accordingly.
11843 (df_install_refs, df_install_mws): Return a linked list rather than
11844 an array of pointers.
11845 (df_refs_add_to_chains): Assert that old lists are empty rather
11846 than freeing them.
11847 (df_insn_refs_verify): Don't handle null defs speciailly.
11848 * web.c (union_match_dups): Update for new df_ref linking.
11849
11850 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11851
11852 * df.h (df_ref_create, df_ref_remove): Delete.
11853 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11854 (df_ref_remove): Likewise.
11855
11856 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11857
11858 * df.h (df_single_def, df_single_use): New functions.
11859 * ira.c (find_moveable_pseudos): Use them.
11860
11861 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11862
11863 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11864 * df-problems.c (df_note_bb_compute): Use it.
11865 * regstat.c (regstat_bb_compute_ri): Likewise.
11866
11867 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11868
11869 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11870 * cse.c (cse_extended_basic_block): Use them.
11871 * dce.c (mark_artificial_use): Likewise.
11872 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11873 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11874 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11875 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11876 (df_simulate_initialize_backwards): Likewise.
11877 (df_simulate_finalize_backwards): Likewise.
11878 (df_simulate_initialize_forwards): Likewise.
11879 (df_md_simulate_artificial_defs_at_top): Likewise.
11880 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11881 * regrename.c (init_rename_info): Likewise.
11882 * regstat.c (regstat_bb_compute_ri): Likewise.
11883 (regstat_bb_compute_calls_crossed): Likewise.
11884
11885 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11886
11887 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11888 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11889 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11890 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11891 * combine.c (create_log_links): Likewise.
11892 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11893 (try_eliminate_compare): Likewise.
11894 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11895 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11896 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11897 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11898 (word_dce_process_block, dce_process_block): Likewise.
11899 * ddg.c (def_has_ccmode_p): Likewise.
11900 * df-core.c (df_bb_regno_first_def_find): Likewise.
11901 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11902 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11903 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11904 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11905 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11906 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11907 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11908 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11909 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11910 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11911 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11912 * fwprop.c (local_ref_killed_between_p): Likewise.
11913 (all_uses_available_at, free_load_extend): Likewise.
11914 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11915 * hw-doloop.c (scan_loop): Likewise.
11916 * ifcvt.c (dead_or_predicable): Likewise.
11917 * init-regs.c (initialize_uninitialized_regs): Likewise.
11918 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11919 (process_bb_node_lives): Likewise.
11920 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11921 (find_moveable_pseudos): Likewise.
11922 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11923 * recog.c (peep2_find_free_register): Likewise.
11924 * ree.c (get_defs): Likewise.
11925 * regstat.c (regstat_bb_compute_ri): Likewise.
11926 (regstat_bb_compute_calls_crossed): Likewise.
11927 * sched-deps.c (find_inc, find_mem): Likewise.
11928 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11929 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11930 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11931 (prepare_shrink_wrap): Likewise.
11932 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11933 * web.c (union_defs, pass_web::execute): Likewise.
11934 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11935 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11936
11937 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11938
11939 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11940 to inheritance pseudos.
11941 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11942
11943 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11944
11945 PR target/61415
11946 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11947 (BU_MISC_2): Rename to ...
11948 (BU_LDBL128_2): ... this.
11949 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11950 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11951 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11952 RS6000_BTM_LDBL128.
11953 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11954 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11955 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11956 (unpacktf_1): Likewise.
11957 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11958 (__builtin_longdouble_dw1): Likewise.
11959 * doc/sourcebuild.texi (longdouble128): Document.
11960
11961 2014-06-13 Jeff Law <law@redhat.com>
11962
11963 PR rtl-optimization/61094
11964 PR rtl-optimization/61446
11965 * ree.c (combine_reaching_defs): Get the mode for the copy from
11966 the extension insn rather than the defining insn.
11967
11968 2014-06-13 Dehao Chen <dehao@google.com>
11969
11970 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11971
11972 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11973
11974 * doc/install.texi (--enable-linker-plugin-configure-flags)
11975 (--enable-linker-plugin-flags): Document new flags.
11976
11977 2014-06-13 Martin Jambor <mjambor@suse.cz>
11978
11979 PR ipa/61186
11980 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11981 cache_token if returning early.
11982
11983 2014-06-13 Nick Clifton <nickc@redhat.com>
11984
11985 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11986 requested alignment is active.
11987 (LABEL_ALIGN): Likewise.
11988 (LOOP_ALIGN): Likewise.
11989
11990 2014-06-13 Richard Biener <rguenther@suse.de>
11991
11992 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11993 Rewrite to propagate the VN result into all uses where
11994 possible and to remove stmts becoming dead because of that.
11995 (eliminate): Generalize stmt removal handling, remove in
11996 reverse dominator order to support proper debug stmt
11997 generation. Update stmts before removing stmts.
11998 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11999
12000 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12001
12002 PR tree-optimization/61375
12003 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12004 symbolic number cannot be represented in an uint64_t.
12005 (find_bswap_or_nop_1): Likewise.
12006
12007 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12008
12009 * symtab.c (symtab_node::reset_section): New method.
12010 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12011 for localization.
12012 * cgraph.h (reset_section): Declare.
12013 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12014 do not consider comdat locals.
12015 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12016 for new symbol.
12017 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12018 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12019 reset sections of symbols dragged out of the comdats.
12020 (function_and_variable_visibility): Reset sections of
12021 localized symbols.
12022
12023 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12024
12025 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12026 to use symtab and decl_binds_to_current_def_p
12027 * tree-vectorizer.c (increase_alignment): Increase alignment
12028 of alias target, too.
12029
12030 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12031
12032 PR middle-end/61486
12033 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12034 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12035 if outer combined construct is distribute.
12036 (gimplify_omp_for): For OMP_DISTRIBUTE set
12037 gimplify_omp_ctxp->distribute.
12038 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12039 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12040 mapping into decl map.
12041
12042 2014-06-12 Jason Merrill <jason@redhat.com>
12043
12044 * common.opt (fabi-version): Change default to 0.
12045
12046 2014-06-12 Jason Merrill <jason@redhat.com>
12047
12048 * toplev.c (process_options): Reject -fabi-version=1.
12049
12050 2014-06-12 Jeff Law <law@redhat.com>
12051
12052 PR tree-optimization/61009
12053 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12054 value when we stop processing a block due to problematic PHIs.
12055
12056 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12057
12058 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12059 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12060 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12061 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12062 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12063 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12064 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12065 are not in the spec.
12066
12067 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12068
12069 PR target/59843
12070 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12071 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12072 Support V1DFmode.
12073
12074 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12075
12076 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12077
12078 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12079
12080 PR target/61443
12081 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12082 loading from address spaces.
12083
12084 2014-06-12 Martin Liska <mliska@suse.cz>
12085
12086 PR ipa/61462
12087 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12088 statement is reachable.
12089
12090 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12091
12092 * symtab.c (section_hash): New hash.
12093 (symtab_unregister_node): Clear section before freeing.
12094 (hash_section_hash_entry): New haser.
12095 (eq_sections): New function.
12096 (symtab_node::set_section_for_node): New method.
12097 (set_section_1): Update.
12098 (symtab_node::set_section): Take string instead of tree as parameter.
12099 (symtab_resolve_alias): Update.
12100 * cgraph.h (section_hash_entry_d): New structure.
12101 (section_hash_entry): New typedef.
12102 (cgraph_node): Change comdat_group_ to x_comdat_group,
12103 change section_ to x_section and turn into section_hash_entry;
12104 update accestors; put set_section_for_node offline.
12105 * tree.c (decl_section_name): Turn into string.
12106 (set_decl_section_name): Change parameter to be string.
12107 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12108 * sdbout.c (sdbout_one_type): Update.
12109 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12110 * varasm.c (IN_NAMED_SECTION, get_named_section,
12111 resolve_unique_section, hot_function_section, get_named_text_section,
12112 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12113 make_decl_rtl, default_unique_section): Update.
12114 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12115 (c6x_elf_unique_section): Update.
12116 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12117 * config/pa/pa.c (pa_function_section): Update.
12118 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12119 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12120 * config/arc/arc.c (arc_in_small_data_p): Update.
12121 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12122 * config/mcore/mcore.c (mcore_unique_section): Update.
12123 * config/mips/mips.c (mips16_build_function_stub): Update.
12124 (mips16_build_call_stub): Update.
12125 (mips_function_rodata_section): Update.
12126 (mips_in_small_data_p): Update.
12127 * config/score/score.c (score_in_small_data_p): Update.
12128 * config/rx/rx.c (rx_in_small_data): Update.
12129 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12130 (rs6000_xcoff_asm_named_section): Update.
12131 (rs6000_xcoff_unique_section): Update.
12132 * config/frv/frv.c (frv_string_begins_with): Update.
12133 (frv_in_small_data_p): Update.
12134 * config/v850/v850.c (v850_encode_data_area): Update.
12135 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12136 (bfin_handle_l1_data_attribute): Update.
12137 (bfin_handle_l2_attribute): Update.
12138 * config/mep/mep.c (mep_unique_section): Update.
12139 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12140 Update.
12141 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12142 (h8300_handle_tiny_data_attribute): Update.
12143 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12144 (m32r_in_small_data_p): Update.
12145 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12146 * config/i386/i386.c (ix86_in_large_data_p): Update.
12147 * config/i386/winnt.c (i386_pe_unique_section): Update.
12148 * config/darwin.c (darwin_function_section): Update.
12149 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12150 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12151 (new_emutls_decl): Update.
12152 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12153 input_varpool_node): Update.
12154 (ead_string_cst): Turn to ...
12155 (read_string): ... this one.
12156 * dwarf2out.c (secname_for_decl): Update.
12157 * asan.c (asan_protect_global): Update.
12158
12159 2014-06-11 DJ Delorie <dj@redhat.com>
12160
12161 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12162 cache lines.
12163 * config/rx/rx.c (rx_option_override): Likewise.
12164 (rx_align_for_label): Likewise.
12165
12166 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12167
12168 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12169
12170 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12171 prototype.
12172
12173 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12174
12175 * common.md: New file.
12176 * doc/md.texi: Update description of generic, machine-independent
12177 constraints.
12178 * config/s390/constraints.md (e): Delete.
12179 * Makefile.in (md_file): Include common.md.
12180 * config/m32c/t-m32c (md_file): Likewise.
12181 * genpreds.c (general_mem): New array.
12182 (generic_constraint_letters): Remove constraints now defined by
12183 common.md.
12184 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12185 Allow the first character to be '<' or '>' as well.
12186 * genoutput.c (general_mem): New array.
12187 (indep_constraints): Remove constraints now defined by common.md.
12188 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12189 Remove special handling of 'm'.
12190 * ira-costs.c (record_reg_classes): Remove special handling of
12191 constraints now defined by common.md.
12192 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12193 * ira-lives.c (single_reg_class): Likewise.
12194 (ira_implicitly_set_insn_hard_regs): Likewise.
12195 * lra-constraints.c (reg_class_from_constraints): Likewise.
12196 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12197 * postreload.c (reload_cse_simplify_operands): Likewise.
12198 * reload.c (push_secondary_reload, scratch_reload_class)
12199 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12200 * reload1.c (maybe_fix_stack_asms): Likewise.
12201 * targhooks.c (default_secondary_reload): Likewise.
12202 * stmt.c (parse_output_constraint): Likewise.
12203 * recog.c (preprocess_constraints): Likewise.
12204 (constrain_operands, peep2_find_free_register): Likewise.
12205 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12206 must be handled specially.
12207
12208 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12209
12210 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12211 * genpreds.c (have_const_dbl_constraints): Delete.
12212 (add_constraint): Don't set it.
12213 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12214 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12215 constraints using the lookup_constraint logic.
12216 * ira-lives.c (single_reg_class): Likewise.
12217 * ira.c (ira_setup_alts): Likewise.
12218 * lra-constraints.c (process_alt_operands): Likewise.
12219 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12220 * reload.c (find_reloads): Likewise.
12221
12222 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12223
12224 * genpreds.c (const_int_start, const_int_end): New variables.
12225 (choose_enum_order): Output CONST_INT constraints before memory
12226 constraints.
12227 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12228 Add CT_CONST_INT.
12229 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12230 * ira.c (ira_setup_alts): Likewise.
12231 * lra-constraints.c (process_alt_operands): Likewise.
12232 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12233 * reload.c (find_reloads): Likewise.
12234
12235 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12236
12237 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12238 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12239 * recog.c (preprocess_constraints): Update accordingly.
12240
12241 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12242
12243 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12244 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12245 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12246 * genpreds.c (print_type_tree): New function.
12247 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12248 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12249 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12250 Write out enum constraint_type and get_constraint_type.
12251 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12252 constraint_num rather than a constraint string.
12253 (satisfies_address_constraint_p): Likewise.
12254 (reg_class_from_constraints): Avoid old constraint macros.
12255 (process_alt_operands, process_address_1): Likewise.
12256 (curr_insn_transform): Likewise.
12257 * ira-costs.c (record_reg_classes): Likewise.
12258 (record_operand_costs): Likewise.
12259 * ira-lives.c (single_reg_class): Likewise.
12260 (ira_implicitly_set_insn_hard_regs): Likewise.
12261 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12262 * postreload.c (reload_cse_simplify_operands): Likewise.
12263 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12264 (constrain_operands, peep2_find_free_register): Likewise.
12265 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12266 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12267 * reload1.c (maybe_fix_stack_asms): Likewise.
12268 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12269 * targhooks.c (default_secondary_reload): Likewise.
12270 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12271 to EXTRA_CONSTRAINT_STR.
12272 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12273
12274 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12275
12276 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12277 (write_constraint_satisfied_p_array): ...this new function.
12278 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12279 an array.
12280 (write_insn_preds_c): Update accordingly.
12281
12282 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12283
12284 * genpreds.c (write_lookup_constraint): Rename to...
12285 (write_lookup_constraint_1): ...this.
12286 (write_lookup_constraint_array): New function.
12287 (write_tm_preds_h): Define lookup_constraint as an inline function
12288 that uses write_lookup_constraint_array where possible.
12289 (write_insn_preds_c): Update for the changes above.
12290
12291 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12292
12293 * doc/md.texi (regclass_for_constraint): Rename to...
12294 (reg_class_for_constraint): ...this.
12295 * genpreds.c (num_constraints, enum_order, register_start)
12296 (register_end, satisfied_start, memory_start, memory_end)
12297 (address_start, address_end): New variables.
12298 (add_constraint): Count the number of constraints.
12299 (choose_enum_order): New function.
12300 (write_enum_constraint_num): Iterate over enum_order.
12301 (write_regclass_for_constraint): Rename to...
12302 (write_reg_class_for_constraint_1): ...this and update output
12303 accordingly.
12304 (write_constraint_satisfied_p): Rename to...
12305 (write_constraint_satisfied_p_1): ...this and update output
12306 accordingly. Do nothing if all extra constraints are register
12307 constraints.
12308 (write_insn_extra_memory_constraint): Delete.
12309 (write_insn_extra_address_constraint): Delete.
12310 (write_range_function): New function.
12311 (write_tm_preds_h): Define constraint_satisfied_p and
12312 reg_class_for_constraint as inline functions that do a range check
12313 before calling the out-of-line function. Use write_range_function
12314 to implement insn_extra_{register,memory,address}_constraint,
12315 the first of which is new.
12316 (write_insn_preds_c): Update after above changes to write_* functions.
12317 (main): Call choose_enum_order.
12318
12319 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12320
12321 PR tree-optimization/61306
12322 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12323 expression instead of its size.
12324 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12325 false to prevent optimization when the result is unpredictable due to
12326 arithmetic right shift of signed type with highest byte is set.
12327 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12328 (init_symbolic_number): Likewise.
12329 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12330 when the result is unpredictable due to sign extension.
12331
12332 2014-06-11 Terry Guo <terry.guo@arm.com>
12333
12334 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12335 (*thumb1_addsi3): Ditto.
12336 (*thumb_subdi3): Ditto.
12337 (thumb1_subsi3_insn): Ditto.
12338 (*thumb_mulsi3): Ditto.
12339 (*thumb_mulsi3_v6): Ditto.
12340 (*thumb1_andsi3_insn): Ditto.
12341 (thumb1_bicsi3): Ditto.
12342 (*thumb1_iorsi3_insn): Ditto.
12343 (*thumb1_xorsi3_insn): Ditto.
12344 (*thumb1_ashlsi3): Ditto.
12345 (*thumb1_ashrsi3): Ditto.
12346 (*thumb1_lshrsi3): Ditto.
12347 (*thumb1_rotrsi3): Ditto.
12348 (*thumb1_negdi2): Ditto.
12349 (*thumb1_negsi2): Ditto.
12350 (*thumb1_abssi2): Ditto.
12351 (*thumb1_neg_abssi2): Ditto.
12352 (*thumb1_one_cmplsi2): Ditto.
12353 (*thumb1_zero_extendhisi2): Ditto.
12354 (*thumb1_zero_extendqisi2): Ditto.
12355 (*thumb1_zero_extendqisi2_v6): Ditto.
12356 (thumb1_extendhisi2): Ditto.
12357 (thumb1_extendqisi2): Ditto.
12358 (*thumb1_movdi_insn): Ditto.
12359 (*thumb1_movsi_insn): Ditto.
12360 (*thumb1_movhi_insn): Ditto.
12361 (thumb_movhi_clobber): Ditto.
12362 (*thumb1_movqi_insn): Ditto.
12363 (*thumb1_movhf): Ditto.
12364 (*thumb1_movsf_insn): Ditto.
12365 (*thumb_movdf_insn): Ditto.
12366 (movmem12b): Ditto.
12367 (movmem8b): Ditto.
12368 (cbranchqi4): Ditto.
12369 (cbranchsi4_insn): Ditto.
12370 (cbranchsi4_scratch): Ditto.
12371 (*negated_cbranchsi4): Ditto.
12372 (*tbit_cbranch): Ditto.
12373 (*tlobits_cbranch): Ditto.
12374 (*tstsi3_cbranch): Ditto.
12375 (*cbranchne_decr1): Ditto.
12376 (*addsi3_cbranch): Ditto.
12377 (*addsi3_cbranch_scratch): Ditto.
12378 (*thumb_cmpdi_zero): Ditto.
12379 (cstoresi_eq0_thumb1): Ditto.
12380 (cstoresi_ne0_thumb1): Ditto.
12381 (*cstoresi_eq0_thumb1_insn): Ditto.
12382 (*cstoresi_ne0_thumb1_insn): Ditto.
12383 (cstoresi_nltu_thumb1): Ditto.
12384 (cstoresi_ltu_thumb1): Ditto.
12385 (thumb1_addsi3_addgeu): Ditto.
12386 (*thumb_jump): Ditto.
12387 (*call_reg_thumb1_v5): Ditto.
12388 (*call_reg_thumb1): Ditto.
12389 (*call_value_reg_thumb1_v5): Ditto.
12390 (*call_value_reg_thumb1): Ditto.
12391 (*call_insn): Ditto.
12392 (*call_value_insn): Ditto.
12393 (thumb1_casesi_internal_pic): Ditto.
12394 (thumb1_casesi_dispatch): Ditto.
12395 (*thumb1_indirect_jump): Ditto.
12396 (prologue_thumb1_interwork): Ditto.
12397 (*epilogue_insns): Ditto.
12398 (consttable_1): Ditto.
12399 (consttable_2): Ditto.
12400 (tablejump): Ditto.
12401 (*thumb1_tablejump): Ditto.
12402 (thumb_eh_return): Ditto.
12403 (define_peephole2): Two of them are thumb1 only and got moved into
12404 new file thumb1.md.
12405 (define_split): Six of them are thumb1 only and got moved into new
12406 file thumb1.md.
12407 * config/arm/thumb1.md: New file comprised of above thumb1 only
12408 patterns.
12409
12410 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12411
12412 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12413 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12414 dependencies.
12415 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12416 (aarch64_crc_builtin_datum): New struct.
12417 (aarch64_crc_builtin_data): New.
12418 (aarch64_init_crc32_builtins): New function.
12419 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12420 (aarch64_crc32_expand_builtin): New.
12421 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12422 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12423 __ARM_FEATURE_CRC32 when appropriate.
12424 (TARGET_CRC32): Define.
12425 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12426 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12427 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12428 (aarch64_<crc_variant>): New pattern.
12429 * config/aarch64/arm_acle.h: New file.
12430 * config/aarch64/iterators.md (CRC): New int iterator.
12431 (crc_variant, crc_mode): New int attributes.
12432 * doc/aarch64-acle-intrinsics.texi: New file.
12433 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12434 Include aarch64-acle-intrinsics.texi.
12435
12436 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12437
12438 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12439 check for stores group of length 3.
12440 (vect_permute_store_chain): New permutations for stores group of
12441 length 3.
12442 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12443 of vec_perm_shuffle for the new permutations.
12444
12445 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12446
12447 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12448 table rewriting temporarily on targets not supporting ONE_ONLY.
12449
12450 2014-06-11 Richard Biener <rguenther@suse.de>
12451
12452 PR middle-end/61437
12453 Revert
12454 2014-06-04 Richard Biener <rguenther@suse.de>
12455
12456 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12457 TREE_PUBLIC and DECL_EXTERNAL decls.
12458
12459 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12460
12461 * varasm.c (set_implicit_section): New function.
12462 (resolve_unique_section): Use it to set implicit section
12463 for aliases, too.
12464 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12465 (default_function_section): Likewise.
12466 (decl_binds_to_current_def_p): Constify argument.
12467 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12468 * asan.c (asan_protect_global): Use
12469 symtab_get_node (decl)->implicit_section.
12470 * symtab.c (dump_symtab_base): Dump implicit sections.
12471 (verify_symtab_base): Verify sanity of sectoins and comdats.
12472 (symtab_resolve_alias): Alias share the section of its target.
12473 (set_section_1): New function.
12474 (symtab_node::set_section): Move here, recurse to aliases.
12475 (verify_symtab): Check for duplicated symtab lists.
12476 * tree-core.h (implicit_section_name_p): Remove.
12477 * tree-vect-data-refs.c: Include varasm.h.
12478 (vect_can_force_dr_alignment_p): Fix conditional on when
12479 decl bints to current definition; use
12480 symtab_get_node (decl)->implicit_section.
12481 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12482 * cgraph.h (struct symtab_node): Add implicit_section.
12483 (set_section): Rename to ...
12484 (set_section_for_node): ... this one.
12485 (set_section): Declare.
12486 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12487 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12488 input_overwrite_node, input_varpool_node): Stream implicit_section.
12489 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12490 removal; it will fail in LTO.
12491
12492 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12493
12494 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12495 Change second alternative type to f_mcr.
12496 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12497 and 12th alternatives' types to f_mcr and f_mrc.
12498 (*movdi_aarch64): Same for 12th and 13th alternatives.
12499 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12500 (aarch64_movtilow_tilow): Change type to fmov.
12501
12502 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12503
12504 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12505 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12506
12507 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12508
12509 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12510 New expander.
12511 (aarch64_sqrdmulh_lane<mode>): Likewise.
12512 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12513 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12514 (aarch64_sqdmulh_laneq<mode>): New expander.
12515 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12516 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12517 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12518 (aarch64_sqdmulh_lane<mode>): New expander.
12519 (aarch64_sqrdmulh_lane<mode>): Likewise.
12520 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12521 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12522 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12523 (aarch64_sqdmlal_laneq<mode>): Likewise.
12524 (aarch64_sqdmlsl_lane<mode>): Likewise.
12525 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12526 (aarch64_sqdmlal2_lane<mode>): Likewise.
12527 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12528 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12529 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12530 (aarch64_sqdmull_lane<mode>): Likewise.
12531 (aarch64_sqdmull_laneq<mode>): Likewise.
12532 (aarch64_sqdmull2_lane<mode>): Likewise.
12533 (aarch64_sqdmull2_laneq<mode>): Likewise.
12534
12535 2014-06-10 Richard Biener <rguenther@suse.de>
12536
12537 PR tree-optimization/61438
12538 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12539 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12540 insertion of IVs if running PRE.
12541 (eliminate): Adjust.
12542 (pass_pre::execute): Likewise.
12543 (pass_fre::execute): Likewise.
12544
12545 2014-06-10 Richard Biener <rguenther@suse.de>
12546
12547 PR middle-end/61456
12548 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12549 Do not use the main variant for the type comparison.
12550 (ncr_compar): Likewise.
12551 (nonoverlapping_component_refs_p): Likewise.
12552
12553 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12554
12555 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12556 REG_CFA_RESTORE mode.
12557
12558 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12559
12560 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12561 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12562 expand_vec_perm_pblendv.
12563
12564 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12565
12566 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12567 available.
12568 Simplify description of __crc32d and __crc32cd intrinsics.
12569 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12570 availability.
12571
12572 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12573
12574 PR lto/61334
12575 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12576 * config.in: Regenerate.
12577 * configure: Likewise.
12578
12579 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12580
12581 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12582 and public vars.
12583 (intersect_static_var_sets): Remove.
12584 (propagate): Do not prune local statics.
12585
12586 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12587
12588 PR fortran/60928
12589 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12590 Set lastprivate_firstprivate even if omp_private_outer_ref
12591 langhook returns true.
12592 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12593 langhook, call unshare_expr on new_var and call
12594 build_outer_var_ref to get the last argument.
12595
12596 2014-06-10 Marek Polacek <polacek@redhat.com>
12597
12598 PR c/60988
12599 * doc/extend.texi: Add cindex for transparent_union.
12600
12601 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12602
12603 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12604 init_symbolic_number ().
12605
12606 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12607
12608 PR middle-end/61141
12609 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12610 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12611 (verify_rtl_sharing): Likewise.
12612
12613 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12614
12615 PR c++/54442
12616 * tree.c (build_qualified_type): Use a canonical type for
12617 TYPE_CANONICAL.
12618
12619 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12620
12621 * config/arm/arm-modes.def: Remove XFmode.
12622
12623 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12624
12625 PR target/61062
12626 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12627 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12628 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12629 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12630 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12631 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12632 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12633 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12634 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12635
12636 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12637
12638 * tree-core.h (tree_decl_with_vis): Remove section_name.
12639
12640 2014-06-09 Kito Cheng <kito@0xlab.org>
12641
12642 * ira.c (ira): Don't call init_caller_save if LRA enabled
12643 since LRA use its own infrastructure to handle that.
12644
12645 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12646
12647 * symtab.c (dump_symtab_base): Update dumping.
12648 (symtab_make_decl_local): Clear only DECL_COMDAT.
12649 * tree-vect-data-refs.c (Check that variable is static before
12650 tampering with sections.
12651 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12652 (cgraph_create_virtual_clone): Likewise.
12653 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12654 (decl_section_name, set_decl_section_name): New accessors.
12655 (find_decls_types_r): Do not walk section name
12656 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12657 (decl_comdat_group, decl_comdat_group_id): Constify.
12658 (decl_section_name, set_decl_section_name): Update.
12659 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12660 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12661 (cgraph_make_node_local_1): Clear section and comdat group.
12662 * cgraph.h (set_comdat_group): Sanity check.
12663 (get_section, set_section): New.
12664 * ipa-comdats.c (ipa_comdats): Use get_section.
12665 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12666 * lto-streamer-out.c: Do not follow section names.
12667 * c-family/c-common.c (handle_section_attribute): Update.
12668 * lto-cgraph.c (lto_output_node): Output section.
12669 (lto_output_varpool_node): Likewise.
12670 (read_comdat_group): Rename to ...
12671 (read_identifier): ... this one.
12672 (read_string_cst): New function.
12673 (input_node, input_varpool_node): Input section names.
12674 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12675 (new_emutls_decl): Update.
12676 (secname_for_decl): Check section names only of static vars.
12677 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12678 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12679 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12680 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12681 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12682 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12683 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12684 * config/v850/v850.c (v850_insert_attributes): Likewise.
12685 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12686 Likewise.
12687 (h8300_handle_tiny_data_attribute): Likewise.
12688 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12689 (bfin_handle_l2_attribute): Likewise.
12690
12691 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12692
12693 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12694 remove static initializer.
12695
12696 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12697
12698 * varasm.c (use_blocks_for_decl_p): Check symbol table
12699 instead of alias attribute.
12700 (place_block_symbol): Recurse on aliases.
12701
12702 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12703
12704 * ipa-visibility.c: Include varasm.h
12705 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12706
12707 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12708
12709 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12710 outputting aliases.
12711
12712 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12713
12714 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12715 from test_insn into GGC space escape via SET_SRC.
12716
12717 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12718
12719 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12720 call statement, if any.
12721 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12722 statements, if any. Tidy up.
12723
12724 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12725
12726 PR target/61431
12727 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12728 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12729 handles swapping the two 64-bit double words on little endian
12730 systems. Include V1TImode and optionally TImode in VSX_LE so that
12731 these types are properly swapped. Change all of the insns and
12732 splits that do the 64-bit swaps to use VSX_LE.
12733 (vsx_le_perm_load_<mode>): Likewise.
12734 (vsx_le_perm_store_<mode>): Likewise.
12735 (splitters for little endian memory operations): Likewise.
12736 (vsx_xxpermdi2_le_<mode>): Likewise.
12737 (vsx_lxvd2x2_le_<mode>): Likewise.
12738 (vsx_stxvd2x2_le_<mode>): Likewise.
12739
12740 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12741
12742 PR target/61423
12743 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12744 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12745 and corresponding splitters. Zero extend general register
12746 or memory input operand to XMM temporary. Enable for
12747 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12748 (floatunssi<mode>2): Update expander predicate.
12749
12750 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12751
12752 PR rtl-optimization/61325
12753 * lra-constraints.c (process_address_1): Check scale equal to one
12754 to prevent transformation: base + scale * index => base + new_reg.
12755
12756 2014-06-06 Richard Biener <rguenther@suse.de>
12757
12758 PR tree-optimization/59299
12759 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12760 a def operand.
12761 (nearest_common_dominator_of_uses): Likewise.
12762 (statement_sink_location): Adjust. Support sinking loads.
12763
12764 2014-06-06 Martin Jambor <mjambor@suse.cz>
12765
12766 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12767 (build_agg_jump_func_from_list): Likewise.
12768 (determine_known_aggregate_parts): Renamed to
12769 determine_locally_known_aggregate_parts. Moved some functionality
12770 to the two functions above, removed bound checks.
12771
12772 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12773
12774 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12775 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12776 (aarch64_progress_pointer): Likewise.
12777 (aarch64_copy_one_part_and_move_pointers): Likewise.
12778 (aarch64_expand_movmen): Likewise.
12779 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12780 * config/aarch64/aarch64.md (movmem<mode>): New.
12781
12782 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12783
12784 * targhooks.c (default_add_stmt_cost): Call target specific
12785 hook instead of default one.
12786
12787 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12788
12789 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12790 endianness instead of host endianness.
12791 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12792 comments.
12793
12794 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12795
12796 PR debug/53927
12797 * function.c (instantiate_decls): Process the saved static chain.
12798 (expand_function_start): If not optimizing, save the static chain
12799 onto the stack.
12800 * tree-nested.c (convert_all_function_calls): Always create the static
12801 chain for nested functions if not optimizing.
12802
12803 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12804
12805 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12806
12807 2014-06-06 Richard Biener <rguenther@suse.de>
12808
12809 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12810 (construct_init_block): Likewise.
12811 (construct_exit_block): Likewise.
12812 (pass_expand::execute): Likewise.
12813 * graphite.c (graphite_transforms): Replace check for current_loops
12814 with a check for > 1 loops.
12815 (pass_graphite_transforms::execute): Adjust.
12816 * ipa-split.c (split_function): Remove check for current_loops.
12817 * omp-low.c (expand_parallel_call): Likewise.
12818 (expand_omp_for_init_counts): Likewise.
12819 (extract_omp_for_update_vars): Likewise.
12820 (expand_omp_for_generic): Likewise.
12821 (expand_omp_sections): Likewise.
12822 (expand_omp_target): Likewise.
12823 * tracer.c (tail_duplicate): Likewise.
12824 (pass_tracer::execute): Likewise.
12825 * trans-mem.c (expand_transaction): Likewise.
12826 * tree-complex.c (expand_complex_div_wide): Likewise.
12827 * tree-eh.c (lower_resx): Likewise.
12828 (cleanup_empty_eh_merge_phis): Likewise.
12829 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12830 current_loops with a check for > 1 loops.
12831 (pass_predcom::execute): Adjust.
12832 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12833 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12834 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12835 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12836 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12837 * tree-switch-conversion.c (process_switch): Likewise.
12838 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12839 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12840 (execute_vrp): Likewise.
12841 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12842
12843 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12844
12845 * rtl.h (insn_location): Declare.
12846 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12847 with UNKNOWN_LOCATION.
12848 * emit-rtl.c (insn_location): New function.
12849 * final.c (notice_source_line): Check that the instruction has a
12850 location before retrieving it and use insn_location.
12851 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12852 * print-rtl.c (print_rtx): Likewise.
12853
12854 2014-06-06 Richard Biener <rguenther@suse.de>
12855
12856 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12857
12858 2014-06-06 Christian Bruel <christian.bruel@st.com>
12859
12860 PR tree-optimization/43934
12861 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12862 cost.
12863
12864 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12865
12866 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12867 return NO_REGS for extra address and memory constraints. Handle
12868 operands that match (or are equivalent to something that matches)
12869 extra constant constraints. Ignore other non-register operands.
12870
12871 2014-06-06 Alan Modra <amodra@gmail.com>
12872
12873 PR target/61300
12874 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12875 * doc/tm.texi: Regenerate.
12876 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12877 Use throughout in place of REG_PARM_STACK_SPACE.
12878 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12879 "incoming" param. Pass to rs6000_function_parms_need_stack.
12880 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12881 prototype_p when incoming. Use function decl when incoming
12882 to handle K&R style functions.
12883 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12884 (INCOMING_REG_PARM_STACK_SPACE): Define.
12885
12886 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12887
12888 PR target/52472
12889 * cfgexpand.c (expand_debug_expr): Use address space of nested
12890 TREE_TYPE for ADDR_EXPR and MEM_REF.
12891
12892 2014-06-05 Jeff Law <law@redhat.com>
12893
12894 PR tree-optimization/61289
12895 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12896 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12897 looking for those which match LHS. All callers changed.
12898 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12899 parameters and code which manipulated them. All callers changed.
12900 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12901 and DST_MAP parameters. Simplify invalidation code by just calling
12902 invalidate_equivalences. All callers changed.
12903 (thread_across_edge): Simplify now that we don't need to maintain
12904 the map of equivalences to invalidate.
12905
12906 2014-06-05 Kai Tietz <ktietz@redhat.com>
12907 Richard Henderson <rth@redhat.com>
12908
12909 PR target/46219
12910 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12911 checking for !TARGET_X32.
12912 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12913 (sibcall_intern): New define_insn, plus required peepholes.
12914 (sibcall_pop_intern): Likewise.
12915 (sibcall_value_intern): Likewise.
12916 (sibcall_value_pop_intern): Likewise.
12917
12918 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12919
12920 * tree-inline.c (tree_function_versioning): Check DF info existence
12921 before accessing it.
12922
12923 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12924
12925 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12926 frame_size.
12927 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12928 aarch64_frame hard_fp_offset and frame_size.
12929 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12930 frame_size; remove original_frame_size.
12931 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12932 (aarch64_initial_elimination_offset): Remove frame_size and
12933 offset. Use aarch64_frame frame_size.
12934
12935 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12936 Jiong Wang <jiong.wang@arm.com>
12937 Renlin <renlin.li@arm.com>
12938
12939 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12940 initialization of R30 offset. Update offset. Iterate core
12941 regisers upto X30. Remove X29, X30 specific code.
12942
12943 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12944 Jiong Wang <jiong.wang@arm.com>
12945
12946 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12947 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12948 (aarch64_register_saved_on_entry): Adjust test.
12949
12950 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12951
12952 * config/aarch64/aarch64.h (machine_function): Move
12953 saved_varargs_size from here...
12954 (aarch64_frame): ... to here.
12955
12956 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12957 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12958 (aarch64_initial_elimination_offset)
12959 (aarch64_setup_incoming_varargs): Adjust location of
12960 saved_varargs_size.
12961
12962 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12963
12964 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12965 layout comment.
12966
12967 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12968 Prachi Godbole <Prachi.Godbole@imgtec.com>
12969
12970 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12971 mips32r5 entry to use PROCESSOR_P5600.
12972 * config/mips/mips-tables.opt: Regenerate.
12973 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12974 * config/mips/mips.c (mips_fmadd_bypass): New function.
12975 (mips_rtx_cost_data): Add costs for p5600.
12976 (mips_issue_rate): Add support for p5600.
12977 (mips_multipass_dfa_lookahead): Likewise.
12978 * config/mips/mips.h (TUNE_P5600): New define.
12979 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12980 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12981 * config/mips/mips.md: Include p5600.md.
12982 (processor): Add p5600.
12983 * config/mips/p5600.md: New file.
12984
12985 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12986
12987 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12988 * config/i386/predicates.md (palignr_operand): New.
12989 Indicates if permutation is suitable for palignr instruction.
12990
12991 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12992
12993 PR tree-optimization/61319
12994 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12995 stmt belongs to loop.
12996
12997 2014-06-05 Richard Biener <rguenther@suse.de>
12998
12999 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13000 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13001 (lookup_tmp_var): Adjust.
13002 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13003
13004 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13005
13006 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13007
13008 2014-06-05 Marek Polacek <polacek@redhat.com>
13009
13010 PR c/49706
13011 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13012
13013 2014-06-04 Tom de Vries <tom@codesourcery.com>
13014
13015 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13016 CONST_INT.
13017
13018 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13019
13020 PR tree-optimization/61385
13021 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13022
13023 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13024
13025 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13026 changed to use fatal_error.
13027 (main): Ensure lto_wrapper_cleanup is run atexit.
13028
13029 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13030
13031 * lra-constraints.c (valid_address_p): Move earlier in file.
13032 (address_eliminator): New structure.
13033 (satisfies_memory_constraint_p): New function.
13034 (satisfies_address_constraint_p): Likewise.
13035 (process_alt_operands, process_address, curr_insn_transform): Use them.
13036
13037 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13038
13039 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13040 const pointer.
13041 (target_lra_int, default_target_lra_int, this_target_lra_int)
13042 (op_alt_data): Delete.
13043 * lra.h (lra_init): Delete.
13044 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13045 (init_insn_code_data_once): Remove op_alt_data handling.
13046 (finish_insn_code_data_once): Likewise.
13047 (init_op_alt_data): Delete.
13048 (get_static_insn_data): Initialize operand_alternative to null.
13049 (free_insn_recog_data): Cast operand_alternative before freeing it.
13050 (setup_operand_alternative): Take the operand_alternative as
13051 parameter and assume it isn't already cached in the static
13052 insn data.
13053 (lra_set_insn_recog_data): Update accordingly.
13054 (lra_init): Delete.
13055 * ira.c (ira_init): Don't call lra_init.
13056 * target-globals.h (this_target_lra_int): Declare.
13057 (target_globals): Remove lra_int.
13058 (restore_target_globals): Update accordingly.
13059 * target-globals.c: Don't include lra-int.h.
13060 (default_target_globals, save_target_globals): Remove lra_int.
13061
13062 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13063
13064 * recog.h (operand_alternative): Convert reg_class, reject,
13065 matched and matches into bitfields.
13066 (preprocess_constraints): New overload.
13067 (preprocess_insn_constraints): New function.
13068 (preprocess_constraints): Take the insn as parameter.
13069 (recog_op_alt): Change into a pointer.
13070 (target_recog): Add x_op_alt.
13071 * recog.c (asm_op_alt): New variable.
13072 (recog_op_alt): Change into a pointer.
13073 (preprocess_constraints): New overload, replacing the old function
13074 definition with one that doesn't use global state.
13075 (preprocess_insn_constraints): New function.
13076 (preprocess_constraints): Use them. Take the insn as parameter.
13077 Use asm_op_alt for asms.
13078 (recog_init): Free existing x_op_alt entries.
13079 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13080 pointer const.
13081 (make_early_clobber_and_input_conflicts): Likewise.
13082 (process_bb_node_lives): Pass the insn to process_constraints.
13083 * reg-stack.c (check_asm_stack_operands): Likewise.
13084 (subst_asm_stack_regs): Likewise.
13085 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13086 * regrename.c (build_def_use): Likewise.
13087 * sched-deps.c (sched_analyze_insn): Likewise.
13088 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13089 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13090 (note_invalid_constants): Likewise.
13091 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13092 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13093 const.
13094
13095 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13096
13097 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13098 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13099 alternatives.
13100 (make_early_clobber_and_input_conflicts): Likewise.
13101 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13102
13103 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13104
13105 * recog.h (alternative_class): New function.
13106 (which_op_alt): Return a const recog_op_alt.
13107 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13108 (subst_asm_stack_regs): Likewise.
13109 * config/arm/arm.c (note_invalid_constants): Likewise.
13110 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13111 the operand_alternative; use alternative class instead.
13112 * sel-sched.c (get_reg_class): Likewise.
13113 * regrename.c (build_def_use): Likewise.
13114 (hide_operands, restore_operands, record_out_operands): Update type
13115 accordingly.
13116
13117 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13118
13119 * recog.h (recog_op_alt): Convert to a flat array.
13120 (which_op_alt): New function.
13121 * recog.c (recog_op_alt): Convert to a flat array.
13122 (preprocess_constraints): Update accordingly, grouping all
13123 operands of the same alternative together, rather than the
13124 other way around.
13125 * ira-lives.c (check_and_make_def_conflict): Likewise.
13126 (make_early_clobber_and_input_conflicts): Likewise.
13127 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13128 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13129 (subst_asm_stack_regs): Likewise.
13130 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13131 * regrename.c (hide_operands, record_out_operands): Likewise.
13132 (build_def_use): Likewise.
13133 * sel-sched.c (get_reg_class): Likewise.
13134 * config/arm/arm.c (note_invalid_constants): Likewise.
13135
13136 2014-06-04 Jason Merrill <jason@redhat.com>
13137
13138 PR c++/51253
13139 PR c++/61382
13140 * gimplify.c (gimplify_arg): Non-static.
13141 * gimplify.h: Declare it.
13142
13143 2014-06-04 Richard Biener <rguenther@suse.de>
13144
13145 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13146 TREE_PUBLIC and DECL_EXTERNAL decls.
13147
13148 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13149
13150 * regcprop.c (copyprop_hardreg_forward_1): Account for
13151 HARD_REGNO_CALL_PART_CLOBBERED.
13152
13153 2014-06-04 Richard Biener <rguenther@suse.de>
13154
13155 * configure.ac: Check whether the underlying type of int64_t
13156 is long or long long.
13157 * configure: Regenerate.
13158 * config.in: Likewise.
13159 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13160 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13161
13162 2014-06-04 Richard Biener <rguenther@suse.de>
13163
13164 PR tree-optimization/60098
13165 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13166 we hit a kill.
13167 (dse_optimize_stmt): Simplify, now that we found a kill
13168 earlier.
13169
13170 2014-06-04 Richard Biener <rguenther@suse.de>
13171
13172 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13173 of accesses with non-invariant address.
13174
13175 2014-06-04 Martin Liska <mliska@suse.cz>
13176
13177 * cgraph.h (cgraph_make_wrapper): New function introduced.
13178 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13179 * ipa-inline.h (inline_analyze_function): The function is global.
13180 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13181
13182 2014-06-04 Martin Liska <mliska@suse.cz>
13183
13184 * tree.h (private_lookup_attribute_starting): New function.
13185 (lookup_attribute_starting): Likewise.
13186 * tree.c (private_lookup_attribute_starting): Likewise.
13187
13188 2014-06-04 Martin Liska <mliska@suse.cz>
13189
13190 * cgraph.h (expand_thunk): New argument added.
13191 (address_taken_from_non_vtable_p): New global function.
13192 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13193 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13194 * cgraphunit.c (analyze_function): Likewise.
13195 (assemble_thunks_and_aliases): Argument added to call.
13196 (expand_thunk): New argument forces to produce GIMPLE thunk.
13197
13198 2014-06-04 Martin Liska <mliska@suse.cz>
13199
13200 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13201 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13202 * profile.c (branch_prob): Likewise.
13203
13204 2014-06-04 Martin Jambor <mjambor@suse.cz>
13205
13206 PR ipa/61340
13207 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13208 handler for switch on an ipa_ref_use enum.
13209 * ipa-reference.c (analyze_function): Likewise.
13210
13211 2014-06-04 Kai Tietz <ktietz@redhat.com>
13212
13213 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13214 from old call-instruction.
13215
13216 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13217
13218 * config/aarch64/aarch64.c (aarch64_classify_address)
13219 (aarch64_legitimize_reload_address): Support full addressing modes
13220 for vector modes.
13221 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13222 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13223
13224 2014-06-03 Andrew Pinski <apinski@cavium.com>
13225
13226 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13227 for OP0.
13228
13229 2014-06-03 Andrew Pinski <apinski@cavium.com>
13230
13231 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13232 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13233
13234 2014-06-03 Kai Tietz <ktietz@redhat.com>
13235
13236 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13237 for 64-bit ms-abi.
13238
13239 2014-06-03 Dehao Chen <dehao@google.com>
13240
13241 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13242 the same loop.
13243
13244 2014-06-03 Marek Polacek <polacek@redhat.com>
13245
13246 PR c/60439
13247 * doc/invoke.texi: Document -Wswitch-bool.
13248 * function.c (stack_protect_epilogue): Cast controlling expression of
13249 the switch to int.
13250 * gengtype.c (walk_type): Generate switch expression with its
13251 controlling expression cast to int.
13252
13253 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13254
13255 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13256 and attiny841.
13257 * config/avr/avr-tables.opt: Regenerate.
13258 * config/avr/t-multilib: Regenerate.
13259 * doc/avr-mmcu.texi: Regenerate.
13260
13261 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13262 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13263
13264 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13265 (ata6617c, ata664251): Add new avr35 devices.
13266 (ata6612c): Add new avr4 device.
13267 (ata6613c, ata6614q): Add new avr5 devices.
13268 * config/avr/avr-tables.opt: Regenerate.
13269 * config/avr/t-multilib: Regenerate.
13270 * doc/avr-mmcu.texi: Regenerate.
13271
13272 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13273
13274 * gcc/config/aarch64/aarch64-builtins.c
13275 (aarch64_types_binop_ssu_qualifiers): New static data.
13276 (TYPES_BINOP_SSU): Define.
13277 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13278 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13279 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13280 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13281 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13282 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13283 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13284 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13285 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13286 suffix to builtin function name, remove cast.
13287 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13288 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13289 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13290
13291 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13292
13293 * gcc/config/aarch64/aarch64-builtins.c
13294 (aarch64_types_binop_uus_qualifiers,
13295 aarch64_types_shift_to_unsigned_qualifiers,
13296 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13297 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13298 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13299 sqshlu_n, uqshl_n): Update qualifiers.
13300 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13301 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13302 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13303 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13304 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13305 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13306 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13307 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13308 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13309 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13310 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13311 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13312 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13313 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13314 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13315 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13316 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13317 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13318 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13319 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13320 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13321 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13322 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13323 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13324 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13325 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13326 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13327
13328 2014-06-03 Teresa Johnson <tejohnson@google.com>
13329
13330 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13331
13332 2014-06-02 Jason Merrill <jason@redhat.com>
13333
13334 PR c++/61020
13335 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13336
13337 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13338
13339 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13340 location == 0.
13341
13342 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13343
13344 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13345 New pattern.
13346 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13347 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13348 * config/aarch64/iterators.md (REVERSE): New iterator.
13349 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13350 (rev_op): New int_attribute.
13351 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13352 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13353 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13354 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13355 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13356 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13357 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13358 Replace temporary __asm__ with __builtin_shuffle.
13359
13360 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13361
13362 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13363 mips64r5.
13364 * config/mips/mips-tables.opt: Regenerate.
13365 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13366 to use mips_isa_rev rather than ISA_MIPS32R2.
13367 * config/mips/mips.h (ISA_MIPS32R3): New define.
13368 (ISA_MIPS32R5): New define.
13369 (ISA_MIPS64R3): New define.
13370 (ISA_MIPS64R5): New define.
13371 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13372 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13373 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13374 and mips64r5.
13375 (MIPS_ISA_SYNCI_SPEC): Likewise.
13376 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13377 (LINK_SPEC): Added mips32r3 and mips32r5.
13378 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13379 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13380 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13381 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13382 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13383 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13384 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13385
13386 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13387
13388 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13389 options.
13390 * config/mips/mips.opt (mxpa): New option.
13391 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13392 assembler.
13393
13394 2014-06-03 Martin Jambor <mjambor@suse.cz>
13395
13396 PR ipa/61160
13397 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13398 thunks.
13399
13400 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13401
13402 PR tree-optimization/61328
13403 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13404 initialization from find_bswap_or_nop_1.
13405 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13406 in source_expr2 before using the size value the function sets. Also
13407 make use of init_symbolic_number () in both the old place and
13408 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13409 doing recursion in the GIMPLE_BINARY_RHS case.
13410
13411 2014-06-03 Richard Biener <rguenther@suse.de>
13412
13413 PR tree-optimization/61383
13414 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13415 stmts can't trap.
13416
13417 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13418
13419 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13420 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13421 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13422 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13423 in this file.
13424 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13425 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13426 * system.h: ...here and make it unconditional.
13427 * target.def (conditional_register_usage): Mention
13428 define_register_constraint instead of old-style constraint macros.
13429 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13430 * doc/tm.texi: Regenerate.
13431 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13432 protected by !USE_MD_CONSTRAINTS.
13433 * config/frv/frv.md: Remove quote from old version of documentation.
13434 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13435 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13436 CONST_DOUBLE_OK_FOR_LETTER.
13437 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13438
13439 2014-06-02 Andrew Pinski <apinski@cavium.com>
13440
13441 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13442 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13443 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13444 file whose name depends on -mabi= and -mbig-endian.
13445 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13446 Handle LP64 better and handle ilp32 too.
13447 (MULTILIB_OPTIONS): Delete.
13448 (MULTILIB_DIRNAMES): Delete.
13449
13450 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13451
13452 * expr.h: Remove prototypes of functions defined in builtins.c.
13453 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13454 Remove prototypes of functions defined in builtins.c.
13455 * builtins.h: Update prototype list to include all exported functions.
13456 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13457 no_c99_libc_has_function): Move to targhooks.c
13458 (build_string_literal, build_call_expr_loc_array,
13459 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13460 to tree.c.
13461 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13462 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13463 no_c99_libc_has_function): Relocate from builtins.c.
13464 * tree.c: Include builtins.h.
13465 (build_call_expr_loc_array, build_call_expr_loc_vec,
13466 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13467 from builtins.c.
13468 * fold-const.h (fold_fma): Move prototype to builtins.h.
13469 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13470 * asan.c: Include builtins.h.
13471 * cfgexpand.c: Likewise.
13472 * convert.c: Likewise.
13473 * emit-rtl.c: Likewise.
13474 * except.c: Likewise.
13475 * expr.c: Likewise.
13476 * fold-const.c: Likewise.
13477 * gimple-fold.c: Likewise.
13478 * gimple-ssa-strength-reduction.c: Likewise.
13479 * gimplify.c: Likewise.
13480 * ipa-inline.c: Likewise.
13481 * ipa-prop.c: Likewise.
13482 * lto-streamer-out.c: Likewise.
13483 * stmt.c: Likewise.
13484 * tree-inline.c: Likewise.
13485 * tree-object-size.c: Likewise.
13486 * tree-sra.c: Likewise.
13487 * tree-ssa-ccp.c: Likewise.
13488 * tree-ssa-forwprop.c: Likewise.
13489 * tree-ssa-loop-ivcanon.c: Likewise.
13490 * tree-ssa-loop-ivopts.c: Likewise.
13491 * tree-ssa-math-opts.c: Likewise.
13492 * tree-ssa-reassoc.c: Likewise.
13493 * tree-ssa-threadedge.c: Likewise.
13494 * tree-streamer-in.c: Likewise.
13495 * tree-vect-data-refs.c: Likewise.
13496 * tree-vect-patterns.c: Likewise.
13497 * tree-vect-stmts.c: Likewise.
13498 * config/aarch64/aarch64.c: Likewise.
13499 * config/alpha/alpha.c: Likewise.
13500 * config/arc/arc.c: Likewise.
13501 * config/arm/arm.c: Likewise.
13502 * config/avr/avr.c: Likewise.
13503 * config/bfin/bfin.c: Likewise.
13504 * config/c6x/c6x.c: Likewise.
13505 * config/cr16/cr16.c: Likewise.
13506 * config/cris/cris.c: Likewise.
13507 * config/epiphany/epiphany.c: Likewise.
13508 * config/fr30/fr30.c: Likewise.
13509 * config/frv/frv.c: Likewise.
13510 * config/h8300/h8300.c: Likewise.
13511 * config/i386/i386.c: Likewise.
13512 * config/i386/winnt.c: Likewise.
13513 * config/ia64/ia64.c: Likewise.
13514 * config/iq2000/iq2000.c: Likewise.
13515 * config/lm32/lm32.c: Likewise.
13516 * config/m32c/m32c.c: Likewise.
13517 * config/m32r/m32r.c: Likewise.
13518 * config/m68k/m68k.c: Likewise.
13519 * config/mcore/mcore.c: Likewise.
13520 * config/mep/mep.c: Likewise.
13521 * config/microblaze/microblaze.c: Likewise.
13522 * config/mips/mips.c: Likewise.
13523 * config/mmix/mmix.c: Likewise.
13524 * config/mn10300/mn10300.c: Likewise.
13525 * config/moxie/moxie.c: Likewise.
13526 * config/msp430/msp430.c: Likewise.
13527 * config/nds32/nds32.c: Likewise.
13528 * config/pa/pa.c: Likewise.
13529 * config/pdp11/pdp11.c: Likewise.
13530 * config/picochip/picochip.c: Likewise.
13531 * config/rl78/rl78.c: Likewise.
13532 * config/rs6000/rs6000.c: Likewise.
13533 * config/rx/rx.c: Likewise.
13534 * config/s390/s390.c: Likewise.
13535 * config/score/score.c: Likewise.
13536 * config/sh/sh.c: Likewise.
13537 * config/sparc/sparc.c: Likewise.
13538 * config/spu/spu.c: Likewise.
13539 * config/stormy16/stormy16.c: Likewise.
13540 * config/tilegx/tilegx.c: Likewise.
13541 * config/tilepro/tilepro.c: Likewise.
13542 * config/v850/v850.c: Likewise.
13543 * config/vax/vax.c: Likewise.
13544 * config/xtensa/xtensa.c: Likewise.
13545
13546 2014-06-02 Jeff Law <law@redhat.com>
13547
13548 PR rtl-optimization/61094
13549 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13550 was marked as do_no_reextend. If a copy is needed to eliminate
13551 an extension, then mark it as do_not_reextend.
13552
13553 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13554
13555 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13556
13557 2014-06-02 Richard Henderson <rth@redhat.com>
13558
13559 PR target/61336
13560 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13561 addresses inside asms. Use output_operand_lossage instead of
13562 gcc_unreachable.
13563
13564 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13565
13566 PR target/61239
13567 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13568 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13569
13570 2014-06-02 Tom de Vries <tom@codesourcery.com>
13571
13572 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13573 case that x has VOIDmode.
13574
13575 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13576
13577 * varasm.c (copy_constant): Delete function.
13578 (build_constant_desc): Don't call it.
13579
13580 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13581
13582 PR target/61154
13583 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13584 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13585 with immediate_operand.
13586
13587 2014-06-02 Andreas Schwab <schwab@suse.de>
13588
13589 * config/ia64/ia64.c
13590 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13591 pending_data_specs first.
13592
13593 2014-06-02 Richard Biener <rguenther@suse.de>
13594
13595 PR tree-optimization/61378
13596 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13597 valueized_anything.
13598
13599 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13600
13601 * config/i386/constraints.md (Bw): Rename from 'w'.
13602 (Bz): Rename from 'z'.
13603 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13604
13605 2014-06-01 Kai Tietz <ktietz@redhat.com>
13606
13607 PR target/61377
13608 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13609 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13610 instead of m constraint.
13611
13612 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13613
13614 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13615 a separate alternative where the scratch operand 2 is marked as
13616 early clobber.
13617
13618 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13619
13620 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13621 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13622 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13623 and __builtins_arm_get_fpscr.
13624 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13625 __builtins_arm_get_fpscr.
13626 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13627 __builtins_arm_ldfpscr.
13628 (arm_atomic_assign_expand_fenv): New function.
13629 * config/arm/vfp.md (set_fpscr): New pattern.
13630 (get_fpscr) : Likewise.
13631 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13632 VUNSPEC_SET_FPSCR.
13633 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13634 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13635
13636 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13637
13638 * asan.c (report_error_func): Add SLOW_P argument, use
13639 BUILT_IN_ASAN_*_N if set.
13640 (build_check_stmt): Likewise.
13641 (instrument_derefs): If T has insufficient alignment,
13642 force same handling as for odd sizes.
13643
13644 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13645 BUILT_IN_ASAN_REPORT_STORE_N): New.
13646 * asan.c (struct asan_mem_ref): Change access_size type to
13647 HOST_WIDE_INT.
13648 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13649 update_mem_ref_hash_table): Likewise.
13650 (asan_mem_ref_hasher::hash): Hash in a HWI.
13651 (report_error_func): Change size_in_bytes argument to HWI.
13652 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13653 two.
13654 (build_shadow_mem_access): New function.
13655 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13656 Handle size_in_bytes not power of two or larger than 16.
13657 (instrument_derefs): Don't give up if size_in_bytes is not
13658 power of two or is larger than 16.
13659
13660 2014-05-30 Kai Tietz <ktietz@redhat.com>
13661
13662 PR target/60104
13663 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13664 for sibling-tail-calls.
13665 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13666 to its use.
13667 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13668 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13669
13670 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13671
13672 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13673 * config/avr/avr-tables.opt: Regenerate.
13674 * config/avr/t-multilib: Regenerate.
13675 * doc/avr-mmcu.texi: Regenerate.
13676
13677 2014-05-30 Ian Lance Taylor <iant@google.com>
13678
13679 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13680 target("sse").
13681
13682 2014-05-30 Tom de Vries <tom@codesourcery.com>
13683
13684 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13685 Redefine as true.
13686
13687 2014-05-30 Tom de Vries <tom@codesourcery.com>
13688
13689 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13690 * lra.c (initialize_lra_reg_info_element): Add init of
13691 actual_call_used_reg_set field.
13692 (lra): Call lra_create_live_ranges before lra_inheritance for
13693 -fuse-caller-save.
13694 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13695 -fuse-caller-save.
13696 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13697 instead of call_used_reg_set for -fuse-caller-save.
13698 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13699
13700 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13701
13702 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13703 to mov_imm.
13704 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13705
13706 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13707
13708 * ira.c (ira_get_dup_out_num): Check for output operands at
13709 the start of the loop. Handle cases where an included alternative
13710 follows an excluded one.
13711
13712 2014-05-29 Mike Stump <mikestump@comcast.net>
13713
13714 PR debug/61352
13715 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13716 post ld passes when lto is used.
13717
13718 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13719
13720 PR rtl-optimization/61325
13721 * lra-constraints.c (process_address): Rename to process_address_1.
13722 (process_address): New function.
13723
13724 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13725
13726 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13727 TYPES_BINOPV): New static data.
13728 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13729 New builtin.
13730 * config/aarch64/aarch64-simd.md (aarch64_ext,
13731 aarch64_im_lane_boundsi): New patterns.
13732 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13733 patterns for EXT.
13734 (aarch64_evpc_ext): New function.
13735
13736 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13737
13738 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13739 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13740 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13741 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13742 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13743
13744 2014-05-29 Tom de Vries <tom@codesourcery.com>
13745
13746 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13747
13748 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13749 Richard Sandiford <rdsandiford@googlemail.com>
13750
13751 * arm/iterators.md (shiftable_ops): New code iterator.
13752 (t2_binop0, arith_shift_insn): New code attributes.
13753 * arm/predicates.md (shift_nomul_operator): New predicate.
13754 * arm/arm.md (insn_enabled): Delete.
13755 (enabled): Remove insn_enabled test.
13756 (*arith_shiftsi): Delete. Replace with ...
13757 (*<arith_shift_insn>_multsi): ... new pattern.
13758 (*<arith_shift_insn>_shiftsi): ... new pattern.
13759 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13760
13761 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13762 Tom de Vries <tom@codesourcery.com>
13763
13764 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13765 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13766 clobber.
13767 (mips_split_call): Use POST_CALL_TMP_REG.
13768 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13769
13770 2014-05-29 Tom de Vries <tom@codesourcery.com>
13771
13772 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13773 with #ifdef STACK_REGS.
13774
13775 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13776
13777 * varasm.c (get_variable_section): Walk aliases.
13778 (place_block_symbol): Walk aliases.
13779
13780 2014-05-28 Tom de Vries <tom@codesourcery.com>
13781
13782 Revert:
13783 2014-05-28 Tom de Vries <tom@codesourcery.com>
13784
13785 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13786 * lra.c (initialize_lra_reg_info_element): Add init of
13787 actual_call_used_reg_set field.
13788 (lra): Call lra_create_live_ranges before lra_inheritance for
13789 -fuse-caller-save.
13790 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13791 -fuse-caller-save.
13792 * lra-constraints.c (need_for_call_save_p): Use
13793 actual_call_used_reg_set instead of call_used_reg_set for
13794 -fuse-caller-save.
13795 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13796
13797 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13798
13799 * doc/md.texi: Document that the % constraint character must
13800 be at the beginning of the string.
13801 * genoutput.c (validate_insn_alternatives): Check that '=',
13802 '+' and '%' only appear at the beginning of a constraint.
13803 * ira.c (commutative_constraint_p): Delete.
13804 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13805 at the start of the string.
13806 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13807 duplicate '='s.
13808 * config/arm/neon.md (bicdi3_neon): Likewise.
13809 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13810 (slt_si, sltu_si): Likewise.
13811 * config/vax/vax.md (sbcdi3): Likewise.
13812 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13813 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13814 (mul64): Move '%' to beginning of constraint.
13815 * config/arm/arm.md (*xordi3_insn): Likewise.
13816 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13817 (xorsi3): Likewise.
13818
13819 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13820
13821 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13822
13823 2014-05-28 Jason Merrill <jason@redhat.com>
13824
13825 PR c++/47202
13826 * cgraph.h (symtab_node::get_comdat_group_id): New.
13827 * cgraphunit.c (analyze_functions): Call it.
13828 * symtab.c (dump_symtab_node): Likewise.
13829 * tree.c (decl_comdat_group_id): New.
13830 * tree.h: Declare it.
13831 * lto-streamer-out.c (write_symbol): Use it.
13832 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13833
13834 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13835
13836 PR bootstrap/PR61146
13837 * wide-int.cc: Do not include longlong.h when compiling with clang.
13838
13839 2014-05-28 Richard Biener <rguenther@suse.de>
13840
13841 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13842 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13843 (vrp_visit_assignment_or_call): Print less vertical space.
13844 (vrp_visit_stmt): Likewise.
13845 (vrp_visit_phi_node): Likewise. For a PHI argument with
13846 VR_VARYING range consider recording it as copy.
13847
13848 2014-05-28 Richard Biener <rguenther@suse.de>
13849
13850 Revert
13851 2014-05-28 Richard Biener <rguenther@suse.de>
13852
13853 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13854
13855 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13856
13857 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13858 sufficiently aligned and an offset is used at the same time.
13859 (expand_expr_real_1): Likewise.
13860
13861 2014-05-28 Richard Biener <rguenther@suse.de>
13862
13863 PR middle-end/61045
13864 * fold-const.c (fold_comparison): When folding
13865 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13866 the sign of the remaining constant operand stays the same.
13867
13868 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13869
13870 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13871 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13872 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13873 to the assembler.
13874 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13875 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13876 (m32bit-doubles) Likewise.
13877 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13878 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13879 option for RL78.
13880
13881 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13882
13883 * configure.ac ($gcc_cv_ld_clearcap): New test.
13884 * configure: Regenerate.
13885 * config.in: Regenerate.
13886 * config/sol2.opt (mclear-hwcap): New option.
13887 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13888 * config/sol2-clearcap.map: Moved here from
13889 testsuite/gcc.target/i386/clearcap.map.
13890 * config/sol2-clearcapv2.map: Move here from
13891 gcc.target/i386/clearcapv2.map.
13892 * config/t-sol2 (install): Depend on install-clearcap-map.
13893 (install-clearcap-map): New target.
13894 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13895 -mclear-hwcap.
13896
13897 2014-05-28 Richard Biener <rguenther@suse.de>
13898
13899 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13900 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13901 ... here and remove the rest.
13902 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13903
13904 2014-05-28 Richard Biener <rguenther@suse.de>
13905
13906 PR tree-optimization/61335
13907 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13908 new range fails, drop to varying.
13909
13910 2014-05-28 Olivier Hainque <hainque@adacore.com>
13911
13912 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13913 (CPP_SPEC): Add entry for -mcpu=8548.
13914 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13915 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13916
13917 2014-05-28 Tom de Vries <tom@codesourcery.com>
13918
13919 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13920 * lra.c (initialize_lra_reg_info_element): Add init of
13921 actual_call_used_reg_set field.
13922 (lra): Call lra_create_live_ranges before lra_inheritance for
13923 -fuse-caller-save.
13924 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13925 -fuse-caller-save.
13926 * lra-constraints.c (need_for_call_save_p): Use
13927 actual_call_used_reg_set instead of call_used_reg_set for
13928 -fuse-caller-save.
13929 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13930
13931 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13932 Tom de Vries <tom@codesourcery.com>
13933
13934 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13935 to gccoptlist.
13936 (@item -fuse-caller-save): New item.
13937
13938 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13939 Tom de Vries <tom@codesourcery.com>
13940
13941 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13942 OPT_fuse_caller_save.
13943
13944 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13945 Tom de Vries <tom@codesourcery.com>
13946
13947 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13948 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13949 get_call_reg_set_usage.
13950 * resource.c (mark_set_resources, mark_target_live_regs): Use
13951 get_call_reg_set_usage.
13952 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13953 field.
13954 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13955 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13956 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13957 * ira-build.c (ira_create_allocno): Init
13958 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13959 (create_cap_allocno, propagate_allocno_info)
13960 (propagate_some_info_from_allocno)
13961 (copy_info_to_removed_store_destinations): Handle
13962 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13963 * ira-costs.c (ira_tune_allocno_costs): Use
13964 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13965
13966 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13967 Tom de Vries <tom@codesourcery.com>
13968
13969 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13970 and function_used_regs_valid fields.
13971 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13972 find_all_hard_reg_sets.
13973 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13974 (get_call_reg_set_usage): New function.
13975 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13976 * regs.h (get_call_reg_set_usage): Declare.
13977
13978 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13979
13980 PR libgcc/61152
13981 * config/dbx.h (License): Add Runtime Library Exception.
13982 * config/newlib-stdint.h (License): Same.
13983 * config/rtems.h (License): Same
13984 * config/initfini-array.h (License): Same
13985 * config/v850/v850.h (License): Same.
13986 * config/v850/v850-opts.h (License): Same
13987 * config/v850/rtems.h (License): Same.
13988
13989 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13990
13991 PR target/61044
13992 * doc/extend.texi (Local Labels): Note that label differences are
13993 not supported for AVR.
13994
13995 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13996 Olivier Hainque <hainque@adacore.com>
13997
13998 * rtl.h (set_for_reg_notes): Declare.
13999 * emit-rtl.c (set_for_reg_notes): New function.
14000 (set_unique_reg_note): Use it.
14001 * optabs.c (add_equal_note): Likewise
14002
14003 2014-05-27 Andrew Pinski <apinski@cavium.com>
14004
14005 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14006 Use <w> for the register in assembly template.
14007 (stack_protect_test): Use the mode of operands[0] for the result.
14008 (stack_protect_test_<mode>): Use <w> for the register
14009 in assembly template.
14010
14011 2014-05-27 DJ Delorie <dj@redhat.com>
14012
14013 * config/rx/rx.c (add_vector_labels): New.
14014 (rx_output_function_prologue): Call it.
14015 (rx_handle_func_attribute): Don't require empty arguments.
14016 (rx_handle_vector_attribute): New.
14017 (rx_attribute_table): Add "vector" attribute.
14018 * doc/extend.texi (interrupt, vector): Document new/changed
14019 RX-specific attributes.
14020
14021 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14022
14023 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14024
14025 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14026 predicate to detect a negative quotient.
14027
14028 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14029
14030 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14031 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14032 Add X - Y CMP 0 to X CMP Y transformation.
14033 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14034
14035 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14036
14037 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14038 before printing.
14039
14040 2014-05-27 Steve Ellcey <sellcey@mips.com>
14041
14042 * config/mips/mips.c: Add include of cgraph.h.
14043
14044 2014-05-27 Richard Biener <rguenther@suse.de>
14045
14046 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14047
14048 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14049
14050 PR libgcc/61152
14051 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14052 * config/arm/arm-cores.def (License): Same.
14053 * config/arm/arm-opts.h (License): Same.
14054 * config/arm/aout.h (License): Same.
14055 * config/arm/bpabi.h (License): Same.
14056 * config/arm/elf.h (License): Same.
14057 * config/arm/linux-elf.h (License): Same.
14058 * config/arm/linux-gas.h (License): Same.
14059 * config/arm/netbsd-elf.h (License): Same.
14060 * config/arm/uclinux-eabi.h (License): Same.
14061 * config/arm/uclinux-elf.h (License): Same.
14062 * config/arm/vxworks.h (License): Same.
14063
14064 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14065
14066 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14067 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14068 (arm_init_neon_builtins): Handle NEON_BSWAP.
14069 Define required type nodes.
14070 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14071 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14072 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14073 * config/arm/iterators.md (VDQHSD): New mode iterator.
14074
14075 2014-05-27 Richard Biener <rguenther@suse.de>
14076
14077 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14078 Try using literal operands when comparing value-ranges failed.
14079
14080 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14081
14082 * ira.c (commutative_operand): Adjust for change to recog_data.
14083 [Missing from previous commit.]
14084
14085 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14086
14087 * system.h (TEST_BIT): New macro.
14088 * recog.h (alternative_mask): New type.
14089 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14090 (recog_data_d): Replace alternative_enabled_p array with
14091 enabled_alternatives.
14092 (target_recog): New structure.
14093 (default_target_recog, this_target_recog): Declare.
14094 (get_enabled_alternatives, recog_init): Likewise.
14095 * recog.c (default_target_recog, this_target_recog): New variables.
14096 (get_enabled_alternatives): New function.
14097 (extract_insn): Use it.
14098 (recog_init): New function.
14099 (preprocess_constraints, constrain_operands): Adjust for change to
14100 recog_data.
14101 * postreload.c (reload_cse_simplify_operands): Likewise.
14102 * reload.c (find_reloads): Likewise.
14103 * ira-costs.c (record_reg_classes): Likewise.
14104 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14105 all alternatives after a disabled one would be skipped.
14106 (ira_implicitly_set_insn_hard_regs): Likewise.
14107 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14108 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14109 with enabled_alternatives.
14110 * lra.c (free_insn_recog_data): Update accordingly.
14111 (lra_update_insn_recog_data): Likewise.
14112 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14113 * lra-constraints.c (process_alt_operands): Likewise. Handle
14114 only_alternative as part of the enabled mask.
14115 * target-globals.h (this_target_recog): Declare.
14116 (target_globals): Add a recog field.
14117 (restore_target_globals): Restore this_target_recog.
14118 * target-globals.c: Include recog.h.
14119 (default_target_globals): Initialize recog field.
14120 (save_target_globals): Likewise.
14121 * reginfo.c (reinit_regs): Call recog_init.
14122 * toplev.c (backend_init_target): Likewise.
14123
14124 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14125
14126 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14127 rather than any named insn's code.
14128
14129 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14130
14131 PR libgcc/61152
14132 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14133 * config/arm/arm-cores.def (License): Same.
14134
14135 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14136
14137 * tree.h (decl_comdat_group): Declare.
14138 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14139 * tree.c (decl_comdat_group): Here.
14140
14141 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14142
14143 PR rtl-optimization/61222
14144 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14145 the shift, truncate the PLUS operand to the result mode.
14146
14147 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14148
14149 PR target/61271
14150 * config/i386/i386.c (ix86_rtx_costs)
14151 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14152 Fix condition.
14153
14154 2014-05-26 Martin Jambor <mjambor@suse.cz>
14155
14156 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14157 subreg uses.
14158
14159 2014-05-26 Richard Biener <rguenther@suse.de>
14160
14161 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14162 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14163 Provide specializations.
14164 (wi::int_traits <HOST_WIDE_INT>,
14165 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14166
14167 2014-05-26 Alan Modra <amodra@gmail.com>
14168
14169 PR target/61098
14170 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14171 params and return a bool. Remove dead code. Update comment.
14172 Assert we have a const_int source. Remove bogus code from
14173 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14174 handling of constants > 2G and reg_equal note, from..
14175 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14176 return value. Update comment. If we can, use a new pseudo
14177 for intermediate calculations.
14178 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14179 prototype.
14180 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14181 call to rs6000_emit_set_const in splitter.
14182 (movdi_internal64+2, +3): Likewise.
14183
14184 2014-05-26 Richard Biener <rguenther@suse.de>
14185
14186 * system.h: Define __STDC_FORMAT_MACROS before
14187 including inttypes.h.
14188 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14189 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14190 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14191 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14192 HOST_WIDEST_INT_C): Remove.
14193 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14194 if C99 inttypes.h is not available.
14195 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14196 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14197 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14198 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14199 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14200 (struct output_info): Likewise.
14201 (print_statistics): Adjust.
14202 (dump_bitmap_statistics): Likewise.
14203 * bt-load.c (migrate_btr_defs): Print with PRId64.
14204 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14205 (MAX_SAFE_MULTIPLIER): Adjust.
14206 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14207 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14208 dump_cgraph_node): Likewise.
14209 * final.c (dump_basic_block_info): Likewise.
14210 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14211 * gcov.c (format_gcov): Likewise.
14212 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14213 for calculation.
14214 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14215 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14216 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14217 Use PRId64 for dumping.
14218 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14219 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14220 (add_allocno_hard_regs): Adjust.
14221 * loop-doloop.c (doloop_modify): Print using PRId64.
14222 * loop-iv.c (inverse): Compute in uint64_t.
14223 (determine_max_iter, iv_number_of_iterations): Likewise.
14224 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14225 Print using PRId64.
14226 * lto-streamer-out.c (write_symbol): Use uint64_t.
14227 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14228 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14229 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14230 * modulo-sched.c (const_iteration_count): Use int64_t.
14231 (sms_schedule): Dump using PRId64.
14232 * predict.c (dump_prediction): Likewise.
14233 * pretty-print.h (pp_widest_integer): Remove.
14234 * profile.c (get_working_sets, is_edge_inconsistent,
14235 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14236 * tree-pretty-print.c (pp_double_int): Remove case handling
14237 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14238 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14239 and adjust users.
14240 (pass_optimize_bswap::execute): Remove restriction on hosts.
14241 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14242 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14243 * tree.c (widest_int_cst_value): Remove.
14244 * tree.h (widest_int_cst_value): Likewise.
14245 * value-prof.c (dump_histogram_value): Print using PRId64.
14246 * gengtype.c (main): Also inject int64_t.
14247 * ggc-page.c (struct max_alignment): Use int64_t.
14248 * alloc-pool.c (struct allocation_object_def): Likewise.
14249 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14250 for computation.
14251 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14252 * doc/tm.texi: Regenerated.
14253 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14254 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14255 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14256 mmix_output_register_setting): Use [u]int64_t in prototypes.
14257 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14258 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14259 mmix_output_octa, mmix_output_shifted_value): Adjust.
14260 (mmix_intval): Adjust. Remove unreachable case.
14261 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14262
14263 2014-05-26 Richard Biener <rguenther@suse.de>
14264
14265 * configure.ac: Drop __int64 type check. Insist that we
14266 found uint64_t and int64_t.
14267 * hwint.h (HOST_BITS_PER___INT64): Remove.
14268 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14269 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14270 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14271 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14272 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14273 for dst_q_src_df_rms_cdt.
14274 * configure: Regenerate.
14275 * config.in: Likewise.
14276
14277 2014-05-26 Michael Tautschnig <mt@debian.org>
14278
14279 PR target/61249
14280 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14281 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14282
14283 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14284
14285 PR rtl-optimization/61278
14286 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14287
14288 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14289
14290 PR rtl-optimization/61220
14291 Part of PR rtl-optimization/61225
14292 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14293 insn; skip split_edge for a block with only one successor.
14294
14295 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14296
14297 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14298 for variables.
14299
14300 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14301
14302 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14303 (update_vtable_references): New function.
14304 (function_and_variable_visibility): Rewrite also vtable initializers.
14305 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14306
14307 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14308
14309 * ggc.h (ggc_grow): New function.
14310 * ggc-none.c (ggc_grow): New function.
14311 * ggc-page.c (ggc_grow): Likewise.
14312
14313 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14314
14315 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14316 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14317 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14318 varpool_externally_visible_p, can_replace_by_local_alias,
14319 update_visibility_by_resolution_info, function_and_variable_visibility,
14320 pass_data_ipa_function_and_variable_visibility,
14321 make_pass_ipa_function_and_variable_visibility,
14322 whole_program_function_and_variable_visibility,
14323 pass_data_ipa_whole_program_visibility,
14324 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14325 * cgraph.h (cgraph_local_node_p): Declare.
14326 * ipa-visibility.c: New file.
14327 * Makefile.in (OBJS): Add ipa-visiblity.o
14328
14329 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14330
14331 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14332 that var decl is available.
14333
14334 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14335
14336 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14337 symtab_node pointer.
14338 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14339 (find_decls_types_r): Do not walk COMDAT_GROUP.
14340 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14341 * varasm.c (make_decl_one_only): Use set_comdat_group;
14342 create node if needed.
14343 * ipa-inline-transform.c (save_inline_function_body): Update
14344 way we decl->symtab mapping.
14345 * symtab.c (symtab_hash, hash_node, eq_node
14346 symtab_insert_node_to_hashtable): Remove.
14347 (symtab_register_node): Update.
14348 (symtab_unregister_node): Update.
14349 (symtab_get_node): Reimplement as inline function.
14350 (symtab_add_to_same_comdat_group): Update.
14351 (symtab_dissolve_same_comdat_group_list): Update.
14352 (dump_symtab_base): Update.
14353 (verify_symtab_base): Update.
14354 (symtab_make_decl_local): Update.
14355 (fixup_same_cpp_alias_visibility): Update.
14356 (symtab_nonoverwritable_alias): Update.
14357 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14358 * ipa.c (update_visibility_by_resolution_info): UPdate.
14359 * bb-reorder.c: Include cgraph.h
14360 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14361 with comdat groups.
14362 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14363 * cgraph.c (cgraph_get_create_node): Update.
14364 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14365 and comdat_group_.
14366 (symtab_get_node): Make inline.
14367 (symtab_insert_node_to_hashtable): Remove.
14368 (symtab_can_be_discarded): Update.
14369 (decl_comdat_group): New function.
14370 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14371 Update.
14372 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14373 comdat group name.
14374 (read_comdat_group): New function.
14375 (input_node, input_varpool_node): Use it.
14376 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14377 comdat groups.
14378 * mips.c (mips_start_unique_function): Likewise.
14379 (ix86_code_end): Likewise.
14380 (rs6000_code_end): Likweise.
14381 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14382
14383 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14384
14385 * gengtype-state.c (fatal_reading_state): Bring offline.
14386 * optabs.c (widening_optab_handler): Bring offline.
14387 * optabs.h (widening_optab_handler): Likewise.
14388 * final.c (get_attr_length_1): Likewise.
14389
14390 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14391
14392 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14393
14394 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14395
14396 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14397 (ppc440-compare): Include shift with dot.
14398 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14399 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14400 without dot.
14401 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14402 without dot.
14403 (e6500_sfx2): Include it.
14404 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14405 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14406 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14407 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14408 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14409 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14410 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14411 *lshiftrt_internal1le, *lshiftrt_internal1be,
14412 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14413 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14414 *rotldi3_internal10le, *rotldi3_internal10be,
14415 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14416 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14417 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14418 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14419 define_insns): Use type "shift" in the appropriate alternatives.
14420
14421 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14422
14423 * config/rs6000/rs6000.md (type): Add "logical". Delete
14424 "fast_compare".
14425 (dot): Adjust comment.
14426 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14427 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14428 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14429 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14430 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14431 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14432 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14433 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14434
14435 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14436 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14437 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14438 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14439 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14440 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14441 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14442 * config/rs6000/8540.md (ppc8540_su): Adjust.
14443 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14444 cell-cmp-microcoded): Adjust.
14445 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14446 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14447 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14448 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14449 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14450 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14451 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14452 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14453 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14454 Adjust.
14455 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14456 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14457 Adjust. Adjust comment.
14458 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14459 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14460
14461 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14462
14463 * config/rs6000/rs6000.md (type): Add "add".
14464 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14465 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14466 define_insns): Use it.
14467 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14468
14469 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14470 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14471 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14472 * config/rs6000/601.md (ppc601-integer): Adjust.
14473 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14474 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14475 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14476 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14477 * config/rs6000/8540.md (ppc8540_su): Adjust.
14478 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14479 cell-cmp-microcoded): Adjust.
14480 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14481 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14482 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14483 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14484 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14485 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14486 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14487 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14488 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14489 Adjust.
14490 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14491 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14492 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14493 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14494
14495 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14496
14497 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14498 "delayed_compare", "var_delayed_compare".
14499 (var_shift): New attribute.
14500 (cell_micro): Adjust.
14501 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14502 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14503 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14504 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14505 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14506 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14507 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14508 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14509 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14510 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14511 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14512 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14513 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14514 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14515 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14516 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14517 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14518 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14519 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14520 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14521 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14522 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14523 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14524 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14525 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14526
14527 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14528 * config/rs6000/440.md (ppc440-integer): Adjust.
14529 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14530 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14531 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14532 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14533 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14534 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14535 * config/rs6000/8540.md (ppc8540_su): Adjust.
14536 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14537 cell-cmp-microcoded): Adjust.
14538 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14539 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14540 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14541 e500mc64_delayed): Adjust.
14542 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14543 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14544 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14545 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14546 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14547 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14548 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14549 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14550 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14551 Adjust comment.
14552 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14553 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14554
14555 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14556
14557 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14558 (bits): New mode_attr.
14559 (idiv_ldiv): Delete mode_attr.
14560 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14561 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14562 rs6000_adjust_priority, is_nonpipeline_insn,
14563 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14564
14565 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14566 * config/rs6000/440.md (ppc440-idiv): Adjust.
14567 * config/rs6000/476.md (ppc476-idiv): Adjust.
14568 * config/rs6000/601.md (ppc601-idiv): Adjust.
14569 * config/rs6000/603.md (ppc603-idiv): Adjust.
14570 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14571 ppc620-ldiv): Adjust.
14572 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14573 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14574 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14575 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14576 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14577 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14578 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14579 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14580 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14581 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14582 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14583 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14584 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14585 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14586 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14587 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14588 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14589 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14590
14591 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14592
14593 * config/rs6000/rs6000.md (type): Delete "insert_word",
14594 "insert_dword". Add "insert".
14595 (size): Update comment.
14596 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14597 insn_must_be_first_in_group): Adjust.
14598 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14599 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14600 *insvsi_internal6, insvdi_internal): Adjust.
14601
14602 * config/rs6000/40x.md (ppc403-integer): Adjust.
14603 * config/rs6000/440.md (ppc440-integer): Adjust.
14604 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14605 * config/rs6000/601.md (ppc601-integer): Adjust.
14606 * config/rs6000/603.md (ppc603-integer): Adjust.
14607 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14608 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14609 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14610 * config/rs6000/8540.md (ppc8540_su): Adjust.
14611 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14612 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14613 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14614 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14615 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14616 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14617 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14618 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14619 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14620 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14621 * config/rs6000/power7.md (power7-integer): Adjust.
14622 * config/rs6000/power8.md (power8-1cyc): Adjust.
14623 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14624 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14625
14626 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14627
14628 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14629 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14630 (size): New attribute.
14631 (dot): New attribute.
14632 (cell_micro): Adjust.
14633 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14634 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14635 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14636 umuldi3_highpart): Adjust.
14637 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14638 rs6000_adjust_priority, is_nonpipeline_insn,
14639 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14640
14641 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14642 ppc405-imul3): Adjust.
14643 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14644 * config/rs6000/476.md (ppc476-imul): Adjust.
14645 * config/rs6000/601.md (ppc601-imul): Adjust.
14646 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14647 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14648 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14649 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14650 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14651 Adjust.
14652 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14653 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14654 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14655 cell-imul): Adjust.
14656 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14657 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14658 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14659 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14660 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14661 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14662 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14663 power4-lmul, power4-imul, power4-imul3): Adjust.
14664 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14665 power5-lmul, power5-imul, power5-imul3): Adjust.
14666 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14667 power6-lmul, power6-imul, power6-imul3): Adjust.
14668 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14669 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14670
14671 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14672 rs64a-lmul): Adjust.
14673 * config/rs6000/titan.md (titan_imul): Adjust.
14674
14675 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14676
14677 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14678 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14679 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14680 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14681 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14682 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14683 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14684 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14685 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14686 * config/rs6000/titan.md: Delete nonsensical comment.
14687 (titan_imul): Add type imul3.
14688 (titan_mulhw): Remove type imul3; add type halfmul.
14689
14690 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14691
14692 * config/rs6000/rs6000.md (type): Reorder, reformat.
14693
14694 2014-05-23 Martin Jambor <mjambor@suse.cz>
14695
14696 PR tree-optimization/53787
14697 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14698 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14699 analysis_done, update all uses.
14700 * ipa-prop.c: Include domwalk.h
14701 (param_analysis_info): Removed.
14702 (param_aa_status): New type.
14703 (ipa_bb_info): Likewise.
14704 (func_body_info): Likewise.
14705 (ipa_get_bb_info): New function.
14706 (aa_overwalked): Likewise.
14707 (find_dominating_aa_status): Likewise.
14708 (parm_bb_aa_status_for_bb): Likewise.
14709 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14710 (load_from_unmodified_param): Accept func_body_info as a parameter
14711 instead of parms_ainfo.
14712 (parm_ref_data_preserved_p): Changed to use new param AA info.
14713 (parm_ref_data_pass_through_p): Likewise.
14714 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14715 (compute_complex_assign_jump_func): Changed to use new param AA info.
14716 (compute_complex_ancestor_jump_func): Likewise.
14717 (ipa_compute_jump_functions_for_edge): Likewise.
14718 (ipa_compute_jump_functions): Removed.
14719 (ipa_compute_jump_functions_for_bb): New function.
14720 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14721 declarations down.
14722 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14723 and info, moved variable declarations down.
14724 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14725 node and info.
14726 (ipa_analyze_stmt_uses): Likewise.
14727 (ipa_analyze_params_uses): Removed.
14728 (ipa_analyze_params_uses_in_bb): New function.
14729 (ipa_analyze_controlled_uses): Likewise.
14730 (free_ipa_bb_info): Likewise.
14731 (analysis_dom_walker): New class.
14732 (ipa_analyze_node): Handle node-specific forbidden analysis,
14733 initialize and free func_body_info, use dominator walker.
14734 (ipcp_modif_dom_walker): New class.
14735 (ipcp_transform_function): Create and free func_body_info, use
14736 ipcp_modif_dom_walker, moved a lot of functionality there.
14737
14738 2014-05-23 Marek Polacek <polacek@redhat.com>
14739 Jakub Jelinek <jakub@redhat.com>
14740
14741 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14742 * gcc.c (sanitize_spec_function): Likewise.
14743 * convert.c (convert_to_integer): Include "ubsan.h". Add
14744 floating-point to integer instrumentation.
14745 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14746 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14747 SANITIZE_NONDEFAULT.
14748 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14749 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14750 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14751 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14752 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14753 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14754 float/double/long double.
14755 (ubsan_instrument_float_cast): New function.
14756 * ubsan.h (ubsan_instrument_float_cast): Declare.
14757
14758 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14759
14760 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14761 predicate.
14762 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14763 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14764 Adjust for tailcalling through registers.
14765 * config/aarch64/aarch64.h (enum reg_class): New caller save
14766 register class.
14767 (REG_CLASS_NAMES): Likewise.
14768 (REG_CLASS_CONTENTS): Likewise.
14769 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14770 Allow tailcalling without decls.
14771
14772 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14773
14774 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14775 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14776
14777 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14778 gsi, and variables v_* to v*.
14779
14780 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14781
14782 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14783
14784 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14785
14786 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14787 * omp-low.c: Update accordingly.
14788
14789 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14790 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14791 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14792 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14793 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14794 GF_OMP_TARGET_KIND_UPDATE.
14795
14796 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14797 Explicitly enumerate the expected region types.
14798
14799 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14800
14801 PR other/56955
14802 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14803 documentation; the old documentation didn't clearly state the
14804 constraints on the contents of the pointed-to storage.
14805
14806 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14807
14808 Fix bootstrap error on ia64
14809 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14810 Return default value.
14811
14812 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14813
14814 PR tree-optimization/54733
14815 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14816 (CMPNOP): Define.
14817 (find_bswap_or_nop_load): New.
14818 (find_bswap_1): Renamed to ...
14819 (find_bswap_or_nop_1): This. Also add support for memory source.
14820 (find_bswap): Renamed to ...
14821 (find_bswap_or_nop): This. Also add support for memory source and
14822 detection of bitwise operations equivalent to load in target
14823 endianness.
14824 (execute_optimize_bswap): Likewise. Also move its leading comment back
14825 in place and split statement transformation into ...
14826 (bswap_replace): This.
14827
14828 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14829
14830 PR rtl-optimization/61215
14831 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14832 simplify_gen_subreg until final substitution.
14833
14834 2014-05-23 Alan Modra <amodra@gmail.com>
14835
14836 PR target/61231
14837 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14838 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14839 Use "Y" constraint rather than "m".
14840
14841 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14842
14843 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14844 define.
14845 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14846 New function declaration.
14847 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14848 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14849 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14850 (aarch64_init_builtins) : Initialize builtins
14851 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14852 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14853 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14854 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14855 and __builtins_aarch64_set_fpsr.
14856 (aarch64_atomic_assign_expand_fenv): New function.
14857 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14858 (get_fpcr) : Likewise.
14859 (set_fpsr) : Likewise.
14860 (get_fpsr) : Likewise.
14861 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14862 and UNSPECV_SET_FPSR.
14863 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14864 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14865 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14866
14867 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14868
14869 PR rtl-optimization/60969
14870 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14871 constraints. Set up mem cost for NO_REGS case.
14872
14873 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14874
14875 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14876
14877 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14878
14879 * config/darwin.c: Include "lto-section-names.h".
14880 (LTO_SEGMENT_NAME): Don't define.
14881 * config/i386/winnt.c: Include "lto-section-names.h".
14882 * lto-streamer.c: Include "lto-section-names.h".
14883 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14884 * lto-wrapper.c: Include "lto-section-names.h".
14885 (LTO_SECTION_NAME_PREFIX): Don't define.
14886 * lto-section-names.h: New file.
14887 * cgraphunit.c: Include "lto-section-names.h".
14888
14889 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14890
14891 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14892
14893 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14894
14895 PR target/61208
14896 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14897
14898 2014-05-22 Nick Clifton <nickc@redhat.com>
14899
14900 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14901
14902 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14903
14904 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14905 -> (T)A transformation to integer types.
14906
14907 2014-05-22 Teresa Johnson <tejohnson@google.com>
14908
14909 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14910 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14911 (gcov_rewrite): Use gcov_nonruntime_assert.
14912 (gcov_open): Ditto.
14913 (gcov_write_words): Ditto.
14914 (gcov_write_length): Ditto.
14915 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14916 gcc_assert from IN_LIBGCOV code.
14917 (gcov_read_summary): Use gcov_error to flag profile corruption.
14918 (gcov_sync): Use gcov_nonruntime_assert.
14919 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14920 (gcov_histo_index): Use gcov_nonruntime_assert.
14921 (static void gcov_histogram_merge): Ditto.
14922 (compute_working_sets): Ditto.
14923 * gcov-io.h (gcov_nonruntime_assert): Define.
14924 (gcov_error): Define for !IN_LIBGCOV
14925
14926 2014-05-22 Richard Biener <rguenther@suse.de>
14927
14928 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14929 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14930 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14931 and deallocation site.
14932 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14933 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14934 passing through the incoming points-to set.
14935 (handle_lhs_call): Use flags argument instead of recomputing it.
14936 (find_func_aliases_for_call): Call handle_lhs_call with proper
14937 call return flags.
14938
14939 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14940
14941 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14942 all padding bits in REAL_VALUE_TYPE are cleared.
14943
14944 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14945
14946 Cleanup and improve multipass_dfa_lookahead_guard
14947 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14948 (core2i7_first_cycle_multipass_begin,)
14949 (core2i7_first_cycle_multipass_issue,)
14950 (core2i7_first_cycle_multipass_backtrack): Update signature.
14951 * config/ia64/ia64.c
14952 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14953 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14954 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14955 hook definition.
14956 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14957 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14958 values.
14959 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14960 return values.
14961 * doc/tm.texi: Regenerate.
14962 * doc/tm.texi.in
14963 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14964 * haifa-sched.c (ready_try): Make signed to allow negative values.
14965 (rebug_ready_list_1): Update.
14966 (choose_ready): Simplify.
14967 (sched_extend_ready_list): Update.
14968
14969 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14970
14971 Remove IA64 speculation tweaking flags
14972 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14973 speculation tuning flags.
14974 (msched-prefer-non-data-spec-insns,)
14975 (msched-prefer-non-control-spec-insns): Obsolete options.
14976 * haifa-sched.c (choose_ready): Remove handling of
14977 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14978 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14979 and PREFER_NON_DATA_SPEC.
14980 * sel-sched.c (process_spec_exprs): Remove handling of
14981 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14982
14983 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14984
14985 Improve scheduling debug output
14986 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14987 (advance_one_cycle): Update.
14988 (schedule_insn, queue_to_ready): Add debug printouts.
14989 (debug_ready_list_1): New static function.
14990 (debug_ready_list): Update.
14991 (max_issue): Add debug printouts.
14992 (dump_insn_stream): New static function.
14993 (schedule_block): Use it. Also better indent printouts.
14994
14995 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14996
14997 Fix sched_insn debug counter
14998 * haifa-sched.c (schedule_insn): Update.
14999 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15000 (save_backtrack_point, restore_backtrack_point): Update.
15001 (first_nonscheduled_insn): New static function.
15002 (queue_to_ready, choose_ready): Use it.
15003 (schedule_block): Init nonscheduled_insns_begin.
15004 (sched_emit_insn): Update.
15005
15006
15007 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15008
15009 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15010 to GENERAL_REGS.
15011 (aarch64_secondary_reload) : LikeWise.
15012 (aarch64_class_max_nregs) : Remove CORE_REGS.
15013 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15014 (REG_CLASS_NAMES) : Likewise.
15015 (REG_CLASS_CONTENTS) : LikeWise.
15016 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15017
15018 2014-05-21 Guozhi Wei <carrot@google.com>
15019
15020 PR target/61202
15021 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15022 constraint.
15023 (vqdmulhq_n_s16): Likewise.
15024
15025 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15026
15027 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15028
15029 2014-05-21 Marek Polacek <polacek@redhat.com>
15030
15031 PR sanitizer/61272
15032 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15033
15034 2014-05-21 Martin Jambor <mjambor@suse.cz>
15035
15036 * doc/invoke.texi (Optimize Options): Document parameters
15037 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15038 ipa-cp-array-index-hint-bonus.
15039
15040 2014-05-21 Mark Wielaard <mjw@redhat.com>
15041
15042 PR debug/16063
15043 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15044 version >= 3 or not strict DWARF.
15045 * langhooks.h (struct lang_hooks_for_types): Add
15046 enum_underlying_base_type.
15047 * langhooks.c (lhd_enum_underlying_base_type): New function.
15048 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15049 enum_underlying_base_type.
15050 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15051 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15052 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15053
15054 2014-05-21 Richard Biener <rguenther@suse.de>
15055
15056 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15057
15058 2014-05-21 John Marino <gnugcc@marino.st>
15059
15060 * config.gcc (*-*-dragonfly*): New target.
15061 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15062 * configure: Regenerate.
15063 * config/dragonfly-stdint.h: New.
15064 * config/dragonfly.h: New.
15065 * config/dragonfly.opt: New.
15066 * config/i386/dragonfly.h: New.
15067 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15068
15069 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15070
15071 * tree.def (VOID_CST): New.
15072 * tree-core.h (TI_VOID): New.
15073 * tree.h (void_node): New.
15074 * tree.c (tree_node_structure_for_code, tree_code_size)
15075 (iterative_hash_expr): Handle VOID_CST.
15076 (build_common_tree_nodes): Initialize void_node.
15077
15078 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15079
15080 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15081 functions.
15082 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15083
15084 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15085 more places.
15086
15087 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15088 flag_reorder_blocks_and_partition.
15089 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15090
15091 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15092
15093 PR target/54236
15094 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15095 constraints.
15096 (*addc_r_t): Add new insn_and_split.
15097
15098 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15099
15100 PR middle-end/61252
15101 * omp-low.c (handle_simd_reference): New function.
15102 (lower_rec_input_clauses): Use it. Defer adding reference
15103 initialization even for reduction without placeholder if in simd,
15104 handle it properly later on.
15105
15106 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15107
15108 PR tree-optimization/60899
15109 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15110 assume all static symbols will have definition wile parsing and
15111 check the do have definition later in compilation; check that
15112 variable referring symbol will be output before concluding that
15113 reference is safe; be conservative for referring local statics;
15114 be more precise about when comdat is output in other partition.
15115
15116 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15117
15118 PR bootstrap/60984
15119 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15120 parameter.
15121 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15122 (ipa_inline): Loop inline_to_all_callers until no more aliases
15123 are removed.
15124
15125 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15126
15127 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15128 set writeonly flag only for vars actually written to.
15129
15130 2014-05-20 Dehao Chen <dehao@google.com>
15131
15132 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15133 and callee count to get clone count.
15134 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15135 count in copy_body.
15136
15137 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15138
15139 PR rtl-optimization/61243
15140 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15141
15142 2014-05-20 Xinliang David Li <davidxl@google.com>
15143
15144 * cgraphunit.c (walk_polymorphic_call_targets): Add
15145 dbgcnt and fopt-info support.
15146 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15147 * ipa-devirt.c (ipa_devirt): Ditto.
15148 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15149 * ipa.c (walk_polymorphic_call_targets): Ditto.
15150 * gimple-fold.c (fold_gimple_assign): Ditto.
15151 (gimple_fold_call): Ditto.
15152 * dbgcnt.def: New counter.
15153
15154 2014-05-20 DJ Delorie <dj@redhat.com>
15155
15156 * config/msp430/msp430.md (split): Don't allow subregs when
15157 splitting SImode adds.
15158 (andneghi): Fix subtraction logic.
15159 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15160
15161 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15162
15163 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15164 symbols.
15165 * except.c (switch_to_exception_section, resolve_unique_section,
15166 get_named_text_section, default_function_rodata_section,
15167 align_variable, get_block_for_decl, default_section_type_flags):
15168 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15169 * symtab.c (symtab_add_to_same_comdat_group,
15170 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15171 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15172 Likewise.
15173 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15174 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15175 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15176 (c6x_function_in_section_p): Likewise.
15177 * config/darwin.c (machopic_select_section): Likewise.
15178 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15179 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15180 * config/mep/mep.c (mep_select_section): LIkewise.
15181 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15182
15183 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15184
15185 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15186 EH region of calls to pure functions that can throw an exception.
15187 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15188 (copy_reference_ops_from_call): Also copy the EH region of the call if
15189 it can throw an exception.
15190
15191 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15192
15193 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15194 nested VEC_SELECTs that are inverses of each other.
15195
15196 2014-05-20 Richard Biener <rguenther@suse.de>
15197
15198 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15199 (extract_and_process_scc_for_name): not here.
15200 (cond_dom_walker::before_dom_children): Only process
15201 stmts that end the BB in interesting ways.
15202 (run_scc_vn): Mark param uses as visited.
15203
15204 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15205
15206 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15207 arm_restrict_it.
15208
15209 2014-05-20 Nick Clifton <nickc@redhat.com>
15210
15211 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15212 (msp430_gimplify_va_arg_expr): New function.
15213 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15214
15215 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15216 operand 0 in order to prevent confusion about the number of
15217 registers involved.
15218
15219 2014-05-20 Richard Biener <rguenther@suse.de>
15220
15221 PR tree-optimization/61221
15222 * tree-ssa-pre.c (el_to_update): Remove.
15223 (eliminate_dom_walker::before_dom_children): Handle released
15224 VDEFs by value-numbering them to the associated VUSE. Update
15225 stmt immediately for substituted call address.
15226 (eliminate): Remove delayed stmt updating code.
15227 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15228 possibly late re-numbered vuses.
15229 (vn_reference_lookup_2): Adjust.
15230 (vn_reference_lookup_pieces): Likewise.
15231 (vn_reference_lookup): Likewise.
15232
15233 2014-05-20 Richard Biener <rguenther@suse.de>
15234
15235 * config.gcc: Remove need_64bit_hwint.
15236 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15237 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15238 it to be true.
15239 * config.in: Regenerate.
15240 * configure: Likewise.
15241
15242 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15243
15244 * doc/extend.texi: Create Label Attributes section,
15245 move all label attributes into it and reference it.
15246
15247 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15248
15249 * arm.c (thumb1_reorg): When scanning backwards skip anything
15250 that's not a proper insn.
15251
15252 2014-05-19 Richard Biener <rguenther@suse.de>
15253
15254 PR tree-optimization/61221
15255 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15256 Do nothing for unreachable blocks.
15257 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15258 Improve unreachability detection.
15259
15260 2014-05-19 Richard Biener <rguenther@suse.de>
15261
15262 PR tree-optimization/61209
15263 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15264
15265 2014-05-19 Nick Clifton <nickc@redhat.com>
15266
15267 * except.c (init_eh): Fix computation of builtin setjmp buffer
15268 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15269
15270 2014-05-19 Richard Biener <rguenther@suse.de>
15271
15272 PR tree-optimization/61184
15273 * tree-vrp.c (is_negative_overflow_infinity): Use
15274 TREE_OVERFLOW_P and do that check first.
15275 (is_positive_overflow_infinity): Likewise.
15276 (is_overflow_infinity): Likewise.
15277 (vrp_operand_equal_p): Properly treat operands with
15278 differing overflow as not equal.
15279
15280 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15281
15282 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15283 shift simplification where it was intended.
15284
15285 2014-05-19 Christian Bruel <christian.bruel@st.com>
15286
15287 PR target/61195
15288 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15289
15290 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15291
15292 PR target/61084
15293 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15294 than wide_int.
15295
15296 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15297
15298 * reg-notes.def (CROSSING_JUMP): Likewise.
15299 * rtl.h (rtx_def): Update comment for jump flag.
15300 (CROSSING_JUMP_P): Define.
15301 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15302 of a REG_CROSSING_JUMP note.
15303 * cfghooks.c (tidy_fallthru_edges): Likewise.
15304 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15305 * emit-rtl.c (try_split): Likewise.
15306 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15307 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15308 * jump.c (redirect_jump_2): Likewise.
15309 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15310 (relax_delay_slots): Likewise.
15311 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15312 (bbit_di): Likewise.
15313 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15314 * config/sh/sh.md (jump_compact): Likewise.
15315 * bb-reorder.c (rotate_loop): Likewise.
15316 (pass_duplicate_computed_gotos::execute): Likewise.
15317 (add_reg_crossing_jump_notes): Rename to...
15318 (update_crossing_jump_flags): ...this.
15319 (pass_partition_blocks::execute): Update accordingly.
15320
15321 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15322
15323 * tree.h: Remove extraneous template <>.
15324
15325 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15326
15327 * ipa.c (symtab_remove_unreachable_nodes): Remove
15328 symbol from comdat group if its body was eliminated.
15329 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15330 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15331 (symtab_unregister_node): ... this one.
15332 (verify_symtab_base): More strict checking of comdats.
15333 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15334
15335 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15336
15337 * tree-pass.h (make_pass_ipa_comdats): New pass.
15338 * timevar.def (TV_IPA_COMDATS): New timevar.
15339 * passes.def (pass_ipa_comdats): Add.
15340 * Makefile.in (OBJS): Add ipa-comdats.o
15341 * ipa-comdats.c: New file.
15342
15343 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15344
15345 * ipa.c (update_visibility_by_resolution_info): New function.
15346 (function_and_variable_visibility): Use it.
15347
15348 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15349
15350 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15351 New functions.
15352 (FOR_EACH_DEFINED_SYMBOL): New macro.
15353 (varpool_first_static_initializer, varpool_next_static_initializer,
15354 varpool_first_defined_variable, varpool_next_defined_variable):
15355 Fix comments.
15356 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15357
15358 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15359
15360 * ggc-page.c (ggc_handle_finalizers): Add comment.
15361
15362 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15363
15364 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15365 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15366 (ggc_internal_cleared_alloc): Likewise.
15367 * ggc-page.c (finalizer): New class.
15368 (vec_finalizer): Likewise.
15369 (globals::finalizers): New member.
15370 (globals::vec_finalizers): Likewise.
15371 (ggc_internal_alloc): Record the finalizer if any for the block being
15372 allocated.
15373 (ggc_handle_finalizers): New function.
15374 (ggc_collect): Call ggc_handle_finalizers.
15375 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15376 finalizer.
15377 (ggc_internal_cleared_alloc): Likewise.
15378 (finalize): New function.
15379 (need_finalization_p): Likewise.
15380 (ggc_alloc): Install the type's destructor as the finalizer if it
15381 might do something.
15382 (ggc_cleared_alloc): Likewise.
15383 (ggc_vec_alloc): Likewise.
15384 (ggc_cleared_vec_alloc): Likewise.
15385
15386 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15387
15388 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15389
15390 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15391
15392 * alias.c (record_alias_subset): Adjust.
15393 * bitmap.c (bitmap_element_allocate): Likewise.
15394 (bitmap_gc_alloc_stat): Likewise.
15395 * cfg.c (init_flow): Likewise.
15396 (alloc_block): Likewise.
15397 (unchecked_make_edge): Likewise.
15398 * cfgloop.c (alloc_loop): Likewise.
15399 (flow_loops_find): Likewise.
15400 (rescan_loop_exit): Likewise.
15401 * cfgrtl.c (init_rtl_bb_info): Likewise.
15402 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15403 (cgraph_allocate_node): Likewise.
15404 (cgraph_create_edge_1): Likewise.
15405 (cgraph_allocate_init_indirect_info): Likewise.
15406 * cgraphclones.c (cgraph_clone_edge): Likewise.
15407 * cgraphunit.c (add_asm_node): Likewise.
15408 (init_lowered_empty_function): Likewise.
15409 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15410 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15411 (alpha_use_linkage): Likewise.
15412 * config/arc/arc.c (arc_init_machine_status): Likewise.
15413 * config/arm/arm.c (arm_init_machine_status): Likewise.
15414 * config/avr/avr.c (avr_init_machine_status): Likewise.
15415 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15416 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15417 * config/cris/cris.c (cris_init_machine_status): Likewise.
15418 * config/darwin.c (machopic_indirection_name): Likewise.
15419 (darwin_build_constant_cfstring): Likewise.
15420 (darwin_enter_string_into_cfstring_table): Likewise.
15421 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15422 * config/frv/frv.c (frv_init_machine_status): Likewise.
15423 * config/i386/i386.c (get_dllimport_decl): Likewise.
15424 (ix86_init_machine_status): Likewise.
15425 (assign_386_stack_local): Likewise.
15426 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15427 (i386_pe_maybe_record_exported_symbol): Likewise.
15428 (i386_pe_record_stub): Likewise.
15429 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15430 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15431 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15432 (m32c_note_pragma_address): Likewise.
15433 * config/mep/mep.c (mep_init_machine_status): Likewise.
15434 (mep_note_pragma_flag): Likewise.
15435 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15436 (mips16_local_alias): Likewise.
15437 (mips_init_machine_status): Likewise.
15438 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15439 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15440 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15441 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15442 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15443 * config/pa/pa.c (pa_init_machine_status): Likewise.
15444 (pa_get_deferred_plabel): Likewise.
15445 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15446 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15447 (rs6000_init_machine_status): Likewise.
15448 (output_toc): Likewise.
15449 * config/s390/s390.c (s390_init_machine_status): Likewise.
15450 * config/score/score.c (score_output_external): Likewise.
15451 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15452 * config/spu/spu.c (spu_init_machine_status): Likewise.
15453 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15454 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15455 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15456 * coverage.c (coverage_end_function): Likewise.
15457 * dbxout.c (dbxout_init): Likewise.
15458 * doc/gty.texi: Don't mention variable_size attribute.
15459 * dwarf2cfi.c (new_cfi): Adjust.
15460 (new_cfi_row): Likewise.
15461 (copy_cfi_row): Likewise.
15462 (create_cie_data): Likewise.
15463 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15464 (new_loc_descr): Likewise.
15465 (find_AT_string_in_table): Likewise.
15466 (add_addr_table_entry): Likewise.
15467 (new_die): Likewise.
15468 (add_var_loc_to_decl): Likewise.
15469 (clone_die): Likewise.
15470 (clone_as_declaration): Likewise.
15471 (break_out_comdat_types): Likewise.
15472 (new_loc_list): Likewise.
15473 (add_loc_descr_to_each): Likewise.
15474 (add_location_or_const_value_attribute): Likewise.
15475 (add_linkage_name): Likewise.
15476 (lookup_filename): Likewise.
15477 (dwarf2out_var_location): Likewise.
15478 (new_line_info_table): Likewise.
15479 (dwarf2out_init): Likewise.
15480 (mem_loc_descriptor): Likewise.
15481 (loc_descriptor): Likewise.
15482 (add_const_value_attribute): Likewise.
15483 (tree_add_const_value_attribute): Likewise.
15484 (comp_dir_string): Likewise.
15485 (dwarf2out_vms_debug_main_pointer): Likewise.
15486 (string_cst_pool_decl): Likewise.
15487 * emit-rtl.c (set_mem_attrs): Likewise.
15488 (get_reg_attrs): Likewise.
15489 (start_sequence): Likewise.
15490 (init_emit): Likewise.
15491 (init_emit_regs): Likewise.
15492 * except.c (init_eh_for_function): Likewise.
15493 (gen_eh_region): Likewise.
15494 (gen_eh_region_catch): Likewise.
15495 (gen_eh_landing_pad): Likewise.
15496 (add_call_site): Likewise.
15497 * function.c (add_frame_space): Likewise.
15498 (insert_temp_slot_address): Likewise.
15499 (assign_stack_temp_for_type): Likewise.
15500 (get_hard_reg_initial_val): Likewise.
15501 (allocate_struct_function): Likewise.
15502 (prepare_function_start): Likewise.
15503 (types_used_by_var_decl_insert): Likewise.
15504 * gengtype.c (variable_size_p): Remove function.
15505 (enum alloc_quantity): Remove enum.
15506 (write_typed_alloc_def): Remove function.
15507 (write_typed_struct_alloc_def): Likewise.
15508 (write_typed_typedef_alloc_def): Likewise.
15509 (write_typed_alloc_defns): Likewise.
15510 (main): Adjust.
15511 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15512 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15513 * ggc.h (ggc_alloc): new function.
15514 (ggc_cleared_alloc): Likewise.
15515 (ggc_vec_alloc): Template on type of vector element, and remove
15516 element size argument.
15517 (ggc_cleared_vec_alloc): Likewise.
15518 * gimple.c (gimple_build_omp_for): Adjust.
15519 (gimple_copy): Likewise.
15520 * ipa-cp.c (get_replacement_map): Likewise.
15521 (find_aggregate_values_for_callers_subset): Likewise.
15522 (known_aggs_to_agg_replacement_list): Likewise.
15523 * ipa-devirt.c (get_odr_type): Likewise.
15524 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15525 (read_agg_replacement_chain): Likewise.
15526 * loop-iv.c (get_simple_loop_desc): Likewise.
15527 * lto-cgraph.c (input_node_opt_summary): Likewise.
15528 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15529 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15530 (input_eh_region): Likewise.
15531 (input_eh_lp): Likewise.
15532 (input_cfg): Likewise.
15533 * optabs.c (set_optab_libfunc): Likewise.
15534 (init_tree_optimization_optabs): Likewise.
15535 (set_conv_libfunc): Likewise.
15536 * passes.c (do_per_function_toporder): Likewise.
15537 * rtl.h: Don't use variable_size gty attribute.
15538 * sese.c (if_region_set_false_region): Adjust.
15539 * stringpool.c (gt_pch_save_stringpool): Likewise.
15540 * target-globals.c (save_target_globals): Likewise.
15541 * toplev.c (general_init): Likewise.
15542 * trans-mem.c (record_tm_replacement): Likewise.
15543 (split_bb_make_tm_edge): Likewise.
15544 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15545 * tree-data-ref.h (lambda_vector_new): Likewise.
15546 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15547 * tree-iterator.c (tsi_link_before): Likewise.
15548 (tsi_link_after): Likewise.
15549 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15550 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15551 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15552 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15553 * tree-ssa.c (init_tree_ssa): Adjust.
15554 * tree-ssanames.c (set_range_info): Likewise.
15555 (get_ptr_info): Likewise.
15556 (duplicate_ssa_name_ptr_info): Likewise.
15557 (duplicate_ssa_name_range_info): Likewise.
15558 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15559 (unpack_ts_fixed_cst_value_fields): Likewise.
15560 * tree.c (build_fixed): Likewise.
15561 (build_real): Likewise.
15562 (build_string): Likewise.
15563 (decl_priority_info): Likewise.
15564 (decl_debug_expr_insert): Likewise.
15565 (decl_value_expr_insert): Likewise.
15566 (decl_debug_args_insert): Likewise.
15567 (type_hash_add): Likewise.
15568 (build_omp_clause): Likewise.
15569 * ubsan.c (decl_for_type_insert): Likewise.
15570 * varasm.c (get_unnamed_section): Likewise.
15571 (get_noswitch_section): Likewise.
15572 (get_section): Likewise.
15573 (get_block_for_section): Likewise.
15574 (create_block_symbol): Likewise.
15575 (build_constant_desc): Likewise.
15576 (create_constant_pool): Likewise.
15577 (force_const_mem): Likewise.
15578 (record_tm_clone_pair): Likewise.
15579 * varpool.c (varpool_create_empty_node): Likewise.
15580
15581 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15582
15583 * dwarf2out.c (tree_add_const_value_attribute): Call
15584 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15585 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15586 instead of ggc_internal_<x>alloc_stat.
15587 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15588 (ggc_realloc): Likewise.
15589 * ggc-none.c (ggc_internal_alloc): Likewise.
15590 (ggc_internal_cleared_alloc): Likewise.
15591 * ggc-page.c: Likewise.
15592 * ggc.h (ggc_internal_alloc_stat): Likewise.
15593 (ggc_internal_alloc): Remove macro.
15594 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15595 (ggc_internal_cleared_alloc): Remove macro.
15596 (GGC_RESIZEVEC): Adjust.
15597 (ggc_resizevar): Remove macro.
15598 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15599 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15600 (ggc_internal_vec_cleared_alloc): Remove macro.
15601 (ggc_alloc_atomic_stat): Drop _stat suffix.
15602 (ggc_alloc_atomic): Remove macro.
15603 (ggc_alloc_cleared_atomic): Remove macro.
15604 (ggc_alloc_string_stat): Drop _stat suffix.
15605 (ggc_alloc_string): Remove macro.
15606 (ggc_alloc_rtx_def_stat): Adjust.
15607 (ggc_alloc_tree_node_stat): Likewise.
15608 (ggc_alloc_cleared_tree_node_stat): Likewise.
15609 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15610 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15611 * gimple.c (gimple_build_omp_for): Likewise.
15612 (gimple_copy): Likewise.
15613 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15614 * toplev.c (realloc_for_line_map): Adjust.
15615 * tree-data-ref.h (lambda_vector_new): Likewise.
15616 * tree-phinodes.c (allocate_phi_node): Likewise.
15617 * tree.c (grow_tree_vec_stat): Likewise.
15618 * vec.h (va_gc::reserve): Adjust.
15619
15620 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15621
15622 * config/microblaze/microblaze.c (break_handler): New Declaration.
15623 (microblaze_break_function_p,microblaze_is_break_handler): New.
15624 (compute_frame_size): Use microblaze_break_function_p.
15625 Add the test of break_handler.
15626 (microblaze_function_prologue) : Add the test of variable
15627 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15628 (microblaze_function_epilogue) : Add the test of break_handler.
15629 (microblaze_globalize_label) : Add the test of break_handler.
15630 Check the name by BREAK_HANDLER_NAME.
15631
15632 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15633
15634 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15635 microblaze_is_break_handler test.
15636 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15637 Use SYMBOL_REF_DECL.
15638
15639 * config/microblaze/microblaze-protos.h
15640 (microblaze_break_function_p,microblaze_is_break_handler):
15641 New Declaration.
15642
15643 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15644 new MicroBlaze break_handler functions.
15645
15646 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15647
15648 * doc/extend.texi (Size of an asm): Move node text according
15649 to its @menu entry position.
15650
15651 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15652
15653 PR tree-optimization/61140
15654 PR tree-optimization/61150
15655 PR tree-optimization/61197
15656 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15657
15658 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15659
15660 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15661
15662 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15663
15664 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15665 __SIZEOF_INT128__ is defined.
15666
15667 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15668
15669 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15670 (rs6000_delegitimize_address): Use it.
15671
15672 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15673
15674 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15675 inplace argument. Store the new address in the original MEM when true.
15676 * emit-rtl.c (change_address_1): Likewise.
15677 (adjust_address_1, adjust_automodify_address_1, offset_address):
15678 Update accordingly.
15679 * rtl.h (plus_constant): Add an inplace argument.
15680 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15681 when true. Avoid generating (plus X (const_int 0)).
15682 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15683 in-place. Pass true to plus_constant.
15684 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15685
15686 2014-05-16 Dehao Chen <dehao@google.com>
15687
15688 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15689
15690 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15691
15692 PR target/54089
15693 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15694 patterns.
15695 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15696
15697 2014-05-16 Dehao Chen <dehao@google.com>
15698
15699 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15700 optimize_function_for_size_p.
15701 * regs.h (REG_FREQ_FROM_BB): Likewise.
15702
15703 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15704
15705 PR target/51244
15706 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15707 negt_reg_operand cases.
15708 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15709 predicate.
15710 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15711
15712 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15713
15714 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15715 target variants.
15716
15717 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15718
15719 Revert:
15720 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15721
15722 * tree-cfg.c (dump_function_to_file): Dump the return type of
15723 functions, in a line to itself before the function body, mimicking
15724 the layout of a C function.
15725
15726 2014-05-16 Dehao Chen <dehao@google.com>
15727
15728 * cfghooks.c (make_forwarder_block): Use direct computation to
15729 get fall-through edge's count and frequency.
15730
15731 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15732
15733 * config/arc/arc.c (arc_init): Fix typo in error message.
15734 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15735 (split_stack_prologue_scratch_regno): Likewise.
15736 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15737 word from error message.
15738
15739 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15740
15741 * ira-costs.c: Fix typo in comment.
15742
15743 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15744
15745 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15746
15747 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15748
15749 * varpool.c (dump_varpool_node): Dump write-only flag.
15750 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15751 write-only flag.
15752 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15753 write-only variables.
15754 * ipa.c (process_references): New function.
15755 (set_readonly_bit): New function.
15756 (set_writeonly_bit): New function.
15757 (clear_addressable_bit): New function.
15758 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15759 fix handling of aliases.
15760 * cgraph.h (struct varpool_node): Add writeonly flag.
15761
15762 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15763
15764 PR rtl-optimization/60969
15765 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15766 Calculate costs for this case.
15767
15768 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15769
15770 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15771 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15772
15773 2014-05-16 Richard Biener <rguenther@suse.de>
15774
15775 PR tree-optimization/61194
15776 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15777 bool patterns ending in a COND_EXPR.
15778
15779 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15780
15781 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15782
15783 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15784
15785 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15786 where we were unable to cost an RTX.
15787
15788 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15789
15790 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15791 HIGH, LO_SUM.
15792
15793 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15794 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15795
15796 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15797
15798 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15799 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15800
15801 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15802 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15803
15804 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15805 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15806
15807 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15808 operators.
15809
15810 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15811 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15812
15813 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15814 DIV/MOD.
15815
15816 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15817 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15818
15819 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15820 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
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_rtx_costs): Improve costs for
15826 rotates and shifts.
15827
15828 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15829 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15830
15831 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15832 ZERO_EXTEND and SIGN_EXTEND better.
15833
15834 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15835 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15836
15837 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15838 logical operations.
15839
15840 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15841 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15842
15843 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15844 costs when costing loads and stores to memory.
15845
15846 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15847 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15848
15849 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15850 for SET RTX.
15851
15852 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15853
15854 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15855
15856 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15857 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15858
15859 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15860 to...
15861 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15862 well formed.
15863 (aarch64_rtx_mult_cost): New.
15864 (aarch64_rtx_costs): Use it, refactor as appropriate.
15865
15866 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15867 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15868
15869 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15870 emit instructions, return number of instructions which would
15871 be emitted.
15872 (aarch64_add_constant): Update call to aarch64_build_constant.
15873 (aarch64_output_mi_thunk): Likewise.
15874 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15875 a CONST_DOUBLE.
15876
15877 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15878
15879 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15880 (TARGET_RTX_COSTS): Call it.
15881
15882 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15883
15884 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15885 (cortexa57_vector_cost): Likewise.
15886 (cortexa57_tunings): Use them.
15887
15888 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15889
15890 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15891 (cpu_addrcost_table): Use it.
15892 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15893 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15894 move it.
15895
15896 2014-05-16 Richard Biener <rguenther@suse.de>
15897
15898 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15899 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15900 (visit_phi): Ignore edges marked as not executable.
15901 (class cond_dom_walker): New.
15902 (cond_dom_walker::before_dom_children): Value-number
15903 control statements and mark successor edges as not
15904 executable if possible.
15905 (run_scc_vn): First walk all control statements in
15906 dominator order, marking edges as not executable.
15907 * tree-inline.c (copy_edges_for_bb): Be not confused
15908 about random edge flags.
15909
15910 2014-05-16 Richard Biener <rguenther@suse.de>
15911
15912 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15913
15914 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15915
15916 PR target/61193
15917 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15918 (__TM_simple_begin): Use it.
15919 (__TM_begin): Likewise.
15920
15921 2014-05-15 Martin Jambor <mjambor@suse.cz>
15922
15923 PR ipa/61085
15924 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15925 type_preserved flag when the indirect edge is polymorphic.
15926
15927 2014-05-15 Martin Jambor <mjambor@suse.cz>
15928
15929 PR tree-optimization/61090
15930 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15931 build_ref_for_model.
15932
15933 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15934
15935 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15936 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15937
15938 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15939
15940 PR tree-optimization/61158
15941 * fold-const.c (fold_binary_loc): If X is zero-extended and
15942 shiftc >= prec, make sure zerobits is all ones instead of
15943 invoking undefined behavior.
15944
15945 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15946
15947 * regcprop.h: New file.
15948 * regcprop.c (skip_debug_insn_p): New decl.
15949 (replace_oldest_value_reg): Check skip_debug_insn_p.
15950 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15951 * shrink-wrap.c: Include regcprop.h.
15952 (prepare_shrink_wrap): Call
15953 copyprop_hardreg_forward_bb_without_debug_insn.
15954
15955 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15956
15957 * shrink-wrap.h: Update comment.
15958 * shrink-wrap.c: Update comment.
15959 (next_block_for_reg): Rename to live_edge_for_reg.
15960 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15961 (move_insn_for_shrink_wrap): Split live_edge.
15962 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15963
15964 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15965
15966 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15967 Delete.
15968 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15969 * config/sparc/sparc.md (fptype_ut699): New attribute.
15970 (in_branch_delay): Return false if -mfix-ut699 is specified and
15971 fptype_ut699 is set to single.
15972 (truncdfsf2): Add fptype_ut699 attribute.
15973 (fix_truncdfsi2): Likewise.
15974 (floatsisf2): Change fptype attribute.
15975 (fix_truncsfsi2): Likewise.
15976 (negtf2_notv9): Delete.
15977 (negtf2_v9): Likewise.
15978 (negtf2_hq): New instruction.
15979 (negtf2): New instruction and splitter.
15980 (negdf2_notv9): Rewrite.
15981 (abstf2_notv9): Delete.
15982 (abstf2_hq_v9): Likewise.
15983 (abstf2_v9): Likewise.
15984 (abstf2_hq): New instruction.
15985 (abstf2): New instruction and splitter.
15986 (absdf2_notv9): Rewrite.
15987
15988 2014-05-14 Cary Coutant <ccoutant@google.com>
15989
15990 PR debug/61013
15991 * opts.c (common_handle_option): Don't special-case "-g".
15992 (set_debug_level): Default to at least level 2 with "-g".
15993
15994 2014-05-14 DJ Delorie <dj@redhat.com>
15995
15996 * config/msp430/msp430.c (msp430_builtin): Add
15997 MSP430_BUILTIN_DELAY_CYCLES.
15998 (msp430_init_builtins): Register void __delay_cycles(long long).
15999 (msp430_builtin_decl): Add it.
16000 (cg_magic_constant): New.
16001 (msp430_expand_delay_cycles): New.
16002 (msp430_expand_builtin): Call it.
16003 (msp430_print_operand_raw): Change integer printing from "int" to
16004 HOST_WIDE_INT.
16005 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16006 (delay_cycles_start): New.
16007 (delay_cycles_end): New.
16008 (delay_cycles_32): New.
16009 (delay_cycles_32x): New.
16010 (delay_cycles_16): New.
16011 (delay_cycles_16x): New.
16012 (delay_cycles_2): New.
16013 (delay_cycles_1): New.
16014 * doc/extend.texi: Document __delay_cycles().
16015
16016 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16017
16018 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16019 length attribute computation.
16020
16021 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16022
16023 PR debug/61188
16024 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16025
16026 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16027
16028 PR target/61084
16029 * config/sparc/sparc.md: Fix types of low and high in DI constant
16030 splitter. Use gen_int_mode in some other splitters.
16031
16032 2014-05-14 Martin Jambor <mjambor@suse.cz>
16033
16034 PR ipa/60897
16035 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16036
16037 2014-05-14 James Norris <jnorris@codesourcery.com>
16038
16039 * omp-low.c (expand_parallel_call): Remove shadow variable.
16040 (expand_omp_taskreg): Likewise.
16041
16042 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16043
16044 * common/config/i386/i386-common.c
16045 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16046 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16047 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16048 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16049 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16050 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16051 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16052 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16053 xsavecintrin.h, xsavesintrin.h.
16054 (x86_64-*-*): Ditto.
16055 * config/i386/clflushoptintrin.h: New.
16056 * config/i386/xsavecintrin.h: Ditto.
16057 * config/i386/xsavesintrin.h: Ditto.
16058 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16059 (bit_XSAVES): Ditto.
16060 (bit_XSAVES): Ditto.
16061 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16062 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16063 -mno-clflushopt.
16064 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16065 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16066 OPTION_MASK_ISA_XSAVES.
16067 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16068 -mxsavec, -mxsaves.
16069 (PTA_CLFLUSHOPT) Define.
16070 (PTA_XSAVEC): Ditto.
16071 (PTA_XSAVES): Ditto.
16072 (ix86_option_override_internal): Handle new options.
16073 (ix86_valid_target_attribute_inner_p): Ditto.
16074 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16075 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16076 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16077 (bdesc_special_args): Add __builtin_ia32_xsaves,
16078 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16079 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16080 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16081 (ix86_expand_builtin): Handle new builtins.
16082 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16083 (TARGET_CLFLUSHOPT_P): Ditto.
16084 (TARGET_XSAVEC): Ditto.
16085 (TARGET_XSAVEC_P): Ditto.
16086 (TARGET_XSAVES): Ditto.
16087 (TARGET_XSAVES_P): Ditto.
16088 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16089 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16090 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16091 (ANY_XRSTOR): New.
16092 (ANY_XRSTOR64): Ditto.
16093 (xrstor): Ditto.
16094 (xrstor): Change into <xrstor>.
16095 (xrstor_rex64): Change into <xrstor>_rex64.
16096 (xrstor64): Change into <xrstor>64
16097 (clflushopt): New.
16098 * config/i386/i386.opt (mclflushopt): New.
16099 (mxsavec): Ditto.
16100 (mxsaves): Ditto.
16101 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16102 xsavecintrin.h.
16103 * doc/invoke.texi: Document new options.
16104
16105 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16106
16107 PR rtl-optimization/60866
16108 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16109 Default it to -1. Pass it down to init_simplejump_data.
16110 (init_simplejump_data): New parameter old_seqno. Pass it down
16111 to get_seqno_for_a_jump.
16112 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16113 initializing new jump seqno as a last resort. Add comment.
16114 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16115 jump and pass it down to sel_init_new_insn.
16116 (sel_redirect_edge_and_branch_force): Likewise.
16117
16118 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16119
16120 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16121 shifted values to avoid build warning.
16122
16123 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16124
16125 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16126 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16127 (cfg_layout_merge_blocks): Likewise.
16128 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16129
16130 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16131
16132 PR rtl-optimization/60901
16133 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16134 bb predecessor belongs to the same scheduling region. Adjust comment.
16135
16136 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16137
16138 * doc/sourcebuild.texi: (dfp_hw): Document.
16139 (p8vector_hw): Likewise.
16140 (powerpc_eabi_ok): Likewise.
16141 (powerpc_elfv2): Likewise.
16142 (powerpc_htm_ok): Likewise.
16143 (ppc_recip_hw): Likewise.
16144 (vsx_hw): Likewise.
16145
16146 2014-05-13 Cary Coutant <ccoutant@google.com>
16147
16148 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16149
16150 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16151
16152 * gengtype-parse.c (require3): Eliminate in favor of...
16153 (require4): New.
16154 (require_template_declaration): Update to support optional single *
16155 on a type.
16156
16157 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16158 (create_user_defined_type): Handle a single level of explicit
16159 pointerness within template arguments.
16160 (struct write_types_data): Add field "kind".
16161 (filter_type_name): Handle "*" character.
16162 (write_user_func_for_structure_ptr): Require a write_types_data
16163 rather than just a prefix string, so that we can look up the kind
16164 of the wtd and use it as an index into wrote_user_func_for_ptr,
16165 ensuring that such functions are written at most once. Support
16166 subclasses by invoking the marking function of the ultimate base class.
16167 (write_user_func_for_structure_body): Require a write_types_data
16168 rather than just a prefix string, so that we can pass this to
16169 write_user_func_for_structure_ptr.
16170 (write_func_for_structure): Likewise.
16171 (ggc_wtd): Add initializer of new "kind" field.
16172 (pch_wtd): Likewise.
16173
16174 * gengtype.h (enum write_types_kinds): New.
16175 (struct type): Add field wrote_user_func_for_ptr to the "s"
16176 union member.
16177
16178 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16179
16180 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16181 instead of const_binop.
16182 (fold_binary_loc): Likewise.
16183
16184 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16185
16186 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16187 calculation to match get_ref_base_and_extent.
16188
16189 2014-05-13 Catherine Moore <clm@codesourcery.com>
16190 Sandra Loosemore <sandra@codesourcery.com>
16191
16192 * configure.ac: Fix assembly for explicit JALR relocation check.
16193 * configure: Regenerate.
16194
16195 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16196
16197 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16198 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16199 Remove associated type declarations and initialisations.
16200 (arm_expand_neon_builtin): Likewise.
16201 (neon_emit_pair_result_insn): Delete.
16202 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16203 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16204 (neon_vzip<mode>): Likewise.
16205 (neon_vuzp<mode>): Likewise.
16206
16207 2014-05-13 Richard Biener <rguenther@suse.de>
16208
16209 PR ipa/60973
16210 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16211 it needs revisiting whether the call still may be tail-called.
16212
16213 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16214
16215 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16216 * rtl.h (block_symbol): Reduce number of fields to 2.
16217 (rtx_def): Add u2.symbol_ref_flags.
16218 (SYMBOL_REF_FLAGS): Use it.
16219 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16220 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16221 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16222 Lower index of SYMBOL_REF_DATA.
16223 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16224 Print SYMBOL_REF_FLAGS at the same time.
16225 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16226
16227 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16228
16229 * rtl.def (VAR_LOCATION): Remove "i" field.
16230 * rtl.h (rtx_def): Add u2.var_location_status.
16231 (PAT_VAR_LOCATION_STATUS): Use it.
16232 (gen_rtx_VAR_LOCATION): Declare.
16233 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16234 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16235 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16236
16237 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16238
16239 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16240 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16241
16242 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16243
16244 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16245 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16246 * rtl.h (rtx_def): Add insn_uid to u2 field.
16247 (RTX_FLAG_CHECK8): Delete in favor of...
16248 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16249 (INSN_DELETED_P): Update accordingly.
16250 (INSN_UID): Use u2.insn_uid.
16251 (INSN_CHAIN_CODE_P): Define.
16252 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16253 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16254 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16255 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16256 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16257 indices accordingly.
16258 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16259 Update indices for insn-chain rtxes.
16260 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16261 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16262 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16263 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16264 * combine.c (try_combine): Likewise.
16265 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16266
16267 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16268
16269 * rtl.def (REG): Remove middle field.
16270 * rtl.h (rtx_def): Add orignal_regno to u2.
16271 (ORIGINAL_REGNO): Use it instead of field 1.
16272 (REG_ATTRS): Lower field index accordingly.
16273 * gengtype.c (adjust_field_rtx_def): Remove handling of
16274 ORIGINAL_REGNO. Move REG_ATTRS index down.
16275 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16276 code that prints the REGNO.
16277
16278 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16279
16280 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16281 GENERATOR_FILE.
16282
16283 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16284
16285 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16286
16287 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16288
16289 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16290 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16291
16292 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16293
16294 * config/aarch64/aarch64-protos.h
16295 (aarch64_hard_regno_caller_save_mode): New prototype.
16296 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16297 New function.
16298 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16299
16300 2014-05-13 Christian Bruel <christian.bruel@st.com>
16301
16302 * target.def (mode_switching): New hook vector.
16303 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16304 (mode_exit, modepriority_to_mode): Likewise.
16305 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16306 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16307 * target.h: Include tm.h and hard-reg-set.h.
16308 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16309 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16310 * doc/tm.texi Regenerate.
16311 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16312 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16313 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16314 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16315 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16316 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16317 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16318 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16319 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16320 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16321 (ix86_emit_mode_set): Hookify.
16322 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16323 Delete.
16324 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16325 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16326 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16327 (epiphany_mode_priority_to_mode): Remove declaration.
16328 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16329 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16330 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16331 Likewise.
16332 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16333 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16334 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16335
16336 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16337
16338 PR target/61060
16339 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16340 is const0_rtx, return immediately. Don't test count == 0 when
16341 it is always true.
16342
16343 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16344
16345 * Makefile.in: add shrink-wrap.o.
16346 * config/i386/i386.c: include "shrink-wrap.h"
16347 * function.c: Likewise.
16348 (requires_stack_frame_p, next_block_for_reg,
16349 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16350 dup_block_and_redirect): Move to shrink-wrap.c
16351 (thread_prologue_and_epilogue_insns): Extract three code segments
16352 as functions in shrink-wrap.c
16353 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16354 shrink-wrap.h
16355 * shrink-wrap.c: New file.
16356 * shrink-wrap.h: New file.
16357
16358 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16359
16360 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16361 reference to Solaris.
16362
16363 2014-05-12 Mike Stump <mikestump@comcast.net>
16364
16365 PR other/31778
16366 * genattrtab.c (filename): Add.
16367 (convert_set_attr_alternative): Improve error message.
16368 (check_defs): Restore read_md_filename for error messages.
16369 (gen_insn): Save filename.
16370
16371 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16372
16373 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16374 -fno-local-ivars and -fivar-visibility.
16375 * c-family/c.opt: Make -Wshadow also implicitly enable
16376 -Wshadow-ivar.
16377
16378 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16379
16380 * doc/tm.texi: Remove reference to deleted macro.
16381 * doc/tm.texi.in: Likewise.
16382
16383 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16384
16385 PR target/60991
16386 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16387 to restore Y.
16388
16389 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16390
16391 PR libgcc/61152
16392 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16393 * config/arm/aout.h (License): Same.
16394 * config/arm/bpabi.h (License): Same.
16395 * config/arm/elf.h (License): Same.
16396 * config/arm/linux-elf.h (License): Same.
16397 * config/arm/linux-gas.h (License): Same.
16398 * config/arm/netbsd-elf.h (License): Same.
16399 * config/arm/uclinux-eabi.h (License): Same.
16400 * config/arm/uclinux-elf.h (License): Same.
16401 * config/arm/vxworks.h (License): Same.
16402
16403 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16404
16405 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16406 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16407 number of operands to 3.
16408 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16409 * tree-nested.c (convert_nonlocal_omp_clauses,
16410 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16411 * gimplify.c (gimplify_scan_omp_clauses): Handle
16412 OMP_CLAUSE_LINEAR_STMT.
16413 * omp-low.c (lower_rec_input_clauses): Fix typo.
16414 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16415 cast between Fortran boolean_type_node and C _Bool if
16416 needed.
16417
16418 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16419
16420 PR tree-optimization/61136
16421 * wide-int.h (multiple_of_p): Define a version that doesn't return
16422 the quotient.
16423 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16424 integer_zerop/const_binop pair.
16425 (multiple_of_p): Likewise, converting both operands to widest_int
16426 precision.
16427
16428 2014-05-09 Teresa Johnson <tejohnson@google.com>
16429
16430 * cgraphunit.c (analyze_functions): Use correct dump file.
16431
16432 2014-05-09 Florian Weimer <fweimer@redhat.com>
16433
16434 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16435 expand_used_vars.
16436 (stack_protect_return_slot_p): New function.
16437 (expand_used_vars): Call stack_protect_decl_p and
16438 stack_protect_return_slot_p for -fstack-protector-strong.
16439
16440 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16441 Andrew Haley <aph@redhat.com>
16442 Richard Sandiford <rdsandiford@googlemail.com>
16443
16444 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16445 pages.
16446
16447 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16448
16449 PR middle-end/61111
16450 * fold-const.c (fold_binary_loc): Changed width of mask.
16451
16452 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16453
16454 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16455 unsigned int initializers for regno_in, regno_out.
16456
16457 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16458
16459 PR target/61055
16460 * config/avr/avr.md (cc): Add new attribute set_vzn.
16461 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16462 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16463 with INC, DEC or NEG.
16464 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16465 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16466 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16467
16468 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16469
16470 Revert:
16471 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16472
16473 * wide-int.cc (UTItype): Define.
16474 (UDWtype): Define for appropriate W_TYPE_SIZE.
16475
16476 2014-05-09 Richard Biener <rguenther@suse.de>
16477
16478 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16479 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16480 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16481 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16482 ssa_propagate): Adjust.
16483
16484 2014-05-08 Jeff Law <law@redhat.com>
16485
16486 PR tree-optimization/61009
16487 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16488 tri-state rather than a boolean. When a block is too big to
16489 thread through, inform caller via negative return value.
16490 (thread_across_edge): If a block was too big for normal threading,
16491 then it's too big for a joiner too, so remove temporary equivalences
16492 and return immediately.
16493
16494 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16495 Matthias Klose <doko@ubuntu.com>
16496
16497 PR driver/61106
16498 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16499
16500 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16501
16502 PR target/59952
16503 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16504
16505 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16506
16507 PR target/61092
16508 * config/alpha/alpha.c: Include gimple-iterator.h.
16509 (alpha_gimple_fold_builtin): New function. Move
16510 ALPHA_BUILTIN_UMULH folding from ...
16511 (alpha_fold_builtin): ... here.
16512 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16513
16514 2014-05-08 Wei Mi <wmi@google.com>
16515
16516 PR target/58066
16517 * config/i386/i386.c (ix86_compute_frame_layout): Update
16518 preferred_stack_boundary for call, expanded from tls descriptor.
16519 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16520 to depend on SP register.
16521 (*tls_local_dynamic_base_32_gnu): Ditto.
16522 (*tls_local_dynamic_32_once): Ditto.
16523 (tls_global_dynamic_64_<mode>): Set
16524 ix86_tls_descriptor_calls_expanded_in_cfun.
16525 (tls_local_dynamic_base_64_<mode>): Ditto.
16526 (tls_global_dynamic_32): Set
16527 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16528 to depend on SP register.
16529 (tls_local_dynamic_base_32): Ditto.
16530
16531 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16532
16533 * config/arm/arm_neon.h: Update comment.
16534 * config/arm/neon-docgen.ml: Delete.
16535 * config/arm/neon-gen.ml: Delete.
16536 * doc/arm-neon-intrinsics.texi: Update comment.
16537
16538 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16539
16540 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16541 and v4sf versions.
16542 (vand, vorr, veor, vorn, vbic): Remove.
16543 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16544 iterator.
16545 (neon_vsub_unspec): Likewise.
16546 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16547
16548 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16549
16550 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16551 (vadd_s16): Likewise.
16552 (vadd_s32): Likewise.
16553 (vadd_f32): Likewise.
16554 (vadd_u8): Likewise.
16555 (vadd_u16): Likewise.
16556 (vadd_u32): Likewise.
16557 (vadd_s64): Likewise.
16558 (vadd_u64): Likewise.
16559 (vaddq_s8): Likewise.
16560 (vaddq_s16): Likewise.
16561 (vaddq_s32): Likewise.
16562 (vaddq_s64): Likewise.
16563 (vaddq_f32): Likewise.
16564 (vaddq_u8): Likewise.
16565 (vaddq_u16): Likewise.
16566 (vaddq_u32): Likewise.
16567 (vaddq_u64): Likewise.
16568 (vmul_s8): Likewise.
16569 (vmul_s16): Likewise.
16570 (vmul_s32): Likewise.
16571 (vmul_f32): Likewise.
16572 (vmul_u8): Likewise.
16573 (vmul_u16): Likewise.
16574 (vmul_u32): Likewise.
16575 (vmul_p8): Likewise.
16576 (vmulq_s8): Likewise.
16577 (vmulq_s16): Likewise.
16578 (vmulq_s32): Likewise.
16579 (vmulq_f32): Likewise.
16580 (vmulq_u8): Likewise.
16581 (vmulq_u16): Likewise.
16582 (vmulq_u32): Likewise.
16583 (vsub_s8): Likewise.
16584 (vsub_s16): Likewise.
16585 (vsub_s32): Likewise.
16586 (vsub_f32): Likewise.
16587 (vsub_u8): Likewise.
16588 (vsub_u16): Likewise.
16589 (vsub_u32): Likewise.
16590 (vsub_s64): Likewise.
16591 (vsub_u64): Likewise.
16592 (vsubq_s8): Likewise.
16593 (vsubq_s16): Likewise.
16594 (vsubq_s32): Likewise.
16595 (vsubq_s64): Likewise.
16596 (vsubq_f32): Likewise.
16597 (vsubq_u8): Likewise.
16598 (vsubq_u16): Likewise.
16599 (vsubq_u32): Likewise.
16600 (vsubq_u64): Likewise.
16601 (vand_s8): Likewise.
16602 (vand_s16): Likewise.
16603 (vand_s32): Likewise.
16604 (vand_u8): Likewise.
16605 (vand_u16): Likewise.
16606 (vand_u32): Likewise.
16607 (vand_s64): Likewise.
16608 (vand_u64): Likewise.
16609 (vandq_s8): Likewise.
16610 (vandq_s16): Likewise.
16611 (vandq_s32): Likewise.
16612 (vandq_s64): Likewise.
16613 (vandq_u8): Likewise.
16614 (vandq_u16): Likewise.
16615 (vandq_u32): Likewise.
16616 (vandq_u64): Likewise.
16617 (vorr_s8): Likewise.
16618 (vorr_s16): Likewise.
16619 (vorr_s32): Likewise.
16620 (vorr_u8): Likewise.
16621 (vorr_u16): Likewise.
16622 (vorr_u32): Likewise.
16623 (vorr_s64): Likewise.
16624 (vorr_u64): Likewise.
16625 (vorrq_s8): Likewise.
16626 (vorrq_s16): Likewise.
16627 (vorrq_s32): Likewise.
16628 (vorrq_s64): Likewise.
16629 (vorrq_u8): Likewise.
16630 (vorrq_u16): Likewise.
16631 (vorrq_u32): Likewise.
16632 (vorrq_u64): Likewise.
16633 (veor_s8): Likewise.
16634 (veor_s16): Likewise.
16635 (veor_s32): Likewise.
16636 (veor_u8): Likewise.
16637 (veor_u16): Likewise.
16638 (veor_u32): Likewise.
16639 (veor_s64): Likewise.
16640 (veor_u64): Likewise.
16641 (veorq_s8): Likewise.
16642 (veorq_s16): Likewise.
16643 (veorq_s32): Likewise.
16644 (veorq_s64): Likewise.
16645 (veorq_u8): Likewise.
16646 (veorq_u16): Likewise.
16647 (veorq_u32): Likewise.
16648 (veorq_u64): Likewise.
16649 (vbic_s8): Likewise.
16650 (vbic_s16): Likewise.
16651 (vbic_s32): Likewise.
16652 (vbic_u8): Likewise.
16653 (vbic_u16): Likewise.
16654 (vbic_u32): Likewise.
16655 (vbic_s64): Likewise.
16656 (vbic_u64): Likewise.
16657 (vbicq_s8): Likewise.
16658 (vbicq_s16): Likewise.
16659 (vbicq_s32): Likewise.
16660 (vbicq_s64): Likewise.
16661 (vbicq_u8): Likewise.
16662 (vbicq_u16): Likewise.
16663 (vbicq_u32): Likewise.
16664 (vbicq_u64): Likewise.
16665 (vorn_s8): Likewise.
16666 (vorn_s16): Likewise.
16667 (vorn_s32): Likewise.
16668 (vorn_u8): Likewise.
16669 (vorn_u16): Likewise.
16670 (vorn_u32): Likewise.
16671 (vorn_s64): Likewise.
16672 (vorn_u64): Likewise.
16673 (vornq_s8): Likewise.
16674 (vornq_s16): Likewise.
16675 (vornq_s32): Likewise.
16676 (vornq_s64): Likewise.
16677 (vornq_u8): Likewise.
16678 (vornq_u16): Likewise.
16679 (vornq_u32): Likewise.
16680 (vornq_u64): Likewise.
16681
16682 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16683
16684 * wide-int.cc (UTItype): Define.
16685 (UDWtype): Define for appropriate W_TYPE_SIZE.
16686
16687 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16688
16689 PR tree-optimization/59100
16690 * tree-ssa-phiopt.c: Include tree-inline.h.
16691 (neutral_element_p, absorbing_element_p): New functions.
16692 (value_replacement): Handle conditional binary operations with a
16693 neutral or absorbing element.
16694
16695 2014-05-08 Richard Biener <rguenther@suse.de>
16696
16697 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16698 folding the expression.
16699 (valueize_expr): Remove.
16700 (visit_reference_op_load): Do not valueize the result of
16701 vn_get_expr_for.
16702 (simplify_binary_expression): Likewise.
16703 (simplify_unary_expression): Likewise.
16704
16705 2014-05-08 Richard Biener <rguenther@suse.de>
16706
16707 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16708 looking at TYPE_ARG_TYPES.
16709
16710 2014-05-08 Richard Biener <rguenther@suse.de>
16711
16712 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16713 pointer propagation special-case.
16714
16715 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16716
16717 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16718 core part of address expressions.
16719
16720 2014-05-08 Alan Modra <amodra@gmail.com>
16721
16722 PR target/60737
16723 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16724 loads and stores when -mno-strict-align at any alignment.
16725 (expand_block_clear): Similarly. Also correct calculation of
16726 instruction count.
16727
16728 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16729
16730 PR middle-end/39246
16731 * tree-complex.c (expand_complex_move): Keep line info when expanding
16732 complex move.
16733 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16734 of complex expression. Use new argument to display correct location
16735 for values coming from phi statement.
16736 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16737 (warn_uninitialized_phi): Pass location of phi argument to
16738 warn_uninit.
16739 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16740 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16741
16742 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16743
16744 * config/rs6000/predicates.md (indexed_address_mem): New.
16745 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16746 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16747 fpstore_ux, fpstore_u.
16748 (sign_extend, indexed, update): New.
16749 (cell_micro): Adjust.
16750 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16751 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16752 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16753 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16754 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16755 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16756 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16757 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16758 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16759 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16760 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16761 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16762 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16763 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16764 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16765
16766 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16767 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16768 *vsx_extract_<mode>_store): Adjust.
16769 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16770 is_cracked_insn, insn_must_be_first_in_group,
16771 insn_must_be_last_in_group): Adjust.
16772
16773 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16774 Adjust.
16775 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16776 ppc440-fpstore): Adjust.
16777 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16778 ppc476-fpstore): Adjust.
16779 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16780 ppc601-fpstore): Adjust.
16781 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16782 Adjust.
16783 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16784 Adjust.
16785 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16786 ppc7450-fpstore): Adjust.
16787 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16788 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16789 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16790 Adjust.
16791 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16792 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16793 cell-fpstore, cell-fpstore-update): Adjust.
16794 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16795 ppce300c3_store, ppce300c3_fpstore): Adjust.
16796 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16797 e500mc_fpstore): Adjust.
16798 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16799 e500mc64_store, e500mc64_fpstore): Adjust.
16800 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16801 e5500_fpstore): Adjust.
16802 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16803 e6500_fpstore): Adjust.
16804 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16805 Adjust.
16806 * config/rs6000/power4.md (power4-load, power4-load-ext,
16807 power4-load-ext-update, power4-load-ext-update-indexed,
16808 power4-load-update-indexed, power4-load-update, power4-fpload,
16809 power4-fpload-update, power4-store, power4-store-update,
16810 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16811 Adjust.
16812 * config/rs6000/power5.md (power5-load, power5-load-ext,
16813 power5-load-ext-update, power5-load-ext-update-indexed,
16814 power5-load-update-indexed, power5-load-update, power5-fpload,
16815 power5-fpload-update, power5-store, power5-store-update,
16816 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16817 Adjust.
16818 * config/rs6000/power6.md (power6-load, power6-load-ext,
16819 power6-load-update, power6-load-update-indexed,
16820 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16821 power6-fpload-update, power6-store, power6-store-update,
16822 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16823 Adjust.
16824 * config/rs6000/power7.md (power7-load, power7-load-ext,
16825 power7-load-update, power7-load-update-indexed,
16826 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16827 power7-fpload-update, power7-store, power7-store-update,
16828 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16829 Adjust.
16830 * config/rs6000/power8.md (power8-load, power8-load-update,
16831 power8-load-ext, power8-load-ext-update, power8-fpload,
16832 power8-fpload-update, power8-store, power8-store-update-indexed,
16833 power8-fpstore, power8-fpstore-update): Adjust.
16834 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16835 Adjust.
16836 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16837 titan_lsu_store, titan_lsu_fpstore): Adjust.
16838 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16839
16840 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16841
16842 PR target/60884
16843 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16844 unrolled byte insns. Emit address increments after move insns.
16845
16846 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16847
16848 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16849 const_gimple, rather than a gimple.
16850 (gimple_call_builtin_p): Likewise, for the three variants.
16851
16852 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16853 (gimple_call_builtin_p): Likewise, for the three variants.
16854
16855 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16856
16857 PR tree-optimization/61095
16858 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16859
16860 2014-05-07 Richard Biener <rguenther@suse.de>
16861
16862 PR tree-optimization/61034
16863 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16864 (maybe_skip_until): Use translate to take into account
16865 lattices when trying to do disambiguations.
16866 (get_continuation_for_phi_1): Likewise.
16867 (get_continuation_for_phi): Adjust for added translate arguments.
16868 (walk_non_aliased_vuses): Likewise.
16869 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16870 (walk_non_aliased_vuses): Likewise.
16871 (call_may_clobber_ref_p_1): Declare.
16872 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16873 calls. Stop early if we are only supposed to disambiguate.
16874 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16875
16876 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16877
16878 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16879 Emit an error when the function has arguments.
16880
16881 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16882
16883 * cfgloop.h (unswitch_loops): Remove.
16884 * doc/passes.texi: Remove references to loop-unswitch.c
16885 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16886
16887 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16888
16889 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16890 check for loads group of length 3.
16891 (vect_permute_load_chain): New permutations for loads group of
16892 length 3.
16893 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16894 of vec_perm_shuffle for the new permutations.
16895
16896 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16897
16898 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16899 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16900 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16901 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16902 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16903 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16904 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16905 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16906
16907 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16908
16909 * loop-unswitch.c: Delete.
16910
16911 2014-05-07 Richard Biener <rguenther@suse.de>
16912
16913 * config.gcc: Always set need_64bit_hwint to yes.
16914
16915 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16916
16917 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16918 of using optimize_size.
16919
16920 2014-05-06 Mike Stump <mikestump@comcast.net>
16921
16922 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16923
16924 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16925
16926 * config/i386/sse.md (*mov<mode>_internal)
16927 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16928 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16929 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16930 (*<code><mode>3, *andnot<mode>3<mask_name>)
16931 (<mask_codefor><code><mode>3<mask_name>): Only consider
16932 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16933
16934 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16935
16936 Revert:
16937 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16938
16939 * lra-constraints.c (valid_address_p): Move earlier in file.
16940 Add a constraint argument to the address_info version.
16941 (satisfies_memory_constraint_p): New function.
16942 (satisfies_address_constraint_p): Likewise.
16943 (process_alt_operands, curr_insn_transform): Use them.
16944 (process_address): Pass the constraint to valid_address_p when
16945 checking address operands.
16946
16947 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16948
16949 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16950 to their respective blocks. Fix inadvertent use of "node".
16951
16952 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16953
16954 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16955 out from...
16956 (init_emit_once): ...here.
16957 * rtl.h (init_derived_machine_modes): Declare.
16958 * toplev.c (do_compile): Call it even if no_backend.
16959
16960 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16961 Mike Stump <mikestump@comcast.net>
16962 Richard Sandiford <rdsandiford@googlemail.com>
16963 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16964
16965 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16966 (rtx_equal_for_memref_p): Update comment.
16967 (adjust_offset_for_component_ref): Use wide-int interfaces.
16968 * builtins.c (get_object_alignment_2): Likewise.
16969 (c_readstr): Likewise.
16970 (target_char_cast): Add comment.
16971 (determine_block_size): Use wide-int interfaces.
16972 (expand_builtin_signbit): Likewise.
16973 (fold_builtin_int_roundingfn): Likewise.
16974 (fold_builtin_bitop): Likewise.
16975 (fold_builtin_bswap): Likewise.
16976 (fold_builtin_logarithm): Use signop.
16977 (fold_builtin_pow): Likewise.
16978 (fold_builtin_memory_op): Use wide-int interfaces.
16979 (fold_builtin_object_size): Likewise.
16980 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16981 nb_iterations_estimate.
16982 (record_niter_bound): Use wide-int interfaces.
16983 (get_estimated_loop_iterations_int): Likewise.
16984 (get_estimated_loop_iterations): Likewise.
16985 (get_max_loop_iterations): Likewise.
16986 * cfgloop.h: Include wide-int.h.
16987 (struct nb_iter_bound): Change bound to widest_int.
16988 (struct loop): Change nb_iterations_upper_bound and
16989 nb_iterations_estimate to widest_int.
16990 (record_niter_bound): Switch to use widest_int.
16991 (get_estimated_loop_iterations): Likewise.
16992 (get_max_loop_iterations): Likewise.
16993 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16994 update for wide-int.
16995 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16996 * combine.c (try_combine): Likewise.
16997 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16998 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16999 interfaces.
17000 (aarch64_float_const_representable_p): Likewise.
17001 * config/arc/arc.c: Include wide-int.h.
17002 (arc_can_use_doloop_p): Use wide-int interfaces.
17003 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17004 (vfp3_const_double_index): Likewise.
17005 * config/avr/avr.c (avr_out_round): Likewise.
17006 (avr_fold_builtin): Likewise.
17007 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17008 (bfin_can_use_doloop_p): Likewise.
17009 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17010 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17011 * config/i386/i386.c: Include wide-int.h.
17012 (ix86_data_alignment): Use wide-int interfaces.
17013 (ix86_local_alignment): Likewise.
17014 (ix86_emit_swsqrtsf): Update real_from_integer.
17015 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17016 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17017 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17018 (zero_constant): Likewise.
17019 (input_operand): Likewise.
17020 (splat_input_operand): Likewise.
17021 (non_logical_cint_operand): Change const_double to const_wide_int.
17022 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17023 (easy_altivec_constant): Remove comment.
17024 (paired_expand_vector_init): Use CONSTANT_P.
17025 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17026 (rs6000_emit_move): Update checks.
17027 (rs6000_aggregate_candidate): Use wide-int interfaces.
17028 (rs6000_expand_ternop_builtin): Likewise.
17029 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17030 (rs6000_assemble_integer): Likewise.
17031 (rs6000_hash_constant): Likewise.
17032 (output_toc): Likewise.
17033 (rs6000_rtx_costs): Likewise.
17034 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17035 * config/rs6000/rs6000-c.c: Include wide-int.h.
17036 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17037 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17038 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17039 Handle CONST_WIDE_INT.
17040 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17041 Use tree_fits_uhwi_p.
17042 * config/sparc/sparc.c: Include wide-int.h.
17043 (sparc_fold_builtin): Use wide-int interfaces.
17044 * config/vax/vax.c: Include wide-int.h.
17045 (vax_float_literal): Use real_from_integer.
17046 * coretypes.h (struct hwivec_def): New.
17047 (hwivec): New.
17048 (const_hwivec): New.
17049 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17050 (equiv_constant): Handle CONST_WIDE_INT.
17051 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17052 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17053 * dbxout.c (stabstr_U): Use wide-int interfaces.
17054 (dbxout_type): Update to use cst_fits_shwi_p.
17055 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17056 (TARGET_SUPPORTS_WIDE_INT): Add default.
17057 * dfp.c: Include wide-int.h.
17058 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17059 decimal_real_to_integer.
17060 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17061 decimal_real_to_integer.
17062 * doc/generic.texi (Constant expressions): Update for wide_int.
17063 * doc/rtl.texi (const_double): Likewise.
17064 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17065 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17066 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17067 (REAL_VALUE_FROM_INT): Remove.
17068 (TARGET_SUPPORTS_WIDE_INT): New.
17069 * doc/tm.texi: Regenerate.
17070 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17071 * double-int.h: Include wide-int.h.
17072 (struct wi::int_traits): New.
17073 * dwarf2out.c (get_full_len): New.
17074 (dw_val_equal_p): Add case dw_val_class_wide_int.
17075 (size_of_loc_descr): Likewise.
17076 (output_loc_operands): Likewise.
17077 (insert_double): Remove.
17078 (insert_wide_int): New.
17079 (add_AT_wide): New.
17080 (print_die): Add case dw_val_class_wide_int.
17081 (attr_checksum): Likewise.
17082 (attr_checksum_ordered): Likewise.
17083 (same_dw_val_p): Likewise.
17084 (size_of_die): Likewise.
17085 (value_format): Likewise.
17086 (output_die): Likewise.
17087 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17088 Use wide-int.
17089 (clz_loc_descriptor): Use wide-int interfaces.
17090 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17091 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17092 (round_up_to_align): Use wide-int interfaces.
17093 (field_byte_offset): Likewise.
17094 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17095 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17096 CONST_DOUBLE handling. Use wide-int interfaces.
17097 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17098 (gen_enumeration_type_die): Use add_AT_wide.
17099 (hash_loc_operands): Add case dw_val_class_wide_int.
17100 (compare_loc_operands): Likewise.
17101 * dwarf2out.h: Include wide-int.h.
17102 (wide_int_ptr): New.
17103 (enum dw_val_class): Add dw_val_class_wide_int.
17104 (struct dw_val_struct): Add val_wide.
17105 * emit-rtl.c (const_wide_int_htab): New.
17106 (const_wide_int_htab_hash): New.
17107 (const_wide_int_htab_eq): New.
17108 (lookup_const_wide_int): New.
17109 (const_double_htab_hash): Use wide-int interfaces.
17110 (const_double_htab_eq): Likewise.
17111 (rtx_to_double_int): Conditionally compile for wide-int.
17112 (immed_double_int_const): Rename to immed_wide_int_const and
17113 update for wide-int.
17114 (immed_double_const): Conditionally compile for wide-int.
17115 (init_emit_once): Use wide-int interfaces.
17116 * explow.c (plus_constant): Likewise.
17117 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17118 (lshift_value): Use wide-int interfaces.
17119 (expand_mult): Likewise.
17120 (choose_multiplier): Likewise.
17121 (expand_smod_pow2): Likewise.
17122 (make_tree): Likewise.
17123 * expr.c (convert_modes): Consolidate handling of constants.
17124 Use wide-int interfaces.
17125 (emit_group_load_1): Add note.
17126 (store_expr): Update comment.
17127 (get_inner_reference): Use wide-int interfaces.
17128 (expand_constructor): Update comment.
17129 (expand_expr_real_2): Use wide-int interfaces.
17130 (expand_expr_real_1): Likewise.
17131 (reduce_to_bit_field_precision): Likewise.
17132 (const_vector_from_tree): Likewise.
17133 * final.c: Include wide-int-print.h.
17134 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17135 * fixed-value.c: Include wide-int.h.
17136 (fixed_from_string): Use wide-int interfaces.
17137 (fixed_to_decimal): Likewise.
17138 (fixed_convert_from_real): Likewise.
17139 (real_convert_from_fixed): Likewise.
17140 * fold-const.h (mem_ref_offset): Return an offset_int.
17141 (div_if_zero_remainder): Remove code parameter.
17142 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17143 Use wide-int interfaces.
17144 (may_negate_without_overflow_p): Use wide-int interfaces.
17145 (negate_expr_p): Likewise.
17146 (fold_negate_expr): Likewise.
17147 (int_const_binop_1): Likewise.
17148 (const_binop): Likewise.
17149 (fold_convert_const_int_from_int): Likewise.
17150 (fold_convert_const_int_from_real): Likewise.
17151 (fold_convert_const_int_from_fixed): Likewise.
17152 (fold_convert_const_fixed_from_int): Likewise.
17153 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17154 (sign_bit_p): Use wide-int interfaces.
17155 (make_range_step): Likewise.
17156 (build_range_check): Likewise. Pass an integer of the correct type
17157 instead of using integer_one_node.
17158 (range_predecessor): Pass an integer of the correct type instead
17159 of using integer_one_node.
17160 (range_successor): Likewise.
17161 (merge_ranges): Likewise.
17162 (unextend): Use wide-int interfaces.
17163 (extract_muldiv_1): Likewise.
17164 (fold_div_compare): Likewise.
17165 (fold_single_bit_test): Likewise.
17166 (fold_sign_changed_comparison): Likewise.
17167 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17168 (fold_plusminus_mult_expr): Use wide-int interfaces.
17169 (native_encode_int): Likewise.
17170 (native_interpret_int): Likewise.
17171 (fold_unary_loc): Likewise.
17172 (pointer_may_wrap_p): Likewise.
17173 (size_low_cst): Likewise.
17174 (mask_with_tz): Likewise.
17175 (fold_binary_loc): Likewise.
17176 (fold_ternary_loc): Likewise.
17177 (multiple_of_p): Likewise.
17178 (tree_call_nonnegative_warnv_p): Update calls to
17179 tree_int_cst_min_precision and real_from_integer.
17180 (fold_negate_const): Use wide-int interfaces.
17181 (fold_abs_const): Likewise.
17182 (fold_relational_const): Use tree_int_cst_lt.
17183 (round_up_loc): Use wide-int interfaces.
17184 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17185 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17186 * gengtype.c: Remove include of double-int.h.
17187 (do_typedef): Use wide-int interfaces.
17188 (open_base_files): Add wide-int.h.
17189 (main): Add offset_int and widest_int typedefs.
17190 * gengtype-lex.l: Handle "^".
17191 (CXX_KEYWORD): Add "static".
17192 * gengtype-parse.c (require3): New.
17193 (require_template_declaration): Handle constant template arguments
17194 and nested templates.
17195 * gengtype-state.c: Don't include "double-int.h".
17196 * genpreds.c (write_one_predicate_function): Update comment.
17197 (write_tm_constrs_h): Add check for hval and lval use in
17198 CONST_WIDE_INT.
17199 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17200 (add_to_sequence): Likewise.
17201 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17202 and const_double_operand.
17203 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17204 interfaces.
17205 * gimple-fold.c (get_base_constructor): Likewise.
17206 (fold_array_ctor_reference): Likewise.
17207 (fold_nonarray_ctor_reference): Likewise.
17208 (fold_const_aggregate_ref_1): Likewise.
17209 (gimple_val_nonnegative_real_p): Likewise.
17210 (gimple_fold_indirect_ref): Likewise.
17211 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17212 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17213 (struct slsr_cand_d): Change index to be widest_int.
17214 (struct incr_info_d): Change incr to be widest_int.
17215 (alloc_cand_and_find_basis): Use wide-int interfaces.
17216 (slsr_process_phi): Likewise.
17217 (backtrace_base_for_ref): Likewise. Return a widest_int.
17218 (restructure_reference): Take a widest_int instead of a double_int.
17219 (slsr_process_ref): Use wide-int interfaces.
17220 (create_mul_ssa_cand): Likewise.
17221 (create_mul_imm_cand): Likewise.
17222 (create_add_ssa_cand): Likewise.
17223 (create_add_imm_cand): Take a widest_int instead of a double_int.
17224 (slsr_process_add): Use wide-int interfaces.
17225 (slsr_process_cast): Likewise.
17226 (slsr_process_copy): Likewise.
17227 (dump_candidate): Likewise.
17228 (dump_incr_vec): Likewise.
17229 (replace_ref): Likewise.
17230 (cand_increment): Likewise. Return a widest_int.
17231 (cand_abs_increment): Likewise.
17232 (replace_mult_candidate): Take a widest_int instead of a double_int.
17233 (replace_unconditional_candidate): Use wide-int interfaces.
17234 (incr_vec_index): Take a widest_int instead of a double_int.
17235 (create_add_on_incoming_edge): Likewise.
17236 (create_phi_basis): Use wide-int interfaces.
17237 (replace_conditional_candidate): Likewise.
17238 (record_increment): Take a widest_int instead of a double_int.
17239 (record_phi_increments): Use wide-int interfaces.
17240 (phi_incr_cost): Take a widest_int instead of a double_int.
17241 (lowest_cost_path): Likewise.
17242 (total_savings): Likewise.
17243 (analyze_increments): Use wide-int interfaces.
17244 (ncd_with_phi): Take a widest_int instead of a double_int.
17245 (ncd_of_cand_and_phis): Likewise.
17246 (nearest_common_dominator_for_cands): Likewise.
17247 (insert_initializers): Use wide-int interfaces.
17248 (all_phi_incrs_profitable): Likewise.
17249 (replace_one_candidate): Likewise.
17250 (replace_profitable_candidates): Likewise.
17251 * godump.c: Include wide-int-print.h.
17252 (go_output_typedef): Use wide-int interfaces.
17253 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17254 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17255 (build_loop_iteration_domains): Likewise.
17256 * hooks.h: Include wide-int.h rather than double-int.h.
17257 (hook_bool_dint_dint_uint_bool_true): Delete.
17258 (hook_bool_wint_wint_uint_bool_true): Declare.
17259 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17260 (hook_bool_wint_wint_uint_bool_true): New.
17261 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17262 interfaces.
17263 (ubsan_expand_si_overflow_mul_check): Likewise.
17264 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17265 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17266 (get_ancestor_addr_info): Likewise.
17267 (ipa_modify_call_arguments): Likewise.
17268 * loop-doloop.c (doloop_modify): Likewise.
17269 (doloop_optimize): Likewise.
17270 * loop-iv.c (iv_number_of_iterations): Likewise.
17271 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17272 (unroll_loop_constant_iterations): Likewise.
17273 (decide_unroll_runtime_iterations): Likewise.
17274 (unroll_loop_runtime_iterations): Likewise.
17275 (decide_peel_simple): Likewise.
17276 (decide_unroll_stupid): Likewise.
17277 * lto-streamer-in.c (streamer_read_wi): Add.
17278 (input_cfg): Use wide-int interfaces.
17279 (lto_input_tree_1): Likewise.
17280 * lto-streamer-out.c (streamer_write_wi): Add.
17281 (hash_tree): Use wide-int interfaces.
17282 (output_cfg): Likewise.
17283 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17284 (GTFILES): Add wide-int.h and signop.h.
17285 (TAGS): Look for .cc files too.
17286 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17287 * optabs.c (expand_subword_shift): Likewise.
17288 (expand_doubleword_shift): Likewise.
17289 (expand_absneg_bit): Likewise.
17290 (expand_copysign_absneg): Likewise.
17291 (expand_copysign_bit): Likewise.
17292 * postreload.c (reload_cse_simplify_set): Likewise.
17293 * predict.c (predict_iv_comparison): Likewise.
17294 * pretty-print.h: Include wide-int-print.h.
17295 (pp_wide_int) New.
17296 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17297 * print-tree.c: Include wide-int-print.h.
17298 (print_node_brief): Use wide-int interfaces.
17299 (print_node): Likewise.
17300 * read-rtl.c (validate_const_wide_int): New.
17301 (read_rtx_code): Add CONST_WIDE_INT case.
17302 * real.c: Include wide-int.h.
17303 (real_to_integer2): Delete.
17304 (real_to_integer): New function, returning a wide_int.
17305 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17306 (ten_to_ptwo): Update call to real_from_integer.
17307 (real_digit): Likewise.
17308 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17309 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17310 (REAL_VALUE_TO_INT): Delete.
17311 (real_to_integer): Declare a wide-int form.
17312 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17313 * recog.c (const_int_operand): Improve comment.
17314 (const_scalar_int_operand): New.
17315 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17316 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17317 (split_double): Likewise.
17318 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17319 (rtx_size): Likewise.
17320 (rtx_alloc_stat_v): New.
17321 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17322 (cwi_output_hex): New.
17323 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17324 (cwi_check_failed_bounds): New.
17325 * rtl.def (CONST_WIDE_INT): New.
17326 * rtl.h: Include <utility> and wide-int.h.
17327 (struct hwivec_def): New.
17328 (CWI_GET_NUM_ELEM): New.
17329 (CWI_PUT_NUM_ELEM): New.
17330 (struct rtx_def): Add num_elem and hwiv.
17331 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17332 (CASE_CONST_UNIQUE): Likewise.
17333 (CASE_CONST_ANY): Likewise.
17334 (CONST_SCALAR_INT_P): Likewise.
17335 (CONST_WIDE_INT_P): New.
17336 (CWI_ELT): New.
17337 (HWIVEC_CHECK): New.
17338 (cwi_check_failed_bounds): New.
17339 (CWI_ELT): New.
17340 (HWIVEC_CHECK): New.
17341 (CONST_WIDE_INT_VEC) New.
17342 (CONST_WIDE_INT_NUNITS) New.
17343 (CONST_WIDE_INT_ELT) New.
17344 (rtx_mode_t): New type.
17345 (wi::int_traits <rtx_mode_t>): New.
17346 (wi::shwi): New.
17347 (wi::min_value): New.
17348 (wi::max_value): New.
17349 (rtx_alloc_v) New.
17350 (const_wide_int_alloc): New.
17351 (immed_wide_int_const): New.
17352 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17353 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17354 * signop.h: New file.
17355 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17356 (simplify_const_unary_operation): Use wide-int interfaces.
17357 (simplify_binary_operation_1): Likewise.
17358 (simplify_const_binary_operation): Likewise.
17359 (simplify_const_relational_operation): Likewise.
17360 (simplify_immed_subreg): Likewise.
17361 * stmt.c (expand_case): Likewise.
17362 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17363 signop rather than a bool.
17364 * stor-layout.c (layout_type): Use wide-int interfaces.
17365 (initialize_sizetypes): Update calls to
17366 set_min_and_max_values_for_integral_type.
17367 (set_min_and_max_values_for_integral_type): Take a signop rather
17368 than a bool. Use wide-int interfaces.
17369 (fixup_signed_type): Update accordingly. Remove
17370 HOST_BITS_PER_DOUBLE_INT limit.
17371 (fixup_unsigned_type): Likewise.
17372 * system.h (STATIC_CONSTANT_P): New.
17373 (STATIC_ASSERT): New.
17374 * target.def (can_use_doloop_p): Take widest_ints rather than
17375 double_ints.
17376 * target.h: Include wide-int.h rather than double-int.h.
17377 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17378 than double_ints.
17379 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17380 rather than INT_CST_LT_UNSIGNED.
17381 (can_use_doloop_if_innermost): Take widest_ints rather than
17382 double_ints.
17383 * tree-affine.c: Include wide-int-print.h.
17384 (double_int_ext_for_comb): Delete.
17385 (wide_int_ext_for_comb): New.
17386 (aff_combination_zero): Use wide-int interfaces.
17387 (aff_combination_const): Take a widest_int instead of a double_int.
17388 (aff_combination_elt): Use wide-int interfaces.
17389 (aff_combination_scale): Take a widest_int instead of a double_int.
17390 (aff_combination_add_elt): Likewise.
17391 (aff_combination_add_cst): Likewise.
17392 (aff_combination_add): Use wide-int interfaces.
17393 (aff_combination_convert): Likewise.
17394 (tree_to_aff_combination): Likewise.
17395 (add_elt_to_tree): Take a widest_int instead of a double_int.
17396 (aff_combination_to_tree): Use wide-int interfaces.
17397 (aff_combination_remove_elt): Likewise.
17398 (aff_combination_add_product): Take a widest_int instead of
17399 a double_int.
17400 (aff_combination_mult): Use wide-int interfaces.
17401 (aff_combination_expand): Likewise.
17402 (double_int_constant_multiple_p): Delete.
17403 (wide_int_constant_multiple_p): New.
17404 (aff_combination_constant_multiple_p): Take a widest_int pointer
17405 instead of a double_int pointer.
17406 (print_aff): Use wide-int interfaces.
17407 (get_inner_reference_aff): Take a widest_int pointer
17408 instead of a double_int pointer.
17409 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17410 * tree-affine.h: Include wide-int.h.
17411 (struct aff_comb_elt): Change type of coef to widest_int.
17412 (struct affine_tree_combination): Change type of offset to widest_int.
17413 (double_int_ext_for_comb): Delete.
17414 (wide_int_ext_for_comb): New.
17415 (aff_combination_const): Use widest_int instead of double_int.
17416 (aff_combination_scale): Likewise.
17417 (aff_combination_add_elt): Likewise.
17418 (aff_combination_constant_multiple_p): Likewise.
17419 (get_inner_reference_aff): Likewise.
17420 (aff_comb_cannot_overlap_p): Likewise.
17421 (aff_combination_zero_p): Use wide-int interfaces.
17422 * tree.c: Include tree.h.
17423 (init_ttree): Use make_int_cst.
17424 (tree_code_size): Removed code for INTEGER_CST case.
17425 (tree_size): Add INTEGER_CST case.
17426 (make_node_stat): Update comment.
17427 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17428 (build_int_cst_type): Use wide-int interfaces.
17429 (double_int_to_tree): Likewise.
17430 (double_int_fits_to_tree_p): Delete.
17431 (force_fit_type_double): Delete.
17432 (force_fit_type): New.
17433 (int_cst_hash_hash): Use wide-int interfaces.
17434 (int_cst_hash_eq): Likewise.
17435 (build_int_cst_wide): Delete.
17436 (wide_int_to_tree): New.
17437 (cache_integer_cst): Use wide-int interfaces.
17438 (build_low_bits_mask): Likewise.
17439 (cst_and_fits_in_hwi): Likewise.
17440 (real_value_from_int_cst): Likewise.
17441 (make_int_cst_stat): New.
17442 (integer_zerop): Use wide_int interfaces.
17443 (integer_onep): Likewise.
17444 (integer_all_onesp): Likewise.
17445 (integer_pow2p): Likewise.
17446 (integer_nonzerop): Likewise.
17447 (tree_log2): Likewise.
17448 (tree_floor_log2): Likewise.
17449 (tree_ctz): Likewise.
17450 (int_size_in_bytes): Likewise.
17451 (mem_ref_offset): Return an offset_int rather than a double_int.
17452 (build_type_attribute_qual_variant): Use wide_int interfaces.
17453 (type_hash_eq): Likewise
17454 (tree_int_cst_equal): Likewise.
17455 (tree_int_cst_lt): Delete.
17456 (tree_int_cst_compare): Likewise.
17457 (tree_fits_shwi_p): Use wide_int interfaces.
17458 (tree_fits_uhwi_p): Likewise.
17459 (tree_int_cst_sign_bit): Likewise.
17460 (tree_int_cst_sgn): Likewise.
17461 (tree_int_cst_min_precision): Take a signop rather than a bool.
17462 (simple_cst_equal): Use wide_int interfaces.
17463 (compare_tree_int): Likewise.
17464 (iterative_hash_expr): Likewise.
17465 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17466 INT_CST_LT.
17467 (get_type_static_bounds): Use wide_int interfaces.
17468 (tree_int_cst_elt_check_failed): New.
17469 (build_common_tree_nodes): Reordered to set prec before filling in
17470 value.
17471 (int_cst_value): Check cst_and_fits_in_hwi.
17472 (widest_int_cst_value): Use wide_int interfaces.
17473 (upper_bound_in_type): Likewise.
17474 (lower_bound_in_type): Likewise.
17475 (num_ending_zeros): Likewise.
17476 (drop_tree_overflow): Likewise.
17477 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17478 (gen_conditions_for_pow_cst_base): Likewise.
17479 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17480 (group_case_labels_stmt): Use wide-int interfaces.
17481 (verify_gimple_assign_binary): Likewise.
17482 (print_loop): Likewise.
17483 * tree-chrec.c (tree_fold_binomial): Likewise.
17484 * tree-core.h (struct tree_base): Add int_length.
17485 (struct tree_int_cst): Change rep of value.
17486 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17487 (dr_may_alias_p): Likewise.
17488 (max_stmt_executions_tree): Likewise.
17489 * tree.def (INTEGER_CST): Update comment.
17490 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17491 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17492 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17493 (dequeue_and_dump): Use wide-int interfaces.
17494 * tree.h: Include wide-int.h.
17495 (NULL_TREE): Moved to earlier loc in file.
17496 (TREE_INT_CST_ELT_CHECK): New.
17497 (tree_int_cst_elt_check_failed): New.
17498 (TYPE_SIGN): New.
17499 (TREE_INT_CST): Delete.
17500 (TREE_INT_CST_LOW): Use wide-int interfaces.
17501 (TREE_INT_CST_HIGH): Delete.
17502 (TREE_INT_CST_NUNITS): New.
17503 (TREE_INT_CST_EXT_NUNITS): Likewise.
17504 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17505 (TREE_INT_CST_ELT): Likewise.
17506 (INT_CST_LT): Delete.
17507 (tree_int_cst_elt_check): New (two forms).
17508 (type_code_size): Update comment.
17509 (make_int_cst_stat, make_int_cst): New.
17510 (tree_to_double_int): Delete.
17511 (double_int_fits_to_tree_p): Delete.
17512 (force_fit_type_double): Delete.
17513 (build_int_cstu): Replace with out-of-line function.
17514 (build_int_cst_wide): Delete.
17515 (tree_int_cst_lt): Define inline.
17516 (tree_int_cst_le): New.
17517 (tree_int_cst_compare): Define inline.
17518 (tree_int_cst_min_precision): Take a signop rather than a bool.
17519 (wi::int_traits <const_tree>): New.
17520 (wi::int_traits <tree>): New.
17521 (wi::extended_tree): New.
17522 (wi::int_traits <wi::extended_tree>): New.
17523 (wi::to_widest): New.
17524 (wi::to_offset): New.
17525 (wi::fits_to_tree_p): New.
17526 (wi::min_value): New.
17527 (wi::max_value): New.
17528 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17529 (copy_tree_body_r): Likewise.
17530 * tree-object-size.c (compute_object_offset): Likewise.
17531 (addr_object_size): Likewise.
17532 * tree-predcom.c: Include wide-int-print.h.
17533 (struct dref_d): Change type of offset to widest_int.
17534 (dump_dref): Call wide-int printer.
17535 (aff_combination_dr_offset): Use wide-int interfaces.
17536 (determine_offset): Take a widest_int pointer rather than a
17537 double_int pointer.
17538 (split_data_refs_to_components): Use wide-int interfaces.
17539 (suitable_component_p): Likewise.
17540 (order_drefs): Likewise.
17541 (add_ref_to_chain): Likewise.
17542 (valid_initializer_p): Likewise.
17543 (determine_roots_comp): Likewise.
17544 * tree-pretty-print.c: Include wide-int-print.h.
17545 (dump_generic_node): Use wide-int interfaces.
17546 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17547 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17548 (move_fixed_address_to_symbol): Likewise.
17549 (move_hint_to_base): Likewise.
17550 (move_pointer_to_base): Likewise.
17551 (move_variant_to_index): Likewise.
17552 (most_expensive_mult_to_index): Likewise.
17553 (addr_to_parts): Likewise.
17554 (copy_ref_info): Likewise.
17555 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17556 (indirect_refs_may_alias_p): Likewise.
17557 (stmt_kills_ref_p_1): Likewise.
17558 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17559 * tree-ssa-ccp.c: Update comment at top of file. Include
17560 wide-int-print.h.
17561 (struct prop_value_d): Change type of mask to widest_int.
17562 (extend_mask): New function.
17563 (dump_lattice_value): Use wide-int interfaces.
17564 (get_default_value): Likewise.
17565 (set_constant_value): Likewise.
17566 (set_value_varying): Likewise.
17567 (valid_lattice_transition): Likewise.
17568 (set_lattice_value): Likewise.
17569 (value_to_double_int): Delete.
17570 (value_to_wide_int): New.
17571 (get_value_from_alignment): Use wide-int interfaces.
17572 (get_value_for_expr): Likewise.
17573 (do_dbg_cnt): Likewise.
17574 (ccp_finalize): Likewise.
17575 (ccp_lattice_meet): Likewise.
17576 (bit_value_unop_1): Use widest_ints rather than double_ints.
17577 (bit_value_binop_1): Likewise.
17578 (bit_value_unop): Use wide-int interfaces.
17579 (bit_value_binop): Likewise.
17580 (bit_value_assume_aligned): Likewise.
17581 (evaluate_stmt): Likewise.
17582 (ccp_fold_stmt): Likewise.
17583 (visit_cond_stmt): Likewise.
17584 (ccp_visit_stmt): Likewise.
17585 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17586 (constant_pointer_difference): Likewise.
17587 (associate_pointerplus): Likewise.
17588 (combine_conversions): Likewise.
17589 * tree-ssa-loop.h: Include wide-int.h.
17590 (struct tree_niter_desc): Change type of max to widest_int.
17591 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17592 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17593 (remove_redundant_iv_tests): Likewise.
17594 (canonicalize_loop_induction_variables): Likewise.
17595 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17596 (constant_multiple_of): Take a widest_int pointer instead of
17597 a double_int pointer.
17598 (get_computation_aff): Use wide-int interfaces.
17599 (ptr_difference_cost): Likewise.
17600 (difference_cost): Likewise.
17601 (get_loop_invariant_expr_id): Likewise.
17602 (get_computation_cost_at): Likewise.
17603 (iv_elimination_compare_lt): Likewise.
17604 (may_eliminate_iv): Likewise.
17605 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17606 instead of double_int.
17607 (max_loop_iterations): Likewise.
17608 (max_stmt_executions): Likewise.
17609 (estimated_stmt_executions): Likewise.
17610 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17611 (split_to_var_and_offset): Use wide-int interfaces.
17612 (determine_value_range): Likewise.
17613 (bound_difference_of_offsetted_base): Likewise.
17614 (bounds_add): Take a widest_int instead of a double_int.
17615 (number_of_iterations_ne_max): Use wide-int interfaces.
17616 (number_of_iterations_ne): Likewise.
17617 (number_of_iterations_lt_to_ne): Likewise.
17618 (assert_loop_rolls_lt): Likewise.
17619 (number_of_iterations_lt): Likewise.
17620 (number_of_iterations_le): Likewise.
17621 (number_of_iterations_cond): Likewise.
17622 (number_of_iterations_exit): Likewise.
17623 (finite_loop_p): Likewise.
17624 (derive_constant_upper_bound_assign): Likewise.
17625 (derive_constant_upper_bound): Return a widest_int.
17626 (derive_constant_upper_bound_ops): Likewise.
17627 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17628 (record_estimate): Take a widest_int rather than a double_int.
17629 (record_nonwrapping_iv): Use wide-int interfaces.
17630 (double_int_cmp): Delete.
17631 (wide_int_cmp): New.
17632 (bound_index): Take a widest_int rather than a double_int.
17633 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17634 (maybe_lower_iteration_bound): Likewise.
17635 (estimate_numbers_of_iterations_loop): Likewise.
17636 (estimated_loop_iterations): Take a widest_int pointer than than
17637 a double_int pointer.
17638 (estimated_loop_iterations_int): Use wide-int interfaces.
17639 (max_loop_iterations): Take a widest_int pointer than than
17640 a double_int pointer.
17641 (max_loop_iterations_int): Use wide-int interfaces.
17642 (max_stmt_executions): Take a widest_int pointer than than
17643 a double_int pointer.
17644 (estimated_stmt_executions): Likewise.
17645 (n_of_executions_at_most): Use wide-int interfaces.
17646 (scev_probably_wraps_p): Likewise.
17647 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17648 to real_to_integer.
17649 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17650 interfaces.
17651 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17652 double_ints. Adjust for trailing_wide_ints <3> representation.
17653 (set_nonzero_bits): Likewise.
17654 (get_range_info): Return wide_ints rather than double_ints.
17655 Adjust for trailing_wide_ints <3> representation.
17656 (get_nonzero_bits): Likewise.
17657 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17658 representation.
17659 * tree-ssanames.h (struct range_info_def): Replace min, max and
17660 nonzero_bits with a trailing_wide_ints <3>.
17661 (set_range_info): Use wide_int_refs rather than double_ints.
17662 (set_nonzero_bits): Likewise.
17663 (get_range_info): Return wide_ints rather than double_ints.
17664 (get_nonzero_bits): Likewise.
17665 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17666 * tree-ssa-pre.c (phi_translate_1): Likewise.
17667 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17668 (acceptable_pow_call): Likewise.
17669 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17670 interfaces.
17671 (vn_reference_fold_indirect): Likewise.
17672 (vn_reference_maybe_forwprop_address): Likewise.
17673 (valueize_refs_1): Likewise.
17674 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17675 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17676 tree_int_cst_lt and tree_int_cst_le.
17677 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17678 interfaces.
17679 (streamer_alloc_tree): Likewise.
17680 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17681 (streamer_write_tree_header): Likewise.
17682 (streamer_write_integer_cst): Likewise.
17683 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17684 (build_constructors): Likewise.
17685 (array_value_type): Likewise.
17686 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17687 (vect_check_gather): Likewise.
17688 * tree-vect-generic.c (build_replicated_const): Likewise.
17689 (expand_vector_divmod): Likewise.
17690 * tree-vect-loop.c (vect_transform_loop): Likewise.
17691 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17692 (vect_do_peeling_for_alignment): Likewise.
17693 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17694 * tree-vrp.c: Include wide-int.h.
17695 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17696 (extract_range_from_assert): Use wide-int interfaces.
17697 (vrp_int_const_binop): Likewise.
17698 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17699 double_int pointers.
17700 (ranges_from_anti_range): Use wide-int interfaces.
17701 (quad_int_cmp): Delete.
17702 (quad_int_pair_sort): Likewise.
17703 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17704 (extract_range_from_unary_expr_1): Likewise.
17705 (adjust_range_with_scev): Likewise.
17706 (masked_increment): Take and return wide_ints rather than double_ints.
17707 (register_edge_assert_for_2): Use wide-int interfaces.
17708 (check_array_ref): Likewise.
17709 (search_for_addr_array): Likewise.
17710 (maybe_set_nonzero_bits): Likewise.
17711 (union_ranges): Pass an integer of the correct type instead of
17712 using integer_one_node.
17713 (intersect_ranges): Likewise.
17714 (simplify_truth_ops_using_ranges): Likewise.
17715 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17716 (range_fits_type_p): Likewise.
17717 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17718 a bool.
17719 (simplify_conversion_using_ranges): Use wide-int interfaces.
17720 (simplify_float_conversion_using_ranges): Likewise.
17721 (vrp_finalize): Likewise.
17722 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17723 (gimple_stringops_transform): Likewise.
17724 * varasm.c (decode_addr_const): Likewise.
17725 (const_hash_1): Likewise.
17726 (const_rtx_hash_1): Likewise
17727 (output_constant): Likewise.
17728 (array_size_for_constructor): Likewise.
17729 (output_constructor_regular_field): Likewise.
17730 (output_constructor_bitfield): Likewise.
17731 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17732 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17733 GENERATOR_FILEs.
17734 * gencheck.c: Define BITS_PER_UNIT.
17735 * wide-int.cc: New.
17736 * wide-int.h: New.
17737 * wide-int-print.cc: New.
17738 * wide-int-print.h: New.
17739
17740 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17741
17742 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17743
17744 2014-05-06 Richard Biener <rguenther@suse.de>
17745
17746 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17747 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17748 (TODO_verify_all): Adjust.
17749 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17750 TODO_verify_stmts and TODO_verify_rtl_sharing.
17751 * bb-reorder.c: Likewise.
17752 * cfgexpand.c: Likewise.
17753 * cprop.c: Likewise.
17754 * cse.c: Likewise.
17755 * function.c: Likewise.
17756 * fwprop.c: Likewise.
17757 * gcse.c: Likewise.
17758 * gimple-ssa-isolate-paths.c: Likewise.
17759 * gimple-ssa-strength-reduction.c: Likewise.
17760 * ipa-split.c: Likewise.
17761 * loop-init.c: Likewise.
17762 * loop-unroll.c: Likewise.
17763 * lower-subreg.c: Likewise.
17764 * modulo-sched.c: Likewise.
17765 * postreload-gcse.c: Likewise.
17766 * predict.c: Likewise.
17767 * recog.c: Likewise.
17768 * sched-rgn.c: Likewise.
17769 * store-motion.c: Likewise.
17770 * tracer.c: Likewise.
17771 * trans-mem.c: Likewise.
17772 * tree-call-cdce.c: Likewise.
17773 * tree-cfg.c: Likewise.
17774 * tree-cfgcleanup.c: Likewise.
17775 * tree-complex.c: Likewise.
17776 * tree-eh.c: Likewise.
17777 * tree-emutls.c: Likewise.
17778 * tree-if-conv.c: Likewise.
17779 * tree-into-ssa.c: Likewise.
17780 * tree-loop-distribution.c: Likewise.
17781 * tree-object-size.c: Likewise.
17782 * tree-parloops.c: Likewise.
17783 * tree-pass.h: Likewise.
17784 * tree-sra.c: Likewise.
17785 * tree-ssa-ccp.c: Likewise.
17786 * tree-ssa-copy.c: Likewise.
17787 * tree-ssa-copyrename.c: Likewise.
17788 * tree-ssa-dce.c: Likewise.
17789 * tree-ssa-dom.c: Likewise.
17790 * tree-ssa-dse.c: Likewise.
17791 * tree-ssa-forwprop.c: Likewise.
17792 * tree-ssa-ifcombine.c: Likewise.
17793 * tree-ssa-loop-ch.c: Likewise.
17794 * tree-ssa-loop-ivcanon.c: Likewise.
17795 * tree-ssa-loop.c: Likewise.
17796 * tree-ssa-math-opts.c: Likewise.
17797 * tree-ssa-phiopt.c: Likewise.
17798 * tree-ssa-phiprop.c: Likewise.
17799 * tree-ssa-pre.c: Likewise.
17800 * tree-ssa-reassoc.c: Likewise.
17801 * tree-ssa-sink.c: Likewise.
17802 * tree-ssa-strlen.c: Likewise.
17803 * tree-ssa-tail-merge.c: Likewise.
17804 * tree-ssa-uncprop.c: Likewise.
17805 * tree-switch-conversion.c: Likewise.
17806 * tree-tailcall.c: Likewise.
17807 * tree-vect-generic.c: Likewise.
17808 * tree-vectorizer.c: Likewise.
17809 * tree-vrp.c: Likewise.
17810 * tsan.c: Likewise.
17811 * var-tracking.c: Likewise.
17812 * bt-load.c: Likewise.
17813 * cfgcleanup.c: Likewise.
17814 * combine-stack-adj.c: Likewise.
17815 * combine.c: Likewise.
17816 * compare-elim.c: Likewise.
17817 * config/epiphany/resolve-sw-modes.c: Likewise.
17818 * config/i386/i386.c: Likewise.
17819 * config/mips/mips.c: Likewise.
17820 * config/s390/s390.c: Likewise.
17821 * config/sh/sh_treg_combine.cc: Likewise.
17822 * config/sparc/sparc.c: Likewise.
17823 * dce.c: Likewise.
17824 * dse.c: Likewise.
17825 * final.c: Likewise.
17826 * ifcvt.c: Likewise.
17827 * mode-switching.c: Likewise.
17828 * passes.c: Likewise.
17829 * postreload.c: Likewise.
17830 * ree.c: Likewise.
17831 * reg-stack.c: Likewise.
17832 * regcprop.c: Likewise.
17833 * regrename.c: Likewise.
17834 * web.c: Likewise.
17835
17836 2014-05-06 Richard Biener <rguenther@suse.de>
17837
17838 PR middle-end/61070
17839 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17840 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17841
17842 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17843
17844 PR ipa/60965
17845 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17846
17847 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17848 Tom de Vries <tom@codesourcery.com>
17849
17850 * target.def (call_fusage_contains_non_callee_clobbers): New
17851 DEFHOOKPOD.
17852 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17853 Hooks to @menu.
17854 (@node Miscellaneous Register Hooks): New node.
17855 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17856 * doc/tm.texi: Regenerate.
17857
17858 2014-05-05 Marek Polacek <polacek@redhat.com>
17859
17860 PR driver/61065
17861 * opts.c (common_handle_option): Call error_at instead of warning_at.
17862
17863 2014-05-05 Richard Biener <rguenther@suse.de>
17864
17865 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17866 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17867 under the TODO_verify_il umbrella.
17868
17869 2014-05-05 Richard Biener <rguenther@suse.de>
17870
17871 * passes.c (execute_function_todo): Move TODO_verify_flow under
17872 the TODO_verify_ul umbrella.
17873
17874 2014-05-05 Richard Biener <rguenther@suse.de>
17875
17876 PR middle-end/61010
17877 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17878 X & CST away from a CST that is the mask of a mode.
17879
17880 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17881
17882 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17883 int argument to enum machine_mode.
17884 (picochip_class_max_nregs): Ditto.
17885 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17886 (picochip_class_max_nregs): Ditto.
17887
17888 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17889
17890 * target.def: Add new target hook.
17891 * doc/tm.texi: Regenerate.
17892 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17893 * targhooks.c (default_keep_leaf_when_profiled): New function.
17894
17895 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17896 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17897
17898 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17899
17900 PR tree-optimization/60363
17901 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17902 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17903 (update_destination_phis): New parameter.
17904 (create_edge_and_update_destination_phis): Ditto.
17905 (ssa_fix_duplicate_block_edges): Pass new arguments.
17906 (thread_single_edge): Ditto.
17907
17908 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17909
17910 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17911 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17912 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17913 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17914 Use RS6000_BTM_HARD_FLOAT.
17915 (BU_MISC_2): Likewise.
17916 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17917 RS6000_BTM_HARD_FLOAT.
17918 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17919 is explicitly used.
17920 (rs6000_invalid_builtin): Add hard floating builtin support.
17921 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17922 hard float builtins.
17923 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17924
17925 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17926
17927 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17928 Add missing function* argument.
17929
17930 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17931
17932 * lra-constraints.c (valid_address_p): Move earlier in file.
17933 Add a constraint argument to the address_info version.
17934 (satisfies_memory_constraint_p): New function.
17935 (satisfies_address_constraint_p): Likewise.
17936 (process_alt_operands, curr_insn_transform): Use them.
17937 (process_address): Pass the constraint to valid_address_p when
17938 checking address operands.
17939
17940 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17941
17942 * config/mips/mips.c (mips_isa_rev): New variable.
17943 (mips_set_architecture): Set it.
17944 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17945 from mips_isa_rev.
17946 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17947 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17948 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17949 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17950 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17951 conditions in terms of mips_isa_rev.
17952 (mips_isa_rev): Declare.
17953
17954 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17955
17956 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17957 (prob_unlikely, prob_likely): Make variables const.
17958
17959 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17960
17961 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17962
17963 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17964
17965 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17966
17967 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17968
17969 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17970 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17971 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17972 functions.
17973 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17974 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17975 sh_pass_in_reg_p.
17976 Replace usage of ROUND_REG with sh_round_reg.
17977 Use CEIL instead of ROUND_ADVANCE.
17978
17979 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17980
17981 PR target/61026
17982 * config/sh/sh.c: Include stdlib headers before everything else.
17983
17984 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17985
17986 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17987 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17988 (gimplify_adjust_omp_clauses): Simd region is never
17989 directly nested in combined parallel. Instead, for linear
17990 with copyin/copyout, if in combined for simd loop, make decl
17991 firstprivate/lastprivate on OMP_FOR.
17992 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17993 expand_omp_for_static_chunk): When setting endvar, also set
17994 fd->loop.v to the same value.
17995
17996 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17997
17998 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17999
18000 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18001
18002 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18003 expression.
18004
18005 2014-05-02 Marek Polacek <polacek@redhat.com>
18006
18007 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18008
18009 2014-05-02 Kito Cheng <kito@0xlab.org>
18010
18011 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18012 to a C expression marco.
18013 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18014 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18015 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18016 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18017 HONOR_REG_ALLOC_ORDER.
18018 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18019
18020 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18021
18022 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18023
18024 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18025
18026 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18027
18028 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18029
18030 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18031 (convert_scalar_cond_reduction): Likewise.
18032 (predicate_scalar_phi): Add recognition and transformation
18033 of simple conditioanl reduction to be vectorizable.
18034
18035 2014-05-01 Marek Polacek <polacek@redhat.com>
18036
18037 PR c/43245
18038 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18039
18040 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18041
18042 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18043 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18044 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18045 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18046 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18047 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18048 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18049 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18050
18051 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18052
18053 * config/arc/arc.opt (mlra): Move comment above option name
18054 to avoid mis-parsing as language options.
18055
18056 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18057
18058 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18059 * config/sol2.h: ... here.
18060 * config/sol2-10.h: Remove.
18061
18062 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18063 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18064 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18065 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18066 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18067 * config/sol2.h: ... here.
18068 (SECTION_NAME_FORMAT): Don't redefine.
18069 (STARTFILE_ARCH32_SPEC): Rename to ...
18070 (STARTFILE_ARCH_SPEC): ... this.
18071 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18072 * config/sparc/sol2.h: ... here.
18073 (SECTION_NAME_FORMAT): Don't undef.
18074 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18075 (SUBTARGET_EXTRA_SPECS): Remove.
18076 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18077
18078 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18079 (MD_STARTFILE_PREFIX): Remove.
18080 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18081 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18082 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18083 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18084 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18085 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18086 * config/i386/sol2.h: ... here.
18087 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18088 * config/i386/sol2-bi.h: Remove.
18089 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18090 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18091
18092 * config/i386/t-sol2-64: Rename to ...
18093 * config/i386/t-sol2: ... this.
18094 * config/sparc/t-sol2-64: Rename to ...
18095 * config/sparc/t-sol2: ... this.
18096
18097 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18098 sol2_tm_file_head, sol2_tm_file_tail.
18099 Include ${cpu_type}/sol2.h before sol2.h.
18100 Remove sol2-10.h.
18101 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18102 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18103 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18104 Reflect i386/t-sol2-64 renaming.
18105 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18106 Reflect sparc/t-sol2-64 renaming.
18107
18108 2014-04-30 Richard Biener <rguenther@suse.de>
18109
18110 * passes.c (execute_function_todo): Move TODO_verify_stmts
18111 and TODO_verify_ssa under the TODO_verify_il umbrella.
18112 * tree-ssa.h (verify_ssa): Adjust prototype.
18113 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18114 we should verify SSA operands.
18115 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18116 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18117 whether we should verify whether not throwing stmts have EH info.
18118 * graphite-scop-detection.c (create_sese_edges): Adjust.
18119 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18120 * tree-eh.c (lower_try_finally_switch): Do not add the
18121 default case label twice.
18122
18123 2014-04-30 Marek Polacek <polacek@redhat.com>
18124
18125 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18126 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18127 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18128 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18129
18130 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18131
18132 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18133 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18134 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18135 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18136 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18137 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18138 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18139 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18140
18141 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18142
18143 * tree-cfg.c (dump_function_to_file): Dump the return type of
18144 functions, in a line to itself before the function body, mimicking
18145 the layout of a C function.
18146
18147 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18148
18149 PR tree-optimization/60971
18150 * tree-tailcall.c (process_assignment): Reject conversions which
18151 reduce precision.
18152
18153 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18154
18155 * calls.c (initialize_argument_information): Always treat
18156 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18157 (expand_call): Likewise.
18158 (emit_library_call_calue_1): Likewise.
18159 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18160 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18161 code accordingly.
18162
18163 2014-04-29 Nick Clifton <nickc@redhat.com>
18164
18165 * config/msp430/msp430.md (umulsidi): Fix typo.
18166 (mulhisi3): Enable even inside interrupt handlers.
18167 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18168 bigger return address pushed in large mode.
18169
18170 2014-04-29 Nick Clifton <nickc@redhat.com>
18171
18172 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18173 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18174 available modes.
18175 * config/m32r/m32r.c (init_reg_tables): Likewise.
18176 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18177 enum to hold the modes.
18178
18179 2014-04-29 Richard Biener <rguenther@suse.de>
18180
18181 * dominance.c (free_dominance_info): Add overload with
18182 function parameter.
18183 (dom_info_state): Likewise.
18184 (dom_info_available_p): Likewise.
18185 * basic-block.h (free_dominance_info, dom_info_state,
18186 dom_info_available_p): Declare overloads.
18187 * passes.c (execute_function_todo): Verify that verifiers
18188 don't change dominator info state. Drop dominator info
18189 for IPA pass invocations.
18190 * cgraph.c (release_function_body): Restore asserts that
18191 dominator information is released.
18192
18193 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18194
18195 * doc/invoke.texi: Fix typo.
18196 * tree-vrp.c: Fix typos.
18197 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18198
18199 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18200
18201 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18202
18203 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18204
18205 * config/aarch64/aarch64-builtins.c
18206 (aarch64_types_storestruct_lane_qualifiers): New.
18207 (TYPES_STORESTRUCT_LANE): Likewise.
18208 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18209 (st3_lane): Likewise.
18210 (st4_lane): Likewise.
18211 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18212 (vec_store_lanesci_lane<mode>): Likewise.
18213 (vec_store_lanesxi_lane<mode>): Likewise.
18214 (aarch64_st2_lane<VQ:mode>): Likewise.
18215 (aarch64_st3_lane<VQ:mode>): Likewise.
18216 (aarch64_st4_lane<VQ:mode>): Likewise.
18217 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18218 * config/aarch64/arm_neon.h
18219 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18220 use new macro arguments.
18221 (__ST3_LANE_FUNC): Likewise.
18222 (__ST4_LANE_FUNC): Likewise.
18223 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18224 (V_THREE_ELEM): Likewise.
18225 (V_FOUR_ELEM): Likewise.
18226
18227 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18228
18229 * doc/gimple.texi: Replace the description of the now-defunct
18230 union gimple_statement_d with a diagram showing the
18231 gimple_statement_base class hierarchy and its relationships to
18232 the GSS_ and GIMPLE_ enums.
18233
18234 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18235
18236 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18237 * config/aarch64/aarch64.c
18238 (aarch64_cannot_change_mode_class): Weaken conditions.
18239 (aarch64_modes_tieable_p): New.
18240 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18241
18242 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18243
18244 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18245 (loadsync_<mode>): Change mode.
18246 (load_quadpti, store_quadpti): New.
18247 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18248 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18249
18250 2014-04-28 Martin Jambor <mjambor@suse.cz>
18251
18252 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18253 same alias type as the original statement.
18254 (subreplacement_assignment_data): New type.
18255 (handle_unscalarized_data_in_subtree): New type of parameter,
18256 generate new memory accesses with same alias type as the original
18257 statement.
18258 (load_assign_lhs_subreplacements): Likewise.
18259 (sra_modify_constructor_assign): Generate new memory accesses with
18260 same alias type as the original statement.
18261
18262 2014-04-28 Richard Biener <rguenther@suse.de>
18263
18264 * tree-pass.h (TODO_verify_il): Define.
18265 (TODO_verify_all): Complete properly.
18266 * passes.c (execute_function_todo): Move existing loop-closed
18267 SSA verification under TODO_verify_il.
18268 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18269 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18270 Fix tree sharing issue.
18271
18272 2014-04-28 Richard Biener <rguenther@suse.de>
18273
18274 PR middle-end/60092
18275 * builtins.def (DEF_C11_BUILTIN): Add.
18276 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18277 * coretypes.h (enum function_class): Add function_c11_misc.
18278 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18279 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18280 (call_may_clobber_ref_p_1): Likewise.
18281 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18282 (mark_all_reaching_defs_necessary_1): Likewise.
18283 (propagate_necessity): Likewise.
18284 (eliminate_unnecessary_stmts): Likewise.
18285 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18286
18287 2014-04-28 Richard Biener <rguenther@suse.de>
18288
18289 * tree-vrp.c (vrp_var_may_overflow): Remove.
18290 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18291 with overflow immediately bump to one before that value and
18292 let iteration figure out overflow status.
18293
18294 2014-04-28 Richard Biener <rguenther@suse.de>
18295
18296 * configure.ac: Do valgrind header checks unconditionally.
18297 Add --enable-valgrind-annotations.
18298 * system.h: Guard valgrind header inclusion with
18299 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18300 * alloc-pool.c (pool_alloc, pool_free): Use
18301 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18302 to guard possibly dead code.
18303 * config.in: Regenerated.
18304 * configure: Likewise.
18305
18306 2014-04-28 Jeff Law <law@redhat.com>
18307
18308 PR tree-optimization/60902
18309 * tree-ssa-threadedge.c
18310 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18311 over real defs when invalidating outputs from statements that do not
18312 produce useful outputs for threading.
18313
18314 2014-04-28 Richard Biener <rguenther@suse.de>
18315
18316 PR tree-optimization/60979
18317 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18318 SCOPs that end in a block with a successor with abnormal
18319 predecessors.
18320
18321 2014-04-28 Richard Biener <rguenther@suse.de>
18322
18323 * tree-pass.h (execute_pass_list): Adjust prototype.
18324 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18325 (do_per_function): Change callback signature, push all actual
18326 work to the callbals.
18327 (do_per_function_toporder): Likewise.
18328 (execute_function_dump): Adjust.
18329 (execute_function_todo): Likewise.
18330 (clear_last_verified): Likewise.
18331 (verify_curr_properties): Likewise.
18332 (update_properties_after_pass): Likewise.
18333 (execute_pass_list_1): Split out from ...
18334 (execute_pass_list): ... here. Adjust.
18335 (execute_ipa_pass_list): Likewise.
18336 * cgraphunit.c (cgraph_add_new_function): Adjust.
18337 (analyze_function): Likewise.
18338 (expand_function): Likewise.
18339 * cgraph.c (release_function_body): Free dominance info
18340 here instead of asserting it was magically freed elsewhere.
18341
18342 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18343
18344 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18345 * configure: Regenerate.
18346 * config/sparc/sparc.opt (muser-mode): New option.
18347 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18348 for LEON3.
18349 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18350 * doc/invoke.texi (SPARC options): Document -muser-mode.
18351
18352 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18353
18354 * cselib.c (find_slot_memmode): Delete.
18355 (cselib_hasher): Change compare_type to a struct.
18356 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18357 constants.
18358 (preserve_constants_and_equivs): Adjust for new compare_type.
18359 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18360 (wrap_constant): Delete.
18361 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18362
18363 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18364
18365 * doc/install.texi (Building with profile feedback): Remove
18366 outdated sentence.
18367
18368 2014-04-26 Tom de Vries <tom@codesourcery.com>
18369
18370 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18371 array accesses.
18372
18373 2014-04-25 Cary Coutant <ccoutant@google.com>
18374
18375 PR debug/60929
18376 * dwarf2out.c (should_move_die_to_comdat): A type definition
18377 can contain a subprogram definition, but don't move it to a
18378 comdat unit.
18379 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18380 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18381 from original DIE.
18382 (clone_tree_hash): Rename to...
18383 (clone_tree_partial): ...this; change callers. Copy
18384 DW_TAG_subprogram DIEs as declarations.
18385 (copy_decls_walk): Don't copy children of a declaration into a
18386 type unit.
18387
18388 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18389
18390 PR target/60969
18391 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18392 alternative 12.
18393
18394 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18395
18396 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18397 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18398 reg for long_call.
18399 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18400 restriction.
18401
18402 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18403
18404 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18405
18406 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18407
18408 PR tree-optimization/60930
18409 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18410 creating a multiply candidate by folding two constant
18411 multiplicands when the result overflows.
18412
18413 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18414
18415 PR tree-optimization/60960
18416 * tree-vect-generic.c (expand_vector_operation): Only call
18417 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18418
18419 2014-04-25 Tom de Vries <tom@codesourcery.com>
18420
18421 * expr.c (clobber_reg_mode): New function.
18422 * expr.h (clobber_reg): New function.
18423
18424 2014-04-25 Tom de Vries <tom@codesourcery.com>
18425
18426 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18427 clobbers.
18428
18429 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18430 Tom de Vries <tom@codesourcery.com>
18431
18432 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18433 handle.
18434 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18435 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18436 new argument to find_all_hard_reg_sets call.
18437
18438 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18439
18440 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18441 Use HOST_WIDE_INT_C for mask literal.
18442 (aarch_rev16_shleft_mask_imm_p): Likewise.
18443
18444 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18445
18446 PR target/60941
18447 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18448
18449 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18450
18451 PR preprocessor/56540
18452 * config/i386/i386-c.c (ix86_target_macros): Define
18453 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18454
18455 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18456
18457 * configure.ac (tga_func): Remove.
18458 (LIB_TLS_SPEC): Remove.
18459 * configure: Regenerate.
18460 * config.in: Regenerate.
18461 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18462
18463 2014-04-25 Richard Biener <rguenther@suse.de>
18464
18465 PR ipa/60912
18466 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18467 call stmt use/clobber sets during stmt walk instead of
18468 walking the possibly incomplete set of caller edges.
18469
18470 2014-04-25 Richard Biener <rguenther@suse.de>
18471
18472 PR ipa/60911
18473 * passes.c (apply_ipa_transforms): Inline into only caller ...
18474 (execute_one_pass): ... here. Properly bring in function
18475 bodies for nodes we want to apply IPA transforms to.
18476
18477 2014-04-24 Cong Hou <congh@google.com>
18478
18479 PR tree-optimization/60896
18480 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18481 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18482 (vect_mark_pattern_stmts): Set the def type of all statements in
18483 PATTERN_DEF_SEQ as vect_internal_def.
18484
18485 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18486
18487 * doc/extend.texi (PowerPC Built-in Functions): Document new
18488 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18489 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18490
18491 * config/rs6000/predicates.md (const_0_to_3_operand): New
18492 predicate to match 0..3 integer constants.
18493
18494 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18495 to support adding miscellaneous builtin functions.
18496 (BU_DFP_MISC_2): Likewise.
18497 (BU_P7_MISC_1): Likewise.
18498 (BU_P7_MISC_2): Likewise.
18499 (BU_P8V_MISC_3): Likewise.
18500 (BU_MISC_1): Likewise.
18501 (BU_MISC_2): Likewise.
18502 (DIVWE): Add extended divide builtin functions.
18503 (DIVWEO): Likewise.
18504 (DIVWEU): Likewise.
18505 (DIVWEUO): Likewise.
18506 (DIVDE): Likewise.
18507 (DIVDEO): Likewise.
18508 (DIVDEU): Likewise.
18509 (DIVDEUO): Likewise.
18510 (DXEX): Add decimal floating-point builtin functions.
18511 (DXEXQ): Likewise.
18512 (DDEDPD): Likewise.
18513 (DDEDPDQ): Likewise.
18514 (DENBCD): Likewise.
18515 (DENBCDQ): Likewise.
18516 (DIEX): Likewise.
18517 (DIEXQ): Likewise.
18518 (DSCLI): Likewise.
18519 (DSCLIQ): Likewise.
18520 (DSCRI): Likewise.
18521 (DSCRIQ): Likewise.
18522 (CDTBCD): Add new BCD builtin functions.
18523 (CBCDTD): Likewise.
18524 (ADDG6S): Likewise.
18525 (BCDADD): Likewise.
18526 (BCDADD_LT): Likewise.
18527 (BCDADD_EQ): Likewise.
18528 (BCDADD_GT): Likewise.
18529 (BCDADD_OV): Likewise.
18530 (BCDSUB): Likewise.
18531 (BCDSUB_LT): Likewise.
18532 (BCDSUB_EQ): Likewise.
18533 (BCDSUB_GT): Likewise.
18534 (BCDSUB_OV): Likewise.
18535 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18536 (UNPACK_TD): Likewise.
18537 (PACK_TF): Likewise.
18538 (UNPACK_TF): Likewise.
18539 (UNPACK_TF_0): Likewise.
18540 (UNPACK_TF_1): Likewise.
18541 (PACK_V1TI): Likewise.
18542 (UNPACK_V1TI): Likewise.
18543
18544 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18545 support for decimal floating point builtin functions.
18546 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18547 functions that take constant arguments.
18548 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18549 (rs6000_init_builtins): Setup long double, _Decimal64, and
18550 _Decimal128 types for new builtin functions.
18551 (builtin_function_type): Set the unsigned flags appropriately for
18552 the new builtin functions.
18553 (rs6000_opt_masks): Add support for decimal floating point builtin
18554 functions.
18555
18556 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18557 floating point builtin functions.
18558 (RS6000_BTM_COMMON): Likewise.
18559 (RS6000_BTI_long_double): Likewise.
18560 (RS6000_BTI_dfloat64): Likewise.
18561 (RS6000_BTI_dfloat128): Likewise.
18562 (long_double_type_internal_node): Likewise.
18563 (dfloat64_type_internal_node): Likewise.
18564 (dfloat128_type_internal_node): Likewise.
18565
18566 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18567 2.07 bcd arithmetic instructions.
18568 (UNSPEC_BCDSUB): Likewise.
18569 (UNSPEC_BCD_OVERFLOW): Likewise.
18570 (UNSPEC_BCD_ADD_SUB): Likewise.
18571 (bcd_add_sub): Likewise.
18572 (BCD_TEST): Likewise.
18573 (bcd<bcd_add_sub>): Likewise.
18574 (bcd<bcd_add_sub>_test): Likewise.
18575 (bcd<bcd_add_sub>_test2): Likewise.
18576 (bcd<bcd_add_sub>_<code>): Likewise.
18577 (peephole2 for combined bcd ops): Likewise.
18578
18579 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18580 decimal floating point builtin functions.
18581 (UNSPEC_DENBCD): Likewise.
18582 (UNSPEC_DXEX): Likewise.
18583 (UNSPEC_DIEX): Likewise.
18584 (UNSPEC_DSCLI): Likewise.
18585 (UNSPEC_DSCRI): Likewise.
18586 (D64_D128): Likewise.
18587 (dfp_suffix): Likewise.
18588 (dfp_ddedpd_<mode>): Likewise.
18589 (dfp_denbcd_<mode>): Likewise.
18590 (dfp_dxex_<mode>): Likewise.
18591 (dfp_diex_<mode>): Likewise.
18592 (dfp_dscli_<mode>): Likewise.
18593 (dfp_dscri_<mode>): Likewise.
18594
18595 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18596 builtin functions.
18597 (UNSPEC_CDTBCD): Likewise.
18598 (UNSPEC_CBCDTD): Likewise.
18599 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18600 (UNSPEC_DIVEO): Likewise.
18601 (UNSPEC_DIVEU): Likewise.
18602 (UNSPEC_DIVEUO): Likewise.
18603 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18604 pack/unpack 128-bit types.
18605 (UNSPEC_PACK_128BIT): Likewise.
18606 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18607 (udiv<mode>3): Use idiv_ldiv mode attribute.
18608 (div<mode>3): Likewise.
18609 (addg6s): Add new BCD builtin functions.
18610 (cdtbcd): Likewise.
18611 (cbcdtd): Likewise.
18612 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18613 (div_extend): Likewise.
18614 (div<div_extend>_<mode>"): Likewise.
18615 (FP128_64): Add support for new builtin functions to pack/unpack
18616 128-bit types.
18617 (unpack<mode>): Likewise.
18618 (unpacktf_0): Likewise.
18619 (unpacktf_1): Likewise.
18620 (unpack<mode>_dm): Likewise.
18621 (unpack<mode>_nodm): Likewise.
18622 (pack<mode>): Likewise.
18623 (unpackv1ti): Likewise.
18624 (packv1ti): Likewise.
18625
18626 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18627
18628 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18629 is disabled.
18630
18631 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18632
18633 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18634 * gimplify.c (omp_is_private): Change last argument's type to int.
18635 Only diagnose lastprivate if the simd argument is 1, only diagnose
18636 linear if the simd argument is 2.
18637 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18638 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18639 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18640 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18641 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18642 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18643 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18644 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18645 * tree-nested.c (convert_nonlocal_omp_clauses,
18646 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18647
18648 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18649
18650 PR target/60822
18651 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18652 operand 1.
18653
18654 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18655
18656 * flag-types.h (enum ivar_visibility): Add.
18657
18658 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18659
18660 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18661 function * argument.
18662
18663 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18664
18665 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18666
18667 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18668 Tom de Vries <tom@codesourcery.com>
18669
18670 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18671 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18672 reg-note.
18673 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18674 * emit-rtl.c (try_split): Same.
18675
18676 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18677 Tom de Vries <tom@codesourcery.com>
18678
18679 * common.opt (fuse-caller-save): New option.
18680
18681 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18682
18683 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18684 elements for big-endian.
18685
18686 2014-04-24 Richard Biener <rguenther@suse.de>
18687
18688 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18689 during TER and instead use the sepops interface for expanding
18690 non-GIMPLE_SINGLE_RHS.
18691
18692 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18693
18694 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18695 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18696
18697 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18698
18699 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18700 assembler 64-bit option.
18701 * configure: Regenerate.
18702
18703 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18704
18705 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18706 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18707 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18708 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18709 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18710
18711 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18712
18713 * config/aarch64/aarch64-builtins.c
18714 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18715 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18716 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18717 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18718 builtins.
18719 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18720 (Vrevsuff): New mode attribute.
18721
18722 2014-04-24 Terry Guo <terry.guo@arm.com>
18723
18724 * config/arm/arm.h (machine_function): Define variable
18725 after_arm_reorg here.
18726 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18727 (arm_split_constant): Update the way to access variable
18728 after_arm_reorg.
18729 (arm_reorg): Ditto.
18730 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18731
18732 2014-04-23 Tom de Vries <tom@codesourcery.com>
18733
18734 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18735
18736 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18737
18738 * is-a.h: Update comments to reflect the following changes to the
18739 "pointerness" of the API, making the template parameter match the
18740 return type, allowing use of is-a.h with typedefs of pointers.
18741 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18742 that the return type matches the parameter to the is_a_helper.
18743 (as_a): Likewise.
18744 (dyn_cast): Likewise.
18745
18746 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18747 pointer from the is-a.h API.
18748
18749 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18750 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18751 is-a.h API.
18752 (is_a_helper <varpool_node>::test): Likewise, convert to...
18753 (is_a_helper <varpool_node *>::test): ...this.
18754
18755 (varpool_first_variable): Update for removal of implicit pointer
18756 from the is-a.h API.
18757 (varpool_next_variable): Likewise.
18758 (varpool_first_static_initializer): Likewise.
18759 (varpool_next_static_initializer): Likewise.
18760 (varpool_first_defined_variable): Likewise.
18761 (varpool_next_defined_variable): Likewise.
18762 (cgraph_first_defined_function): Likewise.
18763 (cgraph_next_defined_function): Likewise.
18764 (cgraph_first_function): Likewise.
18765 (cgraph_next_function): Likewise.
18766 (cgraph_first_function_with_gimple_body): Likewise.
18767 (cgraph_next_function_with_gimple_body): Likewise.
18768 (cgraph_alias_target): Likewise.
18769 (varpool_alias_target): Likewise.
18770 (cgraph_function_or_thunk_node): Likewise.
18771 (varpool_variable_node): Likewise.
18772 (symtab_real_symbol_p): Likewise.
18773 * cgraphunit.c (referred_to_p): Likewise.
18774 (analyze_functions): Likewise.
18775 (handle_alias_pairs): Likewise.
18776 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18777 * gimple-ssa.h (gimple_vuse_op): Likewise.
18778 (gimple_vdef_op): Likewise.
18779 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18780 * gimple.c (gimple_build_asm_1): Likewise.
18781 (gimple_build_try): Likewise.
18782 (gimple_build_resx): Likewise.
18783 (gimple_build_eh_dispatch): Likewise.
18784 (gimple_build_omp_for): Likewise.
18785 (gimple_omp_for_set_clauses): Likewise.
18786
18787 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18788 (is_a_helper <gimple_statement_asm *>::test): ...this.
18789 (is_a_helper <gimple_statement_bind>::test): Convert to...
18790 (is_a_helper <gimple_statement_bind *>::test): ...this.
18791 (is_a_helper <gimple_statement_call>::test): Convert to...
18792 (is_a_helper <gimple_statement_call *>::test): ...this.
18793 (is_a_helper <gimple_statement_catch>::test): Convert to...
18794 (is_a_helper <gimple_statement_catch *>::test): ...this.
18795 (is_a_helper <gimple_statement_resx>::test): Convert to...
18796 (is_a_helper <gimple_statement_resx *>::test): ...this.
18797 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18798 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18799 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18800 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18801 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18802 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18803 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18804 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18805 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18806 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18807 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18808 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18809 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18810 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18811 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18812 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18813 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18814 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18815 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18816 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18817 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18818 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18819 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18820 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18821 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18822 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18823 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18824 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18825 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18826 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18827 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18828 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18829 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18830 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18831 (is_a_helper <gimple_statement_phi>::test): Convert to...
18832 (is_a_helper <gimple_statement_phi *>::test): ...this.
18833 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18834 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18835 (is_a_helper <gimple_statement_try>::test): Convert to...
18836 (is_a_helper <gimple_statement_try *>::test): ...this.
18837 (is_a_helper <gimple_statement_wce>::test): Convert to...
18838 (is_a_helper <gimple_statement_wce *>::test): ...this.
18839 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18840 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18841 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18842 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18843 (is_a_helper <const gimple_statement_call>::test): Convert to...
18844 (is_a_helper <const gimple_statement_call *>::test): ...this.
18845 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18846 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18847 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18848 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18849 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18850 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18851 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18852 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18853 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18854 Convert to...
18855 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18856 ...this.
18857 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18858 Convert to...
18859 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18860 ...this.
18861 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18862 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18863 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18864 to...
18865 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18866 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18867 to...
18868 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18869 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18870 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18871 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18872 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18873 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18874 to...
18875 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18876 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18877 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18878 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18879 to...
18880 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18881 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18882 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18883 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18884 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18885 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18886 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18887 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18888 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18889 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18890 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18891 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18892 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18893 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18894 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18895 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18896 to...
18897 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18898 ...this.
18899 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18900 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18901
18902 (gimple_use_ops): Update for removal of implicit pointer from the
18903 is-a.h API.
18904 (gimple_set_use_ops): Likewise.
18905 (gimple_vuse): Likewise.
18906 (gimple_vdef): Likewise.
18907 (gimple_vuse_ptr): Likewise.
18908 (gimple_vdef_ptr): Likewise.
18909 (gimple_set_vuse): Likewise.
18910 (gimple_set_vdef): Likewise.
18911 (gimple_omp_return_set_lhs): Likewise.
18912 (gimple_omp_return_lhs): Likewise.
18913 (gimple_omp_return_lhs_ptr): Likewise.
18914 (gimple_call_fntype): Likewise.
18915 (gimple_call_set_fntype): Likewise.
18916 (gimple_call_set_internal_fn): Likewise.
18917 (gimple_call_use_set): Likewise.
18918 (gimple_call_clobber_set): Likewise.
18919 (gimple_bind_vars): Likewise.
18920 (gimple_bind_set_vars): Likewise.
18921 (gimple_bind_body_ptr): Likewise.
18922 (gimple_bind_set_body): Likewise.
18923 (gimple_bind_add_stmt): Likewise.
18924 (gimple_bind_block): Likewise.
18925 (gimple_bind_set_block): Likewise.
18926 (gimple_asm_ninputs): Likewise.
18927 (gimple_asm_noutputs): Likewise.
18928 (gimple_asm_nclobbers): Likewise.
18929 (gimple_asm_nlabels): Likewise.
18930 (gimple_asm_input_op): Likewise.
18931 (gimple_asm_input_op_ptr): Likewise.
18932 (gimple_asm_output_op): Likewise.
18933 (gimple_asm_output_op_ptr): Likewise.
18934 (gimple_asm_set_output_op): Likewise.
18935 (gimple_asm_clobber_op): Likewise.
18936 (gimple_asm_set_clobber_op): Likewise.
18937 (gimple_asm_label_op): Likewise.
18938 (gimple_asm_set_label_op): Likewise.
18939 (gimple_asm_string): Likewise.
18940 (gimple_catch_types): Likewise.
18941 (gimple_catch_types_ptr): Likewise.
18942 (gimple_catch_handler_ptr): Likewise.
18943 (gimple_catch_set_types): Likewise.
18944 (gimple_catch_set_handler): Likewise.
18945 (gimple_eh_filter_types): Likewise.
18946 (gimple_eh_filter_types_ptr): Likewise.
18947 (gimple_eh_filter_failure_ptr): Likewise.
18948 (gimple_eh_filter_set_types): Likewise.
18949 (gimple_eh_filter_set_failure): Likewise.
18950 (gimple_eh_must_not_throw_fndecl): Likewise.
18951 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18952 (gimple_eh_else_n_body_ptr): Likewise.
18953 (gimple_eh_else_e_body_ptr): Likewise.
18954 (gimple_eh_else_set_n_body): Likewise.
18955 (gimple_eh_else_set_e_body): Likewise.
18956 (gimple_try_eval_ptr): Likewise.
18957 (gimple_try_cleanup_ptr): Likewise.
18958 (gimple_try_set_eval): Likewise.
18959 (gimple_try_set_cleanup): Likewise.
18960 (gimple_wce_cleanup_ptr): Likewise.
18961 (gimple_wce_set_cleanup): Likewise.
18962 (gimple_phi_capacity): Likewise.
18963 (gimple_phi_num_args): Likewise.
18964 (gimple_phi_result): Likewise.
18965 (gimple_phi_result_ptr): Likewise.
18966 (gimple_phi_set_result): Likewise.
18967 (gimple_phi_arg): Likewise.
18968 (gimple_phi_set_arg): Likewise.
18969 (gimple_resx_region): Likewise.
18970 (gimple_resx_set_region): Likewise.
18971 (gimple_eh_dispatch_region): Likewise.
18972 (gimple_eh_dispatch_set_region): Likewise.
18973 (gimple_omp_critical_name): Likewise.
18974 (gimple_omp_critical_name_ptr): Likewise.
18975 (gimple_omp_critical_set_name): Likewise.
18976 (gimple_omp_for_clauses): Likewise.
18977 (gimple_omp_for_clauses_ptr): Likewise.
18978 (gimple_omp_for_set_clauses): Likewise.
18979 (gimple_omp_for_collapse): Likewise.
18980 (gimple_omp_for_index): Likewise.
18981 (gimple_omp_for_index_ptr): Likewise.
18982 (gimple_omp_for_set_index): Likewise.
18983 (gimple_omp_for_initial): Likewise.
18984 (gimple_omp_for_initial_ptr): Likewise.
18985 (gimple_omp_for_set_initial): Likewise.
18986 (gimple_omp_for_final): Likewise.
18987 (gimple_omp_for_final_ptr): Likewise.
18988 (gimple_omp_for_set_final): Likewise.
18989 (gimple_omp_for_incr): Likewise.
18990 (gimple_omp_for_incr_ptr): Likewise.
18991 (gimple_omp_for_set_incr): Likewise.
18992 (gimple_omp_for_pre_body_ptr): Likewise.
18993 (gimple_omp_for_set_pre_body): Likewise.
18994 (gimple_omp_parallel_clauses): Likewise.
18995 (gimple_omp_parallel_clauses_ptr): Likewise.
18996 (gimple_omp_parallel_set_clauses): Likewise.
18997 (gimple_omp_parallel_child_fn): Likewise.
18998 (gimple_omp_parallel_child_fn_ptr): Likewise.
18999 (gimple_omp_parallel_set_child_fn): Likewise.
19000 (gimple_omp_parallel_data_arg): Likewise.
19001 (gimple_omp_parallel_data_arg_ptr): Likewise.
19002 (gimple_omp_parallel_set_data_arg): Likewise.
19003 (gimple_omp_task_clauses): Likewise.
19004 (gimple_omp_task_clauses_ptr): Likewise.
19005 (gimple_omp_task_set_clauses): Likewise.
19006 (gimple_omp_task_child_fn): Likewise.
19007 (gimple_omp_task_child_fn_ptr): Likewise.
19008 (gimple_omp_task_set_child_fn): Likewise.
19009 (gimple_omp_task_data_arg): Likewise.
19010 (gimple_omp_task_data_arg_ptr): Likewise.
19011 (gimple_omp_task_set_data_arg): Likewise.
19012 (gimple_omp_taskreg_clauses): Likewise.
19013 (gimple_omp_taskreg_clauses_ptr): Likewise.
19014 (gimple_omp_taskreg_set_clauses): Likewise.
19015 (gimple_omp_taskreg_child_fn): Likewise.
19016 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19017 (gimple_omp_taskreg_set_child_fn): Likewise.
19018 (gimple_omp_taskreg_data_arg): Likewise.
19019 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19020 (gimple_omp_taskreg_set_data_arg): Likewise.
19021 (gimple_omp_task_copy_fn): Likewise.
19022 (gimple_omp_task_copy_fn_ptr): Likewise.
19023 (gimple_omp_task_set_copy_fn): Likewise.
19024 (gimple_omp_task_arg_size): Likewise.
19025 (gimple_omp_task_arg_size_ptr): Likewise.
19026 (gimple_omp_task_set_arg_size): Likewise.
19027 (gimple_omp_task_arg_align): Likewise.
19028 (gimple_omp_task_arg_align_ptr): Likewise.
19029 (gimple_omp_task_set_arg_align): Likewise.
19030 (gimple_omp_single_clauses): Likewise.
19031 (gimple_omp_single_clauses_ptr): Likewise.
19032 (gimple_omp_single_set_clauses): Likewise.
19033 (gimple_omp_target_clauses): Likewise.
19034 (gimple_omp_target_clauses_ptr): Likewise.
19035 (gimple_omp_target_set_clauses): Likewise.
19036 (gimple_omp_target_child_fn): Likewise.
19037 (gimple_omp_target_child_fn_ptr): Likewise.
19038 (gimple_omp_target_set_child_fn): Likewise.
19039 (gimple_omp_target_data_arg): Likewise.
19040 (gimple_omp_target_data_arg_ptr): Likewise.
19041 (gimple_omp_target_set_data_arg): Likewise.
19042 (gimple_omp_teams_clauses): Likewise.
19043 (gimple_omp_teams_clauses_ptr): Likewise.
19044 (gimple_omp_teams_set_clauses): Likewise.
19045 (gimple_omp_sections_clauses): Likewise.
19046 (gimple_omp_sections_clauses_ptr): Likewise.
19047 (gimple_omp_sections_set_clauses): Likewise.
19048 (gimple_omp_sections_control): Likewise.
19049 (gimple_omp_sections_control_ptr): Likewise.
19050 (gimple_omp_sections_set_control): Likewise.
19051 (gimple_omp_for_set_cond): Likewise.
19052 (gimple_omp_for_cond): Likewise.
19053 (gimple_omp_atomic_store_set_val): Likewise.
19054 (gimple_omp_atomic_store_val): Likewise.
19055 (gimple_omp_atomic_store_val_ptr): Likewise.
19056 (gimple_omp_atomic_load_set_lhs): Likewise.
19057 (gimple_omp_atomic_load_lhs): Likewise.
19058 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19059 (gimple_omp_atomic_load_set_rhs): Likewise.
19060 (gimple_omp_atomic_load_rhs): Likewise.
19061 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19062 (gimple_omp_continue_control_def): Likewise.
19063 (gimple_omp_continue_control_def_ptr): Likewise.
19064 (gimple_omp_continue_set_control_def): Likewise.
19065 (gimple_omp_continue_control_use): Likewise.
19066 (gimple_omp_continue_control_use_ptr): Likewise.
19067 (gimple_omp_continue_set_control_use): Likewise.
19068 (gimple_transaction_body_ptr): Likewise.
19069 (gimple_transaction_label): Likewise.
19070 (gimple_transaction_label_ptr): Likewise.
19071 (gimple_transaction_set_body): Likewise.
19072 (gimple_transaction_set_label): Likewise.
19073
19074 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19075 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19076 * ipa-ref.c (ipa_record_reference): Likewise.
19077 * ipa-reference.c (analyze_function): Likewise.
19078 (ipa_reference_write_optimization_summary): Likewise.
19079 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19080 (address_taken_from_non_vtable_p): Likewise.
19081 (comdat_can_be_unshared_p_1): Likewise.
19082 * lto-cgraph.c (lto_output_ref): Likewise.
19083 (add_references): Likewise.
19084 (compute_ltrans_boundary): Likewise.
19085 (output_symtab): Likewise.
19086 (input_ref): Likewise.
19087 (input_cgraph_1): Likewise.
19088 (output_cgraph_opt_summary): Likewise.
19089 * lto-streamer-out.c (lto_output): Likewise.
19090 (output_symbol_p): Likewise.
19091 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19092 (lsei_start_function_in_partition): Likewise.
19093 (lsei_next_variable_in_partition): Likewise.
19094 (lsei_start_variable_in_partition): Likewise.
19095 * symtab.c (insert_to_assembler_name_hash): Likewise.
19096 (unlink_from_assembler_name_hash): Likewise.
19097 (symtab_unregister_node): Likewise.
19098 (symtab_remove_node): Likewise.
19099 (dump_symtab_node): Likewise.
19100 (verify_symtab_base): Likewise.
19101 (verify_symtab_node): Likewise.
19102 (symtab_make_decl_local): Likewise.
19103 (symtab_alias_ultimate_target): Likewise.
19104 (symtab_resolve_alias): Likewise.
19105 (symtab_get_symbol_partitioning_class): Likewise.
19106 * tree-phinodes.c (allocate_phi_node): Likewise.
19107 (reserve_phi_args_for_new_edge): Likewise.
19108 (remove_phi_args): Likewise.
19109 * varpool.c (varpool_node_for_asm): Likewise.
19110 (varpool_remove_unreferenced_decls): Likewise.
19111
19112 2014-04-23 Jeff Law <law@redhat.com>
19113
19114 PR tree-optimization/60902
19115 * tree-ssa-threadedge.c
19116 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19117 invalidate outputs from statements that do not produce useful
19118 outputs for threading.
19119
19120 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19121
19122 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19123 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19124 machine descriptions for Stack Smashing Protector.
19125
19126 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19127
19128 * aarch64.md (<optab>_rol<mode>3): New pattern.
19129 (<optab>_rolsi3_uxtw): Likewise.
19130 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19131
19132 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19133
19134 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19135 (arm_cortex_a12_tune): Likewise.
19136
19137 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19138
19139 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19140
19141 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19142
19143 * config/arm/arm.md (arm_rev16si2): New pattern.
19144 (arm_rev16si2_alt): Likewise.
19145 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19146
19147 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19148
19149 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19150 (rev16<mode>2_alt): Likewise.
19151 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19152 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19153 (aarch_rev16_shleft_mask_imm_p): Likewise.
19154 (aarch_rev16_p_1): Likewise.
19155 (aarch_rev16_p): Likewise.
19156 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19157 (aarch_rev16_shright_mask_imm_p): Likewise.
19158 (aarch_rev16_shleft_mask_imm_p): Likewise.
19159
19160 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19161
19162 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19163 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19164 rev cost.
19165 (cortex_a53_extra_costs): Likewise.
19166 (cortex_a57_extra_costs): Likewise.
19167 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19168 (cortexa7_extra_costs): Likewise.
19169 (cortexa8_extra_costs): Likewise.
19170 (cortexa12_extra_costs): Likewise.
19171 (cortexa15_extra_costs): Likewise.
19172 (v7m_extra_costs): Likewise.
19173 (arm_new_rtx_costs): Handle BSWAP.
19174
19175 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19176
19177 * config/arm/arm.c (cortexa8_extra_costs): New table.
19178 (arm_cortex_a8_tune): New tuning struct.
19179 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19180
19181 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19182
19183 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19184
19185 2014-04-23 Richard Biener <rguenther@suse.de>
19186
19187 * Makefile.in (OBJS): Remove loop-unswitch.o.
19188 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19189 * passes.def (pass_rtl_unswitch): Likewise.
19190 * loop-init.c (gate_rtl_unswitch): Likewise.
19191 (rtl_unswitch): Likewise.
19192 (pass_data_rtl_unswitch): Likewise.
19193 (pass_rtl_unswitch): Likewise.
19194 (make_pass_rtl_unswitch): Likewise.
19195 * rtl.h (reversed_condition): Likewise.
19196 (compare_and_jump_seq): Likewise.
19197 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19198 and make static.
19199 * loop-unroll.c (compare_and_jump_seq): Likewise.
19200
19201 2014-04-23 Richard Biener <rguenther@suse.de>
19202
19203 PR tree-optimization/60903
19204 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19205 commented code block.
19206 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19207 loop flags to newly created BBs and edges.
19208
19209 2014-04-23 Nick Clifton <nickc@redhat.com>
19210
19211 * config/msp430/msp430.c (msp430_handle_option): Move function
19212 to msp430-common.c
19213 (msp430_option_override): Simplify mcu and mcpu option handling.
19214 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19215 support for -mhwmult command line option.
19216 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19217 -mhwmult command line option.
19218 (msp430_hwmult_enabled): Delete.
19219 (msp43o_output_labelref): Add support for -mhwmult command line option.
19220 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19221 (umulsidi3): Likewise.
19222 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19223 (mcpu, mlarge, msmall): Likewise.
19224 (mhwmult): New option.
19225 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19226 prototype.
19227 (msp430_is_f5_mcu): Remove prototype.
19228 (msp430_use_f5_series_hwmult): Add prototype.
19229 * config/msp430/msp430-opts.h: New file.
19230 * common/config/msp430: New directory.
19231 * common/config/msp430/msp430-common.c: New file.
19232 * config.gcc (msp430): Remove target_has_targetm_common.
19233 * doc/invoke.texi: Document -mhwmult command line option.
19234
19235 2014-04-23 Nick Clifton <nickc@redhat.com>
19236
19237 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19238 default-manifest.o if it can be found in the search path.
19239 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19240
19241 2014-04-23 Terry Guo <terry.guo@arm.com>
19242
19243 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19244
19245 2014-04-23 Richard Biener <rguenther@suse.de>
19246
19247 PR middle-end/60895
19248 * tree-inline.c (declare_return_variable): Use mark_addressable.
19249
19250 2014-04-23 Richard Biener <rguenther@suse.de>
19251
19252 PR middle-end/60891
19253 * loop-init.c (loop_optimizer_init): Make sure to apply
19254 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19255
19256 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19257
19258 PR sanitizer/60275
19259 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19260 New options.
19261 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19262 if flag_sanitize_undefined_trap_on_error.
19263 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19264 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19265 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19266 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19267 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19268 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19269 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19270 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19271 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19272 * ubsan.c (ubsan_instrument_unreachable): Return
19273 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19274 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19275 if flag_sanitize_undefined_trap_on_error and
19276 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19277 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19278 instrument_bool_enum_load): Emit __builtin_trap () if
19279 flag_sanitize_undefined_trap_on_error and
19280 __builtin_handle_*_abort () if !flag_sanitize_recover.
19281 * doc/invoke.texi (-fsanitize-recover,
19282 -fsanitize-undefined-trap-on-error): Document.
19283
19284 2014-04-22 Christian Bruel <christian.bruel@st.com>
19285
19286 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19287 Force immediates to SImode.
19288
19289 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19290
19291 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19292 (lroundsfsi2): New.
19293 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19294 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19295 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19296 (nios2_fpu_insn): Add entry for round.
19297 (N2FPU_NO_ERRNO_P): Define.
19298 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19299 flag_errno_math.
19300 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19301
19302 2014-04-22 Richard Henderson <rth@redhat.com>
19303
19304 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19305 (add<GPI>3_compare0): Remove leading * from name.
19306 (add<GPI>3_carryin): Likewise.
19307 (sub<GPI>3_compare0): Likewise.
19308 (sub<GPI>3_carryin): Likewise.
19309 (<su_optab>mulditi3): New expander.
19310 (multi3): New expander.
19311 (madd<GPI>): Remove leading * from name.
19312
19313 2014-04-22 Martin Jambor <mjambor@suse.cz>
19314
19315 * cgraphclones.c (cgraph_function_versioning): Copy
19316 ipa_transforms_to_apply instead of asserting it is empty.
19317
19318 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19319
19320 PR target/60868
19321 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19322 on count_exp to get mode.
19323
19324 2014-04-22 Andrew Pinski <apinski@cavium.com>
19325
19326 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19327 Handle TLS for ILP32.
19328 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19329 (tlsie_small_<mode>): this and handle PTR.
19330 (tlsie_small_sidi): New pattern.
19331 (tlsle_small): Change to an expand to handle ILP32.
19332 (tlsle_small_<mode>): New pattern.
19333 (tlsdesc_small): Rename to ...
19334 (tlsdesc_small_<mode>): this and handle PTR.
19335
19336 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19337
19338 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19339
19340 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19341
19342 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19343 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19344 (aarch64_types_signed_poly_qualifiers): Likewise.
19345 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19346 (aarch64_types_poly_signed_qualifiers): Likewise.
19347 (TYPES_REINTERP_SS): Type macro added.
19348 (TYPES_REINTERP_SU): Likewise.
19349 (TYPES_REINTERP_SP): Likewise.
19350 (TYPES_REINTERP_US): Likewise.
19351 (TYPES_REINTERP_PS): Likewise.
19352 (aarch64_fold_builtin): New expression folding added.
19353 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19354 Declarations removed.
19355 (REINTERP_SS): Declarations added.
19356 (REINTERP_US): Likewise.
19357 (REINTERP_PS): Likewise.
19358 (REINTERP_SU): Likewise.
19359 (REINTERP_SP): Likewise.
19360 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19361 (vreinterpretq_p8_f64): Likewise.
19362 (vreinterpret_p16_f64): Likewise.
19363 (vreinterpretq_p16_f64): Likewise.
19364 (vreinterpret_f32_f64): Likewise.
19365 (vreinterpretq_f32_f64): Likewise.
19366 (vreinterpret_f64_f32): Likewise.
19367 (vreinterpret_f64_p8): Likewise.
19368 (vreinterpret_f64_p16): Likewise.
19369 (vreinterpret_f64_s8): Likewise.
19370 (vreinterpret_f64_s16): Likewise.
19371 (vreinterpret_f64_s32): Likewise.
19372 (vreinterpret_f64_s64): Likewise.
19373 (vreinterpret_f64_u8): Likewise.
19374 (vreinterpret_f64_u16): Likewise.
19375 (vreinterpret_f64_u32): Likewise.
19376 (vreinterpret_f64_u64): Likewise.
19377 (vreinterpretq_f64_f32): Likewise.
19378 (vreinterpretq_f64_p8): Likewise.
19379 (vreinterpretq_f64_p16): Likewise.
19380 (vreinterpretq_f64_s8): Likewise.
19381 (vreinterpretq_f64_s16): Likewise.
19382 (vreinterpretq_f64_s32): Likewise.
19383 (vreinterpretq_f64_s64): Likewise.
19384 (vreinterpretq_f64_u8): Likewise.
19385 (vreinterpretq_f64_u16): Likewise.
19386 (vreinterpretq_f64_u32): Likewise.
19387 (vreinterpretq_f64_u64): Likewise.
19388 (vreinterpret_s64_f64): Likewise.
19389 (vreinterpretq_s64_f64): Likewise.
19390 (vreinterpret_u64_f64): Likewise.
19391 (vreinterpretq_u64_f64): Likewise.
19392 (vreinterpret_s8_f64): Likewise.
19393 (vreinterpretq_s8_f64): Likewise.
19394 (vreinterpret_s16_f64): Likewise.
19395 (vreinterpretq_s16_f64): Likewise.
19396 (vreinterpret_s32_f64): Likewise.
19397 (vreinterpretq_s32_f64): Likewise.
19398 (vreinterpret_u8_f64): Likewise.
19399 (vreinterpretq_u8_f64): Likewise.
19400 (vreinterpret_u16_f64): Likewise.
19401 (vreinterpretq_u16_f64): Likewise.
19402 (vreinterpret_u32_f64): Likewise.
19403 (vreinterpretq_u32_f64): Likewise.
19404
19405 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19406
19407 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19408 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19409 (vreinterpret_p8_s8): Likewise.
19410 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19411 (vreinterpret_p8_s16): Likewise.
19412 (vreinterpret_p8_s32): Likewise.
19413 (vreinterpret_p8_s64): Likewise.
19414 (vreinterpret_p8_f32): Likewise.
19415 (vreinterpret_p8_u8): Likewise.
19416 (vreinterpret_p8_u16): Likewise.
19417 (vreinterpret_p8_u32): Likewise.
19418 (vreinterpret_p8_u64): Likewise.
19419 (vreinterpret_p8_p16): Likewise.
19420 (vreinterpretq_p8_s8): Likewise.
19421 (vreinterpretq_p8_s16): Likewise.
19422 (vreinterpretq_p8_s32): Likewise.
19423 (vreinterpretq_p8_s64): Likewise.
19424 (vreinterpretq_p8_f32): Likewise.
19425 (vreinterpretq_p8_u8): Likewise.
19426 (vreinterpretq_p8_u16): Likewise.
19427 (vreinterpretq_p8_u32): Likewise.
19428 (vreinterpretq_p8_u64): Likewise.
19429 (vreinterpretq_p8_p16): Likewise.
19430 (vreinterpret_p16_s8): Likewise.
19431 (vreinterpret_p16_s16): Likewise.
19432 (vreinterpret_p16_s32): Likewise.
19433 (vreinterpret_p16_s64): Likewise.
19434 (vreinterpret_p16_f32): Likewise.
19435 (vreinterpret_p16_u8): Likewise.
19436 (vreinterpret_p16_u16): Likewise.
19437 (vreinterpret_p16_u32): Likewise.
19438 (vreinterpret_p16_u64): Likewise.
19439 (vreinterpret_p16_p8): Likewise.
19440 (vreinterpretq_p16_s8): Likewise.
19441 (vreinterpretq_p16_s16): Likewise.
19442 (vreinterpretq_p16_s32): Likewise.
19443 (vreinterpretq_p16_s64): Likewise.
19444 (vreinterpretq_p16_f32): Likewise.
19445 (vreinterpretq_p16_u8): Likewise.
19446 (vreinterpretq_p16_u16): Likewise.
19447 (vreinterpretq_p16_u32): Likewise.
19448 (vreinterpretq_p16_u64): Likewise.
19449 (vreinterpretq_p16_p8): Likewise.
19450 (vreinterpret_f32_s8): Likewise.
19451 (vreinterpret_f32_s16): Likewise.
19452 (vreinterpret_f32_s32): Likewise.
19453 (vreinterpret_f32_s64): Likewise.
19454 (vreinterpret_f32_u8): Likewise.
19455 (vreinterpret_f32_u16): Likewise.
19456 (vreinterpret_f32_u32): Likewise.
19457 (vreinterpret_f32_u64): Likewise.
19458 (vreinterpret_f32_p8): Likewise.
19459 (vreinterpret_f32_p16): Likewise.
19460 (vreinterpretq_f32_s8): Likewise.
19461 (vreinterpretq_f32_s16): Likewise.
19462 (vreinterpretq_f32_s32): Likewise.
19463 (vreinterpretq_f32_s64): Likewise.
19464 (vreinterpretq_f32_u8): Likewise.
19465 (vreinterpretq_f32_u16): Likewise.
19466 (vreinterpretq_f32_u32): Likewise.
19467 (vreinterpretq_f32_u64): Likewise.
19468 (vreinterpretq_f32_p8): Likewise.
19469 (vreinterpretq_f32_p16): Likewise.
19470 (vreinterpret_s64_s8): Likewise.
19471 (vreinterpret_s64_s16): Likewise.
19472 (vreinterpret_s64_s32): Likewise.
19473 (vreinterpret_s64_f32): Likewise.
19474 (vreinterpret_s64_u8): Likewise.
19475 (vreinterpret_s64_u16): Likewise.
19476 (vreinterpret_s64_u32): Likewise.
19477 (vreinterpret_s64_u64): Likewise.
19478 (vreinterpret_s64_p8): Likewise.
19479 (vreinterpret_s64_p16): Likewise.
19480 (vreinterpretq_s64_s8): Likewise.
19481 (vreinterpretq_s64_s16): Likewise.
19482 (vreinterpretq_s64_s32): Likewise.
19483 (vreinterpretq_s64_f32): Likewise.
19484 (vreinterpretq_s64_u8): Likewise.
19485 (vreinterpretq_s64_u16): Likewise.
19486 (vreinterpretq_s64_u32): Likewise.
19487 (vreinterpretq_s64_u64): Likewise.
19488 (vreinterpretq_s64_p8): Likewise.
19489 (vreinterpretq_s64_p16): Likewise.
19490 (vreinterpret_u64_s8): Likewise.
19491 (vreinterpret_u64_s16): Likewise.
19492 (vreinterpret_u64_s32): Likewise.
19493 (vreinterpret_u64_s64): Likewise.
19494 (vreinterpret_u64_f32): Likewise.
19495 (vreinterpret_u64_u8): Likewise.
19496 (vreinterpret_u64_u16): Likewise.
19497 (vreinterpret_u64_u32): Likewise.
19498 (vreinterpret_u64_p8): Likewise.
19499 (vreinterpret_u64_p16): Likewise.
19500 (vreinterpretq_u64_s8): Likewise.
19501 (vreinterpretq_u64_s16): Likewise.
19502 (vreinterpretq_u64_s32): Likewise.
19503 (vreinterpretq_u64_s64): Likewise.
19504 (vreinterpretq_u64_f32): Likewise.
19505 (vreinterpretq_u64_u8): Likewise.
19506 (vreinterpretq_u64_u16): Likewise.
19507 (vreinterpretq_u64_u32): Likewise.
19508 (vreinterpretq_u64_p8): Likewise.
19509 (vreinterpretq_u64_p16): Likewise.
19510 (vreinterpret_s8_s16): Likewise.
19511 (vreinterpret_s8_s32): Likewise.
19512 (vreinterpret_s8_s64): Likewise.
19513 (vreinterpret_s8_f32): Likewise.
19514 (vreinterpret_s8_u8): Likewise.
19515 (vreinterpret_s8_u16): Likewise.
19516 (vreinterpret_s8_u32): Likewise.
19517 (vreinterpret_s8_u64): Likewise.
19518 (vreinterpret_s8_p8): Likewise.
19519 (vreinterpret_s8_p16): Likewise.
19520 (vreinterpretq_s8_s16): Likewise.
19521 (vreinterpretq_s8_s32): Likewise.
19522 (vreinterpretq_s8_s64): Likewise.
19523 (vreinterpretq_s8_f32): Likewise.
19524 (vreinterpretq_s8_u8): Likewise.
19525 (vreinterpretq_s8_u16): Likewise.
19526 (vreinterpretq_s8_u32): Likewise.
19527 (vreinterpretq_s8_u64): Likewise.
19528 (vreinterpretq_s8_p8): Likewise.
19529 (vreinterpretq_s8_p16): Likewise.
19530 (vreinterpret_s16_s8): Likewise.
19531 (vreinterpret_s16_s32): Likewise.
19532 (vreinterpret_s16_s64): Likewise.
19533 (vreinterpret_s16_f32): Likewise.
19534 (vreinterpret_s16_u8): Likewise.
19535 (vreinterpret_s16_u16): Likewise.
19536 (vreinterpret_s16_u32): Likewise.
19537 (vreinterpret_s16_u64): Likewise.
19538 (vreinterpret_s16_p8): Likewise.
19539 (vreinterpret_s16_p16): Likewise.
19540 (vreinterpretq_s16_s8): Likewise.
19541 (vreinterpretq_s16_s32): Likewise.
19542 (vreinterpretq_s16_s64): Likewise.
19543 (vreinterpretq_s16_f32): Likewise.
19544 (vreinterpretq_s16_u8): Likewise.
19545 (vreinterpretq_s16_u16): Likewise.
19546 (vreinterpretq_s16_u32): Likewise.
19547 (vreinterpretq_s16_u64): Likewise.
19548 (vreinterpretq_s16_p8): Likewise.
19549 (vreinterpretq_s16_p16): Likewise.
19550 (vreinterpret_s32_s8): Likewise.
19551 (vreinterpret_s32_s16): Likewise.
19552 (vreinterpret_s32_s64): Likewise.
19553 (vreinterpret_s32_f32): Likewise.
19554 (vreinterpret_s32_u8): Likewise.
19555 (vreinterpret_s32_u16): Likewise.
19556 (vreinterpret_s32_u32): Likewise.
19557 (vreinterpret_s32_u64): Likewise.
19558 (vreinterpret_s32_p8): Likewise.
19559 (vreinterpret_s32_p16): Likewise.
19560 (vreinterpretq_s32_s8): Likewise.
19561 (vreinterpretq_s32_s16): Likewise.
19562 (vreinterpretq_s32_s64): Likewise.
19563 (vreinterpretq_s32_f32): Likewise.
19564 (vreinterpretq_s32_u8): Likewise.
19565 (vreinterpretq_s32_u16): Likewise.
19566 (vreinterpretq_s32_u32): Likewise.
19567 (vreinterpretq_s32_u64): Likewise.
19568 (vreinterpretq_s32_p8): Likewise.
19569 (vreinterpretq_s32_p16): Likewise.
19570 (vreinterpret_u8_s8): Likewise.
19571 (vreinterpret_u8_s16): Likewise.
19572 (vreinterpret_u8_s32): Likewise.
19573 (vreinterpret_u8_s64): Likewise.
19574 (vreinterpret_u8_f32): Likewise.
19575 (vreinterpret_u8_u16): Likewise.
19576 (vreinterpret_u8_u32): Likewise.
19577 (vreinterpret_u8_u64): Likewise.
19578 (vreinterpret_u8_p8): Likewise.
19579 (vreinterpret_u8_p16): Likewise.
19580 (vreinterpretq_u8_s8): Likewise.
19581 (vreinterpretq_u8_s16): Likewise.
19582 (vreinterpretq_u8_s32): Likewise.
19583 (vreinterpretq_u8_s64): Likewise.
19584 (vreinterpretq_u8_f32): Likewise.
19585 (vreinterpretq_u8_u16): Likewise.
19586 (vreinterpretq_u8_u32): Likewise.
19587 (vreinterpretq_u8_u64): Likewise.
19588 (vreinterpretq_u8_p8): Likewise.
19589 (vreinterpretq_u8_p16): Likewise.
19590 (vreinterpret_u16_s8): Likewise.
19591 (vreinterpret_u16_s16): Likewise.
19592 (vreinterpret_u16_s32): Likewise.
19593 (vreinterpret_u16_s64): Likewise.
19594 (vreinterpret_u16_f32): Likewise.
19595 (vreinterpret_u16_u8): Likewise.
19596 (vreinterpret_u16_u32): Likewise.
19597 (vreinterpret_u16_u64): Likewise.
19598 (vreinterpret_u16_p8): Likewise.
19599 (vreinterpret_u16_p16): Likewise.
19600 (vreinterpretq_u16_s8): Likewise.
19601 (vreinterpretq_u16_s16): Likewise.
19602 (vreinterpretq_u16_s32): Likewise.
19603 (vreinterpretq_u16_s64): Likewise.
19604 (vreinterpretq_u16_f32): Likewise.
19605 (vreinterpretq_u16_u8): Likewise.
19606 (vreinterpretq_u16_u32): Likewise.
19607 (vreinterpretq_u16_u64): Likewise.
19608 (vreinterpretq_u16_p8): Likewise.
19609 (vreinterpretq_u16_p16): Likewise.
19610 (vreinterpret_u32_s8): Likewise.
19611 (vreinterpret_u32_s16): Likewise.
19612 (vreinterpret_u32_s32): Likewise.
19613 (vreinterpret_u32_s64): Likewise.
19614 (vreinterpret_u32_f32): Likewise.
19615 (vreinterpret_u32_u8): Likewise.
19616 (vreinterpret_u32_u16): Likewise.
19617 (vreinterpret_u32_u64): Likewise.
19618 (vreinterpret_u32_p8): Likewise.
19619 (vreinterpret_u32_p16): Likewise.
19620 (vreinterpretq_u32_s8): Likewise.
19621 (vreinterpretq_u32_s16): Likewise.
19622 (vreinterpretq_u32_s32): Likewise.
19623 (vreinterpretq_u32_s64): Likewise.
19624 (vreinterpretq_u32_f32): Likewise.
19625 (vreinterpretq_u32_u8): Likewise.
19626 (vreinterpretq_u32_u16): Likewise.
19627 (vreinterpretq_u32_u64): Likewise.
19628 (vreinterpretq_u32_p8): Likewise.
19629 (vreinterpretq_u32_p16): Likewise.
19630
19631 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19632
19633 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19634 Pattern extended.
19635 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19636 (sqabs): Likewise.
19637 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19638 (vqnegd_s64): Likewise.
19639 (vqabs_s64): Likewise.
19640 (vqabsd_s64): Likewise.
19641
19642 2014-04-22 Richard Henderson <rth@redhat.com>
19643
19644 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19645 computation to the top of the loop.
19646
19647 2014-04-22 Renlin <renlin.li@arm.com>
19648 Jiong Wang <jiong.wang@arm.com>
19649
19650 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19651 * config/aarch64/aarch64.c (aarch64_layout_frame)
19652 (aarch64_initial_elimination_offset): Likewise.
19653
19654 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19655
19656 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19657 Fix indentation.
19658
19659 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19660
19661 * machmode.h (bitwise_mode_for_mode): Declare.
19662 * stor-layout.h (bitwise_type_for_mode): Likewise.
19663 * stor-layout.c (bitwise_mode_for_mode): New function.
19664 (bitwise_type_for_mode): Likewise.
19665 * builtins.c (fold_builtin_memory_op): Use it instead of
19666 int_mode_for_mode and build_nonstandard_integer_type.
19667
19668 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19669
19670 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19671 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19672 (*-*-solaris2*): Simplify.
19673 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19674 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19675 *-*-solaris2.9* handling.
19676
19677 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19678 as bug.
19679 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19680 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19681 handling, simplify.
19682 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19683 * configure: Regenerate.
19684
19685 * config/i386/sol2-9.h: Remove.
19686
19687 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19688 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19689 Remove Solaris 9 references.
19690
19691 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19692
19693 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19694 (floatuns<GPI:mode><GPF:mode>2): Remove.
19695 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19696 and floatuns conversions.
19697 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19698 and floatuns conversions.
19699 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19700 (w1,w2): New mode attributes for inequal width conversions.
19701
19702 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19703
19704 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19705 the output asm format.
19706
19707 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19708
19709 * config/aarch64/aarch64-simd.md
19710 (aarch64_cm<optab>di): Always split.
19711 (*aarch64_cm<optab>di): New.
19712 (aarch64_cmtstdi): Always split.
19713 (*aarch64_cmtstdi): New.
19714
19715 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19716
19717 PR tree-optimization/60823
19718 * omp-low.c (ipa_simd_modify_function_body): Go through
19719 all SSA_NAMEs and for those refering to vector arguments
19720 which are going to be replaced adjust SSA_NAME_VAR and,
19721 if it is a default definition, change it into a non-default
19722 definition assigned at the beginning of function from new_decl.
19723 (ipa_simd_modify_stmt_ops): Rewritten.
19724 * tree-dfa.c (set_ssa_default_def): When removing default def,
19725 check for NULL loc instead of NULL *loc.
19726
19727 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19728
19729 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19730 restrictions on core registers for DImode values in Thumb2.
19731
19732 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19733
19734 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19735 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19736
19737 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19738
19739 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19740 (*iordi_notzesidi_di): Likewise.
19741 (*iordi_notsesidi_di): Likewise.
19742
19743 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19744
19745 * config/arm/arm-protos.h (tune_params): New struct members.
19746 * config/arm/arm.c: Initialise tune_params per processor.
19747 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19748 for speed, based on new tune_params.
19749
19750 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19751
19752 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19753 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19754 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19755 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19756 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19757 (vrnda_f64): Likewise.
19758 (vrndi_f64): Likewise.
19759 (vrndm_f64): Likewise.
19760 (vrndn_f64): Likewise.
19761 (vrndp_f64): Likewise.
19762 (vrndx_f64): Likewise.
19763
19764 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19765
19766 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19767 GET_MODE_SIZE argument is enum machine_mode.
19768
19769 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19770
19771 PR target/60910
19772 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19773 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19774
19775 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19776
19777 PR middle-end/60281
19778 * asan.c (asan_emit_stack_protection): Force the base to align to
19779 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19780 appropriate bits if STRICT_ALIGNMENT.
19781 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19782 when asan is on.
19783 (expand_used_vars): Leave a space in the stack frame for alignment
19784 if STRICT_ALIGNMENT.
19785
19786 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19787
19788 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19789 than a gimple.
19790 (gimple_store_p): Likewise.
19791 (gimple_assign_load_p): Likewise.
19792 (gimple_assign_cast_p): Likewise.
19793 (gimple_clobber_p): Likewise.
19794
19795 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19796 rather than a gimple.
19797 (gimple_assign_cast_p): Likewise.
19798
19799 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19800
19801 PR target/60735
19802 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19803 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19804
19805 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19806 more debug information for E500 if -mdebug=reg.
19807
19808 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19809
19810 PR target/60909
19811 * config/i386/i386.c (ix86_expand_builtin)
19812 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19813 register for target RTX.
19814 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19815
19816 2014-04-18 Cong Hou <congh@google.com>
19817
19818 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19819 the widen-mult pattern by handling two operands with different sizes,
19820 and operands whose size is smaller than half of the result type.
19821
19822 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19823
19824 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19825 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19826 (do_estimate_edge_time): Compute it.
19827 * ipa-inline.c (want_inline_small_function_p): Bypass
19828 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19829
19830 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19831
19832 * ipa-inline.c (spec_rem): New static variable.
19833 (dump_overall_stats): New function.
19834 (dump_inline_stats): New function.
19835
19836 2014-04-18 Richard Henderson <rth@redhat.com>
19837
19838 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19839 to GET_MODE_SIZE, not a reg_class_t.
19840
19841 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19842
19843 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19844 (vsx_xxmrglw_<mode>): Likewise.
19845
19846 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19847
19848 PR target/60876
19849 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19850 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19851 (rs6000_init_hard_regno_mode_ok): Likewise.
19852
19853 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19854
19855 * ipa-inline.c (inline_small_functions): Account only non-cold
19856 functions.
19857 * doc/invoke.texi (inline-unit-growth): Update documentation.
19858
19859 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19860
19861 * config/rs6000/rs6000.md (addti3, subti3): New.
19862
19863 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19864
19865 PR target/60863
19866 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19867 comment. Check optimize_insn_for_size_p instead of
19868 optimize_insn_for_speed_p.
19869
19870 2014-04-17 Martin Jambor <mjambor@suse.cz>
19871
19872 * gimple-iterator.c (gsi_start_edge): New function.
19873 * gimple-iterator.h (gsi_start_edge): Declare.
19874 * tree-sra.c (single_non_eh_succ): New function.
19875 (disqualify_ops_if_throwing_stmt): Renamed to
19876 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19877 having one non-EH successor BB.
19878 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19879 generate loads into replacements.
19880 (sra_modify_assign): Likewise and and also use the simple path for
19881 such statements.
19882 (sra_modify_function_body): Commit statements on edges.
19883
19884 2014-04-17 Richard Biener <rguenther@suse.de>
19885
19886 PR middle-end/60849
19887 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19888 comparison results and add clarifying comment.
19889
19890 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19891
19892 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19893 (blank_mode): Initialize it.
19894 (emit_mode_size_inline, emit_mode_nunits_inline,
19895 emit_mode_inner_inline): New functions.
19896 (emit_insn_modes_h): Call them and surround their output with
19897 #if GCC_VERSION >= 4001 ... #endif.
19898 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19899 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19900 mode_* arrays if the argument is __builtin_constant_p.
19901 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19902 is enum machine_mode.
19903
19904 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19905
19906 * passes.c (opt_pass::execute): Adjust.
19907 (pass_manager::execute_pass_mode_switching): Likewise.
19908 (early_local_passes::execute): Likewise.
19909 (execute_one_pass): Pass cfun to the pass's execute method.
19910 * tree-pass.h (opt_pass::execute): Add function * argument.
19911 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19912 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19913 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19914 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19915 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19916 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19917 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19918 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19919 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19920 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19921 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19922 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19923 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19924 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19925 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19926 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19927 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19928 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19929 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19930 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19931 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19932 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19933 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19934 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19935 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19936 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19937 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19938 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19939 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19940 Adjust.
19941
19942 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19943
19944 * passes.c (opt_pass::gate): Take function * argument.
19945 (gate_all_early_local_passes): Merge into
19946 (early_local_passes::gate): this.
19947 (gate_all_early_optimizations): Merge into
19948 (all_early_optimizations::gate): this.
19949 (gate_all_optimizations): Mege into
19950 (all_optimizations::gate): this.
19951 (gate_all_optimizations_g): Merge into
19952 (all_optimizations_g::gate): this.
19953 (gate_rest_of_compilation): Mege into
19954 (rest_of_compilation::gate): this.
19955 (gate_postreload): Merge into
19956 (postreload::gate): this.
19957 (dump_one_pass): Pass cfun to the pass's gate method.
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_summaries_1): Likewise.
19963 (ipa_read_optimization_summaries_1): Likewise.
19964 (execute_ipa_stmt_fixups): Likewise.
19965 * tree-pass.h (opt_pass::gate): Add function * argument.
19966 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19967 combine-stack-adj.c, combine.c, compare-elim.c,
19968 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19969 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19970 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19971 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19972 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19973 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19974 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19975 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19976 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19977 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19978 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19979 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19980 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19981 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19982 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19983 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19984 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19985 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19986 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19987 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19988 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19989 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19990 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19991 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19992 var-tracking.c, vtable-verify.c, web.c: Adjust.
19993
19994 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19995
19996 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19997 * configure: Regenerate.
19998
19999 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20000
20001 * passes.c (dump_one_pass): don't check pass->has_gate.
20002 (execute_ipa_summary_passes): Likewise.
20003 (execute_one_pass): Likewise.
20004 (ipa_write_summaries_2): Likewise.
20005 (ipa_write_optimization_summaries_1): Likewise.
20006 (ipa_read_optimization_summaries_1): Likewise.
20007 (execute_ipa_stmt_fixups): Likewise.
20008 * tree-pass.h (pass_data::has_gate): Remove.
20009 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20010 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20011 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20012 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20013 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20014 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20015 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20016 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20017 gimple-low.c, gimple-ssa-isolate-paths.c,
20018 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20019 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20020 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20021 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20022 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20023 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20024 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20025 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20026 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20027 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20028 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20029 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20030 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20031 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20032 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20033 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20034 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20035 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20036 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20037 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20038 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20039 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20040 Adjust.
20041
20042 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20043
20044 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20045 declaration.
20046 * passes.c (pass_manager::register_dump_files_1): Merge into
20047 (pass_manager::register_dump_files): this, and remove its handling of
20048 properties since the pass always has the properties anyway.
20049 (pass_manager::pass_manager): Adjust.
20050
20051 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20052
20053 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20054 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20055 dealing with properties.
20056 (pass_manager::register_dump_files): Adjust.
20057
20058 2014-03-20 Mark Wielaard <mjw@redhat.com>
20059
20060 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20061 then represent the bound as normal constant value.
20062
20063 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20064
20065 PR target/60847
20066 Forward port from 4.8 branch
20067 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20068
20069 * config/i386/bmiintrin.h (_blsi_u32): New.
20070 (_blsi_u64): Ditto.
20071 (_blsr_u32): Ditto.
20072 (_blsr_u64): Ditto.
20073 (_blsmsk_u32): Ditto.
20074 (_blsmsk_u64): Ditto.
20075 (_tzcnt_u32): Ditto.
20076 (_tzcnt_u64): Ditto.
20077
20078 2014-04-17 Kito Cheng <kito@0xlab.org>
20079
20080 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20081
20082 2014-04-17 Richard Biener <rguenther@suse.de>
20083
20084 PR middle-end/60849
20085 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20086 boolean results for comparisons.
20087
20088 2014-04-17 Richard Biener <rguenther@suse.de>
20089
20090 PR tree-optimization/60836
20091 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20092 initial PHI args to be gimple values.
20093
20094 2014-04-17 Richard Biener <rguenther@suse.de>
20095
20096 PR tree-optimization/60841
20097 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20098 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20099 of stmts to SLP build.
20100 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20101 (vect_analyze_slp): Likewise.
20102 (vect_analyze_slp_instance): Likewise.
20103 (vect_build_slp_tree): Limit overall SLP tree growth.
20104 * tree-vectorizer.h (vect_analyze_data_refs,
20105 vect_analyze_slp): Adjust prototypes.
20106
20107 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20108
20109 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20110 Silvermont.
20111
20112 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20113
20114 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20115 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20116 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20117 for TARGET_SLOW_PSHUFB
20118
20119 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20120
20121 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20122 * config/i386/i386.c (intel_cost): Ditto.
20123
20124 2014-04-17 Joey Ye <joey.ye@arm.com>
20125
20126 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20127
20128 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20129
20130 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20131 with -fuse-profile.
20132
20133 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20134
20135 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20136 (type_all_derivations_known_p): New predicate.
20137 (type_all_ctors_visible_p): New predicate.
20138 (type_possibly_instantiated_p): New predicate.
20139 (get_odr_type): Compute all_derivations_known.
20140 (dump_odr_type): Dump the flag.
20141 (maybe_record_type): Cleanup.
20142 (record_target_from_binfo): Add bases_to_consider array;
20143 record bases for types w/o instances and skip CXX destructor.
20144 (possible_polymorphic_call_targets_1): Add bases_to_consider
20145 and consider_construction parameters; check if type may have instance.
20146 (get_polymorphic_call_info): Set maybe_in_construction to true
20147 when we know nothing.
20148 (record_targets_from_bases): Skip CXX destructors; they are
20149 never called for types in construction.
20150 (possible_polymorphic_call_targets): Do not record target when
20151 type may not have instance.
20152
20153 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20154
20155 PR ipa/60854
20156 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20157 external aliases alive, too.
20158
20159 2014-04-16 Andrew Pinski <apinski@cavium.com>
20160
20161 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20162 definition.
20163
20164 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20165
20166 * final.c (compute_alignments): Do not apply loop alignment to a block
20167 falling through to the exit.
20168
20169 2014-04-16 Catherine Moore <clm@codesourcery.com>
20170
20171 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20172 Adjust constraints for microMIPS store patterns.
20173
20174 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20175
20176 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20177
20178 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20179
20180 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20181 (append_use): Run at -O0.
20182 (append_vdef): Likewise.
20183 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20184 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20185
20186 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20187
20188 PR tree-optimization/60844
20189 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20190 (propagate_op_to_single_use, remove_visited_stmt_chain,
20191 linearize_expr, repropagate_negates, reassociate_bb): Use it
20192 instead of gsi_remove.
20193
20194 2014-04-16 Martin Jambor <mjambor@suse.cz>
20195
20196 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20197 ipa_transforms_to_apply.
20198 (cgraph_function_versioning): Assert that old_node has empty
20199 ipa_transforms_to_apply.
20200 * trans-mem.c (ipa_tm_create_version): Likewise.
20201 * tree-inline.c (tree_function_versioning): Do not duplicate
20202 ipa_transforms_to_apply.
20203
20204 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20205
20206 PR target/60817
20207 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20208 x86_64-*-* cases.
20209 Pass necessary as flags on 64-bit Solaris/x86.
20210 Use lowercase relocs for x86_64-*-*.
20211 * configure: Regenerate.
20212
20213 2014-04-15 Jan Hubicka <jh@suse.cz>
20214
20215 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20216 (maybe_record_node, likely_target_p): Use it.
20217
20218 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20219
20220 PR target/60839
20221 Revert following patch
20222
20223 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20224
20225 PR target/60735
20226 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20227 software floating point or no floating point registers, do not
20228 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20229 in GPRs that occurs after we tested for GPRs that would never be
20230 true.
20231
20232 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20233 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20234 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20235 specifically allow DDmode, since that does not use the SPE SIMD
20236 instructions.
20237
20238 2014-03-21 Mark Wielaard <mjw@redhat.com>
20239
20240 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20241 as unsigned or int depending on type and value used.
20242
20243 2014-04-15 Richard Biener <rguenther@suse.de>
20244
20245 PR rtl-optimization/56965
20246 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20247 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20248 ... here.
20249 * alias.c (true_dependence_1): Do not call
20250 nonoverlapping_component_refs_p.
20251 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20252 nonoverlapping_component_refs_p.
20253 (indirect_refs_may_alias_p): Likewise.
20254
20255 2014-04-15 Teresa Johnson <tejohnson@google.com>
20256
20257 * cfg.c (dump_bb_info): Fix flags check.
20258 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20259
20260 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20261
20262 PR rtl-optimization/60663
20263 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20264 avoid 0 cost.
20265
20266 2014-04-15 Richard Biener <rguenther@suse.de>
20267
20268 * lto-streamer.h (LTO_major_version): Bump to 4.
20269
20270 2014-04-15 Richard Biener <rguenther@suse.de>
20271
20272 * common.opt (lto_partition_model): New enum.
20273 (flto-partition=): Merge separate options with a single with argument,
20274 add -flto-partition=one support.
20275 * flag-types.h (enum lto_partition_model): Declare.
20276 * opts.c (finish_options): Remove duplicate -flto-partition=
20277 option check.
20278 * lto-wrapper.c (run_gcc): Adjust.
20279
20280 2014-04-15 Richard Biener <rguenther@suse.de>
20281
20282 * alias.c (ncr_compar): New function.
20283 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20284
20285 2014-04-15 Richard Biener <rguenther@suse.de>
20286
20287 * alias.c (record_component_aliases): Do not walk BINFOs.
20288
20289 2014-04-15 Richard Biener <rguenther@suse.de>
20290
20291 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20292 Add struct function argument and adjust.
20293 (find_func_aliases_for_call): Likewise.
20294 (find_func_aliases): Likewise.
20295 (find_func_clobbers): Likewise.
20296 (intra_create_variable_infos): Likewise.
20297 (compute_points_to_sets): Likewise.
20298 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20299
20300 2014-04-15 Richard Biener <rguenther@suse.de>
20301
20302 * tree.c (iterative_hash_expr): Use enum tree_code_class
20303 to store TREE_CODE_CLASS.
20304 (tree_block): Likewise.
20305 (tree_set_block): Likewise.
20306 * tree.h (fold_build_pointer_plus_loc): Use
20307 convert_to_ptrofftype_loc.
20308
20309 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20310
20311 PR plugins/59335
20312 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20313 added in 4.9.
20314
20315 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20316
20317 * cfgloop.h (struct loop): Move force_vectorize down.
20318 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20319 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20320 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20321 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20322 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20323 * tree-core.h (enum annot_expr_kind): Add new kind values.
20324 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20325 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20326 kinds.
20327 * tree.def (ANNOTATE_EXPR): Tweak comment.
20328
20329 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20330
20331 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20332 cxa_pure_virtual).
20333
20334 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20335
20336 * tree.h (TYPE_IDENTIFIER): Declare.
20337 * tree.c (subrange_type_for_debug_p): Use it.
20338 * godump.c (go_format_type): Likewise.
20339 * dwarf2out.c (is_cxx_auto, modified_type_die,
20340 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20341 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20342
20343 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20344
20345 PR lto/60820
20346 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20347
20348 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20349
20350 * config/i386/i386.c (examine_argument): Return bool. Return true if
20351 parameter should be passed in memory.
20352 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20353 (construct_container): Update calls to examine_argument.
20354 (function_arg_advance_64): Ditto.
20355 (return_in_memory_32): Merge with ix86_return_in_memory.
20356 (return_in_memory_64): Ditto.
20357 (return_in_memory_ms_64): Ditto.
20358
20359 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20360
20361 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20362 * coverage.c (coverage_compute_profile_id): Handle externally visible
20363 symbols.
20364
20365 2014-04-14 Martin Jambor <mjambor@suse.cz>
20366
20367 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20368 DECL_DISREGARD_INLINE_LIMITS functions.
20369
20370 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20371
20372 PR target/60827
20373 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20374
20375 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20376
20377 PR target/60827
20378 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20379 optimize_insn_for_speed_p instead of
20380 optimize_function_for_speed_p.
20381
20382 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20383
20384 * doc/invoke.texi (free): Document AArch64.
20385
20386 2014-04-14 Richard Biener <rguenther@suse.de>
20387
20388 PR tree-optimization/60042
20389 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20390 (insert_into_preds_of_block): Do not prevent PHI insertion
20391 for REFERENCE exprs here ...
20392 (eliminate_dom_walker::before_dom_children): ... but prevent
20393 their use here under similar conditions when applied to the
20394 IL after PRE optimizations.
20395
20396 2014-04-14 Richard Biener <rguenther@suse.de>
20397
20398 * passes.def: Move early points-to after early SRA.
20399
20400 2014-04-14 Richard Biener <rguenther@suse.de>
20401
20402 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20403 check for which sign-changes we allow when forwarding
20404 a converted value into a switch.
20405
20406 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20407
20408 * stor-layout.c (place_field): Finalize non-constant offset for the
20409 field, if any.
20410
20411 2014-04-14 Richard Biener <rguenther@suse.de>
20412
20413 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20414 as argument.
20415 (expand_switch_using_bit_tests_p): Likewise.
20416 (process_switch): Compute and pass on speed_p based on the
20417 switch stmt.
20418 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20419 optimize_bb_for_speed_p.
20420
20421 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20422
20423 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20424 * function.h (struct function): Rename has_force_vect_loops into
20425 has_force_vectorize_loops.
20426 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20427 (input_struct_function_base): Likewise.
20428 * lto-streamer-out.c (output_cfg): Likewise.
20429 (output_struct_function_base): Likewise.
20430 * omp-low.c (expand_omp_simd): Likewise.
20431 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20432 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20433 (version_loop_for_if_conversion): Likewise.
20434 (tree_if_conversion): Likewise.
20435 (main_tree_if_conversion): Likewise.
20436 (gate_tree_if_conversion): Likewise.
20437 * tree-inline.c (copy_loops): Likewise.
20438 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20439 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20440 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20441 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20442 * tree-vectorizer.c (vectorize_loops): Likewise.
20443 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20444
20445 2014-04-14 Richard Biener <rguenther@suse.de>
20446
20447 PR lto/60720
20448 * lto-streamer-out.c (wrap_refs): New function.
20449 (lto_output): Wrap symbol references in global initializes in
20450 type-preserving MEM_REFs.
20451
20452 2014-04-14 Christian Bruel <christian.bruel@st.com>
20453
20454 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20455
20456 2014-04-14 Christian Bruel <christian.bruel@st.com>
20457
20458 * config/sh/sh.md (setmemqi): New expand pattern.
20459 * config/sh/sh.h (CLEAR_RATIO): Define.
20460 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20461 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20462
20463 2014-04-14 Richard Biener <rguenther@suse.de>
20464
20465 PR middle-end/55022
20466 * fold-const.c (negate_expr_p): Don't negate directional rounding
20467 division.
20468 (fold_negate_expr): Likewise.
20469
20470 2014-04-14 Richard Biener <rguenther@suse.de>
20471
20472 PR tree-optimization/59817
20473 PR tree-optimization/60453
20474 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20475 recursion to catch all CHRECs in the scalar evolution and restrict
20476 the predicate for the remains appropriately.
20477
20478 2014-04-12 Catherine Moore <clm@codesourcery.com>
20479
20480 * config/mips/constraints.md: Add new register constraint "kb".
20481 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20482 (*movhi_internal): Likewise.
20483 (*movqi_internal): Likewise.
20484 * config/mips/mips.h (M16_STORE_REGS): New register class.
20485 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20486 (REG_CLASS_CONTENTS): Likewise.
20487 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20488
20489 2014-04-11 Tobias Burnus <burnus@net-b.de>
20490
20491 PR c/60194
20492 * doc/invoke.texi (-Wformat-signedness): Document it.
20493 (Wformat=2): Mention that this enables -Wformat-signedness.
20494
20495 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20496
20497 * common/config/epiphany/epiphany-common.c
20498 (epiphany_option_optimization_table): Enable section anchors by
20499 default at -O1 or higher.
20500 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20501 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20502 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20503 carries no extra cost.
20504 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20505 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20506 * config/epiphany/predicates.md (memclob_operand): New predicate.
20507 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20508 Use memclob_operand predicate and X constraint for operand 3.
20509
20510 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20511
20512 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20513 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20514 its operands.
20515
20516 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20517
20518 PR rtl-optimization/60651
20519 * mode-switching.c (optimize_mode_switching): Make sure to emit
20520 sets of a lower numbered entity before sets of a higher numbered
20521 entity to a mode of the same or lower priority.
20522 When creating a seginfo for a basic block that starts with a code
20523 label, move the insertion point past the code label.
20524 (new_seginfo): Document and enforce requirement that
20525 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20526 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20527 * doc/tm.texi: Regenerate.
20528
20529 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20530
20531 PR target/60811
20532 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20533
20534 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20535
20536 * BASE-VER: Set to 4.10.0.
20537
20538 2014-04-11 Tobias Burnus <burnus@net-b.de>
20539
20540 PR other/59055
20541 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20542 * doc/gcc.texi (Service): Update description in the @menu
20543 * doc/invoke.texi (Option Summary): Remove misplaced and
20544 duplicated @menu.
20545
20546 2014-04-11 Steve Ellcey <sellcey@mips.com>
20547 Jakub Jelinek <jakub@redhat.com>
20548
20549 PR middle-end/60556
20550 * expr.c (convert_move): Use emit_store_flag_force instead of
20551 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20552 argument to it.
20553
20554 2014-04-11 Richard Biener <rguenther@suse.de>
20555
20556 PR middle-end/60797
20557 * varasm.c (assemble_alias): Avoid endless error reporting
20558 recursion by setting TREE_ASM_WRITTEN.
20559
20560 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20561
20562 * config/s390/s390.md: Add a splitter for NOT rtx.
20563
20564 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20565
20566 PR rtl-optimization/60663
20567 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20568
20569 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20570 Jakub Jelinek <jakub@redhat.com>
20571
20572 PR lto/60567
20573 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20574 flag from decl_node to node.
20575
20576 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20577
20578 PR debug/60655
20579 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20580 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20581 ameliorating the cases where it can be.
20582
20583 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20584
20585 Revert
20586 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20587
20588 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20589 (loadsync_<mode>): Change mode.
20590 (load_quadpti, store_quadpti): New.
20591 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20592 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20593 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20594
20595 2014-04-09 Cong Hou <congh@google.com>
20596
20597 PR testsuite/60773
20598 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20599 documentation.
20600
20601 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20602
20603 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20604 instead of vnor to exploit possible fusion opportunity in the
20605 future.
20606 (altivec_expand_vec_perm_const_le): Likewise.
20607
20608 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20609
20610 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20611 (loadsync_<mode>): Change mode.
20612 (load_quadpti, store_quadpti): New.
20613 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20614 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20615
20616 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20617
20618 PR target/60763
20619 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20620 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20621 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20622
20623 2014-04-08 Richard Biener <rguenther@suse.de>
20624
20625 PR middle-end/60706
20626 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20627 a 64bit widest int print double-int similar to on HWI64 hosts.
20628
20629 2014-04-08 Richard Biener <rguenther@suse.de>
20630
20631 PR tree-optimization/60785
20632 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20633 default defs properly.
20634
20635 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20636
20637 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20638 (Weffc++): Likewise.
20639
20640 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20641
20642 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20643 set completep to false rather than true.
20644
20645 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20646
20647 PR target/60504
20648 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20649 ARM_TARGET2_DWARF_FORMAT.
20650
20651 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20652
20653 PR target/60609
20654 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20655 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20656 ADDR_DIFF_VEC.
20657
20658 2014-04-07 Richard Biener <rguenther@suse.de>
20659
20660 PR tree-optimization/60766
20661 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20662 (may_eliminate_iv): Convert cand_value_at result to desired type.
20663
20664 2014-04-07 Jason Merrill <jason@redhat.com>
20665
20666 PR c++/60731
20667 * common.opt (-fno-gnu-unique): Add.
20668 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20669
20670 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20671
20672 * haifa-sched.c: Fix outdated function reference and minor
20673 grammar errors in introductory comment.
20674
20675 2014-04-07 Richard Biener <rguenther@suse.de>
20676
20677 PR middle-end/60750
20678 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20679 for noreturn calls.
20680 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20681
20682 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20683
20684 PR debug/55794
20685 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20686 size accounting for thunks.
20687 (pa_asm_output_mi_thunk): Use final_start_function() and
20688 final_end_function() to output function start and end directives.
20689
20690 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20691
20692 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20693 device specific ISA/ feature information. Remove short_sp and
20694 errata_skip ds. Add avr_device_specific_features enum to have device
20695 specific info.
20696 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20697 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20698 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20699 updated device specific info.
20700 * config/avr/avr-mcus.def: Merge device specific details to
20701 dev_attribute field.
20702 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20703 errata_skip.
20704 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20705 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20706 assembler if RMW isa supported by current device.
20707 * config/avr/genmultilib.awk: Update as device info structure changed.
20708 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20709
20710 2014-04-04 Cong Hou <congh@google.com>
20711
20712 PR tree-optimization/60656
20713 * tree-vect-stmts.c (supportable_widening_operation):
20714 Fix a bug that elements in a vector with vect_used_by_reduction
20715 property are incorrectly reordered when the operation on it is not
20716 consistant with the one in reduction operation.
20717
20718 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20719
20720 PR rtl-optimization/60155
20721 * gcse.c (record_set_data): New function.
20722 (single_set_gcse): New function.
20723 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20724 (hoist_code): Likewise.
20725 (get_pressure_class_and_nregs): Likewise.
20726
20727 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20728
20729 * explow.c (probe_stack_range): Emit a final optimization blockage.
20730
20731 2014-04-04 Anthony Green <green@moxielogic.com>
20732
20733 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20734 typos.
20735
20736 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20737
20738 PR ipa/59626
20739 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20740 flags are set only during streaming.
20741 * ipa.c (process_references, walk_polymorphic_call_targets,
20742 symtab_remove_unreachable_nodes): Drop bodies of always inline
20743 after early inlining.
20744 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20745
20746 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20747 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20748
20749 PR debug/60655
20750 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20751 containing a NOT.
20752
20753 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20754
20755 PR bootstrap/60743
20756 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20757 duration.
20758 (cortex_a53_fdivd): Likewise.
20759
20760 2014-04-04 Martin Jambor <mjambor@suse.cz>
20761
20762 PR ipa/60640
20763 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20764 Adjust all callers.
20765 * cgraph.c (clone_of_p): Also return true if thunks match.
20766 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20767 cgraph_function_or_thunk_node and an obsolete comment.
20768 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20769 file.
20770 (build_function_decl_skip_args): Likewise.
20771 (set_new_clone_decl_and_node_flags): New function.
20772 (duplicate_thunk_for_node): Likewise.
20773 (redirect_edge_duplicating_thunks): Likewise.
20774 (cgraph_clone_node): New parameter args_to_skip, pass it to
20775 redirect_edge_duplicating_thunks which is called instead of
20776 cgraph_redirect_edge_callee.
20777 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20778 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20779
20780 2014-04-04 Jeff Law <law@redhat.com>
20781
20782 PR target/60657
20783 * config/arm/predicates.md (const_int_I_operand): New predicate.
20784 (const_int_M_operand): Similarly.
20785 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20786 const_int_operand.
20787 (insv_t2, extv_reg, extzv_t2): Likewise.
20788 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20789 (pop_multiple_with_writeback_and_return): Likewise.
20790 (vfp_pop_multiple_with_writeback): Likewise
20791
20792 2014-04-04 Richard Biener <rguenther@suse.de>
20793
20794 PR ipa/60746
20795 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20796 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20797 non-GIMPLE_LABELs.
20798 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20799 * gimplify.c (gimple_add_tmp_var_fn): New function.
20800 * gimple-expr.h (create_tmp_reg_fn): Declare.
20801 * gimple-expr.c (create_tmp_reg_fn): New function.
20802 * gimple-low.c (record_vars_into): Don't change cfun.
20803 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20804 code generation without cfun.
20805
20806 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20807
20808 PR bootstrap/60719
20809 * Makefile.in (install-driver): Fix shell scripting.
20810
20811 2014-04-03 Cong Hou <congh@google.com>
20812
20813 PR tree-optimization/60505
20814 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20815 threshold of number of iterations below which no vectorization
20816 will be done.
20817 * tree-vect-loop.c (new_loop_vec_info):
20818 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20819 * tree-vect-loop.c (vect_analyze_loop_operations):
20820 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20821 * tree-vect-loop.c (vect_transform_loop):
20822 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20823 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20824 of iterations of the loop and see if we should build the epilogue.
20825
20826 2014-04-03 Richard Biener <rguenther@suse.de>
20827
20828 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20829 (streamer_tree_cache_create): Adjust.
20830 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20831 to allow optional nodes array.
20832 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20833 (streamer_tree_cache_append): Likewise.
20834 (streamer_tree_cache_create): Create nodes array optionally
20835 as specified by parameter.
20836 * lto-streamer-out.c (create_output_block): Avoid maintaining
20837 the node array in the writer cache.
20838 (DFS_write_tree): Remove assertion.
20839 (produce_asm_for_decls): Free the out decl state hash table early.
20840 * lto-streamer-in.c (lto_data_in_create): Adjust for
20841 streamer_tree_cache_create prototype change.
20842
20843 2014-04-03 Richard Biener <rguenther@suse.de>
20844
20845 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20846 set TREE_CHAIN to NULL_TREE.
20847
20848 2014-04-03 Richard Biener <rguenther@suse.de>
20849
20850 PR tree-optimization/60740
20851 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20852 over all GIMPLE_COND operands.
20853
20854 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20855
20856 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20857 (Weffc++): Remove Scott's numbering, merge lists and reference
20858 Wnon-virtual-dtor.
20859
20860 2014-04-03 Nick Clifton <nickc@redhat.com>
20861
20862 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20863 properly.
20864
20865 2014-04-03 Martin Jambor <mjambor@suse.cz>
20866
20867 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20868 mention gcc_unreachable before failing.
20869 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20870 removed symbols.
20871
20872 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20873
20874 PR ipa/60659
20875 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20876 inconsistent code and instead mark the context inconsistent.
20877 (possible_polymorphic_call_targets): For inconsistent contexts
20878 return empty complete list.
20879
20880 2014-04-02 Anthony Green <green@moxielogic.com>
20881
20882 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20883 (extendqisi2, extendhisi2): Define.
20884 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20885 (WCHAR_TYPE): Change to unsigned int.
20886
20887 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20888
20889 PR tree-optimization/60733
20890 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20891 insertion point for PHI candidates to be the end of the feeding
20892 block for the PHI argument.
20893
20894 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20895
20896 PR rtl-optimization/60650
20897 * lra-constraints.c (process_alt_operands): Decrease reject for
20898 earlyclobber matching.
20899
20900 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20901
20902 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20903
20904 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20905
20906 * config/spu/spu.c (pad_bb): Do not crash when the last
20907 insn is CODE_FOR_blockage.
20908
20909 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20910
20911 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20912 lies outside the target mode.
20913
20914 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20915
20916 PR target/60735
20917 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20918 software floating point or no floating point registers, do not
20919 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20920 in GPRs that occurs after we tested for GPRs that would never be
20921 true.
20922
20923 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20924 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20925 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20926 specifically allow DDmode, since that does not use the SPE SIMD
20927 instructions.
20928
20929 2014-04-02 Richard Biener <rguenther@suse.de>
20930
20931 PR middle-end/60729
20932 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20933 MODE_INTs. Properly use negv_optab.
20934 (expand_abs): Likewise.
20935
20936 2014-04-02 Richard Biener <rguenther@suse.de>
20937
20938 PR bootstrap/60719
20939 * Makefile.in (install-driver): Guard extra installs with special
20940 names properly.
20941
20942 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20943
20944 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20945 Document vec_vgbbd.
20946
20947 2014-04-01 Richard Henderson <rth@redhat.com>
20948
20949 PR target/60704
20950 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20951 alternative enabled before register allocation.
20952
20953 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20954
20955 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20956 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20957 typo.
20958 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20959 (nios2_got_address): Update nios2_large_got_address call site.
20960 (nios2_delegitimize_address): New function.
20961 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20962 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20963 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20964
20965 2014-04-01 Martin Husemann <martin@duskware.de>
20966
20967 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20968 for -mabi=32.
20969
20970 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20971
20972 PR rtl-optimization/60604
20973 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20974 check from register_operand.
20975 (register_operand): Redefine in terms of general_operand.
20976 (nonmemory_operand): Use register_operand for the non-constant cases.
20977
20978 2014-04-01 Richard Biener <rguenther@suse.de>
20979
20980 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20981
20982 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20983
20984 * doc/invoke.texi (mapp-regs): Clarify.
20985
20986 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20987
20988 * config/i386/avx512fintrin.h (__v32hi): Define type.
20989 (__v64qi): Likewise.
20990 (_mm512_set1_epi8): Define.
20991 (_mm512_set1_epi16): Define.
20992 (_mm512_set4_epi32): Define.
20993 (_mm512_set4_epi64): Define.
20994 (_mm512_set4_pd): Define.
20995 (_mm512_set4_ps): Define.
20996 (_mm512_setr4_epi64): Define.
20997 (_mm512_setr4_epi32): Define.
20998 (_mm512_setr4_pd): Define.
20999 (_mm512_setr4_ps): Define.
21000 (_mm512_setzero_epi32): Define.
21001
21002 2014-03-31 Martin Jambor <mjambor@suse.cz>
21003
21004 PR middle-end/60647
21005 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21006 callsite_arguments_match_p. Updated all callers. Also check types of
21007 corresponding formal parameters and actual arguments.
21008 (not_all_callers_have_enough_arguments_p) Renamed to
21009 some_callers_have_mismatched_arguments_p.
21010
21011 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21012
21013 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21014
21015 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21016
21017 PR target/60034
21018 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21019 section anchor.
21020
21021 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21022
21023 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21024 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21025 Split out
21026 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21027 Use FMAMODE_NOVF512 mode iterator.
21028 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21029 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21030 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21031 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21032 Split out
21033 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21034 Use VF_128_256 mode iterator.
21035 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21036 Ditto.
21037
21038 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21039
21040 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21041 static chain if needed.
21042
21043 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21044
21045 PR target/60697
21046 * lra-constraints.c (index_part_to_reg): New.
21047 (process_address): Use it.
21048
21049 2014-03-27 Jeff Law <law@redhat.com>
21050 Jakub Jelinek <jakub@redhat.com>
21051
21052 PR target/60648
21053 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21054 gen_rtx_{PLUS,MULT} to build up the address expression.
21055
21056 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21057 creating non-canonical RTL.
21058
21059 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21060
21061 PR ipa/60243
21062 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21063 functions; reorganize to make cheap checks first.
21064 (inline_small_functions): Do not estimate growth when dumping;
21065 it is expensive.
21066 * ipa-inline.h (inline_summary): Add min_size.
21067 (growth_likely_positive): New function.
21068 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21069 (set_cond_stmt_execution_predicate): Cleanup.
21070 (estimate_edge_size_and_time): Compute min_size.
21071 (estimate_calls_size_and_time): Likewise.
21072 (estimate_node_size_and_time): Likewise.
21073 (inline_update_overall_summary): Update min_size.
21074 (do_estimate_edge_time): Likewise.
21075 (do_estimate_edge_size): Update.
21076 (do_estimate_edge_hints): Update.
21077 (growth_likely_positive): New function.
21078
21079 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21080
21081 PR target/60693
21082 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21083 also if addr has VOIDmode.
21084
21085 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21086
21087 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21088 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21089 Declare extern.
21090 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21091 instructions as well as AdvancedSIMD loads.
21092
21093 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21094
21095 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21096 Use crypto_aese type.
21097 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21098 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21099 crypto_aese, crypto_aesmc. Move to types.md.
21100 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21101 crypto_aesmc.
21102 * config/arm/iterators.md (crypto_type): Likewise.
21103
21104 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21105
21106 * cgraph.c: Include expr.h and tree-dfa.h.
21107 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21108 remove LHS.
21109
21110 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21111
21112 PR target/60675
21113 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21114 regs from checking multi-reg pseudos.
21115
21116 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21117
21118 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21119
21120 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21121
21122 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21123 if it would clobber the stack pointer, even temporarily.
21124
21125 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21126
21127 * mode-switching.c: Make small adjustments to the top comment.
21128
21129 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21130
21131 * config/rs6000/constraints.md (wD constraint): New constraint to
21132 match the constant integer to get the top DImode/DFmode out of a
21133 vector in a VSX register.
21134
21135 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21136 match the constant integer to get the top DImode/DFmode out of a
21137 vector in a VSX register.
21138
21139 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21140 for ISA 2.07.
21141
21142 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21143 vbpermq builtins.
21144
21145 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21146 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21147
21148 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21149 Optimize vec_extract of 64-bit values, where the value being
21150 extracted is in the top word, where we can use scalar
21151 instructions. Add direct move and store support. Combine the big
21152 endian/little endian vector select load support into a single insn.
21153 (vsx_extract_<mode>_internal1): Likewise.
21154 (vsx_extract_<mode>_internal2): Likewise.
21155 (vsx_extract_<mode>_load): Likewise.
21156 (vsx_extract_<mode>_store): Likewise.
21157 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21158 combined into vsx_extract_<mode>_load.
21159 (vsx_extract_<mode>_one_le): Likewise.
21160
21161 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21162 define the top 64-bit vector element.
21163
21164 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21165 constraint.
21166
21167 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21168 Document vec_vbpermq builtin.
21169
21170 PR target/60672
21171 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21172 enable use of xxsldwi and xxpermdi builtin functions.
21173 (vec_xxpermdi): Likewise.
21174
21175 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21176 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21177
21178 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21179
21180 PR rtl-optimization/60650
21181 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21182 first_p. Use it.
21183 (find_spills_for): New.
21184 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21185 Spill all pseudos on the second iteration.
21186
21187 2014-03-27 Marek Polacek <polacek@redhat.com>
21188
21189 PR c/50347
21190 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21191 types.
21192
21193 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21194
21195 * config/s390/s390.c (s390_can_use_return_insn): Check for
21196 call-saved FPRs on 31 bit.
21197
21198 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21199
21200 PR middle-end/60682
21201 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21202 if they need regimplification, just drop them instead of
21203 calling gimple_regimplify_operands on them.
21204
21205 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21206
21207 PR target/60580
21208 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21209 (aarch64_frame_pointer_required): Adjust logic.
21210 (aarch64_can_eliminate): Adjust logic.
21211 (aarch64_override_options_after_change): Adjust logic.
21212
21213 2014-03-27 Dehao Chen <dehao@google.com>
21214
21215 * ipa-inline.c (early_inliner): Update node's inline info.
21216
21217 2014-03-26 Dehao Chen <dehao@google.com>
21218
21219 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21220 compiler inserted conditional jumps for NAN float check.
21221
21222 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21223
21224 * ubsan.h (ubsan_create_data): Change second argument's type
21225 to const location_t *.
21226 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21227 _("<unknown>").
21228 (ubsan_create_data): Change second argument to const location_t *PLOC.
21229 Create Loc field whenever PLOC is non-NULL.
21230 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21231 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21232 callers.
21233
21234 PR other/59545
21235 * real.c (real_to_integer2): Change type of low to UHWI.
21236
21237 2014-03-26 Tobias Burnus <burnus@net-b.de>
21238
21239 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21240 (CILK_SELF_SPECS): New define.
21241 (driver_self_specs): Use it.
21242
21243 2014-03-26 Richard Biener <rguenther@suse.de>
21244
21245 * tree-pretty-print.c (percent_K_format): Implement special
21246 case for LTO and its stripped down BLOCK tree.
21247
21248 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21249
21250 PR sanitizer/60636
21251 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21252
21253 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21254 one range is range_int_cst_p, but not both, at least optimize
21255 addition/subtraction of 0 and multiplication by 0 or 1.
21256 * gimple-fold.c (gimple_fold_call): Fold
21257 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21258 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21259 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21260
21261 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21262
21263 PR rtl-optimization/60452
21264 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21265 <case REG>: Return 1 for invalid offsets from the frame pointer.
21266
21267 2014-03-26 Marek Polacek <polacek@redhat.com>
21268
21269 PR c/37428
21270 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21271 a structure/union.
21272
21273 2014-03-26 Marek Polacek <polacek@redhat.com>
21274
21275 PR c/39525
21276 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21277 field members.
21278
21279 2014-03-26 Marek Polacek <polacek@redhat.com>
21280
21281 PR other/59545
21282 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21283 multiplication in unsigned type.
21284
21285 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21286
21287 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21288
21289 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21290
21291 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21292
21293 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21294
21295 PR ipa/60315
21296 * cif-code.def (UNREACHABLE) New code.
21297 * ipa-inline.c (inline_small_functions): Skip edges to
21298 __builtlin_unreachable.
21299 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21300 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21301 predicate to __bulitin_unreachable.
21302 (set_cond_stmt_execution_predicate): Fix issue when
21303 invert_tree_comparison returns ERROR_MARK.
21304 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21305 propagate to inline clones.
21306 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21307 to unreachable.
21308 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21309 * cgraphclones.c (cgraph_clone_node): If call destination is already
21310 ureachable, do not redirect it back.
21311 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21312 unreachable.
21313
21314 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21315
21316 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21317 Do not modify inline clones.
21318
21319 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21320
21321 * config/i386/i386.md (general_sext_operand): New mode attr.
21322 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21323 don't generate (sign_extend (const_int)).
21324 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21325 operands[2]. Use We constraint instead of <i> and
21326 <general_sext_operand> predicate instead of <general_operand>.
21327 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21328 * config/i386/constraints.md (We): New constraint.
21329 * config/i386/predicates.md (x86_64_sext_operand,
21330 sext_operand): New predicates.
21331
21332 2014-03-25 Martin Jambor <mjambor@suse.cz>
21333
21334 PR ipa/60600
21335 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21336 inconsistent devirtualizations to __builtin_unreachable.
21337
21338 2014-03-25 Marek Polacek <polacek@redhat.com>
21339
21340 PR c/35449
21341 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21342
21343 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21344
21345 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21346 order of elements for big-endian.
21347
21348 2014-03-25 Richard Biener <rguenther@suse.de>
21349
21350 PR middle-end/60635
21351 * gimplify-me.c (gimple_regimplify_operands): Update the
21352 re-gimplifed stmt.
21353
21354 2014-03-25 Martin Jambor <mjambor@suse.cz>
21355
21356 PR ipa/59176
21357 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21358 (lto_output_varpool_node): Likewise.
21359 (input_overwrite_node): Likewise.
21360 (input_varpool_node): Likewise.
21361
21362 2014-03-25 Richard Biener <rguenther@suse.de>
21363
21364 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21365 (run_gcc): Likewise.
21366
21367 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21368
21369 * combine.c (simplify_compare_const): Add MODE argument.
21370 Handle mode_width 0 as very large mode_width.
21371 (try_combine, simplify_comparison): Adjust callers.
21372
21373 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21374 type to avoid signed integer overflow.
21375 * explow.c (plus_constant): Likewise.
21376
21377 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21378
21379 * doc/generic.texi: Correct typos.
21380
21381 2014-03-24 Tobias Burnus <burnus@net-b.de>
21382
21383 * doc/invoke.texi (-flto): Expand section about
21384 using static libraries with LTO.
21385
21386 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21387
21388 PR rtl-optimization/60501
21389 * optabs.def (addptr3_optab): New optab.
21390 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21391 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21392 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21393
21394 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21395
21396 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21397
21398 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21399
21400 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21401 _mm512_set1_pd.
21402
21403 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21404 (_mm256_undefined_ps): Define.
21405 (_mm256_undefined_pd): Define.
21406 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21407 (_mm_undefined_pd): Define.
21408 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21409 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21410 (_mm512_undefined_ps): Define.
21411 (_mm512_undefined_pd): Define.
21412 Use _mm*_undefined_*.
21413 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21414
21415 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21416
21417 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21418 (lshr_simd): DI mode added.
21419 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21420 (aarch64_ushr_simddi): Likewise.
21421 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21422 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21423 (vshrd_n_u64): Likewise.
21424
21425 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21426
21427 * Makefile.in (s-macro_list): Depend on cc1.
21428
21429 2014-03-23 Teresa Johnson <tejohnson@google.com>
21430
21431 * ipa-utils.c (ipa_print_order): Use specified dump file.
21432
21433 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21434
21435 PR rtl-optimization/60601
21436 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21437
21438 * gcc.c (eval_spec_function): Initialize save_growing_value.
21439
21440 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21441
21442 PR sanitizer/60613
21443 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21444 code == MINUS_EXPR, never swap op0 with op1.
21445
21446 * toplev.c (init_local_tick): Avoid signed integer multiplication
21447 overflow.
21448 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21449 shift by first operand's bitsize.
21450
21451 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21452
21453 PR target/60610
21454 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21455 redefine to 1 or 0.
21456 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21457 TARGET_ISA_64BIT_P(x).
21458
21459 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21460
21461 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21462 pattern for vector nor instead of subtract from splat(-1).
21463 (altivec_expand_vec_perm_const_le): Likewise.
21464
21465 2014-03-21 Richard Henderson <rth@twiddle.net>
21466
21467 PR target/60598
21468 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21469 related insns after epilogue_completed.
21470
21471 2014-03-21 Martin Jambor <mjambor@suse.cz>
21472
21473 PR ipa/59176
21474 * cgraph.h (symtab_node): New flag body_removed.
21475 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21476 when removing bodies.
21477 * symtab.c (dump_symtab_base): Dump body_removed flag.
21478 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21479 had their bodies removed.
21480
21481 2014-03-21 Martin Jambor <mjambor@suse.cz>
21482
21483 PR ipa/60419
21484 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21485 in the border.
21486
21487 2014-03-21 Richard Biener <rguenther@suse.de>
21488
21489 PR tree-optimization/60577
21490 * tree-core.h (struct tree_base): Document nothrow_flag use
21491 in DECL_NONALIASED.
21492 * tree.h (DECL_NONALIASED): New.
21493 (may_be_aliased): Adjust.
21494 * coverage.c (build_var): Set DECL_NONALIASED.
21495
21496 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21497
21498 * expr.c (expand_expr_real_1): Remove outdated comment.
21499
21500 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21501
21502 PR middle-end/60597
21503 * ira.c (adjust_cleared_regs): Call copy_rtx on
21504 *reg_equiv[REGNO (loc)].src_p before passing it to
21505 simplify_replace_fn_rtx.
21506
21507 PR target/60568
21508 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21509 into CONST, put pic register as first operand of PLUS. Use
21510 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21511
21512 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21513
21514 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21515
21516 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21517
21518 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21519 around for store forwarding issue in the FPU on the UT699.
21520 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21521 loads and operations if -mfix-ut699 is specified.
21522 (divtf3_hq): Tweak attribute.
21523 (sqrttf2_hq): Likewise.
21524
21525 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21526
21527 * calls.c (store_one_arg): Remove incorrect const qualification on the
21528 type of the temporary.
21529 * cfgexpand.c (expand_return): Likewise.
21530 * expr.c (expand_constructor): Likewise.
21531 (expand_expr_real_1): Likewise.
21532
21533 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21534
21535 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21536 of parts.
21537
21538 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21539
21540 PR target/60039
21541 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21542
21543 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21544
21545 * config/arm/aarch-common-protos.h
21546 (alu_cost_table): Fix spelling of "extend".
21547 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21548
21549 2014-03-19 Richard Biener <rguenther@suse.de>
21550
21551 PR middle-end/60553
21552 * tree-core.h (tree_type_common): Re-order pointer members
21553 to reduce recursion depth during GC walks.
21554
21555 2014-03-19 Marek Polacek <polacek@redhat.com>
21556
21557 PR sanitizer/60569
21558 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21559 before accessing it.
21560
21561 2014-03-19 Richard Biener <rguenther@suse.de>
21562
21563 PR lto/59543
21564 * lto-streamer-in.c (input_function): In WPA stage do not drop
21565 debug stmts.
21566
21567 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21568
21569 PR tree-optimization/60559
21570 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21571 with build_zero_cst assignment.
21572
21573 2014-03-18 Kai Tietz <ktietz@redhat.com>
21574
21575 PR rtl-optimization/56356
21576 * sdbout.c (sdbout_parms): Verify that parms'
21577 incoming argument is valid.
21578 (sdbout_reg_parms): Likewise.
21579
21580 2014-03-18 Richard Henderson <rth@redhat.com>
21581
21582 PR target/60562
21583 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21584 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21585 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21586
21587 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21588
21589 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21590 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21591 Italicize plugin event names in description. Explain that
21592 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21593 Remind that no GCC functions should be called after PLUGIN_FINISH.
21594 Explain what pragmas with expansion are.
21595
21596 2014-03-18 Martin Liska <mliska@suse.cz>
21597
21598 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21599 gimple call statement is update.
21600 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21601 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21602
21603 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21604
21605 PR sanitizer/60557
21606 * ubsan.c (ubsan_instrument_unreachable): Call
21607 initialize_sanitizer_builtins.
21608 (ubsan_pass): Likewise.
21609
21610 PR sanitizer/60535
21611 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21612 varpool_finalize_decl instead of rest_of_decl_compilation.
21613
21614 2014-03-18 Richard Biener <rguenther@suse.de>
21615
21616 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21617 by using bitmap_and_compl instead of bitmap_and_compl_into.
21618 (df_rd_transfer_function): Likewise.
21619
21620 2014-03-18 Richard Biener <rguenther@suse.de>
21621
21622 * doc/lto.texi (fresolution): Fix typo.
21623
21624 2014-03-18 Richard Biener <rguenther@suse.de>
21625
21626 * doc/invoke.texi (flto): Update for changes in 4.9.
21627
21628 2014-03-18 Richard Biener <rguenther@suse.de>
21629
21630 * doc/loop.texi: Remove section on the removed lambda framework.
21631 Update loop docs with recent changes in preserving loop structure.
21632
21633 2014-03-18 Richard Biener <rguenther@suse.de>
21634
21635 * doc/lto.texi (-fresolution): Document.
21636
21637 2014-03-18 Richard Biener <rguenther@suse.de>
21638
21639 * doc/contrib.texi: Adjust my name.
21640
21641 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21642
21643 PR ipa/58721
21644 * internal-fn.c: Include diagnostic-core.h.
21645 (expand_BUILTIN_EXPECT): New function.
21646 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21647 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21648 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21649 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21650 IFN_BUILTIN_EXPECT.
21651 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21652 Revert 3 argument __builtin_expect code.
21653 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21654 * gimple-fold.c (gimple_fold_call): Likewise.
21655 * tree.h (fold_builtin_expect): New prototype.
21656 * builtins.c (build_builtin_expect_predicate): Add predictor
21657 argument, if non-NULL, create 3 argument __builtin_expect.
21658 (fold_builtin_expect): No longer static. Add ARG2 argument,
21659 pass it through to build_builtin_expect_predicate.
21660 (fold_builtin_2): Adjust caller.
21661 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21662 * internal-fn.def (BUILTIN_EXPECT): New.
21663
21664 2014-03-18 Tobias Burnus <burnus@net-b.de>
21665
21666 PR ipa/58721
21667 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21668 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21669 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21670
21671 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21672
21673 PR ipa/58721
21674 * predict.c (combine_predictions_for_bb): Fix up formatting.
21675 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21676 fill what it points to if non-NULL.
21677 (tree_predict_by_opcode): Adjust caller, use the predictor.
21678 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21679
21680 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21681
21682 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21683 proper constant for the store mode.
21684
21685 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21686
21687 * symtab.c (change_decl_assembler_name): Fix transparent alias
21688 chain construction.
21689
21690 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21691
21692 * config/aarch64/aarch64.c: Correct the comments about the
21693 aarch64 stack layout.
21694
21695 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21696
21697 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21698 check for GF_OMP_FOR_KIND_FOR.
21699
21700 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21701
21702 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21703 ymm and zmm register names.
21704
21705 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21706
21707 PR target/60516
21708 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21709 note creation for the 2010-08-31 changes.
21710
21711 2014-03-17 Marek Polacek <polacek@redhat.com>
21712
21713 PR middle-end/60534
21714 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21715 as -fno-tree-loop-vectorize.
21716 (expand_omp_simd): Likewise.
21717
21718 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21719
21720 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21721 (eligible_for_call_delay): New prototype.
21722 * config/sparc/sparc.c (tls_call_delay): Rename into...
21723 (eligible_for_call_delay): ...this. Return false if the instruction
21724 cannot be put in the delay slot of a branch.
21725 (eligible_for_restore_insn): Simplify.
21726 (eligible_for_return_delay): Return false if the instruction cannot be
21727 put in the delay slot of a branch and simplify.
21728 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21729 put in the delay slot of a branch.
21730 * config/sparc/sparc.md (fix_ut699): New attribute.
21731 (tls_call_delay): Delete.
21732 (in_call_delay): Reimplement.
21733 (eligible_for_sibcall_delay): Rename into...
21734 (in_sibcall_delay): ...this.
21735 (eligible_for_return_delay): Rename into...
21736 (in_return_delay): ...this.
21737 (in_branch_delay): Reimplement.
21738 (in_uncond_branch_delay): Delete.
21739 (in_annul_branch_delay): Delete.
21740
21741 2014-03-14 Richard Henderson <rth@redhat.com>
21742
21743 PR target/60525
21744 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21745 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21746 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21747 (floathi splitters): Remove.
21748 (float<SWI48x>xf2): New pattern.
21749 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21750 code that tried to handle DImode for 32-bit, but which was excluded
21751 by the pattern's condition. Drop allocation of stack temporary.
21752 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21753 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21754 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21755 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21756 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21757 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21758 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21759 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21760 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21761 (*float<SWI48x><X87MODEF>2_i387): Remove.
21762 (all float _with_temp splitters): Remove.
21763 (*float<SWI48x><MODEF>2_i387): New pattern.
21764 (*float<SWI48><MODEF>2_sse): New pattern.
21765 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21766 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21767
21768 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21769 Marek Polacek <polacek@redhat.com>
21770
21771 PR middle-end/60484
21772 * common.opt (dump_base_name_prefixed): New Variable.
21773 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21774 if x_dump_base_name_prefixed is already set, set it at the end.
21775
21776 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21777
21778 PR rtl-optimization/60508
21779 * lra-constraints.c (get_reload_reg): Add new parameter
21780 in_subreg_p.
21781 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21782 Pass the new parameter values.
21783
21784 2014-03-14 Richard Biener <rguenther@suse.de>
21785
21786 * common.opt: Revert unintented changes from r205065.
21787 * opts.c: Likewise.
21788
21789 2014-03-14 Richard Biener <rguenther@suse.de>
21790
21791 PR middle-end/60518
21792 * cfghooks.c (split_block): Properly adjust all loops the
21793 block was a latch of.
21794
21795 2014-03-14 Martin Jambor <mjambor@suse.cz>
21796
21797 PR lto/60461
21798 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21799 and simplify it.
21800
21801 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21802
21803 PR target/59396
21804 * config/avr/avr.c (avr_set_current_function): Pass function name
21805 through default_strip_name_encoding before sanity checking instead
21806 of skipping the first char of the assembler name.
21807
21808 2014-03-13 Richard Henderson <rth@redhat.com>
21809
21810 PR debug/60438
21811 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21812 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21813 * config/i386/i386-protos.h: Likewise.
21814 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21815 in the expander instead of a splitter.
21816 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21817 any possibility of requiring a memory.
21818 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21819 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21820 (fp branch splitters): Update for ix86_split_fp_branch.
21821 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21822 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21823 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21824 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21825 (*fop_<MODEF>_3_i387): Likewise.
21826 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21827 (splitters for the fop_* register patterns): Remove.
21828 (fscalexf4_i387): Rename from *fscalexf4_i387.
21829 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21830
21831 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21832
21833 PR tree-optimization/59779
21834 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21835 type for bitsize and maxsize instead of HOST_WIDE_INT.
21836
21837 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21838
21839 PR rtl-optimization/57320
21840 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21841 the CFG after thread_prologue_and_epilogue_insns.
21842
21843 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21844
21845 PR rtl-optimization/57189
21846 * lra-constraints.c (process_alt_operands): Disfavor spilling
21847 vector pseudos.
21848
21849 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21850
21851 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21852
21853 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21854
21855 PR tree-optimization/59025
21856 PR middle-end/60418
21857 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21858 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21859
21860 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21861
21862 PR target/60486
21863 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21864 calls of avr_out_plus_1.
21865
21866 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21867
21868 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21869 BB's single pred and update the father loop's latch info later.
21870
21871 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21872
21873 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21874 (VEC_M): Likewise.
21875 (VEC_N): Likewise.
21876 (VEC_R): Likewise.
21877 (VEC_base): Likewise.
21878 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21879 registers, we need to swap double words in little endian mode.
21880
21881 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21882 to be a container mode for 128-bit integer operations added in ISA
21883 2.07. Unlike TImode and PTImode, the preferred register set is
21884 the Altivec/VMX registers for the 128-bit operations.
21885
21886 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21887 declarations.
21888 (rs6000_split_128bit_ok_p): Likewise.
21889
21890 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21891 macros for creating ISA 2.07 normal and overloaded builtin
21892 functions with 3 arguments.
21893 (BU_P8V_OVERLOAD_3): Likewise.
21894 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21895 for use as overloaded functions.
21896 (VPERM_1TI_UNS): Likewise.
21897 (VSEL_1TI): Likewise.
21898 (VSEL_1TI_UNS): Likewise.
21899 (ST_INTERNAL_1ti): Likewise.
21900 (LD_INTERNAL_1ti): Likewise.
21901 (XXSEL_1TI): Likewise.
21902 (XXSEL_1TI_UNS): Likewise.
21903 (VPERM_1TI): Likewise.
21904 (VPERM_1TI_UNS): Likewise.
21905 (XXPERMDI_1TI): Likewise.
21906 (SET_1TI): Likewise.
21907 (LXVD2X_V1TI): Likewise.
21908 (STXVD2X_V1TI): Likewise.
21909 (VEC_INIT_V1TI): Likewise.
21910 (VEC_SET_V1TI): Likewise.
21911 (VEC_EXT_V1TI): Likewise.
21912 (EQV_V1TI): Likewise.
21913 (NAND_V1TI): Likewise.
21914 (ORC_V1TI): Likewise.
21915 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21916 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21917 overloaded builtin.
21918 (VADDUQM): Likewise.
21919 (VSUBCUQ): Likewise.
21920 (VADDEUQM): Likewise.
21921 (VADDECUQ): Likewise.
21922 (VSUBEUQM): Likewise.
21923 (VSUBECUQ): Likewise.
21924
21925 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21926 __int128_t and __uint128_t types.
21927 (__uint128_type): Likewise.
21928 (altivec_categorize_keyword): Add support for vector __int128_t,
21929 vector __uint128_t, vector __int128, and vector unsigned __int128
21930 as a container type for TImode operations that need to be done in
21931 VSX/Altivec registers.
21932 (rs6000_macro_to_expand): Likewise.
21933 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21934 to support 128-bit integer instructions vaddcuq, vadduqm,
21935 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21936 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21937
21938 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21939 for V1TImode, and set up preferences to use VSX/Altivec registers.
21940 Setup VSX reload handlers.
21941 (rs6000_debug_reg_global): Likewise.
21942 (rs6000_init_hard_regno_mode_ok): Likewise.
21943 (rs6000_preferred_simd_mode): Likewise.
21944 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21945 (easy_altivec_constant): Likewise.
21946 (output_vec_const_move): Likewise.
21947 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21948 simple move.
21949 (rs6000_expand_vector_extract): Likewise.
21950 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21951 addressing.
21952 (rs6000_const_vec): Add support for V1TImode.
21953 (rs6000_emit_le_vsx_load): Swap double words when loading or
21954 storing TImode/V1TImode.
21955 (rs6000_emit_le_vsx_store): Likewise.
21956 (rs6000_emit_le_vsx_move): Likewise.
21957 (rs6000_emit_move): Add support for V1TImode.
21958 (altivec_expand_ld_builtin): Likewise.
21959 (altivec_expand_st_builtin): Likewise.
21960 (altivec_expand_vec_init_builtin): Likewise.
21961 (altivec_expand_builtin): Likewise.
21962 (rs6000_init_builtins): Add support for V1TImode type. Add
21963 support for ISA 2.07 128-bit integer builtins. Define type names
21964 for the VSX/Altivec vector types.
21965 (altivec_init_builtins): Add support for overloaded vector
21966 functions with V1TImode type.
21967 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21968 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21969 external function.
21970 (rs6000_split_128bit_ok_p): Likewise.
21971 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21972 __int128_t and vector __uint128_t.
21973
21974 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21975 and mode attributes.
21976 (VSX_M): Likewise.
21977 (VSX_M2): Likewise.
21978 (VSm): Likewise.
21979 (VSs): Likewise.
21980 (VSr): Likewise.
21981 (VSv): Likewise.
21982 (VS_scalar): Likewise.
21983 (VS_double): Likewise.
21984 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21985
21986 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21987 we support the ISA 2.07 128-bit integer arithmetic instructions.
21988 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21989 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21990 and TImode types for use with the builtin functions.
21991 (V1TI_type_node): Likewise.
21992 (unsigned_V1TI_type_node): Likewise.
21993 (intTI_type_internal_node): Likewise.
21994 (uintTI_type_internal_node): Likewise.
21995
21996 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21997 128-bit builtin functions.
21998 (UNSPEC_VADDEUQM): Likewise.
21999 (UNSPEC_VADDECUQ): Likewise.
22000 (UNSPEC_VSUBCUQ): Likewise.
22001 (UNSPEC_VSUBEUQM): Likewise.
22002 (UNSPEC_VSUBECUQ): Likewise.
22003 (VM): Add V1TImode to vector mode iterators.
22004 (VM2): Likewise.
22005 (VI_unit): Likewise.
22006 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22007 (altivec_vaddcuq): Likewise.
22008 (altivec_vsubuqm): Likewise.
22009 (altivec_vsubcuq): Likewise.
22010 (altivec_vaddeuqm): Likewise.
22011 (altivec_vaddecuq): Likewise.
22012 (altivec_vsubeuqm): Likewise.
22013 (altivec_vsubecuq): Likewise.
22014
22015 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22016 mode iterators.
22017 (BOOL_128): Likewise.
22018 (BOOL_REGS_OUTPUT): Likewise.
22019 (BOOL_REGS_OP1): Likewise.
22020 (BOOL_REGS_OP2): Likewise.
22021 (BOOL_REGS_UNARY): Likewise.
22022 (BOOL_REGS_AND_CR0): Likewise.
22023
22024 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22025 128-bit integer builtin support.
22026 (vec_vadduqm): Likewise.
22027 (vec_vaddecuq): Likewise.
22028 (vec_vaddeuqm): Likewise.
22029 (vec_vsubecuq): Likewise.
22030 (vec_vsubeuqm): Likewise.
22031 (vec_vsubcuq): Likewise.
22032 (vec_vsubuqm): Likewise.
22033
22034 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22035 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22036 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22037 128-bit integer add/subtract to ISA 2.07.
22038
22039 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22040
22041 * config/arc/arc.c (arc_predicate_delay_insns):
22042 Fix third argument passed to conditionalize_nonjump.
22043
22044 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22045
22046 * config/aarch64/aarch64-builtins.c
22047 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22048 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22049 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22050 instead of __builtin_lfloor.
22051 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22052
22053 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22054
22055 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22056 (tree_ssa_ifcombine_bb_1): New function.
22057 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22058 is an empty forwarder block to then_bb or vice versa and then_bb
22059 and else_bb are effectively swapped.
22060
22061 2014-03-12 Christian Bruel <christian.bruel@st.com>
22062
22063 PR target/60264
22064 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22065 REG_CFA_DEF_CFA note.
22066 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22067 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22068
22069 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22070
22071 PR tree-optimization/60454
22072 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22073
22074 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22075
22076 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22077 Do not define target_cpu_default2 to generic.
22078 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22079 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22080 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22081
22082 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22083 Marc Glisse <marc.glisse@inria.fr>
22084
22085 PR tree-optimization/60502
22086 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22087 instead of build_low_bits_mask.
22088
22089 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22090
22091 PR middle-end/60482
22092 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22093 if there are multiple uses, but op doesn't live on E edge.
22094 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22095 clobber stmts before __builtin_unreachable.
22096
22097 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22098
22099 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22100 hard_frame_pointer_rtx.
22101 * cse.c (cse_insn): Remove volatile check.
22102 * cselib.c (cselib_process_insn): Likewise.
22103 * dse.c (scan_insn): Likewise.
22104
22105 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22106
22107 * config/arc/arc.c (conditionalize_nonjump): New function,
22108 broken out of ...
22109 (arc_ifcvt): ... this.
22110 (arc_predicate_delay_insns): Use it.
22111
22112 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22113
22114 * config/arc/predicates.md (extend_operand): During/after reload,
22115 allow const_int_operand.
22116 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22117 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22118 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22119 to "i".
22120 (umulsi3_highpart_i): Likewise.
22121
22122 2014-03-11 Richard Biener <rguenther@suse.de>
22123
22124 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22125 Add asserts to guard possible wrong-code bugs.
22126
22127 2014-03-11 Richard Biener <rguenther@suse.de>
22128
22129 PR tree-optimization/60429
22130 PR tree-optimization/60485
22131 * tree-ssa-structalias.c (set_union_with_increment): Properly
22132 take into account all fields that overlap the shifted vars.
22133 (do_sd_constraint): Likewise.
22134 (do_ds_constraint): Likewise.
22135 (get_constraint_for_ptr_offset): Likewise.
22136
22137 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22138
22139 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22140 (nios2_compute_frame_layout):
22141 Add calculation of cfun->machine->fp_save_offset.
22142 (nios2_expand_prologue): Correct setting of frame pointer register
22143 in prologue.
22144 (nios2_expand_epilogue): Update recovery of stack pointer from
22145 frame pointer accordingly.
22146 (nios2_initial_elimination_offset): Update calculation of offset
22147 for eliminating to HARD_FRAME_POINTER_REGNUM.
22148
22149 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22150
22151 PR ipa/60457
22152 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22153 cgraph_get_create_node on VAR_DECLs.
22154
22155 2014-03-10 Richard Biener <rguenther@suse.de>
22156
22157 PR middle-end/60474
22158 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22159
22160 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22161
22162 * config/vms/vms.opt (vms_float_format): New variable.
22163
22164 2014-03-08 Tobias Burnus <burnus@net-b.de>
22165
22166 * doc/invoke.texi (-fcilkplus): Update implementation status.
22167
22168 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22169 Richard Biener <rguenther@suse.de>
22170
22171 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22172 consistently accross all TUs.
22173 (run_gcc): Enable -fshort-double automatically at link at link-time
22174 and disallow override.
22175
22176 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22177
22178 PR target/58271
22179 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22180 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22181 if they can't be used.
22182
22183 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22184
22185 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22186 for Solaris 11/x86 ld.
22187 * configure: Regenerate.
22188
22189 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22190
22191 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22192 (LIB_TLS_SPEC): Save as ld_tls_libs.
22193 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22194 (HAVE_AS_IX86_TLSLDM): New test.
22195 * configure, config.in: Regenerate.
22196 * config/i386/i386.c (legitimize_tls_address): Fall back to
22197 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22198 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22199 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22200 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22201
22202 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22203
22204 * common.opt (fira-loop-pressure): Mark as optimization.
22205
22206 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22207
22208 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22209 an OpenMP mappable type.
22210
22211 2014-03-06 Matthias Klose <doko@ubuntu.com>
22212
22213 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22214 MULTILIB_OSDIRNAMES is not defined.
22215
22216 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22217 Meador Inge <meadori@codesourcery.com>
22218
22219 PR target/58595
22220 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22221 (arm_legitimize_address): Call legitimize_tls_address for any
22222 arm_tls_referenced_p expression, handle constant addend. Call it
22223 before testing for !TARGET_ARM.
22224 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22225
22226 2014-03-06 Richard Biener <rguenther@suse.de>
22227
22228 PR middle-end/60445
22229 PR lto/60424
22230 PR lto/60427
22231 Revert
22232 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22233
22234 * tree-streamer.c (record_common_node): Assert we don't record
22235 nodes with type double.
22236 (preload_common_node): Skip type double, complex double and double
22237 pointer since it is now frontend dependent due to fshort-double option.
22238
22239 2014-03-06 Richard Biener <rguenther@suse.de>
22240
22241 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22242 or -fno-lto is specified and the linker has full plugin support.
22243 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22244 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22245 * lto-wrapper.c (merge_and_complain): Merge compile-time
22246 optimization levels.
22247 (run_gcc): And pass it through to the link options.
22248
22249 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22250
22251 PR debug/60381
22252 Revert:
22253 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22254 PR debug/59992
22255 * cselib.c (remove_useless_values): Skip to avoid quadratic
22256 behavior if the condition moved from...
22257 (cselib_process_insn): ... here holds.
22258
22259 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22260
22261 PR plugins/59335
22262 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22263 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22264
22265 PR plugins/59335
22266 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22267 (TM_H): Add x86-tune.def.
22268
22269 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22270
22271 * config/aarch64/aarch64.c (generic_tunings):
22272 Use cortexa57_extra_costs.
22273
22274 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22275
22276 PR lto/60404
22277 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22278 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22279 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22280 cost for in_lto_p.
22281
22282 2014-03-04 Heiher <r@hev.cc>
22283
22284 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22285 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22286
22287 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22288
22289 * config/i386/predicates.md (const2356_operand): Change to ...
22290 (const2367_operand): ... this.
22291 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22292 const2367_operand.
22293 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22294 (*avx512pf_scatterpf<mode>sf): Ditto.
22295 (avx512pf_scatterpf<mode>df): Ditto.
22296 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22297 (*avx512pf_scatterpf<mode>df): Ditto.
22298 * config/i386/i386.c (ix86_expand_builtin): Update
22299 incorrect hint operand error message.
22300
22301 2014-03-04 Richard Biener <rguenther@suse.de>
22302
22303 * lto-section-in.c (lto_get_section_data): Fix const cast.
22304
22305 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22306
22307 * tree-streamer.c (record_common_node): Assert we don't record
22308 nodes with type double.
22309 (preload_common_node): Skip type double, complex double and double
22310 pointer since it is now frontend dependent due to fshort-double option.
22311
22312 2014-03-04 Richard Biener <rguenther@suse.de>
22313
22314 PR lto/60405
22315 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22316 (lto_input_toplevel_asms): Likewise.
22317 * lto-section-in.c (lto_get_section_data): Instead do it here
22318 for every section.
22319
22320 2014-03-04 Richard Biener <rguenther@suse.de>
22321
22322 PR tree-optimization/60382
22323 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22324 dead PHIs a reduction.
22325
22326 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22327
22328 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22329 hint value.
22330 (_mm_prefetch): Move out of GCC target("sse") pragma.
22331 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22332 GCC target("prfchw") pragma.
22333 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22334 for locality <= 2.
22335 * config/i386/i386.c (ix86_option_override_internal): Enable
22336 -mprfchw with -mprefetchwt1.
22337
22338 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22339
22340 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22341 Mark as varying.
22342
22343 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22344
22345 * opts.h (CL_PCH_IGNORE): Define.
22346 * targhooks.c (option_affects_pch_p):
22347 Return false for options that have CL_PCH_IGNORE set.
22348 * opt-functions.awk: Process PchIgnore.
22349 * doc/options.texi: Document PchIgnore.
22350
22351 * config/arc/arc.opt (misize): Add PchIgnore property.
22352
22353 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22354
22355 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22356 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22357 constraint on constants to permit them being loaded into
22358 GENERAL_REGS or BASE_REGS.
22359
22360 2014-03-03 Nick Clifton <nickc@redhat.com>
22361
22362 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22363 anti-cacnonical alternatives.
22364 (negandhi3_real): New pattern.
22365 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22366
22367 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22368
22369 * config/avr/avr-mcus.def: Remove atxmega16x1.
22370 * config/avr/avr-tables.opt: Regenerate.
22371 * config/avr/t-multilib: Regenerate.
22372 * doc/avr-mmcu.texi: Regenerate.
22373
22374 2014-03-03 Tobias Grosser <tobias@grosser.es>
22375 Mircea Namolaru <mircea.namolaru@inria.fr>
22376
22377 PR tree-optimization/58028
22378 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22379 scalar dimensions.
22380
22381 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22382
22383 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22384 not handled by recognizers.
22385
22386 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22387
22388 PR middle-end/60175
22389 * function.c (expand_function_end): Don't emit
22390 clobber_return_register sequence if clobber_after is a BARRIER.
22391 * cfgexpand.c (construct_exit_block): Append instructions before
22392 return_label to prev_bb.
22393
22394 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22395
22396 * config/rs6000/constraints.md: Document reserved use of "wc".
22397
22398 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22399
22400 PR ipa/60150
22401 * ipa.c (function_and_variable_visibility): When dissolving comdat
22402 group, also set all symbols to local.
22403
22404 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22405
22406 PR ipa/60306
22407
22408 Revert:
22409 2013-12-14 Jan Hubicka <jh@suse.cz>
22410 PR middle-end/58477
22411 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22412
22413 2014-03-02 Jon Beniston <jon@beniston.com>
22414
22415 PR bootstrap/48230
22416 PR bootstrap/50927
22417 PR bootstrap/52466
22418 PR target/46898
22419 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22420 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22421 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22422 (simple_return, *simple_return): New patterns
22423 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22424 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22425
22426 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22427
22428 * dwarf2out.c (gen_subprogram_die): Tidy.
22429
22430 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22431
22432 PR target/60071
22433 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22434 (*mov_t_msb_neg_negc): ... this new insn.
22435
22436 2014-02-28 Jason Merrill <jason@redhat.com>
22437
22438 PR c++/58678
22439 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22440 function.
22441
22442 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22443
22444 PR c++/60314
22445 * dwarf2out.c (decltype_auto_die): New static.
22446 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22447 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22448 (is_cxx_auto): Likewise.
22449
22450 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22451
22452 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22453 we are not using general regs only.
22454
22455 2014-02-28 Richard Biener <rguenther@suse.de>
22456
22457 PR target/60280
22458 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22459 previous fix and only allow to remove trivial pre-headers
22460 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22461 (remove_forwarder_block): Properly update the latch of a loop.
22462
22463 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22464
22465 PR debug/59992
22466 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22467 (cselib_preserved_hash_table): New.
22468 (preserve_constants_and_equivs): Move preserved vals to it.
22469 (cselib_find_slot): Look it up first.
22470 (cselib_init): Initialize it.
22471 (cselib_finish): Release it.
22472 (dump_cselib_table): Dump it.
22473
22474 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22475
22476 PR debug/59992
22477 * cselib.c (remove_useless_values): Skip to avoid quadratic
22478 behavior if the condition moved from...
22479 (cselib_process_insn): ... here holds.
22480
22481 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22482
22483 PR debug/57232
22484 * var-tracking.c (vt_initialize): Apply the same condition to
22485 preserve the CFA base value.
22486
22487 2014-02-28 Joey Ye <joey.ye@arm.com>
22488
22489 PR target/PR60169
22490 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22491 if reload in progress or completed.
22492
22493 2014-02-28 Tobias Burnus <burnus@net-b.de>
22494
22495 PR middle-end/60147
22496 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22497 NAMELIST_DECL.
22498
22499 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22500
22501 * doc/tm.texi.in (Condition Code Status): Update documention for
22502 relative locations of cc0-setter and cc0-user.
22503
22504 2014-02-27 Jeff Law <law@redhat.com>
22505
22506 PR rtl-optimization/52714
22507 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22508 into two independent simple sets, if I3 is a jump, ensure the
22509 pattern we place into I3 is a (set (pc) ...).
22510
22511 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22512 Jeff Law <law@redhat.com>
22513
22514 PR rtl-optimization/49847
22515 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22516 are in different blocks.
22517 * doc/tm.texi (Condition Code Status): Update documention for
22518 relative locations of cc0-setter and cc0-user.
22519
22520 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22521
22522 PR target/59222
22523 * lra.c (lra_emit_add): Check SUBREG too.
22524
22525 2014-02-27 Andreas Schwab <schwab@suse.de>
22526
22527 * config/m68k/m68k.c (m68k_option_override): Disable
22528 -flive-range-shrinkage for classic m68k.
22529 (m68k_override_options_after_change): Likewise.
22530
22531 2014-02-27 Marek Polacek <polacek@redhat.com>
22532
22533 PR middle-end/59223
22534 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22535 -Wmaybe-uninitialized.
22536
22537 2014-02-27 Alan Modra <amodra@gmail.com>
22538
22539 PR target/57936
22540 * reload1.c (emit_input_reload_insns): When reload_override_in,
22541 set old to rl->in_reg when rl->in_reg is a subreg.
22542
22543 2014-02-26 Richard Biener <rguenther@suse.de>
22544
22545 PR bootstrap/60343
22546 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22547
22548 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22549
22550 * common/config/i386/predicates.md (const1256_operand): Remove.
22551 (const2356_operand): New.
22552 (const_1_to_2_operand): Remove.
22553 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22554 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22555 (*avx512pf_gatherpf<mode>sf): Ditto.
22556 (avx512pf_gatherpf<mode>df): Ditto.
22557 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22558 (*avx512pf_gatherpf<mode>df): Ditto.
22559 (avx512pf_scatterpf<mode>sf): Ditto.
22560 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22561 (*avx512pf_scatterpf<mode>sf): Ditto.
22562 (avx512pf_scatterpf<mode>df): Ditto.
22563 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22564 (*avx512pf_scatterpf<mode>df): Ditto.
22565 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22566
22567 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22568
22569 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22570 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22571 (_mm512_mask_testn_epi64_mask): Move to ...
22572 * config/i386/avx512cdintrin.h: Here.
22573 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22574 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22575 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22576 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22577 TARGET_AVX512F from TARGET_AVX512CD.
22578
22579 2014-02-26 Richard Biener <rguenther@suse.de>
22580
22581 PR ipa/60327
22582 * ipa.c (walk_polymorphic_call_targets): Properly guard
22583 call to inline_update_overall_summary.
22584
22585 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22586
22587 PR target/60280
22588 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22589 and latches only if requested. Fix latch if it is removed.
22590 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22591 LOOPS_HAVE_PREHEADERS.
22592
22593 2014-02-25 Andrew Pinski <apinski@cavium.com>
22594
22595 * builtins.c (expand_builtin_thread_pointer): Create a new target
22596 when the target is NULL.
22597
22598 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22599
22600 PR rtl-optimization/60317
22601 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22602 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22603 * lra-assigns.c: Include params.h.
22604 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22605 other reload pseudos considerations.
22606
22607 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22608
22609 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22610 to use canonical form for nor<mode>3.
22611
22612 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22613
22614 PR target/55426
22615 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22616 conversions.
22617
22618 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22619
22620 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22621 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22622 (ix86_handle_option): Handle OPT_mprefetchwt1.
22623 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22624 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22625 PREFETCHWT1 CPUID.
22626 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22627 OPTION_MASK_ISA_PREFETCHWT1.
22628 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22629 (PTA_PREFETCHWT1): New.
22630 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22631 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22632 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22633 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22634 (*prefetch_avx512pf_<mode>_: Change into ...
22635 (*prefetch_prefetchwt1_<mode>: This.
22636 * config/i386/i386.opt (mprefetchwt1): New.
22637 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22638 (_mm_prefetch): Handle intent to write.
22639 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22640
22641 2014-02-25 Richard Biener <rguenther@suse.de>
22642
22643 PR middle-end/60291
22644 * emit-rtl.c (mem_attrs_htab): Remove.
22645 (mem_attrs_htab_hash): Likewise.
22646 (mem_attrs_htab_eq): Likewise.
22647 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22648 (init_emit_once): Do not allocate mem_attrs_htab.
22649
22650 2014-02-25 Richard Biener <rguenther@suse.de>
22651
22652 PR lto/60319
22653 * lto-opts.c (lto_write_options): Output non-explicit conservative
22654 -fwrapv, -fno-trapv and -fno-strict-overflow.
22655 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22656 (run_gcc): And pass them through.
22657
22658 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22659
22660 * sel-sched.c (calculate_new_fences): New parameter ptime.
22661 Calculate it as a maximum over all fence cycles.
22662 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22663 Print the final schedule timing when sched_verbose.
22664
22665 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22666
22667 PR rtl-optimization/60292
22668 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22669 bit fot the fence instruction.
22670
22671 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22672
22673 * calls.h: Fix typo in comment.
22674
22675 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22676
22677 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22678 adjusting offsetable addresses.
22679
22680 2014-02-24 Guozhi Wei <carrot@google.com>
22681
22682 * sparseset.h (sparseset_pop): Fix the wrong index.
22683
22684 2014-02-24 Walter Lee <walt@tilera.com>
22685
22686 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22687 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22688 triplet.
22689 * common/config/tilegx/tilegx-common.c
22690 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22691 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22692 (LINK_SPEC): Ditto.
22693 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22694 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22695 (tilegx_gimplify_va_arg_expr): Handle big endian.
22696 (tilegx_expand_unaligned_load): Ditto.
22697 (tilegx_expand_unaligned_store): Ditto.
22698 (TARGET_RETURN_IN_MSB): New.
22699 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22700 (TARGET_ENDIAN_DEFAULT): New.
22701 (TARGET_BIG_ENDIAN): Handle big endian.
22702 (BYTES_BIG_ENDIAN): Ditto.
22703 (WORDS_BIG_ENDIAN): Ditto.
22704 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22705 (ENDIAN_SPEC): New.
22706 (EXTRA_SPECS): New.
22707 * config/tilegx/tilegx.md (extv): Handle big endian.
22708 (extzv): Ditto.
22709 (insn_st<n>): Ditto.
22710 (insn_st<n>_add<bitsuffix>): Ditto.
22711 (insn_stnt<n>): Ditto.
22712 (insn_stnt<n>_add<bitsuffix>):Ditto.
22713 (vec_interleave_highv8qi): Handle big endian.
22714 (vec_interleave_highv8qi_be): New.
22715 (vec_interleave_highv8qi_le): New.
22716 (insn_v1int_h): Handle big endian.
22717 (vec_interleave_lowv8qi): Handle big endian.
22718 (vec_interleave_lowv8qi_be): New.
22719 (vec_interleave_lowv8qi_le): New.
22720 (insn_v1int_l): Handle big endian.
22721 (vec_interleave_highv4hi): Handle big endian.
22722 (vec_interleave_highv4hi_be): New.
22723 (vec_interleave_highv4hi_le): New.
22724 (insn_v2int_h): Handle big endian.
22725 (vec_interleave_lowv4hi): Handle big endian.
22726 (vec_interleave_lowv4hi_be): New.
22727 (vec_interleave_lowv4hi_le): New.
22728 (insn_v2int_l): Handle big endian.
22729 (vec_interleave_highv2si): Handle big endian.
22730 (vec_interleave_highv2si_be): New.
22731 (vec_interleave_highv2si_le): New.
22732 (insn_v4int_h): Handle big endian.
22733 (vec_interleave_lowv2si): Handle big endian.
22734 (vec_interleave_lowv2si_be): New.
22735 (vec_interleave_lowv2si_le): New.
22736 (insn_v4int_l): Handle big endian.
22737 * config/tilegx/tilegx.opt (mbig-endian): New option.
22738 (mlittle-endian): New option.
22739 * doc/install.texi: Document tilegxbe-linux.
22740 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22741
22742 2014-02-24 Martin Jambor <mjambor@suse.cz>
22743
22744 PR ipa/60266
22745 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22746 there are no parameter descriptors.
22747
22748 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22749
22750 PR rtl-optimization/60268
22751 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22752 initialization to ...
22753 (sched_rgn_init): ... here.
22754 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22755
22756 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22757
22758 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22759 names.
22760
22761 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22762
22763 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22764 definition.
22765
22766 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22767
22768 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22769 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22770
22771 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22772
22773 * config/microblaze/predicates.md: Add cmp_op predicate.
22774 * config/microblaze/microblaze.md: Add branch_compare instruction
22775 which uses cmp_op predicate and emits cmp insn before branch.
22776 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22777 to microblaze_expand_conditional_branch and consolidate logic.
22778 (microblaze_expand_conditional_branch): emit branch_compare
22779 insn instead of handling cmp op separate from branch insn.
22780
22781 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22782
22783 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22784 to permit subregs.
22785
22786 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22787
22788 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22789 define_insn with define_expand and new define_insn
22790 *altivec_lve<VI_char>x_internal.
22791 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22792 and new define_insn *altivec_stve<VI_char>x_internal.
22793 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22794 prototype.
22795 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22796 lve*x built-ins.
22797 (altivec_expand_stvex_be): New function.
22798
22799 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22800
22801 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22802 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22803 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22804 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22805
22806 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22807
22808 PR target/60298
22809 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22810 instead of emit_move_insn.
22811
22812 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22813
22814 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22815 vspltw with vsldoi.
22816 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22817 gen_altivec_vsumsws.
22818
22819 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22820
22821 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22822 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22823 (altivec_lvxl_<mode>): New define_expand incorporating
22824 -maltivec=be semantics where needed.
22825 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22826 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22827 semantics where needed.
22828 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22829 (altivec_stvx_<mode>): New define_expand incorporating
22830 -maltivec=be semantics where needed.
22831 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22832 VM2 iterator instead of V4SI.
22833 (altivec_stvxl_<mode>): New define_expand incorporating
22834 -maltivec=be semantics where needed.
22835 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22836 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22837 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22838 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22839 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22840 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22841 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22842 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22843 ALTIVEC_BUILTIN_STVXL.
22844 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22845 (altivec_expand_stvx_be): Likewise.
22846 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22847 (altivec_expand_lvx_be): Likewise.
22848 (altivec_expand_stvx_be): Likewise.
22849 (altivec_expand_builtin): Add cases for
22850 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22851 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22852 (altivec_init_builtins): Add definitions for
22853 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22854 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22855
22856 2014-02-21 Catherine Moore <clm@codesourcery.com>
22857
22858 * doc/invoke.texi (mvirt, mno-virt): Document.
22859 * config/mips/mips.opt (mvirt): New option.
22860 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22861
22862 2014-02-21 Richard Biener <rguenther@suse.de>
22863
22864 PR tree-optimization/60276
22865 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22866 (STMT_VINFO_MIN_NEG_DIST): New macro.
22867 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22868 STMT_VINFO_MIN_NEG_DIST.
22869 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22870 made for negative dependence distances still hold.
22871
22872 2014-02-21 Richard Biener <rguenther@suse.de>
22873
22874 PR middle-end/60291
22875 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22876 DECL_INITIAL for globals not in the current function context.
22877
22878 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22879
22880 PR tree-optimization/56490
22881 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22882 * tree-ssa-uninit.c: Include params.h.
22883 (compute_control_dep_chain): Add num_calls argument, return false
22884 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22885 num_calls to recursive call.
22886 (find_predicates): Change dep_chain into normal array,
22887 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22888 variable and adjust compute_control_dep_chain caller.
22889 (find_def_preds): Likewise.
22890
22891 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22892
22893 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22894 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22895
22896 2014-02-21 Nick Clifton <nickc@redhat.com>
22897
22898 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22899 (pushhi1): Likewise.
22900 (popqi1): Add mode to pre_dec.
22901 (pophi1): Likewise.
22902
22903 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22904
22905 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22906 mode for mask of V8SFmode permutation.
22907
22908 2014-02-20 Richard Henderson <rth@redhat.com>
22909
22910 PR c++/60272
22911 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22912 a new pseudo for OLDVAL.
22913
22914 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22915
22916 PR target/57896
22917 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22918 gen_reg_rtx if d->testing_p.
22919 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22920 if d->testing_p and we will certainly return true.
22921 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22922 if d->testing_p.
22923
22924 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22925
22926 * emit-rtl.c (gen_reg_rtx): Assert that
22927 crtl->emit.regno_pointer_align_length is non-zero.
22928
22929 2014-02-20 Richard Henderson <rth@redhat.com>
22930
22931 PR c++/60272
22932 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22933 on failure the store back into EXPECT.
22934
22935 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22936 Sandra Loosemore <sandra@codesourcery.com>
22937
22938 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22939 * config/nios2/nios2.c (nios2_function_profiler): Add
22940 -fPIC (flag_pic == 2) support.
22941 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22942 (nios2_large_offset_p): New function.
22943 (nios2_unspec_reloc_p): Move up position, update to use
22944 nios2_large_offset_p.
22945 (nios2_unspec_address): Remove function.
22946 (nios2_unspec_offset): New function.
22947 (nios2_large_got_address): New function.
22948 (nios2_got_address): Add large offset support.
22949 (nios2_legitimize_tls_address): Update usage of removed and new
22950 functions.
22951 (nios2_symbol_binds_local_p): New function.
22952 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22953 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22954 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22955 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22956 processing for (const (unspec ...)).
22957 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22958
22959 2014-02-20 Richard Biener <rguenther@suse.de>
22960
22961 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22962 doing the substitution.
22963 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22964
22965 2014-02-20 Martin Jambor <mjambor@suse.cz>
22966
22967 PR ipa/55260
22968 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22969 info when checking whether lattices are bottom.
22970
22971 2014-02-20 Richard Biener <rguenther@suse.de>
22972
22973 PR middle-end/60221
22974 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22975 regions at -O0.
22976
22977 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22978
22979 PR ipa/58555
22980 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22981 parameter specifying the scaling.
22982 (inline_call): Update.
22983 (want_inline_recursively): Guard division by zero.
22984 (recursive_inlining): Update.
22985 * ipa-inline.h (clone_inlined_nodes): Update.
22986
22987 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22988
22989 PR target/60204
22990 * config/i386/i386.c (classify_argument): Pass structures of size
22991 64 bytes or less in register.
22992
22993 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22994 Kirill Yukhin <kirill.yukhin@intel.com>
22995
22996 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22997 (_mm_rcp28_round_ss): Ditto.
22998 (_mm_rsqrt28_round_sd): Ditto.
22999 (_mm_rsqrt28_round_ss): Ditto.
23000 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23001 (_mm_rcp14_round_ss): Ditto.
23002 (_mm_rsqrt14_round_sd): Ditto.
23003 (_mm_rsqrt14_round_ss): Ditto.
23004 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23005 the first input operand, get rid of match_dup.
23006 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23007 attribute to sse.
23008 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23009 Ditto.
23010 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23011 operand as the first input operand, set type attribute.
23012 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23013 Set type attribute.
23014 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23015 operand as the first input operand, set type attribute.
23016
23017 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23018
23019 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23020 bit of zero.
23021
23022 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23023
23024 PR target/60207
23025 * config/i386/i386.c (construct_container): Remove TFmode check
23026 for X86_64_INTEGER_CLASS.
23027
23028 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23029
23030 PR target/59794
23031 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23032 only when -Wpsabi is enabled.
23033
23034 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23035
23036 PR target/59799
23037 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23038 passing arrays in registers are the same as for structs, so remove the
23039 special case for them.
23040
23041 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23042
23043 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23044 destination type, extract only the valid bits if the source type is not
23045 integral and has a different mode.
23046
23047 2014-02-19 Richard Biener <rguenther@suse.de>
23048
23049 PR ipa/60243
23050 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23051 for all calls.
23052
23053 2014-02-19 Richard Biener <rguenther@suse.de>
23054
23055 PR ipa/60243
23056 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23057 (ipa_modify_call_arguments): Emit an argument load explicitely and
23058 preserve virtual SSA form there and for the replacement call.
23059 Do not update SSA form nor free dominance info.
23060
23061 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23062
23063 * ipa.c (function_and_variable_visibility): Also clear WEAK
23064 flag when disolving COMDAT_GROUP.
23065
23066 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23067
23068 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23069 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23070 not devirtualizing.
23071 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23072 do more sanity checks.
23073 (detect_type_change): Return true when giving up early.
23074 (compute_complex_assign_jump_func): Fix type parameter of
23075 ipa_set_ancestor_jf.
23076 (compute_complex_ancestor_jump_func): Likewise.
23077 (update_jump_functions_after_inlining): Fix updating of
23078 ancestor function.
23079 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23080
23081 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23082
23083 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23084 inline clones when edge disappears.
23085
23086 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23087
23088 PR target/60203
23089 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23090 Split 64-bit moves into 2 patterns. Do not allow the use of
23091 direct move for TDmode in little endian, since the decimal value
23092 has little endian bytes within a word, but the 64-bit pieces are
23093 ordered in a big endian fashion, and normal subreg's of TDmode are
23094 not allowed.
23095 (mov<mode>_64bit_dm): Likewise.
23096 (movtd_64bit_nodm): Likewise.
23097
23098 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23099
23100 PR tree-optimization/60174
23101 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23102 statement of an SSA_NAME that occurs in an abnormal PHI node.
23103
23104 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23105
23106 PR sanitizer/60142
23107 * final.c (SEEN_BB): Remove.
23108 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23109 (final_scan_insn): Don't force_source_line on second
23110 NOTE_INSN_BASIC_BLOCK.
23111
23112 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23113
23114 PR target/60205
23115 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23116 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23117 (type_natural_mode): Warn ABI change when %zmm register is not
23118 available for AVX512F vector value passing.
23119
23120 2014-02-18 Kai Tietz <ktietz@redhat.com>
23121
23122 PR target/60193
23123 * config/i386/i386.c (ix86_expand_prologue): Use value in
23124 rax register as displacement when restoring %r10 or %rax.
23125 Fix wrong offset when restoring both registers.
23126
23127 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23128
23129 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23130 assertion with conditional return.
23131
23132 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23133 Uros Bizjak <ubizjak@gmail.com>
23134
23135 PR driver/60233
23136 * config/i386/driver-i386.c (host_detect_local_cpu): If
23137 YMM state is not saved by the OS, also clear has_f16c. Move
23138 CPUID 0x80000001 handling before YMM state saving checking.
23139
23140 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23141
23142 PR rtl-optimization/58960
23143 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23144 factored out from ...
23145 (sched_init): ... here.
23146 (free_global_sched_pressure_data): New, factored out from ...
23147 (sched_finish): ... here.
23148 * sched-int.h (free_global_sched_pressure_data): Declare.
23149 * sched-rgn.c (nr_regions_initial): New static global.
23150 (haifa_find_rgns): Initialize it.
23151 (schedule_region): Disable sched-pressure for the newly
23152 generated regions.
23153
23154 2014-02-17 Richard Biener <rguenther@suse.de>
23155
23156 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23157 release SSA defs of pattern stmts.
23158
23159 2014-02-17 Richard Biener <rguenther@suse.de>
23160
23161 * tree-inline.c (expand_call_inline): Release the virtual
23162 operand defined by the call we are about to inline.
23163
23164 2014-02-17 Richard Biener <rguenther@suse.de>
23165
23166 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23167
23168 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23169 Ilya Tocar <ilya.tocar@intel.com>
23170
23171 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23172 arguments order in builtin.
23173 (_mm512_permutexvar_epi64): Ditto.
23174 (_mm512_mask_permutexvar_epi64): Ditto
23175 (_mm512_maskz_permutexvar_epi32): Ditto
23176 (_mm512_permutexvar_epi32): Ditto
23177 (_mm512_mask_permutexvar_epi32): Ditto
23178
23179 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23180
23181 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23182 (p8_vmrgow): Likewise.
23183
23184 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23185
23186 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23187 endian targets.
23188
23189 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23190
23191 PR target/60203
23192 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23193 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23194 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23195 using direct move instructions on ISA 2.07. Also adjust
23196 instruction length for 64-bit.
23197 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23198 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23199
23200 2014-02-15 Alan Modra <amodra@gmail.com>
23201
23202 PR target/58675
23203 PR target/57935
23204 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23205 find_replacement on parts of insn rtl that might be reloaded.
23206
23207 2014-02-15 Richard Biener <rguenther@suse.de>
23208
23209 PR tree-optimization/60183
23210 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23211 (tree_ssa_phiprop): Calculate and free post-dominators.
23212
23213 2014-02-14 Jeff Law <law@redhat.com>
23214
23215 PR rtl-optimization/60131
23216 * ree.c (get_extended_src_reg): New function.
23217 (combine_reaching_defs): Use it rather than assuming location of REG.
23218 (find_and_remove_re): Verify first operand of extension is
23219 a REG before adding the insns to the copy list.
23220
23221 2014-02-14 Roland McGrath <mcgrathr@google.com>
23222
23223 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23224 * configure: Regenerated.
23225 * config.in: Regenerated.
23226 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23227 instead of ASM_SHORT.
23228
23229 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23230 Richard Earnshaw <rearnsha@arm.com>
23231
23232 PR rtl-optimization/59535
23233 * lra-constraints.c (process_alt_operands): Encourage alternative
23234 when unassigned pseudo class is superset of the alternative class.
23235 (inherit_reload_reg): Don't inherit when optimizing for code size.
23236 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23237 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23238 modes not less than 4 for Thumb1.
23239
23240 2014-02-14 Kyle McMartin <kyle@redhat.com>
23241
23242 PR pch/60010
23243 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23244
23245 2014-02-14 Richard Biener <rguenther@suse.de>
23246
23247 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23248 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23249 Do not strip INDIRECT_REFs.
23250
23251 2014-02-14 Richard Biener <rguenther@suse.de>
23252
23253 PR lto/60179
23254 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23255 DECL_FUNCTION_SPECIFIC_TARGET.
23256 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23257 * tree-streamer-out.c (pack_ts_target_option): Remove.
23258 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23259 (write_ts_function_decl_tree_pointers): Do not stream
23260 DECL_FUNCTION_SPECIFIC_TARGET.
23261 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23262 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23263 (lto_input_ts_function_decl_tree_pointers): Do not stream
23264 DECL_FUNCTION_SPECIFIC_TARGET.
23265
23266 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23267
23268 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23269 (get_initial_def_for_induction, vectorizable_induction): Ignore
23270 debug stmts when looking for exit_phi.
23271 (vectorizable_live_operation): Fix up condition.
23272
23273 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23274
23275 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23276 nreverse() because it changes the content of original tree list.
23277
23278 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23279
23280 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23281 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23282
23283 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23284
23285 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23286 GNU coding standards.
23287
23288 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23289
23290 PR debug/60152
23291 * dwarf2out.c (gen_subprogram_die): Don't call
23292 add_calling_convention_attribute if subr_die is old_die.
23293
23294 2014-02-13 Sharad Singhai <singhai@google.com>
23295
23296 * doc/optinfo.texi: Fix order of nodes.
23297
23298 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23299
23300 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23301 operands[2], not operands[3].
23302
23303 2014-02-13 Richard Biener <rguenther@suse.de>
23304
23305 PR bootstrap/59878
23306 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23307 mention the possibility of an in-tree build.
23308 (CLooG): Update recommended version to 0.18.1, mention the
23309 possibility of an in-tree build and clarify that the ISL
23310 bundled with CLooG does not work.
23311
23312 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23313
23314 PR target/43546
23315 * expr.c (compress_float_constant): If x is a hard register,
23316 extend into a pseudo and then move to x.
23317
23318 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23319
23320 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23321 caused by bad second argument to warning_at() with -mhotpatch and
23322 nested functions (e.g. with gfortran).
23323
23324 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23325
23326 * opts.c (option_name): Remove "enabled by default" rider.
23327
23328 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23329
23330 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23331
23332 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23333 Uros Bizjak <ubizjak@gmail.com>
23334
23335 PR target/60151
23336 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23337 * configure: Regenerated.
23338
23339 2014-02-12 Richard Biener <rguenther@suse.de>
23340
23341 * vec.c (vec_prefix::calculate_allocation): Move as
23342 inline variant to vec.h.
23343 (vec_prefix::calculate_allocation_1): New out-of-line version.
23344 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23345 (vec_prefix::m_has_auto_buf): Rename to ...
23346 (vec_prefix::m_using_auto_storage): ... this.
23347 (vec_prefix::calculate_allocation): Inline the easy cases
23348 and dispatch to calculate_allocation_1 which doesn't need the
23349 prefix address.
23350 (va_heap::reserve): Use gcc_checking_assert.
23351 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23352 m_using_auto_storage.
23353 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23354 member and adjust.
23355 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23356 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23357 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23358
23359 2014-02-12 Richard Biener <rguenther@suse.de>
23360
23361 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23362 when we found a dependence.
23363
23364 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23365
23366 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23367 common code...
23368 (maybe_fold_stmt): ... into this new function.
23369 * omp-low.c (lower_omp): Update comment.
23370
23371 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23372 last use.
23373
23374 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23375 dereference.
23376
23377 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23378
23379 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23380 identifiers in comments.
23381 (cortexa53_extra_costs): Likewise.
23382 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23383 (cortexa7_extra_costs): Likewise.
23384 (cortexa12_extra_costs): Likewise.
23385 (cortexa15_extra_costs): Likewise.
23386 (v7m_extra_costs): Likewise.
23387
23388 2014-02-12 Richard Biener <rguenther@suse.de>
23389
23390 PR middle-end/60092
23391 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23392 of posix_memalign being successful.
23393 (lower_stmt): Restrict lowering of posix_memalign to when
23394 -ftree-bit-ccp is enabled.
23395
23396 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23397
23398 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23399 arg_loc.
23400 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23401
23402 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23403
23404 PR rtl-optimization/60116
23405 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23406 other_insn once the combination has been validated.
23407
23408 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23409
23410 PR lto/59468
23411 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23412 and wrapper.
23413 * ipa-devirt.c: Include demangle.h
23414 (odr_violation_reported): New static variable.
23415 (add_type_duplicate): Update odr_violations.
23416 (maybe_record_node): Add completep parameter; update it.
23417 (record_target_from_binfo): Add COMPLETEP parameter;
23418 update it as needed.
23419 (possible_polymorphic_call_targets_1): Likewise.
23420 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23421 rename FINAL to COMPLETE.
23422 (record_targets_from_bases): Sanity check we found the binfo;
23423 fix COMPLETEP updating.
23424 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23425 parameter, fix computing of COMPLETEP.
23426 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23427 at LTO time do demangling.
23428 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23429 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23430 parameter.
23431 (gimple_get_virt_method_for_binfo): Likewise.
23432 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23433 gimple_get_virt_method_for_vtable): Update prototypes.
23434
23435 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23436
23437 PR target/49008
23438 * genautomata.c (add_presence_absence): Fix typo with
23439 {final_}presence_list.
23440
23441 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23442
23443 PR target/60137
23444 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23445 for VSX/Altivec vectors that land in GPR registers.
23446
23447 2014-02-11 Richard Henderson <rth@redhat.com>
23448 Jakub Jelinek <jakub@redhat.com>
23449
23450 PR debug/59776
23451 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23452 around drhs if type conversion to lacc->type is not useless.
23453
23454 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23455
23456 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23457 tuning struct.
23458 (cortex-a57.cortex-a53): Likewise.
23459 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23460
23461 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23462
23463 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23464 arm_restrict_it.
23465
23466 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23467
23468 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23469 add_options_for_arm_vfp3.
23470
23471 2014-02-11 Jeff Law <law@redhat.com>
23472
23473 PR middle-end/54041
23474 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23475 object with an undesirable mode.
23476
23477 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23478
23479 PR libgomp/60107
23480 * config/i386/sol2-9.h: New file.
23481 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23482 *-*-solaris2.9*): Use it.
23483
23484 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23485
23486 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23487 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23488
23489 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23490
23491 * config/microblaze/microblaze.c: Extend mcpu version format
23492
23493 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23494
23495 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23496
23497 2014-02-10 Richard Henderson <rth@redhat.com>
23498
23499 PR target/59927
23500 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23501 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23502 ms-abi vs -mno-accumulate-outgoing-args.
23503 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23504 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23505 respect to ms-abi.
23506
23507 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23508
23509 PR middle-end/60080
23510 * cfgexpand.c (expand_asm_operands): Attach source location to
23511 ASM_INPUT rtx objects.
23512 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23513
23514 2014-02-10 Nick Clifton <nickc@redhat.com>
23515
23516 * config/mn10300/mn10300.c (popcount): New function.
23517 (mn10300_expand_prologue): Include saved registers in stack usage
23518 count.
23519
23520 2014-02-10 Jeff Law <law@redhat.com>
23521
23522 PR middle-end/52306
23523 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23524 when changing the SET_DEST of a prior insn to avoid an input reload.
23525
23526 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23527
23528 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23529 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23530 -mcall-openbsd, or -mcall-linux.
23531 (CC1_ENDIAN_BIG_SPEC): Remove.
23532 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23533 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23534 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23535 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23536 and %cc1_endian_default.
23537 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23538
23539 2014-02-10 Richard Biener <rguenther@suse.de>
23540
23541 PR tree-optimization/60115
23542 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23543 MEM_REF handling. Properly verify that the accesses are not
23544 out of the objects bound.
23545
23546 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23547
23548 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23549 coretex to cortex.
23550
23551 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23552
23553 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23554 proper constants and fix formatting.
23555 (possible_polymorphic_call_targets): Fix formatting.
23556
23557 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23558 Ilya Tocar <ilya.tocar@intel.com>
23559
23560 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23561 (_mm512_loadu_epi32): Renamed into...
23562 (_mm512_loadu_si512): This.
23563 (_mm512_storeu_epi32): Renamed into...
23564 (_mm512_storeu_si512): This.
23565 (_mm512_maskz_ceil_ps): Removed.
23566 (_mm512_maskz_ceil_pd): Ditto.
23567 (_mm512_maskz_floor_ps): Ditto.
23568 (_mm512_maskz_floor_pd): Ditto.
23569 (_mm512_floor_round_ps): Ditto.
23570 (_mm512_floor_round_pd): Ditto.
23571 (_mm512_ceil_round_ps): Ditto.
23572 (_mm512_ceil_round_pd): Ditto.
23573 (_mm512_mask_floor_round_ps): Ditto.
23574 (_mm512_mask_floor_round_pd): Ditto.
23575 (_mm512_mask_ceil_round_ps): Ditto.
23576 (_mm512_mask_ceil_round_pd): Ditto.
23577 (_mm512_maskz_floor_round_ps): Ditto.
23578 (_mm512_maskz_floor_round_pd): Ditto.
23579 (_mm512_maskz_ceil_round_ps): Ditto.
23580 (_mm512_maskz_ceil_round_pd): Ditto.
23581 (_mm512_expand_pd): Ditto.
23582 (_mm512_expand_ps): Ditto.
23583 * config/i386/i386.c (ix86_builtins): Remove
23584 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23585 (bdesc_args): Ditto.
23586 * config/i386/predicates.md (const1256_operand): New.
23587 (const_1_to_2_operand): Ditto.
23588 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23589 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23590 (*avx512pf_gatherpf<mode>sf): Ditto.
23591 (avx512pf_gatherpf<mode>df): Ditto.
23592 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23593 (*avx512pf_gatherpf<mode>df): Ditto.
23594 (avx512pf_scatterpf<mode>sf): Ditto.
23595 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23596 (*avx512pf_scatterpf<mode>sf): Ditto.
23597 (avx512pf_scatterpf<mode>df): Ditto.
23598 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23599 (*avx512pf_scatterpf<mode>df): Ditto.
23600 (avx512f_expand<mode>): Removed.
23601 (<shift_insn><mode>3<mask_name>): Change predicate type.
23602
23603 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23604
23605 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23606 not at the end of datarefs vector use ordered_remove to avoid
23607 reordering datarefs vector.
23608
23609 PR c/59984
23610 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23611 mark local addressable non-static vars as GOVD_PRIVATE
23612 instead of GOVD_LOCAL.
23613 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23614 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23615 than copying them.
23616
23617 PR middle-end/60092
23618 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23619 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23620 assume_aligned or alloc_align attributes.
23621 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23622 arguments. Handle also assume_aligned and alloc_align attributes.
23623 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23624 calls to functions with assume_aligned or alloc_align attributes.
23625 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23626
23627 2014-02-08 Terry Guo <terry.guo@arm.com>
23628
23629 * doc/invoke.texi: Document ARM -march=armv7e-m.
23630
23631 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23632
23633 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23634 flag on __cilkrts_rethrow builtin.
23635
23636 PR ipa/60026
23637 * ipa-cp.c (determine_versionability): Fail at -O0
23638 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23639 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23640
23641 Revert:
23642 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23643
23644 PR ipa/60026
23645 * tree-inline.c (copy_forbidden): Fail for
23646 __attribute__((optimize (0))) functions.
23647
23648 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23649
23650 * varpool.c: Include pointer-set.h.
23651 (varpool_remove_unreferenced_decls): Variables in other partitions
23652 will not be output; be however careful to not lose information
23653 about partitioning.
23654
23655 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23656
23657 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23658 lookup in the vtable constructor.
23659
23660 2014-02-07 Jeff Law <law@redhat.com>
23661
23662 PR target/40977
23663 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23664 define_insn_and_split.
23665
23666 * ipa-inline.c (inline_small_functions): Fix typos.
23667
23668 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23669
23670 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23671 (s390_can_use_return_insn): Declare.
23672 * config/s390/s390.h (EPILOGUE_USES): Define.
23673 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23674 instructions.
23675 (s390_chunkify_start): Handle return JUMP_LABELs.
23676 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23677 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23678 (s390_can_use_return_insn): New functions.
23679 (s390_fix_long_loop_prediction): Handle conditional returns.
23680 (TARGET_SET_UP_BY_PROLOGUE): Define.
23681 * config/s390/s390.md (ANY_RETURN): New code iterator.
23682 (*creturn, *csimple_return, return, simple_return): New patterns.
23683
23684 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23685
23686 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23687 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23688 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23689 REG_CFA_RESTORE list when deciding not to restore a register.
23690
23691 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23692
23693 * config/s390/s390.c: Include tree-pass.h and context.h.
23694 (s390_early_mach): New function, split out from...
23695 (s390_emit_prologue): ...here.
23696 (pass_data_s390_early_mach): New pass structure.
23697 (pass_s390_early_mach): New class.
23698 (s390_option_override): Create and register early_mach pass.
23699 Move to end of file.
23700
23701 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23702
23703 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23704 to match for the exit block.
23705
23706 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23707
23708 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23709 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23710 Reject misaligned operands.
23711
23712 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23713
23714 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23715
23716 2014-02-07 Richard Biener <rguenther@suse.de>
23717
23718 PR middle-end/60092
23719 * gimple-low.c (lower_builtin_posix_memalign): New function.
23720 (lower_stmt): Call it to lower posix_memalign in a way
23721 to make alignment info accessible.
23722
23723 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23724
23725 PR c++/60082
23726 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23727 __builtin_setjmp_receiver.
23728
23729 2014-02-07 Richard Biener <rguenther@suse.de>
23730
23731 PR middle-end/60092
23732 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23733 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23734 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23735 Handle BUILT_IN_POSIX_MEMALIGN.
23736 (find_func_clobbers): Likewise.
23737 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23738 (call_may_clobber_ref_p_1): Likewise.
23739
23740 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23741
23742 PR ipa/59918
23743 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23744 sanity check.
23745
23746 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23747
23748 PR ipa/59469
23749 * lto-cgraph.c (lto_output_node): Use
23750 symtab_get_symbol_partitioning_class.
23751 (lto_output_varpool_node): likewise.
23752 (symtab_get_symbol_partitioning_class): Move here from
23753 lto/lto-partition.c
23754 * cgraph.h (symbol_partitioning_class): Likewise.
23755 (symtab_get_symbol_partitioning_class): Declare.
23756
23757 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23758
23759 * ggc.h (ggc_internal_cleared_alloc): New macro.
23760 * vec.h (vec_safe_copy): Handle memory stats.
23761 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23762 * target-globals.c (save_target_globals): Likewise.
23763
23764 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23765
23766 PR target/60077
23767 * expr.c (emit_move_resolve_push): Export; be bit more selective
23768 on when to clear alias set.
23769 * expr.h (emit_move_resolve_push): Declare.
23770 * function.h (struct function): Add tail_call_marked.
23771 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23772 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23773 * config/i386/i386.md (TImode move expander): De not call
23774 ix86_expand_push.
23775 (FP push expanders): Preserve memory attributes.
23776 * config/i386/sse.md (push<mode>1): Remove.
23777 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23778 (ix86_expand_push): Remove.
23779 * config/i386/mmx.md (push<mode>1): Remove.
23780
23781 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23782
23783 PR rtl-optimization/60030
23784 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23785 lopart with paradoxical subreg before shifting it up by hprec.
23786
23787 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23788
23789 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23790 Remove extra newline at end of file.
23791 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23792 (arm_issue_rate): Handle cortexa57.
23793 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23794 (cortex-a57.cortex-a53): Likewise.
23795
23796 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23797
23798 PR target/59575
23799 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23800 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23801 bitmask.
23802 (arm_expand_prologue): Adjust all callers.
23803 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23804 info, registers also at the lowest numbered registers side. Use
23805 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23806 XEXP.
23807
23808 PR debug/59992
23809 * var-tracking.c (adjust_mems): Before adding a SET to
23810 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23811
23812 2014-02-06 Alan Modra <amodra@gmail.com>
23813
23814 PR target/60032
23815 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23816 change SDmode to DDmode when lra_in_progress.
23817
23818 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23819
23820 PR middle-end/59150
23821 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23822 free_data_ref on the dr first, and before goto again also set dr
23823 to the next dr. For simd_lane_access, free old datarefs[i] before
23824 overwriting it. For get_vectype_for_scalar_type failure, don't
23825 free_data_ref if simd_lane_access.
23826
23827 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23828
23829 PR target/60062
23830 * tree.h (opts_for_fn): New inline function.
23831 (opt_for_fn): Define.
23832 * config/i386/i386.c (ix86_function_regparm): Use
23833 opt_for_fn (decl, optimize) instead of optimize.
23834
23835 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23836
23837 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23838 for SYMBOL_REF in large memory model.
23839
23840 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23841
23842 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23843 and crypto support.
23844 (cortex-a57): Likewise.
23845 (cortex-a57.cortex-a53): Likewise.
23846
23847 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23848 Kugan Vivekanandarajah <kuganv@linaro.org>
23849
23850 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23851 unaligned_access.
23852 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23853
23854 2014-02-06 Richard Biener <rguenther@suse.de>
23855
23856 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23857 set_loop_copy and initialize_original_copy_tables.
23858
23859 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23860
23861 * config/aarch64/aarch64-simd.md
23862 (aarch64_ashr_simddi): Change QI to SI.
23863
23864 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23865 Jakub Jelinek <jakub@redhat.com>
23866
23867 PR middle-end/60013
23868 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23869 of the dataflow.
23870
23871 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23872
23873 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23874 CODE_FOR_altivec_vpku[hw]um to
23875 CODE_FOR_altivec_vpku[hw]um_direct.
23876 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23877 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23878 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23879 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23880
23881 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23882
23883 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23884 generation for -maltivec=be.
23885 (altivec_vsumsws): Simplify redundant test.
23886
23887 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23888
23889 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23890 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23891 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23892 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23893 gen_altivec_vpkuwum.
23894 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23895 BYTES_BIG_ENDIAN.
23896 (altivec_vpks<VI_char>ss): Likewise.
23897 (altivec_vpks<VI_char>us): Likewise.
23898 (altivec_vpku<VI_char>us): Likewise.
23899 (altivec_vpku<VI_char>um): Likewise.
23900 (altivec_vpku<VI_char>um_direct): New (copy of
23901 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23902 internal use).
23903 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23904 target is little endian and -maltivec=be is not specified.
23905 (*altivec_vupkhs<VU_char>_direct): New (copy of
23906 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23907 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23908 target is little endian and -maltivec=be is not specified.
23909 (*altivec_vupkls<VU_char>_direct): New (copy of
23910 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23911 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23912 little endian and -maltivec=be is not specified.
23913 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23914 little endian and -maltivec=be is not specified.
23915
23916 2014-02-05 Richard Henderson <rth@redhat.com>
23917
23918 PR debug/52727
23919 * combine-stack-adj.c: Revert r206943.
23920 * sched-int.h (struct deps_desc): Add last_args_size.
23921 * sched-deps.c (init_deps): Initialize it.
23922 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23923 contain REG_ARGS_SIZE notes.
23924
23925 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23926
23927 * lto-cgraph.c (asm_nodes_output): Make global.
23928 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23929 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23930 (driver_handle_option): Handle OPT_fwpa.
23931
23932 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23933
23934 PR ipa/59947
23935 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23936 a comment typo and formatting issue. If odr_hash hasn't been
23937 created, return vNULL and set *completep to false.
23938
23939 PR middle-end/57499
23940 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23941 bb with no successors.
23942
23943 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23944
23945 PR target/59718
23946 * doc/invoke.texi (-march): Clarify documentation for ARM.
23947 (-mtune): Likewise.
23948 (-mcpu): Likewise.
23949
23950 2014-02-05 Richard Biener <rguenther@suse.de>
23951
23952 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23953 when not vectorizing because of too many alias checks.
23954 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23955 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23956
23957 2014-02-05 Nick Clifton <nickc@redhat.com>
23958
23959 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23960 accept extended registers in any mode when compiling for the MN10300.
23961
23962 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23963
23964 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23965 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23966 sanitization attributes.
23967 (can_inline_edge_p): Likewise.
23968 (sanitize_attrs_match_for_inline_p): New function.
23969
23970 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23971
23972 * ipa-prop.c (detect_type_change): Shor circuit testing of
23973 type changes on THIS pointer.
23974
23975 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23976
23977 PR target/59777
23978 * config/pa/pa.c (legitimize_tls_address): Return original address
23979 if not passed a SYMBOL_REF rtx.
23980 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23981 addresses.
23982 (pa_emit_move_sequence): Simplify TLS source operands.
23983 (pa_legitimate_constant_p): Reject all TLS constants.
23984 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23985 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23986
23987 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23988
23989 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23990 groups when we know they are controlled by LTO.
23991 * varasm.c (default_binds_local_p_1): If object is in other partition,
23992 it will be resolved locally.
23993
23994 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23995
23996 * config/host-linux.c (linux_gt_pch_use_address): Don't
23997 use SSIZE_MAX because it is not always defined.
23998
23999 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24000
24001 PR bootstrap/59913
24002 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24003 threshold for pseudo splitting.
24004 (update_ebb_live_info): Process call argument hard registers and
24005 hard registers from insn definition too.
24006 (max_small_class_regs_num): New constant.
24007 (inherit_in_ebb): Update live hard regs through EBBs. Update
24008 reloads_num only for small register classes. Don't split for
24009 outputs of jumps.
24010
24011 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24012
24013 PR ipa/60058
24014 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24015 is non-null.
24016
24017 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24018
24019 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24020 visibility is safe.
24021
24022 2014-02-04 Marek Polacek <polacek@redhat.com>
24023
24024 * gdbinit.in (pel): Define.
24025
24026 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24027
24028 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24029 behavior.
24030
24031 2014-02-04 Richard Biener <rguenther@suse.de>
24032
24033 PR lto/59723
24034 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24035 in function context local.
24036 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24037 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24038 similar to LTO_imported_decl_ref.
24039
24040 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24041
24042 PR tree-optimization/60002
24043 * cgraphclones.c (build_function_decl_skip_args): Clear
24044 DECL_LANG_SPECIFIC.
24045
24046 PR tree-optimization/60023
24047 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24048 false to gsi_replace.
24049 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24050 has been in some EH region and vec_stmt could throw, add
24051 vec_stmt into the same EH region.
24052 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24053 has no lhs, ignore it.
24054 * internal-fn.c (expand_MASK_LOAD): Likewise.
24055
24056 PR ipa/60026
24057 * tree-inline.c (copy_forbidden): Fail for
24058 __attribute__((optimize (0))) functions.
24059
24060 PR other/58712
24061 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24062 is set, copy one less argument.
24063 (expand_simd_clones): Don't subtract clone_info->inbranch
24064 from simd_clone_struct_alloc argument.
24065
24066 PR rtl-optimization/57915
24067 * recog.c (simplify_while_replacing): If all unary/binary/relational
24068 operation arguments are constant, attempt to simplify those.
24069
24070 PR middle-end/59261
24071 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24072 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24073
24074 2014-02-04 Richard Biener <rguenther@suse.de>
24075
24076 PR tree-optimization/60012
24077 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24078 TBAA disambiguation to all DDRs.
24079
24080 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24081
24082 PR target/59788
24083 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24084 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24085
24086 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24087
24088 PR ipa/59882
24089 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24090
24091 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24092
24093 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24094 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24095
24096 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24097
24098 PR ipa/59831
24099 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24100 to figure out targets of polymorphic calls with known decl.
24101 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24102 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24103 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24104 (get_polymorphic_call_info): ... here.
24105 (get_polymorphic_call_info_from_invariant): New function.
24106
24107 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24108
24109 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24110 lookup via vtable pointer; check for type consistency
24111 and turn inconsitent facts into UNREACHABLE.
24112 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24113 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24114 type inconsistent querries; return UNREACHABLE instead.
24115
24116 2014-02-03 Richard Henderson <rth@twiddle.net>
24117
24118 PR tree-opt/59924
24119 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24120 already processed this node.
24121 (normalize_one_pred_1): Pass along mark_set.
24122 (normalize_one_pred): Create and destroy a pointer_set_t.
24123 (normalize_one_pred_chain): Likewise.
24124
24125 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24126
24127 PR gcov-profile/58602
24128 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24129
24130 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24131
24132 PR ipa/59831
24133 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24134 -fno-devirtualize; try to devirtualize by the knowledge of
24135 virtual table pointer given by aggregate propagation.
24136 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24137 (ipa_print_node_jump_functions): Dump also offset that
24138 is relevant for polymorphic calls.
24139 (determine_known_aggregate_parts): Add arg_type parameter; use it
24140 instead of determining the type from pointer type.
24141 (ipa_compute_jump_functions_for_edge): Update call of
24142 determine_known_aggregate_parts.
24143 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24144 (gimple_get_virt_method_for_binfo): ... here; simplify using
24145 vtable_pointer_value_to_vtable.
24146 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24147 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24148 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24149 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24150 POINTER_PLUS_EXPR.
24151 (vtable_pointer_value_to_binfo): ... here.
24152 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24153
24154 2014-02-03 Teresa Johnson <tejohnson@google.com>
24155
24156 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24157 redef of outer loop index variable.
24158
24159 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24160
24161 PR c++/53017
24162 PR c++/59211
24163 * doc/extend.texi (Function Attributes): Typo.
24164
24165 2014-02-03 Cong Hou <congh@google.com>
24166
24167 PR tree-optimization/60000
24168 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24169 if the vectorized statement is a store. A store statement can only
24170 appear at the end of pattern statements.
24171
24172 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24173
24174 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24175 (ix86_option_override_internal): Default long double to 64-bit for
24176 32-bit Bionic and to 128-bit for 64-bit Bionic.
24177
24178 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24179 TARGET_LONG_DOUBLE_128 is true.
24180 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24181
24182 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24183 (mlong-double-64): Negate -mlong-double-128.
24184 (mlong-double-128): New option.
24185
24186 * config/i386/i386-c.c (ix86_target_macros): Define
24187 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24188
24189 * doc/invoke.texi: Document -mlong-double-128.
24190
24191 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24192
24193 PR rtl-optimization/60024
24194 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24195
24196 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24197
24198 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24199
24200 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24201
24202 PR rtl-optimization/57662
24203 * sel-sched.c (code_motion_path_driver): Do not mark already not
24204 existing blocks in the visiting bitmap.
24205
24206 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24207
24208 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24209 on the insn being emitted.
24210
24211 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24212 Will Deacon <will.deacon@arm.com>
24213
24214 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24215
24216 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24217
24218 * config/arm/arm-tables.opt: Regenerate.
24219
24220 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24221
24222 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24223 for vector types other than V16QImode.
24224 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24225 define_expand, and call altivec_expand_vec_perm_le when producing
24226 code with little endian element order.
24227 (*altivec_vperm_<mode>_internal): New insn having previous
24228 behavior of altivec_vperm_<mode>.
24229 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24230 altivec_expand_vec_perm_le when producing code with little endian
24231 element order.
24232 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24233 behavior of altivec_vperm_<mode>_uns.
24234
24235 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24236
24237 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24238 (altivec_vsumsws): Add handling for -maltivec=be with a little
24239 endian target.
24240 (altivec_vsumsws_direct): New.
24241 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24242 gen_altivec_vsumsws.
24243
24244 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24245
24246 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24247 vtable_pointer_value_to_binfo): New functions.
24248 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24249 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24250
24251 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24252
24253 * config/nios2/nios2.md (load_got_register): Initialize GOT
24254 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24255 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24256
24257 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24258
24259 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24260 preserverd by passthrough, do not propagate the type.
24261
24262 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24263
24264 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24265 (mips_atomic_assign_expand_fenv): New function.
24266 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24267
24268 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24269
24270 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24271 (__builtin_mips_set_fcsr): Likewise.
24272 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24273 MIPS_USI_FTYPE_VOID.
24274 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24275 (mips16_expand_set_fcsr): Likewise.
24276 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24277 (mips16_set_fcsr_stub): Likewise.
24278 (mips16_get_fcsr_one_only_stub): New class.
24279 (mips16_set_fcsr_one_only_stub): Likewise.
24280 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24281 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24282 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24283 (hard_float): New availability predicate.
24284 (mips_builtins): Add get_fcsr and set_fcsr.
24285 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24286 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24287 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24288 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24289 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24290 patterns.
24291
24292 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24293
24294 * config/mips/mips.c (mips_one_only_stub): New class.
24295 (mips_need_mips16_rdhwr_p): Replace with...
24296 (mips16_rdhwr_stub): ...this new variable.
24297 (mips16_stub_call_address): New function.
24298 (mips16_rdhwr_one_only_stub): New class.
24299 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24300 (mips_output_mips16_rdhwr): Delete.
24301 (mips_finish_stub): New function.
24302 (mips_code_end): Use it to handle rdhwr stubs.
24303
24304 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24305
24306 PR target/60017
24307 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24308 when calculating size of integer atomic types.
24309
24310 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24311
24312 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24313
24314 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24315
24316 PR tree-optimization/60003
24317 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24318 * profile.c (branch_prob): Use gimple_call_builtin_p
24319 to check for BUILT_IN_SETJMP_RECEIVER.
24320 * tree-inline.c (copy_bb): Call notice_special_calls.
24321
24322 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24323
24324 PR bootstrap/59985
24325 * lra-constraints.c (process_alt_operands): Update reload_sum only
24326 on the first pass.
24327
24328 2014-01-31 Richard Henderson <rth@redhat.com>
24329
24330 PR middle-end/60004
24331 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24332 until after else_eh is processed.
24333
24334 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24335
24336 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24337 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24338 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24339 in smmintrin.h, remove them.
24340 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24341 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24342 * config/i386/i386.md (ROUND_SAE): Fix value.
24343 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24344 (const48_operand): New.
24345 * config/i386/subst.md (round), (round_expand): Use
24346 const_4_or_8_to_11_operand.
24347 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24348
24349 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24350
24351 * config/i386/constraints.md (Yk): Swap meaning with k.
24352 * config/i386/i386.md (movhi_internal): Change Yk to k.
24353 (movqi_internal): Ditto.
24354 (*k<logic><mode>): Ditto.
24355 (*andhi_1): Ditto.
24356 (*andqi_1): Ditto.
24357 (kandn<mode>): Ditto.
24358 (*<code>hi_1): Ditto.
24359 (*<code>qi_1): Ditto.
24360 (kxnor<mode>): Ditto.
24361 (kortestzhi): Ditto.
24362 (kortestchi): Ditto.
24363 (kunpckhi): Ditto.
24364 (*one_cmplhi2_1): Ditto.
24365 (*one_cmplqi2_1): Ditto.
24366 * config/i386/sse.md (): Change k to Yk.
24367 (avx512f_load<mode>_mask): Ditto.
24368 (avx512f_blendm<mode>): Ditto.
24369 (avx512f_store<mode>_mask): Ditto.
24370 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24371 (avx512f_storedqu<mode>_mask): Ditto.
24372 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24373 Ditto.
24374 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24375 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24376 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24377 (avx512f_maskcmp<mode>3): Ditto.
24378 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24379 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24380 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24381 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24382 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24383 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24384 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24385 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24386 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24387 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24388 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24389 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24390 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24391 (vec_extract_lo_<mode>_maskm): Ditto.
24392 (vec_extract_hi_<mode>_maskm): Ditto.
24393 (avx512f_vternlog<mode>_mask): Ditto.
24394 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24395 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24396 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24397 (avx512f_<code>v8div16qi2_mask): Ditto.
24398 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24399 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24400 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24401 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24402 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24403 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24404 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24405 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24406 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24407 (avx512cd_maskb_vec_dupv8di): Ditto.
24408 (avx512cd_maskw_vec_dupv16si): Ditto.
24409 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24410 (avx512f_vpermi2var<mode>3_mask): Ditto.
24411 (avx512f_vpermi2var<mode>3_mask): Ditto.
24412 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24413 (*avx512f_gathersi<mode>): Ditto.
24414 (*avx512f_gathersi<mode>_2): Ditto.
24415 (*avx512f_gatherdi<mode>): Ditto.
24416 (*avx512f_gatherdi<mode>_2): Ditto.
24417 (*avx512f_scattersi<mode>): Ditto.
24418 (*avx512f_scatterdi<mode>): Ditto.
24419 (avx512f_compress<mode>_mask): Ditto.
24420 (avx512f_compressstore<mode>_mask): Ditto.
24421 (avx512f_expand<mode>_mask): Ditto.
24422 * config/i386/subst.md (mask): Change k to Yk.
24423 (mask_scalar_merge): Ditto.
24424 (sd): Ditto.
24425
24426 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24427
24428 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24429
24430 2014-01-31 Richard Biener <rguenther@suse.de>
24431
24432 PR middle-end/59990
24433 * builtins.c (fold_builtin_memory_op): Make sure to not
24434 use a floating-point mode or a boolean or enumeral type for
24435 the copy operation.
24436
24437 2014-01-30 DJ Delorie <dj@redhat.com>
24438
24439 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24440 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24441 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24442 whenever main() has an epilogue.
24443
24444 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24445
24446 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24447 unused variable "field".
24448 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24449 (vsx_mergeh_<mode>): Likewise.
24450 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24451 (altivec_vmrghh): Likewise.
24452 (altivec_vmrghw): Likewise.
24453 (altivec_vmrglb): Likewise.
24454 (altivec_vmrglh): Likewise.
24455 (altivec_vmrglw): Likewise.
24456 (altivec_vspltb): Add missing uses.
24457 (altivec_vsplth): Likewise.
24458 (altivec_vspltw): Likewise.
24459 (altivec_vspltsf): Likewise.
24460
24461 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24462
24463 PR target/59923
24464 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24465 frame related instructions.
24466
24467 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24468
24469 PR rtl-optimization/59959
24470 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24471 any reload of register whose subreg is invalid.
24472
24473 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24474
24475 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24476 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24477 Add missing return type - void.
24478
24479 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24480
24481 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24482 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24483 remove element index adjustment for endian (now handled in vsx.md
24484 and altivec.md).
24485 (altivec_expand_vec_perm_const): Use
24486 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24487 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24488 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24489 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24490 define_expand and a new define_insn *altivec_vspltb_internal;
24491 adjust for -maltivec=be on a little endian target.
24492 (altivec_vspltb_direct): New.
24493 (altivec_vsplth): Divide into a define_expand and a new
24494 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24495 little endian target.
24496 (altivec_vsplth_direct): New.
24497 (altivec_vspltw): Divide into a define_expand and a new
24498 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24499 little endian target.
24500 (altivec_vspltw_direct): New.
24501 (altivec_vspltsf): Divide into a define_expand and a new
24502 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24503 a little endian target.
24504
24505 2014-01-30 Richard Biener <rguenther@suse.de>
24506
24507 PR tree-optimization/59993
24508 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24509 can propagate form the earlier stmt and avoid the transform
24510 when the intermediate result is needed.
24511
24512 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24513
24514 * README.Portability: Fix typo.
24515
24516 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24517
24518 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24519 comparison_operator with ordered_comparison_operator.
24520
24521 2014-01-30 Nick Clifton <nickc@redhat.com>
24522
24523 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24524 Rename to mn10300_store_multiple_regs.
24525 * config/mn10300/mn10300.c: Likewise.
24526 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24527 store_multiple_regs.
24528 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24529 Call mn10300_store_multiple_regs.
24530
24531 2014-01-30 Nick Clifton <nickc@redhat.com>
24532 DJ Delorie <dj@redhat.com>
24533
24534 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24535 %fp 2 to keep registers after it properly word-aligned.
24536 (rl78_alloc_physical_registers_umul): Handle the case where both
24537 input operands are the same.
24538
24539 2014-01-30 Richard Biener <rguenther@suse.de>
24540
24541 PR tree-optimization/59903
24542 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24543 check properly.
24544
24545 2014-01-30 Jason Merrill <jason@redhat.com>
24546
24547 PR c++/59633
24548 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24549
24550 PR c++/59645
24551 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24552
24553 2014-01-30 Richard Biener <rguenther@suse.de>
24554
24555 PR tree-optimization/59951
24556 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24557
24558 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24559
24560 PR target/59784
24561 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24562 SFmode to DFmode case.
24563
24564 2014-01-29 DJ Delorie <dj@redhat.com>
24565
24566 * config/msp430/msp430.opt (-minrt): New.
24567 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24568 if -minrt given.
24569 (ENDFILE_SPEC): Likewise.
24570
24571 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24572
24573 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24574 (estimate_function_body_sizes): Use it.
24575
24576 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24577
24578 PR c++/58561
24579 * dwarf2out.c (is_cxx_auto): New.
24580 (is_base_type): Use it.
24581 (gen_type_die_with_usage): Likewise.
24582
24583 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24584
24585 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24586 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24587 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24588 -maltivec=be with LE targets.
24589 (vsx_mergeh_<mode>): Likewise.
24590 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24591 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24592 (altivec_vmrghb): Replace with define_expand and new
24593 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24594 (altivec_vmrghb_direct): New define_insn.
24595 (altivec_vmrghh): Replace with define_expand and new
24596 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24597 (altivec_vmrghh_direct): New define_insn.
24598 (altivec_vmrghw): Replace with define_expand and new
24599 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24600 (altivec_vmrghw_direct): New define_insn.
24601 (*altivec_vmrghsf): Adjust for endianness.
24602 (altivec_vmrglb): Replace with define_expand and new
24603 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24604 (altivec_vmrglb_direct): New define_insn.
24605 (altivec_vmrglh): Replace with define_expand and new
24606 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24607 (altivec_vmrglh_direct): New define_insn.
24608 (altivec_vmrglw): Replace with define_expand and new
24609 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24610 (altivec_vmrglw_direct): New define_insn.
24611 (*altivec_vmrglsf): Adjust for endianness.
24612 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24613 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24614 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24615 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24616 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24617 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24618 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24619 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24620
24621 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24622
24623 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24624 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24625 whitespace.
24626
24627 2014-01-29 Richard Biener <rguenther@suse.de>
24628
24629 PR tree-optimization/58742
24630 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24631 associate_pointerplus_align.
24632 (associate_pointerplus_diff): New function.
24633 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24634 and associate_pointerplus_diff.
24635
24636 2014-01-29 Richard Biener <rguenther@suse.de>
24637
24638 * lto-streamer.h (LTO_major_version): Bump to 3.
24639 (LTO_minor_version): Reset to 0.
24640
24641 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24642
24643 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24644 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24645 (arm_file_start): Generate correct asm header for armv7ve.
24646 * config/arm/bpabi.h: Add multilib support for armv7ve.
24647 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24648 and cortex-a15 to armv7ve.
24649 * config/arm/t-aprofile: Add multilib support for armv7ve.
24650 * doc/invoke.texi: Document -march=armv7ve.
24651
24652 2014-01-29 Richard Biener <rguenther@suse.de>
24653
24654 PR tree-optimization/58742
24655 * tree-ssa-forwprop.c (associate_plusminus): Return true
24656 if we changed sth, defer EH cleanup to ...
24657 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24658 (simplify_mult): New function.
24659
24660 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24661
24662 PR middle-end/59917
24663 PR tree-optimization/59920
24664 * tree.c (build_common_builtin_nodes): Remove
24665 __builtin_setjmp_dispatcher initialization.
24666 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24667 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24668 instead of gsi_after_labels + manually skipping debug stmts.
24669 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24670 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24671 * tree-inline.c (copy_edges_for_bb): Remove
24672 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24673 argument. Ignore computed_goto_p stmts. Don't call
24674 make_abnormal_goto_edges. If a call might need abnormal edges
24675 for non-local gotos, see if it already has an edge to
24676 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24677 with true argument, don't do anything then, otherwise add
24678 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24679 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24680 caller.
24681 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24682 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24683 (lower_stmt): Don't set data->calls_builtin_setjmp.
24684 (lower_builtin_setjmp): Adjust comment.
24685 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24686 * tree-cfg.c (found_computed_goto): Remove.
24687 (factor_computed_gotos): Remove.
24688 (make_goto_expr_edges): Return bool, true for computed gotos.
24689 Don't call make_abnormal_goto_edges.
24690 (build_gimple_cfg): Don't set found_computed_goto, don't call
24691 factor_computed_gotos.
24692 (computed_goto_p): No longer static.
24693 (make_blocks): Don't set found_computed_goto.
24694 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24695 (make_edges): If make_goto_expr_edges returns true, push bb
24696 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24697 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24698 vector. Record mapping between bbs and OpenMP regions if there
24699 are any, adjust make_gimple_omp_edges caller. Call
24700 handle_abnormal_edges.
24701 (make_abnormal_goto_edges): Remove.
24702 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24703 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24704 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24705 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24706 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24707 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24708 filling *region also set *region_idx to (*region)->entry->index.
24709
24710 PR other/58712
24711 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24712 For REGs set ORIGINAL_REGNO.
24713
24714 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24715
24716 * doc/md.texi: Mention that a target shouldn't implement
24717 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24718 than hi/lo pair.
24719
24720 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24721
24722 PR tree-optimization/59594
24723 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24724 a copy of the datarefs vector rather than the vector itself.
24725
24726 2014-01-28 Jason Merrill <jason@redhat.com>
24727
24728 PR c++/53756
24729 * dwarf2out.c (auto_die): New static.
24730 (gen_type_die_with_usage): Handle C++1y 'auto'.
24731 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24732 on definition.
24733
24734 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24735
24736 PR target/59672
24737 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24738 (SPEC_X32): Likewise.
24739 (SPEC_64): Likewise.
24740 * config/i386/i386.c (ix86_option_override_internal): Turn off
24741 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24742 for TARGET_16BIT.
24743 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24744 * config/i386/i386.h (TARGET_16BIT): New macro.
24745 (TARGET_16BIT_P): Likewise.
24746 * config/i386/i386.opt: Add m16.
24747 * doc/invoke.texi: Document -m16.
24748
24749 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24750
24751 PR preprocessor/59935
24752 * input.c (location_get_source_line): Bail out on when line number
24753 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24754
24755 2014-01-28 Richard Biener <rguenther@suse.de>
24756
24757 PR tree-optimization/58742
24758 * tree-ssa-forwprop.c (associate_plusminus): Handle
24759 pointer subtraction of the form (T)(P + A) - (T)P.
24760
24761 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24762
24763 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24764 at const_int_cost.
24765
24766 2014-01-28 Richard Biener <rguenther@suse.de>
24767
24768 Revert
24769 2014-01-28 Richard Biener <rguenther@suse.de>
24770
24771 PR rtl-optimization/45364
24772 PR rtl-optimization/59890
24773 * var-tracking.c (local_get_addr_clear_given_value): Handle
24774 already cleared slot.
24775 (val_reset): Handle not allocated local_get_addr_cache.
24776 (vt_find_locations): Use post-order on the inverted CFG.
24777
24778 2014-01-28 Richard Biener <rguenther@suse.de>
24779
24780 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24781
24782 2014-01-28 Richard Biener <rguenther@suse.de>
24783
24784 PR rtl-optimization/45364
24785 PR rtl-optimization/59890
24786 * var-tracking.c (local_get_addr_clear_given_value): Handle
24787 already cleared slot.
24788 (val_reset): Handle not allocated local_get_addr_cache.
24789 (vt_find_locations): Use post-order on the inverted CFG.
24790
24791 2014-01-28 Alan Modra <amodra@gmail.com>
24792
24793 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24794 * configure.ac <recursive call for build != host>: Define
24795 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24796 and LD_FOR_BUILD too.
24797 * configure: Regenerate.
24798
24799 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24800
24801 * config/i386/i386.c (get_builtin_code_for_version): Separate
24802 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24803 Broadwell from Haswell.
24804
24805 2014-01-27 Steve Ellcey <sellcey@mips.com>
24806
24807 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24808 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24809 * config/mips/mips.c (mips_option_override): Change setting
24810 of TARGET_DSP.
24811 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24812 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24813 Change from Mask to Var.
24814
24815 2014-01-27 Jeff Law <law@redhat.com>
24816
24817 * ipa-inline.c (inline_small_functions): Fix typo.
24818
24819 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24820
24821 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24822 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24823 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24824 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24825 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24826 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24827 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24828 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24829 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24830 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24831 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24832 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24833 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24834 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24835 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24836 (_mm512_storeu_epi64): Ditto.
24837 (_mm512_cmpge_epi32_mask): Ditto.
24838 (_mm512_cmpge_epu32_mask): Ditto.
24839 (_mm512_cmpge_epi64_mask): Ditto.
24840 (_mm512_cmpge_epu64_mask): Ditto.
24841 (_mm512_cmple_epi32_mask): Ditto.
24842 (_mm512_cmple_epu32_mask): Ditto.
24843 (_mm512_cmple_epi64_mask): Ditto.
24844 (_mm512_cmple_epu64_mask): Ditto.
24845 (_mm512_cmplt_epi32_mask): Ditto.
24846 (_mm512_cmplt_epu32_mask): Ditto.
24847 (_mm512_cmplt_epi64_mask): Ditto.
24848 (_mm512_cmplt_epu64_mask): Ditto.
24849 (_mm512_cmpneq_epi32_mask): Ditto.
24850 (_mm512_cmpneq_epu32_mask): Ditto.
24851 (_mm512_cmpneq_epi64_mask): Ditto.
24852 (_mm512_cmpneq_epu64_mask): Ditto.
24853 (_mm512_expand_pd): Ditto.
24854 (_mm512_expand_ps): Ditto.
24855 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24856 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24857 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24858 * config/i386/i386.c (ix86_builtins): Add
24859 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24860 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24861 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24862 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24863 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24864 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24865 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24866 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24867 IX86_BUILTIN_PMOVUSQW512_MEM.
24868 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24869 __builtin_ia32_pmovsqd512mem_mask,
24870 __builtin_ia32_pmovqd512mem_mask,
24871 __builtin_ia32_pmovusqw512mem_mask,
24872 __builtin_ia32_pmovsqw512mem_mask,
24873 __builtin_ia32_pmovqw512mem_mask,
24874 __builtin_ia32_pmovusdw512mem_mask,
24875 __builtin_ia32_pmovsdw512mem_mask,
24876 __builtin_ia32_pmovdw512mem_mask,
24877 __builtin_ia32_pmovqb512mem_mask,
24878 __builtin_ia32_pmovusqb512mem_mask,
24879 __builtin_ia32_pmovsqb512mem_mask,
24880 __builtin_ia32_pmovusdb512mem_mask,
24881 __builtin_ia32_pmovsdb512mem_mask,
24882 __builtin_ia32_pmovdb512mem_mask.
24883 (bdesc_args): Add __builtin_ia32_expanddf512,
24884 __builtin_ia32_expandsf512.
24885 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24886 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24887 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24888 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24889 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24890 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24891 (avx512f_<code>v8div16qi2_mask_store): This.
24892 (avx512f_expand<mode>): New.
24893
24894 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24895
24896 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24897 New.
24898 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24899 (_mm512_prefetch_i32scatter_pd): Ditto.
24900 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24901 (_mm512_prefetch_i64scatter_pd): Ditto.
24902 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24903 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24904 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24905 (_mm512_prefetch_i32scatter_ps): Ditto.
24906 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24907 (_mm512_prefetch_i64scatter_ps): Ditto.
24908 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24909 * config/i386/i386-builtin-types.def: Define
24910 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24911 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24912 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24913 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24914 IX86_BUILTIN_SCATTERPFQPD.
24915 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24916 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24917 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24918 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24919 __builtin_ia32_scatterpfqps.
24920 (ix86_expand_builtin): Expand new built-ins.
24921 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24922 fix memory access data type.
24923 (*avx512pf_gatherpf<mode>_mask): Ditto.
24924 (*avx512pf_gatherpf<mode>): Ditto.
24925 (avx512pf_scatterpf<mode>): Ditto.
24926 (*avx512pf_scatterpf<mode>_mask): Ditto.
24927 (*avx512pf_scatterpf<mode>): Ditto.
24928 (GATHER_SCATTER_SF_MEM_MODE): New.
24929 (avx512pf_gatherpf<mode>df): Ditto.
24930 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24931 (*avx512pf_scatterpf<mode>df): Ditto.
24932
24933 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24934
24935 PR bootstrap/59934
24936 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24937 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24938 reached.
24939
24940 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24941
24942 * common/config/arm/arm-common.c
24943 (arm_rewrite_mcpu): Handle multiple names.
24944 * config/arm/arm.h
24945 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24946
24947 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24948
24949 * gimple-builder.h (create_gimple_tmp): Delete.
24950
24951 2014-01-27 Christian Bruel <christian.bruel@st.com>
24952
24953 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24954 words comparisons.
24955
24956 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24957
24958 * config/pa/pa.md (call): Generate indirect long calls to non-local
24959 functions when outputing 32-bit code.
24960 (call_value): Likewise except for special call to buggy powf function.
24961
24962 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24963 portable runtime and PIC indirect calls.
24964 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24965 and PIC call sequences. Use ldo instead of blr to set return register
24966 in PIC call sequence.
24967
24968 2014-01-25 Walter Lee <walt@tilera.com>
24969
24970 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24971 avoid clobbering a live register.
24972
24973 2014-01-25 Walter Lee <walt@tilera.com>
24974
24975 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24976 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24977 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24978 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24979
24980 2014-01-25 Walter Lee <walt@tilera.com>
24981
24982 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24983 arguments on even registers.
24984 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24985 STACK_BOUNDARY.
24986 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24987 (BIGGEST_ALIGNMENT): Ditto.
24988 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24989
24990 2014-01-25 Walter Lee <walt@tilera.com>
24991
24992 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24993 insns before bundling.
24994 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24995
24996 2014-01-25 Walter Lee <walt@tilera.com>
24997
24998 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24999 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25000 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25001
25002 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25003
25004 * config/mips/constraints.md (kl): Delete.
25005 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25006 define expands, using...
25007 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25008 instructions for MIPS16.
25009 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25010 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25011
25012 2014-01-25 Walter Lee <walt@tilera.com>
25013
25014 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25015 (clzdi2): Ditto.
25016 (ffsdi2): Ditto.
25017
25018 2014-01-25 Walter Lee <walt@tilera.com>
25019
25020 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25021 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25022
25023 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25024
25025 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25026 Handle XOR.
25027
25028 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25029
25030 * print-rtl.c (in_call_function_usage): New var.
25031 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25032 EXPR_LIST mode as mode and not as reg note name.
25033
25034 PR middle-end/59561
25035 * cfgloopmanip.c (copy_loop_info): If
25036 loop->warned_aggressive_loop_optimizations, make sure
25037 the flag is set in target loop too.
25038
25039 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25040
25041 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25042 flag_cilkplus.
25043 * builtins.def: Likewise.
25044 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25045 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25046 * ira.c (ira_setup_eliminable_regset): Likewise.
25047 * omp-low.c (gate_expand_omp): Likewise.
25048 (execute_lower_omp): Likewise.
25049 (diagnose_sb_0): Likewise.
25050 (gate_diagnose_omp_blocks): Likewise.
25051 (simd_clone_clauses_extract): Likewise.
25052 (gate): Likewise.
25053
25054 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25055
25056 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25057 correction for little endian...
25058 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25059 here.
25060
25061 2014-01-24 Jeff Law <law@redhat.com>
25062
25063 PR tree-optimization/59919
25064 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25065 for non-returning calls.
25066
25067 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25068
25069 * common/config/aarch64/aarch64-common.c
25070 (aarch64_rewrite_mcpu): Handle multiple names.
25071 * config/aarch64/aarch64.h
25072 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25073
25074 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25075
25076 * input.c (add_file_to_cache_tab): Handle the case where fopen
25077 returns NULL.
25078
25079 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25080
25081 PR target/59929
25082 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25083 from push operand if code of push isn't PRE_DEC.
25084
25085 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25086
25087 PR target/59909
25088 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25089 -mquad-memory-atomic. Update -mquad-memory documentation to say
25090 it is only used for non-atomic loads/stores.
25091
25092 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25093 -mquad-memory or -mquad-memory-atomic switches.
25094
25095 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25096 -mquad-memory-atomic to ISA 2.07 support.
25097
25098 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25099 to separate support of normal quad word memory operations (ldq, stq)
25100 from the atomic quad word memory operations.
25101
25102 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25103 support to separate non-atomic quad word operations from atomic
25104 quad word operations. Disable non-atomic quad word operations in
25105 little endian mode so that we don't have to swap words after the
25106 load and before the store.
25107 (quad_load_store_p): Add comment about atomic quad word support.
25108 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25109 options printed with -mdebug=reg.
25110
25111 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25112 -mquad-memory-atomic as the test for whether we have quad word
25113 atomic instructions.
25114 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25115 or -mp8-vector are used, allow byte/half-word atomic operations.
25116
25117 * config/rs6000/sync.md (load_lockedti): Insure that the address
25118 is a proper indexed or indirect address for the lqarx instruction.
25119 On little endian systems, swap the hi/lo registers after the lqarx
25120 instruction.
25121 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25122 insure the address is valid for the lqarx instruction.
25123 (store_conditionalti): Insure that the address is a proper indexed
25124 or indirect address for the stqcrx. instruction. On little endian
25125 systems, swap the hi/lo registers before doing the stqcrx.
25126 instruction.
25127 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25128 insure the address is valid for the stqcrx. instruction.
25129
25130 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25131 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25132 type of quad memory support is available.
25133
25134 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25135
25136 PR regression/59915
25137 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25138 there is a danger of looping.
25139
25140 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25141
25142 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25143 force flag_ira_loop_pressure if set via command line.
25144
25145 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25146
25147 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25148 (ashr_simd): New builtin handling DI mode.
25149 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25150 (aarch64_sshr_simddi): New match pattern.
25151 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25152 (vshrd_n_s64): Likewise.
25153 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25154
25155 2014-01-23 Nick Clifton <nickc@redhat.com>
25156
25157 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25158 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25159 favour of mcu specific scripts.
25160 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25161 430x multilibs.
25162
25163 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25164 Alex Velenko <Alex.Velenko@arm.com>
25165
25166 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25167 (vaddv_s16): Likewise.
25168 (vaddv_s32): Likewise.
25169 (vaddv_u8): Likewise.
25170 (vaddv_u16): Likewise.
25171 (vaddv_u32): Likewise.
25172 (vaddvq_s8): Likewise.
25173 (vaddvq_s16): Likewise.
25174 (vaddvq_s32): Likewise.
25175 (vaddvq_s64): Likewise.
25176 (vaddvq_u8): Likewise.
25177 (vaddvq_u16): Likewise.
25178 (vaddvq_u32): Likewise.
25179 (vaddvq_u64): Likewise.
25180 (vaddv_f32): Likewise.
25181 (vaddvq_f32): Likewise.
25182 (vaddvq_f64): Likewise.
25183 (vmaxv_f32): Likewise.
25184 (vmaxv_s8): Likewise.
25185 (vmaxv_s16): Likewise.
25186 (vmaxv_s32): Likewise.
25187 (vmaxv_u8): Likewise.
25188 (vmaxv_u16): Likewise.
25189 (vmaxv_u32): Likewise.
25190 (vmaxvq_f32): Likewise.
25191 (vmaxvq_f64): Likewise.
25192 (vmaxvq_s8): Likewise.
25193 (vmaxvq_s16): Likewise.
25194 (vmaxvq_s32): Likewise.
25195 (vmaxvq_u8): Likewise.
25196 (vmaxvq_u16): Likewise.
25197 (vmaxvq_u32): Likewise.
25198 (vmaxnmv_f32): Likewise.
25199 (vmaxnmvq_f32): Likewise.
25200 (vmaxnmvq_f64): Likewise.
25201 (vminv_f32): Likewise.
25202 (vminv_s8): Likewise.
25203 (vminv_s16): Likewise.
25204 (vminv_s32): Likewise.
25205 (vminv_u8): Likewise.
25206 (vminv_u16): Likewise.
25207 (vminv_u32): Likewise.
25208 (vminvq_f32): Likewise.
25209 (vminvq_f64): Likewise.
25210 (vminvq_s8): Likewise.
25211 (vminvq_s16): Likewise.
25212 (vminvq_s32): Likewise.
25213 (vminvq_u8): Likewise.
25214 (vminvq_u16): Likewise.
25215 (vminvq_u32): Likewise.
25216 (vminnmv_f32): Likewise.
25217 (vminnmvq_f32): Likewise.
25218 (vminnmvq_f64): Likewise.
25219
25220 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25221
25222 * config/aarch64/aarch64-simd.md
25223 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25224 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25225 (*aarch64_mul3_elt<mode>): Likewise.
25226 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25227 (*aarch64_mul3_elt_to_64v2df): Likewise.
25228 (*aarch64_mla_elt<mode>): Likewise.
25229 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25230 (*aarch64_mls_elt<mode>): Likewise.
25231 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25232 (*aarch64_fma4_elt<mode>): Likewise.
25233 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25234 (*aarch64_fma4_elt_to_64v2df): Likewise.
25235 (*aarch64_fnma4_elt<mode>): Likewise.
25236 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25237 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25238 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25239 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25240 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25241 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25242 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25243 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25244 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25245
25246 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25247
25248 * config/aarch64/aarch64-simd.md
25249 (aarch64_be_checked_get_lane<mode>): New define_expand.
25250 * config/aarch64/aarch64-simd-builtins.def
25251 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25252 New builtin definition.
25253 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25254 Use new safe be builtin.
25255
25256 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25257
25258 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25259 New define_insn.
25260 (aarch64_be_st1<mode>): Likewise.
25261 (aarch_ld1<VALL:mode>): Define_expand modified.
25262 (aarch_st1<VALL:mode>): Likewise.
25263 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25264 (UNSPEC_ST1): Likewise.
25265
25266 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25267
25268 * config/microblaze/microblaze.md: Add trap insn and attribute
25269
25270 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25271
25272 PR preprocessor/58580
25273 * input.h (location_get_source_line): Take an additional line_size
25274 parameter.
25275 (void diagnostics_file_cache_fini): Declare new function.
25276 * input.c (struct fcache): New type.
25277 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25278 New static constants.
25279 (diagnostic_file_cache_init, total_lines_num)
25280 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25281 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25282 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25283 (get_next_line, read_next_line, goto_next_line, read_line_num):
25284 New static function definitions.
25285 (diagnostic_file_cache_fini): New function.
25286 (location_get_source_line): Take an additional output line_len
25287 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25288 read_line_num.
25289 * diagnostic.c (diagnostic_finish): Call
25290 diagnostic_file_cache_fini.
25291 (adjust_line): Take an additional input parameter for the length
25292 of the line, rather than calculating it with strlen.
25293 (diagnostic_show_locus): Adjust the use of
25294 location_get_source_line and adjust_line with respect to their new
25295 signature. While displaying a line now, do not stop at the first
25296 null byte. Rather, display the zero byte as a space and keep
25297 going until we reach the size of the line.
25298 * Makefile.in: Add vec.o to OBJS-libcommon
25299
25300 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25301 Ilya Tocar <ilya.tocar@intel.com>
25302
25303 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25304 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25305 (__builtin_ia32_kmov16): Ditto.
25306 * config/i386/i386.md (UNSPEC_KMOV): New.
25307 (kmovw): Ditto.
25308
25309 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25310
25311 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25312 (_mm512_storeu_si512): Ditto.
25313
25314 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25315
25316 PR target/52125
25317 * rtl.h (get_referenced_operands): Declare.
25318 * recog.c (get_referenced_operands): New function.
25319 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25320 operands have been referenced when recording LO_SUM references.
25321
25322 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25323
25324 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25325
25326 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25327
25328 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25329 Enable for generic and recent AMD targets.
25330
25331 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25332
25333 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25334 ARG_SIZE note when adjustment was eliminated.
25335
25336 2014-01-22 Jeff Law <law@redhat.com>
25337
25338 PR tree-optimization/59597
25339 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25340 in file. Accept new argument REGISTERING and use it to modify
25341 dump output appropriately.
25342 (register_jump_thread): Corresponding changes.
25343 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25344 thread paths involving joiner blocks. Add code to dump cancelled
25345 jump threading paths.
25346
25347 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25348
25349 PR rtl-optimization/59477
25350 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25351 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25352
25353 2014-01-22 Tom Tromey <tromey@redhat.com>
25354
25355 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25356 PARAMS.
25357 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25358
25359 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25360
25361 PR rtl-optimization/59896
25362 * lra-constraints.c (process_alt_operands): Check unused note for
25363 matched operands of insn with no output reloads.
25364
25365 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25366
25367 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25368 (mips_move_from_gpr_cost): Likewise.
25369
25370 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25371
25372 PR rtl-optimization/59858
25373 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25374 ira_class_hard_regs_num.
25375 (process_alt_operands): Increase reject for dying matched operand.
25376
25377 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25378
25379 PR target/59003
25380 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25381 smaller than size, perform several stores or loads and stores
25382 at dst + count - size to store or copy all of size bytes, rather
25383 than just last modesize bytes.
25384
25385 2014-01-20 DJ Delorie <dj@redhat.com>
25386
25387 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25388 that CLOBBERs are REGs before propogating their values.
25389
25390 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25391
25392 PR middle-end/59789
25393 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25394 (cgraph_inline_failed_type): New function.
25395 * cgraph.h (DEFCIFCODE): Add type.
25396 (cgraph_inline_failed_type_t): New enum.
25397 (cgraph_inline_failed_type): New prototype.
25398 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25399 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25400 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25401 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25402 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25403 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25404 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25405 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25406 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25407 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25408 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25409 OPTIMIZATION_MISMATCH.
25410 * tree-inline.c (expand_call_inline): Emit errors during
25411 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25412
25413 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25414
25415 PR target/59685
25416 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25417 mode attribute in insn output.
25418
25419 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25420
25421 * output.h (output_constant): Delete.
25422 * varasm.c (output_constant): Make private.
25423
25424 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25425
25426 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25427
25428 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25429
25430 PR middle-end/59860
25431 * tree.h (fold_builtin_strcat): New prototype.
25432 * builtins.c (fold_builtin_strcat): No longer static. Add len
25433 argument, if non-NULL, don't call c_strlen. Optimize
25434 directly into __builtin_memcpy instead of __builtin_strcpy.
25435 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25436 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25437
25438 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25439
25440 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25441 for SImode_address_operand operands, having only a REG argument.
25442
25443 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25444
25445 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25446 loader name using mbig-endian.
25447 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25448
25449 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25450
25451 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25452 (-mtune): Likewise.
25453 (-mcpu): Likewise.
25454
25455 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25456
25457 * config/aarch64/aarch64-protos.h
25458 (aarch64_cannot_change_mode_class_ptr): Declare.
25459 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25460 aarch64_cannot_change_mode_class_ptr): New.
25461 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25462 backend hook aarch64_cannot_change_mode_class.
25463
25464 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25465
25466 * common/config/aarch64/aarch64-common.c
25467 (aarch64_handle_option): Don't handle any option order logic here.
25468 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25469 selected_cpu, warn on architecture version mismatch.
25470 (aarch64_override_options): Fix parsing order for option strings.
25471
25472 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25473 Iain Sandoe <iain@codesourcery.com>
25474
25475 PR bootstrap/59496
25476 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25477 warning. Amend comment to reflect current functionality.
25478
25479 2014-01-20 Richard Biener <rguenther@suse.de>
25480
25481 PR middle-end/59860
25482 * builtins.c (fold_builtin_strcat): Remove case better handled
25483 by tree-ssa-strlen.c.
25484
25485 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25486
25487 * config/aarch64/aarch64.opt
25488 (mcpu, march, mtune): Make case-insensitive.
25489
25490 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25491
25492 PR target/59880
25493 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25494 if operands[1] is a REG or ZERO_EXTEND of a REG.
25495
25496 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25497
25498 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25499
25500 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25501
25502 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25503 long non-pic millicode calls.
25504
25505 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25506
25507 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25508
25509 2014-01-19 Kito Cheng <kito@0xlab.org>
25510
25511 * builtins.c (expand_movstr): Check movstr expand done or fail.
25512
25513 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25514 H.J. Lu <hongjiu.lu@intel.com>
25515
25516 PR target/59379
25517 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25518 to DImode for zero-extended addresses.
25519
25520 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25521
25522 PR rtl-optimization/57763
25523 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25524 on the new indirect jump_insn and increment LABEL_NUSES (label).
25525
25526 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25527
25528 PR bootstrap/59580
25529 PR bootstrap/59583
25530 * config.gcc (x86_archs): New variable.
25531 (x86_64_archs): Likewise.
25532 (x86_cpus): Likewise.
25533 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25534 --with-arch/--with-cpu= options.
25535 Support --with-arch=/--with-cpu={nehalem,westmere,
25536 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25537
25538 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25539
25540 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25541 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25542
25543 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25544
25545 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25546
25547 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25548
25549 PR target/58944
25550 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25551 clear cpp_get_options (parse_in)->warn_unused_macros for
25552 ix86_target_macros_internal with cpp_define.
25553
25554 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25555
25556 * jump.c (delete_related_insns): Keep (use (insn))s.
25557 * reorg.c (redundant_insn): Check for barriers too.
25558
25559 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25560
25561 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25562
25563 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25564
25565 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25566 call to $$dyncall when TARGET_LONG_CALLS is true.
25567
25568 2014-01-17 Jeff Law <law@redhat.com>
25569
25570 * ree.c (combine_set_extension): Temporarily disable test for
25571 changing number of hard registers.
25572
25573 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25574
25575 PR middle-end/58125
25576 * ipa-inline-analysis.c (inline_free_summary):
25577 Do not free summary of aliases.
25578
25579 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25580
25581 PR middle-end/59706
25582 * gimplify.c (gimplify_expr): Use create_tmp_var
25583 instead of create_tmp_var_raw. If cond doesn't have
25584 integral type, don't add the IFN_ANNOTATE builtin at all.
25585
25586 2014-01-17 Martin Jambor <mjambor@suse.cz>
25587
25588 PR ipa/59736
25589 * ipa-cp.c (prev_edge_clone): New variable.
25590 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25591 Also resize prev_edge_clone vector.
25592 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25593 (ipcp_edge_removal_hook): New function.
25594 (ipcp_driver): Register ipcp_edge_removal_hook.
25595
25596 2014-01-17 Andrew Pinski <apinski@cavium.com>
25597 Steve Ellcey <sellcey@mips.com>
25598
25599 PR target/59462
25600 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25601 of operator mode.
25602
25603 2014-01-17 Jeff Law <law@redhat.com>
25604
25605 PR middle-end/57904
25606 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25607 so that pass_ccp runs first.
25608
25609 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25610
25611 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25612 (ix86_adjust_cost): Use !TARGET_XXX.
25613 (do_reorder_for_imul): Likewise.
25614 (swap_top_of_ready_list): Likewise.
25615 (ix86_sched_reorder): Likewise.
25616
25617 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25618
25619 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25620 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25621 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25622 (intel_memset): New. Duplicate slm_memset.
25623 (intel_cost): New. Duplicate slm_cost.
25624 (m_INTEL): New macro.
25625 (processor_target_table): Add "intel".
25626 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25627 with PROCESSOR_INTEL for "intel".
25628 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25629 PROCESSOR_SILVERMONT.
25630 (ix86_issue_rate): Likewise.
25631 (ix86_adjust_cost): Likewise.
25632 (ia32_multipass_dfa_lookahead): Likewise.
25633 (swap_top_of_ready_list): Likewise.
25634 (ix86_sched_reorder): Likewise.
25635 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25636 instead of TARGET_OPT_AGU.
25637 * config/i386/i386.h (TARGET_INTEL): New.
25638 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25639 (processor_type): Add PROCESSOR_INTEL.
25640 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25641 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25642
25643 2014-01-17 Marek Polacek <polacek@redhat.com>
25644
25645 PR c/58346
25646 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25647 size is zero.
25648
25649 2014-01-17 Richard Biener <rguenther@suse.de>
25650
25651 PR tree-optimization/46590
25652 * opts.c (default_options_table): Add entries for
25653 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25654 all enabled at -O1 but not for -Og.
25655 * common.opt (fbranch-count-reg): Remove Init(1).
25656 (fmove-loop-invariants): Likewise.
25657 (ftree-pta): Likewise.
25658
25659 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25660
25661 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25662 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25663 decls to at least the GCC 4.8 used alignments.
25664
25665 PR fortran/59440
25666 * tree-nested.c (convert_nonlocal_reference_stmt,
25667 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25668 of GIMPLE_BIND stmts, adjust associated decls.
25669
25670 2014-01-17 Richard Biener <rguenther@suse.de>
25671
25672 PR tree-optimization/46590
25673 * vec.h (vec<>::bseach): New member function implementing
25674 binary search according to C89 bsearch.
25675 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25676 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25677 bitmap pointer again. Make accesses_in_loop a flat array.
25678 (mem_ref_obstack): New global.
25679 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25680 (mark_ref_stored): Likewise.
25681 (ref_indep_loop_p_2): Likewise.
25682 (set_ref_stored_in_loop): New helper function.
25683 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25684 (memref_free): Adjust.
25685 (record_mem_ref_loc): Simplify.
25686 (gather_mem_refs_stmt): Adjust.
25687 (sort_locs_in_loop_postorder_cmp): New function.
25688 (analyze_memory_references): Sort accesses_in_loop after
25689 loop postorder number.
25690 (find_ref_loc_in_loop_cmp): New function.
25691 (for_all_locs_in_loop): Find relevant cluster of locs in
25692 accesses_in_loop and iterate without recursion.
25693 (execute_sm): Avoid uninit warning.
25694 (struct ref_always_accessed): Simplify.
25695 (ref_always_accessed::operator ()): Likewise.
25696 (ref_always_accessed_p): Likewise.
25697 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25698 loop postorder numbers here.
25699 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25700 numbers.
25701
25702 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25703
25704 PR c++/57945
25705 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25706 on decls for which assemble_alias has been called.
25707
25708 2014-01-17 Nick Clifton <nickc@redhat.com>
25709
25710 * config/msp430/msp430.opt: (mcpu): New option.
25711 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25712 (msp430_option_override): Parse target_cpu. If the MCU name
25713 matches a generic string, clear target_mcu.
25714 (msp430_attr): Allow numeric interrupt values up to 63.
25715 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25716 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25717 option.
25718 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25719 Add mcpu matches.
25720 * config/msp430/msp430.md (popm): Use %J rather than %I.
25721 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25722 (addhi_cy_i): Use immediate_operand for operand 2.
25723 * doc/invoke.texi: Document -mcpu option.
25724
25725 2014-01-17 Richard Biener <rguenther@suse.de>
25726
25727 PR rtl-optimization/38518
25728 * df.h (df_analyze_loop): Declare.
25729 * df-core.c: Include cfgloop.h.
25730 (df_analyze_1): Split out main part of df_analyze.
25731 (df_analyze): Adjust.
25732 (loop_inverted_post_order_compute): New function.
25733 (loop_post_order_compute): Likewise.
25734 (df_analyze_loop): New function avoiding whole-function
25735 postorder computes.
25736 * loop-invariant.c (find_defs): Use df_analyze_loop.
25737 (find_invariants): Adjust.
25738 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25739
25740 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25741
25742 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25743 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25744
25745 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25746
25747 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25748 traversal when removing references.
25749
25750 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25751
25752 PR ipa/59775
25753 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25754
25755 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25756
25757 PR middle-end/56791
25758 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25759 pushing a reload for an autoinc when we had previously reloaded an
25760 inner part of the address.
25761
25762 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25763
25764 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25765 field.
25766 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25767 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25768 when not giving up or versioning for alias only because of
25769 loop->safelen.
25770 (vect_analyze_data_ref_dependences): Set to true.
25771 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25772 is a GIMPLE_PHI.
25773 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25774 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25775 to the condition.
25776
25777 PR middle-end/58344
25778 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25779
25780 PR target/59839
25781 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25782 operand 0 predicate for gathers, use a new pseudo as subtarget.
25783
25784 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25785
25786 PR middle-end/59609
25787 * lra-constraints.c (process_alt_operands): Add printing debug info.
25788 Check absence of input/output reloads for matched operands too.
25789
25790 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25791
25792 PR rtl-optimization/59835
25793 * ira.c (ira_init_register_move_cost): Increase cost for
25794 impossible modes.
25795
25796 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25797
25798 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25799
25800 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25801
25802 PR target/59780
25803 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25804 non-register objects. Use gen_(high/low)part more consistently.
25805 Fix assertions.
25806
25807 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25808
25809 PR target/59844
25810 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25811 endian support, remove tests for WORDS_BIG_ENDIAN.
25812 (p8_mfvsrd_3_<mode>): Likewise.
25813 (reload_gpr_from_vsx<mode>): Likewise.
25814 (reload_gpr_from_vsxsf): Likewise.
25815 (p8_mfvsrd_4_disf): Likewise.
25816
25817 2014-01-16 Richard Biener <rguenther@suse.de>
25818
25819 PR rtl-optimization/46590
25820 * lcm.c (compute_antinout_edge): Use postorder iteration.
25821 (compute_laterin): Use inverted postorder iteration.
25822
25823 2014-01-16 Nick Clifton <nickc@redhat.com>
25824
25825 PR middle-end/28865
25826 * varasm.c (output_constant): Return the number of bytes actually
25827 emitted.
25828 (output_constructor_array_range): Update the field size with the
25829 number of bytes emitted by output_constant.
25830 (output_constructor_regular_field): Likewise. Also do not
25831 complain if the total number of bytes emitted is now greater
25832 than the expected fieldpos.
25833 * output.h (output_constant): Update prototype and descriptive comment.
25834
25835 2014-01-16 Marek Polacek <polacek@redhat.com>
25836
25837 PR middle-end/59827
25838 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25839 it is error_mark_node.
25840
25841 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25842
25843 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25844 VALID_AVX256_REG_OR_OI_MODE.
25845
25846 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25847
25848 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25849 current procedure should be profiled.
25850
25851 2014-01-15 Andrew Pinski <apinski@cavium.com>
25852
25853 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25854 of moving from/to the STACK_REG register class.
25855
25856 2014-01-15 Richard Henderson <rth@redhat.com>
25857
25858 PR debug/54694
25859 * reginfo.c (global_regs_decl): Globalize.
25860 * rtl.h (global_regs_decl): Declare.
25861 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25862 reserved via global_regs.
25863
25864 2014-01-15 Teresa Johnson <tejohnson@google.com>
25865
25866 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25867
25868 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25869
25870 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25871 and vmulosh rather than call gen_vec_widen_smult_*.
25872 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25873 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25874 (vec_widen_smult_even_v16qi): Likewise.
25875 (vec_widen_umult_even_v8hi): Likewise.
25876 (vec_widen_smult_even_v8hi): Likewise.
25877 (vec_widen_umult_odd_v16qi): Likewise.
25878 (vec_widen_smult_odd_v16qi): Likewise.
25879 (vec_widen_umult_odd_v8hi): Likewise.
25880 (vec_widen_smult_odd_v8hi): Likewise.
25881 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25882 vmuloub rather than call gen_vec_widen_umult_*.
25883 (vec_widen_umult_lo_v16qi): Likewise.
25884 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25885 vmulosb rather than call gen_vec_widen_smult_*.
25886 (vec_widen_smult_lo_v16qi): Likewise.
25887 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25888 rather than call gen_vec_widen_umult_*.
25889 (vec_widen_umult_lo_v8hi): Likewise.
25890 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25891 rather than call gen_vec_widen_smult_*.
25892 (vec_widen_smult_lo_v8hi): Likewise.
25893
25894 2014-01-15 Jeff Law <law@redhat.com>
25895
25896 PR tree-optimization/59747
25897 * ree.c (find_and_remove_re): Properly handle case where a second
25898 eliminated extension requires widening a copy created for elimination
25899 of a prior extension.
25900 (combine_set_extension): Ensure that the number of hard regs needed
25901 for a destination register does not change when we widen it.
25902
25903 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25904
25905 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25906 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25907 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25908 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25909 (avr-*-rtems*): Likewise.
25910 (bfin*-rtems*): Likewise.
25911 (moxie-*-rtems*): Likewise.
25912 (h8300-*-rtems*): Likewise.
25913 (i[34567]86-*-rtems*): Likewise.
25914 (lm32-*-rtems*): Likewise.
25915 (m32r-*-rtems*): Likewise.
25916 (m68k-*-rtems*): Likewise.
25917 (microblaze*-*-rtems*): Likewise.
25918 (mips*-*-rtems*): Likewise.
25919 (powerpc-*-rtems*): Likewise.
25920 (sh-*-rtems*): Likewise.
25921 (sparc-*-rtems*): Likewise.
25922 (sparc64-*-rtems*): Likewise.
25923 (v850-*-rtems*): Likewise.
25924 (m32c-*-rtems*): Likewise.
25925
25926 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25927
25928 PR rtl-optimization/59511
25929 * ira.c (ira_init_register_move_cost): Use memory costs for some
25930 cases of register move cost calculations.
25931 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25932 instead of BB frequency.
25933 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25934 * lra-assigns.c (find_hard_regno_for): Ditto.
25935
25936 2014-01-15 Richard Biener <rguenther@suse.de>
25937
25938 PR tree-optimization/59822
25939 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25940 (vectorizable_load): Use it to hoist defs of uses of invariant
25941 loads out of the loop.
25942
25943 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25944 Kugan Vivekanandarajah <kuganv@linaro.org>
25945
25946 PR target/59695
25947 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25948 truncation.
25949
25950 2014-01-15 Richard Biener <rguenther@suse.de>
25951
25952 PR rtl-optimization/59802
25953 * lcm.c (compute_available): Use inverted postorder to seed
25954 the initial worklist.
25955
25956 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25957
25958 PR target/59803
25959 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25960 ADDR_REGS for invalid symrefs in non-PIC code.
25961
25962 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25963
25964 PR other/58712
25965 * builtins.c (determine_block_size): Initialize *probable_max_size
25966 even if len_rtx is CONST_INT.
25967
25968 2014-01-14 Andrew Pinski <apinski@cavium.com>
25969
25970 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25971 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25972 (cortexa53_tunings): Likewise.
25973 (aarch64_sched_issue_rate): New function.
25974 (TARGET_SCHED_ISSUE_RATE): Define.
25975
25976 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25977
25978 * ira-costs.c (find_costs_and_classes): Add missed
25979 ira_init_register_move_cost_if_necessary.
25980
25981 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25982
25983 PR target/59787
25984 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25985
25986 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25987
25988 PR target/59794
25989 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25990 to indicate if type is used for function return value. Warn ABI
25991 change if the vector mode isn't available for function return value.
25992 (ix86_function_arg_advance): Pass false to type_natural_mode.
25993 (ix86_function_arg): Likewise.
25994 (ix86_gimplify_va_arg): Likewise.
25995 (function_arg_32): Don't warn ABI change.
25996 (ix86_function_value): Pass true to type_natural_mode.
25997 (ix86_return_in_memory): Likewise.
25998 (ix86_struct_value_rtx): Removed.
25999 (TARGET_STRUCT_VALUE_RTX): Likewise.
26000
26001 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26002
26003 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26004 converting a conditional jump into a conditional return.
26005
26006 2014-01-14 Richard Biener <rguenther@suse.de>
26007
26008 PR tree-optimization/58921
26009 PR tree-optimization/59006
26010 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26011 hoisting invariant stmts.
26012 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26013 invariant loads on the preheader edge if possible.
26014
26015 2014-01-14 Joey Ye <joey.ye@arm.com>
26016
26017 * doc/plugin.texi (Building GCC plugins): Update to C++.
26018
26019 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26020
26021 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26022 (_mm_rcp28_round_ss): Ditto.
26023 (_mm_rsqrt28_round_sd): Ditto.
26024 (_mm_rsqrt28_round_ss): Ditto.
26025 (_mm_rcp28_sd): Ditto.
26026 (_mm_rcp28_ss): Ditto.
26027 (_mm_rsqrt28_sd): Ditto.
26028 (_mm_rsqrt28_ss): Ditto.
26029 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26030 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26031 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26032 (IX86_BUILTIN_RCP28SD): Ditto.
26033 (IX86_BUILTIN_RCP28SS): Ditto.
26034 (IX86_BUILTIN_RSQRT28SD): Ditto.
26035 (IX86_BUILTIN_RSQRT28SS): Ditto.
26036 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26037 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26038 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26039 (ix86_expand_special_args_builtin): Expand new FTYPE.
26040 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26041 (srcp14<mode>): Make insn unary.
26042 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26043 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26044 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26045 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26046 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26047 Fix rounding: make it SAE only.
26048 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26049 Ditto.
26050 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26051 Ditto.
26052 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26053 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26054 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26055 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26056 (round_saeonly_mask_scalar_operand4): Ditto.
26057 (round_saeonly_mask_scalar_op3): Ditto.
26058 (round_saeonly_mask_scalar_op4): Ditto.
26059
26060 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26061
26062 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26063 Implement -maltivec=be for vec_insert and vec_extract.
26064
26065 2014-01-10 DJ Delorie <dj@redhat.com>
26066
26067 * config/msp430/msp430.md (call_internal): Don't allow memory
26068 references with SP as the base register.
26069 (call_value_internal): Likewise.
26070 * config/msp430/constraints.md (Yc): New. For memory references
26071 that don't use SP as a base register.
26072
26073 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26074 "an integer without a # prefix"
26075 * config/msp430/msp430.md (epilogue_helper): Use it.
26076
26077 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26078
26079 PR target/59617
26080 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26081 AVX512F gather builtins.
26082 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26083 on gather decls with INTEGER_TYPE masktype.
26084 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26085 directly into the builtin rather than hoisting it before loop.
26086
26087 PR tree-optimization/59387
26088 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26089 (scev_const_prop): If folded_casts and type has undefined overflow,
26090 use force_gimple_operand instead of force_gimple_operand_gsi and
26091 for each added stmt if it is assign with
26092 arith_code_with_undefined_signed_overflow, call
26093 rewrite_to_defined_overflow.
26094 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26095 gimple-fold.h instead.
26096 (arith_code_with_undefined_signed_overflow,
26097 rewrite_to_defined_overflow): Moved to ...
26098 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26099 rewrite_to_defined_overflow): ... here. No longer static.
26100 Include gimplify-me.h.
26101 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26102 rewrite_to_defined_overflow): New prototypes.
26103
26104 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26105
26106 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26107
26108 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26109
26110 * builtins.c (get_object_alignment_2): Minor tweak.
26111 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26112
26113 2014-01-13 Christian Bruel <christian.bruel@st.com>
26114
26115 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26116 optimized non constant lengths.
26117
26118 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26119
26120 PR libgomp/59194
26121 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26122 load as __atomic_load_N if possible.
26123
26124 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26125
26126 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26127 target parameter.
26128 (rs6000_expand_builtin): Adjust call.
26129
26130 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26131
26132 PR target/58115
26133 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26134 * config/rs6000/rs6000.c: Include target-globals.h.
26135 (rs6000_set_current_function): Instead of doing target_reinit
26136 unconditionally, use save_target_globals_default_opts and
26137 restore_target_globals.
26138
26139 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26140 FPSCR.
26141 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26142 (rs6000_expand_builtin): Handle mffs and mtfsf.
26143 (rs6000_init_builtins): Define mffs and mtfsf.
26144 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26145 (rs6000_mffs): New pattern.
26146 (rs6000_mtfsf): New pattern.
26147
26148 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26149
26150 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26151 Start narrowing with START. Apply candidate-use pair
26152 and check overall cost in narrowing.
26153 (iv_ca_prune): Pass new argument.
26154
26155 2014-01-10 Jeff Law <law@redhat.com>
26156
26157 PR middle-end/59743
26158 * ree.c (combine_reaching_defs): Ensure the defining statement
26159 occurs before the extension when optimizing extensions with
26160 different source and destination hard registers.
26161
26162 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26163
26164 PR ipa/58585
26165 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26166 vtables into the type inheritance graph.
26167
26168 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26169
26170 PR rtl-optimization/59754
26171 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26172 modes in the REGNO != REGNO case.
26173
26174 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26175
26176 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26177
26178 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26179
26180 PR tree-optimization/59745
26181 * tree-predcom.c (tree_predictive_commoning_loop): Call
26182 free_affine_expand_cache if giving up because components is NULL.
26183
26184 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26185 GC in payload of target_globals struct instead of allocating them on
26186 the heap and the larger structs separately using GC.
26187 * target-globals.h (struct target_globals): Make regs, hard_regs,
26188 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26189 of GTY((skip)) and change type to void *.
26190 (reset_target_globals): Cast loads from those fields to corresponding
26191 types.
26192
26193 2014-01-10 Steve Ellcey <sellcey@mips.com>
26194
26195 PR plugins/59335
26196 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26197 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26198 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26199
26200 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26201
26202 PR target/59744
26203 * aarch64-modes.def (CC_Zmode): New flags mode.
26204 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26205 represents an equality.
26206 (aarch64_get_condition_code): Handle CC_Zmode.
26207 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26208
26209 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26210
26211 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26212 extraction in good case.
26213
26214 2014-01-10 Richard Biener <rguenther@suse.de>
26215
26216 PR tree-optimization/59374
26217 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26218 checking after SLP discovery. Mark stmts not participating
26219 in any SLP instance properly.
26220
26221 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26222
26223 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26224 when handling a SET rtx.
26225
26226 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26227
26228 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26229 (cortex-a57): Likewise.
26230 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26231
26232 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26233
26234 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26235 non-iwmmxt builtins.
26236
26237 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26238
26239 PR ipa/58252
26240 PR ipa/59226
26241 * ipa-devirt.c record_target_from_binfo): Take as argument
26242 stack of binfos and lookup matching one for virtual inheritance.
26243 (possible_polymorphic_call_targets_1): Update.
26244
26245 2014-01-10 Huacai Chen <chenhc@lemote.com>
26246
26247 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26248 kernel strings for Loongson-2E/2F/3A.
26249
26250 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26251
26252 PR middle-end/59670
26253 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26254 is_gimple_call before calling gimple_call_internal_p.
26255
26256 2014-01-09 Steve Ellcey <sellcey@mips.com>
26257
26258 * Makefile.in (TREE_FLOW_H): Remove.
26259 (TREE_SSA_H): Add file names from tree-flow.h.
26260 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26261 * tree.h: Remove tree-flow.h reference.
26262 * hash-table.h: Remove tree-flow.h reference.
26263 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26264 reference with tree-ssa-loop.h.
26265
26266 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26267
26268 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26269 default element-order behavior for -maltivec.
26270 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26271 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26272 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26273 when targeting big endian, at least for now.
26274 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26275
26276 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26277
26278 PR middle-end/47735
26279 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26280 var satisfies use_register_for_decl, just take into account type
26281 alignment, rather than decl alignment.
26282
26283 PR tree-optimization/59622
26284 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26285 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26286 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26287 Don't devirtualize for inplace at all. For targets.length () == 1,
26288 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26289
26290 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26291
26292 * config/i386/i386.md (cpu): Remove the unused btver1.
26293
26294 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26297
26298 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26299
26300 PR target/58115
26301 * tree-core.h (struct target_globals): New forward declaration.
26302 (struct tree_target_option): Add globals field.
26303 * tree.h (TREE_TARGET_GLOBALS): Define.
26304 (prepare_target_option_nodes_for_pch): New prototype.
26305 * target-globals.h (struct target_globals): Define even if
26306 !SWITCHABLE_TARGET.
26307 * tree.c (prepare_target_option_node_for_pch,
26308 prepare_target_option_nodes_for_pch): New functions.
26309 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26310 * config/i386/i386.c: Include target-globals.h.
26311 (ix86_set_current_function): Instead of doing target_reinit
26312 unconditionally, use save_target_globals_default_opts and
26313 restore_target_globals.
26314
26315 2014-01-09 Richard Biener <rguenther@suse.de>
26316
26317 PR tree-optimization/59715
26318 * tree-cfg.h (split_critical_edges): Declare.
26319 * tree-cfg.c (split_critical_edges): Export.
26320 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26321
26322 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26323
26324 * cfgexpand.c (expand_stack_vars): Optionally disable
26325 asan stack protection.
26326 (expand_used_vars): Likewise.
26327 (partition_stack_vars): Likewise.
26328 * asan.c (asan_emit_stack_protection): Optionally disable
26329 after return stack usage.
26330 (instrument_derefs): Optionally disable memory access instrumentation.
26331 (instrument_builtin_call): Likewise.
26332 (instrument_strlen_call): Likewise.
26333 (asan_protect_global): Optionally disable global variables protection.
26334 * doc/invoke.texi: Added doc for new options.
26335 * params.def: Added new options.
26336 * params.h: Likewise.
26337
26338 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26339
26340 PR rtl-optimization/59724
26341 * ifcvt.c (cond_exec_process_if_block): Don't call
26342 flow_find_head_matching_sequence with 0 longest_match.
26343 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26344 non-active insns if !stop_after.
26345 (try_head_merge_bb): Revert 2014-01-07 changes.
26346
26347 2014-01-08 Jeff Law <law@redhat.com>
26348
26349 * ree.c (get_sub_rtx): New function, extracted from...
26350 (merge_def_and_ext): Here.
26351 (combine_reaching_defs): Use get_sub_rtx.
26352
26353 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26354
26355 * cgraph.h (varpool_variable_node): Do not choke on null node.
26356
26357 2014-01-08 Catherine Moore <clm@codesourcery.com>
26358
26359 * config/mips/mips.md (simple_return): Attempt to use JRC
26360 for microMIPS.
26361 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26362
26363 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26364
26365 PR rtl-optimization/59137
26366 * reorg.c (steal_delay_list_from_target): Call update_block for
26367 elided insns.
26368 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26369
26370 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26371
26372 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26373 two duplicate entries.
26374
26375 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26376
26377 Revert:
26378 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26379
26380 * config/mips/mips.c (mips_truncated_op_cost): New function.
26381 (mips_rtx_costs): Adjust test for BADDU.
26382 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26383
26384 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26385
26386 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26387 (*baddu_si): ...this new pattern.
26388
26389 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26390
26391 PR ipa/59722
26392 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26393
26394 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26395
26396 PR middle-end/57748
26397 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26398 inner_reference_p.
26399 (expand_expr, expand_normal): Adjust.
26400 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26401 inner_reference_p. Use inner_reference_p to expand inner references.
26402 (store_expr): Adjust.
26403 * cfgexpand.c (expand_call_stmt): Adjust.
26404
26405 2014-01-08 Rong Xu <xur@google.com>
26406
26407 * gcov-io.c (gcov_var): Move from gcov-io.h.
26408 (gcov_position): Ditto.
26409 (gcov_is_error): Ditto.
26410 (gcov_rewrite): Ditto.
26411 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26412 only part to libgcc/libgcov.h.
26413
26414 2014-01-08 Marek Polacek <polacek@redhat.com>
26415
26416 PR middle-end/59669
26417 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26418
26419 2014-01-08 Marek Polacek <polacek@redhat.com>
26420
26421 PR sanitizer/59667
26422 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26423
26424 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26425
26426 PR rtl-optimization/59649
26427 * stor-layout.c (get_mode_bounds): For BImode return
26428 0 and STORE_FLAG_VALUE.
26429
26430 2014-01-08 Richard Biener <rguenther@suse.de>
26431
26432 PR middle-end/59630
26433 * gimple.h (is_gimple_builtin_call): Remove.
26434 (gimple_builtin_call_types_compatible_p): New.
26435 (gimple_call_builtin_p): New overload.
26436 * gimple.c (is_gimple_builtin_call): Remove.
26437 (validate_call): Rename to ...
26438 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26439 check return types.
26440 (validate_type): New static function.
26441 (gimple_call_builtin_p): New overload and adjust.
26442 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26443 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26444 (gimple_fold_stmt_to_constant_1): Likewise.
26445 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26446
26447 2014-01-08 Richard Biener <rguenther@suse.de>
26448
26449 PR middle-end/59471
26450 * gimplify.c (gimplify_expr): Gimplify register-register type
26451 VIEW_CONVERT_EXPRs to separate stmts.
26452
26453 2014-01-07 Jeff Law <law@redhat.com>
26454
26455 PR middle-end/53623
26456 * ree.c (combine_set_extension): Handle case where source
26457 and destination registers in an extension insn are different.
26458 (combine_reaching_defs): Allow source and destination registers
26459 in extension to be different under limited circumstances.
26460 (add_removable_extension): Remove restriction that the
26461 source and destination registers in the extension are the same.
26462 (find_and_remove_re): Emit a copy from the extension's
26463 destination to its source after the defining insn if
26464 the source and destination registers are different.
26465
26466 PR middle-end/59285
26467 * ifcvt.c (merge_if_block): If we are merging a block with more than
26468 one successor with a block with no successors, remove any BARRIER
26469 after the second block.
26470
26471 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26472
26473 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26474
26475 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26476
26477 PR target/59652
26478 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26479 for 14-bit register offsets when INT14_OK_STRICT is false.
26480
26481 2014-01-07 Roland Stigge <stigge@antcom.de>
26482 Michael Meissner <meissner@linux.vnet.ibm.com>
26483
26484 PR 57386/target
26485 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26486 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26487
26488 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26489
26490 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26491 -mcpu.
26492
26493 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26494
26495 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26496 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26497 rtx is const0_rtx or not.
26498
26499 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26500
26501 PR target/58115
26502 * target-globals.c (save_target_globals): Remove this_fn_optab
26503 handling.
26504 * toplev.c: Include optabs.h.
26505 (target_reinit): Temporarily restore the global options if another
26506 set of options are in force.
26507
26508 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26509
26510 PR rtl-optimization/58668
26511 * cfgcleanup.c (flow_find_cross_jump): Don't count
26512 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26513 to determine what is counted.
26514 (flow_find_head_matching_sequence): Use active_insn_p to determine
26515 what is counted.
26516 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26517 counting change.
26518 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26519 determine what is counted.
26520
26521 PR tree-optimization/59643
26522 * tree-predcom.c (split_data_refs_to_components): If one dr is
26523 read and one write, determine_offset fails and the write isn't
26524 in the bad component, just put the read into the bad component.
26525
26526 2014-01-07 Mike Stump <mikestump@comcast.net>
26527 Jakub Jelinek <jakub@redhat.com>
26528
26529 PR pch/59436
26530 * tree-core.h (struct tree_optimization_option): Change optabs
26531 type from unsigned char * to void *.
26532 * optabs.c (init_tree_optimization_optabs): Adjust
26533 TREE_OPTIMIZATION_OPTABS initialization.
26534
26535 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26536
26537 PR target/59644
26538 * config/i386/i386.h (struct machine_function): Add
26539 no_drap_save_restore field.
26540 * config/i386/i386.c (ix86_save_reg): Use
26541 !cfun->machine->no_drap_save_restore instead of
26542 crtl->stack_realign_needed.
26543 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26544 this function clears frame_pointer_needed. Set
26545 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26546 and DRAP reg is needed.
26547
26548 2014-01-06 Marek Polacek <polacek@redhat.com>
26549
26550 PR c/57773
26551 * doc/implement-c.texi: Mention that other integer types are
26552 permitted as bit-field types in strictly conforming mode.
26553
26554 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26555
26556 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26557 is newly allocated.
26558
26559 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26560
26561 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26562
26563 2014-01-06 Martin Jambor <mjambor@suse.cz>
26564
26565 PR ipa/59008
26566 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26567 to int.
26568 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26569
26570 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26571
26572 PR debug/59350
26573 PR debug/59510
26574 * var-tracking.c (add_stores): Preserve the value of the source even if
26575 we don't record the store.
26576
26577 2014-01-06 Terry Guo <terry.guo@arm.com>
26578
26579 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26580
26581 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26582
26583 PR bootstrap/59541
26584 * config/darwin.c (darwin_function_section): Adjust return values to
26585 correspond to optimisation changes made in r206070.
26586
26587 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26588
26589 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26590 from prefetch_block tune setting.
26591 (nocona_cost): Correct size of prefetch block to 64.
26592
26593 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26594
26595 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26596 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26597 used to save the static chain register in the computation of the offset
26598 from which the FP registers need to be restored.
26599
26600 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26601
26602 PR tree-optimization/59519
26603 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26604 ICE if get_current_def (current_new_name) is already non-NULL, as long
26605 as it is a phi result of some other phi in *new_exit_bb that has
26606 the same argument.
26607
26608 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26609 or vmovdqu* for misaligned_operand.
26610 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26611 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26612 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26613 aligned_mem for AVX512F masked aligned load and store builtins and for
26614 non-temporal moves.
26615
26616 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26617
26618 PR tree-optimization/59651
26619 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26620 Address range for negative step should be added by TYPE_SIZE_UNIT.
26621
26622 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26623
26624 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26625 overlapping registers also for registers other than the stack pointer.
26626
26627 2014-01-03 Marek Polacek <polacek@redhat.com>
26628
26629 PR other/59661
26630 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26631 __builtin_FILE.
26632
26633 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26634
26635 PR target/59625
26636 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26637 asm goto as jump.
26638
26639 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26640 (push splitter): Use <P:MODE_SIZE> instead of
26641 GET_MODE_SIZE (<P:MODE>mode).
26642 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26643 (mov -1, reg peephole2): Likewise.
26644 * config/i386/sse.md (*mov<mode>_internal,
26645 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26646 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26647 *<code><mode>3, *andnot<mode>3<mask_name>,
26648 <mask_codefor><code><mode>3<mask_name>): Likewise.
26649 * config/i386/subst.md (mask_mode512bit_condition,
26650 sd_mask_mode512bit_condition): Likewise.
26651
26652 2014-01-02 Xinliang David Li <davidxl@google.com>
26653
26654 PR tree-optimization/59303
26655 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26656 (dump_predicates): Better output format.
26657 (pred_equal_p): New function.
26658 (is_neq_relop_p): Ditto.
26659 (is_neq_zero_form_p): Ditto.
26660 (pred_expr_equal_p): Ditto.
26661 (pred_neg_p): Ditto.
26662 (simplify_pred): Ditto.
26663 (simplify_preds_2): Ditto.
26664 (simplify_preds_3): Ditto.
26665 (simplify_preds_4): Ditto.
26666 (simplify_preds): Ditto.
26667 (push_pred): Ditto.
26668 (push_to_worklist): Ditto.
26669 (get_pred_info_from_cmp): Ditto.
26670 (is_degenerated_phi): Ditto.
26671 (normalize_one_pred_1): Ditto.
26672 (normalize_one_pred): Ditto.
26673 (normalize_one_pred_chain): Ditto.
26674 (normalize_preds): Ditto.
26675 (normalize_cond_1): Remove function.
26676 (normalize_cond): Ditto.
26677 (is_gcond_subset_of): Ditto.
26678 (is_subset_of_any): Ditto.
26679 (is_or_set_subset_of): Ditto.
26680 (is_and_set_subset_of): Ditto.
26681 (is_norm_cond_subset_of): Ditto.
26682 (pred_chain_length_cmp): Ditto.
26683 (convert_control_dep_chain_into_preds): Type change.
26684 (find_predicates): Ditto.
26685 (find_def_preds): Ditto.
26686 (destroy_predicates_vecs): Ditto.
26687 (find_matching_predicates_in_rest_chains): Ditto.
26688 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26689 (is_pred_expr_subset): Ditto.
26690 (is_pred_chain_subset_of): Ditto.
26691 (is_included_in): Ditto.
26692 (is_superset_of): Ditto.
26693
26694 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26695
26696 Update copyright years.
26697
26698 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26699
26700 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26701 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26702 config/arc/arc.md, config/arc/arc.opt,
26703 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26704 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26705 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26706 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26707 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26708 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26709 vtable-verify.c, vtable-verify.h: Use the standard form for the
26710 copyright notice.
26711
26712 2014-01-02 Tobias Burnus <burnus@net-b.de>
26713
26714 * gcc.c (process_command): Update copyright notice dates.
26715 * gcov-dump.c: Ditto.
26716 * gcov.c: Ditto.
26717 * doc/cpp.texi: Bump @copying's copyright year.
26718 * doc/cppinternals.texi: Ditto.
26719 * doc/gcc.texi: Ditto.
26720 * doc/gccint.texi: Ditto.
26721 * doc/gcov.texi: Ditto.
26722 * doc/install.texi: Ditto.
26723 * doc/invoke.texi: Ditto.
26724
26725 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26726
26727 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26728
26729 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26730
26731 * config/i386/sse.md (*mov<mode>_internal): Guard
26732 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26733
26734 PR rtl-optimization/59647
26735 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26736 new_rtx into UNSIGNED_FLOAT rtxes.
26737 \f
26738 Copyright (C) 2014 Free Software Foundation, Inc.
26739
26740 Copying and distribution of this file, with or without modification,
26741 are permitted in any medium without royalty provided the copyright
26742 notice and this notice are preserved.