]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
IPA C++ refactoring 4/N
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-25 Martin Liska <mliska@suse.cz>
2
3 * cgraph.h (symtab_node):
4 (bool needed_p (void)): created from decide_is_symbol_needed
5 (bool referred_to_p (void)): created from referred_to_p
6 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7 * cgraph.h (cgraph_node):
8 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9 (void expand (void)): created from expand_function
10 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
13 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
14 * cgraph.h (varpool_node):
15 (static void add (tree decl): created from varpool_add_new_variable
16 * cgraph.h (cgraph_edge):
17 void remove (void);
18 (void remove_caller (void)): created from cgraph_edge_remove_caller
19 (void remove_callee (void)): created from cgraph_edge_remove_callee
20 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
21 created from cgraph_set_call_stmt
22 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
23 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
24 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
25 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
26 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
27 created from cgraph_speculative_call_info
28 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
29 int freq_scale, bool update_original)): created from cgraph_clone_edge
30 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
31 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
32 (bool recursive_p (void)): created from cgraph_edge_recursive_p
33 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
34 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
35 (static void rebuild_references (void)): created from cgraph_rebuild_references
36 * cgraph.h (symbol_table):
37 (create_reference): renamed from add_reference
38 (maybe_create_reference): renamed from maybe_add_reference
39 (void register_symbol (symtab_node *node)): new function
40 (void clear_asm_symbols (void)): new function
41 (void unregister (symtab_node *node)): new function
42 (void release_symbol (cgraph_node *node, int uid)): new function
43 (cgraph_node * allocate_cgraph_symbol (void)): new function
44 (void initialize (void)): created from cgraph_init
45 (symtab_node *first_symbol (void)):new function
46 (asm_node *first_asm_symbol (void)):new function
47 (symtab_node *first_defined_symbol (void)):new function
48 (varpool_node *first_variable (void)):new function
49 (varpool_node *next_variable (varpool_node *node)):new function
50 (varpool_node *first_static_initializer (void)):new function
51 (varpool_node *next_static_initializer (varpool_node *node)):new function
52 (varpool_node *first_defined_variable (void)):new function
53 (varpool_node *next_defined_variable (varpool_node *node)):new function
54 (cgraph_node *first_defined_function (void)):new function
55 (cgraph_node *next_defined_function (cgraph_node *node)):new function
56 (cgraph_node *first_function (void)):new function
57 (cgraph_node *next_function (cgraph_node *node)):new function
58 (cgraph_node *first_function_with_gimple_body (void)):new function
59 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
60 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
61 created from symtab_remove_unreachable_nodes
62 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
63 (void process_new_functions (void)): created from cgraph_process_new_functions
64 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
65 (bool output_variables (void)): created from varpool_node::output_variables
66 (void output_asm_statements (void)): created from output_asm_statements
67 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
68 (void compile (void)): created from compile
69 (void output_weakrefs (void)): created from output_weakrefs
70 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
71 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
72 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
73 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
74 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
75 created from cgraph_next_function_with_gimple_body
76 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
77 created from cgraph_remove_edge_removal_hook
78 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
79 created from cgraph_add_node_removal_hook
80 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
81 created from cgraph_remove_node_removal_hook
82 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
83 created from varpool_add_node_removal_hook
84 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
85 created from varpool_remove_node_removal_hook
86 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
87 created from cgraph_add_function_insertion_hook
88 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
89 created from cgraph_remove_function_insertion_hook
90 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
91 created from varpool_add_variable_insertion_hook
92 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
93 created from varpool_remove_variable_insertion_hook
94 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
95 created from cgraph_add_edge_duplication_hook
96 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
97 created from cgraph_remove_edge_duplication_hook
98 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
99 created from cgraph_add_node_duplication_hook
100 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
101 created from cgraph_remove_node_duplication_hook
102 (void call_edge_removal_hooks (cgraph_edge *e)):
103 created from cgraph_call_edge_removal_hooks
104 (void call_cgraph_insertion_hooks (cgraph_node *node)):
105 created from call_function_insertion_hooks
106 (void call_cgraph_removal_hooks (cgraph_node *node)):
107 created from cgraph_call_node_removal_hooks
108 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
109 created from cgraph_node::call_duplication_hooks
110 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
111 created from cgraph_call_edge_duplication_hooks
112 (void call_varpool_removal_hooks (varpool_node *node)):
113 created from varpool_call_node_removal_hooks
114 (void call_varpool_insertion_hooks (varpool_node *node)):
115 created from varpool_call_variable_insertion_hooks
116 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
117 created from insert_to_assembler_name_hash
118 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
119 created from unlink_from_assembler_name_hash
120 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
121 created from symtab_prevail_in_asm_name_hash
122 (void symtab_initialize_asm_name_hash (void)):
123 created from symtab_initialize_asm_name_hash
124 (void change_decl_assembler_name (tree decl, tree name)):
125 created from change_decl_assembler_name
126 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
127 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
128 created from decl_assembler_name_hash
129 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
130 created from decl_assembler_name_equal
131 (static hashval_t hash_node_by_assembler_name (const void *p)):
132 created from hash_node_by_assembler_name
133 (static int eq_assembler_name (const void *p1, const void *p2)):
134 created from eq_assembler_name
135
136 2014-08-25 Marek Polacek <polacek@redhat.com>
137
138 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
139
140 2014-08-25 Petr Murzin <petr.murzin@intel.com>
141
142 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
143 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
144 SWI1248_AVX512BW mode iterator.
145
146 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
147
148 PR target/62111
149 * config/sh/predicates.md (general_extend_operand): Disable
150 TRUNCATE before reload completes.
151
152 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
153
154 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
155
156 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
157
158 PR target/61996
159 * config/sh/sh.opt (musermode): Allow negative form.
160 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
161 targets that don't support it.
162 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
163 Document -mno-usermode option.
164
165 2014-08-24 Kito Cheng <kito@0xlab.org>
166
167 * system.h (CALLER_SAVE_PROFITABLE): Poison.
168 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
169 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
170 * doc/tm.texi: Regenerate.
171
172 2014-08-24 Kito Cheng <kito@0xlab.org>
173
174 * ira.c: Fix typo in comment.
175
176 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
177
178 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
179 Deprecate c++1y. Change language to reflect greater confidence in C++14.
180
181 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
182
183 PR target/62038
184 * config/pa/pa.c (pa_output_function_epilogue): Don't set
185 last_address when the current function is a thunk.
186 (pa_asm_output_mi_thunk): When we don't have named sections or they
187 are not being used, check that thunk can reach the stub table with a
188 short branch.
189
190 2014-08-23 David Malcolm <dmalcolm@redhat.com>
191
192 * web.c (union_match_dups): Strengthen param "insn" from rtx to
193 rtx_insn *.
194 (pass_web::execute): Likewise for local "insn".
195
196 2014-08-23 David Malcolm <dmalcolm@redhat.com>
197
198 * var-tracking.c (struct micro_operation_def): Strengthen field
199 "insn" from rtx to rtx_insn *.
200 (struct emit_note_data_def): Likewise.
201 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
202 (vt_stack_adjustments): Likewise for local "insn".
203 (adjust_insn): Likewise for param "insn".
204 (val_store): Likewise.
205 (val_resolve): Likewise.
206 (struct count_use_info): Likewise for field "insn".
207 (log_op_type): Likewise for param "insn".
208 (reverse_op): Likewise.
209 (prepare_call_arguments): Likewise.
210 (add_with_sets): The initial param takes an insn, but we can't
211 yet strengthen it from rtx to rtx_insn * since it's used as a
212 cselib_record_sets_hook callback. For now rename initial param
213 from "insn" to "uncast_insn", and introduce a local "insn" of
214 the stronger rtx_insn * type, with a checked cast.
215 (compute_bb_dataflow): Strengthen local "insn" from rtx to
216 rtx_insn *.
217 (emit_note_insn_var_location): Likewise.
218 (emit_notes_for_changes): Likewise.
219 (emit_notes_for_differences): Likewise.
220 (next_non_note_insn_var_location): Likewise for return type and
221 for param "insn".
222 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
223 (vt_initialize): Likewise for local "insn".
224 (delete_debug_insns): Likewise for locals "insn" and "next".
225
226 2014-08-23 David Malcolm <dmalcolm@redhat.com>
227
228 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
229 rtx_insn *.
230 (mark_constant_pool): Likewise for local "insn".
231
232 2014-08-23 David Malcolm <dmalcolm@redhat.com>
233
234 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
235 rtx to rtx_insn *.
236 (dead_debug_promote_uses): Likewise.
237 (dead_debug_insert_temp): Likewise.
238
239 2014-08-23 David Malcolm <dmalcolm@redhat.com>
240
241 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
242 from const_rtx to const rtx_insn *.
243 (store_killed_after): Likewise. Strengthen locals "last", "act"
244 from rtx to rtx_insn *.
245 (store_killed_before): Strengthen param "insn" from const_rtx to
246 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
247 (find_moveable_store): Strengthen param "insn" from rtx to
248 rtx_insn *.
249 (compute_store_table): Likewise for local "insn".
250 (insert_insn_start_basic_block): Likewise for param "insn" and
251 locals "prev", "before", "insn".
252 (insert_store): For now, add a checked cast to rtx_insn * on the
253 result of gen_move_insn.
254 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
255 to rtx_insn *.
256 (replace_store_insn): Likewise. For now, add a checked cast to
257 rtx_insn * on the result of gen_move_insn.
258
259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
260
261 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
262 rtx_insn *.
263 (expand_sjlj_dispatch_table): Likewise.
264
265 2014-08-22 David Malcolm <dmalcolm@redhat.com>
266
267 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
268 "insn" from rtx to rtx_insn *.
269
270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
271
272 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
273 "insn" from rtx to rtx_insn *.
274 (dup_block_and_redirect): Likewise for param 3 "before".
275
276 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
277 from rtx to rtx_insn *.
278 (move_insn_for_shrink_wrap): Likewise.
279 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
280 (dup_block_and_redirect): Likewise for param "before" and local
281 "insn".
282 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
283 "end".
284 (convert_to_simple_return): Likewise for local "start".
285
286 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
287 Strengthen local "insn" from rtx to rtx_insn *, for use when
288 invoking requires_stack_frame_p.
289
290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
291
292 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
293 rtx_insn *.
294 (speculate_expr): Likewise for locals "orig_insn_rtx",
295 "spec_insn_rtx".
296 (eq_transformed_insns): Likewise for locals "i1", "i2".
297 (check_for_new_jump): Likewise for return type and local "end".
298 (find_new_jump): Likewise for return type and local "jump".
299 (sel_split_edge): Likewise for local "jump".
300 (sel_create_recovery_block): Likewise.
301 (sel_redirect_edge_and_branch_force): Likewise.
302 (sel_redirect_edge_and_branch): Likewise.
303
304 2014-08-22 David Malcolm <dmalcolm@redhat.com>
305
306 * sel-sched.c (substitute_reg_in_expr): Strengthen local
307 "new_insn" from rtx to rtx_insn *.
308 (create_insn_rtx_with_rhs): Likewise for return type and for local
309 "insn_rtx".
310 (create_insn_rtx_with_lhs): Likewise.
311 (create_speculation_check): Likewise for local "insn_rtx".
312 (implicit_clobber_conflict_p): Likewise for local "insn".
313 (get_expr_cost): Likewise.
314 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
315 (move_cond_jump): Likewise for locals "next", "prev", "link",
316 "head", "from", "to".
317
318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
319
320 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
321 "next" from rtx to rtx_insn *.
322 (find_conditional_protection): Likewise for local "next".
323 (is_conditionally_protected): Likewise for local "insn1".
324 (is_pfree): Likewise for locals "insn1", "insn2".
325
326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
327
328 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
329 from rtx to rtx_insn *.
330
331 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
332 locals "insn1", "insn2" from rtx to rtx_insn *.
333 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
334 locals "insn", "prev", "last_jump", "next_tail".
335 (schedule_ebb): Likewise for params "head", "tail".
336 (schedule_ebbs): Likewise for locals "tail", "head".
337
338 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
339 to rtx_insn on "last_insn" in one of the invocations of
340 schedule_ebb.
341
342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
343
344 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
345 "elem", "insn" from rtx to rtx_insn *.
346 (change_spec_dep_to_hard): Likewise.
347 (get_back_and_forw_lists): Likewise for local "con".
348 (sd_add_dep): Likewise for locals "elem", "insn".
349 (sd_resolve_dep): Likewise for locals "pro", "con".
350 (sd_unresolve_dep): Likewise.
351 (sd_delete_dep): Likewise.
352 (chain_to_prev_insn): Likewise for local "pro".
353 (find_inc): Likewise for locals "pro", "con".
354
355 2014-08-22 David Malcolm <dmalcolm@redhat.com>
356
357 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
358 to rtx_insn *.
359 (reg_set_between_p): Strengthen local "insn" from const_rtx to
360 const rtx_insn *.
361 (modified_between_p): Strengthen local "insn" from rtx to
362 rtx_insn *.
363 (remove_reg_equal_equiv_notes_for_regno): Likewise.
364 (keep_with_call_p): Strengthen local "i2" from const_rtx to
365 const rtx_insn *.
366
367 2014-08-22 David Malcolm <dmalcolm@redhat.com>
368
369 * resource.c (next_insn_no_annul): Strengthen local "next" from
370 rtx to rtx_insn *.
371 (mark_referenced_resources): Likewise for local "insn".
372
373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
374
375 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
376 to rtx_insn *.
377 (find_reloads): Likewise for param 1.
378 (subst_reloads): Likewise for sole param.
379 (find_equiv_reg): Likwise for param 2.
380 (regno_clobbered_p): Likwise for param 2.
381 (reload): Likewise for param 1.
382
383 * caller-save.c (save_call_clobbered_regs): Strengthen local
384 "insn" from rtx to rtx_insn *.
385 (insert_one_insn): Likewise for local "insn".
386
387 * reload.c (this_insn): Likewise for this global.
388 (find_reloads): Likewise for param "insn".
389 (find_reloads_toplev): Likewise.
390 (find_reloads_address): Likewise.
391 (subst_reg_equivs): Likewise.
392 (update_auto_inc_notes): Likewise.
393 (find_reloads_address_1): Likewise.
394 (find_reloads_subreg_address): Likewise.
395 (subst_reloads): Likewise.
396 (find_equiv_reg): Likewise, also for local "p".
397 (regno_clobbered_p): Likewise for param "insn".
398
399 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
400 array.
401 (spill_reg_store): Likewise for the elements of this array.
402 (remove_init_insns): Likewise for local "equiv_insn".
403 (will_delete_init_insn_p): Likewise for param "insn".
404 (reload): Likewise for param ""first" and local "insn".
405 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
406 rtx_insn *.
407 (calculate_elim_costs_all_insns): Likewise.
408 (delete_caller_save_insns): Likewise.
409 (spill_failure): Likewise for param "insn".
410 (delete_dead_insn): Likewise.
411 (set_label_offsets): Likewise.
412 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
413 "prev_insn".
414 (elimination_costs_in_insn): Likewise for param "insn".
415 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
416 when referring to an insn.
417 (set_initial_label_offsets): Likewise.
418 (set_offsets_for_label): Strengthen param "insn" from rtx to
419 rtx_insn *.
420 (init_eliminable_invariants): Likewise for param "first" and local
421 "insn".
422 (fixup_eh_region_note): Likewise for param "insn".
423 (reload_as_needed): Likewise for locals "prev", "insn",
424 "old_next", "old_prev", "next".
425 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
426 "last".
427 (reload_inheritance_insn): Strengthen elements of this array from
428 rtx to rtx_insn *.
429 (failed_reload): Likewise for param "insn".
430 (choose_reload_regs): Likewise for local "insn". Replace use of
431 NULL_RTX with NULL when referring to an insn.
432 (input_reload_insns): Strengthen elements of this array from rtx
433 to rtx_insn *.
434 (other_input_address_reload_insns): Likewise for this global.
435 (other_input_reload_insns): Likewise for this global.
436 (input_address_reload_insns): Likwise for the elements of this
437 array.
438 (inpaddr_address_reload_insns): Likwise for the elements of this
439 array.
440 (output_reload_insns): Likewise for the elements of this array.
441 (output_address_reload_insns): Likewise for the elements of this
442 array.
443 (outaddr_address_reload_insns): Likewise for the elements of this
444 array.
445 (operand_reload_insns): Likewise for this global.
446 (other_operand_reload_insns): Likewise for this global.
447 (other_output_reload_insns): Likewise for the elements of this
448 array.
449 (new_spill_reg_store): Likewise for the elements of this
450 array.
451 (emit_input_reload_insns): Likewise for locals "insn", "temp".
452 Strengthen local "where" from rtx * to rtx_insn **.
453 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
454 from rtx to rtx_insn *.
455 (do_input_reload): Likewise for local "insn".
456 (do_output_reload): Likewise for local "insn".
457 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
458 (emit_insn_if_valid_for_reload): Likewise for return type and local
459 "last". Add checked cast to rtx_insn when returning "insn" since
460 this has been through emit_insn.
461 (gen_reload): Strengthen return type and locals "last", "insn", "set"
462 from rtx to rtx_insn *. Add checked cast to rtx_insn when
463 returning "insn" since it's been through
464 emit_insn_if_valid_for_reload at this point.
465 (delete_output_reload): Strengthen param "insn" and locals
466 "output_reload_insn", "i2" from rtx to rtx_insn *.
467 (delete_address_reloads): Likewise for params "dead_insn",
468 "current_insn" and locals "prev", "next".
469 (delete_address_reloads_1): Likewise for params "dead_insn",
470 "current_insn" and locals "prev", "i2".
471 (inc_for_reload): Likewise for locals "last", "add_insn".
472 (add_auto_inc_notes): Strengthen param "insn" from rtx to
473 rtx_insn *.
474
475 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
476 param of this duplicate of the prototype from reload.h
477
478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
479
480 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
481 rtx to rtx_insn *.
482 (regstat_bb_compute_calls_crossed): Likewise.
483
484 2014-08-22 David Malcolm <dmalcolm@redhat.com>
485
486 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
487 to rtx_insn *.
488 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
489 with an insn.
490 (regrename_analyze): Strengthen local "insn" from rtx to
491 rtx_insn *.
492 (scan_rtx_reg): Likewise for param "insn".
493 (scan_rtx_address): Likewise.
494 (scan_rtx): Likewise.
495 (restore_operands): Likewise.
496 (record_out_operands): Likewise.
497 (build_def_use): Likewise for local "insn". Replace use of
498 NULL_RTX with NULL when dealing with an insn.
499
500 2014-08-22 David Malcolm <dmalcolm@redhat.com>
501
502 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
503 * reginfo.c (reg_scan): Likewise, also for local "insn".
504 (reg_scan_mark_refs): Likewise for param "insn".
505 (init_subregs_of_mode): Likewise for local "insn".
506
507 2014-08-22 David Malcolm <dmalcolm@redhat.com>
508
509 * regcprop.c (struct queued_debug_insn_change): Strengthen field
510 "insn" from rtx to rtx_insn *.
511 (replace_oldest_value_reg): Likewise for param "insn".
512 (replace_oldest_value_addr): Likewise.
513 (replace_oldest_value_mem): Likewise.
514 (apply_debug_insn_changes): Likewise for local "last_insn".
515 (copyprop_hardreg_forward_1): Likewise for local "insn".
516
517 2014-08-22 David Malcolm <dmalcolm@redhat.com>
518
519 * reg-stack.c (next_flags_user): Strengthen return type and param
520 "insn" from rtx to rtx_insn *.
521 (straighten_stack): Likewise for param "insn".
522 (check_asm_stack_operands): Likewise.
523 (remove_regno_note): Likewise.
524 (emit_pop_insn): Likewise for return type, param "insn", local
525 "pop_insn".
526 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
527 "limit" from rtx to rtx_insn *.
528 (swap_to_top): Likewise for param "insn".
529 (move_for_stack_reg): Likewise.
530 (move_nan_for_stack_reg): Likewise.
531 (swap_rtx_condition): Likewise.
532 (compare_for_stack_reg): Likewise.
533 (subst_all_stack_regs_in_debug_insn): Likewise.
534 (subst_stack_regs_pat): Likewise, and local "insn2".
535 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
536 rtx_insn *.
537 (subst_stack_regs): Likewise.
538 (change_stack): Likewise.
539 (convert_regs_1): Likewise for locals "insn", "next".
540
541 2014-08-22 David Malcolm <dmalcolm@redhat.com>
542
543 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
544 rtx_insn *.
545 (combine_set_extension): Likewise for param "curr_insn".
546 (transform_ifelse): Likewise for param "def_insn".
547 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
548 from vec<rtx> * to vec<rtx_insn *> *.
549 (is_cond_copy_insn): Likewise for param "insn".
550 (struct ext_state): Strengthen the four vec fields from vec<rtx>
551 to vec<rtx_insn *>.
552 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
553 local "def_insn" from rtx to rtx_insn *.
554 (get_sub_rtx): Likewise for param "def_insn".
555 (merge_def_and_ext): Likewise.
556 (combine_reaching_defs): Likewise.
557 (add_removable_extension): Likewise for param "insn".
558 (find_removable_extensions): Likewise for local "insn".
559 (find_and_remove_re): Likewise for locals "curr_insn" and
560 "def_insn". Strengthen locals "reinsn_del_list" and
561 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
562
563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
564
565 * recog.c (split_insn): Strengthen param "insn" and locals
566 "first", "last" from rtx to rtx_insn *.
567 (split_all_insns): Likewise for locals "insn", "next".
568 (split_all_insns_noflow): Likewise.
569
570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
571
572 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
573 const rtx_insn *.
574 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
575 (debug_rtx_find): Likewise for param 1 "x".
576
577 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
578 const_rtx to const rtx_insn *. Likewise for local "insn".
579 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
580 (debug_rtx_find): Likewise for param 1 "x".
581 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
582 from const_rtx to const rtx_insn * within the appropriate cases of
583 the switch statement.
584
585 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
586 Strengthen local "insns" from rtx to rtx_insn * since this is
587 passed to a call to debug_rtx_list.
588
589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
590
591 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
592 to rtx_insn *.
593
594 * function.c (stack_protect_epilogue): Add checked cast to
595 rtx_insn for now when invoking predict_insn_def.
596
597 * predict.c (predict_insn): Strengthen param "insn" from rtx to
598 rtx_insn *.
599 (predict_insn_def): Likewise.
600 (rtl_predict_edge): Likewise for local "last_insn".
601 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
602 const rtx_insn *.
603 (combine_predictions_for_insn): Strengthen param "insn" from rtx
604 to rtx_insn *.
605 (bb_estimate_probability_locally): Likewise for local "last_insn".
606 (expensive_function_p): Likewise for local "insn".
607
608 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
609 local "jmp", since this is used when invoking predict_insn_def.
610
611 2014-08-22 Marek Polacek <polacek@redhat.com>
612
613 PR c++/62199
614 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
615
616 2014-08-22 Marek Polacek <polacek@redhat.com>
617
618 PR c/61271
619 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
620 a comparison in parens.
621 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
622 in parens.
623
624 2014-08-22 David Malcolm <dmalcolm@redhat.com>
625
626 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
627 rtx_insn *.
628
629 * cprop.c (fis_get_condition): Likewise.
630
631 * postreload.c (reload_cse_regs): Likewise for param "first".
632 (reload_cse_simplify): Likewise for param "insn".
633 (reload_cse_regs_1): Likewise for local "insn".
634 (reload_cse_simplify_set): Likewise for param "insn".
635 (reload_cse_simplify_operands): Likewise.
636 (struct reg_use): Likewise for field "insn".
637 (reload_combine_purge_insn_uses): Likewise for param "insn".
638 (fixup_debug_insns): Likewise for params "from", "to" and local
639 "insn".
640 (try_replace_in_use): Likewise for local "use_insn".
641 (reload_combine_recognize_const_pattern): Likewise for param
642 "insn" and locals "add_moved_after_insn", "use_insn".
643 (reload_combine_recognize_pattern): Likewise for param "insn" and
644 local "prev".
645 (reload_combine): Likewise for locals "insn", "prev".
646 (reload_combine_note_use): Likewise for param "insn".
647 (move2add_use_add2_insn): Likewise.
648 (move2add_use_add3_insn): Likewise.
649 (reload_cse_move2add): Likewise, also for local "next".
650 (move2add_note_store): Likewise for local "insn".
651
652 2014-08-22 David Malcolm <dmalcolm@redhat.com>
653
654 * postreload-gcse.c (struct occr): Strengthen field "insn" from
655 rtx to rtx_insn *.
656 (struct unoccr): Likewise.
657 (struct modifies_mem): Likewise.
658 (alloc_mem): Likewise for local "insn".
659 (insert_expr_in_table): Likewise for param "insn".
660 (dump_expr_hash_table_entry): Likewise for local "insn".
661 (oprs_unchanged_p): Likewise for param "insn".
662 (load_killed_in_block_p): Likewise for local "setter".
663 (record_last_reg_set_info): Likewise for param "insn".
664 (record_last_reg_set_info_regno): Likewise.
665 (record_last_mem_set_info): Likewise.
666 (record_last_set_info): Likewise for local "last_set_insn".
667 (record_opr_changes): Likewise for param "insn".
668 (hash_scan_set): Likewise.
669 (compute_hash_table): Likewise for local "insn".
670 (get_avail_load_store_reg): Likewise for param "insn".
671 (eliminate_partially_redundant_load): Likewise, also for locals
672 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
673 RTX for insns.
674 (eliminate_partially_redundant_loads): Likewise for local "insn".
675
676 2014-08-22 David Malcolm <dmalcolm@redhat.com>
677
678 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
679 rtx to rtx_insn *.
680 (expand_binop): Likewise for locals "entry_last", "last", "insns"
681 (expand_twoval_unop): Likewise for locals entry_last", "last".
682 (expand_twoval_binop): Likewise.
683 (expand_twoval_binop_libfunc): Likewise for local "insns".
684 (widen_leading): Likewise for local "last".
685 (expand_doubleword_clz): Likewise for local "seq". Strengthen
686 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
687 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
688 (expand_parity): Likewise for locals "last" and "seq".
689 (expand_ffs): Likewise for local "seq". Strengthen local
690 "nonzero_label" from rtx to rtx_code_label *.
691 (expand_absneg_bit): Strengthen local "insns" from rtx to
692 rtx_insn *.
693 (expand_unop_direct): Likewise for local "last".
694 (expand_unop): Likewise for locals "last", "insns".
695 (expand_abs_nojump): Likewise for local "last".
696 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
697 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
698 rtx_insn *.
699 (expand_copysign_absneg): Strengthen local "label" from rtx to
700 rtx_code_label *.
701 (expand_copysign_bit): Strengthen local "insns" from rtx to
702 rtx_insn *.
703 (struct no_conflict_data): Likewise for fields "first", "insn".
704 (emit_libcall_block_1): Likewise for param "insns" and locals
705 "next", "last", "insn".
706 (emit_libcall_block): For now, add a checked cast to rtx_insn *
707 on "insns" when invoking emit_libcall_block_1. Ultimately we
708 want to strengthen insns itself.
709 (prepare_cmp_insn): Strengthen local "last" from rtx to
710 rtx_insn *.
711 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
712 (prepare_float_lib_cmp): Likewise for local "insns".
713 (emit_conditional_move): Likewise for local "last".
714 (emit_conditional_add): Likewise.
715 (have_sub2_insn): Likewise for local "seq".
716 (expand_float): Likewise for local "insns". Strengthen locals
717 "label", "neglabel" from rtx to rtx_code_label *.
718 (expand_fix): Likewise for locals "last", "insn", "insns" (to
719 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
720 (expand_fixed_convert): Likewise for local "insns" (to
721 rtx_insn *).
722 (expand_sfix_optab): Likewise for local "last".
723 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
724 to rtx_code_label *.
725 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
726 from rtx to rtx_insn *.
727 (expand_atomic_fetch_op): Likewise for local "insn".
728 (maybe_legitimize_operand_same_code): Likewise for local "last".
729 (maybe_legitimize_operands): Likewise.
730
731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
732
733 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
734 "insn" from rtx to rtx_insn *.
735 (ps_rtl_insn): Likewise for return type.
736 (doloop_register_get): Likewise for params "head", "tail" and
737 locals "insn", "first_insn_not_to_check".
738 (schedule_reg_move): Likewise for local "this_insn".
739 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
740 of gen_move_insn for now.
741 (reset_sched_times): Strengthen local "insn" from rtx to
742 rtx_insn *.
743 (permute_partial_schedule): Likewise.
744 (duplicate_insns_of_cycles): Likewise for local "u_insn".
745 (dump_insn_location): Likewise for param "insn".
746 (loop_canon_p): Likewise for local "insn".
747 (sms_schedule): Likewise.
748 (print_partial_schedule): Likewise.
749 (ps_has_conflicts): Likewise.
750
751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
752
753 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
754 "tailp" from rtx * to rtx_insn **.
755
756 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
757 from rtx to rtx_insn *.
758 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
759 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
760 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
761 rtx to rtx_insn *.
762 * modulo-sched.c (const_iteration_count): Strengthen return type
763 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
764 use of NULL_RTX with NULL when working with insns.
765 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
766 to rtx_insn *.
767 (sms_schedule): Likewise.
768 * sched-rgn.c (init_ready_list): Likewise, also for locals
769 "src_head" and "src_next_tail".
770 (compute_block_dependences): Likewise.
771 (free_block_dependencies): Likewise.
772 (debug_rgn_dependencies): Likewise.
773 (free_rgn_deps): Likewise.
774 (compute_priorities): Likewise.
775 (schedule_region): Likewise.
776 * sel-sched.c (find_ebb_boundaries): Likewise.
777
778 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
779 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
780
781 2014-08-22 David Malcolm <dmalcolm@redhat.com>
782
783 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
784 from rtx to rtx_insn *.
785 (new_seginfo): Likewise for param "insn".
786 (create_pre_exit): Likewise for locals "last_insn",
787 "before_return_copy", "return_copy".
788 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
789 "mode_set".
790
791 2014-08-22 David Malcolm <dmalcolm@redhat.com>
792
793 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
794 from rtx to rtx_insn *.
795 (lra_push_insn): Likewise for 1st param.
796 (lra_push_insn_and_update_insn_regno_info): Likewise.
797 (lra_pop_insn): Likewise for return type.
798 (lra_invalidate_insn_data): Likewise for 1st param.
799 (lra_set_insn_deleted): Likewise.
800 (lra_delete_dead_insn): Likewise.
801 (lra_process_new_insns): Likewise for first 3 params.
802 (lra_set_insn_recog_data): Likewise for 1st param.
803 (lra_update_insn_recog_data): Likewise.
804 (lra_set_used_insn_alternative): Likewise.
805 (lra_invalidate_insn_regno_info): Likewise.
806 (lra_update_insn_regno_info): Likewise.
807 (lra_former_scratch_operand_p): Likewise.
808 (lra_eliminate_regs_1): Likewise.
809 (lra_get_insn_recog_data): Likewise.
810
811 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
812 rtx to rtx_insn *.
813
814 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
815 "mv1" and "mv2".
816 (substitute_within_insn): New.
817 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
818 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
819 Replace call to "substitute" with call to substitute_within_insn.
820
821 * lra-constraints.c (curr_insn): Strengthen from rtx to
822 rtx_insn *.
823 (get_equiv_with_elimination): Likewise for param "insn".
824 (match_reload): Strengthen params "before" and "after" from rtx *
825 to rtx_insn **.
826 (emit_spill_move): Likewise for return type. Add a checked cast
827 to rtx_insn * on result of gen_move_insn for now.
828 (check_and_process_move): Likewise for local "before". Replace
829 NULL_RTX with NULL when referring to insns.
830 (process_addr_reg): Strengthen params "before" and "after" from
831 rtx * to rtx_insn **.
832 (insert_move_for_subreg): Likewise.
833 (simplify_operand_subreg): Strengthen locals "before" and "after"
834 from rtx to rtx_insn *.
835 (process_address_1): Strengthen params "before" and "after" from
836 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
837 rtx to rtx_insn *.
838 (process_address): Strengthen params "before" and "after" from
839 rtx * to rtx_insn **.
840 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
841 (curr_insn_transform): Strengthen locals "before" and "after"
842 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
843 to insns.
844 (loc_equivalence_callback): Update cast of "data", changing
845 resulting type from rtx to rtx_insn *.
846 (substitute_pseudo_within_insn): New.
847 (inherit_reload_reg): Strengthen param "insn" from rtx to
848 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
849 NULL when referring to insns. Add a checked cast to rtx_insn *
850 when using usage_insn to invoke lra_update_insn_regno_info.
851 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
852 likewise for locals "restore", "save". Add checked casts to
853 rtx_insn * when using usage_insn to invoke
854 lra_update_insn_regno_info and lra_process_new_insns. Replace
855 NULL_RTX with NULL when referring to insns.
856 (split_if_necessary): Strengthen param "insn" from rtx to
857 rtx_insn *.
858 (update_ebb_live_info): Likewise for params "head", "tail" and local
859 "prev_insn".
860 (get_last_insertion_point): Likewise for return type and local "insn".
861 (get_live_on_other_edges): Likewise for local "last".
862 (inherit_in_ebb): Likewise for params "head", "tail" and locals
863 "prev_insn", "next_insn", "restore".
864 (remove_inheritance_pseudos): Likewise for local "prev_insn".
865 (undo_optional_reloads): Likewise for local "insn".
866
867 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
868 "insn".
869 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
870 insns.
871 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
872 rtx_insn *.
873 (spill_pseudos): Likewise for local "insn".
874 (init_elimination): Likewise.
875 (process_insn_for_elimination): Likewise for param "insn".
876
877 * lra-lives.c (curr_insn): Likewise.;
878
879 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
880 (remove_pseudos): Likewise for param "insn".
881 (spill_pseudos): Likewise for local "insn".
882 (lra_final_code_change): Likewise for locals "insn", "curr".
883
884 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
885 (lra_set_insn_deleted): Likewise.
886 (lra_delete_dead_insn): Likewise, and for local "prev".
887 (new_insn_reg): Likewise for param "insn".
888 (lra_set_insn_recog_data): Likewise.
889 (lra_update_insn_recog_data): Likewise.
890 (lra_set_used_insn_alternative): Likewise.
891 (get_insn_freq): Likewise.
892 (invalidate_insn_data_regno_info): Likewise.
893 (lra_invalidate_insn_regno_info): Likewise.
894 (lra_update_insn_regno_info): Likewise.
895 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
896 vec<rtx_insn *>.
897 (lra_push_insn_1): Strengthen param "insn" from rtx to
898 rtx_insn *.
899 (lra_push_insn): Likewise.
900 (lra_push_insn_and_update_insn_regno_info): Likewise.
901 (lra_pop_insn): Likewise for return type and local "insn".
902 (push_insns): Likewise for params "from", "to", and local "insn".
903 (setup_sp_offset): Likewise for params "from", "last" and locals
904 "before", "insn".
905 (lra_process_new_insns): Likewise for params "insn", "before",
906 "after" and local "last".
907 (struct sloc): Likewise for field "insn".
908 (lra_former_scratch_operand_p): Likewise for param "insn".
909 (remove_scratches): Likewise for locals "insn", "last".
910 (check_rtl): Likewise for local "insn".
911 (add_auto_inc_notes): Likewise for param "insn".
912 (update_inc_notes): Likewise for local "insn".
913 (lra): Replace NULL_RTX with NULL when referring to insn.
914
915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
916
917 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
918 to rtx_insn *.
919 (resolve_reg_notes): Likewise.
920 (resolve_simple_move): Likewise for return type, param "insn", and
921 locals "insns", "minsn".
922 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
923 (resolve_use): Likewise.
924 (resolve_debug): Likewise.
925 (find_decomposable_shift_zext): Likewise.
926 (resolve_shift_zext): Likewise for return type, param "insn", and
927 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
928 (decompose_multiword_subregs): Likewise for local "insn",
929 "orig_insn", "decomposed_shift", "end".
930
931 2014-08-22 David Malcolm <dmalcolm@redhat.com>
932
933 * basic-block.h (basic_block split_edge_and_insert): Strengthen
934 param "insns" from rtx to rtx_insn *.
935
936 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
937 rtx to rtx_insn *.
938 (struct iv_to_split): Likewise.
939 (loop_exit_at_end_p): Likewise for local "insn".
940 (split_edge_and_insert): Likewise for param "insns".
941 (compare_and_jump_seq): Likewise for return type, param "cinsn",
942 and locals "seq", "jump".
943 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
944 "branch_code"; update invocations of compare_and_jump_seq to
945 eliminate NULL_RTX in favor of NULL.
946 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
947 rtx to rtx_insn *.
948 (reset_debug_uses_in_loop): Likewise.
949 (analyze_insn_to_expand_var): Likewise for param "insn".
950 (analyze_iv_to_split_insn): Likewise.
951 (analyze_insns_in_loop): Likewise for local "insn".
952 (insert_base_initialization): Likewise for param
953 "insn" and local "seq".
954 (split_iv): Likewise for param "insn" and local "seq".
955 (expand_var_during_unrolling): Likewise for param "insn".
956 (insert_var_expansion_initialization): Likewise for local "seq".
957 (combine_var_copies_in_loop_exit): Likewise.
958 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
959 "insn".
960 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
961 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
962 "next".
963
964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
965
966 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
967 rtx_insn *.
968 (iv_analyze_result): Likewise.
969 (iv_analyze_expr): Likewise.
970 (biv_p): Likewise.
971
972 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
973 local "def_insn" from rtx to rtx_insn *.
974 (get_biv_step_1): Likewise for local "insn".
975 (iv_analyze_expr): Likewise for param "insn".
976 (iv_analyze_def): Likewise for local "insn".
977 (iv_analyze_op): Likewise for param "insn".
978 (iv_analyze): Likewise.
979 (iv_analyze_result): Likewise.
980 (biv_p): Likewise.
981 (suitable_set_for_replacement): Likewise.
982 (simplify_using_initial_values): Likewise for local "insn".
983 (iv_number_of_iterations): Likewise for param "insn".
984 (check_simple_exit): Add checked cast to rtx_insn when invoking
985 iv_number_of_iterations for now (until get_condition is
986 strengthened).
987
988 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
989 "insn" from rtx to rtx_insn *.
990 (analyze_insns_in_loop): Likewise for local "insn".
991
992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
993
994 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
995 to rtx_insn *.
996 (struct invariant): Likewise.
997 (hash_invariant_expr_1): Likewise for param "insn".
998 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
999 (find_exits): Likewise for local "insn".
1000 (create_new_invariant): Likewise for param "insn".
1001 (check_dependencies): Likewise.
1002 (find_invariant_insn): Likewise.
1003 (record_uses): Likewise.
1004 (find_invariants_insn): Likewise.
1005 (find_invariants_bb): Likewise for local "insn".
1006 (get_pressure_class_and_nregs): Likewise for param "insn".
1007 (calculate_loop_reg_pressure): Likewise for local "insn".
1008
1009 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1010
1011 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
1012 to rtx_insn *.
1013 (add_test): Likewise for locals "seq", "jump".
1014 (doloop_modify): Likewise for locals "sequence", "jump_insn".
1015
1016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1017
1018 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
1019 rtx_insn *.
1020 (rebuild_jump_labels_chain): Likewise for param "chain".
1021
1022 * cfgexpand.c (pass_expand::execute): Add checked cast to
1023 rtx_insn * when calling rebuild_jump_labels_chain in region where
1024 we know e->insns.r is non-NULL.
1025
1026 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
1027 rtx_insn *.
1028 (rebuild_jump_labels): Likewise.
1029 (rebuild_jump_labels_chain): Likewise for param "chain".
1030 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
1031 (init_label_info): Likewise for param "f".
1032 (maybe_propagate_label_ref): Likewise for params "jump_insn",
1033 "prev_nonjump_insn".
1034 (mark_all_labels): Likewise for param "f" and locals "insn",
1035 "prev_nonjump_insn".
1036
1037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1038
1039 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
1040 from rtx to rtx_insn *insn.
1041 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
1042 (ira_add_allocno_copy): Likewise.
1043 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
1044 rtx to rtx_insn *.
1045 (ira_create_copy): Likewise.
1046 (ira_add_allocno_copy): Likewise.
1047 (create_bb_allocnos): Likewise for local "insn".
1048 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
1049 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
1050 process_regs_for_copy for rtx_insn * param.
1051 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
1052 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
1053 process_regs_for_copy for rtx_insn * param.
1054 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
1055 * ira-costs.c (record_reg_classes): Likewise for param "insn".
1056 (record_operand_costs): Likewise.
1057 (scan_one_insn): Likewise for return type, and for param "insn".
1058 (process_bb_for_costs): Likewise for local "insn".
1059 (process_bb_node_for_hard_reg_moves): Likewise.
1060 * ira-emit.c (struct move): Likewise for field "insn".
1061 (create_move): Eliminate use of NULL_RTX when dealing with an
1062 rtx_insn *.
1063 (emit_move_list): Strengthen return type and locals "result",
1064 "insn" from rtx to rtx_insn *insn.
1065 (emit_moves): Likewise for locals "insns", "tmp".
1066 (ira_emit): Likewise for local "insn".
1067 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
1068 "insn".
1069 (find_call_crossed_cheap_reg): Likewise.
1070 (process_bb_node_lives): Likewise for local "insn".
1071 * ira.c (decrease_live_ranges_number): Likewise.
1072 (compute_regs_asm_clobbered): Likewise.
1073 (build_insn_chain): Likewise.
1074 (find_moveable_pseudos): Likewise, also locals "def_insn",
1075 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
1076 to rtx_insn **. Add a checked cast when assigning from
1077 "closest_use" into closest_uses array in a region where we know
1078 it's a non-NULL insn.
1079 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
1080 to rtx_insn *.
1081 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
1082 "last_interesting_insn", "uin".
1083 (move_unallocated_pseudos): Likewise for locals "def_insn",
1084 "move_insn", "newinsn".
1085
1086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1087
1088 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
1089 Strengthen locals "done_label", "do_error" from rtx to
1090 rtx_code_label *.
1091 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
1092 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
1093 rtx_code_label *.
1094 (ubsan_expand_si_overflow_neg_check): Likewise for locals
1095 "done_label", "do_error" to rtx_code_label * and local "last" to
1096 rtx_insn *.
1097 (ubsan_expand_si_overflow_mul_check): Likewise for locals
1098 "done_label", "do_error", "large_op0", "small_op0_large_op1",
1099 "one_small_one_large", "both_ops_large", "after_hipart_neg",
1100 "after_lopart_neg", "do_overflow", "hipart_different" to
1101 rtx_code_label * and local "last" to rtx_insn *.
1102
1103 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1104
1105 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
1106 "insn" and "move_insn" from rtx to rtx_insn *.
1107
1108 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1109
1110 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
1111 rtx_insn *.
1112 (cheap_bb_rtx_cost_p): Likewise.
1113 (first_active_insn): Likewise for return type and local "insn".
1114 (last_active_insn): Likewise for return type and locals "insn",
1115 "head".
1116 (struct noce_if_info): Likewise for fields "jump", "insn_a",
1117 "insn_b".
1118 (end_ifcvt_sequence): Likewise for return type and locals "insn",
1119 "seq".
1120 (noce_try_move): Likewise for local "seq".
1121 (noce_try_store_flag): Likewise.
1122 (noce_try_store_flag_constants): Likewise.
1123 (noce_try_addcc): Likewise.
1124 (noce_try_store_flag_mask): Likewise.
1125 (noce_try_cmove): Likewise.
1126 (noce_try_minmax): Likewise.
1127 (noce_try_abs): Likewise.
1128 (noce_try_sign_mask): Likewise.
1129 (noce_try_bitop): Likewise.
1130 (noce_can_store_speculate_p): Likewise for local "insn".
1131 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
1132 seq".
1133 (check_cond_move_block): Likewise for local "insn".
1134 (cond_move_convert_if_block): Likewise.
1135 (cond_move_process_if_block): Likewise for locals "seq",
1136 "loc_insn".
1137 (noce_find_if_block): Likewise for local "jump".
1138 (merge_if_block): Likewise for local "last".
1139 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
1140 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
1141 (block_has_only_trap): Likewise for return type and local "trap".
1142 (find_if_case_1): Likewise for local "jump".
1143 (dead_or_predicable): Likewise for locals "head", "end", "jump",
1144 "insn".
1145
1146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1147
1148 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
1149 "last_insn", "loop_end" from rtx to rtx_insn *.
1150
1151 * hw-doloop.c (scan_loop): Likewise for local "insn".
1152 (discover_loop): Likewise for param "tail_insn".
1153 (discover_loops): Likewise for local "tail".
1154
1155 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
1156 cast to rtx_insn * when assigning from an rtx local to a
1157 hwloop_info's "last_insn" field.
1158
1159 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1160
1161 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
1162 (add_delay_dependencies): Strengthen local "pro" from rtx to
1163 rtx_insn *.
1164 (recompute_todo_spec): Likewise.
1165 (dep_cost_1): Likewise for locals "insn", "used".
1166 (schedule_insn): Likewise for local "dbg".
1167 (schedule_insn): Likewise for locals "pro", "next".
1168 (unschedule_insns_until): Likewise for local "con".
1169 (restore_pattern): Likewise for local "next".
1170 (estimate_insn_tick): Likewise for local "pro".
1171 (resolve_dependencies): Likewise for local "next".
1172 (fix_inter_tick): Likewise.
1173 (fix_tick_ready): Likewise for local "pro".
1174 (add_to_speculative_block): Likewise for locals "check", "twin",
1175 "pro".
1176 (sched_extend_bb): Likewise for locals "end", "insn".
1177 (init_before_recovery): Likewise for local "x".
1178 (sched_create_recovery_block): Likewise for local "barrier".
1179 (create_check_block_twin): Likewise for local "pro".
1180 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
1181 "consumer".
1182 (unlink_bb_notes): Update for change to type of bb_header.
1183 Strengthen locals "prev", "label", "note", "next" from rtx to
1184 rtx_insn *.
1185 (clear_priorities): Likewise for local "pro".
1186
1187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1188
1189 * gcse.c (struct occr): Strengthen field "insn" from rtx to
1190 rtx_insn *.
1191 (test_insn): Likewise for this global.
1192 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
1193 const rtx_insn *.
1194 (oprs_anticipatable_p): Likewise.
1195 (oprs_available_p): Likewise.
1196 (insert_expr_in_table): Strengthen param "insn" from rtx to
1197 rtx_insn *.
1198 (hash_scan_set): Likewise.
1199 (hash_scan_clobber): Likewise.
1200 (hash_scan_call): Likewise.
1201 (hash_scan_insn): Likewise.
1202 (compute_hash_table_work): Likewise for local "insn".
1203 (process_insert_insn): Likewise for return type and local "pat".
1204 (insert_insn_end_basic_block): Likewise for locals "new_insn",
1205 "pat", "pat_end", "maybe_cc0_setter".
1206 (pre_edge_insert): Likewise for local "insn".
1207 (pre_insert_copy_insn): Likewise for param "insn".
1208 (pre_insert_copies): Likewise for local "insn".
1209 (struct set_data): Likewise for field "insn".
1210 (single_set_gcse): Likewise for param "insn".
1211 (gcse_emit_move_after): Likewise.
1212 (pre_delete): Likewise for local "insn".
1213 (update_bb_reg_pressure): Likewise for param "from" and local
1214 "insn".
1215 (should_hoist_expr_to_dom): Likewise for param "from".
1216 (hoist_code): Likewise for local "insn".
1217 (get_pressure_class_and_nregs): Likewise for param "insn".
1218 (calculate_bb_reg_pressure): Likewise for local "insn".
1219 (compute_ld_motion_mems): Likewise.
1220
1221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1222
1223 * genpeep.c (main): Rename param back from "uncast_ins1" to
1224 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
1225 checked cast.
1226
1227 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
1228
1229 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1230
1231 PR target/62195
1232 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
1233 documentation to state it is only for VSX operations.
1234
1235 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
1236 constraint only active if VSX.
1237
1238 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
1239 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
1240 (lfiwzx): Likewise.
1241
1242 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1243
1244 * fwprop.c (single_def_use_dom_walker::before_dom_children):
1245 Strengthen local "insn" from rtx to rtx_insn *.
1246 (use_killed_between): Likewise for param "target_insn".
1247 (all_uses_available_at): Likewise for param "target_insn" and
1248 local "next".
1249 (update_df_init): Likewise for params "def_insn", "insn".
1250 (update_df): Likewise for param "insn".
1251 (try_fwprop_subst): Likewise for param "def_insn" and local
1252 "insn".
1253 (free_load_extend): Likewise for param "insn".
1254 (forward_propagate_subreg): Likewise for param "def_insn" and
1255 local "use_insn".
1256 (forward_propagate_asm): Likewise for param "def_insn" and local
1257 "use_insn".
1258 (forward_propagate_and_simplify): Likewise for param "def_insn"
1259 and local "use_insn".
1260 (forward_propagate_into): Likewise for locals "def_insn" and
1261 "use_insn".
1262
1263 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1264
1265 * function.c (emit_initial_value_sets): Strengthen local "seq"
1266 from rtx to rtx_insn *.
1267 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
1268 local "seq".
1269 (instantiate_virtual_regs): Likewise for local "insn".
1270 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
1271 (reorder_blocks_1): Likewise for param "insns" and local "insn".
1272 (expand_function_end): Likewise for locals "insn" and "seq".
1273 (epilogue_done): Likewise for local "insn".
1274 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
1275 "last", "trial".
1276 (reposition_prologue_and_epilogue_notes): Likewise for locals
1277 "insn", "last", "note", "first".
1278 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
1279 (pass_match_asm_constraints::execute): Likewise for local "insn".
1280
1281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1282
1283 * output.h (final_scan_insn): Strengthen return type from rtx to
1284 rtx_insn *.
1285 (final_forward_branch_p): Likewise for param.
1286 (current_output_insn): Likewise for this global.
1287
1288 * final.c (rtx debug_insn): Likewise for this variable.
1289 (current_output_insn): Likewise.
1290 (get_attr_length_1): Rename param "insn" to "uncast_insn",
1291 adding "insn" back in as an rtx_insn * with a checked cast, so
1292 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
1293 first param.
1294 (compute_alignments): Strengthen local "label" from rtx to
1295 rtx_insn *.
1296 (shorten_branches): Rename param from "first" to "uncast_first",
1297 introducing a new local rtx_insn * "first" using a checked cast to
1298 effectively strengthen "first" from rtx to rtx_insn * without
1299 affecting the type signature. Strengthen locals "insn", "seq",
1300 "next", "label" from rtx to rtx_insn *.
1301 (change_scope): Strengthen param "orig_insn" and local "insn" from
1302 rtx to rtx_insn *.
1303 (final_start_function): Rename param from "first" to "uncast_first",
1304 introducing a new local rtx_insn * "first" using a checked cast to
1305 effectively strengthen "first" from rtx to rtx_insn * without
1306 affecting the type signature. Strengthen local "insn" from rtx to
1307 rtx_insn *.
1308 (dump_basic_block_info): Strengthen param "insn" from rtx to
1309 rtx_insn *.
1310 (final): Rename param from "first" to "uncast_first",
1311 introducing a new local rtx_insn * "first" using a checked cast to
1312 effectively strengthen "first" from rtx to rtx_insn * without
1313 affecting the type signature. Strengthen locals "insn", "next"
1314 from rtx to rtx_insn *.
1315 (output_alternate_entry_point): Strengthen param "insn" from rtx to
1316 rtx_insn *.
1317 (call_from_call_insn): Strengthen param "insn" from rtx to
1318 rtx_call_insn *.
1319 (final_scan_insn): Rename param from "insn" to "uncast_insn",
1320 introducing a new local rtx_insn * "insn" using a checked cast to
1321 effectively strengthen "insn" from rtx to rtx_insn * without
1322 affecting the type signature. Strengthen return type and locals
1323 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
1324 now-redundant checked cast to rtx_insn * from both invocations of
1325 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
1326 introducing a local "call_insn" for use when invoking
1327 call_from_call_insn.
1328 (notice_source_line): Strengthen param "insn" from rtx to
1329 rtx_insn *.
1330 (leaf_function_p): Likewise for local "insn".
1331 (final_forward_branch_p): Likewise.
1332 (leaf_renumber_regs): Likewise for param "first".
1333 (rest_of_clean_state): Likewise for locals "insn" and "next".
1334 (self_recursive_call_p): Likewise for param "insn".
1335 (collect_fn_hard_reg_usage): Likewise for local "insn".
1336 (get_call_fndecl): Likewise for param "insn".
1337 (get_call_cgraph_rtl_info): Likewise.
1338 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
1339 introducing a new local rtx_insn * "insn" using a checked cast to
1340 effectively strengthen "insn" from rtx to rtx_insn * without
1341 affecting the type signature.
1342
1343 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
1344 cast when assigning from param "insn" to current_output_insn.
1345 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
1346 so that we can assign it back to current_output_insn.
1347
1348 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1349
1350 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
1351 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
1352 atmxt540s and atmxt540sreva devices.
1353 * config/avr/avr-tables.opt: Regenerate.
1354 * config/avr/t-multilib: Regenerate.
1355 * doc/avr-mmcu.texi: Regenerate.
1356
1357 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1358
1359 * expr.c (convert_move): Strengthen local "insns" from rtx to
1360 rtx_insn *.
1361 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
1362 "top_label" from rtx to rtx_code_label *.
1363 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
1364 rtx_insn *.
1365 (emit_single_push_insn): Likewise for locals "prev", "last".
1366 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
1367 to rtx_code_label *.
1368 (store_constructor): Likewise for locals "loop_start", "loop_end".
1369 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
1370 rtx_insn *.
1371 (expand_expr_real_2): Likewise.
1372 (expand_expr_real_1): Strengthen local "label" from rtx to
1373 rtx_code_label *.
1374
1375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1376
1377 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
1378 from rtx to rtx_insn *.
1379 (store_bit_field_1): Likewise.
1380 (extract_bit_field_1): Likewise.
1381 (expand_mult_const): Likewise for local "insns".
1382 (expmed_mult_highpart): Strengthen local "label" from rtx to
1383 rtx_code_label *.
1384 (expand_smod_pow2): Likewise.
1385 (expand_sdiv_pow2): Likewise.
1386 (expand_divmod): Strengthen locals "last", "insn" from rtx to
1387 rtx_insn *. Strengthen locals "label", "label1", "label2",
1388 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
1389 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
1390 (emit_store_flag): Likewise.
1391 (emit_store_flag_force): Strengthen local "label" from rtx to
1392 rtx_code_label *.
1393 (do_cmp_and_jump): Likewise for param "label".
1394
1395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1396
1397 * explow.c (force_reg): Strengthen local "insn" from rtx to
1398 rtx_insn *.
1399 (adjust_stack_1): Likewise.
1400 (allocate_dynamic_stack_space): Likewise. Strengthen locals
1401 "final_label", "available_label", "space_available" from rtx to
1402 rtx_code_label *.
1403 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
1404 (anti_adjust_stack_and_probe): Likewise.
1405
1406 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1407
1408 * except.h (sjlj_emit_function_exit_after): Strengthen param
1409 "after" from rtx to rtx_insn *. This is only called with
1410 result of get_last_insn (in function.c) so type-change should be
1411 self-contained.
1412
1413 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
1414 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
1415 to rtx_insn *. These fields are only used from except.c so this
1416 type-change should be self-contained to this patch.
1417
1418 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
1419 local "last" from rtx to rtx_insn *.
1420 (dw2_build_landing_pads): Likewise for local "seq".
1421 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
1422 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
1423 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
1424 rtx to rtx_insn *.
1425 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
1426 to rtx_insn *.
1427 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
1428 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
1429 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
1430 referring to an insn. Strengthen local "dispatch_label" from
1431 rtx to rtx_code_label *.
1432 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
1433 rtx_insn *.
1434 (expand_eh_return): Strengthen local "around_label" from
1435 rtx to rtx_code_label *.
1436 (convert_to_eh_region_ranges): Strengthen locals "iter",
1437 "last_action_insn", "first_no_action_insn",
1438 "first_no_action_insn_before_switch",
1439 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
1440
1441 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1442
1443 * dwarf2out.c (last_var_location_insn): Strengthen this variable
1444 from rtx to rtx_insn *.
1445 (cached_next_real_insn): Likewise.
1446 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
1447 working with insns.
1448 (dwarf2out_var_location): Strengthen locals "next_real",
1449 "next_note", "expected_next_loc_note", "last_start", "insn" from
1450 rtx to rtx_insn *.
1451
1452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1453
1454 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
1455 from rtx to rtx_insn *.
1456 (create_pseudo_cfg): Likewise for local "insn".
1457
1458 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1459
1460 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
1461 from rtx to rtx_insn *.
1462 (df_bb_regno_last_def_find): Likewise.
1463
1464 * df-problems.c (df_rd_bb_local_compute): Likewise.
1465 (df_lr_bb_local_compute): Likewise.
1466 (df_live_bb_local_compute): Likewise.
1467 (df_chain_remove_problem): Likewise.
1468 (df_chain_create_bb): Likewise.
1469 (df_word_lr_bb_local_compute): Likewise.
1470 (df_remove_dead_eq_notes): Likewise for param "insn".
1471 (df_note_bb_compute): Likewise for local "insn".
1472 (simulate_backwards_to_point): Likewise.
1473 (df_md_bb_local_compute): Likewise.
1474
1475 * df-scan.c (df_scan_free_bb_info): Likewise.
1476 (df_scan_start_dump): Likewise.
1477 (df_scan_start_block): Likewise.
1478 (df_install_ref_incremental): Likewise for local "insn".
1479 (df_insn_rescan_all): Likewise.
1480 (df_reorganize_refs_by_reg_by_insn): Likewise.
1481 (df_reorganize_refs_by_insn_bb): Likewise.
1482 (df_recompute_luids): Likewise.
1483 (df_bb_refs_record): Likewise.
1484 (df_update_entry_exit_and_calls): Likewise.
1485 (df_bb_verify): Likewise.
1486
1487 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1488
1489 * ddg.h (struct ddg_node): Strengthen fields "insn" and
1490 "first_note" from rtx to rtx_insn *.
1491 (get_node_of_insn): Likewise for param 2 "insn".
1492 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
1493
1494 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
1495 rtx_insn *.
1496 (mem_write_insn_p): Likewise.
1497 (mem_access_insn_p): Likewise.
1498 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
1499 (def_has_ccmode_p): Likewise for param "insn".
1500 (add_cross_iteration_register_deps): Likewise for locals
1501 "def_insn" and "use_insn".
1502 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
1503 (build_intra_loop_deps): Likewise for local "src_insn".
1504 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
1505 to rtx_insn *.
1506 (get_node_of_insn): Likewise for param "insn".
1507
1508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1509
1510 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
1511 (deletable_insn_p): Strengthen param "insn" from rtx to
1512 rtx_insn *. Add checked cast to rtx_call_insn when invoking
1513 find_call_stack_args, since this is guarded by CALL_P (insn).
1514 (marked_insn_p): Strengthen param "insn" from rtx to
1515 rtx_insn *.
1516 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
1517 invoking find_call_stack_args, since this is guarded by
1518 CALL_P (insn).
1519 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
1520 rtx_insn *; we know this is an insn since this was called by
1521 mark_nonreg_stores.
1522 (mark_nonreg_stores_2): Likewise.
1523 (mark_nonreg_stores): Strengthen param "insn" from rtx to
1524 rtx_insn *.
1525 (find_call_stack_args): Strengthen param "call_insn" from rtx to
1526 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
1527 to rtx_insn *.
1528 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
1529 from rtx to rtx_insn *.
1530 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
1531 "next", "ref_insn".
1532 (delete_unmarked_insns): Likewise for locals "insn", "next".
1533 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
1534 (mark_reg_dependencies): Likewise for param "insn".
1535 (rest_of_handle_ud_dce): Likewise for local "insn".
1536 (word_dce_process_block): Likewise.
1537 (dce_process_block): Likewise.
1538
1539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1540
1541 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
1542 from rtx to rtx_insn *.
1543 (struct change_cc_mode_args): Likewise for field "insn".
1544 (this_insn): Strengthen from rtx to rtx_insn *.
1545 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
1546 with insn.
1547 (validate_canon_reg): Strengthen param "insn" from rtx to
1548 rtx_insn *.
1549 (canon_reg): Likewise.
1550 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
1551 dealing with insn.
1552 (record_jump_equiv): Strengthen param "insn" from rtx to
1553 rtx_insn *.
1554 (try_back_substitute_reg): Likewise, also for locals "prev",
1555 "bb_head".
1556 (find_sets_in_insn): Likewise for param "insn".
1557 (canonicalize_insn): Likewise.
1558 (cse_insn): Likewise. Add a checked cast.
1559 (invalidate_from_clobbers): Likewise for param "insn".
1560 (invalidate_from_sets_and_clobbers): Likewise.
1561 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
1562 dealing with insn.
1563 (cse_prescan_path): Strengthen local "insn" from rtx to
1564 rtx_insn *.
1565 (cse_extended_basic_block): Likewise for locals "insn" and
1566 "prev_insn".
1567 (cse_main): Likewise for param "f".
1568 (check_for_label_ref): Likewise for local "insn".
1569 (set_live_p): Likewise for second param ("insn").
1570 (insn_live_p): Likewise for first param ("insn") and for local
1571 "next".
1572 (cse_change_cc_mode_insn): Likewise for first param "insn".
1573 (cse_change_cc_mode_insns): Likewise for first and second params
1574 "start" and "end".
1575 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
1576 and "end".
1577 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
1578 "cc_src_insn".
1579
1580 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
1581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1582 Anna Tikhonova <anna.tikhonova@intel.com>
1583 Ilya Tocar <ilya.tocar@intel.com>
1584 Andrey Turetskiy <andrey.turetskiy@intel.com>
1585 Ilya Verbin <ilya.verbin@intel.com>
1586 Kirill Yukhin <kirill.yukhin@intel.com>
1587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1588
1589 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
1590 New.
1591 * config/i386/sse.md
1592 (define_mode_iterator VI248_AVX2): Delete.
1593 (define_mode_iterator VI2_AVX2_AVX512BW): New.
1594 (define_mode_iterator VI48_AVX2): Ditto.
1595 (define_insn <shift_insn><mode>3): Delete.
1596 (define_insn "<shift_insn><mode>3<mask_name>" with
1597 VI2_AVX2_AVX512BW): New.
1598 (define_insn "<shift_insn><mode>3<mask_name>" with
1599 VI48_AVX2): Ditto.
1600
1601 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
1602 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1603 Anna Tikhonova <anna.tikhonova@intel.com>
1604 Ilya Tocar <ilya.tocar@intel.com>
1605 Andrey Turetskiy <andrey.turetskiy@intel.com>
1606 Ilya Verbin <ilya.verbin@intel.com>
1607 Kirill Yukhin <kirill.yukhin@intel.com>
1608 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1609
1610 * config/i386/sse.md
1611 (define_mode_iterator VI4F_BRCST32x2): New.
1612 (define_mode_attr 64x2_mode): Ditto.
1613 (define_mode_attr 32x2mode): Ditto.
1614 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
1615 with VI4F_BRCST32x2): Ditto.
1616 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
1617 with V16FI mode iterator): Ditto.
1618 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
1619 with V16FI): Ditto.
1620 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
1621 with VI8F_BRCST64x2): Ditto.
1622
1623 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
1624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1625 Anna Tikhonova <anna.tikhonova@intel.com>
1626 Ilya Tocar <ilya.tocar@intel.com>
1627 Andrey Turetskiy <andrey.turetskiy@intel.com>
1628 Ilya Verbin <ilya.verbin@intel.com>
1629 Kirill Yukhin <kirill.yukhin@intel.com>
1630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1631
1632 * config/i386/sse.md
1633 (define_mode_iterator VI8_AVX512VL): New.
1634 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
1635
1636 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
1637
1638 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
1639 (define_mode_iterator V48_AVX512VL): New.
1640 (define_mode_iterator V12_AVX512VL): Ditto.
1641 (define_insn <avx512>_load<mode>_mask): Split into two similar
1642 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
1643 Refactor output template.
1644 (define_insn "<avx512>_store<mode>_mask"): Ditto.
1645
1646 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1647
1648 * cprop.c (struct occr): Strengthen field "insn" from rtx to
1649 rtx_insn *.
1650 (reg_available_p): Likewise for param "insn".
1651 (insert_set_in_table): Likewise.
1652 (hash_scan_set): Likewise.
1653 (hash_scan_insn): Likewise.
1654 (make_set_regs_unavailable): Likewise.
1655 (compute_hash_table_work): Likewise for local "insn".
1656 (reg_not_set_p): Strengthen param "insn" from const_rtx to
1657 const rtx_insn *.
1658 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
1659 (try_replace_reg): Likewise.
1660 (find_avail_set): Likewise.
1661 (cprop_jump): Likewise for params "setcc", "jump".
1662 (constprop_register): Likewise for param "insn".
1663 (cprop_insn): Likewise.
1664 (do_local_cprop): Likewise.
1665 (local_cprop_pass): Likewise for local "insn".
1666 (bypass_block): Likewise for params "setcc" and "jump".
1667 (bypass_conditional_jumps): Likewise for locals "setcc" and
1668 "insn".
1669 (one_cprop_pass): Likewise for local "insn".
1670
1671 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1672
1673 * compare-elim.c (struct comparison_use): Strengthen field "insn"
1674 from rtx to rtx_insn *.
1675 (struct comparison): Likewise, also for field "prev_clobber".
1676 (conforming_compare): Likewise for param "insn".
1677 (arithmetic_flags_clobber_p): Likewise.
1678 (find_flags_uses_in_insn): Likewise.
1679 (find_comparison_dom_walker::before_dom_children): Likewise for
1680 locals "insn", "next", "last_clobber".
1681 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
1682
1683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1684
1685 * combine-stack-adj.c (struct csa_reflist): Strengthen field
1686 "insn" from rtx to rtx_insn *.
1687 (single_set_for_csa): Likewise for param "insn".
1688 (record_one_stack_ref): Likewise.
1689 (try_apply_stack_adjustment): Likewise.
1690 (struct record_stack_refs_data): Likewise for field "insn".
1691 (maybe_move_args_size_note): Likewise for params "last" and "insn".
1692 (prev_active_insn_bb): Likewise for return type and param "insn".
1693 (next_active_insn_bb): Likewise.
1694 (force_move_args_size_note): Likewise for params "prev" and "last"
1695 and locals "test", "next_candidate", "prev_candidate".
1696 (combine_stack_adjustments_for_block): Strengthen locals
1697 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
1698 rtx_insn *.
1699
1700 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1701
1702 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
1703 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
1704 (subst_insn): Likewise for this variable.
1705 (added_links_insn): Likewise.
1706 (struct insn_link): Likewise for field "insn".
1707 (alloc_insn_link): Likewise for param "insn".
1708 (struct undobuf): Likewise for field "other_insn".
1709 (find_single_use): Likewise for param "insn" and local "next".
1710 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
1711 (delete_noop_moves): Likewise for locals "insn", "next".
1712 (create_log_links): Likewise for locals "insn", "use_insn".
1713 Strengthen local "next_use" from rtx * to rtx_insn **.
1714 (insn_a_feeds_b): Likewise for params "a", "b".
1715 (combine_instructions): Likewise for param "f" and locals "insn",
1716 "next", "prev", "first", "last_combined_insn", "link", "link1",
1717 "temp". Replace use of NULL_RTX with NULL when referring to
1718 insns.
1719 (setup_incoming_promotions): Likewise for param "first"
1720 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
1721 (can_combine_p): Likewise for params "insn", "i3", "pred",
1722 "pred2", "succ", "succ2" and for local "p".
1723 (combinable_i3pat): Likewise for param "i3".
1724 (cant_combine_insn_p): Likewise for param "insn".
1725 (likely_spilled_retval_p): Likewise.
1726 (adjust_for_new_dest): Likewise.
1727 (update_cfg_for_uncondjump): Likewise, also for local "insn".
1728 (try_combine): Likewise for return type and for params "i3", "i2",
1729 "i1", "i0", "last_combined_insn", and for locals "insn",
1730 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
1731 "i0_insn". Eliminate local "tem" in favor of new locals
1732 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
1733 checked cast for now to rtx_insn * on the return type of
1734 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
1735 insns.
1736 (find_split_point): Strengthen param "insn" from rtx to
1737 rtx_insn *.
1738 (simplify_set): Likewise for local "other_insn".
1739 (recog_for_combine): Likewise for param "insn".
1740 (record_value_for_reg): Likewise.
1741 (record_dead_and_set_regs_1): Likewise for local
1742 "record_dead_insn".
1743 (record_dead_and_set_regs): Likewise for param "insn".
1744 (record_promoted_value): Likewise.
1745 (check_promoted_subreg): Likewise.
1746 (get_last_value_validate): Likewise.
1747 (reg_dead_at_p): Likewise.
1748 (move_deaths): Likewise for param "to_insn".
1749 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
1750 and locals "place", "place2", "cc0_setter". Eliminate local "tem
1751 in favor of new locals "tem_note" and "tem_insn", the latter being
1752 an rtx_insn *.
1753 (distribute_links): Strengthen locals "place", "insn" from rtx to
1754 rtx_insn *.
1755
1756 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1757
1758 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
1759 than a const_rtx.
1760 (can_delete_label_p): Require a const rtx_code_label * rather than
1761 a const_rtx.
1762 (delete_insn): Add checked cast to rtx_code_label * when we know
1763 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
1764 rtx to rtx_insn *.
1765 (delete_insn_chain): Strengthen locals "prev" and "current" from
1766 rtx to rtx_insn *. Add a checked cast when assigning from
1767 "finish" (strengthening the params will come later). Add a
1768 checked cast to rtx_note * in region where we know
1769 NOTE_P (current).
1770 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
1771 rtx_insn *.
1772 (compute_bb_for_insn): Likewise.
1773 (free_bb_for_insn): Likewise for local "insn".
1774 (compute_bb_for_insn): Likewise.
1775 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
1776 local "insn" from rtx to rtx_insn *
1777 (flow_active_insn_p): Require a const rtx_insn * rather than a
1778 const_rtx.
1779 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
1780 rtx_insn *.
1781 (can_fallthru): Likewise for locals "insn" and "insn2".
1782 (bb_note): Likewise for local "note".
1783 (first_insn_after_basic_block_note): Likewise for local "note" and
1784 for return type.
1785 (rtl_split_block): Likewise for locals "insn" and "next".
1786 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
1787 "end".
1788 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
1789 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
1790 "prev", "tmp".
1791 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
1792 them), "kill_from", "barrier", "new_insn".
1793 (patch_jump_insn): Likewise for params "insn", "old_label".
1794 (redirect_branch_edge): Likewise for locals "old_label", "insn".
1795 (force_nonfallthru_and_redirect): Likewise for locals "insn",
1796 "old_label", "new_label".
1797 (rtl_tidy_fallthru_edge): Likewise for local "q".
1798 (rtl_split_edge): Likewise for locals "before", "last".
1799 (commit_one_edge_insertion): Likewise for locals "before",
1800 "after", "insns", "tmp", "last", adding a checked cast where
1801 currently necessary.
1802 (commit_edge_insertions): Likewise.
1803 (rtl_dump_bb): Likewise for locals "insn", "last".
1804 (print_rtl_with_bb): Likewise for local "x".
1805 (rtl_verify_bb_insns): Likewise for local "x".
1806 (rtl_verify_bb_pointers): Likewise for local "insn".
1807 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
1808 "head", "end".
1809 (rtl_verify_fallthru): Likewise for local "insn".
1810 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
1811 (purge_dead_edges): Likewise for local "insn".
1812 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
1813 (skip_insns_after_block): Likewise for return type and for locals
1814 "insn", "last_insn", "next_head", "prev".
1815 (record_effective_endpoints): Likewise for locals "next_insn",
1816 "insn", "end".
1817 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
1818 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
1819 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
1820 (duplicate_insn_chain): For now, add checked cast from rtx to
1821 rtx_insn * when returning insn.
1822 (cfg_layout_duplicate_bb): Likewise for local "insn".
1823 (cfg_layout_delete_block): Likewise for locals "insn", "next",
1824 "prev", "remaints".
1825 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
1826 (rtl_block_empty_p): Likewise.
1827 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
1828 "split_point", "last".
1829 (rtl_block_ends_with_call_p): Likewise for local "insn".
1830 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
1831 const rtx_insn *.
1832 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
1833 "split_at_insn" from rtx to rtx_insn *.
1834 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
1835 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
1836 to const rtx_insn *.
1837 (rtl_account_profile_record): Likewise.
1838
1839 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1840
1841 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
1842 rtx to rtx_insn *.
1843 (average_num_loop_insns): Likewise.
1844 (init_set_costs): Likewise for local "seq".
1845 (seq_cost): Likewise for param "seq", from const_rtx to const
1846 rtx_insn *.
1847
1848 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1849
1850 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
1851 rtx to rtx_insn *.
1852
1853 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1854
1855 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
1856 "f1" and "f2" from rtx * to rtx_insn **.
1857 (flow_find_head_matching_sequence): Likewise.
1858
1859 * cfgcleanup.c (try_simplify_condjump): Strengthen local
1860 "cbranch_insn" from rtx to rtx_insn *.
1861 (thread_jump): Likewise for local "insn".
1862 (try_forward_edges): Likewise for local "last".
1863 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
1864 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
1865 "real_b_end".
1866 (can_replace_by): Likewise for params "i1", "i2".
1867 (old_insns_match_p): Likewise.
1868 (merge_notes): Likewise.
1869 (walk_to_nondebug_insn): Likewise for param "i1".
1870 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
1871 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
1872 "afterlast1", "afterlast2" from rtx to rtx_insn *.
1873 (flow_find_head_matching_sequence): Strengthen params "f1" and
1874 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
1875 "last1", "last2", "beforelast1", "beforelast2" from rtx to
1876 rtx_insn *.
1877 (outgoing_edges_match): Likewise for locals "last1", "last2".
1878 (try_crossjump_to_edge): Likewise for local "insn".
1879 Replace call to for_each_rtx with for_each_rtx_in_insn.
1880
1881 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
1882 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
1883 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
1884 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
1885 (try_optimize_cfg): Strengthen local "last" from rtx to
1886 rtx_insn *.
1887 (delete_dead_jumptables): Likewise for locals "insn", "next",
1888 "label".
1889
1890 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
1891 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
1892 "rtx else_first_tail", to reflect the basic-block.h changes above.
1893
1894 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1895
1896 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
1897 rtx_insn *.
1898 (purge_dead_tablejump_edges): Likewise.
1899 (find_bb_boundaries): Likewise for locals "insn", "end",
1900 "flow_transfer_insn".
1901
1902 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1903
1904 * caller-save.c (save_call_clobbered_regs): Strengthen locals
1905 "ins" and "prev" from rtx to rtx_insn *.
1906
1907 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1908
1909 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
1910 rtx_insn *.
1911 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
1912 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
1913 "scan_start".
1914 (load_register_parameters): Likewise for local "before_arg".
1915 (check_sibcall_argument_overlap): Likewise for param "insn".
1916 (expand_call): Likewise for locals "normal_call_insns",
1917 "tail_call_insns", "insns", "before_call", "after_args",
1918 "before_arg", "last", "prev". Strengthen one of the "last" from
1919 rtx to rtx_call_insn *.
1920 (fixup_tail_calls): Strengthen local "insn" from rtx to
1921 rtx_insn *.
1922 (emit_library_call_value_1): Likewise for locals "before_call" and
1923 "last".
1924
1925 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1926
1927 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
1928 and "last" from rtx to rtx_insn *.
1929 (expand_builtin_nonlocal_goto): Likewise for local "insn".
1930 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
1931 rtx_call_insn *.
1932 (expand_errno_check): Strengthen local "lab" from rtx to
1933 rtx_code_label *.
1934 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
1935 rtx_insn *.
1936 (expand_builtin_mathfn_2): Likewise.
1937 (expand_builtin_mathfn_ternary): Likewise.
1938 (expand_builtin_mathfn_3): Likewise.
1939 (expand_builtin_interclass_mathfn): Likewise for local "last".
1940 (expand_builtin_int_roundingfn): Likewise for local "insns".
1941 (expand_builtin_int_roundingfn_2): Likewise.
1942 (expand_builtin_strlen): Likewise for local "before_strlen".
1943 (expand_builtin_strncmp): Likewise for local "seq".
1944 (expand_builtin_signbit): Likewise for local "last".
1945 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
1946 from rtx to rtx_code_label *.
1947 (expand_stack_restore): Strengthen local "prev" from rtx to
1948 rtx_insn *.
1949
1950 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1951
1952 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
1953 to rtx_insn *.
1954 (struct btr_def_s): Likewise.
1955 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
1956 const rtx_insn *.
1957 (add_btr_def): Likewise.
1958 (new_btr_user): Likewise.
1959 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
1960 rtx to rtx_insn *.
1961 (link_btr_uses): Likewise.
1962 (move_btr_def): Likewise for locals "insp", "old_insn",
1963 "new_insn". Add checked cast to rtx_insn * for now on result of
1964 gen_move_insn.
1965 (can_move_up): Strengthen param "insn" from const_rtx to
1966 const rtx_insn *.
1967
1968 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1969
1970 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
1971 rtx_insn *.
1972 (get_uncond_jump_length): Likewise for locals "label", "jump".
1973 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
1974 "jump", "insn".
1975 (add_labels_and_missing_jumps): Likewise for local "new_jump".
1976 (fix_up_fall_thru_edges): Likewise for local "old_jump".
1977 (find_jump_block): Likewise for local "insn".
1978 (fix_crossing_conditional_branches): Likewise for locals
1979 "old_jump", "new_jump".
1980 (fix_crossing_unconditional_branches): Likewise for locals
1981 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
1982 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
1983
1984 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1985
1986 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
1987 rtx to rtx_insn *.
1988 (struct mem_insn): Likewise for field "insn".
1989 (reg_next_use): Strengthen from rtx * to rtx_insn **.
1990 (reg_next_inc_use): Likewise.
1991 (reg_next_def): Likewise.
1992 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
1993 from rtx to rtx_insn *.
1994 (move_insn_before): Likewise for param "next_insn" and local "insns".
1995 (attempt_change): Likewise for local "mov_insn".
1996 (try_merge): Likewise for param "last_insn".
1997 (get_next_ref): Likewise for return type and local "insn".
1998 Strengthen param "next_array" from rtx * to rtx_insn **.
1999 (parse_add_or_inc): Strengthen param "insn" from rtx to
2000 rtx_insn *.
2001 (find_inc): Likewise for locals "insn" and "other_insn" (three of
2002 the latter).
2003 (merge_in_block): Likewise for locals "insn", "curr",
2004 "other_insn".
2005 (pass_inc_dec::execute): Update allocations of the arrays to
2006 reflect the stronger types.
2007
2008 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2009
2010 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
2011 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
2012 from rtx to rtx_code_label *.
2013
2014 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2015
2016 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
2017 to rtx_insn *.
2018
2019 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2020
2021 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
2022 generated a warning and prevented bootstrapping the compiler.
2023
2024 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2025
2026 * rtl.h (delete_related_insns): Strengthen return type from rtx to
2027 rtx_insn *.
2028
2029 * jump.c (delete_related_insns): Likewise, also for locals "next"
2030 and "prev".
2031
2032 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2033
2034 * genautomata.c (output_internal_insn_latency_func): When writing
2035 the function "internal_insn_latency" to insn-automata.c,
2036 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
2037 allowing the optional guard function of (define_bypass) clauses to
2038 expect a pair of rtx_insn *, rather than a pair of rtx.
2039 (output_insn_latency_func): When writing the function
2040 "insn_latency", add an "uncast_" prefix to params "insn" and
2041 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
2042 using checked casts from the params, thus enabling the above
2043 change to the generated "internal_insn_latency" function.
2044
2045 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
2046
2047 PR tree-optimization/62091
2048 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
2049 handle correctly arrays.
2050 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
2051 inheritance binfos.
2052 (record_known_type): Walk into inner type.
2053 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
2054 condition on no type changes.
2055
2056 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2057
2058 * genattrtab.c (write_attr_get): Within the generated get_attr_
2059 functions, rename param "insn" to "uncast_insn" and reintroduce
2060 "insn" as an local rtx_insn * using a checked cast, so that "insn"
2061 is an rtx_insn * within insn-attrtab.c
2062
2063 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2064
2065 * output.h (peephole): Strengthen return type from rtx to
2066 rtx_insn *.
2067 * rtl.h (delete_for_peephole): Likewise for both params.
2068 * genpeep.c (main): In generated "peephole" function, strengthen
2069 return type and local "insn" from rtx to rtx_insn *. For now,
2070 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
2071 rtx_insn *, with a checked cast.
2072 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
2073 locals "insn", "next", "prev" from rtx to rtx_insn *.
2074
2075 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
2076
2077 PR tree-optimization/62112
2078 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
2079 * gimple-iterator.h (gsi_replace): Return bool.
2080 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
2081 moved from ref_may_alias_global_p.
2082 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
2083 New overloads.
2084 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
2085 (stmt_kills_ref_p_1): Rename...
2086 (stmt_kills_ref_p): ... to this.
2087 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
2088 stmt_kills_ref_p): Declare.
2089 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
2090 Move the self-assignment case...
2091 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
2092
2093 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2094
2095 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
2096
2097 * emit-rtl.c (try_split): Likewise, also for locals "before" and
2098 "after". For now, don't strengthen param "trial", which requires
2099 adding checked casts when returning it.
2100
2101 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2102
2103 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
2104 "label" from rtx to rtx_code_label *. Strengthen param 1 of
2105 "var_location" hook from rtx to rtx_insn *.
2106 (debug_nothing_rtx): Delete in favor of...
2107 (debug_nothing_rtx_code_label): New prototype.
2108 (debug_nothing_rtx_rtx): Delete unused prototype.
2109 (debug_nothing_rtx_insn): New prototype.
2110
2111 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
2112 invoking debug_hooks->var_location (in two places, one in a NOTE
2113 case of a switch statement, the other guarded by a CALL_P
2114 conditional. Add checked cast to rtx_code_label * when invoking
2115 debug_hooks->label (within CODE_LABEL case of switch statement).
2116
2117 * dbxout.c (dbx_debug_hooks): Update "label" hook from
2118 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
2119 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
2120 (xcoff_debug_hooks): Likewise.
2121 * debug.c (do_nothing_debug_hooks): Likewise.
2122 (debug_nothing_rtx): Delete in favor of...
2123 (debug_nothing_rtx_insn): New function.
2124 (debug_nothing_rtx_rtx): Delete unused function.
2125 (debug_nothing_rtx_code_label): New function.
2126 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
2127 debug_nothing_rtx to debug_nothing_rtx_code_label.
2128 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
2129 to rtx_insn *.
2130 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
2131 debug_nothing_rtx to debug_nothing_rtx_insn.
2132 (sdbout_label): Strengthen param "insn" from rtx to
2133 rtx_code_label *.
2134 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
2135 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
2136 "var_location" hook from debug_nothing_rtx to
2137 debug_nothing_rtx_insn.
2138
2139 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2140
2141 * recog.h (insn_output_fn): Update this function typedef to match
2142 the changes below to the generated output functions, strengthening
2143 the 2nd param from rtx to rtx_insn *.
2144
2145 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
2146 insn when invoking an output function, to match the new signature
2147 of insn_output_fn with a stronger second param.
2148
2149 * genconditions.c (write_header): In the generated code for
2150 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
2151 to match the other changes in this patch.
2152
2153 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
2154 the generated "gen_" functions from rtx to rtx_insn * within their
2155 implementations.
2156
2157 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
2158 the subfunctions within the generated "recog_", "split", "peephole2"
2159 function trees from rtx to rtx_insn *. For now, the top-level
2160 generated functions ("recog", "split", "peephole2") continue to
2161 take a plain rtx for "insn", to avoid introducing dependencies on
2162 other patches. Rename this 2nd param from "insn" to
2163 "uncast_insn", and reintroduce "insn" as a local variable of type
2164 rtx_insn *, initialized at the top of the generated function with
2165 a checked cast on "uncast_insn".
2166 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
2167 the generated "gen_" functions from rtx to rtx_insn * within their
2168 prototypes.
2169
2170 * genoutput.c (process_template): Strengthen the 2nd param within
2171 the generated "output_" functions "insn" from rtx to rtx_insn *.
2172
2173 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
2174
2175 * tree-profile.c (tree_profiling): Skip external functions
2176 when doing coverage instrumentation.
2177 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
2178
2179 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2180
2181 * config/rs6000/altivec.h (vec_cpsgn): New #define.
2182 (vec_mergee): Likewise.
2183 (vec_mergeo): Likewise.
2184 (vec_cntlz): Likewise.
2185 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
2186 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
2187 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
2188 VMRGEW, and VMRGOW.
2189 * doc/extend.texi: Document various forms of vec_cpsgn,
2190 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
2191 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
2192 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
2193 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
2194 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
2195
2196 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2197
2198 * config/rs6000/rs6000.c (context.h): New include.
2199 (tree-pass.h): Likewise.
2200 (make_pass_analyze_swaps): New decl.
2201 (rs6000_option_override): Register pass_analyze_swaps.
2202 (swap_web_entry): New subsclass of web_entry_base (df.h).
2203 (special_handling_values): New enum.
2204 (union_defs): New function.
2205 (union_uses): Likewise.
2206 (insn_is_load_p): Likewise.
2207 (insn_is_store_p): Likewise.
2208 (insn_is_swap_p): Likewise.
2209 (rtx_is_swappable_p): Likewise.
2210 (insn_is_swappable_p): Likewise.
2211 (chain_purpose): New enum.
2212 (chain_contains_only_swaps): New function.
2213 (mark_swaps_for_removal): Likewise.
2214 (swap_const_vector_halves): Likewise.
2215 (adjust_subreg_index): Likewise.
2216 (permute_load): Likewise.
2217 (permute_store): Likewise.
2218 (handle_special_swappables): Likewise.
2219 (replace_swap_with_copy): Likewise.
2220 (dump_swap_insn_table): Likewise.
2221 (rs6000_analyze_swaps): Likewise.
2222 (pass_data_analyze_swaps): New pass_data.
2223 (pass_analyze_swaps): New rtl_opt_pass.
2224 (make_pass_analyze_swaps): New function.
2225 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
2226
2227 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2228
2229 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
2230 type from rtx to rtx_insn *.
2231 (create_copy_of_insn_rtx): Likewise.
2232 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
2233 (create_copy_of_insn_rtx): Likewise, also for local "res".
2234
2235 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2236
2237 * rtl.h (find_first_parameter_load): Strengthen return type from
2238 rtx to rtx_insn *.
2239 * rtlanal.c (find_first_parameter_load): Strengthen return type
2240 from rtx to rtx_insn *. Add checked cast for now, to postpone
2241 strengthening the params.
2242
2243 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2244
2245 PR fortran/44054
2246 * diagnostic.c: Set default caret.
2247 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
2248 line is needed.
2249 * diagnostic.h (struct diagnostic_context):
2250
2251 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2252
2253 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
2254 (sel_bb_head): Strengthen return type insn_t (currently just an
2255 rtx) to rtx_insn *.
2256 (sel_bb_end): Likewise.
2257
2258 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
2259 (sel_bb_head): Strengthen return type and local "head" from
2260 insn_t (currently just an rtx) to rtx_insn *.
2261 (sel_bb_end): Likewise for return type.
2262 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
2263 working with insn.
2264
2265 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2266
2267 * basic-block.h (get_last_bb_insn): Strengthen return type from
2268 rtx to rtx_insn *.
2269 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
2270 end".
2271
2272 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2273
2274 PR fortran/44054
2275 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
2276 to here ...
2277 (diagnostic_report_diagnostic): ... from here.
2278 * toplev.c (general_init): Move code to c-family.
2279
2280 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2281
2282 * df.h (web_entry_base): Replace existing struct web_entry with a
2283 new class web_entry_base with only the predecessor member.
2284 (unionfind_root): Remove declaration and move to class member.
2285 (unionfind_union): Remove declaration and move to friend
2286 function.
2287 (union_defs): Remove declaration.
2288 * web.c (web_entry_base::unionfind_root): Modify to be member
2289 function and adjust accessors.
2290 (unionfind_union): Modify to be friend function and adjust
2291 accessors.
2292 (web_entry): New subclass of web_entry_base containing the reg
2293 member.
2294 (union_match_dups): Modify for struct -> class changes.
2295 (union_defs): Likewise.
2296 (entry_register): Likewise.
2297 (pass_web::execute): Likewise.
2298
2299 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
2300
2301 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
2302 builtin define __VEC_ELEMENT_REG_ORDER__.
2303
2304 2014-08-20 Martin Jambor <mjambor@suse.cz>
2305 Wei Mi <wmi@google.com>
2306
2307 PR ipa/60449
2308 PR middle-end/61776
2309 * tree-ssa-operands.c (update_stmt_operands): Remove
2310 MODIFIED_NORETURN_CALLS.
2311 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
2312 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
2313 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
2314 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
2315 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
2316 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
2317 (gimple_call_set_ctrl_altering): New func.
2318 (gimple_call_ctrl_altering_p): Ditto.
2319 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
2320 (make_blocks): Use gimple_call_initialize_ctrl_altering.
2321 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
2322 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
2323 remove MODIFIED_NORETURN_CALLS.
2324
2325 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
2326
2327 * coverage.c (coverage_compute_profile_id): Return non-0;
2328 also handle symbols with unique name.
2329 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
2330
2331 2014-08-20 Steve Ellcey <sellcey@mips.com>
2332
2333 PR middle-end/49191
2334 * doc/sourcebuild.texi (non_strict_align): New.
2335
2336 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
2337
2338 * cgraphunit.c (ipa_passes, compile): Reshedule
2339 symtab_remove_unreachable_nodes passes; update comments.
2340 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
2341 TODO_remove_functions before the pass; the functions ought to be
2342 already removed.
2343 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
2344 TODO_remove_functions.
2345 * passes.c (pass_data_early_local_passes): Do not schedule function
2346 removal.
2347 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
2348
2349 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2350
2351 PR c/59304
2352 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
2353 before setting the option.
2354 * diagnostic.c (diagnostic_classify_diagnostic): Record
2355 command-line status.
2356
2357 2014-08-20 Richard Biener <rguenther@suse.de>
2358
2359 PR lto/62190
2360 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
2361 to build uint{16,32,64}_type_node.
2362
2363 2014-08-20 Terry Guo <terry.guo@arm.com>
2364
2365 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
2366 with immediate_operand.
2367
2368 2014-08-20 David Malcolm <dmalcolm@redhat.com>
2369
2370 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
2371 "insn" from an as_a to a safe_as_a, for the case when "insn" is
2372 NULL.
2373
2374 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2375
2376 PR preprocessor/51303
2377 * incpath.c (remove_duplicates): Use cpp_warning.
2378
2379 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2380
2381 PR c/60975
2382 PR c/53063
2383 * doc/options.texi (CPP): Document it.
2384 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
2385 * optc-gen.awk: Handle CPP.
2386 * opth-gen.awk: Likewise.
2387
2388 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2389
2390 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
2391 rtx_insn *.
2392 (duplicate_insn_chain): Likewise.
2393 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
2394 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
2395 checked cast for now (until we can strengthen the params in the
2396 same way).
2397 (duplicate_insn_chain): Likewise.
2398
2399 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2400
2401 * rtl.h (next_cc0_user): Strengthen return type from rtx to
2402 rtx_insn *.
2403 (prev_cc0_setter): Likewise.
2404
2405 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
2406 rtx_insn *, adding checked casts for now as necessary.
2407 (prev_cc0_setter): Likewise.
2408
2409 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2410
2411 * expr.h (emit_move_insn): Strengthen return type from rtx to
2412 rtx_insn *.
2413 (emit_move_insn_1): Likewise.
2414 (emit_move_complex_push): Likewise.
2415 (emit_move_complex_parts): Likewise.
2416
2417 * expr.c (emit_move_via_integer): Strengthen return type from rtx
2418 to rtx_insn *. Replace use of NULL_RTX with NULL when working
2419 with insns.
2420 (emit_move_complex_push): Strengthen return type from rtx to
2421 rtx_insn *.
2422 (emit_move_complex): Likewise, also for local "ret".
2423 (emit_move_ccmode): Likewise.
2424 (emit_move_multi_word): Likewise for return type and locals
2425 "last_insn", "seq".
2426 (emit_move_insn_1): Likewise for return type and locals "result",
2427 "ret".
2428 (emit_move_insn): Likewise for return type and local "last_insn".
2429 (compress_float_constant): Likewise.
2430
2431 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2432
2433 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
2434 from rtx to rtx_insn *.
2435
2436 * rtl.h (emit_insn_before): Likewise.
2437 (emit_insn_before_noloc): Likewise.
2438 (emit_insn_before_setloc): Likewise.
2439 (emit_jump_insn_before): Likewise.
2440 (emit_jump_insn_before_noloc): Likewise.
2441 (emit_jump_insn_before_setloc): Likewise.
2442 (emit_call_insn_before): Likewise.
2443 (emit_call_insn_before_noloc): Likewise.
2444 (emit_call_insn_before_setloc): Likewise.
2445 (emit_debug_insn_before): Likewise.
2446 (emit_debug_insn_before_noloc): Likewise.
2447 (emit_debug_insn_before_setloc): Likewise.
2448 (emit_label_before): Likewise.
2449 (emit_insn_after): Likewise.
2450 (emit_insn_after_noloc): Likewise.
2451 (emit_insn_after_setloc): Likewise.
2452 (emit_jump_insn_after): Likewise.
2453 (emit_jump_insn_after_noloc): Likewise.
2454 (emit_jump_insn_after_setloc): Likewise.
2455 (emit_call_insn_after): Likewise.
2456 (emit_call_insn_after_noloc): Likewise.
2457 (emit_call_insn_after_setloc): Likewise.
2458 (emit_debug_insn_after): Likewise.
2459 (emit_debug_insn_after_noloc): Likewise.
2460 (emit_debug_insn_after_setloc): Likewise.
2461 (emit_label_after): Likewise.
2462 (emit_insn): Likewise.
2463 (emit_debug_insn): Likewise.
2464 (emit_jump_insn): Likewise.
2465 (emit_call_insn): Likewise.
2466 (emit_label): Likewise.
2467 (gen_clobber): Likewise.
2468 (emit_clobber): Likewise.
2469 (gen_use): Likewise.
2470 (emit_use): Likewise.
2471 (emit): Likewise.
2472
2473 (emit_barrier_before): Strengthen return type from rtx to
2474 rtx_barrier *.
2475 (emit_barrier_after): Likewise.
2476 (emit_barrier): Likewise.
2477
2478 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
2479 from rtx to rtx_insn *. Add checked casts for now when converting
2480 "last" from rtx to rtx_insn *.
2481 (emit_insn_before_noloc): Likewise for return type.
2482 (emit_jump_insn_before_noloc): Likewise.
2483 (emit_call_insn_before_noloc): Likewise.
2484 (emit_debug_insn_before_noloc): Likewise.
2485 (emit_barrier_before): Strengthen return type and local "insn"
2486 from rtx to rtx_barrier *.
2487 (emit_label_before): Strengthen return type from rtx to
2488 rtx_insn *. Add checked cast for now when returning param
2489 (emit_pattern_after_noloc): Strengthen return type from rtx to
2490 rtx_insn *. Add checked casts for now when converting "last" from
2491 rtx to rtx_insn *.
2492 (emit_insn_after_noloc): Strengthen return type from rtx to
2493 rtx_insn *.
2494 (emit_jump_insn_after_noloc): Likewise.
2495 (emit_call_insn_after_noloc): Likewise.
2496 (emit_debug_insn_after_noloc): Likewise.
2497 (emit_barrier_after): Strengthen return type from rtx to
2498 rtx_barrier *.
2499 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
2500 Add checked cast for now when converting "label" from rtx to
2501 rtx_insn *.
2502 (emit_pattern_after_setloc): Strengthen return type from rtx to
2503 rtx_insn *. Add checked casts for now when converting "last" from
2504 rtx to rtx_insn *.
2505 (emit_pattern_after): Strengthen return type from rtx to
2506 rtx_insn *.
2507 (emit_insn_after_setloc): Likewise.
2508 (emit_insn_after): Likewise.
2509 (emit_jump_insn_after_setloc): Likewise.
2510 (emit_jump_insn_after): Likewise.
2511 (emit_call_insn_after_setloc): Likewise.
2512 (emit_call_insn_after): Likewise.
2513 (emit_debug_insn_after_setloc): Likewise.
2514 (emit_debug_insn_after): Likewise.
2515 (emit_pattern_before_setloc): Likewise. Add checked casts for now
2516 when converting "last" from rtx to rtx_insn *.
2517 (emit_pattern_before): Strengthen return type from rtx to
2518 rtx_insn *.
2519 (emit_insn_before_setloc): Likewise.
2520 (emit_insn_before): Likewise.
2521 (emit_jump_insn_before_setloc): Likewise.
2522 (emit_jump_insn_before): Likewise.
2523 (emit_call_insn_before_setloc): Likewise.
2524 (emit_call_insn_before): Likewise.
2525 (emit_debug_insn_before_setloc): Likewise.
2526 (emit_debug_insn_before): Likewise.
2527 (emit_insn): Strengthen return type and locals "last", "insn",
2528 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
2529 within cases where we know we have an insn.
2530 (emit_debug_insn): Likewise.
2531 (emit_jump_insn): Likewise.
2532 (emit_call_insn): Strengthen return type and local "insn" from rtx
2533 to rtx_insn *.
2534 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
2535 a checked cast to rtx_insn * for now on "label".
2536 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
2537 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
2538 (emit_use): Likewise.
2539 (gen_use): Likewise, also for local "seq".
2540 (emit): Likewise for return type and local "insn".
2541 (rtx_insn): Likewise for return type and local "new_rtx".
2542
2543 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
2544 from rtx to rtx_barrier *.
2545
2546 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
2547 changed return type from rtx to rtx_insn *, we must update
2548 "emit_fn" type, and this in turn means updating...
2549 (frame_insn): ...this. Strengthen return type from rtx to
2550 rtx_insn *. Introduce a new local "insn" of the appropriate type.
2551
2552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2553
2554 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
2555 rtx to rtx_jump_table_data *. Also for local.
2556 * rtl.h (emit_jump_table_data): Likewise.
2557
2558 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2559
2560 * basic-block.h (create_basic_block_structure): Strengthen third
2561 param "bb_note" from rtx to rtx_note *.
2562 * rtl.h (emit_note_before): Strengthen return type from rtx to
2563 rtx_note *.
2564 (emit_note_after): Likewise.
2565 (emit_note): Likewise.
2566 (emit_note_copy): Likewise. Also, strengthen param similarly.
2567 * function.h (struct rtl_data): Strengthen field
2568 "x_stack_check_probe_note" from rtx to rtx_note *.
2569
2570 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
2571 from rtx to rtx_note *.
2572 * cfgrtl.c (create_basic_block_structure): Strengthen third param
2573 "bb_note" from rtx to rtx_note *.
2574 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
2575 when calling emit_note_copy.
2576 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
2577 rtx_note *.
2578 (emit_note_after): Likewise.
2579 (emit_note_before): Likewise.
2580 (emit_note_copy): Likewise. Also, strengthen param similarly.
2581 (emit_note): Likewise.
2582 * except.c (emit_note_eh_region_end): Likewise for return type.
2583 Strengthen local "next" from rtx to rtx_insn *.
2584 (convert_to_eh_region_ranges): Strengthen local "note"
2585 from rtx to rtx_note *.
2586 * final.c (change_scope): Likewise.
2587 (reemit_insn_block_notes): Likewise, for both locals named "note".
2588 Also, strengthen local "insn" from rtx to rtx_insn *.
2589 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
2590 rtx to rtx_note *.
2591 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
2592 strengthen local "seq" from rtx to rtx_insn *.
2593 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
2594 to rtx_note *.
2595 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
2596 vec<rtx_note *>.
2597 (get_bb_note_from_pool): Strengthen return type from rtx to
2598 rtx_note *.
2599 (sel_create_basic_block): Strengthen local "new_bb_note" from
2600 insn_t to rtx_note *.
2601 * var-tracking.c (emit_note_insn_var_location): Strengthen local
2602 "note" from rtx to rtx_note *.
2603 (emit_notes_in_bb): Likewise.
2604
2605 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2606
2607 * function.h (struct rtl_data): Strengthen field
2608 "x_parm_birth_insn" from rtx to rtx_insn *.
2609 * function.c (struct assign_parm_data_all): Strengthen fields
2610 "first_conversion_insn" and "last_conversion_insn" from rtx to
2611 rtx_insn *.
2612
2613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2614
2615 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
2616 to rtx_insn *; also for local "var_end_seq".
2617 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
2618 (maybe_cleanup_end_of_block): Likewise for param "last" and local
2619 "insn".
2620 (expand_gimple_cond): Likewise for locals "last2" and "last".
2621 (mark_transaction_restart_calls): Likewise for local "insn".
2622 (expand_gimple_stmt): Likewise for return type and locals "last"
2623 and "insn".
2624 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
2625 (avoid_complex_debug_insns): Likewise for param "insn".
2626 (expand_debug_locations): Likewise for locals "insn", "last",
2627 "prev_insn" and "insn2".
2628 (expand_gimple_basic_block): Likewise for local "last".
2629 (construct_exit_block): Likewise for locals "head", "end",
2630 "orig_end".
2631 (pass_expand::execute): Likewise for locals "var_seq",
2632 "var_ret_seq", "next".
2633
2634 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2635
2636 * asan.h (asan_emit_stack_protection): Strengthen return type from
2637 rtx to rtx_insn *.
2638 * asan.c (asan_emit_stack_protection): Likewise. Add local
2639 "insns" to hold the return value.
2640
2641 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2642
2643 * basic-block.h (bb_note): Strengthen return type from rtx to
2644 rtx_note *.
2645 * sched-int.h (bb_note): Likewise.
2646 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
2647
2648 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2649
2650 * rtl.h (make_insn_raw): Strengthen return type from rtx to
2651 rtx_insn *.
2652
2653 * emit-rtl.c (make_insn_raw): Strengthen return type and local
2654 "insn" from rtx to rtx_insn *.
2655 (make_debug_insn_raw): Strengthen return type from rtx to
2656 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
2657 (make_jump_insn_raw): Strengthen return type from rtx to
2658 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
2659 (make_call_insn_raw): Strengthen return type from rtx to
2660 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
2661 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
2662 callback from rtx to rtx_insn *; likewise for local "insn" and
2663 "next", adding a checked cast to rtx_insn in the relevant cases of
2664 the switch statement.
2665 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
2666 callback from rtx to rtx_insn *.
2667 (emit_pattern_after_setloc): Likewise.
2668 (emit_pattern_after): Likewise.
2669 (emit_pattern_before_setloc): Likewise.
2670 (emit_pattern_before): Likewise.
2671
2672 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2673
2674 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
2675 rtx_call_insn *.
2676 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
2677 accepting an rtx_insn *.
2678 (last_call_insn): Strengthen return type from rtx to
2679 rtx_call_insn *.
2680
2681 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2682
2683 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
2684 "insns" from rtx to rtx_insn *.
2685 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
2686 locals "insn" and "prev".
2687
2688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2689
2690 * rtl.h (tablejump_p): Strengthen third param from rtx * to
2691 rtx_jump_table_data **.
2692
2693 * cfgbuild.c (make_edges): Introduce local "table", using it in
2694 place of "tmp" for jump table data.
2695 (find_bb_boundaries): Strengthen local "table" from rtx to
2696 rtx_jump_table_data *.
2697 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2698 (outgoing_edges_match): Likewise for locals "table1" and "table2".
2699 (try_crossjump_to_edge): Likewise.
2700 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
2701 "table".
2702 (patch_jump_insn): Introduce local "table", using it in place of
2703 "tmp" for jump table data.
2704 (force_nonfallthru_and_redirect): Introduce local "table", so that
2705 call to tablejump_p can receive an rtx_jump_table_data **. Update
2706 logic around the call to overwrite "note" appropriately if
2707 tablejump_p returns non-zero.
2708 (get_last_bb_insn): Introduce local "table", using it in place of
2709 "tmp" for jump table data.
2710 * dwarf2cfi.c (create_trace_edges): Likewise.
2711
2712 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
2713 from rtx to rtx_jump_table_data *.
2714 (create_fix_barrier): Strengthen local "tmp" from rtx to
2715 rtx_jump_table_data *.
2716 (arm_reorg): Likewise for local "table".
2717
2718 * config/s390/s390.c (s390_chunkify_start): Likewise.
2719
2720 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
2721
2722 * jump.c (delete_related_insns): Strengthen local "lab_next" from
2723 rtx to rtx_jump_table_data *.
2724
2725 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
2726 rtx_jump_table_data **. Add a checked cast when writing through
2727 the pointer: we know there that local "table" is non-NULL and that
2728 JUMP_TABLE_DATA_P (table) holds.
2729 (label_is_jump_target_p): Introduce local "table", using it in
2730 place of "tmp" for jump table data.
2731
2732 2014-08-19 Marek Polacek <polacek@redhat.com>
2733
2734 PR c++/62153
2735 * doc/invoke.texi: Document -Wbool-compare.
2736
2737 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2738
2739 * rtl.h (entry_of_function): Strengthen return type from rtx to
2740 rtx_insn *.
2741 * cfgrtl.c (entry_of_function): Likewise.
2742
2743 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2744
2745 * emit-rtl.h (get_insns): Strengthen return type from rtx to
2746 rtx_insn *, adding a checked cast for now.
2747 (get_last_insn): Likewise.
2748
2749 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2750
2751 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
2752 rtx_code_label *.
2753
2754 * emit-rtl.c (gen_label_rtx): Likewise.
2755
2756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2757
2758 * rtl.h (previous_insn): Strengthen return type from rtx to
2759 rtx_insn *.
2760 (next_insn): Likewise.
2761 (prev_nonnote_insn): Likewise.
2762 (prev_nonnote_insn_bb): Likewise.
2763 (next_nonnote_insn): Likewise.
2764 (next_nonnote_insn_bb): Likewise.
2765 (prev_nondebug_insn): Likewise.
2766 (next_nondebug_insn): Likewise.
2767 (prev_nonnote_nondebug_insn): Likewise.
2768 (next_nonnote_nondebug_insn): Likewise.
2769 (prev_real_insn): Likewise.
2770 (next_real_insn): Likewise.
2771 (prev_active_insn): Likewise.
2772 (next_active_insn): Likewise.
2773
2774 * emit-rtl.c (next_insn): Strengthen return type from rtx to
2775 rtx_insn *, adding a checked cast.
2776 (previous_insn): Likewise.
2777 (next_nonnote_insn): Likewise.
2778 (next_nonnote_insn_bb): Likewise.
2779 (prev_nonnote_insn): Likewise.
2780 (prev_nonnote_insn_bb): Likewise.
2781 (next_nondebug_insn): Likewise.
2782 (prev_nondebug_insn): Likewise.
2783 (next_nonnote_nondebug_insn): Likewise.
2784 (prev_nonnote_nondebug_insn): Likewise.
2785 (next_real_insn): Likewise.
2786 (prev_real_insn): Likewise.
2787 (next_active_insn): Likewise.
2788 (prev_active_insn): Likewise.
2789
2790 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
2791 param "stepfunc" so that it returns an rtx_insn * rather than an
2792 rtx, to track the change to prev_nonnote_insn_bb, which is the
2793 only function this is called with.
2794 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
2795
2796 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
2797
2798 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
2799 assert.
2800
2801 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2802
2803 * coretypes.h (class rtx_debug_insn): Add forward declaration.
2804 (class rtx_nonjump_insn): Likewise.
2805 (class rtx_jump_insn): Likewise.
2806 (class rtx_call_insn): Likewise.
2807 (class rtx_jump_table_data): Likewise.
2808 (class rtx_barrier): Likewise.
2809 (class rtx_code_label): Likewise.
2810 (class rtx_note): Likewise.
2811
2812 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
2813 adding the invariant DEBUG_INSN_P (X).
2814 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
2815 the invariant NONJUMP_INSN_P (X).
2816 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
2817 the invariant JUMP_P (X).
2818 (class rtx_call_insn): New, a subclass of rtx_insn, adding
2819 the invariant CALL_P (X).
2820 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
2821 invariant JUMP_TABLE_DATA_P (X).
2822 (class rtx_barrier): New, a subclass of rtx_insn, adding the
2823 invariant BARRIER_P (X).
2824 (class rtx_code_label): New, a subclass of rtx_insn, adding
2825 the invariant LABEL_P (X).
2826 (class rtx_note): New, a subclass of rtx_insn, adding
2827 the invariant NOTE_P(X).
2828 (is_a_helper <rtx_debug_insn *>::test): New.
2829 (is_a_helper <rtx_nonjump_insn *>::test): New.
2830 (is_a_helper <rtx_jump_insn *>::test): New.
2831 (is_a_helper <rtx_call_insn *>::test): New.
2832 (is_a_helper <rtx_jump_table_data *>::test): New functions,
2833 overloaded for both rtx and rtx_insn *.
2834 (is_a_helper <rtx_barrier *>::test): New.
2835 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
2836 for both rtx and rtx_insn *.
2837 (is_a_helper <rtx_note *>::test): New.
2838
2839 2014-08-19 Marek Polacek <polacek@redhat.com>
2840
2841 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
2842 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2843 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
2844 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2845
2846 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2847
2848 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
2849 rtx_insn *. To help with transition, for now, convert from an
2850 access macro into a pair of functions: BND_TO, returning an
2851 rtx_insn *, and...
2852 (SET_BND_TO): New function, for use where BND_TO is used as an
2853 lvalue.
2854
2855 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
2856 SET_BND_TO.
2857 (BND_TO): New function, adding a checked cast.
2858 (SET_BND_TO): New function.
2859
2860 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
2861 SET_BND_TO.
2862 (compute_av_set_on_boundaries): Likewise.
2863
2864 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
2865
2866 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
2867 destination if it is used in source.
2868 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
2869 (*popcount<mode>2_falsedep_1): Likewise.
2870
2871 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
2872
2873 PR other/62168
2874 * configure.ac: Set install_gold_as_default to no first.
2875 * configure: Regenerated.
2876
2877 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2878
2879 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
2880 "note_list" field will eventually be an rtx_insn *. To help with
2881 transition, for now, convert from an access macro into a pair of
2882 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
2883 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
2884 used as an lvalue.
2885
2886 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
2887 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
2888
2889 * sel-sched-ir.c (init_bb): Likewise.
2890 (sel_restore_notes): Likewise.
2891 (move_bb_info): Likewise.
2892 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
2893 (SET_BB_NOTE_LIST): New function.
2894
2895 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2896
2897 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
2898 field will eventually be an rtx_insn *. To help with transition,
2899 for now, convert from an access macro into a pair of functions:
2900 VINSN_INSN_RTX, returning an rtx_insn *, and...
2901 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
2902 is used as an lvalue.
2903
2904 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
2905 SET_VINSN_INSN_RTX where it's used as an lvalue.
2906 (VINSN_INSN_RTX): New function.
2907 (SET_VINSN_INSN_RTX): New function.
2908
2909 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2910
2911 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
2912 eventually be rtx_insn *, but to help with transition, for now,
2913 convert from an access macro into a pair of functions: DEP_PRO
2914 returning an rtx_insn * and...
2915 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
2916 lvalue, returning an rtx&.
2917 (DEP_CON): Analogous changes to DEP_PRO above.
2918 (SET_DEP_CON): Likewise.
2919
2920 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
2921 an lvalue to SET_DEP_CON.
2922 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
2923 (sd_copy_back_deps): Likewise for DEP_CON.
2924 (DEP_PRO): New function, adding a checked cast for now.
2925 (DEP_CON): Likewise.
2926 (SET_DEP_PRO): New function.
2927 (SET_DEP_CON): Likewise.
2928
2929 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
2930
2931 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
2932 (extra_options): Add i386/cygwin.opt.
2933 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
2934 (CPP_SPEC): Accept -pthread.
2935 (LINK_SPEC): Ditto.
2936 (GOMP_SELF_SPECS): Update comment.
2937 * config/i386/cygwin.opt: New file for -pthread flag.
2938
2939 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2940
2941 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
2942 * df.h (DF_REF_INSN): Convert from a macro to a function, so
2943 that we can return an rtx_insn *.
2944
2945 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
2946
2947 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
2948 when building executables, not DLLs. Add --large-address-aware
2949 under the same conditions.
2950 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
2951 when building executables, not DLLs. Add --large-address-aware
2952 under the same conditions when using -m32.
2953
2954 * config/i386/cygwin-stdint.h: Throughout, make type
2955 definitions dependent on target architecture, not host.
2956
2957 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2958
2959 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
2960 the return type from rtx to rtx_insn *, which will enable various
2961 conversions in followup patches. For now this is is done by a
2962 checked cast.
2963 (NEXT_INSN): Likewise.
2964 (SET_PREV_INSN): Convert to an inline function. This is intended
2965 for use as an lvalue, and so returns an rtx& to allow in-place
2966 modification.
2967 (SET_NEXT_INSN): Likewise.
2968
2969 2014-07-08 Mark Wielaard <mjw@redhat.com>
2970
2971 PR debug/59051
2972 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
2973
2974 2014-08-19 Marek Polacek <polacek@redhat.com>
2975
2976 PR c/61271
2977 * cgraphunit.c (handle_alias_pairs): Fix condition.
2978
2979 2014-08-19 Richard Biener <rguenther@suse.de>
2980
2981 * gimple-fold.c (fold_gimple_assign): Properly build a
2982 null-pointer constant when devirtualizing addresses.
2983
2984 2014-07-07 Mark Wielaard <mjw@redhat.com>
2985
2986 * dwarf2out.c (decl_quals): New function.
2987 (modified_type_die): Take one cv_quals argument instead of two,
2988 one for const and one for volatile.
2989 (add_type_attribute): Likewise.
2990 (generic_parameter_die): Call add_type_attribute with one modifier
2991 argument.
2992 (base_type_for_mode): Likewise.
2993 (add_bounds_info): Likewise.
2994 (add_subscript_info): Likewise.
2995 (gen_array_type_die): Likewise.
2996 (gen_descr_array_type_die): Likewise.
2997 (gen_entry_point_die): Likewise.
2998 (gen_enumeration_type_die): Likewise.
2999 (gen_formal_parameter_die): Likewise.
3000 (gen_subprogram_die): Likewise.
3001 (gen_variable_die): Likewise.
3002 (gen_const_die): Likewise.
3003 (gen_field_die): Likewise.
3004 (gen_pointer_type_die): Likewise.
3005 (gen_reference_type_die): Likewise.
3006 (gen_ptr_to_mbr_type_die): Likewise.
3007 (gen_inheritance_die): Likewise.
3008 (gen_subroutine_type_die): Likewise.
3009 (gen_typedef_die): Likewise.
3010 (force_type_die): Likewise.
3011
3012 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3013
3014 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
3015 if unset.
3016 * configure: Regenerate.
3017
3018 2014-08-19 Richard Biener <rguenther@suse.de>
3019
3020 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
3021 DECL_EXTERNALs in BLOCKs as non-references.
3022 * tree-streamer-out.c (streamer_write_chain): Likewise.
3023
3024 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
3025 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3026 Anna Tikhonova <anna.tikhonova@intel.com>
3027 Ilya Tocar <ilya.tocar@intel.com>
3028 Andrey Turetskiy <andrey.turetskiy@intel.com>
3029 Ilya Verbin <ilya.verbin@intel.com>
3030 Kirill Yukhin <kirill.yukhin@intel.com>
3031 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3032
3033 * config/i386/sse.md
3034 (define_mode_iterator VI48_AVX512F): Delete.
3035 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
3036 (define_mode_iterator VI2_AVX512VL): Ditto.
3037 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
3038 Delete.
3039 (define_insn
3040 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
3041 New.
3042 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
3043 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
3044 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
3045 with VI48_AVX512F_AVX512VL): New.
3046 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
3047 with VI2_AVX512VL): Ditto.
3048
3049 2014-08-19 Marek Polacek <polacek@redhat.com>
3050
3051 * doc/invoke.texi: Document -Wc99-c11-compat.
3052
3053 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3054
3055 * rtl.h (PREV_INSN): Split macro in two: the existing one,
3056 for rvalues, and...
3057 (SET_PREV_INSN): New macro, for use as an lvalue.
3058 (NEXT_INSN, SET_NEXT_INSN): Likewise.
3059
3060 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
3061 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
3062 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3063 (fixup_abnormal_edges): Likewise.
3064 (unlink_insn_chain): Likewise.
3065 (fixup_reorder_chain): Likewise.
3066 (cfg_layout_delete_block): Likewise.
3067 (cfg_layout_merge_blocks): Likewise.
3068 * combine.c (update_cfg_for_uncondjump): Likewise.
3069 * emit-rtl.c (link_insn_into_chain): Likewise.
3070 (remove_insn): Likewise.
3071 (delete_insns_since): Likewise.
3072 (reorder_insns_nobb): Likewise.
3073 (emit_insn_after_1): Likewise.
3074 * final.c (rest_of_clean_state): Likewise.
3075 (final_scan_insn): Likewise.
3076 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
3077 * haifa-sched.c (concat_note_lists): Likewise.
3078 (remove_notes): Likewise.
3079 (restore_other_notes): Likewise.
3080 (move_insn): Likewise.
3081 (unlink_bb_notes): Likewise.
3082 (restore_bb_notes): Likewise.
3083 * jump.c (delete_for_peephole): Likewise.
3084 * optabs.c (emit_libcall_block_1): Likewise.
3085 * reorg.c (emit_delay_sequence): Likewise.
3086 (fill_simple_delay_slots): Likewise.
3087 * sel-sched-ir.c (sel_move_insn): Likewise.
3088 (sel_remove_insn): Likewise.
3089 (get_bb_note_from_pool): Likewise.
3090 * sel-sched.c (move_nop_to_previous_block): Likewise.
3091
3092 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
3093 * config/c6x/c6x.c (gen_one_bundle): Likewise.
3094 (c6x_gen_bundles): Likewise.
3095 (hwloop_optimize): Likewise.
3096 * config/frv/frv.c (frv_function_prologue): Likewise.
3097 (frv_register_nop): Likewise.
3098 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
3099 (ia64_reorg): Likewise.
3100 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
3101 (mep_make_bundle): Likewise.
3102 (mep_bundle_insns): Likewise.
3103 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
3104 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
3105 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
3106
3107 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3108
3109 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
3110 return type from rtx to rtx_insn *.
3111 (BB_END): Likewise.
3112 (BB_HEADER): Likewise.
3113 (BB_FOOTER): Likewise.
3114 (SET_BB_HEAD): Convert to a function.
3115 (SET_BB_END): Likewise.
3116 (SET_BB_HEADER): Likewise.
3117 (SET_BB_FOOTER): Likewise.
3118
3119 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
3120 Strengthen the return type from rtx to rtx_insn *. For now, this
3121 is done by adding a checked cast, but this will eventually
3122 become a field lookup.
3123 (BB_END): Likewise.
3124 (BB_HEADER): Likewise.
3125 (BB_FOOTER): Likewise.
3126 (SET_BB_HEAD): New function, from macro of same name. This is
3127 intended for use as an lvalue, and so returns an rtx& to allow
3128 in-place modification.
3129 (SET_BB_END): Likewise.
3130 (SET_BB_HEADER): Likewise.
3131 (SET_BB_FOOTER): Likewise.
3132
3133 2014-08-18 David Malcolm <dmalcolm@redhat.com>
3134
3135 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
3136 for rvalues, and...
3137 (SET_BB_HEAD): New macro, for use as a lvalue.
3138 (BB_END, SET_BB_END): Likewise.
3139 (BB_HEADER, SET_BB_HEADER): Likewise.
3140 (BB_FOOTER, SET_BB_FOOTER): Likewise.
3141
3142 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
3143 of BB_* macros into SET_BB_* macros.
3144 (fix_crossing_unconditional_branches): Likewise.
3145 * caller-save.c (save_call_clobbered_regs): Likewise.
3146 (insert_one_insn): Likewise.
3147 * cfgbuild.c (find_bb_boundaries): Likewise.
3148 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3149 (outgoing_edges_match): Likewise.
3150 (try_optimize_cfg): Likewise.
3151 * cfgexpand.c (expand_gimple_cond): Likewise.
3152 (expand_gimple_tailcall): Likewise.
3153 (expand_gimple_basic_block): Likewise.
3154 (construct_exit_block): Likewise.
3155 * cfgrtl.c (delete_insn): Likewise.
3156 (create_basic_block_structure): Likewise.
3157 (rtl_delete_block): Likewise.
3158 (rtl_split_block): Likewise.
3159 (emit_nop_for_unique_locus_between): Likewise.
3160 (rtl_merge_blocks): Likewise.
3161 (block_label): Likewise.
3162 (try_redirect_by_replacing_jump): Likewise.
3163 (emit_barrier_after_bb): Likewise.
3164 (fixup_abnormal_edges): Likewise.
3165 (record_effective_endpoints): Likewise.
3166 (relink_block_chain): Likewise.
3167 (fixup_reorder_chain): Likewise.
3168 (fixup_fallthru_exit_predecessor): Likewise.
3169 (cfg_layout_duplicate_bb): Likewise.
3170 (cfg_layout_split_block): Likewise.
3171 (cfg_layout_delete_block): Likewise.
3172 (cfg_layout_merge_blocks): Likewise.
3173 * combine.c (update_cfg_for_uncondjump): Likewise.
3174 * emit-rtl.c (add_insn_after): Likewise.
3175 (remove_insn): Likewise.
3176 (reorder_insns): Likewise.
3177 (emit_insn_after_1): Likewise.
3178 * haifa-sched.c (get_ebb_head_tail): Likewise.
3179 (restore_other_notes): Likewise.
3180 (move_insn): Likewise.
3181 (sched_extend_bb): Likewise.
3182 (fix_jump_move): Likewise.
3183 * ifcvt.c (noce_process_if_block): Likewise.
3184 (dead_or_predicable): Likewise.
3185 * ira.c (update_equiv_regs): Likewise.
3186 * reg-stack.c (change_stack): Likewise.
3187 * sel-sched-ir.c (sel_move_insn): Likewise.
3188 * sel-sched.c (move_nop_to_previous_block): Likewise.
3189
3190 * config/c6x/c6x.c (hwloop_optimize): Likewise.
3191 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3192
3193 2014-08-18 David Malcolm <dmalcolm@redhat.com>
3194
3195 * rtl.h (for_each_rtx_in_insn): New function.
3196 * rtlanal.c (for_each_rtx_in_insn): Likewise.
3197
3198 2014-08-18 David Malcolm <dmalcolm@redhat.com>
3199
3200 * coretypes.h (class rtx_insn): Add forward declaration.
3201
3202 * rtl.h: Include is-a.h.
3203 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
3204 workaround to ensure gengtype knows inheritance is occurring,
3205 whilst continuing to use the pre-existing special-casing for
3206 rtx_def.
3207 (class rtx_insn): New subclass of rtx_def, adding the
3208 invariant that we're dealing with something we can sanely use
3209 INSN_UID, NEXT_INSN, PREV_INSN on.
3210 (is_a_helper <rtx_insn *>::test): New.
3211 (is_a_helper <const rtx_insn *>::test): New.
3212
3213 2014-08-18 David Malcolm <dmalcolm@redhat.com>
3214
3215 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
3216
3217 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
3218
3219 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
3220 comdats as extern.
3221
3222 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
3223
3224 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
3225 to BUILT_IN_UNREACHABLE.
3226
3227 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
3228
3229 PR target/62011
3230 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
3231 New tune flag.
3232 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
3233 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
3234 (ffs<mode>2): Do not expand with tzcnt for
3235 TARGET_AVOID_FALSE_DEP_FOR_BMI.
3236 (ffssi2_no_cmove): Ditto.
3237 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
3238 (ctz<mode>2): New expander.
3239 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
3240 (*ctz<mode>2_falsedep): New insn.
3241 (*ctz<mode>2): Rename from ctz<mode>2.
3242 (clz<mode>2_lzcnt): New expander.
3243 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
3244 (*clz<mode>2_lzcnt_falsedep): New insn.
3245 (*clz<mode>2): Rename from ctz<mode>2.
3246 (popcount<mode>2): New expander.
3247 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
3248 (*popcount<mode>2_falsedep): New insn.
3249 (*popcount<mode>2): Rename from ctz<mode>2.
3250 (*popcount<mode>2_cmp): Remove.
3251 (*popcountsi2_cmp_zext): Ditto.
3252
3253 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
3254
3255 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
3256 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
3257 * config/microblaze/microblaze.h
3258 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
3259
3260 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
3261
3262 PR other/62168
3263 * configure.ac: Set install_gold_as_default to no for
3264 --enable-gold=no.
3265 * configure: Regenerated.
3266
3267 2014-08-18 Roman Gareev <gareevroman@gmail.com>
3268
3269 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
3270 * config.in: Add undef of HAVE_isl.
3271 * configure: Regenerate.
3272 * configure.ac: Add definition of HAVE_isl.
3273 * graphite-blocking.c: Add checking of HAVE_isl.
3274 * graphite-dependences.c: Likewise.
3275 * graphite-interchange.c: Likewise.
3276 * graphite-isl-ast-to-gimple.c: Likewise.
3277 * graphite-optimize-isl.c: Likewise.
3278 * graphite-poly.c: Likewise.
3279 * graphite-scop-detection.c: Likewise.
3280 * graphite-sese-to-poly.c: Likewise.
3281 * graphite.c: Likewise.
3282 * toplev.c: Replace the checking of HAVE_cloog with the checking
3283 of HAVE_isl.
3284
3285 2014-08-18 Richard Biener <rguenther@suse.de>
3286
3287 PR tree-optimization/62090
3288 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
3289 (fold_builtin_3): Do not fold snprintf.
3290 (fold_builtin_4): Likewise.
3291 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
3292 moved from builtins.c.
3293 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
3294 (gimple_fold_builtin): Do not fold sprintf here.
3295
3296 2014-08-18 Richard Biener <rguenther@suse.de>
3297
3298 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
3299 code to ...
3300 (maybe_canonicalize_mem_ref_addr): ... this function.
3301 (fold_stmt_1): Apply it here before all simplification.
3302
3303 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
3304
3305 PR ipa/61800
3306 * cgraph.h (cgraph_node::create_indirect_edge): Add
3307 compute_indirect_info param.
3308 * cgraph.c (cgraph_node::create_indirect_edge): Compute
3309 indirect_info only when it is required.
3310 * cgraphclones.c (cgraph_clone_edge): Do not recompute
3311 indirect_info fore cloned indirect edge.
3312
3313 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3315 Anna Tikhonova <anna.tikhonova@intel.com>
3316 Ilya Tocar <ilya.tocar@intel.com>
3317 Andrey Turetskiy <andrey.turetskiy@intel.com>
3318 Ilya Verbin <ilya.verbin@intel.com>
3319 Kirill Yukhin <kirill.yukhin@intel.com>
3320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3321
3322 * config/i386/sse.md
3323 (define_mode_iterator VI8_AVX2_AVX512BW): New.
3324 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
3325
3326 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3327 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3328 Anna Tikhonova <anna.tikhonova@intel.com>
3329 Ilya Tocar <ilya.tocar@intel.com>
3330 Andrey Turetskiy <andrey.turetskiy@intel.com>
3331 Ilya Verbin <ilya.verbin@intel.com>
3332 Kirill Yukhin <kirill.yukhin@intel.com>
3333 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3334
3335 * config/i386/sse.md
3336 (define_mode_iterator VF1_AVX512VL): New.
3337 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
3338 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
3339 New.
3340
3341 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3342 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3343 Anna Tikhonova <anna.tikhonova@intel.com>
3344 Ilya Tocar <ilya.tocar@intel.com>
3345 Andrey Turetskiy <andrey.turetskiy@intel.com>
3346 Ilya Verbin <ilya.verbin@intel.com>
3347 Kirill Yukhin <kirill.yukhin@intel.com>
3348 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3349
3350 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
3351 * config/i386/i386.md
3352 (define_code_iterator any_float): New.
3353 (define_code_attr floatsuffix): New.
3354 * config/i386/sse.md
3355 (define_mode_iterator VF1_128_256VL): New.
3356 (define_mode_iterator VF2_512_256VL): New.
3357 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
3358 TARGET check.
3359 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
3360 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
3361 New.
3362 (define_mode_attr qq2pssuff): New.
3363 (define_mode_attr sselongvecmode): New.
3364 (define_mode_attr sselongvecmodelower): New.
3365 (define_mode_attr sseintvecmode3): New.
3366 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
3367 New.
3368 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
3369 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
3370 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
3371 (define_insn "ufloatv2siv2df2<mask_name>"): New.
3372
3373 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3375 Anna Tikhonova <anna.tikhonova@intel.com>
3376 Ilya Tocar <ilya.tocar@intel.com>
3377 Andrey Turetskiy <andrey.turetskiy@intel.com>
3378 Ilya Verbin <ilya.verbin@intel.com>
3379 Kirill Yukhin <kirill.yukhin@intel.com>
3380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3381
3382 * config/i386/sse.md
3383 (define_mode_iterator VF2_AVX512VL): New.
3384 (define_mode_attr sseintvecmode2): New.
3385 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
3386 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
3387 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
3388 (define_insn
3389 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
3390 Ditto.
3391 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
3392 Ditto.
3393 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
3394 Ditto.
3395
3396 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3398 Anna Tikhonova <anna.tikhonova@intel.com>
3399 Ilya Tocar <ilya.tocar@intel.com>
3400 Andrey Turetskiy <andrey.turetskiy@intel.com>
3401 Ilya Verbin <ilya.verbin@intel.com>
3402 Kirill Yukhin <kirill.yukhin@intel.com>
3403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3404
3405 * config/i386/i386.md
3406 (define_insn "*movoi_internal_avx"): Add evex version.
3407 (define_insn "*movti_internal"): Ditto.
3408
3409 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3411 Anna Tikhonova <anna.tikhonova@intel.com>
3412 Ilya Tocar <ilya.tocar@intel.com>
3413 Andrey Turetskiy <andrey.turetskiy@intel.com>
3414 Ilya Verbin <ilya.verbin@intel.com>
3415 Kirill Yukhin <kirill.yukhin@intel.com>
3416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3417
3418 * config/i386/i386.md
3419 (define_attr "isa"): Add avx512dq, noavx512dq.
3420 (define_attr "enabled"): Ditto.
3421 * config/i386/sse.md
3422 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
3423
3424 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
3425 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3426 Anna Tikhonova <anna.tikhonova@intel.com>
3427 Ilya Tocar <ilya.tocar@intel.com>
3428 Andrey Turetskiy <andrey.turetskiy@intel.com>
3429 Ilya Verbin <ilya.verbin@intel.com>
3430 Kirill Yukhin <kirill.yukhin@intel.com>
3431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3432
3433 * config/i386/i386.c
3434 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
3435 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
3436 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
3437 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
3438 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
3439 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
3440 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
3441 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
3442 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
3443 * config/i386/sse.md
3444 (define_mode_iterator VMOVE): Allow V4TI mode.
3445 (define_mode_iterator V_AVX512VL): New.
3446 (define_mode_iterator V): New handling for AVX512VL.
3447 (define_insn "avx512f_load<mode>_mask"): Delete.
3448 (define_insn "<avx512>_load<mode>_mask"): New.
3449 (define_insn "avx512f_store<mode>_mask"): Delete.
3450 (define_insn "<avx512>_store<mode>_mask"): New.
3451
3452
3453 2014-08-18 Yury Gribov <y.gribov@samsung.com>
3454
3455 PR sanitizer/62089
3456 * asan.c (instrument_derefs): Fix bitfield check.
3457
3458 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
3459
3460 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
3461 * config/rs6000/htm.md (ttest): Remove clobber.
3462 * config/rs6000/predicates.md (any_mask_operand): New predicate.
3463 (and_operand): Reformat.
3464 (and_2rld_operand): New predicate.
3465 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
3466 parameter.
3467 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
3468 parameter. Handle AND directly.
3469 (rs6000_split_logical_di): Remove last parameter.
3470 (rs6000_split_logical): Remove last parameter. Remove obsolete
3471 comment.
3472 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
3473 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
3474 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
3475 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
3476 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
3477 and 5 anonymous splitters): Delete.
3478 (and<mode>3): New expander.
3479 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
3480 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
3481 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
3482 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
3483 (floatdisf2_internal1): Remove clobbers.
3484 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
3485 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
3486 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
3487 (and<mode>3 for BOOL_128): Remove clobber.
3488 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
3489 rs6000_split_logical.
3490 (*bool<mode>3_internal for BOOL_128): Adjust call of
3491 rs6000_split_logical.
3492 (*boolc<mode>3_internal1 for BOOL_128,
3493 *boolc<mode>3_internal2 for BOOL_128,
3494 *boolcc<mode>3_internal1 for BOOL_128,
3495 *boolcc<mode>3_internal2 for BOOL_128,
3496 *eqv<mode>3_internal1 for BOOL_128,
3497 *eqv<mode>3_internal2 for BOOL_128,
3498 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
3499 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
3500 clobber.
3501 (*vec_reload_and_reg_<mptrsize>): Delete.
3502
3503 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
3504
3505 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
3506 and split, *boolccsi3_internal3 and split): Delete.
3507 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
3508 *boolccdi3_internal3 and split): Delete.
3509 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
3510 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
3511
3512 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
3513
3514 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
3515 and split, *boolcsi3_internal3 and split): Delete.
3516 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
3517 *boolcdi3_internal3 and split): Delete.
3518 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
3519
3520 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
3521
3522 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
3523 <'u'>: Also support printing the low-order 16 bits.
3524 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
3525 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
3526 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
3527 *booldi3_internal3 and split): Delete.
3528 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
3529 *bool<mode>3_dot2): New.
3530 (two anonymous define_splits for non_logical_cint_operand): Merge.
3531
3532 2014-08-17 Marek Polacek <polacek@redhat.com>
3533 Manuel López-Ibáñez <manu@gcc.gnu.org>
3534
3535 PR c/62059
3536 * diagnostic.c (adjust_line): Add gcc_checking_assert.
3537 (diagnostic_show_locus): Don't print caret diagnostic
3538 if a column is larger than the line_width.
3539
3540 2014-08-17 Roman Gareev <gareevroman@gmail.com>
3541
3542 * common.opt: Make the ISL AST generator to be the main code generator
3543 of Graphite.
3544
3545 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
3546
3547 * wide-int.h (generic_wide_int): Declare as class instead of struct.
3548
3549 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
3550
3551 PR target/61641
3552 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
3553 Declare.
3554 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
3555 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
3556 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
3557 Define.
3558 * config/pa/pa.md (begin_brtab): Delete insn.
3559 (end_brtab): Likewise.
3560
3561 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3562
3563 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
3564
3565 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
3566
3567 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3568 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3569 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3570 (get_dynamic_type): Remove.
3571 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3572 (clear_speculation): Bring to ipa-deivrt.h
3573 (get_class_context): Rename to ...
3574 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3575 (contains_type_p): Update.
3576 (get_dynamic_type): Rename to ...
3577 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3578 (possible_polymorphic_call_targets): UPdate.
3579 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3580 * ipa-prop.c (ipa_analyze_call_uses): Update.
3581
3582 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
3583
3584 * doc/invoke.texi (SH options): Document missing processor variant
3585 options. Remove references to Hitachi. Undocument deprecated mspace
3586 option.
3587
3588 2014-08-15 Jason Merrill <jason@redhat.com>
3589
3590 * tree.c (type_hash_canon): Uncomment assert.
3591
3592 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3593
3594 * input.h (in_system_header_at): Add comment.
3595
3596 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3597
3598 PR fortran/44054
3599 * diagnostic.c (build_message_string): Make it extern.
3600 * diagnostic.h (build_message_string): Make it extern.
3601
3602 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
3603
3604 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
3605 load/store from/to non-floating class pseudo.
3606
3607 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3608
3609 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
3610
3611 2014-08-15 Richard Biener <rguenther@suse.de>
3612
3613 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
3614 (get_constraint_for_ssa_var): Remove dead code.
3615 (get_constraint_for_1): Adjust.
3616 (find_what_var_points_to): Likewise.
3617 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
3618
3619 2014-08-15 Ilya Tocar <tocarip@gmail.com>
3620
3621 PR target/61878
3622 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
3623 (_mm512_mask_cmpge_epu32_mask): Ditto.
3624 (_mm512_cmpge_epu32_mask): Ditto.
3625 (_mm512_mask_cmpge_epi64_mask): Ditto.
3626 (_mm512_cmpge_epi64_mask): Ditto.
3627 (_mm512_mask_cmpge_epu64_mask): Ditto.
3628 (_mm512_cmpge_epu64_mask): Ditto.
3629 (_mm512_mask_cmple_epi32_mask): Ditto.
3630 (_mm512_cmple_epi32_mask): Ditto.
3631 (_mm512_mask_cmple_epu32_mask): Ditto.
3632 (_mm512_cmple_epu32_mask): Ditto.
3633 (_mm512_mask_cmple_epi64_mask): Ditto.
3634 (_mm512_cmple_epi64_mask): Ditto.
3635 (_mm512_mask_cmple_epu64_mask): Ditto.
3636 (_mm512_cmple_epu64_mask): Ditto.
3637 (_mm512_mask_cmplt_epi32_mask): Ditto.
3638 (_mm512_cmplt_epi32_mask): Ditto.
3639 (_mm512_mask_cmplt_epu32_mask): Ditto.
3640 (_mm512_cmplt_epu32_mask): Ditto.
3641 (_mm512_mask_cmplt_epi64_mask): Ditto.
3642 (_mm512_cmplt_epi64_mask): Ditto.
3643 (_mm512_mask_cmplt_epu64_mask): Ditto.
3644 (_mm512_cmplt_epu64_mask): Ditto.
3645 (_mm512_mask_cmpneq_epi32_mask): Ditto.
3646 (_mm512_mask_cmpneq_epu32_mask): Ditto.
3647 (_mm512_cmpneq_epu32_mask): Ditto.
3648 (_mm512_mask_cmpneq_epi64_mask): Ditto.
3649 (_mm512_cmpneq_epi64_mask): Ditto.
3650 (_mm512_mask_cmpneq_epu64_mask): Ditto.
3651 (_mm512_cmpneq_epu64_mask): Ditto.
3652 (_mm512_castpd_ps): Ditto.
3653 (_mm512_castpd_si512): Ditto.
3654 (_mm512_castps_pd): Ditto.
3655 (_mm512_castps_si512): Ditto.
3656 (_mm512_castsi512_ps): Ditto.
3657 (_mm512_castsi512_pd): Ditto.
3658 (_mm512_castpd512_pd128): Ditto.
3659 (_mm512_castps512_ps128): Ditto.
3660 (_mm512_castsi512_si128): Ditto.
3661 (_mm512_castpd512_pd256): Ditto.
3662 (_mm512_castps512_ps256): Ditto.
3663 (_mm512_castsi512_si256): Ditto.
3664 (_mm512_castpd128_pd512): Ditto.
3665 (_mm512_castps128_ps512): Ditto.
3666 (_mm512_castsi128_si512): Ditto.
3667 (_mm512_castpd256_pd512): Ditto.
3668 (_mm512_castps256_ps512): Ditto.
3669 (_mm512_castsi256_si512): Ditto.
3670 (_mm512_cmpeq_epu32_mask): Ditto.
3671 (_mm512_mask_cmpeq_epu32_mask): Ditto.
3672 (_mm512_mask_cmpeq_epu64_mask): Ditto.
3673 (_mm512_cmpeq_epu64_mask): Ditto.
3674 (_mm512_cmpgt_epu32_mask): Ditto.
3675 (_mm512_mask_cmpgt_epu32_mask): Ditto.
3676 (_mm512_mask_cmpgt_epu64_mask): Ditto.
3677 (_mm512_cmpgt_epu64_mask): Ditto.
3678 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
3679 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
3680 * config/i386/i386.c (enum ix86_builtins): Add
3681 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
3682 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
3683 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
3684 (bdesc_args): Add __builtin_ia32_si512_256si,
3685 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
3686 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
3687 __builtin_ia32_pd512_pd.
3688 (ix86_expand_args_builtin): Handle new FTYPEs.
3689 * config/i386/sse.md (castmode): Add 512-bit modes.
3690 (AVX512MODE2P): New.
3691 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
3692 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
3693
3694 2014-08-15 Richard Biener <rguenther@suse.de>
3695
3696 * fold-const.c (tree_swap_operands_p): Put all constants
3697 last, also strip sign-changing NOPs when considering further
3698 canonicalization. Canonicalize also when optimizing for size.
3699
3700 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3701
3702 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
3703 one_match > zero_match case to just before simple_sequence.
3704
3705 2014-08-15 Richard Biener <rguenther@suse.de>
3706
3707 * data-streamer.h (streamer_string_index, string_for_index):
3708 Remove.
3709 * data-streamer-out.c (streamer_string_index): Make static.
3710 * data-streamer-in.c (string_for_index): Likewise.
3711 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
3712 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
3713
3714 2014-08-15 Richard Biener <rguenther@suse.de>
3715
3716 PR tree-optimization/62031
3717 * tree-data-ref.c (dr_analyze_indices): Do not set
3718 DR_UNCONSTRAINED_BASE.
3719 (dr_may_alias_p): All indirect accesses have to go the
3720 formerly DR_UNCONSTRAINED_BASE path.
3721 * tree-data-ref.h (struct indices): Remove
3722 unconstrained_base member.
3723 (DR_UNCONSTRAINED_BASE): Remove.
3724
3725 2014-08-15 Jakub Jelinek <jakub@redhat.com>
3726
3727 PR middle-end/62092
3728 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
3729 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
3730 in OMP_CLAUSE_MAP in some outer target region.
3731
3732 2014-08-15 Bin Cheng <bin.cheng@arm.com>
3733
3734 * tree-ssa-loop-ivopts.c (ivopts_data): New field
3735 name_expansion_cache.
3736 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
3737 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
3738 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
3739 (difference_cannot_overflow_p): New parameter. Use affine
3740 expansion for equality check.
3741 (iv_elimination_compare_lt): Pass new argument.
3742
3743 2014-08-14 DJ Delorie <dj@redhat.com>
3744
3745 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
3746 variables to the accumulator.
3747
3748 * config/rl78/predicates.md (rl78_near_mem_operand): New.
3749 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
3750 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
3751 with far-far moves.
3752
3753 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
3754 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
3755 (umulqihi3_virt): Likewise.
3756 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
3757 (umulqihi3_real): Likewise.
3758
3759 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
3760
3761 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
3762
3763 PR tree-optimization/62091
3764 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
3765 function_entry_reached.
3766 (walk_aliased_vdefs): Clear it here.
3767 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
3768
3769 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
3770
3771 * ipa-utils.h (compare_virtual_tables): Declare.
3772 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
3773
3774 2014-08-14 Marek Polacek <polacek@redhat.com>
3775
3776 DR 458
3777 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
3778 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
3779
3780 2014-08-14 Tom de Vries <tom@codesourcery.com>
3781
3782 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
3783
3784 2014-08-14 Tom de Vries <tom@codesourcery.com>
3785
3786 PR rtl-optimization/62004
3787 PR rtl-optimization/62030
3788 * ifcvt.c (rtx_interchangeable_p): New function.
3789 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
3790 * emit-rtl.h (mem_attrs_eq_p): Declare.
3791
3792 2014-08-14 Roman Gareev <gareevroman@gmail.com>
3793
3794 * graphite-scop-detection.c:
3795 Add inclusion of cp-tree.h.
3796 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
3797 in case they are pointers to object types
3798
3799 2014-08-14 Richard Biener <rguenther@suse.de>
3800
3801 * BASE-VER: Change to 5.0.0
3802
3803 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3805 Anna Tikhonova <anna.tikhonova@intel.com>
3806 Ilya Tocar <ilya.tocar@intel.com>
3807 Andrey Turetskiy <andrey.turetskiy@intel.com>
3808 Ilya Verbin <ilya.verbin@intel.com>
3809 Kirill Yukhin <kirill.yukhin@intel.com>
3810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3811
3812 * config/i386/sse.md (define_mode_attr avx512): New.
3813 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
3814 V4DI modes.
3815 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
3816 (define_mode_attr ssse3_avx2): Ditto.
3817 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
3818 (define_mode_attr avx2_avx512bw): New.
3819 (define_mode_attr ssedoublemodelower): New.
3820 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
3821 V32HI, V64QI modes.
3822 (define_mode_attr ssebytemode): Allow V8DI modes.
3823 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
3824 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
3825 (define_mode_attr ssePSmode2): New.
3826 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
3827 V16HI, V32HI modes.
3828 (define_mode_attr dbpsadbwmode): New.
3829 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
3830 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
3831 (vi8_sse4_1_avx2_avx512): New.
3832 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
3833 mode attribute.
3834 (define_mode_attr blendbits): Move before its immediate use.
3835
3836 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3837 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3838 Anna Tikhonova <anna.tikhonova@intel.com>
3839 Ilya Tocar <ilya.tocar@intel.com>
3840 Andrey Turetskiy <andrey.turetskiy@intel.com>
3841 Ilya Verbin <ilya.verbin@intel.com>
3842 Kirill Yukhin <kirill.yukhin@intel.com>
3843 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3844
3845 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
3846 * config/i386/subst.md
3847 (define_mode_iterator SUBST_V): Update.
3848 (define_mode_iterator SUBST_A): Ditto.
3849 (define_subst_attr "mask_operand7"): New.
3850 (define_subst_attr "mask_operand10"): New.
3851 (define_subst_attr "mask_operand_arg34") : New.
3852 (define_subst_attr "mask_expand_op3"): New.
3853 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
3854 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
3855 (define_subst_attr "mask_avx512vl_condition"): New.
3856 (define_subst_attr "round_mask_operand4"): Ditto.
3857 (define_subst_attr "round_mask_scalar_op3"): Delete.
3858 (define_subst_attr "round_mask_op4"): New.
3859 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
3860 V16SImode.
3861 (define_subst_attr "round_modev8sf_condition"): New.
3862 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
3863 <MODE>mode.
3864 (define_subst_attr "round_saeonly_mask_operand4"): New.
3865 (define_subst_attr "round_saeonly_mask_op4"): New.
3866 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
3867 V8DImode, V16SImode.
3868 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
3869 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
3870 (define_subst_attr "mask_expand4_args"): New.
3871 (define_subst "mask_expand4"): New.
3872
3873 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3874 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3875 Anna Tikhonova <anna.tikhonova@intel.com>
3876 Ilya Tocar <ilya.tocar@intel.com>
3877 Andrey Turetskiy <andrey.turetskiy@intel.com>
3878 Ilya Verbin <ilya.verbin@intel.com>
3879 Kirill Yukhin <kirill.yukhin@intel.com>
3880 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3881
3882 * config/i386/i386.md
3883 (define_attr "isa"): Add avx512bw,noavx512bw.
3884 (define_attr "enabled"): Ditto.
3885 (define_split): Add 32/64-bit mask logic.
3886 (define_insn "*k<logic>qi"): New.
3887 (define_insn "*k<logic>hi"): New.
3888 (define_insn "*anddi_1"): Add mask version.
3889 (define_insn "*andsi_1"): Ditto.
3890 (define_insn "*<code><mode>_1"): Ditto.
3891 (define_insn "*<code>hi_1"): Ditto.
3892 (define_insn "kxnor<mode>"): New.
3893 (define_insn "kunpcksi"): New.
3894 (define_insn "kunpckdi"): New.
3895 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
3896 (define_insn "*one_cmplhi2_1"): Ditto.
3897
3898 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3899 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3900 Anna Tikhonova <anna.tikhonova@intel.com>
3901 Ilya Tocar <ilya.tocar@intel.com>
3902 Andrey Turetskiy <andrey.turetskiy@intel.com>
3903 Ilya Verbin <ilya.verbin@intel.com>
3904 Kirill Yukhin <kirill.yukhin@intel.com>
3905 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3906
3907 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
3908 V32HImode.
3909
3910 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3911 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3912 Anna Tikhonova <anna.tikhonova@intel.com>
3913 Ilya Tocar <ilya.tocar@intel.com>
3914 Andrey Turetskiy <andrey.turetskiy@intel.com>
3915 Ilya Verbin <ilya.verbin@intel.com>
3916 Kirill Yukhin <kirill.yukhin@intel.com>
3917 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3918
3919 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
3920 registers.
3921 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
3922 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
3923 xmm/ymm16+ when availble.
3924 * config/i386/i386.h
3925 (HARD_REGNO_NREGS): Add mask regs.
3926 (VALID_AVX512F_REG_MODE): Ditto.
3927 (VALID_AVX512F_REG_MODE) : Define.
3928 (VALID_MASK_AVX512BW_MODE): Ditto.
3929 (reg_class) (MASK_REG_P(X)): Define.
3930 * config/i386/i386.md: Do not split long moves with mask register,
3931 use kmovb if avx512bw is availible.
3932 (movdi_internal): Handle mask registers.
3933
3934 2014-08-14 Richard Biener <rguenther@suse.de>
3935
3936 PR tree-optimization/62081
3937 * tree-ssa-loop.c (pass_fix_loops): New pass.
3938 (pass_tree_loop::gate): Do not fixup loops here.
3939 * tree-pass.h (make_pass_fix_loops): Declare.
3940 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
3941
3942 2014-08-14 Richard Biener <rguenther@suse.de>
3943
3944 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
3945 (type_hash_canon): ... this and avoid 2nd lookup for the add.
3946
3947 2014-08-14 Richard Biener <rguenther@suse.de>
3948
3949 PR tree-optimization/62090
3950 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
3951 (fold_builtin_2): Do not fold sprintf.
3952 (fold_builtin_3): Likewise.
3953 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
3954 moved from builtins.c.
3955 (gimple_fold_builtin): Fold sprintf.
3956
3957 2014-08-14 Richard Biener <rguenther@suse.de>
3958
3959 PR rtl-optimization/62079
3960 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
3961 run cleanup_cfg.
3962
3963 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
3964
3965 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
3966 current_function_decl.
3967
3968 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
3969
3970 * cgraph.c (cgraph_node::function_symbol): Fix wrong
3971 cgraph_function_node to cgraph_node::function_symbol
3972 refactoring.
3973
3974 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
3975
3976 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
3977 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
3978
3979 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
3980
3981 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
3982 warning.
3983
3984 2014-08-13 Roman Gareev <gareevroman@gmail.com>
3985
3986 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
3987 generator.
3988
3989 2014-08-12 Jakub Jelinek <jakub@redhat.com>
3990
3991 PR target/62025
3992 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
3993 any registers that are used in mem_insn.
3994
3995 2014-08-12 Steve Ellcey <sellcey@mips.com>
3996
3997 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
3998
3999 2014-08-12 Steve Ellcey <sellcey@mips.com>
4000
4001 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
4002 (MULTILIB_DIRNAMES): Ditto.
4003 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
4004 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
4005 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
4006 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
4007 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
4008 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
4009
4010 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4011
4012 PR target/61413
4013 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
4014 of __ARM_SIZEOF_WCHAR_T.
4015
4016 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4017
4018 PR target/62098
4019 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
4020 Remove unnecessary attributes.
4021
4022 2014-08-12 Yury Gribov <y.gribov@samsung.com>
4023
4024 * internal-fn.c (init_internal_fns): Fix off-by-one.
4025
4026 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4027 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4028 Anna Tikhonova <anna.tikhonova@intel.com>
4029 Ilya Tocar <ilya.tocar@intel.com>
4030 Andrey Turetskiy <andrey.turetskiy@intel.com>
4031 Ilya Verbin <ilya.verbin@intel.com>
4032 Kirill Yukhin <kirill.yukhin@intel.com>
4033 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4034
4035 * config/i386/i386.c (standard_sse_constant_opcode): Use
4036 vpxord/vpternlog if avx512 is availible.
4037
4038 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
4039
4040 PR middle-end/62103
4041 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
4042 bitfields, that is when size doesn't match the size of type or the
4043 size of the constructor.
4044
4045 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4046
4047 * config/rs6000/constraints.md (wh constraint): New constraint,
4048 for FP registers if direct move is available.
4049 (wi constraint): New constraint, for VSX/FP registers that can
4050 handle 64-bit integers.
4051 (wj constraint): New constraint for VSX/FP registers that can
4052 handle 64-bit integers for direct moves.
4053 (wk constraint): New constraint for VSX/FP registers that can
4054 handle 64-bit doubles for direct moves.
4055 (wy constraint): Make documentation match implementation.
4056
4057 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
4058 scalar_in_vmx_p field to simplify tests of whether SFmode or
4059 DFmode can go in the Altivec registers.
4060 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
4061 (rs6000_setup_reg_addr_masks): Likewise.
4062 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
4063 field, and wh/wi/wj/wk constraints.
4064 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
4065 the wh/wi/wj/wk constraints.
4066 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
4067 upper registers, prefer VSX registers unless the operation is a
4068 memory operation with REG+OFFSET addressing.
4069
4070 * config/rs6000/vsx.md (VSr mode attribute): Add support for
4071 DImode. Change SFmode to use ww constraint instead of d to allow
4072 SF registers in the upper registers.
4073 (VSr2): Likewise.
4074 (VSr3): Likewise.
4075 (VSr5): Fix thinko in comment.
4076 (VSa): New mode attribute that is an alternative to wa, that
4077 returns the VSX register class that a mode can go in, but may not
4078 be the preferred register class.
4079 (VS_64dm): New mode attribute for appropriate register classes for
4080 referencing 64-bit elements of vectors for direct moves and normal
4081 moves.
4082 (VS_64reg): Likewise.
4083 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
4084 register allocator to only registers the data type can handle.
4085 (vsx_le_perm_load_<mode>): Likewise.
4086 (vsx_le_perm_store_<mode>): Likewise.
4087 (vsx_xxpermdi2_le_<mode>): Likewise.
4088 (vsx_xxpermdi4_le_<mode>): Likewise.
4089 (vsx_lxvd2x2_le_<mode>): Likewise.
4090 (vsx_lxvd2x4_le_<mode>): Likewise.
4091 (vsx_stxvd2x2_le_<mode>): Likewise.
4092 (vsx_add<mode>3): Likewise.
4093 (vsx_sub<mode>3): Likewise.
4094 (vsx_mul<mode>3): Likewise.
4095 (vsx_div<mode>3): Likewise.
4096 (vsx_tdiv<mode>3_internal): Likewise.
4097 (vsx_fre<mode>2): Likewise.
4098 (vsx_neg<mode>2): Likewise.
4099 (vsx_abs<mode>2): Likewise.
4100 (vsx_nabs<mode>2): Likewise.
4101 (vsx_smax<mode>3): Likewise.
4102 (vsx_smin<mode>3): Likewise.
4103 (vsx_sqrt<mode>2): Likewise.
4104 (vsx_rsqrte<mode>2): Likewise.
4105 (vsx_tsqrt<mode>2_internal): Likewise.
4106 (vsx_fms<mode>4): Likewise.
4107 (vsx_nfma<mode>4): Likewise.
4108 (vsx_eq<mode>): Likewise.
4109 (vsx_gt<mode>): Likewise.
4110 (vsx_ge<mode>): Likewise.
4111 (vsx_eq<mode>_p): Likewise.
4112 (vsx_gt<mode>_p): Likewise.
4113 (vsx_ge<mode>_p): Likewise.
4114 (vsx_xxsel<mode>): Likewise.
4115 (vsx_xxsel<mode>_uns): Likewise.
4116 (vsx_copysign<mode>3): Likewise.
4117 (vsx_float<VSi><mode>2): Likewise.
4118 (vsx_floatuns<VSi><mode>2): Likewise.
4119 (vsx_fix_trunc<mode><VSi>2): Likewise.
4120 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
4121 (vsx_x<VSv>r<VSs>i): Likewise.
4122 (vsx_x<VSv>r<VSs>ic): Likewise.
4123 (vsx_btrunc<mode>2): Likewise.
4124 (vsx_b2trunc<mode>2): Likewise.
4125 (vsx_floor<mode>2): Likewise.
4126 (vsx_ceil<mode>2): Likewise.
4127 (vsx_<VS_spdp_insn>): Likewise.
4128 (vsx_xscvspdp): Likewise.
4129 (vsx_xvcvspuxds): Likewise.
4130 (vsx_float_fix_<mode>2): Likewise.
4131 (vsx_set_<mode>): Likewise.
4132 (vsx_extract_<mode>_internal1): Likewise.
4133 (vsx_extract_<mode>_internal2): Likewise.
4134 (vsx_extract_<mode>_load): Likewise.
4135 (vsx_extract_<mode>_store): Likewise.
4136 (vsx_splat_<mode>): Likewise.
4137 (vsx_xxspltw_<mode>): Likewise.
4138 (vsx_xxspltw_<mode>_direct): Likewise.
4139 (vsx_xxmrghw_<mode>): Likewise.
4140 (vsx_xxmrglw_<mode>): Likewise.
4141 (vsx_xxsldwi_<mode>): Likewise.
4142 (vsx_xscvdpspn): Tighten constraints to only use register classes
4143 the types use.
4144 (vsx_xscvspdpn): Likewise.
4145 (vsx_xscvdpspn_scalar): Likewise.
4146
4147 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
4148 wj, and wk constraints.
4149 (GPR_REG_CLASS_P): New helper macro for register classes targeting
4150 general purpose registers.
4151
4152 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
4153 direct moves.
4154 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
4155 DImode instead of wm. Use wk constraint for direct move of DFmode
4156 instead of wm.
4157 (extendsidi2_lfiwax): Likewise.
4158 (lfiwax): Likewise.
4159 (lfiwzx): Likewise.
4160 (movdi_internal64): Likewise.
4161
4162 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
4163 wk constraints. Make the wy constraint documentation match them
4164 implementation.
4165
4166 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
4167
4168 Replacement of isl_int by isl_val
4169 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
4170 (compute_bounds_for_param): use isl_val instead of isl_int
4171 (compute_bounds_for_loop): likewise
4172 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
4173 (build_linearized_memory_access): use isl_val instead of isl_int
4174 (pdr_stride_in_loop): likewise
4175 * graphite-optimize-isl.c:
4176 (getPrevectorMap): use isl_val instead of isl_int
4177 * graphite-poly.c:
4178 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
4179 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
4180 (extern the_isl_ctx): declare
4181 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
4182 (extract_affine_gmp): likewise
4183 (wrap): likewise
4184 (build_loop_iteration_domains): likewise
4185 (add_param_constraints): likewise
4186
4187 2014-08-11 Richard Biener <rguenther@suse.de>
4188
4189 PR tree-optimization/62075
4190 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
4191 handle uses in patterns.
4192
4193 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4194 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4195 Anna Tikhonova <anna.tikhonova@intel.com>
4196 Ilya Tocar <ilya.tocar@intel.com>
4197 Andrey Turetskiy <andrey.turetskiy@intel.com>
4198 Ilya Verbin <ilya.verbin@intel.com>
4199 Kirill Yukhin <kirill.yukhin@intel.com>
4200 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4201
4202 * common/config/i386/i386-common.c
4203 (OPTION_MASK_ISA_AVX512VL_SET): Define.
4204 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
4205 (ix86_handle_option): Handle OPT_mavx512vl.
4206 * config/i386/cpuid.h (bit_AVX512VL): Define.
4207 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
4208 set -mavx512vl accordingly.
4209 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4210 OPTION_MASK_ISA_AVX512VL.
4211 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
4212 (ix86_option_override_internal): Define PTA_AVX512VL, handle
4213 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
4214 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
4215 * config/i386/i386.h (TARGET_AVX512VL): Define.
4216 (TARGET_AVX512VL_P(x)): Ditto.
4217 * config/i386/i386.opt: Add mavx512vl.
4218
4219 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
4220
4221 PR tree-optimization/62073
4222 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
4223 a basic block.
4224
4225 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4227 Anna Tikhonova <anna.tikhonova@intel.com>
4228 Ilya Tocar <ilya.tocar@intel.com>
4229 Andrey Turetskiy <andrey.turetskiy@intel.com>
4230 Ilya Verbin <ilya.verbin@intel.com>
4231 Kirill Yukhin <kirill.yukhin@intel.com>
4232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4233
4234 * common/config/i386/i386-common.c
4235 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
4236 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
4237 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
4238 (ix86_handle_option): Handle OPT_mavx512bw.
4239 * config/i386/cpuid.h (bit_AVX512BW): Define.
4240 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
4241 set -mavx512bw accordingly.
4242 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4243 OPTION_MASK_ISA_AVX512BW.
4244 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
4245 (ix86_option_override_internal): Define PTA_AVX512BW, handle
4246 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
4247 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
4248 * config/i386/i386.h (TARGET_AVX512BW): Define.
4249 (TARGET_AVX512BW_P(x)): Ditto.
4250 * config/i386/i386.opt: Add mavx512bw.
4251
4252 2014-08-11 Richard Biener <rguenther@suse.de>
4253
4254 PR tree-optimization/62070
4255 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
4256 Remove SSA checking.
4257
4258 2014-08-11 Yury Gribov <y.gribov@samsung.com>
4259
4260 * asan.c (asan_check_flags): New enum.
4261 (build_check_stmt_with_calls): Removed function.
4262 (build_check_stmt): Split inlining logic to
4263 asan_expand_check_ifn.
4264 (instrument_derefs): Rename parameter.
4265 (instrument_mem_region_access): Rename parameter.
4266 (instrument_strlen_call): Likewise.
4267 (asan_expand_check_ifn): New function.
4268 (asan_instrument): Remove old code.
4269 (pass_sanopt::execute): Change handling of
4270 asan-instrumentation-with-call-threshold.
4271 (asan_clear_shadow): Fix formatting.
4272 (asan_function_start): Likewise.
4273 (asan_emit_stack_protection): Likewise.
4274 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
4275 Update description.
4276 * internal-fn.c (expand_ASAN_CHECK): New function.
4277 * internal-fn.def (ASAN_CHECK): New internal function.
4278 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
4279 Update description.
4280 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
4281 * tree.c: Small comment fix.
4282
4283 2014-08-11 Yury Gribov <y.gribov@samsung.com>
4284
4285 * gimple.c (gimple_call_fnspec): Support internal functions.
4286 (gimple_call_return_flags): Use const.
4287 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
4288 * internal-fn.def: Add fnspec information.
4289 * internal-fn.h (internal_fn_fnspec): New function.
4290 (init_internal_fns): Declare new function.
4291 * internal-fn.c (internal_fn_fnspec_array): New global variable.
4292 (init_internal_fns): New function.
4293 * tree-core.h: Update macro call.
4294 * tree.c (build_common_builtin_nodes): Initialize internal fns.
4295
4296 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
4297
4298 * lto-streamer.h (struct output_block::symbol): Change from
4299 struct symtab_node to plain symtab_node.
4300 (referenced_from_this_partition_p): Change first parameter
4301 from struct symtab_node to plain symtab_node.
4302
4303 2014-08-10 Marek Polacek <polacek@redhat.com>
4304
4305 PR c/51849
4306 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
4307
4308 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
4309
4310 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
4311 DECL correctly; do not give up on types in static storage.
4312
4313 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
4314
4315 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
4316
4317 2014-08-09 Roman Gareev <gareevroman@gmail.com>
4318
4319 * graphite-isl-ast-to-gimple.c:
4320 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
4321
4322 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
4323
4324 2014-08-08 Guozhi Wei <carrot@google.com>
4325
4326 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
4327
4328 2014-08-08 Cary Coutant <ccoutant@google.com>
4329
4330 * dwarf2out.c (get_skeleton_type_unit): Remove.
4331 (output_skeleton_debug_sections): Remove skeleton type units.
4332 (output_comdat_type_unit): Likewise.
4333 (dwarf2out_finish): Likewise.
4334
4335 2014-08-07 Yi Yang <ahyangyi@google.com>
4336
4337 * predict.c (expr_expected_value_1): Remove the redundant assignment.
4338
4339 2014-08-08 Richard Biener <rguenther@suse.de>
4340
4341 * lto-streamer.h (struct lto_input_block): Make it a class
4342 with a constructor.
4343 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
4344 (struct lto_function_header, struct lto_simple_header,
4345 struct lto_simple_header_with_strings,
4346 struct lto_decl_header, struct lto_function_header): Make
4347 a simple inheritance hieararchy. Remove unused fields.
4348 (struct lto_asm_header): Remove.
4349 * lto-streamer-out.c (produce_asm): Adjust.
4350 (lto_output_toplevel_asms): Likewise.
4351 (produce_asm_for_decls): Likewise.
4352 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
4353 * data-streamer-in.c (string_for_index): Likewise.
4354 * ipa-inline-analysis.c (inline_read_section): Likewise.
4355 * ipa-prop.c (ipa_prop_read_section): Likewise.
4356 (read_replacements_section): Likewise.
4357 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
4358 * lto-section-in.c (lto_create_simple_input_block): Likewise.
4359 (lto_destroy_simple_input_block): Likewise.
4360 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
4361 (lto_input_toplevel_asms): Likewise.
4362
4363 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
4364 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4365 Anna Tikhonova <anna.tikhonova@intel.com>
4366 Ilya Tocar <ilya.tocar@intel.com>
4367 Andrey Turetskiy <andrey.turetskiy@intel.com>
4368 Ilya Verbin <ilya.verbin@intel.com>
4369 Kirill Yukhin <kirill.yukhin@intel.com>
4370 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4371
4372 * common/config/i386/i386-common.c
4373 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
4374 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
4375 (ix86_handle_option): Handle OPT_mavx512dq.
4376 * config/i386/cpuid.h (bit_AVX512DQ): Define.
4377 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
4378 set -mavx512dq accordingly.
4379 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4380 OPTION_MASK_ISA_AVX512DQ.
4381 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
4382 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
4383 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
4384 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
4385 * config/i386/i386.h (TARGET_AVX512DQ): Define.
4386 (TARGET_AVX512DQ_P(x)): Ditto.
4387 * config/i386/i386.opt: Add mavx512dq.
4388
4389 2014-08-08 Richard Biener <rguenther@suse.de>
4390
4391 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
4392 target_percent, target_percent_s): Export.
4393 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
4394 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
4395 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
4396 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
4397 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
4398 Move to gimple-fold.c.
4399 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
4400 strcat and strcpy.
4401 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
4402 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
4403 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
4404 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
4405 (rewrite_call_expr_array): Remove.
4406 (fold_builtin_sprintf_chk): Likewise.
4407 (fold_builtin_snprintf_chk): Likewise.
4408 (fold_builtin_varargs): Remove handling of sprintf_chk,
4409 vsprintf_chk, snprintf_chk and vsnprintf_chk.
4410 (gimple_fold_builtin_sprintf_chk): Remove.
4411 (gimple_fold_builtin_snprintf_chk): Likewise.
4412 (gimple_fold_builtin_varargs): Likewise.
4413 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
4414 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
4415 * gimple.c (gimple_seq_add_seq_without_update): New function.
4416 * gimple.h (gimple_seq_add_seq_without_update): Declare.
4417 * gimple-fold.c: Include output.h.
4418 (gsi_replace_with_seq_vops): New function, split out from ...
4419 (gimplify_and_update_call_from_tree): ... here.
4420 (replace_call_with_value): New function.
4421 (replace_call_with_call_and_fold): Likewise.
4422 (var_decl_component_p): Moved from builtins.c.
4423 (gimple_fold_builtin_memory_op): Moved from builtins.c
4424 fold_builtin_memory_op and rewritten to GIMPLE.
4425 (gimple_fold_builtin_memset): Likewise.
4426 (gimple_fold_builtin_strcpy): Likewise.
4427 (gimple_fold_builtin_strncpy): Likewise.
4428 (gimple_fold_builtin_strcat): Likewise.
4429 (gimple_fold_builtin_fputs): Likewise.
4430 (gimple_fold_builtin_memory_chk): Likewise.
4431 (gimple_fold_builtin_stxcpy_chk): Likewise.
4432 (gimple_fold_builtin_stxncpy_chk): Likewise.
4433 (gimple_fold_builtin_snprintf_chk): Likewise.
4434 (gimple_fold_builtin_sprintf_chk): Likewise.
4435 (gimple_fold_builtin_strlen): New function.
4436 (gimple_fold_builtin_with_strlen): New function split out from
4437 gimple_fold_builtin.
4438 (gimple_fold_builtin): Change signature and handle
4439 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
4440 here. Call gimple_fold_builtin_with_strlen.
4441 (gimple_fold_call): Adjust.
4442
4443 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
4444
4445 * calls.c (precompute_arguments): Check
4446 promoted_for_signed_and_unsigned_p and set the promoted mode.
4447 (promoted_for_signed_and_unsigned_p): New function.
4448 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
4449 and set the promoted mode.
4450 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
4451 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
4452 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
4453
4454
4455 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
4456
4457 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
4458 instead of SUBREG_PROMOTED_UNSIGNED_SET.
4459 (expand_call): Likewise.
4460 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
4461 to get promoted mode.
4462 * combine.c (record_promoted_value): Skip > 0 comparison with
4463 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
4464 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
4465 of SUBREG_PROMOTED_UNSIGNED_P.
4466 (convert_modes): Likewise.
4467 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
4468 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
4469 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
4470 SUBREG_PROMOTED_UNSIGNED_SET.
4471 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
4472 instead of SUBREG_PROMOTED_UNSIGNED_SET.
4473 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
4474 SUBREG_PROMOTED_SET.
4475 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
4476 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
4477 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
4478 of SUBREG_PROMOTED_UNSIGNED_P.
4479 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
4480 (SUBREG_PROMOTED_SET): New define.
4481 (SUBREG_PROMOTED_GET): Likewise.
4482 (SUBREG_PROMOTED_SIGN): Likewise.
4483 (SUBREG_PROMOTED_SIGNED_P): Likewise.
4484 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
4485 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
4486 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
4487 instead of SUBREG_PROMOTED_UNSIGNED_GET.
4488 (nonzero_bits1): Skip > 0 comparison with the results as
4489 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
4490 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
4491 of !SUBREG_PROMOTED_UNSIGNED_P.
4492 * simplify-rtx.c (simplify_unary_operation_1): Use new
4493 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
4494 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
4495 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
4496 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
4497
4498 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
4499
4500 * ipa-devirt.c: Include gimple-pretty-print.h
4501 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
4502 further tests.
4503 (decl_maybe_in_construction_p): Fix conditional on cdtor check
4504 (get_polymorphic_call_info): Fix return value
4505 (type_change_info): New sturcture based on ipa-prop
4506 variant.
4507 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
4508 based on ipa-prop variant.
4509 (extr_type_from_vtbl_ptr_store): New function
4510 based on ipa-prop variant.
4511 (record_known_type): New function.
4512 (check_stmt_for_type_change): New function.
4513 (get_dynamic_type): New function.
4514 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
4515 * tree-ssa-pre.c: ipa-utils.h
4516 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
4517 machinery; sanity check with ipa-prop devirtualization.
4518 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
4519 polymorphic flag.
4520
4521 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4522
4523 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
4524 * alias.c, cfgexpand.c, cgraphbuild.c,
4525 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
4526 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
4527 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
4528 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
4529 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
4530 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4531 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
4532 dse.c, except.c, gengtype.c, gimple-expr.c,
4533 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
4534 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
4535 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
4536 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
4537 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
4538 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
4539 pointer-set.h.
4540 * pointer-set.c: Remove file.
4541 * pointer-set.h: Remove file.
4542
4543 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4544
4545 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
4546 * config/arm/types.md (f_sels, f_seld): Delete.
4547
4548 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4549
4550 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
4551 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
4552 (aarch64_movdi_<mode>high): Likewise.
4553 (aarch64_mov<mode>high_di): Likewise.
4554 (aarch64_movdi_<mode>low): Likewise.
4555 (aarch64_mov<mode>low_di): Likewise.
4556 (aarch64_movtilow_tilow): Likewise.
4557 Add comment explaining usage of fp,simd attributes and of
4558 TARGET_FLOAT and TARGET_SIMD.
4559
4560 2014-08-07 Ian Bolton <ian.bolton@arm.com>
4561 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4562
4563 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
4564 Use MOVN when one of the half-words is 0xffff.
4565
4566 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
4567
4568 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
4569
4570 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4571
4572 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
4573 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
4574 (rfs_str): String corresponding to RFS_* constants.
4575 (rank_for_schedule_stats_t): New typedef.
4576 (rank_for_schedule_stats): New static variable.
4577 (rfs_result): New static function.
4578 (rank_for_schedule): Track statistics for deciding heuristics.
4579 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
4580 static functions.
4581 (ready_sort): Use them for debug printouts.
4582 (schedule_block): Init statistics state. Print statistics on
4583 rank_for_schedule decisions.
4584
4585 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4586
4587 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
4588
4589 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
4590
4591 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
4592 constraint.
4593
4594 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4595
4596 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
4597 function to not conflict.
4598 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
4599 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
4600 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
4601 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
4602 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
4603 of pointer_map.
4604
4605 2014-08-07 Marek Polacek <polacek@redhat.com>
4606
4607 * fold-const.c (fold_binary_loc): Add folding of
4608 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
4609
4610 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
4611
4612 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
4613 instead of type size.
4614 (ASM_FINISH_DECLARE_OBJECT): Likewise.
4615
4616 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
4617
4618 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
4619 (*thumb1_movqi_insn): Likewise.
4620 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
4621
4622 2014-08-07 Tom de Vries <tom@codesourcery.com>
4623
4624 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
4625 (glibc_2_11_or_earlier): Remove effective-target keywords.
4626
4627 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4628
4629 * config/arm/arm.c (bdesc_2arg): Fix typo.
4630 (arm_atomic_assign_expand_fenv): Remove The default implementation.
4631
4632 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
4633
4634 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
4635
4636 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
4637
4638 PR debug/61923
4639 * haifa-sched.c (advance_one_cycle): Fix dump.
4640 (schedule_block): Don't advance cycle if we are already at the
4641 beginning of the cycle.
4642
4643 2014-08-06 Martin Jambor <mjambor@suse.cz>
4644
4645 PR ipa/61393
4646 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
4647
4648 2014-08-06 Richard Biener <rguenther@suse.de>
4649
4650 PR lto/62034
4651 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
4652 SCCs here.
4653 (lto_input_tree): Pop SCCs here.
4654
4655 2014-08-06 Richard Biener <rguenther@suse.de>
4656
4657 PR tree-optimization/61320
4658 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
4659 handle misaligned loads.
4660
4661 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
4662
4663 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
4664 (aarch64_expand_vec_perm_const): Check for dup before zip.
4665
4666 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4667
4668 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
4669 CONST_INT_P instead of GET_CODE and compare.
4670 (aarch64_select_cc_mode): Likewise.
4671 (aarch64_print_operand): Likewise.
4672 (aarch64_rtx_costs): Likewise.
4673 (aarch64_simd_valid_immediate): Likewise.
4674 (aarch64_simd_check_vect_par_cnst_half): Likewise.
4675 (aarch64_simd_emit_pair_result_insn): Likewise.
4676
4677 2014-08-05 David Malcolm <dmalcolm@redhat.com>
4678
4679 * gdbhooks.py (find_gcc_source_dir): New helper function.
4680 (class PassNames): New class, locating and parsing passes.def.
4681 (class BreakOnPass): New command "break-on-pass".
4682
4683 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
4684
4685 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
4686 getting olde.
4687
4688 2014-08-05 Richard Biener <rguenther@suse.de>
4689
4690 PR rtl-optimization/61672
4691 * emit-rtl.h (mem_attrs_eq_p): Declare.
4692 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
4693 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
4694 * cfgcleanup.c (merge_memattrs): Likewise.
4695 Include emit-rtl.h.
4696
4697 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4698
4699 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
4700 rather than singleton vectors.
4701 (vqdmlsls_lane_s32): Likewise.
4702
4703 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4704
4705 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
4706 Use VSDQ_HSI mode iterator.
4707 (aarch64_sqrdmulh_laneq<mode>): Likewise.
4708 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
4709 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
4710 Use BUILTIN_VDQHS macro.
4711 (sqrdmulh_laneq): Likewise.
4712 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
4713 (vqdmlals_laneq_s32): Likewise.
4714 (vqdmlslh_laneq_s16): Likewise.
4715 (vqdmlsls_laneq_s32): Likewise.
4716 (vqdmulhh_laneq_s16): Likewise.
4717 (vqdmulhs_laneq_s32): Likewise.
4718 (vqrdmulhh_laneq_s16): Likewise.
4719 (vqrdmulhs_laneq_s32): Likewise.
4720
4721 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4722
4723 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
4724 (vmuld_laneq_f64): Likewise.
4725 (vmuls_laneq_f32): Likewise.
4726 (vmul_n_f64): Likewise.
4727 (vmuld_lane_f64): Reimplement in C.
4728 (vmuls_lane_f32): Likewise.
4729
4730 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4731
4732 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
4733 to reservation.
4734 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4735
4736 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4737
4738 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
4739 (rbitsi2): Likewise.
4740 (*arm_rev): Set predicable and predicable_short_it attributes.
4741
4742 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4743
4744 * convert.c (convert_to_integer): Guard transformation to lrint by
4745 -fno-math-errno.
4746
4747 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
4748
4749 * config/aarch64/aarch64-builtins.c
4750 (aarch64_simd_builtin_type_mode): Delete.
4751 (v8qi_UP): Remap to V8QImode.
4752 (v4hi_UP): Remap to V4HImode.
4753 (v2si_UP): Remap to V2SImode.
4754 (v2sf_UP): Remap to V2SFmode.
4755 (v1df_UP): Remap to V1DFmode.
4756 (di_UP): Remap to DImode.
4757 (df_UP): Remap to DFmode.
4758 (v16qi_UP):V16QImode.
4759 (v8hi_UP): Remap to V8HImode.
4760 (v4si_UP): Remap to V4SImode.
4761 (v4sf_UP): Remap to V4SFmode.
4762 (v2di_UP): Remap to V2DImode.
4763 (v2df_UP): Remap to V2DFmode.
4764 (ti_UP): Remap to TImode.
4765 (ei_UP): Remap to EImode.
4766 (oi_UP): Remap to OImode.
4767 (ci_UP): Map to CImode.
4768 (xi_UP): Remap to XImode.
4769 (si_UP): Remap to SImode.
4770 (sf_UP): Remap to SFmode.
4771 (hi_UP): Remap to HImode.
4772 (qi_UP): Remap to QImode.
4773 (aarch64_simd_builtin_datum): Make mode a machine_mode.
4774 (VAR1): Build builtin name.
4775 (aarch64_init_simd_builtins): Remove dead code.
4776
4777 2014-08-05 Roman Gareev <gareevroman@gmail.com>
4778
4779 * graphite-isl-ast-to-gimple.c:
4780 (set_options): New function.
4781 (scop_to_isl_ast): Add calling of set_options.
4782
4783 2014-08-05 Jakub Jelinek <jakub@redhat.com>
4784
4785 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
4786 (analyze_iv_to_split_insn): Don't initialize them.
4787 (get_ivts_expr): Removed.
4788 (allocate_basic_variable, insert_base_initialization): Use
4789 SET_SRC instead of *get_ivts_expr.
4790 (split_iv): Use &SET_SRC instead of get_ivts_expr.
4791
4792 2014-08-05 Roman Gareev <gareevroman@gmail.com>
4793
4794 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
4795 (translate_isl_ast_for_loop): Add checking of the
4796 flag_loop_parallelize_all.
4797 (ast_build_before_for): New function.
4798 (scop_to_isl_ast): Add checking of the
4799 flag_loop_parallelize_all.
4800 * graphite-dependences.c: Move the defenition of the
4801 scop_get_dependences from graphite-optimize-isl.c to this file.
4802 (apply_schedule_on_deps): Add checking of the ux's emptiness.
4803 (carries_deps): Add checking of the x's value.
4804 * graphite-optimize-isl.c: Move the defenition of the
4805 scop_get_dependences to graphite-dependences.c.
4806 * graphite-poly.h: Add declarations of scop_get_dependences
4807 and carries_deps.
4808
4809 2014-08-04 Rohit <rohitarulraj@freescale.com>
4810
4811 PR target/60102
4812 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
4813 names.
4814 (alt_reg_names): Likewise.
4815 (rs6000_dwarf_register_span): For SPE high registers, replace
4816 dwarf register numbers with GCC hard register numbers.
4817 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
4818 (rs6000_dbx_register_number): For SPE high registers, return dwarf
4819 register number for the corresponding GCC hard register number.
4820 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
4821 newly added GCC hard register numbers for SPE high registers.
4822 (DWARF_FRAME_REGISTERS): Likewise.
4823 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
4824 (DWARF_FRAME_REGNUM): Likewise.
4825 (FIXED_REGISTERS): Likewise.
4826 (CALL_USED_REGISTERS): Likewise.
4827 (CALL_REALLY_USED_REGISTERS): Likewise.
4828 (REG_ALLOC_ORDER): Likewise.
4829 (enum reg_class): Likewise.
4830 (REG_CLASS_NAMES): Likewise.
4831 (REG_CLASS_CONTENTS): Likewise.
4832 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
4833
4834 2014-08-04 Richard Biener <rguenther@suse.de>
4835
4836 * gimple-fold.h (gimple_fold_builtin): Remove.
4837 * gimple-fold.c (gimple_fold_builtin): Make static.
4838 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
4839 fold_stmt, not gimple_fold_builtin.
4840
4841 2014-08-04 Martin Liska <mliska@suse.cz>
4842
4843 * cgraph.h (csi_end_p): Removed.
4844 (csi_next): Likewise.
4845 (csi_node): Likewise.
4846 (csi_start): Likewise.
4847 (cgraph_node_in_set_p): Likewise.
4848 (cgraph_node_set_size): Likewise.
4849 (vsi_end_p): Likewise.
4850 (vsi_next): Likewise.
4851 (vsi_node): Likewise.
4852 (vsi_start): Likewise.
4853 (varpool_node_set_size): Likewise.
4854 (cgraph_node_set_nonempty_p): Likewise.
4855 (varpool_node_set_nonempty_p): Likewise.
4856 * cgraphunit.c (cgraph_process_new_functions): vec replaces
4857 cgraph_node_set.
4858 * ipa-inline-transform.c: Likewise.
4859 * ipa-utils.c (cgraph_node_set_new): Removed.
4860 (cgraph_node_set_add): Likewise.
4861 (cgraph_node_set_remove): Likewise.
4862 (cgraph_node_set_find): Likewise.
4863 (dump_cgraph_node_set): Likewise.
4864 (debug_cgraph_node_set): Likewise.
4865 (free_cgraph_node_set): Likewise.
4866 (varpool_node_set_new): Likewise.
4867 (varpool_node_set_add): Likewise.
4868 (varpool_node_set_remove): Likewise.
4869 (varpool_node_set_find): Likewise.
4870 (dump_varpool_node_set): Likewise.
4871 (free_varpool_node_set): Likewise.
4872 (debug_varpool_node_set): Likewise.
4873 * tree-emutls.c (struct tls_var_data):
4874 (emutls_index): Removed.
4875 (emutls_decl): Likewise.
4876 (gen_emutls_addr): Function implementation uses newly added
4877 hash_map<varpool_node *, tls_var_data>.
4878 (clear_access_vars): Likewise.
4879 (create_emultls_var): Likewise.
4880 (ipa_lower_emutls): Likewise.
4881 (reset_access): New function.
4882
4883 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4884
4885 * config/i386/i386.c (ix86_option_override_internal): Add
4886 PTA_RDRND and PTA_MOVBE for bdver4.
4887
4888 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4889 James Greenhalgh <james.greenhalgh@arm.com>
4890
4891 * doc/md.texi (clrsb): Document.
4892 (clz): Change reference to x into operand 1.
4893 (ctz): Likewise.
4894 (popcount): Likewise.
4895
4896 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4897
4898 PR target/61713
4899 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
4900 move to subtarget in serial version if result is ignored.
4901
4902 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4903 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4904
4905 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
4906 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
4907 (sched_analyze_insn): Update use of try_group_insn to
4908 sched_macro_fuse_insns.
4909 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
4910 arguments that are not conditional jumps.
4911
4912 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4913
4914 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
4915 family information. Handle BTVER2 cpu with cpuid family value.
4916
4917 2014-08-04 Tom de Vries <tom@codesourcery.com>
4918
4919 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
4920 (glibc_2_11_or_earlier): Document effective-target keywords.
4921
4922 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
4923
4924 * ipa-devirt.c (odr_type_warn_count): Add type.
4925 (possible_polymorphic_call_targets): Set it.
4926 (ipa_devirt): Use it.
4927
4928 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
4929
4930 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
4931 Document.
4932 * ipa-devirt.c: Include hash-map.h
4933 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
4934 (clear_speculation): Break out of ...
4935 (get_class_context): ... here; speed up handling obviously useless
4936 speculations.
4937 (odr_type_warn_count, decl_warn_count): New structures.
4938 (final_warning_record): New structure.
4939 (final_warning_records): New static variable.
4940 (possible_polymorphic_call_targets): Cleanup handling of
4941 speculative info; do not build speculation when user do not care;
4942 record info about warnings when asked for.
4943 (add_decl_warning): New function.
4944 (type_warning_cmp): New function.
4945 (decl_warning_cmp): New function.
4946 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
4947 (gate): Enable pass when warnings are requested.
4948 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
4949 options.
4950
4951 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4952
4953 * hash-map.h (default_hashmap_traits::mark_key_deleted):
4954 Fix cast.
4955 (hash_map::remove): New method.
4956 (hash_map::traverse): New method.
4957 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
4958 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
4959 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
4960 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
4961 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
4962 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
4963 pointer_map.
4964
4965 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4966
4967 * hash-set.h: new File.
4968 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
4969 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
4970 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
4971 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
4972 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
4973 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
4974 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
4975 varpool.c: Use hash_set instead of pointer_set.
4976
4977 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
4978
4979 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
4980
4981 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4982
4983 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
4984 for frame access when strict_p is false.
4985
4986 2014-08-01 Renlin Li <renlin.li@arm.com>
4987 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4988
4989 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
4990 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
4991 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
4992 Declaration.
4993 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
4994 predicate.
4995 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
4996 aarch64_mem_pair_offset.
4997
4998 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4999
5000 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
5001 offset.
5002 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
5003 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
5004
5005 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
5006
5007 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
5008
5009 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
5010
5011 PR regression/61510
5012 * cgraphunit.c (analyze_functions): Use get_create rather than get
5013 for decls which are clones of abstract functions.
5014
5015 2014-08-01 Martin Liska <mliska@suse.cz>
5016
5017 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
5018 * ipa-prop.h (count_formal_params): Global function created from static.
5019 * ipa-prop.c (count_formal_params): Likewise.
5020 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
5021 profiles for semantically equivalent functions.
5022 * passes.c (do_per_function): If we load body of a function
5023 during WPA, this condition should behave same.
5024 * varpool.c (ctor_for_folding): More tolerant assert for variable
5025 aliases created during WPA.
5026
5027 2014-08-01 Martin Liska <mliska@suse.cz>
5028
5029 * doc/invoke.texi (Options That Control Optimization): Documentation
5030 for -foptimize-strlen introduced. Optimization levels default options
5031 fixed.
5032
5033 2014-08-01 Jakub Jelinek <jakub@redhat.com>
5034
5035 * opts.c (common_handle_option): Handle -fsanitize=alignment.
5036 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
5037 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
5038 type to bool.
5039 * stor-layout.h (min_align_of_type): New prototype.
5040 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
5041 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
5042 check.
5043 * ubsan.c: Include builtins.h.
5044 (ubsan_expand_bounds_ifn): Change return type to bool,
5045 always return true.
5046 (ubsan_expand_null_ifn): Change return type to bool, change
5047 argument to gimple_stmt_iterator *. Handle both null and alignment
5048 sanitization, take type from ckind argument's type rather than
5049 first argument.
5050 (instrument_member_call): Removed.
5051 (instrument_mem_ref): Remove t argument, add mem and base arguments.
5052 Handle both null and alignment sanitization, don't say whole
5053 struct access is member access. Build 3 argument IFN_UBSAN_NULL
5054 call instead of 2 argument.
5055 (instrument_null): Adjust instrument_mem_ref caller. Don't
5056 instrument calls here.
5057 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
5058 like SANITIZE_NULL.
5059 * stor-layout.c (min_align_of_type): New function.
5060 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
5061 Or it into SANITIZE_UNDEFINED.
5062 * doc/invoke.texi (-fsanitize=alignment): Document.
5063
5064 2014-07-31 Andi Kleen <ak@linux.intel.com>
5065
5066 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
5067
5068 2014-07-31 Andi Kleen <ak@linux.intel.com>
5069
5070 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
5071 inchash.
5072 (vn_reference_compute_hash): Dito.
5073 (vn_nary_op_compute_hash): Dito.
5074 (vn_phi_compute_hash): Dito.
5075 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
5076
5077 2014-07-31 Andi Kleen <ak@linux.intel.com>
5078
5079 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
5080 Rename to inchash:add_expr_commutative. Convert to inchash.
5081 (iterative_hash_hashable_expr): Rename to
5082 inchash:add_hashable_expr. Convert to inchash.
5083 (avail_expr_hash): Dito.
5084
5085 2014-07-31 Andi Kleen <ak@linux.intel.com>
5086
5087 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
5088 Convert to inchash.
5089
5090 2014-07-31 Andi Kleen <ak@linux.intel.com>
5091
5092 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
5093
5094 2014-07-31 Andi Kleen <ak@linux.intel.com>
5095
5096 * Makefile.in (OBJS): Add rtlhash.o
5097 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
5098 (loc_checksum): Dito.
5099 (loc_checksum_ordered): Dito.
5100 (hash_loc_operands): Dito.
5101 (hash_locs): Dito.
5102 (hash_loc_list): Dito.
5103 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
5104 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
5105 * rtlhash.c: New file.
5106 * rtlhash.h: New file.
5107
5108 2014-07-31 Andi Kleen <ak@linux.intel.com>
5109
5110 * inchash.h (inchash): Change inchash class to namespace.
5111 (class hash): ... Rename from inchash.
5112 (add_object): Move from macro to class template.
5113 * lto-streamer-out.c (hash_tree): Change inchash
5114 to inchash::hash.
5115 * tree.c (build_type_attribute_qual_variant): Dito.
5116 (type_hash_list): Dito.
5117 (attribute_hash_list): Dito.
5118 (iterative_hstate_expr): Rename to inchash::add_expr
5119 (build_range_type_1): Change inchash to inchash::hash
5120 and use hash::add_expr.
5121 (build_array_type_1): Dito.
5122 (build_function_type): Dito
5123 (build_method_type_directly): Dito.
5124 (build_offset_type): Dito.
5125 (build_complex_type): Dito.
5126 (make_vector_type): Dito.
5127 * tree.h (iterative_hash_expr): Dito.
5128
5129 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
5130
5131 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
5132
5133 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
5134
5135 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
5136 correct alphabetical position.
5137 (vpaddd_f64): Rewrite using builtins.
5138 (vpaddd_s64): Move to correct alphabetical position.
5139 (vpaddd_u64): New.
5140
5141 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
5142
5143 PR target/61844
5144 * config/sh/sh.c (sh_legitimate_address_p,
5145 sh_legitimize_reload_address): Handle reg+reg address modes when
5146 ALLOW_INDEXED_ADDRESS is false.
5147 * config/sh/predicates.md (general_movsrc_operand,
5148 general_movdst_operand): Likewise.
5149
5150 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
5151
5152 * config/aarch64/aarch64-builtins.c
5153 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
5154 BYTES_BIG_ENDIAN.
5155
5156 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
5157
5158 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
5159 the generated mask based on BYTES_BIG_ENDIAN.
5160 (aarch64_simd_check_vect_par_cnst_half): New.
5161 * config/aarch64/aarch64-protos.h
5162 (aarch64_simd_check_vect_par_cnst_half): New.
5163 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
5164 the check out to aarch64_simd_check_vect_par_cnst_half.
5165 (vect_par_cnst_lo_half): Likewise.
5166 * config/aarch64/aarch64-simd.md
5167 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
5168 (move_hi_quad_<mode>): Always generate a low mask.
5169
5170 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5171
5172 * doc/invoke.texi (AVR Options): Add documentation about
5173 __AVR_DEVICE_NAME__ built-in macro.
5174
5175 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
5176
5177 PR target/61948
5178 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
5179 constraints are satisfied.
5180 (<shift>di3_neon): Likewise.
5181
5182 2014-07-31 Richard Biener <rguenther@suse.de>
5183
5184 PR tree-optimization/61964
5185 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
5186 by structural equality.
5187
5188 2014-07-31 Yury Gribov <y.gribov@samsung.com>
5189
5190 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
5191 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
5192 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
5193 New enums.
5194 * gcc.c (sanitize_spec_function): Support new option.
5195 (SANITIZER_SPEC): Remove now redundant check.
5196 * opts.c (common_handle_option): Support new option.
5197 (finish_options): Check for incompatibilities.
5198 * toplev.c (process_options): Split userspace-specific checks.
5199
5200 2014-07-31 Richard Biener <rguenther@suse.de>
5201
5202 * lto-streamer.h (struct output_block): Remove global.
5203 (struct data_in): Remove labels, num_named_labels and
5204 num_unnamed_labels.
5205 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
5206 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
5207
5208 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
5209
5210 PR c++/60517
5211 * common.opt (-Wreturn-local-addr): Moved from c.opt.
5212 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
5213 (isolate_path): New argument to avoid inserting a trap.
5214 (find_implicit_erroneous_behaviour): Handle returning the address
5215 of a local variable.
5216 (find_explicit_erroneous_behaviour): Likewise.
5217
5218 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
5219
5220 PR lto/61868
5221 * toplev.c (init_random_seed): Move piece of code never called to
5222 set_random_seed.
5223 (set_random_seed): see above.
5224
5225 2014-07-31 Tom de Vries <tom@codesourcery.com>
5226
5227 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
5228
5229 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
5230
5231 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
5232 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
5233
5234 2014-07-31 Richard Biener <rguenther@suse.de>
5235
5236 * data-streamer.h (streamer_write_data_stream): Declare here,
5237 renamed from ...
5238 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
5239 * lto-cgraph.c (lto_output_node): Adjust.
5240 (lto_output_varpool_node): Likewise.
5241 * data-streamer-out.c (streamer_string_index): Likewise.
5242 (streamer_write_data_stream, lto_append_block): Move from ...
5243 * lto-section-out.c (lto_output_data_stream,
5244 lto_append_block): ... here.
5245
5246 2014-07-30 Mike Stump <mikestump@comcast.net>
5247
5248 * configure.ac: Also check for popen.
5249 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
5250 * configure: Regenerate.
5251 * config.in: Regenerate.
5252
5253 2014-07-30 Martin Jambor <mjambor@suse.cz>
5254
5255 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
5256 parameter to gimple.
5257
5258 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5259
5260 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
5261 address as second parameter to __tpf_eh_return routine.
5262
5263 2014-07-30 Jiong Wang <jiong.wang@arm.com>
5264
5265 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
5266 Thumb2.
5267
5268 2014-07-30 Tom Tromey <tromey@redhat.com>
5269
5270 PR c/59855
5271 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
5272 * doc/extend.texi (Type Attributes): Document designated_init
5273 attribute.
5274
5275 2014-07-30 Roman Gareev <gareevroman@gmail.com>
5276
5277 * graphite-isl-ast-to-gimple.c:
5278 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
5279 (gcc_expression_from_isl_expression): Pass type to
5280 gcc_expression_from_isl_ast_expr_id.
5281
5282 2014-07-30 Richard Biener <rguenther@suse.de>
5283
5284 * lto-streamer.h (lto_write_data): New function.
5285 * langhooks.c (lhd_append_data): Do not free block.
5286 * lto-section-out.c (lto_write_data): New function writing
5287 raw data to the current section.
5288 (lto_write_stream): Adjust for langhook semantic change.
5289 (lto_destroy_simple_output_block): Write header directly.
5290 * lto-opts.c (lto_write_options): Write options directly.
5291 * lto-streamer-out.c (produce_asm): Write heaeder directly.
5292 (lto_output_toplevel_asms): Likewise.
5293 (copy_function_or_variable): Copy data directly.
5294 (write_global_references): Output index table directly.
5295 (lto_output_decl_state_refs): Likewise.
5296 (write_symbol): Write data directly.
5297 (produce_symtab): Adjust.
5298 (produce_asm_for_decls): Output header and refs directly.
5299
5300 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
5301
5302 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
5303 to speculative_targets
5304 (get_class_context): Fix handling of contextes without outer type;
5305 avoid matching non-polymorphic types in LTO.
5306 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
5307 parameter to speculative_targetsp; handle speculation.
5308 (dump_possible_polymorphic_call_targets): Update dumping.
5309
5310 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
5311
5312 * common.opt (Wodr): Enable by default.
5313
5314 2014-07-29 Olivier Hainque <hainque@adacore.com>
5315
5316 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
5317
5318 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
5319
5320 PR bootstrap/61914
5321 * gengtype.c (strtoken): New function.
5322 (create_user_defined_type): Replace strtok with strtoken.
5323
5324 2014-07-29 Nathan Sidwell <nathan@acm.org>
5325
5326 * gcov-io.c (gcov_var): Make hidden.
5327 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
5328 (gcov_do_dump): Declare.
5329 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
5330
5331 2014-07-29 Martin Jambor <mjambor@suse.cz>
5332
5333 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
5334 parameter to gimple.
5335 (sra_modify_assign): Likewise.
5336
5337 2014-07-29 Richard Biener <rguenther@suse.de>
5338
5339 PR middle-end/52478
5340 * expr.c (expand_expr_real_2): Revert last change.
5341
5342 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
5343
5344 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
5345 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
5346 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
5347 call.
5348 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
5349 (contains_type_p): Forward declare.
5350 (polymorphic_call_target_hasher::hash): Hash speculative info.
5351 (polymorphic_call_target_hasher::equal): Compare speculative info.
5352 (get_class_context): Handle speuclation.
5353 (contains_type_p): Update.
5354 (get_polymorphic_call_info_for_decl): Update.
5355 (walk_ssa_copies): Break out from ...
5356 (get_polymorphic_call_info): ... here; set speculative context
5357 before giving up.
5358 * ipa-prop.c (ipa_write_indirect_edge_info,
5359 ipa_read_indirect_edge_info): Stream speculative context.
5360 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
5361 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
5362 SPECULATIVE_MAYBE_DERIVED_TYPE).
5363 (possible_polymorphic_call_targets overriders): Update.
5364 (dump_possible_polymorphic_call_targets overriders): Update.
5365 (dump_possible_polymorphic_call_target_p overriders): Update.
5366
5367 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
5368
5369 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
5370 ipa-devirt path; fix thinko there.
5371
5372 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
5373
5374 * config/i386/i386.c (ix86_return_in_memory): Replace one
5375 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
5376
5377 2014-07-28 Marek Polacek <polacek@redhat.com>
5378
5379 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
5380
5381 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
5382
5383 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
5384 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
5385 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
5386 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5387 (USE_LD_AS_NEEDED): Likewise.
5388 (ASM_APP_ON): Likewise.
5389 (ASM_APP_OFF): Likewise.
5390 (TARGET_POSIX_IO): Likewise.
5391 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
5392 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5393 (USE_LD_AS_NEEDED): Likewise.
5394 (ASM_APP_ON): Likewise.
5395 (ASM_APP_OFF): Likewise.
5396 (TARGET_POSIX_IO): Likewise.
5397
5398 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
5399
5400 PR middle-end/61734
5401 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
5402 operators other than the equality operators.
5403
5404 2014-07-28 Richard Biener <rguenther@suse.de>
5405
5406 PR middle-end/52478
5407 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
5408 sure to register SImode ones, not only >= word_mode ones.
5409 * expr.c (expand_expr_real_2): When expanding -ftrapv
5410 binops do not use OPTAB_LIB_WIDEN.
5411
5412 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
5413
5414 PR middle-end/61919
5415 * tree-outof-ssa.c (insert_partition_copy_on_edge)
5416 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
5417 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
5418 inserting them in the insn stream.
5419
5420 2014-07-28 Marek Polacek <polacek@redhat.com>
5421
5422 PR middle-end/61913
5423 * common.opt (Wodr): Add Var.
5424
5425 2014-07-28 Richard Biener <rguenther@suse.de>
5426
5427 PR tree-optimization/61921
5428 * tree-ssa-structalias.c (create_variable_info_for_1): Check
5429 if there is a varpool node before dereferencing it.
5430
5431 2014-07-28 Roman Gareev <gareevroman@gmail.com>
5432
5433 * graphite-sese-to-poly.c:
5434 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
5435 id of the pbb), which contains pointer to the pbb1.
5436
5437 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
5438
5439 2014-07-28 Roman Gareev <gareevroman@gmail.com>
5440
5441 * graphite-isl-ast-to-gimple.c:
5442 (graphite_create_new_guard): New function.
5443 (translate_isl_ast_node_if): New function.
5444 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
5445
5446 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
5447
5448 2014-07-27 Anthony Green <green@moxielogic.com>
5449
5450 * config.gcc: Add moxie-*-moxiebox* configuration.
5451 * config/moxie/moxiebox.h: New file.
5452
5453 2014-07-26 Andrew Pinski <apinski@cavium.com>
5454
5455 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
5456 from the read only register.
5457
5458 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
5459
5460 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
5461 as the allocation class if it isn't likely to be spilled.
5462
5463 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
5464
5465 * rtl.h (tls_referenced_p): Declare.
5466 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
5467 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
5468 (mips_cannot_force_const_mem): Use tls_referenced_p.
5469 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
5470 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
5471 instead of pa_tls_referenced_p.
5472 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
5473 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
5474 (pa_legitimate_constant_p): Likewise.
5475 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
5476 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
5477 (rs6000_cannot_force_const_mem, rs6000_emit_move)
5478 (rs6000_address_for_altivec): Use tls_referenced_p instead of
5479 rs6000_tls_referenced_p.
5480 (rs6000_tls_symbol_ref_1): Delete.
5481
5482 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
5483
5484 PR target/44551
5485 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5486 Optimize inverse of a VEC_CONCAT.
5487
5488 2014-07-25 Xinliang David Li <davidxl@google.com>
5489
5490 * params.def: New parameter.
5491 * coverage.c (get_coverage_counts): Check new flag.
5492 (coverage_compute_profile_id): Check new flag.
5493 (coverage_begin_function): Check new flag.
5494 (coverage_end_function): Check new flag.
5495 * value-prof.c (coverage_node_map_initialized_p): New function.
5496 (init_node_map): Populate map with all functions.
5497 * doc/invoke.texi: Document new parameter.
5498
5499 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
5500 Richard Biener <rguenther@suse.de>
5501
5502 * lto-streamer-out.c (struct sccs): Turn to ...
5503 (class DFS): ... this one; refactor the DFS walk so it can
5504 be re-done on per-SCC basis.
5505 (DFS::DFS): New constructor.
5506 (DFS::~DFS): New destructor.
5507 (hash_tree): Add new MAP argument holding in-SCC hash values;
5508 remove POINTER_TYPE hashing hack.
5509 (scc_entry_compare): Rename to ...
5510 (DFS::scc_entry_compare): ... this one.
5511 (hash_scc): Rename to ...
5512 (DFS::hash_scc): ... this one; pass output_block instead
5513 of streamer_cache; work harder to get unique and stable SCC
5514 hashes.
5515 (DFS_write_tree): Rename to ...
5516 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
5517 (lto_output_tree): Update.
5518
5519 2014-07-25 Andi Kleen <ak@linux.intel.com>
5520
5521 * lto-streamer-out.c (hash_tree): Convert to inchash.
5522
5523 2014-07-25 Andi Kleen <ak@linux.intel.com>
5524
5525 * tree.c (build_type_attribute_qual_variant): Use inchash.
5526 (type_hash_list): Dito.
5527 (attribute_hash_list): Dito
5528 (iterative_hstate_expr): Dito.
5529 (iterative_hash_expr): Dito.
5530 (build_range_type_1): Dito.
5531 (build_array_type_1): Dito.
5532 (build_function_type): Dito.
5533 (build_method_type_directly): Dito.
5534 (build_offset_type): Dito.
5535 (build_complex_type): Dito.
5536 (make_vector_type): Dito.
5537 * tree.h (iterative_hash_expr): Add compat wrapper.
5538 (iterative_hstate_expr): Add.
5539
5540 2014-07-25 Andi Kleen <ak@linux.intel.com>
5541
5542 * Makefile.in (OBJS): Add inchash.o.
5543 (PLUGIN_HEADERS): Add inchash.h.
5544 * ipa-devirt.c: Include inchash.h.
5545 * lto-streamer-out.c: Dito.
5546 * tree-ssa-dom.c: Dito.
5547 * tree-ssa-pre.c: Dito.
5548 * tree-ssa-sccvn.c: Dito.
5549 * tree-ssa-tail-merge.c: Dito.
5550 * asan.c: Dito.
5551 * tree.c (iterative_hash_hashval_t): Move to ...
5552 (iterative_hash_host_wide_int): Move to ...
5553 * inchash.c: Here. New file.
5554 * tree.h (iterative_hash_hashval_t): Move to ...
5555 (iterative_hash_host_wide_int): Move to ...
5556 * inchash.h: Here. New file.
5557
5558 2014-07-25 Richard Biener <rguenther@suse.de>
5559
5560 PR middle-end/61762
5561 PR middle-end/61894
5562 * fold-const.c (native_encode_int): Add and handle offset
5563 parameter to do partial encodings of expr.
5564 (native_encode_fixed): Likewise.
5565 (native_encode_real): Likewise.
5566 (native_encode_complex): Likewise.
5567 (native_encode_vector): Likewise.
5568 (native_encode_string): Likewise.
5569 (native_encode_expr): Likewise.
5570 * fold-const.c (native_encode_expr): Add offset parameter
5571 defaulting to -1.
5572 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
5573 (fold_ctor_reference): Handle all reads from tcc_constant
5574 ctors.
5575
5576 2014-07-25 Richard Biener <rguenther@suse.de>
5577
5578 * tree-inline.c (estimate_move_cost): Mark speed_p argument
5579 as possibly unused.
5580
5581 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5582
5583 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
5584
5585 2014-07-24 Kyle McMartin <kyle@redhat.com>
5586
5587 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
5588
5589 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5590
5591 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
5592 Add prototype.
5593 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
5594 function.
5595 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
5596 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5597 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
5598
5599 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5600
5601 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
5602 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
5603 aggregate types. Instead, *all* aggregate types, except for single-
5604 element or homogeneous float/vector aggregates, are quadword-aligned
5605 if required by their type alignment. Issue -Wpsabi note when a type
5606 is now treated differently than before.
5607
5608 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5609
5610 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
5611 does not fit fully into floating-point registers, and there is still
5612 space in the register parameter area, use GPRs to pass those parts
5613 of the argument. Issue -Wpsabi note if any parameter is now treated
5614 differently than before.
5615 (rs6000_arg_partial_bytes): Update.
5616
5617 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
5618
5619 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
5620
5621 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
5622
5623 * rtl.h (target_rtl): Remove lang_dependent_initialized.
5624 * toplev.c (initialize_rtl): Don't use it. Move previously
5625 "language-dependent" calls to...
5626 (backend_init): ...here.
5627 (lang_dependent_init_target): Don't set lang_dependent_initialized.
5628 Assert that RTL initialization hasn't happend yet.
5629
5630 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
5631
5632 PR rtl-optimization/61629
5633 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
5634 they have already been initialized.
5635
5636 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
5637
5638 PR middle-end/61268
5639 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
5640 DECL_INCOMING_RTL and entry_parm.
5641 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
5642 * calls.c (load_register_parameters): Likewise argument values.
5643 (emit_library_call_value_1, store_one_arg): Likewise argument
5644 save areas.
5645 * config/i386/i386.c (assign_386_stack_local): Likewise the local
5646 stack slot.
5647 * explow.c (validize_mem): Modify the argument in-place.
5648
5649 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5650
5651 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
5652 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
5653
5654 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5655
5656 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
5657 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
5658
5659 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5660
5661 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
5662 (aarch64_save_callee_saves): New parameter "skip_wb".
5663 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
5664
5665 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5666
5667 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
5668 "wb_candidate2".
5669 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
5670
5671 2014-07-24 Roman Gareev <gareevroman@gmail.com>
5672
5673 * graphite-isl-ast-to-gimple.c:
5674 (graphite_create_new_loop): Add calling of isl_id_free to properly
5675 decrement reference counts.
5676
5677 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
5678
5679 2014-07-24 Martin Liska <mliska@suse.cz>
5680 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
5681 function used.
5682 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
5683 (rs6000_code_end): Likewise.
5684
5685 2014-07-24 Martin Liska <mliska@suse.cz>
5686
5687 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
5688 symtab_node funtion used.
5689 (rs6000_xcoff_declare_object_name): Likewise.
5690
5691 2014-07-24 Martin Liska <mliska@suse.cz>
5692
5693 * cgraphunit.c (compile): Correct function used.
5694
5695 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
5696
5697 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
5698 as non-indexable.
5699
5700 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
5701
5702 PR lto/61802
5703 * varasm.c (bss_initializer_p): Handle offlined ctors.
5704 (align_variable, get_variable_align): Likewise.
5705 (make_decl_one_only): Likewise.
5706 (default_binds_local_p_1): Likewise.
5707 (decl_binds_to_current_def_p): Likewise.
5708 (get_variable_section): Get constructor if it is offlined.
5709 (assemble_variable_contents): Sanity check that the caller
5710 streamed in the ctor in LTO.
5711
5712 2014-07-24 Roman Gareev <gareevroman@gmail.com>
5713
5714 * graphite-isl-ast-to-gimple.c:
5715 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
5716 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
5717 isl_ast_op_pdiv_r to the different case.
5718
5719 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
5720
5721 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5722
5723 PR middle-end/61876
5724 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
5725 when flag_errno_math is on.
5726
5727 2014-07-24 Martin Liska <mliska@suse.cz>
5728
5729 * cgraph.h (varpool_node):
5730 (availability get_availability (void)):
5731 created from cgraph_variable_initializer_availability
5732 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
5733 created from: cgraph_variable_initializer_availability
5734 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
5735 (void finalize_named_section_flags (void)):
5736 created from varpool_finalize_named_section_flags
5737 (bool assemble_decl (void)): created from varpool_assemble_decl
5738 (void analyze (void)): created from varpool_analyze_node
5739 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
5740 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
5741 (void remove_initializer (void)): created from varpool_remove_initializer
5742 (tree get_constructor (void)): created from varpool_get_constructor
5743 (bool externally_visible_p (void)): created from varpool_externally_visible_p
5744 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
5745 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
5746 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
5747 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
5748 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
5749 (static bool output_variables (void)): created from varpool_output_variables
5750 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
5751 created from varpool_extra_name_alias
5752 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
5753 (static void dump_varpool (FILE *f)): created from dump_varpool
5754 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
5755 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
5756 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
5757 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
5758 (void assemble_aliases (void)): created from assemble_aliases
5759
5760 2014-07-24 Martin Liska <mliska@suse.cz>
5761
5762 * cgraph.h (symtab_node):
5763 (void register_symbol (void)): created from symtab_register_node
5764 (void remove (void)): created from symtab_remove_node
5765 (void dump (FILE *f)): created from dump_symtab_node
5766 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
5767 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
5768 (struct ipa_ref *add_reference (symtab_node *referred_node,
5769 enum ipa_ref_use use_type)): created from add_reference
5770 (struct ipa_ref *add_reference (symtab_node *referred_node,
5771 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
5772 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
5773 gimple stmt)): created from maybe_add_reference
5774 (bool semantically_equivalent_p (symtab_node *target)): created from
5775 symtab_semantically_equivalent_p
5776 (void remove_from_same_comdat_group (void)): created from
5777 remove_from_same_comdat_group
5778 (void add_to_same_comdat_group (symtab_node *old_node)): created from
5779 symtab_add_to_same_comdat_group
5780 (void dissolve_same_comdat_group_list (void)): created from
5781 symtab_dissolve_same_comdat_group_list
5782 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
5783 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
5784 created from symtab_alias_ultimate_target
5785 (inline symtab_node *next_defined_symbol (void)): created from
5786 symtab_next_defined_symbol
5787 (bool resolve_alias (symtab_node *target)): created from
5788 symtab_resolve_alias
5789 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
5790 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
5791 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
5792 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
5793 (void set_section (const char *section)): created from set_section_1
5794 (enum availability get_availability (void)): created from symtab_node_availability
5795 (void make_decl_local (void)): created from symtab_make_decl_local
5796 (bool real_symbol_p (void)): created from symtab_read_node
5797 (can_be_discarded_p (void)): created from symtab_can_be_discarded
5798 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
5799 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
5800 symtab_in_same_comdat_p;
5801 (bool address_taken_from_non_vtable_p (void)): created from
5802 address_taken_from_non_vtable_p
5803 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
5804 (static void dump_table (FILE *)): created from dump_symtab
5805 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
5806 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
5807 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
5808 symtab_used_from_object_file_p
5809 (void dump_base (FILE *)): created from dump_symtab_base
5810 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
5811 (void unregister (void)): created from symtab_unregister_node
5812 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
5813 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
5814 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
5815 symtab_nonoverwritable_alias_1
5816 * cgraph.h (cgraph_node):
5817 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
5818 created from cgraph_remove_node_and_inline_clones
5819 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
5820 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
5821 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
5822 (cgraph_node *function_symbol (enum availability *avail = NULL)):
5823 created from cgraph_function_node
5824 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
5825 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
5826 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
5827 created from cgraph_create_clone
5828 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
5829 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
5830 created from cgraph_create_virtual_clone
5831 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
5832 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
5833 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
5834 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
5835 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
5836 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
5837 created from cgraph_function_version_info
5838 (struct cgraph_function_version_info *insert_new_function_version (void)):
5839 created from insert_new_cgraph_node_version
5840 (struct cgraph_function_version_info *function_version (void)): created from
5841 get_cgraph_node_version
5842 (void analyze (void)): created from analyze_function
5843 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
5844 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
5845 tree real_alias) cgraph_add_thunk
5846 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
5847 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
5848 created from cgraph_function_or_thunk_node
5849 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
5850 created from expand_thunk
5851 (void reset (void)): created from cgraph_reset_node
5852 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
5853 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
5854 (void remove (void)): created from cgraph_remove_node
5855 (void dump (FILE *f)): created from dump_cgraph_node
5856 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
5857 (bool get_body (void)): created from cgraph_get_body
5858 (void release_body (void)): created from cgraph_release_function_body
5859 (void unnest (void)): created from cgraph_unnest_node
5860 (void make_local (void)): created from cgraph_make_node_local
5861 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
5862 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
5863 gcov_type count, int freq)): created from cgraph_create_edge
5864 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
5865 gcov_type count, int freq)): created from cgraph_create_indirect_edge
5866 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
5867 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
5868 created from cgraph_create_edge_including_clones
5869 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
5870 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
5871 (void remove_callers (void)): created from cgraph_node_remove_callers
5872 (void remove_callees (void)): created from cgraph_node_remove_callees
5873 (enum availability get_availability (void)): created from cgraph_function_body_availability
5874 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
5875 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
5876 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
5877 (void call_duplication_hooks (cgraph_node *node2)): created from
5878 cgraph_call_node_duplication_hooks
5879 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
5880 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
5881 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
5882 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
5883 (void call_function_insertion_hooks (void)):
5884 created from cgraph_call_function_insertion_hooks
5885 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
5886 (bool local_p (void)): created from cgraph_local_node
5887 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
5888 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
5889 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
5890 (inline bool only_called_directly_or_aliased_p (void)):
5891 created from cgraph_only_called_directly_or_aliased_p
5892 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
5893 created from cgraph_will_be_removed_from_program_if_no_direct_calls
5894 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
5895 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
5896 (bool can_remove_if_no_direct_calls_p (void)):
5897 created from cgraph_can_remove_if_no_direct_calls_p
5898 (inline bool has_gimple_body_p (void)):
5899 created from cgraph_function_with_gimple_body_p
5900 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
5901 (static void dump_cgraph (FILE *f)): created from dump_cgraph
5902 (static inline void debug_cgraph (void)): created from debug_cgraph
5903 (static void record_function_versions (tree decl1, tree decl2)):
5904 created from record_function_versions
5905 (static void delete_function_version (tree decl)):
5906 created from delete_function_version
5907 (static void add_new_function (tree fndecl, bool lowered)):
5908 created from cgraph_add_new_function
5909 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
5910 (static cgraph_node * create (tree decl)): created from cgraph_create_node
5911 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
5912 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
5913 (static cgraph_node *get_for_asmname (tree asmname)):
5914 created from cgraph_node_for_asm
5915 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
5916 created from cgraph_same_body_alias
5917 (static bool used_from_object_file_p_worker (cgraph_node *node,
5918 void *): new function
5919 (static bool non_local_p (cgraph_node *node, void *)):
5920 created from cgraph_non_local_node_p_1
5921 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
5922 created from verify_cgraph
5923 (static bool make_local (cgraph_node *node, void *)):
5924 created from cgraph_make_node_local
5925 (static cgraph_node *create_alias (tree alias, tree target)):
5926 created from cgraph_create_function_alias
5927 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
5928 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
5929 created from cgraph_create_edge_1
5930 * cgraph.h (varpool_node):
5931 (void remove (void)): created from varpool_remove_node
5932 (void dump (FILE *f)): created from dump_varpool_node
5933
5934 2014-07-24 Richard Biener <rguenther@suse.de>
5935
5936 PR ipa/61823
5937 * tree-ssa-structalias.c (create_variable_info_for_1):
5938 Use varpool_get_constructor.
5939 (create_variable_info_for): Likewise.
5940
5941 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5942
5943 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
5944 subtract outgoing area size when restoring stack_pointer_rtx.
5945
5946 2014-07-24 Nick Clifton <nickc@redhat.com>
5947
5948 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
5949 that operations are taking place in parallel.
5950 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
5951
5952 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
5953
5954 * omp-low.c (extract_omp_for_data): Add missing break statement.
5955
5956 2014-07-24 Richard Biener <rguenther@suse.de>
5957
5958 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
5959 * tree-inline.c (estimate_move_cost): Add speed_p parameter
5960 and adjust MOVE_RATIO query accordingly.
5961 (estimate_num_insns): Adjust callers.
5962 * ipa-prop.c (ipa_populate_param_decls): Likewise.
5963 * ipa-cp.c (gather_context_independent_values,
5964 estimate_local_effects): Likewise.
5965 * ipa-split.c (consider_split): Likewise.
5966
5967 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
5968
5969 * config/i386/driver-i386.c: Remove names of unused arguments and
5970 unnecessary unused attributes.
5971 * config/i386/host-mingw32.c: Likewise.
5972 * config/i386/i386.c: Likewise.
5973 * config/i386/winnt-stubs.c: Likewise.
5974 * config/i386/winnt.c: Likewise.
5975
5976 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5977
5978 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
5979 (aarch64_gen_loadwb_pair): New helper function.
5980 (aarch64_expand_epilogue): Simplify code using new helper functions.
5981 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
5982
5983 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5984
5985 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
5986 (aarch64_gen_storewb_pair): New helper function.
5987 (aarch64_expand_prologue): Simplify code using new helper functions.
5988 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
5989
5990 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5991
5992 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
5993 Rename to aarch64_save_callee_saves, remove restore code.
5994 (aarch64_restore_callee_saves): New function.
5995
5996 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5997
5998 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
5999 (aarch64_save_callee_saves): New function to handle reg save
6000 for both core and vectore regs.
6001
6002 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6003
6004 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
6005 (aarch64_gen_store_pair): New helper function.
6006 (aarch64_save_or_restore_callee_save_registers)
6007 (aarch64_save_or_restore_fprs): Use new helper functions.
6008
6009 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6010
6011 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
6012 (aarch64_save_or_restore_callee_save_registers)
6013 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
6014
6015 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6016
6017 * config/aarch64/aarch64.c
6018 (aarch64_save_or_restore_callee_save_registers)
6019 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
6020
6021 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6022
6023 * config/aarch64/aarch64.c
6024 (aarch64_save_or_restore_callee_save_registers)
6025 (aarch64_save_or_restore_fprs): Remove 'increment'.
6026
6027 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6028
6029 * config/aarch64/aarch64.c
6030 (aarch64_save_or_restore_callee_save_registers)
6031 (aarch64_save_or_restore_fprs): Use register offset in
6032 cfun->machine->frame.reg_offset.
6033
6034 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6035
6036 * config/aarch64/aarch64.c
6037 (aarch64_save_or_restore_callee_save_registers)
6038 (aarch64_save_or_restore_fprs): Remove base_rtx.
6039
6040 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6041
6042 * config/aarch64/aarch64.c
6043 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
6044 to 'start_offset'. Remove local variable 'start_offset'.
6045
6046 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6047
6048 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
6049 type to HOST_WIDE_INT.
6050
6051 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6052
6053 * config/aarch64/aarch64.c (aarch64_expand_prologue)
6054 (aarch64_save_or_restore_fprs)
6055 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
6056
6057 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
6058
6059 * config/arm/t-rtems-eabi: Add
6060 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
6061 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
6062 mbig-endian/mthumb/march=armv7-r, and
6063 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
6064 multilibs.
6065
6066 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
6067 Chris Johns <chrisj@rtems.org>
6068 Joel Sherrill <joel.sherrill@oarcorp.com>
6069
6070 * config.gcc: Add nios2-*-rtems*.
6071 * config/nios2/rtems.h: New file.
6072 * gcc/config/nios2/t-rtems: New file.
6073
6074 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
6075
6076 PR target/61396
6077 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
6078 constant numbers, not general constants.
6079 (rs6000_expand_vector_init): Ditto.
6080
6081 2014-07-23 Nathan Sidwell <nathan@acm.org>
6082
6083 * gcov-tool.c (gcov_list): Declare here.
6084 (set_gcov_list): Remove.
6085 (gcov_output_files): Set gcov_list directly.
6086
6087 2014-07-23 Host Schirmeier <horst@schirmeier.com>
6088
6089 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
6090
6091 2014-07-23 Jiong Wang <jiong.wang@arm.com>
6092
6093 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
6094 callee-saved registers are available for padding purpose
6095 and r3 is not mandatory, then prefer use those callee-saved
6096 instead of r3.
6097
6098 2014-07-23 Richard Biener <rguenther@suse.de>
6099
6100 * params.def (PARAM_MAX_COMBINE_INSNS): New.
6101 * combine.c: Include statistics.h and params.h.
6102 (combine_instructions): Guard three and four insn combines
6103 with max-combine-insns value. Record statistics for combines
6104 performed.
6105 * doc/invoke.texi (max-combine-insns): Document new param.
6106
6107 2014-07-23 Roman Gareev <gareevroman@gmail.com>
6108
6109 * graphite-isl-ast-to-gimple.c:
6110 (translate_isl_ast_node_block): New function.
6111 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
6112
6113 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
6114 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
6115
6116 2014-07-23 Roman Gareev <gareevroman@gmail.com>
6117
6118 * graphite-isl-ast-to-gimple.c:
6119 (get_max_schedule_dimensions): New function.
6120 (extend_schedule): Likewise.
6121 (generate_isl_schedule): Add calling of extend_schedule and
6122 get_max_schedule_dimensions.
6123
6124 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6125
6126 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
6127 (case UNSPEC): Handle UNSPEC_RBIT.
6128
6129 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6130
6131 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
6132 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
6133
6134 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6135
6136 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
6137
6138 2014-07-22 Roman Gareev <gareevroman@gmail.com>
6139
6140 * graphite-isl-ast-to-gimple.c:
6141 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
6142 (ivs_params_clear):
6143 (build_iv_mapping): New function.
6144 (translate_isl_ast_node_user): Likewise.
6145 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
6146
6147 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
6148 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
6149 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
6150
6151 2014-07-21 Bin Cheng <bin.cheng@arm.com>
6152
6153 PR target/55701
6154 * config/arm/arm.md (setmem): New pattern.
6155 * config/arm/arm-protos.h (struct tune_params): New fields.
6156 (arm_gen_setmem): New prototype.
6157 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6158 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6159 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6160 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6161 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6162 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6163 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6164 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6165 (arm_const_inline_cost): New function.
6166 (arm_block_set_max_insns): New function.
6167 (arm_block_set_non_vect_profit_p): New function.
6168 (arm_block_set_vect_profit_p): New function.
6169 (arm_block_set_unaligned_vect): New function.
6170 (arm_block_set_aligned_vect): New function.
6171 (arm_block_set_unaligned_non_vect): New function.
6172 (arm_block_set_aligned_non_vect): New function.
6173 (arm_block_set_vect, arm_gen_setmem): New functions.
6174
6175 2014-07-21 Bin Cheng <bin.cheng@arm.com>
6176
6177 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6178
6179 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
6180
6181 PR target/61855
6182 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
6183 out of #ifdef __OPTIMIZE__.
6184
6185 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
6186
6187 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
6188 different trapping status if -fnon-call-exceptions is enabled.
6189
6190 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
6191
6192 * expr.c (store_field): Handle VOIDmode for calls that return values
6193 in multiple locations.
6194
6195 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6196
6197 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
6198 (altivec_vsldoi_<mode>): Likewise.
6199
6200 2014-07-20 Roman Gareev <gareevroman@gmail.com>
6201
6202 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
6203 to the number of characters in the line.
6204
6205 2014-07-20 Roman Gareev <gareevroman@gmail.com>
6206
6207 * graphite-isl-ast-to-gimple.c: Add using of
6208 build_nonstandard_integer_type instead of int128_integer_type_node.
6209
6210 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
6211
6212 * toplev.c (output_stack_usage): Adjust the location of the warning.
6213
6214 2014-07-19 Daniel Cederman <cederman@gaisler.com>
6215
6216 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
6217 (*membar_storeload): Disable for LEON3.
6218
6219 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
6220
6221 PR rtl-optimization/61461
6222 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
6223
6224 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
6225
6226 PR target/61794
6227 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
6228 Fix instruction constraint.
6229 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6230
6231 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
6232
6233 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
6234
6235 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
6236
6237 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
6238 GNU coding standards.
6239 (nds32_register_move_cost): Likewise.
6240 (nds32_memory_move_cost): Likewise.
6241 (nds32_address_cost): Likewise.
6242
6243 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6244
6245 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
6246
6247 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
6248
6249 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
6250 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
6251 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6252 (HAVE_sync_compare_and_swapqi): Define.
6253 (HAVE_sync_compare_and_swaphi): Likewise.
6254 (HAVE_sync_compare_and_swapsi): Likewise.
6255
6256 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
6257
6258 * config/mips/p5600.md: Add missing cpu tests.
6259
6260 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6261
6262 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
6263 (vmla_f64): Likewise.
6264 (vfms_f64): Likewise.
6265 (vmls_f64): Likewise.
6266
6267 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6268
6269 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
6270 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
6271
6272 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6273
6274 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
6275 (vmlal_high_lane_s32): Likewise.
6276 (vmlal_high_lane_u16): Likewise.
6277 (vmlal_high_lane_u32): Likewise.
6278 (vmlsl_high_lane_s16): Likewise.
6279 (vmlsl_high_lane_s32): Likewise.
6280 (vmlsl_high_lane_u16): Likewise.
6281 (vmlsl_high_lane_u32): Likewise.
6282
6283 2014-07-17 Terry Guo <terry.guo@arm.com>
6284
6285 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
6286 (alus_reg): Renamed to alus_sreg.
6287 * config/arm/arm-fixed.md: Change type of non-dsp instructions
6288 from alu_reg to alu_sreg. Change type of dsp instructions from
6289 alu_reg to alu_dsp_reg.
6290 * config/arm/thumb1.md: Likewise.
6291 * config/arm/thumb2.md: Likewise.
6292 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
6293 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
6294 with alu_sreg and alus_sreg.
6295 * config/arm/arm1026ejs.md (alu_op): Likewise.
6296 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
6297 * config/arm/arm926ejs.md (9_alu_op): Likewise.
6298 * config/arm/fa526.md (526_alu_op): Likewise.
6299 * config/arm/fa606te.md (606te_alu_op): Likewise.
6300 * config/arm/fa626te.md (626te_alu_op): Likewise.
6301 * config/arm/fa726te.md (726te_alu_op): Likewise.
6302 * config/arm/fmp626.md (mp626_alu_op): Likewise.
6303 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
6304 alu_sreg, alu_dsp_reg and alus_sreg.
6305 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
6306 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
6307 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
6308 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
6309 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
6310 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
6311 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
6312 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
6313 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
6314 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
6315 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
6316 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
6317 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
6318 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
6319 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
6320 alus_reg to alus_sreg.
6321
6322 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
6323
6324 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
6325 infinity format.
6326
6327 2014-07-17 Richard Biener <rguenther@suse.de>
6328
6329 PR rtl-optimization/61801
6330 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
6331 don't set reg_pending_barrier if it appears in a debug-insn.
6332
6333 2014-07-16 DJ Delorie <dj@redhat.com>
6334
6335 * config/rx/rx.c (rx_option_override): Fix alignment values.
6336 (rx_align_for_label): Likewise.
6337
6338 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
6339
6340 PR target/61737.
6341 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
6342 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6343 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
6344 functions.
6345 (cris_print_index, cris_print_operand, cris_constant_index_p)
6346 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
6347 (cris_address_cost): Ditto last CONSTANT_P.
6348 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
6349 callers changed. Yield cris_offsettable_symbol for non-PIC
6350 constant symbolic expressions including labels. Yield cris_unspec
6351 for all unspecs.
6352 (cris_expand_pic_call_address): New parameter MARKERP. Set its
6353 target to pic_offset_table_rtx for calls that will likely go
6354 through PLT, const0_rtx when they can't. All callers changed.
6355 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
6356 symbolic expressions to be PICified. Remove second, redundant,
6357 assert on can_create_pseudo_p returning non-zero. Use
6358 replace_equiv_address_nv, not replace_equiv_address, for final
6359 operand update.
6360 * config/cris/cris.md ("movsi"): Move variable t to pattern
6361 toplevel. Adjust assert for new cris_symbol_type member. Use
6362 CONSTANT_P instead of CONSTANT_ADDRESS_P.
6363 ("*movsi_internal") <case 9>: Make check for valid unspec operands
6364 for lapc stricter.
6365 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
6366 ("call", "call_value"): Use second incoming operand as a marker
6367 for pic-offset-table-register being used.
6368 ("*expanded_call_non_v32", "*expanded_call_v32")
6369 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
6370 second incoming operand to CALL, match cris_call_type_marker.
6371 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
6372 ("*expanded_call_side"): Ditto. Fix typo in comment.
6373 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
6374 CONSTANT_P.
6375 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
6376 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
6377 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
6378 users changed. Add members cris_offsettable_symbol and cris_unspec.
6379 (cris_symbol_type): Rename from cris_pic_symbol_type.
6380 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
6381 just CONSTANT_P.
6382 * config/cris/cris-protos.h (cris_symbol_type_of,
6383 cris_expand_pic_call_address): Adjust prototypes.
6384 (cris_legitimate_constant_p): New prototype.
6385
6386 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
6387 an existing tmake_file. Don't add t-slibgcc and t-linux.
6388
6389 2014-07-17 Jason Merrill <jason@redhat.com>
6390
6391 PR c++/61623
6392 * symtab.c (symtab_remove_from_same_comdat_group): Also
6393 set_comdat_group to NULL_TREE.
6394 (verify_symtab): Fix diagnostic.
6395
6396 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
6397
6398 PR target/61662
6399 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
6400
6401 2014-07-16 Dodji Seketeli <dodji@redhat.com>
6402
6403 Support location tracking for built-in macro tokens
6404 * input.h (is_location_from_builtin_token): New function declaration.
6405 * input.c (is_location_from_builtin_token): New function definition.
6406 * toplev.c (general_init): Tell libcpp what the pre-defined
6407 spelling location for built-in tokens is.
6408
6409 2014-07-16 Jakub Jelinek <jakub@redhat.com>
6410
6411 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
6412 on the FUNCTION_DECL.
6413
6414 2014-07-16 Richard Biener <rguenther@suse.de>
6415
6416 PR other/61782
6417 * doc/extend.texi (always_inline): Clarify.
6418
6419 2014-07-15 Eric Christopher <echristo@gmail.com>
6420
6421 * doc/invoke.texi (Link Options): Document -z option.
6422
6423 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
6424
6425 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
6426 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
6427
6428 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
6429
6430 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
6431
6432 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
6433
6434 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
6435 varpool_assemble_decl.
6436 * varpool.c (varpool_assemble_decl): Assert that node->definition is
6437 true.
6438
6439 2014-07-15 Michael Matz <matz@suse.de>
6440
6441 PR rtl-optimization/61772
6442 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
6443
6444 2014-07-15 Richard Biener <rguenther@suse.de>
6445
6446 * opts.c (default_options_table): Disable bit-ccp at -Og.
6447
6448 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
6449
6450 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
6451
6452 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
6453
6454 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
6455 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
6456 call langhook for unknown declaration.
6457 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
6458 * tree.h (DECL_ARGUMENTS): Update.
6459 * print-tree.c (print_node): Update.
6460 * tree-core.h (tree_decl_non_common): Remove arguments.
6461 (tree_function_decl): Add arguments.
6462
6463 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
6464
6465 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
6466
6467 2014-07-14 Richard Biener <rguenther@suse.de>
6468
6469 PR tree-optimization/61779
6470 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
6471 simplifying a condition.
6472
6473 2014-07-14 Richard Biener <rguenther@suse.de>
6474
6475 * builtins.c (c_strlen): Make only_value == 2 really only
6476 affect warning generation.
6477
6478 2014-07-14 Richard Biener <rguenther@suse.de>
6479
6480 PR tree-optimization/61757
6481 PR tree-optimization/61783
6482 PR tree-optimization/61787
6483 * tree-ssa-dom.c (record_equality): Revert canonicalization
6484 change and add comment.
6485 (propagate_rhs_into_lhs): Revert previous fix, removing
6486 loop depth restriction again.
6487
6488 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6489
6490 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
6491 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
6492 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
6493 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
6494 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
6495 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
6496 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
6497
6498 2014-07-14 Richard Biener <rguenther@suse.de>
6499
6500 * cgraph.h (decl_in_symtab_p): Make inline.
6501
6502 2014-07-14 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR middle-end/61294
6505 * doc/invoke.texi (-Wmemset-transposed-args): Document.
6506
6507 PR target/61656
6508 * config/i386/i386.c (classify_argument): Don't merge classes above
6509 number of words.
6510
6511 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
6512
6513 * cgraph.h (symtab_node): Add nonzero_address.
6514 (decl_in_symtab_p): Break out from ...
6515 (symtab_get_node): ... here.
6516 * fold-const.c: Include cgraph.h
6517 (tree_single_nonzero_warnv_p): Use symtab to determine
6518 if symbol is non-zero.
6519 * symtab.c (symtab_node::nonzero_address): New method.
6520
6521 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
6522
6523 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
6524 forgotten in previous commit.
6525
6526 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
6527
6528 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
6529 on builtin types.
6530 * ipa-devirt.c: Include stor-layout.h and intl.h
6531 (odr_subtypes_equivalent_p): New function.
6532 (warn_odr): New function.
6533 (warn_type_mismatch): New function.
6534 (odr_types_equivalent_p): New function.
6535 (add_type_duplicate): Use it.
6536 * common.opt (Wodr): New flag.
6537 * doc/invoke.texi (Wodr): Document new warning.
6538
6539 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
6540
6541 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
6542 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
6543 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
6544 (varpool_get_constructor): Push CTORS_IN timevar.
6545 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
6546
6547 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
6548
6549 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
6550 Remove VOID_FTYPE_PUSHORT.
6551 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
6552 Change code to USHORT_FTYPE_VOID.
6553 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
6554 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
6555 (ix86_atomic_assign_expand_fenv): Update for
6556 __builtin_ia32_fnstsw changes.
6557 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
6558 (fnstsw): Change operand 0 to nonimmediate operand.
6559
6560 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6561
6562 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
6563 (varpool_get_constructor): New function.
6564 (varpool_ctor_useable_for_folding_p): Break out from ...
6565 (ctor_for_folding): ... here; use varpool_get_constructor.
6566 (varpool_assemble_decl): Likewise.
6567 * lto-streamer.h (struct output_block): Turn cgraph_node
6568 to symbol filed.
6569 (lto_input_variable_constructor): Declare.
6570 * ipa-visibility.c (function_and_variable_visibility): Use
6571 varpool_get_constructor.
6572 * cgraph.h (varpool_get_constructor): Declare.
6573 (varpool_ctor_useable_for_folding_p): New function.
6574 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
6575 parameter; return error_mark_node for non-trivial constructors.
6576 (lto_write_tree_1, DFS_write_tree): Update use of
6577 get_symbol_initial_value.
6578 (output_function): Update initialization of symbol.
6579 (output_constructor): New function.
6580 (copy_function): Rename to ..
6581 (copy_function_or_variable): ... this one; handle vars too.
6582 (lto_output): Output variable sections.
6583 * lto-streamer-in.c (input_constructor): New function.
6584 (lto_read_body): Rename from ...
6585 (lto_read_body_or_constructor): ... this one; handle vars too.
6586 (lto_input_variable_constructor): New function.
6587 * ipa-prop.c (ipa_prop_write_jump_functions,
6588 ipa_prop_write_all_agg_replacement): Update.
6589 * lto-cgraph.c (compute_ltrans_boundary): Use it.
6590 (output_cgraph_opt_summary): Set symbol to NULL.
6591
6592 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6593
6594 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
6595 non-polymorphic types.
6596 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
6597 * ipa-devirt.c (types_same_for_odr): Do not explode when one
6598 of types is not polymorphic.
6599
6600 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
6601
6602 * lra-constraints.c (remove_inheritance_pseudos): Process
6603 destination pseudo too.
6604
6605 2014-07-11 Rong Xu <xur@google.com>
6606
6607 * gcov-tool.c (gcov_output_files): Fix build error introduced in
6608 commit r212448.
6609
6610 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6611
6612 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
6613 * config/avr/avr-devices.c (AVR_MCU): Same.
6614 (avr_mcu_types): add text start value to end of device list.
6615 * config/avr/avr-mcus.def: Add text section start for all devices.
6616 (ata5782): Add new avr5 device.
6617 (ata5831): Same.
6618 * config/avr/avr-tables.opt: Regenerate.
6619 * config/avr/avr.h: Add declaration for text section start handler.
6620 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
6621 SPEC functions.
6622 (LINK_SPEC): Include text section start handler to linker spec.
6623 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
6624 pass -Ttext option to linker if the text section start for the device
6625 is not zero.
6626 * config/avr/t-multilib: Regenerate.
6627 * doc/avr-mmcu.texi: Regenerate.
6628
6629 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
6630
6631 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
6632 * config/rs6000/aix52.h (LINK_SPEC): Same.
6633 * config/rs6000/aix53.h (LINK_SPEC): Same.
6634 * config/rs6000/aix61.h (LINK_SPEC): Same.
6635 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
6636
6637 2014-07-11 Roman Gareev <gareevroman@gmail.com>
6638
6639 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
6640 (graphite_verify): New function.
6641 (ivs_params_clear): New function.
6642 (gcc_expression_from_isl_ast_expr_id): New function.
6643 (gcc_expression_from_isl_expr_int): New function.
6644 (binary_op_to_tree): New function.
6645 (ternary_op_to_tree): New function.
6646 (unary_op_to_tree): New function.
6647 (nary_op_to_tree): New function.
6648 (gcc_expression_from_isl_expr_op): New function.
6649 (gcc_expression_from_isl_expression): New function.
6650 (graphite_create_new_loop): New function.
6651 (translate_isl_ast_for_loop): New function.
6652 (get_upper_bound): New function.
6653 (graphite_create_new_loop_guard): New function.
6654 (translate_isl_ast_node_for): New function.
6655 (translate_isl_ast): New function.
6656 (add_parameters_to_ivs_params): New function.
6657 (scop_to_isl_ast): New parameter ip.
6658 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
6659
6660 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6661
6662 * config/xtensa/predicates.md (call expander): Update for
6663 DECL_SECTION_NAME being string.
6664
6665 2014-07-11 Richard Biener <rguenther@suse.de>
6666
6667 PR middle-end/61473
6668 * builtins.c (fold_builtin_memory_op): Inline memory moves that
6669 can be implemented with a single load followed by a single store.
6670 (c_strlen): Only warn when only_value is not 2.
6671
6672 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
6673
6674 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
6675
6676 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
6677
6678 PR target/61561
6679 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
6680 (*movhi_bytes): Likewise.
6681 (*arm_movqi_insn): Likewise.
6682
6683 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
6684
6685 PR target/56858
6686 * config/alpha/alpha.c: Include tree-pass.h, context.h
6687 and pass_manager.h.
6688 (pass_data_handle_trap_shadows): New pass.
6689 (pass_handle_trap_shadows::gate): New pass gate function.
6690 (make_pass_handle_trap_shadows): New function.
6691 (rest_of_handle_trap_shadows): Ditto.
6692
6693 (alpha_align_insns_1): Rename from alpha_align_insns.
6694 (pass_data_align_insns): New pass.
6695 (pass_align_insns::gate): New pass gate function.
6696 (make_pass_aling_insns): New function.
6697 (rest_of_align_insns): Ditto.
6698 (alpha_align_insns): Ditto.
6699
6700 (alpha_option_override): Declare handle_trap_shadows info
6701 and align_insns_info. Register handle_trap_shadows and align_insns
6702 passes here.
6703 (alpha_reorg): Do not call alpha_trap_shadows and
6704 alpha_align_insn from here.
6705
6706 (alpha_pad_function_end): Do not skip BARRIERs.
6707
6708 2014-07-10 Rong Xu <xur@google.com>
6709
6710 Add gcov-tool: an offline gcda profile processing tool support.
6711 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
6712 (gcov_is_error): Ditto.
6713 (gcov_read_string): Ditto.
6714 (gcov_read_sync): Ditto.
6715 * gcov-io.h: Move counter defines to gcov-counter.def.
6716 * gcov-dump.c (tag_counters): Use gcov-counter.def.
6717 * coverage.c: Ditto.
6718 * gcov-tool.c: Offline gcda profile processing tool.
6719 (unlink_gcda_file): Remove one gcda file.
6720 (unlink_profile_dir): Remove gcda files from the profile path.
6721 (gcov_output_files): Output gcda files to an output dir.
6722 (profile_merge): Merge two profiles in directory.
6723 (print_merge_usage_message): Print merge usage.
6724 (merge_usage): Print merge usage and exit.
6725 (do_merge): Driver for profile merge sub-command.
6726 (profile_rewrite): Rewrite profile.
6727 (print_rewrite_usage_message): Print rewrite usage.
6728 (rewrite_usage): Print rewrite usage and exit.
6729 (do_rewrite): Driver for profile rewrite sub-command.
6730 (print_usage): Print gcov-info usage and exit.
6731 (print_version): Print gcov-info version.
6732 (process_args): Process arguments.
6733 (main): Main routine for gcov-tool.
6734 * Makefile.in: Build and install gcov-tool.
6735 * gcov-counter.def: New file split from gcov-io.h.
6736 * doc/gcc.texi: Include gcov-tool.texi.
6737 * doc/gcov-tool.texi: Document for gcov-tool.
6738
6739 2014-07-10 Richard Biener <rguenther@suse.de>
6740
6741 PR tree-optimization/61757
6742 * tree-ssa-dom.c (loop_depth_of_name): Restore.
6743 (propagate_rhs_into_lhs): Revert part of last change.
6744
6745 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
6746
6747 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
6748 FUNCTION_DECLs.
6749
6750 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
6751
6752 PR middle-end/53590
6753 * function.c (allocate_struct_function): Revert r188667 change.
6754
6755 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
6756
6757 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
6758
6759 * doc/install.texi: Remove links to defunct package providers for
6760 Solaris.
6761
6762 2014-07-09 Tom de Vries <tom@codesourcery.com>
6763
6764 * final.c (get_call_fndecl): Declare.
6765 (self_recursive_call_p): New function.
6766 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
6767
6768 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6769
6770 * ipa-devirt.c (record_node): Walk through aliases.
6771
6772 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6773
6774 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
6775
6776 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6777
6778 Revert:
6779 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6780
6781 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6782
6783 * ipa-visibility.c (function_and_variable_visibility): Remove
6784 temporary hack disabling local aliases on AIX.
6785
6786 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6787
6788 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
6789 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
6790
6791 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6792
6793 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
6794 * rs6000/rs6000.c: Inline output of .set instruction.
6795 (declare_alias_data): New struct.
6796 (rs6000_declare_alias): New function.
6797 (rs6000_xcoff_declare_function_name): Use it.
6798 (rs6000_xcoff_declare_object_name): New function.
6799 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
6800 (ASM_OUTPUT_DEF): Turn to empty definition.
6801
6802 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6803
6804 PR bootstrap/61679
6805 * hash-table.h: use hash_table::value_type instead of
6806 Descriptor::value_type in the return types of several methods.
6807
6808 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6809
6810 * tree-pass.h (pass_data): Remove has_execute member.
6811 * passes.c (execute_one_pass): Don't check pass->has_execute.
6812 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
6813 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
6814 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
6815 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
6816 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
6817 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
6818 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
6819 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
6820 gimple-low.c, gimple-ssa-isolate-paths.c,
6821 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
6822 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
6823 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
6824 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
6825 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6826 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
6827 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
6828 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
6829 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
6830 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
6831 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
6832 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6833 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
6834 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6835 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
6836 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
6837 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
6838 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
6839 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
6840 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
6841 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
6842 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
6843 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
6844 web.c: Remove initializer for pass_data::has_execute.
6845
6846 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6847
6848 * graphite-htab.h: Use hash_map instead of hash_table.
6849 * graphite-clast-to-gimple.c: Adjust.
6850 * passes.c: Use hash_map instead of hash_table.
6851 * sese.c: Likewise.
6852 * sese.h: Remove now unused code.
6853
6854 2014-07-08 Sriraman Tallam <tmsriram@google.com>
6855
6856 PR target/61599
6857 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
6858 than zero.
6859
6860 2014-07-08 Jakub Jelinek <jakub@redhat.com>
6861
6862 PR rtl-optimization/61673
6863 * combine.c (simplify_comparison): Test just mode's sign bit
6864 in tmode rather than the sign bit and any bits above it.
6865
6866 2014-07-08 Roman Gareev <gareevroman@gmail.com>
6867
6868 * graphite-isl-ast-to-gimple.c (generate_isl_context):
6869 Add __isl_give to the declaration.
6870 (generate_isl_schedule): Likewise.
6871 (scop_to_isl_ast): Likewise.
6872
6873 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6874
6875 * config/arm/arm.c (cortexa5_extra_costs): New table.
6876 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
6877
6878 2014-07-08 Jakub Jelinek <jakub@redhat.com>
6879
6880 PR tree-optimization/61725
6881 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
6882 range, use range_includes_zerop_p instead of integer_zerop on
6883 vr0->min, only use log2 of max if min is not negative.
6884
6885 2014-07-08 Richard Biener <rguenther@suse.de>
6886
6887 * tree-ssa-dom.h (loop_depth_of_name): Remove.
6888 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
6889 restriction on loop depth difference.
6890 (record_equality): Likewise.
6891 (propagate_rhs_into_lhs): Likewise. Simplify condition.
6892 (loop_depth_of_name): Remove.
6893 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
6894 restriction on loop depth difference.
6895 (init_copy_prop): Likewise.
6896
6897 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6898
6899 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
6900 parameter.
6901 (walk_aliased_vdefs): Likewise.
6902 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
6903 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
6904 (detect_type_change_from_memory_writes): Check if entry was reached.
6905
6906 2014-07-08 Richard Biener <rguenther@suse.de>
6907
6908 PR tree-optimization/61681
6909 * tree-ssa-structalias.c (find_what_var_points_to): Expand
6910 NONLOCAL inside ESCAPED.
6911
6912 2014-07-08 Richard Biener <rguenther@suse.de>
6913
6914 PR tree-optimization/61680
6915 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6916 Handle properly all read-write dependences with group accesses.
6917
6918 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6919
6920 PR tree-optimization/61576
6921 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
6922 block containing reduction statement is predecessor of phi basi block.
6923
6924 2014-07-08 Marek Polacek <polacek@redhat.com>
6925
6926 PR c/60226
6927 * fold-const.c (round_up_loc): Change the parameter type.
6928 Remove assert.
6929 * fold-const.h (round_up_loc): Adjust declaration.
6930 * stor-layout.c (finalize_record_size): Check for too large types.
6931
6932 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
6933
6934 * symtab.c: Include calls.h.
6935 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
6936
6937 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
6938
6939 * config/rs6000/rs6000.c (output_vec_const_move): Handle
6940 little-endian code generation.
6941 * config/rs6000/spe.md (spe_evmergehi): Rename to...
6942 (vec_perm00_v2si): ... this. Handle little-endian code generation.
6943 (spe_evmergehilo): Rename to...
6944 (vec_perm01_v2si): ... this. Handle little-endian code generation.
6945 (spe_evmergelo): Rename to...
6946 (vec_perm11_v2si): ... this. Handle little-endian code generation.
6947 (spe_evmergelohi): Rename to...
6948 (vec_perm10_v2si): ... this. Handle little-endian code generation.
6949 (spe_evmergehi, spe_evmergehilo): New expanders.
6950 (spe_evmergelo, spe_evmergelohi): Likewise.
6951 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
6952 (*frob_tf_ti): Likewise.
6953 (*frob_<mode>_di_2): Likewise.
6954 (*frob_tf_di_8_2): Likewise.
6955 (*frob_di_<mode>): Likewise.
6956 (*frob_ti_tf): Likewise.
6957 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
6958 (*frob_ti_<mode>_8_2): Likewise.
6959 (*frob_ti_tf_2): Likewise.
6960 (mov_si<mode>_e500_subreg0): Rename to...
6961 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
6962 endianness only.
6963 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
6964 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
6965 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
6966 the big endianness only.
6967 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
6968 (*mov_si<mode>_e500_subreg0_2): Rename to...
6969 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
6970 big big endianness only.
6971 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
6972 (*mov_si<mode>_e500_subreg4): Rename to...
6973 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
6974 endianness only.
6975 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
6976 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
6977 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
6978 the big endianness only.
6979 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
6980 pattern.
6981 (*mov_si<mode>_e500_subreg4_2): Rename to...
6982 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
6983 endianness only.
6984 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
6985 (*mov_sitf_e500_subreg8): Rename to...
6986 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
6987 endianness only.
6988 (*mov_sitf_e500_subreg8_le): New instruction pattern.
6989 (*mov_sitf_e500_subreg8_2): Rename to...
6990 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
6991 endianness only.
6992 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
6993 (*mov_sitf_e500_subreg12): Rename to...
6994 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
6995 endianness only.
6996 (*mov_sitf_e500_subreg12_le): New instruction pattern.
6997 (*mov_sitf_e500_subreg12_2): Rename to...
6998 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
6999 endianness only.
7000 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
7001
7002 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
7003
7004 * asan.c (instrument_strlen_call): Do not instrument first byte
7005 in strlen if already instrumented.
7006
7007 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7008
7009 * config/arm/arm.opt (mwords-little-endian): Delete.
7010 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
7011 of TARGET_LITTLE_WORDS.
7012 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
7013 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
7014 warning.
7015 * doc/invoke.texi: Remove references to -mwords-little-endian.
7016
7017 2014-07-07 Jakub Jelinek <jakub@redhat.com>
7018
7019 * expmed.c (struct init_expmed_rtl): Change all fields but
7020 pow2 and cint from struct rtx_def to rtx.
7021 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
7022 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
7023 at the end again.
7024
7025 2014-07-06 Marek Polacek <polacek@redhat.com>
7026
7027 PR c/6940
7028 * doc/invoke.texi: Document -Wsizeof-array-argument.
7029
7030 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
7031
7032 * wide-int.h (wide_int_storage): Change declaration from struct
7033 to class.
7034
7035 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
7036
7037 * cgraph.c (cgraph_create_indirect_edge): Update call of
7038 get_polymorphic_call_info.
7039 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
7040 (possible_polymorphic_call_targets): Add parameter call.
7041 (decl_maybe_in_construction_p): New predicate.
7042 (get_polymorphic_call_info): Add parameter call;
7043 use decl_maybe_in_construction_p.
7044 * gimple-fold.c (fold_gimple_assign): Update use of
7045 possible_polymorphic_call_targets.
7046 (gimple_fold_call): Likewise.
7047 * ipa-prop.c: Inlcude calls.h
7048 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
7049 (param_type_may_change_p): New predicate.
7050 (detect_type_change_from_memory_writes): Break out from ...
7051 (detect_type_change): ... this one; use param_type_may_change_p.
7052 (detect_type_change_ssa): Use param_type_may_change_p.
7053 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
7054
7055 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
7056
7057 PR target/49423
7058 * config/arm/arm-protos.h (arm_legitimate_address_p,
7059 arm_is_constant_pool_ref): Add prototypes.
7060 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
7061 (arm_is_constant_pool_ref) New function.
7062 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
7063 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
7064 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
7065 operand. Remove pool_range and neg_pool_range attributes.
7066 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
7067 pool_range and neg_pool_range attributes.
7068 * config/arm/constraints.md (Uh): New constraint.
7069 (Uq): Don't allow constant pool references.
7070
7071 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
7072
7073 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
7074 (move_lo_quad_internal_be_<mode>): Likewise.
7075 (move_lo_quad_<mode>): Convert to define_expand.
7076 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
7077 (aarch64_simd_move_hi_quad_be_<mode>): New.
7078 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
7079 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
7080 (aarch64_combinez_be<mode>): New.
7081 (aarch64_combine<mode>): Convert to define_expand.
7082 (aarch64_combine_internal<mode>): New.
7083 (aarch64_simd_combine<mode>): Remove bogus RTL description.
7084
7085 2014-07-04 Tom de Vries <tom@codesourcery.com>
7086
7087 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
7088 combination of earlyclobber and read/write modifiers.
7089
7090 2014-07-04 Tom de Vries <tom@codesourcery.com>
7091
7092 * config/aarch64/aarch64-simd.md
7093 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
7094
7095 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
7096
7097 PR target/61714
7098 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
7099
7100 2014-07-04 Jakub Jelinek <jakub@redhat.com>
7101
7102 PR middle-end/61654
7103 * cgraphunit.c (expand_thunk): Call free_dominance_info.
7104
7105 PR tree-optimization/61684
7106 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
7107 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
7108
7109 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7110 Kito Cheng <kito@0xlab.org>
7111 Monk Chiang <sh.chiang04@gmail.com>
7112
7113 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
7114 (nds32_symbol_load_store_p): Move to ...
7115 (nds32_fp_as_gp_check_available): Move to ...
7116 * config/nds32/nds32-fp-as-gp.c: ... here.
7117 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
7118 extern declaration.
7119
7120 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7121 Kito Cheng <kito@0xlab.org>
7122 Monk Chiang <sh.chiang04@gmail.com>
7123
7124 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
7125 (nds32_expand_store_multiple): Move to ...
7126 (nds32_expand_movmemqi): Move to ...
7127 * config/nds32/nds32-memory-manipulation.c: ... here.
7128
7129 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7130 Kito Cheng <kito@0xlab.org>
7131 Monk Chiang <sh.chiang04@gmail.com>
7132
7133 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
7134 (nds32_output_casesi_pc_relative): Move to ...
7135 (nds32_output_casesi): Move to ...
7136 (nds32_mem_format): Move to ...
7137 (nds32_output_16bit_store): Move to ...
7138 (nds32_output_16bit_load): Move to ...
7139 (nds32_output_32bit_store): Move to ...
7140 (nds32_output_32bit_load): Move to ...
7141 (nds32_output_32bit_load_s): Move to ...
7142 (nds32_output_stack_push): Move to ...
7143 (nds32_output_stack_pop): Move to ...
7144 * config/nds32/nds32-md-auxiliary.c: ... here.
7145
7146 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7147 Ling-Hua Tseng <uranus@tinlans.org>
7148
7149 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
7150 the purpose of this file.
7151
7152 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7153 Kito Cheng <kito@0xlab.org>
7154 Monk Chiang <sh.chiang04@gmail.com>
7155
7156 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
7157 (nds32_address_cost): Move implementation to ...
7158 * config/nds32/nds32-cost.c: ... here.
7159 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
7160 (nds32_address_cost_impl): Declare.
7161
7162 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7163 Kito Cheng <kito@0xlab.org>
7164 Monk Chiang <sh.chiang04@gmail.com>
7165
7166 * config/nds32/nds32.c
7167 (nds32_consecutive_registers_load_store_p): Move to ...
7168 (nds32_valid_multiple_load_store): Move to ...
7169 (nds32_valid_stack_push_pop): Move to ...
7170 (nds32_can_use_bclr_p): Move to ...
7171 (nds32_can_use_bset_p): Move to ...
7172 (nds32_can_use_btgl_p): Move to ...
7173 (nds32_can_use_bitci_p): Move to ...
7174 * config/nds32/nds32-predicates.c: ... here.
7175
7176 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7177 Kito Cheng <kito@0xlab.org>
7178 Monk Chiang <sh.chiang04@gmail.com>
7179
7180 * config/nds32/nds32.c
7181 (nds32_expand_builtin_null_ftype_reg): Move to ...
7182 (nds32_expand_builtin_reg_ftype_imm): Move to ...
7183 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
7184 (nds32_init_builtins): Move implementation to ...
7185 (nds32_expand_builtin): Move implementation to ...
7186 * config/nds32/nds32-intrinsic.c: ... here.
7187 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
7188 (nds32_expand_builtin_impl): Declare.
7189
7190 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7191 Kito Cheng <kito@0xlab.org>
7192 Monk Chiang <sh.chiang04@gmail.com>
7193
7194 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
7195 (nds32_emit_section_tail_template): Move to ...
7196 (nds32_emit_isr_jmptbl_section): Move to ...
7197 (nds32_emit_isr_vector_section): Move to ...
7198 (nds32_emit_isr_reset_conten): Move to ...
7199 (nds32_check_isr_attrs_conflict): Move to ...
7200 (nds32_construct_isr_vectors_information): Move to ...
7201 (nds32_asm_file_start): Move implementation to ...
7202 (nds32_asm_file_end): Move implementation to ...
7203 * config/nds32/nds32-isr.c: ... here.
7204 * config/nds32/nds32-protos.h
7205 (nds32_check_isr_attrs_conflict): Declare.
7206 (nds32_construct_isr_vectors_information): Declare.
7207 (nds32_asm_file_start_for_isr): Declare.
7208 (nds32_asm_file_end_for_isr): Declare.
7209
7210 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
7211 Kito Cheng <kito@0xlab.org>
7212 Monk Chiang <sh.chiang04@gmail.com>
7213
7214 * config.gcc (nds32*): Add new modules to extra_objs.
7215 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
7216 (nds32be-*-*): Likewise.
7217 * config/nds32/nds32-cost.c: New file.
7218 * config/nds32/nds32-fp-as-gp.c: New file.
7219 * config/nds32/nds32-intrinsic.c: New file.
7220 * config/nds32/nds32-isr.c: New file.
7221 * config/nds32/nds32-md-auxiliary.c: New file.
7222 * config/nds32/nds32-memory-manipulation.c: New file.
7223 * config/nds32/nds32-pipelines-auxiliary.c: New file.
7224 * config/nds32/nds32-predicates.c: New file.
7225 * config/nds32/t-nds32: New file.
7226
7227 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7228
7229 PR tree-optimization/61682
7230 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
7231 using cases and when one of the operands is equal to 1.
7232
7233 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
7234
7235 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
7236 ashr<mode>3): Correct mode of operands[2].
7237 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
7238 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
7239 Correct mode of operands[2]. Fix split condition.
7240
7241 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
7242
7243 * arm.md (arch): Add armv6_or_vfpv3.
7244 (arch_enabled): Add test for the above.
7245 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
7246 on VFP9.
7247 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
7248
7249 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7250
7251 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
7252 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
7253 HWI 1 and negate the unsigned value.
7254 * expmed.c (expand_sdiv_pow2): For modes wider than word always
7255 use AND instead of shift.
7256 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
7257
7258 2014-07-03 Marek Polacek <polacek@redhat.com>
7259
7260 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
7261 (-fsanitize=float-divide-by-zero): Move to the table with
7262 -fsanitize=undefined suboptions.
7263 (-fsanitize=float-cast-overflow): Likewise.
7264
7265 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
7266
7267 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
7268 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
7269 endianness.
7270
7271 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7272
7273 * loop-invariant.c (struct invariant): Add a new member: eqno;
7274 (find_identical_invariants): Update eqno;
7275 (create_new_invariant): Init eqno;
7276 (get_inv_cost): Compute comp_cost with eqno;
7277
7278 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
7279
7280 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
7281 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
7282 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
7283 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
7284 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
7285
7286 2014-07-02 Christian Bruel <christian.bruel@st.com>
7287
7288 PR target/29349
7289 PR target/53513
7290 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
7291 (make_preds_opaque): Delete.
7292 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
7293 (commit_mode_sets): New function.
7294 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
7295 Process all modes at once.
7296 * basic-block.h (pre_edge_lcm_avs): Declare.
7297 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
7298 Call clear_aux_for_edges. Fix comments.
7299 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
7300 (pre_edge_rev_lcm): Idem.
7301 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
7302 parameter.
7303 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
7304 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
7305 Idem.
7306 * config/i386/i386.c (x96_emit_mode_set): Idem.
7307 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
7308 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
7309 (fpscr_toggle) Disallow from delay slot.
7310 * target.def (emit_mode_set): Add prev_mode parameter.
7311 * doc/tm.texi: Regenerate.
7312
7313 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7314
7315 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
7316 variable i.
7317
7318 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
7319
7320 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
7321 vtable_pointer_value_to_vtable): Constify.
7322 (contains_polymorphic_type_p): Declare.
7323 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
7324 vtable_pointer_value_to_vtable): Constify.
7325 (contains_polymorphic_type_p): New predicate.
7326 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
7327 polymorphic types.
7328 (ipa_set_ancestor_jf): Likewise.
7329 (detect_type_change): Return false in easy cases.
7330 (compute_complex_assign_jump_func): Require type to contain
7331 polymorphic type.
7332 (compute_known_type_jump_func): Likewise.
7333
7334 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
7335
7336 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
7337 Remove.
7338 (type_in_anonymous_namespace_p): Constify argument.
7339 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
7340 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
7341 (main_odr_variant): New function.
7342 (hash_type_name): Make static; update assert; do not ICE on
7343 non-records.
7344 (types_same_for_odr): Bring here from tree.c; simplify and remove
7345 old structural comparing code that doesn't work for templates.
7346 (odr_hasher::equal): Update assert.
7347 (add_type_duplicate): Return true when bases should be computed;
7348 replace incomplete loader by complete; do not output duplicated
7349 warnings; do not ICE on non-records; set odr_violated flag.
7350 (get_odr_type): Be ready to replace incomplete type by complete
7351 one; work on ODR variants instead of main variants; reorder item
7352 in array so bases have still smaller indexes.
7353 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
7354 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
7355
7356 2014-07-01 Cary Coutant <ccoutant@google.com>
7357
7358 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
7359 lookup.
7360 (resolve_addr_in_expr): When replacing the rtx in a location list
7361 entry, get a new address table entry.
7362 (dwarf2out_finish): Call index_location_lists even if there are no
7363 addr_index_table entries yet.
7364
7365 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
7366
7367 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
7368 change for not being obvious.
7369
7370 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
7371
7372 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
7373 unused argument.
7374
7375 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7376
7377 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
7378 (vcagt_f64): Likewise.
7379 (vcale_f64): Likewise.
7380 (vcaled_f64): Likewise.
7381 (vcales_f32): Likewise.
7382 (vcalt_f64): Likewise.
7383 (vcaltd_f64): Likewise.
7384 (vcalts_f32): Likewise.
7385
7386 2014-07-01 Marek Polacek <polacek@redhat.com>
7387
7388 * doc/invoke.texi: Document -Wint-conversion.
7389
7390 2014-07-01 Marek Polacek <polacek@redhat.com>
7391
7392 PR c/58286
7393 * doc/invoke.texi: Document -Wincompatible-pointer-types.
7394
7395 2014-07-01 Martin Liska <mliska@suse.cz>
7396
7397 IPA REF alias refactoring
7398 * cgraph.h (iterate_direct_aliases): New function.
7399 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
7400 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
7401 FOR_EACH_ALIAS added.
7402 (cgraph_for_node_and_aliases): Likewise.
7403 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
7404 * ipa-inline.c (reset_edge_caches): Likewise.
7405 (update_caller_keys): Likewise.
7406 * trans-mem.c (ipa_tm_execute): Likewise.
7407 *varpool.c (varpool_analyze_node): Likewise.
7408 (varpool_for_node_and_aliases): Likewise.
7409 * ipa-ref.h (first_alias): New function.
7410 (last_alias): Likewise.
7411 (has_aliases_p): Likewise.
7412 * ipa-ref.c (ipa_ref::remove_reference): Removal function
7413 is sensitive to IPA_REF_ALIASes.
7414 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
7415 are put at the beginning of the list.
7416 (symtab_node::iterate_direct_aliases): New function.
7417
7418 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7419
7420 Revert:
7421 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
7422 type is complete.
7423 (write_ts_type_common_tree_pointers): Do not stream fields not set
7424 for incomplete types; do not stream duplicated fields for variants;
7425 sanity check that variant and type match.
7426 (write_ts_type_non_common_tree_pointers): Likewise.
7427 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
7428 TYPE_SIZE whether type is complete.
7429 (lto_input_ts_type_common_tree_pointers): Do same changes as in
7430 write_ts_type_common_tree_pointers
7431 (lto_input_ts_type_non_common_tree_pointers): Likewise.
7432
7433 2014-06-30 Joseph Myers <joseph@codesourcery.com>
7434
7435 * var-tracking.c (add_stores): Return instead of asserting if old
7436 and new values for conditional store are the same.
7437
7438 2014-06-30 Richard Henderson <rth@redhat.com>
7439
7440 PR rtl-opt/61608
7441 PR target/39284
7442 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
7443 the cfg if there were any changes.
7444 * passes.def: Revert move of peephole2 after reorder_blocks;
7445 move duplicate_computed_gotos before peephole2.
7446
7447 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
7448
7449 * except.c (emit_note_eh_region_end): New helper function.
7450 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
7451 emit EH_REGION_END note.
7452 * jump.c (cleanup_barriers): Do not split a call and its
7453 corresponding CALL_ARG_LOCATION note.
7454
7455 2014-06-30 Jeff Law <law@redhat.com>
7456
7457 PR tree-optimization/61607
7458 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
7459 deeper into the SSA_NAME_VALUE chain.
7460
7461 2014-06-30 Marek Polacek <polacek@redhat.com>
7462
7463 * convert.c (convert_to_integer): Don't instrument conversions if the
7464 function has no_sanitize_undefined attribute.
7465 * ubsan.c: Don't run the ubsan pass if the function has
7466 no_sanitize_undefined attribute.
7467
7468 2014-06-30 Jakub Jelinek <jakub@redhat.com>
7469
7470 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
7471 -fsanitize=undefined suboptions.
7472
7473 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
7474
7475 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
7476 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
7477 against bigendian and adjust indices.
7478
7479 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
7480
7481 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
7482
7483 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
7484
7485 PR target/61633
7486 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
7487 Add alternative; make early clobber. Adjust both split patterns
7488 to use operand 0 as the working register.
7489
7490 2014-06-30 Jakub Jelinek <jakub@redhat.com>
7491
7492 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
7493 as ira_object_id_map might be NULL, or 1.
7494
7495 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7496
7497 * loop-invariant.c (get_inv_cost): Handle register class.
7498 (gain_for_invariant): Check the register pressure of the inv
7499 and its overlapped register class, other than all.
7500
7501 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
7502
7503 * doc/invoke.texi (Optimize Options): Fix descriptions of
7504 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
7505
7506 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
7507
7508 * doc/extend.texi (Function Attributes): Update 'naked' attribute
7509 documentation.
7510
7511 2014-06-29 Tobias Grosser <tobias@grosser.es>
7512
7513 PR bootstrap/61650
7514 * graphite-isl-ast-to-gimple.c: Add missing guards.
7515
7516 2014-06-29 Roman Gareev <gareevroman@gmail.com>
7517
7518 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
7519 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
7520 * flag-types.h: Add new enum fgraphite_generator.
7521 * graphite-isl-ast-to-gimple.c: New.
7522 * graphite-isl-ast-to-gimple.h: New.
7523 * graphite.c (graphite_transform_loops): Add choice of Graphite
7524 code generator, which depends on flag_graphite_code_gen.
7525
7526 2014-06-29 Roman Gareev <gareevroman@gmail.com>
7527
7528 * graphite-dependences.c (subtract_commutative_associative_deps):
7529 Add NULL checking of the following variables: must_raw_no_source,
7530 may_raw_no_source, must_war_no_source, may_war_no_source,
7531 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
7532 must_war, may_war, must_waw, may_waw.
7533
7534 2014-06-29 Roman Gareev <gareevroman@gmail.com>
7535
7536 * graphite-clast-to-gimple.c: gloog is renamed to
7537 graphite_regenerate_ast_cloog. gloog_error is renamed to
7538 graphite_regenerate_error.
7539 * graphite-clast-to-gimple.h: The definition of the struct
7540 bb_pbb_def is moved to graphite-htab.h.
7541 Add inclusion of the hash-table.h.
7542 * graphite-htab.h: The declaration of the function gloog is moved
7543 to graphite-clast-to-gimple.h and renamed to
7544 graphite_regenerate_ast_cloog.
7545 * graphite.c (graphite_transform_loops): gloog is renamed
7546 to graphite_regenerate_ast_cloog.
7547
7548 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7549
7550 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
7551 type is complete.
7552 (write_ts_type_common_tree_pointers): Do not stream fields not set
7553 for incomplete types; do not stream duplicated fields for variants;
7554 sanity check that variant and type match.
7555 (write_ts_type_non_common_tree_pointers): Likewise.
7556 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
7557 TYPE_SIZE whether type is complete.
7558 (lto_input_ts_type_common_tree_pointers): Do same changes as in
7559 write_ts_type_common_tree_pointers
7560 (lto_input_ts_type_non_common_tree_pointers): Likewise.
7561
7562 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7563
7564 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
7565
7566 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7567
7568 * tree-inline.c (remap_type_1): Do not duplicate fields
7569 that are shared in between type and its main variant.
7570
7571 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7572
7573 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
7574 of the type.
7575 (ipa_set_ancestor_jf) Likewise.
7576 (check_stmt_for_type_change): Check that we work on main variant.
7577 (detect_type_change): Look into main variant.
7578 (compute_known_type_jump_func): Check that main variant has BINFO.
7579
7580 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7581
7582 * ipa-devirt.c (set_type_binfo): New function.
7583 (add_type_duplicate): Use it.
7584 (get_odr_type): Sanity check that binfos points to main variants.
7585 (get_class_context): Be sure the context's outer_type is main variant.
7586 (contains_type_p): Walk main variant.
7587 (get_polymorphic_call_info_for_decl): Set outer_type to be
7588 main variant.
7589 (get_polymorphic_call_info): Likewise.
7590 (possible_polymorphic_call_targets): Sanity check that we operate
7591 on main variant.
7592
7593 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7594
7595 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
7596
7597 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7598
7599 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
7600 accidental change due to wide-int branch merge.
7601
7602 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7603
7604 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
7605 compressed debug support.
7606 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
7607 * configure: Regenerate.
7608 * config.in: Regenerate.
7609 * common.opt (compressed_debug_sections): New enum.
7610 (gz, gz=): New options.
7611 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
7612 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
7613 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
7614 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
7615 LINK_COMPRESS_DEBUG_SPEC.
7616 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
7617 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
7618 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
7619 (Debugging Options): Document -gz[=type].
7620
7621 2014-06-27 Martin Jambor <mjambor@suse.cz>
7622
7623 PR ipa/61160
7624 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
7625 args_to_skip, use those from node instead. Copy args_to_skip and
7626 combined_args_to_skip from node to the new thunk.
7627 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
7628 (cgraph_create_virtual_clone): Moved computation of
7629 combined_args_to_skip...
7630 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
7631
7632 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
7633
7634 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
7635 redundant diagnostic machinary.
7636
7637 2014-06-27 Richard Biener <rguenther@suse.de>
7638
7639 * tree-ssa-math-opts.c (bswap_replace): Fix
7640 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
7641
7642 2014-06-27 Martin Liska <mliska@suse.cz>
7643
7644 * gimple.h (gimple_location_safe): New function introduced.
7645 * cgraphunit.c (walk_polymorphic_call_targets): Usage
7646 of gimple_location_safe replaces gimple_location.
7647 (gimple_fold_call): Likewise.
7648 * ipa-devirt.c (ipa_devirt): Likewise.
7649 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7650 * ipa.c (walk_polymorphic_call_targets): Likewise.
7651 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
7652
7653 2014-06-27 Jakub Jelinek <jakub@redhat.com>
7654
7655 PR tree-optimization/57233
7656 PR tree-optimization/61299
7657 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
7658 functions.
7659 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
7660 would be lowered to scalar shifts, check if corresponding
7661 shifts and vector BIT_IOR_EXPR are supported and don't lower
7662 or lower just to narrower vector type in that case.
7663 * expmed.c (expand_shift_1): Fix up handling of vector
7664 shifts and rotates.
7665
7666 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
7667
7668 PR target/61586
7669 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
7670
7671 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
7672
7673 * doc/invoke.texi (-fsemantic-interposition): Document.
7674 * common.opt (fsemantic-interposition): New flag.
7675 * varasm.c (decl_replaceable_p): Use it.
7676
7677 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7678
7679 PR target/61542
7680 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
7681 extraction other than index 3.
7682
7683 2014-06-26 Teresa Johnson <tejohnson@google.com>
7684
7685 * doc/invoke.texi: Fix typo.
7686 * dumpfile.c: Add support for documented -fdump-* options
7687 optimized/missed/note/optall.
7688
7689 2014-06-26 Martin Jambor <mjambor@suse.cz>
7690
7691 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
7692 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
7693 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
7694 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
7695 * opts.c (default_options_optimization): Set
7696 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
7697 * doc/invoke.texi (allow-load-data-races)
7698 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
7699 (allow-store-data-races): Document the new default.
7700
7701 2014-06-26 Martin Jambor <mjambor@suse.cz>
7702
7703 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
7704 renamed to ipa_impossible_devirt_target. Fix typo.
7705 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
7706 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
7707 ipa_impossible_devirt_target.
7708
7709 2014-06-26 Richard Biener <rguenther@suse.de>
7710
7711 PR tree-optimization/61607
7712 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
7713 explaining why we restrict copies on loop depth.
7714 * tree-ssa-dom.c (cprop_operand): Remove restriction on
7715 on loop depth.
7716 (record_equivalences_from_phis): Instead add it here.
7717
7718 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
7719
7720 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
7721 (LTO_WRAPPER_OBJS): New variable.
7722 (lto-wrapper$(exeext)): Use it.
7723 * collect2.c: Include "collect-utils.h".
7724 (verbose, debug): Remove variables.
7725 (at_file_supplied): No longer static.
7726 (tool_name): New variable.
7727 (do_wait, fork_execute, maybe_unlink): Don't declare.
7728 (tool_cleanup): No longer static.
7729 (notice): Remove function.
7730 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
7731 fork_execute calls.
7732 (collect_wait, do_wait, collect_execute): Remove functions.
7733 (maybe_unlink): No longer static.
7734 * collect2.h (verbose, debug): Don't declare.
7735 (at_file_supplied): Declare.
7736 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
7737 changed.
7738 (collect_execute): Replace with implementation from collect2, plus a
7739 new arg use_atfile. All callers changed.
7740 (collect_wait): Replace with implementation from collect2.
7741 (maybe_unlink_file): Remove function.
7742 (fork_execute): Replace with implementation from collect2, plus a
7743 new arg use_atfile. All callers changed.
7744 (do_wait): Add call to utils_cleanup to the error path.
7745 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
7746 (tool_cleanup): Adjust declarations.
7747 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
7748 * tlink.c: Include "collect-utils.h".
7749 (tlink_execute): New arg use_atfile. All callers changed.
7750 (tlink_init, tlink_execute): Remove declarations.
7751
7752 * collect-utils.c (save_temps): New variable.
7753 (do_wait): Use it instead of debug. Use fatal_error.
7754 * collect-utils.h (save_temps): Declare.
7755 * collect2.c (verbose): Rename from vflag. All uses changed.
7756 (tool_cleanup): New function, copied from collect_atexit.
7757 (collect_atexit, handler): Just call it.
7758 * collect2.h (verbose): Declaration renamed from vflag.
7759 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
7760 debug.
7761
7762 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
7763 (lto-wrapper$(exeext)): Link with collect-utils.o.
7764 * collect-utils.c: New file.
7765 * collect-utils.h: New file.
7766 * lto-wrapper.c: Include "collect-utils.h".
7767 (args_name): Delete variable.
7768 (tool_name): New variable.
7769 (tool_cleanup): New function.
7770 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
7771 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
7772 (fork_execute): Remove functions.
7773
7774 2014-06-26 Nick Clifton <nickc@redhat.com>
7775
7776 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
7777
7778 * doc/extend.texi (Function Attributes): Fix typo in description
7779 of RX vector attribute.
7780
7781 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7782
7783 * config.gcc (supported_defaults): Error when passing either
7784 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
7785
7786 2014-06-26 Richard Biener <rguenther@suse.de>
7787
7788 * tree-ssa-dom.c (cprop_operand): Remove restriction on
7789 propagating volatile pointers.
7790
7791 2014-06-26 Richard Biener <rguenther@suse.de>
7792
7793 PR tree-optimization/61607
7794 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
7795 loop if we redirected its latch edge.
7796 (thread_block_1): Do not cancel loops prematurely.
7797
7798 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
7799
7800 * toplev.c (backend_init_target): Move init_emit_regs and
7801 init_regs to...
7802 (backend_init) ... here; skip ira_init_once and backend_init_target.
7803 (target_reinit) ... and here; clear
7804 this_target_rtl->lang_dependent_initialized.
7805 (lang_dependent_init_target): Clear
7806 this_target_rtl->lang_dependent_initialized;
7807 break out rtl initialization to ...
7808 (initialize_rtl): ... here; call also backend_init_target
7809 and ira_init_once.
7810 * toplev.h (initialize_rtl): New function.
7811 * function.c: Include toplev.h
7812 (init_function_start): Call initialize_rtl.
7813 * rtl.h (target_rtl): Add target_specific_initialized,
7814 lang_dependent_initialized.
7815
7816 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
7817 Jakub Jelinek <jakub@redhat.com>
7818
7819 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
7820
7821 2014-06-25 Tom de Vries <tom@codesourcery.com>
7822
7823 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
7824
7825 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7826
7827 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
7828 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
7829 Issue a strict overflow warning if appropriate.
7830
7831 2014-06-25 Martin Liska <mliska@suse.cz>
7832
7833 IPA REF refactoring
7834 * Makefile.in: Removed header file (ipa-ref-inline.h).
7835 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
7836 called.
7837 (cgraph_speculative_call_info): Likewise.
7838 (cgraph_for_node_thunks_and_aliases): Likewise.
7839 (cgraph_for_node_and_aliases): Likewise.
7840 (verify_cgraph_node): Likewise.
7841 * cgraph.h: Batch of IPA REF functions become member functions of
7842 symtab_node: add_reference, maybe_add_reference, clone_references,
7843 clone_referring, clone_reference, find_reference,
7844 remove_stmt_references, remove_all_references,
7845 remove_all_referring, dump_references, dump_referring,
7846 has_alias_p, iterate_reference, iterate_referring.
7847 * cgraphbuild.c (record_reference): New IPA REF function used.
7848 (record_type_list): Likewise.
7849 (record_eh_tables): Likewise.
7850 (mark_address): Likewise.
7851 (mark_load): Likewise.
7852 (mark_store): Likewise.
7853 (pass_build_cgraph_edges): Likewise.
7854 (rebuild_cgraph_edge): Likewise.
7855 (cgraph_rebuild_references): Likewise.
7856 (pass_remove_cgraph_callee_edges): Likewise.
7857 * cgraphclones.c (cgraph_clone_node): Likewise.
7858 (cgraph_create_virtual_clone): Likewise.
7859 (cgraph_materialize_clone): Likewise.
7860 (cgraph_materialize_all_clones): Likewise.
7861 * cgraphunit.c (cgraph_reset_node): Likewise.
7862 (cgraph_reset_node): Likewise.
7863 (analyze_function): Likewise.
7864 (assemble_thunks_and_aliases): Likewise.
7865 (expand_function): Likewise.
7866 * ipa-comdats.c (propagate_comdat_group): Likewise.
7867 (enqueue_references): Likewise.
7868 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
7869 (create_specialized_node): Likewise.
7870 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
7871 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
7872 * ipa-inline.c (reset_edge_caches): Likewise.
7873 (update_caller_keys): Likewise.
7874 (execute): Likewise.
7875 * ipa-prop.c (remove_described_reference): Likewise.
7876 (propagate_controlled_uses): Likewise.
7877 (ipa_edge_duplication_hook): Likewise.
7878 (ipa_modify_call_arguments): Likewise.
7879 * ipa-pure-const.c (propagate_pure_const): Likewise.
7880 * ipa-ref-inline.h: Header file removed, functions moved
7881 to symtab_node class.
7882 * ipa-ref.c (remove_reference): New class member function.
7883 (cannot_lead_to_return): New class member function.
7884 (referring_ref_list): Likewise.
7885 (referred_ref_list): Likewise.
7886 Rest of functions moved to symtab_node class.
7887 * ipa-ref.h: New member functions remove_reference,
7888 cannot_lead_to_return, referring_ref_list, referred_ref_list added
7889 to ipa_ref class.
7890 ipa_ref_list class has new member functions: first_reference,
7891 first_referring, clear, nreferences.
7892 * ipa-reference.c (analyze_function): New IPA REF function used.
7893 (write_node_summary_p): Likewise.
7894 (ipa_reference_write_optimization_summary): Likewise.
7895 * ipa-split.c (split_function): Likewise.
7896 * ipa-utils.c (ipa_reverse_postorder): Likewise.
7897 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
7898 (function_and_variable_visibility): Likewise.
7899 * ipa.c (has_addr_references_p): Likewise.
7900 (process_references): Argument type changed.
7901 (symtab_remove_unreachable_nodes): New IPA REF function used.
7902 (process_references): Likewise.
7903 (set_writeonly_bit): Likewise.
7904 * lto-cgraph.c: Implementation of new symtab_node member functions
7905 that uses new IPA REF functions.
7906 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
7907 function used.
7908 * lto-streamer-out.c (output_symbol_p): Likewise.
7909 * lto-streamer.h (referenced_from_this_partition_p): Argument type
7910 changed.
7911 * symtab.c: Implementation of new IPA REF API.
7912 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
7913 (ipa_tm_create_version): Likewise.
7914 (ipa_tm_execute): Likewise.
7915 * tree-emutls.c (gen_emutls_addr): Likewise.
7916 * tree-inline.c (copy_bb): Likewise.
7917 (delete_unreachable_blocks_update_callgraph): Likewise.
7918 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
7919 (varpool_for_node_and_aliases): Likewise.
7920
7921 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
7922
7923 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
7924
7925 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
7926
7927 PR bootstrap/61598
7928 * fold-const.c (fold_checksum_tree): Use a hash_table of const
7929 tree_node * instead of tree_node *.
7930 (fold): Adjust.
7931 (print_fold_checksum): Likewise.
7932 (fold_check_failed): Likewise.
7933 (debug_fold_checksum): Likewise.
7934 (fold_build1_stat_loc): Likewise.
7935 (fold_build2_stat_loc): Likewise.
7936 (fold_build3_stat_loc): Likewise.
7937 (fold_build_call_array_loc): Likewise.
7938
7939 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
7940
7941 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
7942 implementation with call to...
7943 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
7944 function.
7945 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
7946 Declare.
7947
7948 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
7949
7950 PR tree-optimization/57742
7951 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
7952 after replacing the statement.
7953
7954 2014-06-25 Nick Clifton <nickc@redhat.com>
7955
7956 * config/v850/v850.c (GHS_default_section_names): Change to const
7957 char * type.
7958 (GHS_current_section_names): Likewise.
7959 (v850_insert_attributes): Do not build strings, just assign the
7960 names directly. Change the type of 'chosen_section' to const
7961 char*.
7962 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
7963 directly to the array entry.
7964 * config/v850/v850.h (GHS_default_section_names): Change to const
7965 char * type.
7966 (GHS_current_section_names): Likewise.
7967
7968 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7969
7970 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
7971 (LANG_HOOKS_DECLS): Add it.
7972 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
7973 has correct type.
7974 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
7975 * langhooks.h (struct lang_hooks_for_decls): Add
7976 omp_clause_linear_ctor hook.
7977 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
7978 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
7979 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
7980 combined simd loop use omp_clause_linear_ctor hook.
7981
7982 2014-06-24 Cong Hou <congh@google.com>
7983
7984 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
7985 pattern recognition.
7986 (type_conversion_p): PROMOTION is true if it's a type promotion
7987 conversion, and false otherwise. Return true if the given expression
7988 is a type conversion one.
7989 * tree-vectorizer.h: Adjust the number of patterns.
7990 * tree.def: Add SAD_EXPR.
7991 * optabs.def: Add sad_optab.
7992 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
7993 * expr.c (expand_expr_real_2): Likewise.
7994 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7995 * gimple.c (get_gimple_rhs_num_ops): Likewise.
7996 * optabs.c (optab_for_tree_code): Likewise.
7997 * tree-cfg.c (estimate_operator_cost): Likewise.
7998 * tree-ssa-operands.c (get_expr_operands): Likewise.
7999 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
8000 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
8001 * doc/generic.texi: Add document for SAD_EXPR.
8002 * doc/md.texi: Add document for ssad and usad.
8003
8004 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
8005
8006 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
8007 qualification in cast.
8008
8009 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
8010
8011 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
8012 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
8013 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
8014 (tree_function_decl): ... here.
8015 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
8016 streaming of vindex to ...
8017 (write_ts_function_decl_tree_pointers): ... here.
8018 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
8019 Do not stream DECL_VINDEX.
8020 (lto_input_ts_function_decl_tree_pointers): Stream it here.
8021
8022 2014-06-24 Catherine Moore <clm@codesourcery.com>
8023 Sandra Loosemore <sandra@codesourcery.com>
8024
8025 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
8026 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
8027 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
8028
8029 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
8030
8031 * doc/invoke.texi (Warning Options): Remove duplicated
8032 -Wmaybe-uninitialized.
8033
8034 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
8035
8036 PR tree-optimization/57742
8037 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
8038 (handle_builtin_malloc, handle_builtin_memset): New functions.
8039 (strlen_optimize_stmt): Call them.
8040 * passes.def: Move strlen after loop+dom but before vrp.
8041
8042 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8043
8044 PR target/61570
8045 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
8046 model family 6 CPU with has_longmode never use a CPU without
8047 64-bit support.
8048
8049 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
8050
8051 PR target/61570
8052 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
8053 the last change.
8054
8055 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
8056
8057 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
8058 * dominance.c (iterate_fix_dominators): Use hash_map instead of
8059 pointer_map.
8060 * hash-map.h: New file.
8061 * ipa-comdats.c: Use hash_map instead of pointer_map.
8062 * ipa.c: Likewise.
8063 * lto-section-out.c: Adjust.
8064 * lto-streamer.h: Replace pointer_map with hash_map.
8065 * symtab.c (verify_symtab): Likewise.
8066 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
8067 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
8068 * tree-streamer.h: Likewise.
8069 * tree-streamer.c: Adjust.
8070 * pointer-set.h: Remove pointer_map.
8071
8072 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
8073
8074 * hash-table.h: Add a template arg to choose between storing values
8075 and storing pointers to values, and then provide partial
8076 specializations for both.
8077 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
8078 should store, not the type values should point to.
8079 * tree-into-ssa.c (var_info_hasher): Likewise.
8080 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
8081 * tree-complex.c: Adjust.
8082 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
8083 table instead of int_tree_map *.
8084 * tree-parloops.c: Adjust.
8085 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
8086 type is being stored.
8087 * tree-vectorizer.c: Adjust.
8088
8089 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
8090
8091 * hash-table.h: Remove a layer of indirection from hash_table so that
8092 it contains the hash table's data instead of a pointer to the data.
8093 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
8094 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
8095 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
8096 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
8097 fold-const.c, gcse.c, ggc-common.c,
8098 gimple-ssa-strength-reduction.c, gimplify.c,
8099 graphite-clast-to-gimple.c, graphite-dependences.c,
8100 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
8101 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
8102 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
8103 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
8104 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
8105 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
8106 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
8107 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
8108 tree-ssa-live.c, tree-ssa-loop-im.c,
8109 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
8110 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
8111 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
8112 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
8113 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
8114 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
8115 vtable-verify.c, vtable-verify.h: Adjust.
8116
8117 2014-06-24 Richard Biener <rguenther@suse.de>
8118
8119 PR tree-optimization/61572
8120 * tree-ssa-sink.c (statement_sink_location): Do not sink
8121 loads from hard registers.
8122
8123 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8124
8125 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
8126 not mentioned in clauses use private clause if the iterator is
8127 declared in #pragma omp for simd, and when adding lastprivate
8128 instead, add it to the outer #pragma omp for too. Diagnose
8129 if the variable is private in outer context. For simd collapse > 1
8130 loops, replace all iterators with temporaries.
8131 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
8132 same even in collapse > 1 loops.
8133
8134 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
8135 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
8136 non-NULL.
8137 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
8138 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
8139 non-NULL.
8140 (gimplify_adjust_omp_clauses): Likewise.
8141 * omp-low.c (lower_rec_simd_input_clauses,
8142 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
8143 safelen the same as safelen(1).
8144 * tree-nested.c (convert_nonlocal_omp_clauses,
8145 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
8146 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
8147 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
8148 Fixup handling of GIMPLE_OMP_TARGET.
8149 (convert_tramp_reference_stmt, convert_gimple_call): Handle
8150 GIMPLE_OMP_TARGET.
8151
8152 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
8153
8154 PR tree-optimization/61554
8155 * tree-ssa-propagate.c: Include "bitmap.h".
8156 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
8157 properly update constructor/destructor.
8158 (substitute_and_fold_dom_walker::before_dom_children):
8159 Remove call to gimple_purge_dead_eh_edges, add bb->index to
8160 need_eh_cleaup instead.
8161 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
8162 need_eh_cleanup.
8163
8164 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
8165
8166 * varpool.c (dump_varpool_node): Dump used_by_single_function.
8167 * tree-pass.h (make_pass_ipa_single_use): New pass.
8168 * cgraph.h (used_by_single_function): New flag.
8169 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
8170 Stream it.
8171 * passes.def (pass_ipa_single_use): Scedule.
8172 * ipa.c (BOTTOM): New macro.
8173 (meet): New function
8174 (propagate_single_user): New function.
8175 (ipa_single_use): New function.
8176 (pass_data_ipa_single_use): New pass.
8177 (pass_ipa_single_use): New pass.
8178 (pass_ipa_single_use::gate): New gate.
8179 (make_pass_ipa_single_use): New function.
8180
8181 2014-06-23 Kai Tietz <ktietz@redhat.com>
8182
8183 PR target/39284
8184 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
8185 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
8186
8187 2014-06-23 Richard Biener <rguenther@suse.de>
8188
8189 * tree-ssa-loop.c (gate_loop): New function.
8190 (pass_tree_loop::gate): Call it.
8191 (pass_data_tree_no_loop, pass_tree_no_loop,
8192 make_pass_tree_no_loop): New.
8193 * tree-vectorizer.c: Include tree-scalar-evolution.c
8194 (pass_slp_vectorize::execute): Initialize loops and SCEV if
8195 required.
8196 (pass_slp_vectorize::clone): New method.
8197 * timevar.def (TV_TREE_NOLOOP): New.
8198 * tree-pass.h (make_pass_tree_no_loop): Declare.
8199 * passes.def (pass_tree_no_loop): New pass group with
8200 SLP vectorizer.
8201
8202 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
8203
8204 PR target/61570
8205 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
8206 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
8207
8208 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
8209
8210 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
8211 "yes" where needed.
8212
8213 2014-06-23 Alan Modra <amodra@gmail.com>
8214
8215 PR bootstrap/61583
8216 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
8217 to zero on debug statements.
8218
8219 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
8220
8221 PR target/60825
8222 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
8223 Ignore third operand if present by marking qualifier_internal.
8224
8225 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
8226
8227 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
8228 vector extension.
8229 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
8230 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
8231 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
8232 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
8233 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
8234 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
8235 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
8236 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
8237 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
8238 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
8239 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
8240 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
8241 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
8242 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
8243 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
8244 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
8245 logic in GCC vector extensions
8246
8247 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
8248 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
8249 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
8250 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
8251 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
8252 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
8253 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
8254 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
8255 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
8256 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
8257
8258 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
8259
8260 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
8261 extensions.
8262
8263 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
8264 (vget_low_s64): Use __GET_LOW macro.
8265 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
8266 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
8267 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
8268 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
8269 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
8270
8271 (vcombine_s64): Use GCC vector extensions; remove cast.
8272 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
8273 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
8274 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
8275 Fix type signature; remove cast.
8276
8277 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
8278
8279 PR target/60825
8280 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
8281 V1DFmode.
8282 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
8283 add V1DFmode
8284 (BUILTIN_VD1): New.
8285 (BUILTIN_VD_RE): Remove.
8286 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
8287 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
8288 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
8289 variant but not df.
8290 (vreinterpretv1df*, vreinterpret*v1df): New.
8291 (vreinterpretdf*, vreinterpret*df): Remove.
8292 * config/aarch64/aarch64-simd.md (aarch64_create,
8293 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
8294 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
8295 (VD1): New.
8296 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
8297 (vcreate_f64): Remove cast, use v1df builtin.
8298 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
8299 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
8300 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
8301 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
8302 vmov_n_f64, vst1_f64): Use gcc vector extensions.
8303 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
8304 add range check using __builtin_aarch64_im_lane_boundsi.
8305 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
8306 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
8307 type signature, use gcc vector extensions.
8308 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
8309 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
8310 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
8311 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
8312 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
8313 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
8314 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
8315 vreinterpret_u64_f64): Use v1df builtin not df.
8316
8317 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
8318
8319 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
8320 vector registers.
8321
8322 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
8323
8324 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
8325 priority directly.
8326
8327 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8328
8329 * loop-invariant.c (pre_check_invariant_p): New function.
8330 (find_invariant_insn): Call pre_check_invariant_p.
8331
8332 2014-06-22 Richard Henderson <rth@redhat.com>
8333
8334 PR target/61565
8335 * compare-elim.c (struct comparison): Add eh_note.
8336 (find_comparison_dom_walker::before_dom_children): Don't eliminate
8337 a redundant comparison in a different EH region. Purge EH edges if
8338 necessary.
8339
8340 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
8341
8342 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
8343 (var_shift): Use it.
8344 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
8345 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
8346 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
8347 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
8348 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
8349 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
8350 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
8351 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
8352 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
8353 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
8354 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
8355 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
8356 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
8357 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
8358 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
8359 *rotldi3_internal15be): Use the new attribute. Merge register and
8360 integer alternatives.
8361
8362 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
8363
8364 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
8365 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
8366 split, *ashrdi3_internal3 and split): Delete, merge into...
8367 (ashr<mode>3): New expander.
8368 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
8369 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
8370
8371 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
8372
8373 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
8374 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
8375 *rotldi3_internal3 and split): Delete, merge into...
8376 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
8377 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
8378 Use "rotlw" extended mnemonic.
8379
8380 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
8381
8382 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
8383 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
8384 and split, *ashldi3_internal3 and split): Delete, merge into...
8385 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
8386 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
8387
8388 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
8389
8390 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
8391 (lshrsi3, two anonymous define_insns and define_splits,
8392 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
8393 *lshrdi3_internal3 and split): Delete, merge into...
8394 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
8395 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
8396
8397 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
8398
8399 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
8400 Remove "O" alternative.
8401
8402 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
8403
8404 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
8405 (mips_move_from_gpr_cost): Likewise.
8406 (mips_register_move_cost): Update accordingly.
8407 (mips_secondary_reload_class): Remove name of in_p.
8408
8409 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
8410
8411 PR target/61503
8412 * config/i386/i386.md (x86_64_shrd, x86_shrd,
8413 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
8414
8415 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8416
8417 * config/nios2/nios2.c: Include "builtins.h".
8418
8419 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
8420
8421 * cgraph.h (tls_model_names): New variable.
8422 * print-tree.c (print_node): Simplify.
8423 * varpool.c (tls_model_names): New variable.
8424 (dump_varpool_node): Output tls model.
8425
8426 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
8427
8428 * ipa-visibility.c (function_and_variable_visibility): Disable
8429 temporarily local aliases for some targets.
8430
8431 2014-06-20 Marek Polacek <polacek@redhat.com>
8432
8433 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
8434 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
8435 into SANITIZE_UNDEFINED.
8436 * doc/invoke.texi: Describe -fsanitize=bounds.
8437 * gimplify.c (gimplify_call_expr): Add gimplification of internal
8438 functions created in the FEs.
8439 * internal-fn.c: Move "internal-fn.h" after "tree.h".
8440 (expand_UBSAN_BOUNDS): New function.
8441 * internal-fn.def (UBSAN_BOUNDS): New internal function.
8442 * internal-fn.h: Don't define internal functions here.
8443 * opts.c (common_handle_option): Add -fsanitize=bounds.
8444 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
8445 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
8446 * tree-core.h: Define internal functions here.
8447 (struct tree_base): Add ifn field.
8448 * tree-pretty-print.c: Include "internal-fn.h".
8449 (dump_generic_node): Handle functions without CALL_EXPR_FN.
8450 * tree.c (get_callee_fndecl): Likewise.
8451 (build_call_expr_internal_loc): New function.
8452 * tree.def (CALL_EXPR): Update description.
8453 * tree.h (CALL_EXPR_IFN): Define.
8454 (build_call_expr_internal_loc): Declare.
8455 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
8456 types.
8457 (ubsan_type_descriptor): Change bool parameter to enum
8458 ubsan_print_style. Adjust the code. Add handling of
8459 UBSAN_PRINT_ARRAY.
8460 (ubsan_expand_bounds_ifn): New function.
8461 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
8462 (ubsan_build_overflow_builtin): Likewise.
8463 (instrument_bool_enum_load): Likewise.
8464 (ubsan_instrument_float_cast): Likewise.
8465 * ubsan.h (enum ubsan_print_style): New enum.
8466 (ubsan_expand_bounds_ifn): Declare.
8467 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
8468
8469 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
8470
8471 * config/rs6000/rs6000.md: Append `DONE' to preparation
8472 statements of `bswap' pattern splitters.
8473
8474 2014-06-20 Tom de Vries <tom@codesourcery.com>
8475
8476 * target.def (call_fusage_contains_non_callee_clobbers): Update
8477 definition.
8478 * doc/tm.texi: Regenerate.
8479
8480 2014-06-20 Yury Gribov <y.gribov@samsung.com>
8481 Max Ostapenko <m.ostapenko@partner.samsung.com>
8482
8483 PR sanitizer/61547
8484 * asan.c (instrument_strlen_call): Fixed instrumentation of
8485 trailing byte.
8486
8487 2014-06-20 Martin Jambor <mjambor@suse.cz>
8488
8489 PR ipa/61540
8490 * ipa-prop.c (impossible_devirt_target): New function.
8491 (try_make_edge_direct_virtual_call): Use it, also instead of
8492 asserting.
8493
8494 2014-06-20 Yury Gribov <y.gribov@samsung.com>
8495 Max Ostapenko <m.ostapenko@partner.samsung.com>
8496
8497 PR sanitizer/61530
8498 * asan.c (build_check_stmt): Add condition.
8499
8500 2014-06-20 Martin Jambor <mjambor@suse.cz>
8501
8502 PR ipa/61211
8503 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
8504 expanded clones.
8505
8506 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8507
8508 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
8509 Update comments.
8510 (VCONQ): Make comment more helpful.
8511 (VCON): Delete.
8512 * config/aarch64/aarch64-simd.md
8513 (aarch64_sqdmulh_lane<mode>):
8514 Use VCOND for operands 2. Update lane checking and flipping logic.
8515 (aarch64_sqrdmulh_lane<mode>): Likewise.
8516 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
8517 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
8518 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
8519 attribute of operand 3 to VCOND.
8520 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
8521 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8522 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
8523 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
8524 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8525 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
8526 define_insn.
8527 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
8528 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
8529 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
8530 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
8531 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
8532 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
8533 operand to VCOND. Update lane flipping and bounds checking logic.
8534 (aarch64_sqdmlal2_lane<mode>): Likewise.
8535 (aarch64_sqdmlsl_lane<mode>): Likewise.
8536 (aarch64_sqdmull_lane<mode>): Likewise.
8537 (aarch64_sqdmull2_lane<mode>): Likewise.
8538 (aarch64_sqdmlal_laneq<mode>):
8539 Replace VCON usage with VCONQ.
8540 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
8541 (aarch64_sqdmlal2_laneq<mode>): Emit
8542 aarch64_sqdmlal2_laneq<mode>_internal insn.
8543 Replace VCON with VCONQ.
8544 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
8545 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8546 (aarch64_sqdmull_laneq<mode>): Emit
8547 aarch64_sqdmull_laneq<mode>_internal insn.
8548 Replace VCON with VCONQ.
8549 (aarch64_sqdmull2_laneq<mode>): Emit
8550 aarch64_sqdmull2_laneq<mode>_internal insn.
8551 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
8552 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
8553 of 3rd argument to int16x4_t.
8554 (vqdmlalh_lane_s16): Likewise.
8555 (vqdmlslh_lane_s16): Likewise.
8556 (vqdmull_high_lane_s16): Likewise.
8557 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
8558 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
8559 (vqdmlsl_lane_s16): Likewise.
8560 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
8561 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
8562 (vqdmlals_lane_s32): Likewise.
8563 (vqdmlsls_lane_s32): Likewise.
8564 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
8565 (vqdmulls_lane_s32): Likewise.
8566 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
8567 (vqdmlsl_lane_s32): Likewise.
8568 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
8569 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
8570 (vqrdmulhh_lane_s16): Likewise.
8571 (vqdmlsl_high_lane_s16): Likewise.
8572 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
8573 (vqdmlsl_high_lane_s32): Likewise.
8574 (vqrdmulhs_lane_s32): Likewise.
8575
8576 2014-06-20 Tom de Vries <tom@codesourcery.com>
8577
8578 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
8579 get_call_reg_set_usage.
8580
8581 2014-06-20 Tom de Vries <tom@codesourcery.com>
8582
8583 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
8584 it contains all call_used_regs.
8585
8586 2014-06-20 Tom de Vries <tom@codesourcery.com>
8587
8588 * final.c (collect_fn_hard_reg_usage): Add and use variable
8589 function_used_regs.
8590
8591 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
8592
8593 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
8594 (set_init_priority, get_init_priority, set_fini_priority,
8595 get_fini_priority): New methods.
8596 * tree.c (init_priority_for_decl): Remove.
8597 (init_ttree): Do not initialize init priority.
8598 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
8599 (decl_priority_info): Remove.
8600 (decl_init_priority_insert): Rewrite.
8601 (decl_fini_priority_insert): Rewrite.
8602 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
8603 tree_priority_map_marked_p): Remove.
8604 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
8605 * lto-streamer-out.c (hash_tree): Do not hash priorities.
8606 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
8607 not output priorities.
8608 (pack_ts_function_decl_value_fields): Likewise.
8609 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
8610 not input priorities.
8611 (unpack_ts_function_decl_value_fields): Likewise.
8612 * symtab.c (symbol_priority_map): Declare.
8613 (init_priority_hash): Declare.
8614 (symtab_unregister_node): Unregister from priority hash, too.
8615 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
8616 New methods.
8617 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
8618 (symbol_priority_info): New function.
8619 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
8620 New methods.
8621 * tree-core.h (tree_priority_map): Remove.
8622
8623 2014-06-20 Jakub Jelinek <jakub@redhat.com>
8624
8625 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
8626 0xff to uint64_t before shifting it up.
8627
8628 2014-06-20 Julian Brown <julian@codesourcery.com>
8629 Chung-Lin Tang <cltang@codesourcery.com>
8630
8631 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
8632 TARGET_THUMB1_ONLY. Add comments.
8633
8634 2014-06-19 Tom de Vries <tom@codesourcery.com>
8635
8636 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
8637 return type to void.
8638 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
8639
8640 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8641
8642 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
8643 as "move", from depends_on.
8644
8645 2014-06-19 Terry Guo <terry.guo@arm.com>
8646
8647 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
8648 stage.
8649
8650 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
8651
8652 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
8653 Remove cr5.
8654 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
8655
8656 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
8657
8658 PR target/61550
8659 * config/sh/sh.c (prepare_move_operands): Don't process TLS
8660 addresses here if reload in progress or completed.
8661
8662 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
8663
8664 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
8665 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
8666 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
8667 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
8668 (mips_register_priority): New function that implements the target
8669 hook TARGET_REGISTER_PRIORITY.
8670 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
8671 (mips_lra_p): Likewise for TARGET_LRA_P.
8672 (TARGET_REGISTER_PRIORITY): Define macro.
8673 (TARGET_SPILL_CLASS): Likewise.
8674 (TARGET_LRA_P): Likewise.
8675 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
8676 classes.
8677 (REG_CLASS_NAMES): Likewise.
8678 (REG_CLASS_CONTENTS): Likewise.
8679 (BASE_REG_CLASS): Use M16_SP_REGS.
8680 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
8681 New set attribute to enable alternatives depending on the register
8682 allocator used.
8683 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
8684 (*lea64): Disable pattern for MIPS16.
8685 * config/mips/mips.opt (mlra): New option.
8686
8687 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
8688
8689 * lra-constraints.c (base_to_reg): New function.
8690 (process_address): Use new function.
8691
8692 2014-06-18 Tom de Vries <tom@codesourcery.com>
8693
8694 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
8695 * config/aarch64/aarch64.c
8696 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
8697 (aarch64_emit_call_insn): New function.
8698 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
8699 of emit_call_insn.
8700 * config/aarch64/aarch64.md (define_expand "call_internal")
8701 (define_expand "call_value_internal", define_expand "sibcall_internal")
8702 (define_expand "sibcall_value_internal"): New.
8703 (define_expand "call", define_expand "call_value")
8704 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
8705 expand variant and aarch64_emit_call_insn.
8706
8707 2014-06-18 Radovan Obradovic <robradovic@mips.com>
8708 Tom de Vries <tom@codesourcery.com>
8709
8710 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
8711 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8712 Redefine to true.
8713 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
8714 clobbers to CALL_INSN_FUNCTION_USAGE.
8715 (define_expand "sibcall_internal")
8716 (define_expand "sibcall_value_internal"): New.
8717 (define_expand "call", define_expand "call_value"): Add argument to
8718 arm_emit_call_insn.
8719 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
8720 (define_expand "sibcall_value"): Use sibcall_value_internal and
8721 arm_emit_call_insn.
8722
8723 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8724
8725 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
8726
8727 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8728
8729 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
8730 __udivmoddi4.
8731
8732 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8733
8734 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
8735 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
8736 annotations. Fix DWARF information.
8737
8738 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8739
8740 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
8741 __udivmoddi4, and fixups for negative operands.
8742
8743 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8744
8745 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
8746
8747 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8748
8749 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
8750 to __udivmoddi4.
8751
8752 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8753
8754 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
8755 manipulation.
8756
8757 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8758
8759 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
8760 describing register usage on function entry and exit.
8761
8762 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8763
8764 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
8765 (__aeabi_ldivmod): Fix whitespace.
8766
8767 2014-06-18 Andreas Schwab <schwab@suse.de>
8768
8769 * doc/md.texi (Standard Names): Use @itemx for grouped items.
8770 Remove blank line after @item.
8771
8772 2014-06-18 Richard Henderson <rth@redhat.com>
8773
8774 PR target/61545
8775 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
8776
8777 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8778
8779 * config/arm/arm.c (neon_vector_mem_operand): Allow register
8780 POST_MODIFY for neon loads and stores.
8781 (arm_print_operand): Output post-index register for neon loads and
8782 stores.
8783
8784 2014-06-18 Richard Biener <rguenther@suse.de>
8785
8786 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
8787
8788 2014-06-18 Richard Biener <rguenther@suse.de>
8789
8790 * tree-pass.h (make_pass_dce_loop): Remove.
8791 * passes.def: Replace pass_dce_loop with pass_dce.
8792 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
8793 changed free niter estimates and reset the scev cache.
8794 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
8795 make_pass_dce_loop): Remove.
8796 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
8797 (fini_copy_prop): Return whether something changed. Always
8798 let substitute_and_fold perform DCE and free niter estimates
8799 and reset the scev cache if so.
8800 (execute_copy_prop): If sth changed schedule cleanup-cfg.
8801 (pass_data_copy_prop): Do not unconditionally schedule
8802 cleanup-cfg or update-ssa.
8803
8804 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8805
8806 PR tree-optimization/61518
8807 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8808 reduction var is used in reduction stmt or phi-function only.
8809
8810 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8811
8812 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
8813
8814 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8815
8816 PR tree-optimization/61517
8817 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
8818 whose rhs's first tree is the source expression instead of the
8819 expression itself.
8820 (find_bswap_or_nop): Likewise.
8821 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
8822 gimple stmt whose rhs's first tree is the source. In the memory source
8823 case, move the stmt to be replaced close to one of the original load to
8824 avoid the problem of a store between the load and the stmt's original
8825 location.
8826 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
8827 signature.
8828
8829 2014-06-18 Andreas Schwab <schwab@suse.de>
8830
8831 PR rtl-optimization/54555
8832 * postreload.c (move2add_use_add2_insn): Substitute
8833 STRICT_LOW_PART only if it is cheaper.
8834
8835 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
8836
8837 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
8838 Do not use unspec as call operand. Use memory_operand instead of
8839 memory_nox32_operand and add "m" operand constraint. Disable
8840 pattern for TARGET_X32.
8841 (*sibcall_pop_memory): Ditto.
8842 (*sibcall_value_memory): Ditto.
8843 (*sibcall_value_pop_memory): Ditto.
8844 (sibcall peepholes): Merge SImode and DImode patterns using
8845 W mode iterator. Use memory_operand instead of memory_nox32_operand.
8846 Disable pattern for TARGET_X32. Check if eliminated register is
8847 really dead after call insn. Generate call RTX without unspec operand.
8848 (sibcall_value peepholes): Ditto.
8849 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
8850 instead of memory_nox32_operand. Check if eliminated register is
8851 really dead after call insn. Generate call RTX without unspec operand.
8852 (sibcall_value_pop peepholes): Ditto.
8853 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
8854
8855 2014-06-18 Terry Guo <terry.guo@arm.com>
8856
8857 PR target/61544
8858 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
8859 reach the head.
8860
8861 2014-06-18 Olivier Hainque <hainque@adacore.com>
8862
8863 * tree-core.h (tree_block): Add an "end_locus" field, allowing
8864 memorization of the end of block source location.
8865 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
8866 * gimplify.c (gimplify_bind_expr): Propagate the block start and
8867 end source location info we have on the block entry/exit code we
8868 generate.
8869
8870 2014-06-18 Richard Biener <rguenther@suse.de>
8871
8872 * common.opt (fssa-phiopt): New option.
8873 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
8874 but not with -Og.
8875 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
8876 * doc/invoke.texi (-fssa-phiopt): Document.
8877
8878 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8879
8880 * genattrtab.c (n_bypassed): New variable.
8881 (process_bypasses): Initialise n_bypassed.
8882 Count number of bypassed reservations.
8883 (make_automaton_attrs): Allocate space for bypassed reservations
8884 rather than number of bypasses.
8885
8886 2014-06-18 Richard Biener <rguenther@suse.de>
8887
8888 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
8889 we propagated anything.
8890 (substitute_and_fold_dom_walker::before_dom_children): Something
8891 changed if we propagated into PHI arguments.
8892 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
8893 we removed a stmt.
8894
8895 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
8896
8897 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
8898 vector case.
8899 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
8900 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
8901 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
8902 Introduces alternative way of loads group permutaions.
8903 (vect_transform_grouped_load): Try alternative way of permutations.
8904
8905 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8906
8907 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
8908 changed in ORT_TARGET region, don't jump to do_outer.
8909 (struct gimplify_adjust_omp_clauses_data): New type.
8910 (gimplify_adjust_omp_clauses_1): Adjust for data being
8911 a struct gimplify_adjust_omp_clauses_data pointer instead
8912 of tree *. Pass pre_p as a new argument to
8913 lang_hooks.decls.omp_finish_clause hook.
8914 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
8915 splay_tree_foreach to pass both list_p and pre_p.
8916 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
8917 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
8918 gimplify_adjust_omp_clauses callers.
8919 * langhooks.c (lhd_omp_finish_clause): New function.
8920 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
8921 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
8922 * langhooks.h (struct lang_hooks_for_decls): Add a new
8923 gimple_seq * argument to omp_finish_clause hook.
8924 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
8925 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
8926 (scan_omp_parallel, lower_omp_for): When adding
8927 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
8928 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
8929 * tree-nested.c (convert_nonlocal_omp_clauses,
8930 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
8931 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
8932
8933 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
8934
8935 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
8936 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
8937
8938 2014-06-17 Xinliang David Li <davidxl@google.com>
8939
8940 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
8941 * passes.c (pass_init_dump_file): Do not set initialize
8942 flag to false unconditionally.
8943
8944 2014-06-17 Richard Biener <rguenther@suse.de>
8945
8946 * genopinit.c (main): Use vec<>::qsort method.
8947 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8948 Likewise.
8949 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
8950
8951 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
8952
8953 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
8954 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
8955 (mips_move_to_gpr_cost): Remove ST_REGS case.
8956 (mips_move_from_gpr_cost): Likewise.
8957 (mips_register_move_cost): Likewise.
8958 (mips_secondary_reload_class): Likewise.
8959
8960 2014-06-17 Richard Biener <rguenther@suse.de>
8961
8962 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
8963 (pass_all_optimizations): Move 3rd copy-prop pass from after
8964 fre to before ifcombine/phiopt.
8965
8966 2014-06-17 Richard Biener <rguenther@suse.de>
8967
8968 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
8969 and allow all blocks to be forwarders.
8970
8971 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
8972
8973 PR target/61483
8974 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
8975 variable 'size'; calculate 'size' right in the front; use
8976 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
8977 pcum->aapcs_stack_words.
8978
8979 2014-06-17 Nick Clifton <nickc@redhat.com>
8980
8981 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
8982 (umulhi3, mulsidi3, umulsidi3): Likewise.
8983
8984 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
8985
8986 PR middle-end/61508
8987 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
8988 check for section name.
8989
8990 2014-06-17 Richard Biener <rguenther@suse.de>
8991
8992 * tree-ssa-propagate.c: Include domwalk.h.
8993 (substitute_and_fold): Outline main worker into a domwalker ...
8994 (substitute_and_fold_dom_walker::before_dom_children): ... here.
8995 Schedule stmts we can fully propagate for removal. Remove
8996 poor-mans DCE.
8997 (substitute_and_fold): Apply a dominator walk to perform
8998 substitution. Process stmts scheduled for removal here.
8999
9000 2014-06-17 Richard Biener <rguenther@suse.de>
9001
9002 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
9003 of PHI node moving.
9004
9005 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
9006
9007 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
9008 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
9009 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9010 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
9011 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
9012 TARGET_HARD_FLOAT.
9013 (get_fpscr) : Likewise.
9014
9015 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
9016
9017 PR rtl-optimization/61325
9018 * lra-constraints.c (valid_address_p): Add forward declaration.
9019 (simplify_operand_subreg): Check address validity before and after
9020 alter_reg of memory subreg.
9021
9022 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
9023
9024 * config/i386/i386.c (decide_alg): Correctly handle
9025 maximum size of stringop algorithm.
9026
9027 2014-06-16 Yury Gribov <y.gribov@samsung.com>
9028
9029 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
9030
9031 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
9032
9033 PR rtl-optimization/61522
9034 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
9035
9036 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
9037
9038 Revert:
9039 * symtab.c (symtab_node::reset_section): New method.
9040 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
9041 for localization.
9042 * cgraph.h (reset_section): Declare.
9043 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
9044 do not consider comdat locals.
9045 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
9046 for new symbol.
9047 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
9048 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
9049 reset sections of symbols dragged out of the comdats.
9050 (function_and_variable_visibility): Reset sections of
9051 localized symbols.
9052
9053 2014-06-16 Richard Biener <rguenther@suse.de>
9054
9055 PR tree-optimization/61482
9056 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
9057 [-INF(OVF), +INF(OVF)] range.
9058
9059 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9060
9061 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
9062 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
9063 handling 32-bit multiplication.
9064
9065 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
9066
9067 PR middle-end/61430
9068 * lra-lives.c (process_bb_lives): Skip creating copy during
9069 insn scan when src/dest has constrained to same regno.
9070
9071 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
9072
9073 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
9074 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
9075
9076 2014-06-16 Yury Gribov <y.gribov@samsung.com>
9077
9078 * asan.c (check_func): New function.
9079 (maybe_create_ssa_name): Likewise.
9080 (build_check_stmt_with_calls): Likewise.
9081 (use_calls_p): Likewise.
9082 (report_error_func): Change interface.
9083 (build_check_stmt): Allow non-integer lengths; add support
9084 for new parameter.
9085 (asan_instrument): Likewise.
9086 (instrument_mem_region_access): Moved code to build_check_stmt.
9087 (instrument_derefs): Likewise.
9088 (instrument_strlen_call): Likewise.
9089 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
9090 * doc/invoke.texi: Describe new parameter.
9091 * params.def: Define new parameter.
9092 * params.h: Likewise.
9093 * sanitizer.def: Describe new builtins.
9094
9095 2014-06-16 Richard Biener <rguenther@suse.de>
9096
9097 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9098 Make all defs available at the end.
9099 (eliminate): If we remove a PHI node schedule cfg-cleanup.
9100
9101 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9102
9103 PR plugins/45078
9104 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
9105
9106 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
9107
9108 PR bootstrap/61516
9109 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
9110 initialization. Replace remaining use of uid.
9111
9112 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
9113
9114 * c-family/c-common.c (handle_tls_model_attribute): Use
9115 set_decl_tls_model.
9116 * c-family/c-common.c (handle_tls_model_attribute): Use
9117 set_decl_tls_model.
9118 * cgraph.h (struct varpool_node): Add tls_model.
9119 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
9120 * tree.h (DECL_TLS_MODEL): Update.
9121 (DECL_THREAD_LOCAL_P): Check that variable is static.
9122 (decl_tls_model): Declare.
9123 (set_decl_tls_model): Declare.
9124 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
9125 set symbol prorperties.
9126 (get_emutls_init_templ_addr): Cleanup.
9127 (new_emutls_decl): Update.
9128 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
9129 (lto_input_varpool_node): Likewise.
9130 * lto-streamer-out.c (hash_tree): Likewise.
9131 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
9132 not stream DECL_TLS_MODEL.
9133 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
9134 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
9135
9136 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9137
9138 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
9139
9140 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9141
9142 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
9143 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
9144 lists.
9145 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
9146 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
9147 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
9148 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
9149 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
9150 (df_get_artificial_defs, df_get_artificial_uses)
9151 (df_single_def, df_single_use): Update accordingly.
9152 (df_refs_chain_dump): Take the first element in a linked list as
9153 parameter, rather than a pointer to an array of pointers.
9154 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
9155 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
9156 (df_chain_create_bb_process_use): Likewise.
9157 (df_md_bb_local_compute_process_def): Likewise.
9158 * fwprop.c (process_defs, process_uses): Likewise.
9159 (register_active_defs, update_uses): Likewise.
9160 (forward_propagate_asm): Update for new df_ref linking.
9161 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
9162 (df_null_ref_rec, df_null_mw_rec): Likewise.
9163 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
9164 explicitly.
9165 (df_scan_free_bb_info): Remove check for null artificial_defs.
9166 (df_install_ref_incremental): Adjust for new df_ref linking.
9167 Use a single-element insertion rather than a full sort.
9168 (df_ref_chain_delete_du_chain): Take the first element
9169 in a linked list as parameter, rather than a pointer to an array of
9170 pointers.
9171 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
9172 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
9173 (df_insn_info_delete): Remove check for null defs and call to
9174 df_scan_free_mws_vec.
9175 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
9176 null rather than df_null_*_rec.
9177 (df_insn_rescan_debug_internal): Likewise, and update null
9178 checks in the same way. Remove check for null defs.
9179 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
9180 Move a single element rather doing a full sort.
9181 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
9182 linking.
9183 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
9184 Initialize df_ref and df_mw_hardreg lists to null rather than
9185 df_null_*_rec.
9186 (df_ref_compare): Take df_refs as parameter, transferring the
9187 old interface to...
9188 (df_ref_ptr_compare): ...this new function.
9189 (df_sort_and_compress_refs): Update accordingly.
9190 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
9191 old interface to...
9192 (df_mw_ptr_compare): ...this new function.
9193 (df_sort_and_compress_mws): Update accordingly.
9194 (df_install_refs, df_install_mws): Return a linked list rather than
9195 an array of pointers.
9196 (df_refs_add_to_chains): Assert that old lists are empty rather
9197 than freeing them.
9198 (df_insn_refs_verify): Don't handle null defs speciailly.
9199 * web.c (union_match_dups): Update for new df_ref linking.
9200
9201 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9202
9203 * df.h (df_ref_create, df_ref_remove): Delete.
9204 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
9205 (df_ref_remove): Likewise.
9206
9207 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9208
9209 * df.h (df_single_def, df_single_use): New functions.
9210 * ira.c (find_moveable_pseudos): Use them.
9211
9212 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9213
9214 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
9215 * df-problems.c (df_note_bb_compute): Use it.
9216 * regstat.c (regstat_bb_compute_ri): Likewise.
9217
9218 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9219
9220 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
9221 * cse.c (cse_extended_basic_block): Use them.
9222 * dce.c (mark_artificial_use): Likewise.
9223 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
9224 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
9225 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
9226 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
9227 (df_simulate_initialize_backwards): Likewise.
9228 (df_simulate_finalize_backwards): Likewise.
9229 (df_simulate_initialize_forwards): Likewise.
9230 (df_md_simulate_artificial_defs_at_top): Likewise.
9231 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
9232 * regrename.c (init_rename_info): Likewise.
9233 * regstat.c (regstat_bb_compute_ri): Likewise.
9234 (regstat_bb_compute_calls_crossed): Likewise.
9235
9236 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
9237
9238 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
9239 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
9240 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
9241 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
9242 * combine.c (create_log_links): Likewise.
9243 * compare-elim.c (find_flags_uses_in_insn): Likewise.
9244 (try_eliminate_compare): Likewise.
9245 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
9246 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
9247 (remove_reg_equal_equiv_notes_for_defs): Likewise.
9248 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
9249 (word_dce_process_block, dce_process_block): Likewise.
9250 * ddg.c (def_has_ccmode_p): Likewise.
9251 * df-core.c (df_bb_regno_first_def_find): Likewise.
9252 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
9253 * df-problems.c (df_rd_simulate_one_insn): Likewise.
9254 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
9255 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
9256 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
9257 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
9258 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
9259 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
9260 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
9261 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
9262 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
9263 * fwprop.c (local_ref_killed_between_p): Likewise.
9264 (all_uses_available_at, free_load_extend): Likewise.
9265 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
9266 * hw-doloop.c (scan_loop): Likewise.
9267 * ifcvt.c (dead_or_predicable): Likewise.
9268 * init-regs.c (initialize_uninitialized_regs): Likewise.
9269 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
9270 (process_bb_node_lives): Likewise.
9271 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
9272 (find_moveable_pseudos): Likewise.
9273 * loop-invariant.c (check_dependencies, record_uses): Likewise.
9274 * recog.c (peep2_find_free_register): Likewise.
9275 * ree.c (get_defs): Likewise.
9276 * regstat.c (regstat_bb_compute_ri): Likewise.
9277 (regstat_bb_compute_calls_crossed): Likewise.
9278 * sched-deps.c (find_inc, find_mem): Likewise.
9279 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
9280 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
9281 * shrink-wrap.c (requires_stack_frame_p): Likewise.
9282 (prepare_shrink_wrap): Likewise.
9283 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
9284 * web.c (union_defs, pass_web::execute): Likewise.
9285 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
9286 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
9287
9288 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
9289
9290 * lra-assign.c (assign_by_spills): Add code to assign vector regs
9291 to inheritance pseudos.
9292 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
9293
9294 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
9295
9296 PR target/61415
9297 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
9298 (BU_MISC_2): Rename to ...
9299 (BU_LDBL128_2): ... this.
9300 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
9301 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
9302 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
9303 RS6000_BTM_LDBL128.
9304 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
9305 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
9306 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
9307 (unpacktf_1): Likewise.
9308 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
9309 (__builtin_longdouble_dw1): Likewise.
9310 * doc/sourcebuild.texi (longdouble128): Document.
9311
9312 2014-06-13 Jeff Law <law@redhat.com>
9313
9314 PR rtl-optimization/61094
9315 PR rtl-optimization/61446
9316 * ree.c (combine_reaching_defs): Get the mode for the copy from
9317 the extension insn rather than the defining insn.
9318
9319 2014-06-13 Dehao Chen <dehao@google.com>
9320
9321 * dwarf2out.c (add_linkage_name): Emit more linkage name.
9322
9323 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
9324
9325 * doc/install.texi (--enable-linker-plugin-configure-flags)
9326 (--enable-linker-plugin-flags): Document new flags.
9327
9328 2014-06-13 Martin Jambor <mjambor@suse.cz>
9329
9330 PR ipa/61186
9331 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
9332 cache_token if returning early.
9333
9334 2014-06-13 Nick Clifton <nickc@redhat.com>
9335
9336 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
9337 requested alignment is active.
9338 (LABEL_ALIGN): Likewise.
9339 (LOOP_ALIGN): Likewise.
9340
9341 2014-06-13 Richard Biener <rguenther@suse.de>
9342
9343 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9344 Rewrite to propagate the VN result into all uses where
9345 possible and to remove stmts becoming dead because of that.
9346 (eliminate): Generalize stmt removal handling, remove in
9347 reverse dominator order to support proper debug stmt
9348 generation. Update stmts before removing stmts.
9349 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
9350
9351 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9352
9353 PR tree-optimization/61375
9354 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
9355 symbolic number cannot be represented in an uint64_t.
9356 (find_bswap_or_nop_1): Likewise.
9357
9358 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
9359
9360 * symtab.c (symtab_node::reset_section): New method.
9361 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
9362 for localization.
9363 * cgraph.h (reset_section): Declare.
9364 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
9365 do not consider comdat locals.
9366 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
9367 for new symbol.
9368 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
9369 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
9370 reset sections of symbols dragged out of the comdats.
9371 (function_and_variable_visibility): Reset sections of
9372 localized symbols.
9373
9374 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
9375
9376 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
9377 to use symtab and decl_binds_to_current_def_p
9378 * tree-vectorizer.c (increase_alignment): Increase alignment
9379 of alias target, too.
9380
9381 2014-06-12 Jakub Jelinek <jakub@redhat.com>
9382
9383 PR middle-end/61486
9384 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
9385 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
9386 if outer combined construct is distribute.
9387 (gimplify_omp_for): For OMP_DISTRIBUTE set
9388 gimplify_omp_ctxp->distribute.
9389 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
9390 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
9391 mapping into decl map.
9392
9393 2014-06-12 Jason Merrill <jason@redhat.com>
9394
9395 * common.opt (fabi-version): Change default to 0.
9396
9397 2014-06-12 Jason Merrill <jason@redhat.com>
9398
9399 * toplev.c (process_options): Reject -fabi-version=1.
9400
9401 2014-06-12 Jeff Law <law@redhat.com>
9402
9403 PR tree-optimization/61009
9404 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
9405 value when we stop processing a block due to problematic PHIs.
9406
9407 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
9408
9409 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
9410 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
9411 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
9412 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
9413 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
9414 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
9415 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
9416 are not in the spec.
9417
9418 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
9419
9420 PR target/59843
9421 * config/aarch64/aarch64-modes.def: Add V1DFmode.
9422 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
9423 Support V1DFmode.
9424
9425 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
9426
9427 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
9428
9429 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
9430
9431 PR target/61443
9432 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
9433 loading from address spaces.
9434
9435 2014-06-12 Martin Liska <mliska@suse.cz>
9436
9437 PR ipa/61462
9438 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
9439 statement is reachable.
9440
9441 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
9442
9443 * symtab.c (section_hash): New hash.
9444 (symtab_unregister_node): Clear section before freeing.
9445 (hash_section_hash_entry): New haser.
9446 (eq_sections): New function.
9447 (symtab_node::set_section_for_node): New method.
9448 (set_section_1): Update.
9449 (symtab_node::set_section): Take string instead of tree as parameter.
9450 (symtab_resolve_alias): Update.
9451 * cgraph.h (section_hash_entry_d): New structure.
9452 (section_hash_entry): New typedef.
9453 (cgraph_node): Change comdat_group_ to x_comdat_group,
9454 change section_ to x_section and turn into section_hash_entry;
9455 update accestors; put set_section_for_node offline.
9456 * tree.c (decl_section_name): Turn into string.
9457 (set_decl_section_name): Change parameter to be string.
9458 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
9459 * sdbout.c (sdbout_one_type): Update.
9460 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
9461 * varasm.c (IN_NAMED_SECTION, get_named_section,
9462 resolve_unique_section, hot_function_section, get_named_text_section,
9463 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
9464 make_decl_rtl, default_unique_section): Update.
9465 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
9466 (c6x_elf_unique_section): Update.
9467 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
9468 * config/pa/pa.c (pa_function_section): Update.
9469 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
9470 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
9471 * config/arc/arc.c (arc_in_small_data_p): Update.
9472 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
9473 * config/mcore/mcore.c (mcore_unique_section): Update.
9474 * config/mips/mips.c (mips16_build_function_stub): Update.
9475 (mips16_build_call_stub): Update.
9476 (mips_function_rodata_section): Update.
9477 (mips_in_small_data_p): Update.
9478 * config/score/score.c (score_in_small_data_p): Update.
9479 * config/rx/rx.c (rx_in_small_data): Update.
9480 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
9481 (rs6000_xcoff_asm_named_section): Update.
9482 (rs6000_xcoff_unique_section): Update.
9483 * config/frv/frv.c (frv_string_begins_with): Update.
9484 (frv_in_small_data_p): Update.
9485 * config/v850/v850.c (v850_encode_data_area): Update.
9486 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
9487 (bfin_handle_l1_data_attribute): Update.
9488 (bfin_handle_l2_attribute): Update.
9489 * config/mep/mep.c (mep_unique_section): Update.
9490 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
9491 Update.
9492 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
9493 (h8300_handle_tiny_data_attribute): Update.
9494 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
9495 (m32r_in_small_data_p): Update.
9496 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
9497 * config/i386/i386.c (ix86_in_large_data_p): Update.
9498 * config/i386/winnt.c (i386_pe_unique_section): Update.
9499 * config/darwin.c (darwin_function_section): Update.
9500 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
9501 * tree-emutls.c (get_emutls_init_templ_addr): Update.
9502 (new_emutls_decl): Update.
9503 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
9504 input_varpool_node): Update.
9505 (ead_string_cst): Turn to ...
9506 (read_string): ... this one.
9507 * dwarf2out.c (secname_for_decl): Update.
9508 * asan.c (asan_protect_global): Update.
9509
9510 2014-06-11 DJ Delorie <dj@redhat.com>
9511
9512 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
9513 cache lines.
9514 * config/rx/rx.c (rx_option_override): Likewise.
9515 (rx_align_for_label): Likewise.
9516
9517 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
9518
9519 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
9520
9521 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
9522 prototype.
9523
9524 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9525
9526 * common.md: New file.
9527 * doc/md.texi: Update description of generic, machine-independent
9528 constraints.
9529 * config/s390/constraints.md (e): Delete.
9530 * Makefile.in (md_file): Include common.md.
9531 * config/m32c/t-m32c (md_file): Likewise.
9532 * genpreds.c (general_mem): New array.
9533 (generic_constraint_letters): Remove constraints now defined by
9534 common.md.
9535 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
9536 Allow the first character to be '<' or '>' as well.
9537 * genoutput.c (general_mem): New array.
9538 (indep_constraints): Remove constraints now defined by common.md.
9539 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
9540 Remove special handling of 'm'.
9541 * ira-costs.c (record_reg_classes): Remove special handling of
9542 constraints now defined by common.md.
9543 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9544 * ira-lives.c (single_reg_class): Likewise.
9545 (ira_implicitly_set_insn_hard_regs): Likewise.
9546 * lra-constraints.c (reg_class_from_constraints): Likewise.
9547 (process_alt_operands, process_address, curr_insn_transform): Likewise.
9548 * postreload.c (reload_cse_simplify_operands): Likewise.
9549 * reload.c (push_secondary_reload, scratch_reload_class)
9550 (find_reloads, alternative_allows_const_pool_ref): Likewise.
9551 * reload1.c (maybe_fix_stack_asms): Likewise.
9552 * targhooks.c (default_secondary_reload): Likewise.
9553 * stmt.c (parse_output_constraint): Likewise.
9554 * recog.c (preprocess_constraints): Likewise.
9555 (constrain_operands, peep2_find_free_register): Likewise.
9556 (asm_operand_ok): Likewise, but add a comment saying why 'o'
9557 must be handled specially.
9558
9559 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9560
9561 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
9562 * genpreds.c (have_const_dbl_constraints): Delete.
9563 (add_constraint): Don't set it.
9564 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
9565 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
9566 constraints using the lookup_constraint logic.
9567 * ira-lives.c (single_reg_class): Likewise.
9568 * ira.c (ira_setup_alts): Likewise.
9569 * lra-constraints.c (process_alt_operands): Likewise.
9570 * recog.c (asm_operand_ok, constrain_operands): Likewise.
9571 * reload.c (find_reloads): Likewise.
9572
9573 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9574
9575 * genpreds.c (const_int_start, const_int_end): New variables.
9576 (choose_enum_order): Output CONST_INT constraints before memory
9577 constraints.
9578 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
9579 Add CT_CONST_INT.
9580 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
9581 * ira.c (ira_setup_alts): Likewise.
9582 * lra-constraints.c (process_alt_operands): Likewise.
9583 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
9584 * reload.c (find_reloads): Likewise.
9585
9586 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9587
9588 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
9589 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
9590 * recog.c (preprocess_constraints): Update accordingly.
9591
9592 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9593
9594 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
9595 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
9596 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
9597 * genpreds.c (print_type_tree): New function.
9598 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
9599 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
9600 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
9601 Write out enum constraint_type and get_constraint_type.
9602 * lra-constraints.c (satisfies_memory_constraint_p): Take a
9603 constraint_num rather than a constraint string.
9604 (satisfies_address_constraint_p): Likewise.
9605 (reg_class_from_constraints): Avoid old constraint macros.
9606 (process_alt_operands, process_address_1): Likewise.
9607 (curr_insn_transform): Likewise.
9608 * ira-costs.c (record_reg_classes): Likewise.
9609 (record_operand_costs): Likewise.
9610 * ira-lives.c (single_reg_class): Likewise.
9611 (ira_implicitly_set_insn_hard_regs): Likewise.
9612 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9613 * postreload.c (reload_cse_simplify_operands): Likewise.
9614 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
9615 (constrain_operands, peep2_find_free_register): Likewise.
9616 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
9617 (find_reloads, alternative_allows_const_pool_ref): Likewise.
9618 * reload1.c (maybe_fix_stack_asms): Likewise.
9619 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
9620 * targhooks.c (default_secondary_reload): Likewise.
9621 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
9622 to EXTRA_CONSTRAINT_STR.
9623 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
9624
9625 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9626
9627 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
9628 (write_constraint_satisfied_p_array): ...this new function.
9629 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
9630 an array.
9631 (write_insn_preds_c): Update accordingly.
9632
9633 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9634
9635 * genpreds.c (write_lookup_constraint): Rename to...
9636 (write_lookup_constraint_1): ...this.
9637 (write_lookup_constraint_array): New function.
9638 (write_tm_preds_h): Define lookup_constraint as an inline function
9639 that uses write_lookup_constraint_array where possible.
9640 (write_insn_preds_c): Update for the changes above.
9641
9642 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9643
9644 * doc/md.texi (regclass_for_constraint): Rename to...
9645 (reg_class_for_constraint): ...this.
9646 * genpreds.c (num_constraints, enum_order, register_start)
9647 (register_end, satisfied_start, memory_start, memory_end)
9648 (address_start, address_end): New variables.
9649 (add_constraint): Count the number of constraints.
9650 (choose_enum_order): New function.
9651 (write_enum_constraint_num): Iterate over enum_order.
9652 (write_regclass_for_constraint): Rename to...
9653 (write_reg_class_for_constraint_1): ...this and update output
9654 accordingly.
9655 (write_constraint_satisfied_p): Rename to...
9656 (write_constraint_satisfied_p_1): ...this and update output
9657 accordingly. Do nothing if all extra constraints are register
9658 constraints.
9659 (write_insn_extra_memory_constraint): Delete.
9660 (write_insn_extra_address_constraint): Delete.
9661 (write_range_function): New function.
9662 (write_tm_preds_h): Define constraint_satisfied_p and
9663 reg_class_for_constraint as inline functions that do a range check
9664 before calling the out-of-line function. Use write_range_function
9665 to implement insn_extra_{register,memory,address}_constraint,
9666 the first of which is new.
9667 (write_insn_preds_c): Update after above changes to write_* functions.
9668 (main): Call choose_enum_order.
9669
9670 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
9671
9672 PR tree-optimization/61306
9673 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
9674 expression instead of its size.
9675 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
9676 false to prevent optimization when the result is unpredictable due to
9677 arithmetic right shift of signed type with highest byte is set.
9678 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
9679 (init_symbolic_number): Likewise.
9680 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
9681 when the result is unpredictable due to sign extension.
9682
9683 2014-06-11 Terry Guo <terry.guo@arm.com>
9684
9685 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
9686 (*thumb1_addsi3): Ditto.
9687 (*thumb_subdi3): Ditto.
9688 (thumb1_subsi3_insn): Ditto.
9689 (*thumb_mulsi3): Ditto.
9690 (*thumb_mulsi3_v6): Ditto.
9691 (*thumb1_andsi3_insn): Ditto.
9692 (thumb1_bicsi3): Ditto.
9693 (*thumb1_iorsi3_insn): Ditto.
9694 (*thumb1_xorsi3_insn): Ditto.
9695 (*thumb1_ashlsi3): Ditto.
9696 (*thumb1_ashrsi3): Ditto.
9697 (*thumb1_lshrsi3): Ditto.
9698 (*thumb1_rotrsi3): Ditto.
9699 (*thumb1_negdi2): Ditto.
9700 (*thumb1_negsi2): Ditto.
9701 (*thumb1_abssi2): Ditto.
9702 (*thumb1_neg_abssi2): Ditto.
9703 (*thumb1_one_cmplsi2): Ditto.
9704 (*thumb1_zero_extendhisi2): Ditto.
9705 (*thumb1_zero_extendqisi2): Ditto.
9706 (*thumb1_zero_extendqisi2_v6): Ditto.
9707 (thumb1_extendhisi2): Ditto.
9708 (thumb1_extendqisi2): Ditto.
9709 (*thumb1_movdi_insn): Ditto.
9710 (*thumb1_movsi_insn): Ditto.
9711 (*thumb1_movhi_insn): Ditto.
9712 (thumb_movhi_clobber): Ditto.
9713 (*thumb1_movqi_insn): Ditto.
9714 (*thumb1_movhf): Ditto.
9715 (*thumb1_movsf_insn): Ditto.
9716 (*thumb_movdf_insn): Ditto.
9717 (movmem12b): Ditto.
9718 (movmem8b): Ditto.
9719 (cbranchqi4): Ditto.
9720 (cbranchsi4_insn): Ditto.
9721 (cbranchsi4_scratch): Ditto.
9722 (*negated_cbranchsi4): Ditto.
9723 (*tbit_cbranch): Ditto.
9724 (*tlobits_cbranch): Ditto.
9725 (*tstsi3_cbranch): Ditto.
9726 (*cbranchne_decr1): Ditto.
9727 (*addsi3_cbranch): Ditto.
9728 (*addsi3_cbranch_scratch): Ditto.
9729 (*thumb_cmpdi_zero): Ditto.
9730 (cstoresi_eq0_thumb1): Ditto.
9731 (cstoresi_ne0_thumb1): Ditto.
9732 (*cstoresi_eq0_thumb1_insn): Ditto.
9733 (*cstoresi_ne0_thumb1_insn): Ditto.
9734 (cstoresi_nltu_thumb1): Ditto.
9735 (cstoresi_ltu_thumb1): Ditto.
9736 (thumb1_addsi3_addgeu): Ditto.
9737 (*thumb_jump): Ditto.
9738 (*call_reg_thumb1_v5): Ditto.
9739 (*call_reg_thumb1): Ditto.
9740 (*call_value_reg_thumb1_v5): Ditto.
9741 (*call_value_reg_thumb1): Ditto.
9742 (*call_insn): Ditto.
9743 (*call_value_insn): Ditto.
9744 (thumb1_casesi_internal_pic): Ditto.
9745 (thumb1_casesi_dispatch): Ditto.
9746 (*thumb1_indirect_jump): Ditto.
9747 (prologue_thumb1_interwork): Ditto.
9748 (*epilogue_insns): Ditto.
9749 (consttable_1): Ditto.
9750 (consttable_2): Ditto.
9751 (tablejump): Ditto.
9752 (*thumb1_tablejump): Ditto.
9753 (thumb_eh_return): Ditto.
9754 (define_peephole2): Two of them are thumb1 only and got moved into
9755 new file thumb1.md.
9756 (define_split): Six of them are thumb1 only and got moved into new
9757 file thumb1.md.
9758 * config/arm/thumb1.md: New file comprised of above thumb1 only
9759 patterns.
9760
9761 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9762
9763 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
9764 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
9765 dependencies.
9766 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
9767 (aarch64_crc_builtin_datum): New struct.
9768 (aarch64_crc_builtin_data): New.
9769 (aarch64_init_crc32_builtins): New function.
9770 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
9771 (aarch64_crc32_expand_builtin): New.
9772 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
9773 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9774 __ARM_FEATURE_CRC32 when appropriate.
9775 (TARGET_CRC32): Define.
9776 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
9777 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
9778 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
9779 (aarch64_<crc_variant>): New pattern.
9780 * config/aarch64/arm_acle.h: New file.
9781 * config/aarch64/iterators.md (CRC): New int iterator.
9782 (crc_variant, crc_mode): New int attributes.
9783 * doc/aarch64-acle-intrinsics.texi: New file.
9784 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
9785 Include aarch64-acle-intrinsics.texi.
9786
9787 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
9788
9789 * tree-vect-data-refs.c (vect_grouped_store_supported): New
9790 check for stores group of length 3.
9791 (vect_permute_store_chain): New permutations for stores group of
9792 length 3.
9793 * tree-vect-stmts.c (vect_model_store_cost): Change cost
9794 of vec_perm_shuffle for the new permutations.
9795
9796 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
9797
9798 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
9799 table rewriting temporarily on targets not supporting ONE_ONLY.
9800
9801 2014-06-11 Richard Biener <rguenther@suse.de>
9802
9803 PR middle-end/61437
9804 Revert
9805 2014-06-04 Richard Biener <rguenther@suse.de>
9806
9807 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9808 TREE_PUBLIC and DECL_EXTERNAL decls.
9809
9810 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
9811
9812 * varasm.c (set_implicit_section): New function.
9813 (resolve_unique_section): Use it to set implicit section
9814 for aliases, too.
9815 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
9816 (default_function_section): Likewise.
9817 (decl_binds_to_current_def_p): Constify argument.
9818 * varasm.h (decl_binds_to_current_def_p): Update prototype.
9819 * asan.c (asan_protect_global): Use
9820 symtab_get_node (decl)->implicit_section.
9821 * symtab.c (dump_symtab_base): Dump implicit sections.
9822 (verify_symtab_base): Verify sanity of sectoins and comdats.
9823 (symtab_resolve_alias): Alias share the section of its target.
9824 (set_section_1): New function.
9825 (symtab_node::set_section): Move here, recurse to aliases.
9826 (verify_symtab): Check for duplicated symtab lists.
9827 * tree-core.h (implicit_section_name_p): Remove.
9828 * tree-vect-data-refs.c: Include varasm.h.
9829 (vect_can_force_dr_alignment_p): Fix conditional on when
9830 decl bints to current definition; use
9831 symtab_get_node (decl)->implicit_section.
9832 * cgraph.c (cgraph_make_node_local_1): Fix section set.
9833 * cgraph.h (struct symtab_node): Add implicit_section.
9834 (set_section): Rename to ...
9835 (set_section_for_node): ... this one.
9836 (set_section): Declare.
9837 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
9838 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9839 input_overwrite_node, input_varpool_node): Stream implicit_section.
9840 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
9841 removal; it will fail in LTO.
9842
9843 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9844
9845 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
9846 Change second alternative type to f_mcr.
9847 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
9848 and 12th alternatives' types to f_mcr and f_mrc.
9849 (*movdi_aarch64): Same for 12th and 13th alternatives.
9850 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
9851 (aarch64_movtilow_tilow): Change type to fmov.
9852
9853 2014-06-10 Jiong Wang <jiong.wang@arm.com>
9854
9855 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
9856 (aarch64_save_or_restore_callee_save_registers): Fix layout.
9857
9858 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9859
9860 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
9861 New expander.
9862 (aarch64_sqrdmulh_lane<mode>): Likewise.
9863 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9864 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9865 (aarch64_sqdmulh_laneq<mode>): New expander.
9866 (aarch64_sqrdmulh_laneq<mode>): Likewise.
9867 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
9868 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
9869 (aarch64_sqdmulh_lane<mode>): New expander.
9870 (aarch64_sqrdmulh_lane<mode>): Likewise.
9871 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9872 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9873 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
9874 (aarch64_sqdmlal_laneq<mode>): Likewise.
9875 (aarch64_sqdmlsl_lane<mode>): Likewise.
9876 (aarch64_sqdmlsl_laneq<mode>): Likewise.
9877 (aarch64_sqdmlal2_lane<mode>): Likewise.
9878 (aarch64_sqdmlal2_laneq<mode>): Likewise.
9879 (aarch64_sqdmlsl2_lane<mode>): Likewise.
9880 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
9881 (aarch64_sqdmull_lane<mode>): Likewise.
9882 (aarch64_sqdmull_laneq<mode>): Likewise.
9883 (aarch64_sqdmull2_lane<mode>): Likewise.
9884 (aarch64_sqdmull2_laneq<mode>): Likewise.
9885
9886 2014-06-10 Richard Biener <rguenther@suse.de>
9887
9888 PR tree-optimization/61438
9889 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
9890 (eliminate_dom_walker::before_dom_children): Only try to inhibit
9891 insertion of IVs if running PRE.
9892 (eliminate): Adjust.
9893 (pass_pre::execute): Likewise.
9894 (pass_fre::execute): Likewise.
9895
9896 2014-06-10 Richard Biener <rguenther@suse.de>
9897
9898 PR middle-end/61456
9899 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9900 Do not use the main variant for the type comparison.
9901 (ncr_compar): Likewise.
9902 (nonoverlapping_component_refs_p): Likewise.
9903
9904 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
9905
9906 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
9907 REG_CFA_RESTORE mode.
9908
9909 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
9910
9911 * config/i386/i386.c (expand_vec_perm_pblendv): New.
9912 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
9913 expand_vec_perm_pblendv.
9914
9915 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9916
9917 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
9918 available.
9919 Simplify description of __crc32d and __crc32cd intrinsics.
9920 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
9921 availability.
9922
9923 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
9924
9925 PR lto/61334
9926 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
9927 * config.in: Regenerate.
9928 * configure: Likewise.
9929
9930 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
9931
9932 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
9933 and public vars.
9934 (intersect_static_var_sets): Remove.
9935 (propagate): Do not prune local statics.
9936
9937 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9938
9939 PR fortran/60928
9940 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
9941 Set lastprivate_firstprivate even if omp_private_outer_ref
9942 langhook returns true.
9943 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
9944 langhook, call unshare_expr on new_var and call
9945 build_outer_var_ref to get the last argument.
9946
9947 2014-06-10 Marek Polacek <polacek@redhat.com>
9948
9949 PR c/60988
9950 * doc/extend.texi: Add cindex for transparent_union.
9951
9952 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
9953
9954 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
9955 init_symbolic_number ().
9956
9957 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
9958
9959 PR middle-end/61141
9960 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
9961 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
9962 (verify_rtl_sharing): Likewise.
9963
9964 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
9965
9966 PR c++/54442
9967 * tree.c (build_qualified_type): Use a canonical type for
9968 TYPE_CANONICAL.
9969
9970 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9971
9972 * config/arm/arm-modes.def: Remove XFmode.
9973
9974 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
9975
9976 PR target/61062
9977 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
9978 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
9979 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
9980 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
9981 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
9982 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
9983 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
9984 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
9985 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
9986
9987 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
9988
9989 * tree-core.h (tree_decl_with_vis): Remove section_name.
9990
9991 2014-06-09 Kito Cheng <kito@0xlab.org>
9992
9993 * ira.c (ira): Don't call init_caller_save if LRA enabled
9994 since LRA use its own infrastructure to handle that.
9995
9996 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9997
9998 * symtab.c (dump_symtab_base): Update dumping.
9999 (symtab_make_decl_local): Clear only DECL_COMDAT.
10000 * tree-vect-data-refs.c (Check that variable is static before
10001 tampering with sections.
10002 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
10003 (cgraph_create_virtual_clone): Likewise.
10004 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
10005 (decl_section_name, set_decl_section_name): New accessors.
10006 (find_decls_types_r): Do not walk section name
10007 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
10008 (decl_comdat_group, decl_comdat_group_id): Constify.
10009 (decl_section_name, set_decl_section_name): Update.
10010 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
10011 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
10012 (cgraph_make_node_local_1): Clear section and comdat group.
10013 * cgraph.h (set_comdat_group): Sanity check.
10014 (get_section, set_section): New.
10015 * ipa-comdats.c (ipa_comdats): Use get_section.
10016 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
10017 * lto-streamer-out.c: Do not follow section names.
10018 * c-family/c-common.c (handle_section_attribute): Update.
10019 * lto-cgraph.c (lto_output_node): Output section.
10020 (lto_output_varpool_node): Likewise.
10021 (read_comdat_group): Rename to ...
10022 (read_identifier): ... this one.
10023 (read_string_cst): New function.
10024 (input_node, input_varpool_node): Input section names.
10025 * tree-emutls.c (get_emutls_init_templ_addr): Update.
10026 (new_emutls_decl): Update.
10027 (secname_for_decl): Check section names only of static vars.
10028 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
10029 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
10030 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10031 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10032 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
10033 * config/mcore/mcore.c (mcore_unique_section): Likewise.
10034 * config/mips/mips.c (mips16_build_function_stub): Likewise.
10035 * config/v850/v850.c (v850_insert_attributes): Likewise.
10036 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
10037 Likewise.
10038 (h8300_handle_tiny_data_attribute): Likewise.
10039 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
10040 (bfin_handle_l2_attribute): Likewise.
10041
10042 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
10043
10044 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
10045 remove static initializer.
10046
10047 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
10048
10049 * varasm.c (use_blocks_for_decl_p): Check symbol table
10050 instead of alias attribute.
10051 (place_block_symbol): Recurse on aliases.
10052
10053 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
10054
10055 * ipa-visibility.c: Include varasm.h
10056 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
10057
10058 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
10059
10060 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
10061 outputting aliases.
10062
10063 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
10064
10065 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
10066 from test_insn into GGC space escape via SET_SRC.
10067
10068 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
10069
10070 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
10071 call statement, if any.
10072 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
10073 statements, if any. Tidy up.
10074
10075 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10076
10077 PR target/61431
10078 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
10079 iterators, VSX_D that handles 64-bit types, and VSX_LE that
10080 handles swapping the two 64-bit double words on little endian
10081 systems. Include V1TImode and optionally TImode in VSX_LE so that
10082 these types are properly swapped. Change all of the insns and
10083 splits that do the 64-bit swaps to use VSX_LE.
10084 (vsx_le_perm_load_<mode>): Likewise.
10085 (vsx_le_perm_store_<mode>): Likewise.
10086 (splitters for little endian memory operations): Likewise.
10087 (vsx_xxpermdi2_le_<mode>): Likewise.
10088 (vsx_lxvd2x2_le_<mode>): Likewise.
10089 (vsx_stxvd2x2_le_<mode>): Likewise.
10090
10091 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
10092
10093 PR target/61423
10094 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
10095 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
10096 and corresponding splitters. Zero extend general register
10097 or memory input operand to XMM temporary. Enable for
10098 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
10099 (floatunssi<mode>2): Update expander predicate.
10100
10101 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
10102
10103 PR rtl-optimization/61325
10104 * lra-constraints.c (process_address_1): Check scale equal to one
10105 to prevent transformation: base + scale * index => base + new_reg.
10106
10107 2014-06-06 Richard Biener <rguenther@suse.de>
10108
10109 PR tree-optimization/59299
10110 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
10111 a def operand.
10112 (nearest_common_dominator_of_uses): Likewise.
10113 (statement_sink_location): Adjust. Support sinking loads.
10114
10115 2014-06-06 Martin Jambor <mjambor@suse.cz>
10116
10117 * ipa-prop.c (get_place_in_agg_contents_list): New function.
10118 (build_agg_jump_func_from_list): Likewise.
10119 (determine_known_aggregate_parts): Renamed to
10120 determine_locally_known_aggregate_parts. Moved some functionality
10121 to the two functions above, removed bound checks.
10122
10123 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
10124
10125 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
10126 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
10127 (aarch64_progress_pointer): Likewise.
10128 (aarch64_copy_one_part_and_move_pointers): Likewise.
10129 (aarch64_expand_movmen): Likewise.
10130 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
10131 * config/aarch64/aarch64.md (movmem<mode>): New.
10132
10133 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
10134
10135 * targhooks.c (default_add_stmt_cost): Call target specific
10136 hook instead of default one.
10137
10138 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10139
10140 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
10141 endianness instead of host endianness.
10142 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
10143 comments.
10144
10145 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
10146
10147 PR debug/53927
10148 * function.c (instantiate_decls): Process the saved static chain.
10149 (expand_function_start): If not optimizing, save the static chain
10150 onto the stack.
10151 * tree-nested.c (convert_all_function_calls): Always create the static
10152 chain for nested functions if not optimizing.
10153
10154 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
10155
10156 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
10157
10158 2014-06-06 Richard Biener <rguenther@suse.de>
10159
10160 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
10161 (construct_init_block): Likewise.
10162 (construct_exit_block): Likewise.
10163 (pass_expand::execute): Likewise.
10164 * graphite.c (graphite_transforms): Replace check for current_loops
10165 with a check for > 1 loops.
10166 (pass_graphite_transforms::execute): Adjust.
10167 * ipa-split.c (split_function): Remove check for current_loops.
10168 * omp-low.c (expand_parallel_call): Likewise.
10169 (expand_omp_for_init_counts): Likewise.
10170 (extract_omp_for_update_vars): Likewise.
10171 (expand_omp_for_generic): Likewise.
10172 (expand_omp_sections): Likewise.
10173 (expand_omp_target): Likewise.
10174 * tracer.c (tail_duplicate): Likewise.
10175 (pass_tracer::execute): Likewise.
10176 * trans-mem.c (expand_transaction): Likewise.
10177 * tree-complex.c (expand_complex_div_wide): Likewise.
10178 * tree-eh.c (lower_resx): Likewise.
10179 (cleanup_empty_eh_merge_phis): Likewise.
10180 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
10181 current_loops with a check for > 1 loops.
10182 (pass_predcom::execute): Adjust.
10183 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
10184 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
10185 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
10186 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
10187 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
10188 * tree-switch-conversion.c (process_switch): Likewise.
10189 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10190 * tree-vrp.c (vrp_visit_phi_node): Likewise.
10191 (execute_vrp): Likewise.
10192 * ubsan.c (ubsan_expand_null_ifn): Likewise.
10193
10194 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
10195
10196 * rtl.h (insn_location): Declare.
10197 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
10198 with UNKNOWN_LOCATION.
10199 * emit-rtl.c (insn_location): New function.
10200 * final.c (notice_source_line): Check that the instruction has a
10201 location before retrieving it and use insn_location.
10202 * modulo-sched.c (loop_single_full_bb_p): Likewise.
10203 * print-rtl.c (print_rtx): Likewise.
10204
10205 2014-06-06 Richard Biener <rguenther@suse.de>
10206
10207 * passes.def: Move 2nd VRP pass before phi-only-cprop.
10208
10209 2014-06-06 Christian Bruel <christian.bruel@st.com>
10210
10211 PR tree-optimization/43934
10212 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
10213 cost.
10214
10215 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
10216
10217 * ira-lives.c (single_reg_class): Add missing break. Explicitly
10218 return NO_REGS for extra address and memory constraints. Handle
10219 operands that match (or are equivalent to something that matches)
10220 extra constant constraints. Ignore other non-register operands.
10221
10222 2014-06-06 Alan Modra <amodra@gmail.com>
10223
10224 PR target/61300
10225 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
10226 * doc/tm.texi: Regenerate.
10227 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
10228 Use throughout in place of REG_PARM_STACK_SPACE.
10229 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
10230 "incoming" param. Pass to rs6000_function_parms_need_stack.
10231 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
10232 prototype_p when incoming. Use function decl when incoming
10233 to handle K&R style functions.
10234 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
10235 (INCOMING_REG_PARM_STACK_SPACE): Define.
10236
10237 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10238
10239 PR target/52472
10240 * cfgexpand.c (expand_debug_expr): Use address space of nested
10241 TREE_TYPE for ADDR_EXPR and MEM_REF.
10242
10243 2014-06-05 Jeff Law <law@redhat.com>
10244
10245 PR tree-optimization/61289
10246 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
10247 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
10248 looking for those which match LHS. All callers changed.
10249 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
10250 parameters and code which manipulated them. All callers changed.
10251 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
10252 and DST_MAP parameters. Simplify invalidation code by just calling
10253 invalidate_equivalences. All callers changed.
10254 (thread_across_edge): Simplify now that we don't need to maintain
10255 the map of equivalences to invalidate.
10256
10257 2014-06-05 Kai Tietz <ktietz@redhat.com>
10258 Richard Henderson <rth@redhat.com>
10259
10260 PR target/46219
10261 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
10262 checking for !TARGET_X32.
10263 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
10264 (sibcall_intern): New define_insn, plus required peepholes.
10265 (sibcall_pop_intern): Likewise.
10266 (sibcall_value_intern): Likewise.
10267 (sibcall_value_pop_intern): Likewise.
10268
10269 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
10270
10271 * tree-inline.c (tree_function_versioning): Check DF info existence
10272 before accessing it.
10273
10274 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10275
10276 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
10277 frame_size.
10278 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
10279 aarch64_frame hard_fp_offset and frame_size.
10280 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
10281 frame_size; remove original_frame_size.
10282 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
10283 (aarch64_initial_elimination_offset): Remove frame_size and
10284 offset. Use aarch64_frame frame_size.
10285
10286 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10287 Jiong Wang <jiong.wang@arm.com>
10288 Renlin <renlin.li@arm.com>
10289
10290 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
10291 initialization of R30 offset. Update offset. Iterate core
10292 regisers upto X30. Remove X29, X30 specific code.
10293
10294 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10295 Jiong Wang <jiong.wang@arm.com>
10296
10297 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
10298 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
10299 (aarch64_register_saved_on_entry): Adjust test.
10300
10301 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10302
10303 * config/aarch64/aarch64.h (machine_function): Move
10304 saved_varargs_size from here...
10305 (aarch64_frame): ... to here.
10306
10307 * config/aarch64/aarch64.c (aarch64_expand_prologue)
10308 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
10309 (aarch64_initial_elimination_offset)
10310 (aarch64_setup_incoming_varargs): Adjust location of
10311 saved_varargs_size.
10312
10313 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10314
10315 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
10316 layout comment.
10317
10318 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
10319 Prachi Godbole <Prachi.Godbole@imgtec.com>
10320
10321 * config/mips/mips-cpus.def: Add definition for p5600. Updated
10322 mips32r5 entry to use PROCESSOR_P5600.
10323 * config/mips/mips-tables.opt: Regenerate.
10324 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
10325 * config/mips/mips.c (mips_fmadd_bypass): New function.
10326 (mips_rtx_cost_data): Add costs for p5600.
10327 (mips_issue_rate): Add support for p5600.
10328 (mips_multipass_dfa_lookahead): Likewise.
10329 * config/mips/mips.h (TUNE_P5600): New define.
10330 (TUNE_MACC_CHAINS): Add TUNE_P5600.
10331 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
10332 * config/mips/mips.md: Include p5600.md.
10333 (processor): Add p5600.
10334 * config/mips/p5600.md: New file.
10335
10336 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
10337
10338 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
10339 * config/i386/predicates.md (palignr_operand): New.
10340 Indicates if permutation is suitable for palignr instruction.
10341
10342 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
10343
10344 PR tree-optimization/61319
10345 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
10346 stmt belongs to loop.
10347
10348 2014-06-05 Richard Biener <rguenther@suse.de>
10349
10350 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
10351 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
10352 (lookup_tmp_var): Adjust.
10353 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
10354
10355 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10356
10357 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
10358
10359 2014-06-05 Marek Polacek <polacek@redhat.com>
10360
10361 PR c/49706
10362 * doc/invoke.texi: Document -Wlogical-not-parentheses.
10363
10364 2014-06-04 Tom de Vries <tom@codesourcery.com>
10365
10366 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
10367 CONST_INT.
10368
10369 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
10370
10371 PR tree-optimization/61385
10372 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
10373
10374 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
10375
10376 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
10377 changed to use fatal_error.
10378 (main): Ensure lto_wrapper_cleanup is run atexit.
10379
10380 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
10381
10382 * lra-constraints.c (valid_address_p): Move earlier in file.
10383 (address_eliminator): New structure.
10384 (satisfies_memory_constraint_p): New function.
10385 (satisfies_address_constraint_p): Likewise.
10386 (process_alt_operands, process_address, curr_insn_transform): Use them.
10387
10388 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
10389
10390 * lra-int.h (lra_static_insn_data): Make operand_alternative a
10391 const pointer.
10392 (target_lra_int, default_target_lra_int, this_target_lra_int)
10393 (op_alt_data): Delete.
10394 * lra.h (lra_init): Delete.
10395 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
10396 (init_insn_code_data_once): Remove op_alt_data handling.
10397 (finish_insn_code_data_once): Likewise.
10398 (init_op_alt_data): Delete.
10399 (get_static_insn_data): Initialize operand_alternative to null.
10400 (free_insn_recog_data): Cast operand_alternative before freeing it.
10401 (setup_operand_alternative): Take the operand_alternative as
10402 parameter and assume it isn't already cached in the static
10403 insn data.
10404 (lra_set_insn_recog_data): Update accordingly.
10405 (lra_init): Delete.
10406 * ira.c (ira_init): Don't call lra_init.
10407 * target-globals.h (this_target_lra_int): Declare.
10408 (target_globals): Remove lra_int.
10409 (restore_target_globals): Update accordingly.
10410 * target-globals.c: Don't include lra-int.h.
10411 (default_target_globals, save_target_globals): Remove lra_int.
10412
10413 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
10414
10415 * recog.h (operand_alternative): Convert reg_class, reject,
10416 matched and matches into bitfields.
10417 (preprocess_constraints): New overload.
10418 (preprocess_insn_constraints): New function.
10419 (preprocess_constraints): Take the insn as parameter.
10420 (recog_op_alt): Change into a pointer.
10421 (target_recog): Add x_op_alt.
10422 * recog.c (asm_op_alt): New variable.
10423 (recog_op_alt): Change into a pointer.
10424 (preprocess_constraints): New overload, replacing the old function
10425 definition with one that doesn't use global state.
10426 (preprocess_insn_constraints): New function.
10427 (preprocess_constraints): Use them. Take the insn as parameter.
10428 Use asm_op_alt for asms.
10429 (recog_init): Free existing x_op_alt entries.
10430 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
10431 pointer const.
10432 (make_early_clobber_and_input_conflicts): Likewise.
10433 (process_bb_node_lives): Pass the insn to process_constraints.
10434 * reg-stack.c (check_asm_stack_operands): Likewise.
10435 (subst_asm_stack_regs): Likewise.
10436 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
10437 * regrename.c (build_def_use): Likewise.
10438 * sched-deps.c (sched_analyze_insn): Likewise.
10439 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
10440 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
10441 (note_invalid_constants): Likewise.
10442 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10443 (ix86_legitimate_combined_insn): Make operand_alternative pointer
10444 const.
10445
10446 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
10447
10448 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
10449 * ira-lives.c (check_and_make_def_conflict): Check for disabled
10450 alternatives.
10451 (make_early_clobber_and_input_conflicts): Likewise.
10452 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10453
10454 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
10455
10456 * recog.h (alternative_class): New function.
10457 (which_op_alt): Return a const recog_op_alt.
10458 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
10459 (subst_asm_stack_regs): Likewise.
10460 * config/arm/arm.c (note_invalid_constants): Likewise.
10461 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
10462 the operand_alternative; use alternative class instead.
10463 * sel-sched.c (get_reg_class): Likewise.
10464 * regrename.c (build_def_use): Likewise.
10465 (hide_operands, restore_operands, record_out_operands): Update type
10466 accordingly.
10467
10468 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
10469
10470 * recog.h (recog_op_alt): Convert to a flat array.
10471 (which_op_alt): New function.
10472 * recog.c (recog_op_alt): Convert to a flat array.
10473 (preprocess_constraints): Update accordingly, grouping all
10474 operands of the same alternative together, rather than the
10475 other way around.
10476 * ira-lives.c (check_and_make_def_conflict): Likewise.
10477 (make_early_clobber_and_input_conflicts): Likewise.
10478 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10479 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
10480 (subst_asm_stack_regs): Likewise.
10481 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
10482 * regrename.c (hide_operands, record_out_operands): Likewise.
10483 (build_def_use): Likewise.
10484 * sel-sched.c (get_reg_class): Likewise.
10485 * config/arm/arm.c (note_invalid_constants): Likewise.
10486
10487 2014-06-04 Jason Merrill <jason@redhat.com>
10488
10489 PR c++/51253
10490 PR c++/61382
10491 * gimplify.c (gimplify_arg): Non-static.
10492 * gimplify.h: Declare it.
10493
10494 2014-06-04 Richard Biener <rguenther@suse.de>
10495
10496 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
10497 TREE_PUBLIC and DECL_EXTERNAL decls.
10498
10499 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
10500
10501 * regcprop.c (copyprop_hardreg_forward_1): Account for
10502 HARD_REGNO_CALL_PART_CLOBBERED.
10503
10504 2014-06-04 Richard Biener <rguenther@suse.de>
10505
10506 * configure.ac: Check whether the underlying type of int64_t
10507 is long or long long.
10508 * configure: Regenerate.
10509 * config.in: Likewise.
10510 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
10511 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10512
10513 2014-06-04 Richard Biener <rguenther@suse.de>
10514
10515 PR tree-optimization/60098
10516 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
10517 we hit a kill.
10518 (dse_optimize_stmt): Simplify, now that we found a kill
10519 earlier.
10520
10521 2014-06-04 Richard Biener <rguenther@suse.de>
10522
10523 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
10524 of accesses with non-invariant address.
10525
10526 2014-06-04 Martin Liska <mliska@suse.cz>
10527
10528 * cgraph.h (cgraph_make_wrapper): New function introduced.
10529 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
10530 * ipa-inline.h (inline_analyze_function): The function is global.
10531 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
10532
10533 2014-06-04 Martin Liska <mliska@suse.cz>
10534
10535 * tree.h (private_lookup_attribute_starting): New function.
10536 (lookup_attribute_starting): Likewise.
10537 * tree.c (private_lookup_attribute_starting): Likewise.
10538
10539 2014-06-04 Martin Liska <mliska@suse.cz>
10540
10541 * cgraph.h (expand_thunk): New argument added.
10542 (address_taken_from_non_vtable_p): New global function.
10543 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
10544 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
10545 * cgraphunit.c (analyze_function): Likewise.
10546 (assemble_thunks_and_aliases): Argument added to call.
10547 (expand_thunk): New argument forces to produce GIMPLE thunk.
10548
10549 2014-06-04 Martin Liska <mliska@suse.cz>
10550
10551 * coverage.h (coverage_compute_cfg_checksum): Argument added.
10552 * coverage.c (coverage_compute_cfg_checksum): Likewise.
10553 * profile.c (branch_prob): Likewise.
10554
10555 2014-06-04 Martin Jambor <mjambor@suse.cz>
10556
10557 PR ipa/61340
10558 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
10559 handler for switch on an ipa_ref_use enum.
10560 * ipa-reference.c (analyze_function): Likewise.
10561
10562 2014-06-04 Kai Tietz <ktietz@redhat.com>
10563
10564 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
10565 from old call-instruction.
10566
10567 2014-06-04 Bin Cheng <bin.cheng@arm.com>
10568
10569 * config/aarch64/aarch64.c (aarch64_classify_address)
10570 (aarch64_legitimize_reload_address): Support full addressing modes
10571 for vector modes.
10572 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
10573 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
10574
10575 2014-06-03 Andrew Pinski <apinski@cavium.com>
10576
10577 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
10578 for OP0.
10579
10580 2014-06-03 Andrew Pinski <apinski@cavium.com>
10581
10582 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
10583 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
10584
10585 2014-06-03 Kai Tietz <ktietz@redhat.com>
10586
10587 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
10588 for 64-bit ms-abi.
10589
10590 2014-06-03 Dehao Chen <dehao@google.com>
10591
10592 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
10593 the same loop.
10594
10595 2014-06-03 Marek Polacek <polacek@redhat.com>
10596
10597 PR c/60439
10598 * doc/invoke.texi: Document -Wswitch-bool.
10599 * function.c (stack_protect_epilogue): Cast controlling expression of
10600 the switch to int.
10601 * gengtype.c (walk_type): Generate switch expression with its
10602 controlling expression cast to int.
10603
10604 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
10605
10606 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
10607 and attiny841.
10608 * config/avr/avr-tables.opt: Regenerate.
10609 * config/avr/t-multilib: Regenerate.
10610 * doc/avr-mmcu.texi: Regenerate.
10611
10612 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
10613 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10614
10615 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
10616 (ata6617c, ata664251): Add new avr35 devices.
10617 (ata6612c): Add new avr4 device.
10618 (ata6613c, ata6614q): Add new avr5 devices.
10619 * config/avr/avr-tables.opt: Regenerate.
10620 * config/avr/t-multilib: Regenerate.
10621 * doc/avr-mmcu.texi: Regenerate.
10622
10623 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10624
10625 * gcc/config/aarch64/aarch64-builtins.c
10626 (aarch64_types_binop_ssu_qualifiers): New static data.
10627 (TYPES_BINOP_SSU): Define.
10628 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
10629 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
10630 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
10631 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
10632 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
10633 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
10634 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
10635 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
10636 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
10637 suffix to builtin function name, remove cast.
10638 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
10639 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
10640 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
10641
10642 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10643
10644 * gcc/config/aarch64/aarch64-builtins.c
10645 (aarch64_types_binop_uus_qualifiers,
10646 aarch64_types_shift_to_unsigned_qualifiers,
10647 aarch64_types_unsigned_shiftacc_qualifiers): Define.
10648 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
10649 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
10650 sqshlu_n, uqshl_n): Update qualifiers.
10651 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
10652 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
10653 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
10654 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
10655 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
10656 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
10657 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
10658 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
10659 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
10660 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
10661 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
10662 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
10663 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
10664 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
10665 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
10666 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
10667 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
10668 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
10669 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
10670 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
10671 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
10672 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
10673 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
10674 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
10675 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
10676 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
10677 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
10678
10679 2014-06-03 Teresa Johnson <tejohnson@google.com>
10680
10681 * tree-sra.c (modify_function): Record caller nodes after rebuild.
10682
10683 2014-06-02 Jason Merrill <jason@redhat.com>
10684
10685 PR c++/61020
10686 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
10687
10688 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10689
10690 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
10691 location == 0.
10692
10693 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10694
10695 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
10696 New pattern.
10697 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
10698 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
10699 * config/aarch64/iterators.md (REVERSE): New iterator.
10700 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
10701 (rev_op): New int_attribute.
10702 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
10703 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
10704 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
10705 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
10706 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
10707 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
10708 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
10709 Replace temporary __asm__ with __builtin_shuffle.
10710
10711 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10712
10713 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
10714 mips64r5.
10715 * config/mips/mips-tables.opt: Regenerate.
10716 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
10717 to use mips_isa_rev rather than ISA_MIPS32R2.
10718 * config/mips/mips.h (ISA_MIPS32R3): New define.
10719 (ISA_MIPS32R5): New define.
10720 (ISA_MIPS64R3): New define.
10721 (ISA_MIPS64R5): New define.
10722 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
10723 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
10724 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
10725 and mips64r5.
10726 (MIPS_ISA_SYNCI_SPEC): Likewise.
10727 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
10728 (LINK_SPEC): Added mips32r3 and mips32r5.
10729 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
10730 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
10731 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
10732 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
10733 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
10734 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
10735 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
10736
10737 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10738
10739 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
10740 options.
10741 * config/mips/mips.opt (mxpa): New option.
10742 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
10743 assembler.
10744
10745 2014-06-03 Martin Jambor <mjambor@suse.cz>
10746
10747 PR ipa/61160
10748 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
10749 thunks.
10750
10751 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
10752
10753 PR tree-optimization/61328
10754 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
10755 initialization from find_bswap_or_nop_1.
10756 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
10757 in source_expr2 before using the size value the function sets. Also
10758 make use of init_symbolic_number () in both the old place and
10759 find_bswap_or_nop_load () to avoid reading uninitialized memory when
10760 doing recursion in the GIMPLE_BINARY_RHS case.
10761
10762 2014-06-03 Richard Biener <rguenther@suse.de>
10763
10764 PR tree-optimization/61383
10765 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
10766 stmts can't trap.
10767
10768 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
10769
10770 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
10771 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
10772 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
10773 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
10774 in this file.
10775 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
10776 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
10777 * system.h: ...here and make it unconditional.
10778 * target.def (conditional_register_usage): Mention
10779 define_register_constraint instead of old-style constraint macros.
10780 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
10781 * doc/tm.texi: Regenerate.
10782 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
10783 protected by !USE_MD_CONSTRAINTS.
10784 * config/frv/frv.md: Remove quote from old version of documentation.
10785 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
10786 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
10787 CONST_DOUBLE_OK_FOR_LETTER.
10788 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
10789
10790 2014-06-02 Andrew Pinski <apinski@cavium.com>
10791
10792 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
10793 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
10794 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
10795 file whose name depends on -mabi= and -mbig-endian.
10796 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
10797 Handle LP64 better and handle ilp32 too.
10798 (MULTILIB_OPTIONS): Delete.
10799 (MULTILIB_DIRNAMES): Delete.
10800
10801 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
10802
10803 * expr.h: Remove prototypes of functions defined in builtins.c.
10804 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
10805 Remove prototypes of functions defined in builtins.c.
10806 * builtins.h: Update prototype list to include all exported functions.
10807 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
10808 no_c99_libc_has_function): Move to targhooks.c
10809 (build_string_literal, build_call_expr_loc_array,
10810 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
10811 to tree.c.
10812 (expand_builtin_object_size, fold_builtin_object_size): Make static.
10813 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
10814 no_c99_libc_has_function): Relocate from builtins.c.
10815 * tree.c: Include builtins.h.
10816 (build_call_expr_loc_array, build_call_expr_loc_vec,
10817 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
10818 from builtins.c.
10819 * fold-const.h (fold_fma): Move prototype to builtins.h.
10820 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
10821 * asan.c: Include builtins.h.
10822 * cfgexpand.c: Likewise.
10823 * convert.c: Likewise.
10824 * emit-rtl.c: Likewise.
10825 * except.c: Likewise.
10826 * expr.c: Likewise.
10827 * fold-const.c: Likewise.
10828 * gimple-fold.c: Likewise.
10829 * gimple-ssa-strength-reduction.c: Likewise.
10830 * gimplify.c: Likewise.
10831 * ipa-inline.c: Likewise.
10832 * ipa-prop.c: Likewise.
10833 * lto-streamer-out.c: Likewise.
10834 * stmt.c: Likewise.
10835 * tree-inline.c: Likewise.
10836 * tree-object-size.c: Likewise.
10837 * tree-sra.c: Likewise.
10838 * tree-ssa-ccp.c: Likewise.
10839 * tree-ssa-forwprop.c: Likewise.
10840 * tree-ssa-loop-ivcanon.c: Likewise.
10841 * tree-ssa-loop-ivopts.c: Likewise.
10842 * tree-ssa-math-opts.c: Likewise.
10843 * tree-ssa-reassoc.c: Likewise.
10844 * tree-ssa-threadedge.c: Likewise.
10845 * tree-streamer-in.c: Likewise.
10846 * tree-vect-data-refs.c: Likewise.
10847 * tree-vect-patterns.c: Likewise.
10848 * tree-vect-stmts.c: Likewise.
10849 * config/aarch64/aarch64.c: Likewise.
10850 * config/alpha/alpha.c: Likewise.
10851 * config/arc/arc.c: Likewise.
10852 * config/arm/arm.c: Likewise.
10853 * config/avr/avr.c: Likewise.
10854 * config/bfin/bfin.c: Likewise.
10855 * config/c6x/c6x.c: Likewise.
10856 * config/cr16/cr16.c: Likewise.
10857 * config/cris/cris.c: Likewise.
10858 * config/epiphany/epiphany.c: Likewise.
10859 * config/fr30/fr30.c: Likewise.
10860 * config/frv/frv.c: Likewise.
10861 * config/h8300/h8300.c: Likewise.
10862 * config/i386/i386.c: Likewise.
10863 * config/i386/winnt.c: Likewise.
10864 * config/ia64/ia64.c: Likewise.
10865 * config/iq2000/iq2000.c: Likewise.
10866 * config/lm32/lm32.c: Likewise.
10867 * config/m32c/m32c.c: Likewise.
10868 * config/m32r/m32r.c: Likewise.
10869 * config/m68k/m68k.c: Likewise.
10870 * config/mcore/mcore.c: Likewise.
10871 * config/mep/mep.c: Likewise.
10872 * config/microblaze/microblaze.c: Likewise.
10873 * config/mips/mips.c: Likewise.
10874 * config/mmix/mmix.c: Likewise.
10875 * config/mn10300/mn10300.c: Likewise.
10876 * config/moxie/moxie.c: Likewise.
10877 * config/msp430/msp430.c: Likewise.
10878 * config/nds32/nds32.c: Likewise.
10879 * config/pa/pa.c: Likewise.
10880 * config/pdp11/pdp11.c: Likewise.
10881 * config/picochip/picochip.c: Likewise.
10882 * config/rl78/rl78.c: Likewise.
10883 * config/rs6000/rs6000.c: Likewise.
10884 * config/rx/rx.c: Likewise.
10885 * config/s390/s390.c: Likewise.
10886 * config/score/score.c: Likewise.
10887 * config/sh/sh.c: Likewise.
10888 * config/sparc/sparc.c: Likewise.
10889 * config/spu/spu.c: Likewise.
10890 * config/stormy16/stormy16.c: Likewise.
10891 * config/tilegx/tilegx.c: Likewise.
10892 * config/tilepro/tilepro.c: Likewise.
10893 * config/v850/v850.c: Likewise.
10894 * config/vax/vax.c: Likewise.
10895 * config/xtensa/xtensa.c: Likewise.
10896
10897 2014-06-02 Jeff Law <law@redhat.com>
10898
10899 PR rtl-optimization/61094
10900 * ree.c (combine_reaching_defs): Do not reextend an insn if it
10901 was marked as do_no_reextend. If a copy is needed to eliminate
10902 an extension, then mark it as do_not_reextend.
10903
10904 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
10905
10906 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
10907
10908 2014-06-02 Richard Henderson <rth@redhat.com>
10909
10910 PR target/61336
10911 * config/alpha/alpha.c (print_operand_address): Allow symbolic
10912 addresses inside asms. Use output_operand_lossage instead of
10913 gcc_unreachable.
10914
10915 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
10916
10917 PR target/61239
10918 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
10919 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
10920
10921 2014-06-02 Tom de Vries <tom@codesourcery.com>
10922
10923 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
10924 case that x has VOIDmode.
10925
10926 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
10927
10928 * varasm.c (copy_constant): Delete function.
10929 (build_constant_desc): Don't call it.
10930
10931 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10932
10933 PR target/61154
10934 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
10935 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
10936 with immediate_operand.
10937
10938 2014-06-02 Andreas Schwab <schwab@suse.de>
10939
10940 * config/ia64/ia64.c
10941 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
10942 pending_data_specs first.
10943
10944 2014-06-02 Richard Biener <rguenther@suse.de>
10945
10946 PR tree-optimization/61378
10947 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
10948 valueized_anything.
10949
10950 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
10951
10952 * config/i386/constraints.md (Bw): Rename from 'w'.
10953 (Bz): Rename from 'z'.
10954 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
10955
10956 2014-06-01 Kai Tietz <ktietz@redhat.com>
10957
10958 PR target/61377
10959 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
10960 * config/i386/i386.md (sibcall_insn_operand): Use Bs
10961 instead of m constraint.
10962
10963 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
10964
10965 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
10966 a separate alternative where the scratch operand 2 is marked as
10967 early clobber.
10968
10969 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
10970
10971 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10972 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
10973 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
10974 and __builtins_arm_get_fpscr.
10975 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10976 __builtins_arm_get_fpscr.
10977 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
10978 __builtins_arm_ldfpscr.
10979 (arm_atomic_assign_expand_fenv): New function.
10980 * config/arm/vfp.md (set_fpscr): New pattern.
10981 (get_fpscr) : Likewise.
10982 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
10983 VUNSPEC_SET_FPSCR.
10984 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10985 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
10986
10987 2014-05-30 Jakub Jelinek <jakub@redhat.com>
10988
10989 * asan.c (report_error_func): Add SLOW_P argument, use
10990 BUILT_IN_ASAN_*_N if set.
10991 (build_check_stmt): Likewise.
10992 (instrument_derefs): If T has insufficient alignment,
10993 force same handling as for odd sizes.
10994
10995 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
10996 BUILT_IN_ASAN_REPORT_STORE_N): New.
10997 * asan.c (struct asan_mem_ref): Change access_size type to
10998 HOST_WIDE_INT.
10999 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
11000 update_mem_ref_hash_table): Likewise.
11001 (asan_mem_ref_hasher::hash): Hash in a HWI.
11002 (report_error_func): Change size_in_bytes argument to HWI.
11003 Use *_N builtins if size_in_bytes is larger than 16 or not power of
11004 two.
11005 (build_shadow_mem_access): New function.
11006 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
11007 Handle size_in_bytes not power of two or larger than 16.
11008 (instrument_derefs): Don't give up if size_in_bytes is not
11009 power of two or is larger than 16.
11010
11011 2014-05-30 Kai Tietz <ktietz@redhat.com>
11012
11013 PR target/60104
11014 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
11015 for sibling-tail-calls.
11016 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
11017 to its use.
11018 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
11019 (sibcall_insn_operand): Add check for sibcall_memory_operand.
11020
11021 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11022
11023 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
11024 * config/avr/avr-tables.opt: Regenerate.
11025 * config/avr/t-multilib: Regenerate.
11026 * doc/avr-mmcu.texi: Regenerate.
11027
11028 2014-05-30 Ian Lance Taylor <iant@google.com>
11029
11030 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
11031 target("sse").
11032
11033 2014-05-30 Tom de Vries <tom@codesourcery.com>
11034
11035 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11036 Redefine as true.
11037
11038 2014-05-30 Tom de Vries <tom@codesourcery.com>
11039
11040 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
11041 * lra.c (initialize_lra_reg_info_element): Add init of
11042 actual_call_used_reg_set field.
11043 (lra): Call lra_create_live_ranges before lra_inheritance for
11044 -fuse-caller-save.
11045 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
11046 -fuse-caller-save.
11047 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
11048 instead of call_used_reg_set for -fuse-caller-save.
11049 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
11050
11051 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11052
11053 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
11054 to mov_imm.
11055 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
11056
11057 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
11058
11059 * ira.c (ira_get_dup_out_num): Check for output operands at
11060 the start of the loop. Handle cases where an included alternative
11061 follows an excluded one.
11062
11063 2014-05-29 Mike Stump <mikestump@comcast.net>
11064
11065 PR debug/61352
11066 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
11067 post ld passes when lto is used.
11068
11069 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
11070
11071 PR rtl-optimization/61325
11072 * lra-constraints.c (process_address): Rename to process_address_1.
11073 (process_address): New function.
11074
11075 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
11076
11077 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
11078 TYPES_BINOPV): New static data.
11079 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
11080 New builtin.
11081 * config/aarch64/aarch64-simd.md (aarch64_ext,
11082 aarch64_im_lane_boundsi): New patterns.
11083 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
11084 patterns for EXT.
11085 (aarch64_evpc_ext): New function.
11086
11087 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
11088
11089 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
11090 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
11091 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
11092 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
11093 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
11094
11095 2014-05-29 Tom de Vries <tom@codesourcery.com>
11096
11097 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
11098
11099 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
11100 Richard Sandiford <rdsandiford@googlemail.com>
11101
11102 * arm/iterators.md (shiftable_ops): New code iterator.
11103 (t2_binop0, arith_shift_insn): New code attributes.
11104 * arm/predicates.md (shift_nomul_operator): New predicate.
11105 * arm/arm.md (insn_enabled): Delete.
11106 (enabled): Remove insn_enabled test.
11107 (*arith_shiftsi): Delete. Replace with ...
11108 (*<arith_shift_insn>_multsi): ... new pattern.
11109 (*<arith_shift_insn>_shiftsi): ... new pattern.
11110 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
11111
11112 2014-05-29 Radovan Obradovic <robradovic@mips.com>
11113 Tom de Vries <tom@codesourcery.com>
11114
11115 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
11116 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
11117 clobber.
11118 (mips_split_call): Use POST_CALL_TMP_REG.
11119 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
11120
11121 2014-05-29 Tom de Vries <tom@codesourcery.com>
11122
11123 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
11124 with #ifdef STACK_REGS.
11125
11126 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
11127
11128 * varasm.c (get_variable_section): Walk aliases.
11129 (place_block_symbol): Walk aliases.
11130
11131 2014-05-28 Tom de Vries <tom@codesourcery.com>
11132
11133 Revert:
11134 2014-05-28 Tom de Vries <tom@codesourcery.com>
11135
11136 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
11137 * lra.c (initialize_lra_reg_info_element): Add init of
11138 actual_call_used_reg_set field.
11139 (lra): Call lra_create_live_ranges before lra_inheritance for
11140 -fuse-caller-save.
11141 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
11142 -fuse-caller-save.
11143 * lra-constraints.c (need_for_call_save_p): Use
11144 actual_call_used_reg_set instead of call_used_reg_set for
11145 -fuse-caller-save.
11146 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
11147
11148 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11149
11150 * doc/md.texi: Document that the % constraint character must
11151 be at the beginning of the string.
11152 * genoutput.c (validate_insn_alternatives): Check that '=',
11153 '+' and '%' only appear at the beginning of a constraint.
11154 * ira.c (commutative_constraint_p): Delete.
11155 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
11156 at the start of the string.
11157 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
11158 duplicate '='s.
11159 * config/arm/neon.md (bicdi3_neon): Likewise.
11160 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
11161 (slt_si, sltu_si): Likewise.
11162 * config/vax/vax.md (sbcdi3): Likewise.
11163 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
11164 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
11165 (mul64): Move '%' to beginning of constraint.
11166 * config/arm/arm.md (*xordi3_insn): Likewise.
11167 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
11168 (xorsi3): Likewise.
11169
11170 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11171
11172 * doc/md.texi: Document the restrictions on the "enabled" attribute.
11173
11174 2014-05-28 Jason Merrill <jason@redhat.com>
11175
11176 PR c++/47202
11177 * cgraph.h (symtab_node::get_comdat_group_id): New.
11178 * cgraphunit.c (analyze_functions): Call it.
11179 * symtab.c (dump_symtab_node): Likewise.
11180 * tree.c (decl_comdat_group_id): New.
11181 * tree.h: Declare it.
11182 * lto-streamer-out.c (write_symbol): Use it.
11183 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
11184
11185 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11186
11187 PR bootstrap/PR61146
11188 * wide-int.cc: Do not include longlong.h when compiling with clang.
11189
11190 2014-05-28 Richard Biener <rguenther@suse.de>
11191
11192 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
11193 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
11194 (vrp_visit_assignment_or_call): Print less vertical space.
11195 (vrp_visit_stmt): Likewise.
11196 (vrp_visit_phi_node): Likewise. For a PHI argument with
11197 VR_VARYING range consider recording it as copy.
11198
11199 2014-05-28 Richard Biener <rguenther@suse.de>
11200
11201 Revert
11202 2014-05-28 Richard Biener <rguenther@suse.de>
11203
11204 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
11205
11206 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11207
11208 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
11209 sufficiently aligned and an offset is used at the same time.
11210 (expand_expr_real_1): Likewise.
11211
11212 2014-05-28 Richard Biener <rguenther@suse.de>
11213
11214 PR middle-end/61045
11215 * fold-const.c (fold_comparison): When folding
11216 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
11217 the sign of the remaining constant operand stays the same.
11218
11219 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
11220
11221 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
11222 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
11223 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
11224 to the assembler.
11225 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
11226 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
11227 (m32bit-doubles) Likewise.
11228 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
11229 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
11230 option for RL78.
11231
11232 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11233
11234 * configure.ac ($gcc_cv_ld_clearcap): New test.
11235 * configure: Regenerate.
11236 * config.in: Regenerate.
11237 * config/sol2.opt (mclear-hwcap): New option.
11238 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
11239 * config/sol2-clearcap.map: Moved here from
11240 testsuite/gcc.target/i386/clearcap.map.
11241 * config/sol2-clearcapv2.map: Move here from
11242 gcc.target/i386/clearcapv2.map.
11243 * config/t-sol2 (install): Depend on install-clearcap-map.
11244 (install-clearcap-map): New target.
11245 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
11246 -mclear-hwcap.
11247
11248 2014-05-28 Richard Biener <rguenther@suse.de>
11249
11250 * hwint.h (*_HALF_WIDE_INT*): Move to ...
11251 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
11252 ... here and remove the rest.
11253 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
11254
11255 2014-05-28 Richard Biener <rguenther@suse.de>
11256
11257 PR tree-optimization/61335
11258 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
11259 new range fails, drop to varying.
11260
11261 2014-05-28 Olivier Hainque <hainque@adacore.com>
11262
11263 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
11264 (CPP_SPEC): Add entry for -mcpu=8548.
11265 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
11266 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
11267
11268 2014-05-28 Tom de Vries <tom@codesourcery.com>
11269
11270 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
11271 * lra.c (initialize_lra_reg_info_element): Add init of
11272 actual_call_used_reg_set field.
11273 (lra): Call lra_create_live_ranges before lra_inheritance for
11274 -fuse-caller-save.
11275 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
11276 -fuse-caller-save.
11277 * lra-constraints.c (need_for_call_save_p): Use
11278 actual_call_used_reg_set instead of call_used_reg_set for
11279 -fuse-caller-save.
11280 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
11281
11282 2014-05-28 Radovan Obradovic <robradovic@mips.com>
11283 Tom de Vries <tom@codesourcery.com>
11284
11285 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
11286 to gccoptlist.
11287 (@item -fuse-caller-save): New item.
11288
11289 2014-05-28 Radovan Obradovic <robradovic@mips.com>
11290 Tom de Vries <tom@codesourcery.com>
11291
11292 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
11293 OPT_fuse_caller_save.
11294
11295 2014-05-28 Radovan Obradovic <robradovic@mips.com>
11296 Tom de Vries <tom@codesourcery.com>
11297
11298 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
11299 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
11300 get_call_reg_set_usage.
11301 * resource.c (mark_set_resources, mark_target_live_regs): Use
11302 get_call_reg_set_usage.
11303 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
11304 field.
11305 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
11306 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
11307 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11308 * ira-build.c (ira_create_allocno): Init
11309 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11310 (create_cap_allocno, propagate_allocno_info)
11311 (propagate_some_info_from_allocno)
11312 (copy_info_to_removed_store_destinations): Handle
11313 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11314 * ira-costs.c (ira_tune_allocno_costs): Use
11315 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
11316
11317 2014-05-28 Radovan Obradovic <robradovic@mips.com>
11318 Tom de Vries <tom@codesourcery.com>
11319
11320 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
11321 and function_used_regs_valid fields.
11322 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
11323 find_all_hard_reg_sets.
11324 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
11325 (get_call_reg_set_usage): New function.
11326 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
11327 * regs.h (get_call_reg_set_usage): Declare.
11328
11329 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
11330
11331 PR libgcc/61152
11332 * config/dbx.h (License): Add Runtime Library Exception.
11333 * config/newlib-stdint.h (License): Same.
11334 * config/rtems.h (License): Same
11335 * config/initfini-array.h (License): Same
11336 * config/v850/v850.h (License): Same.
11337 * config/v850/v850-opts.h (License): Same
11338 * config/v850/rtems.h (License): Same.
11339
11340 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
11341
11342 PR target/61044
11343 * doc/extend.texi (Local Labels): Note that label differences are
11344 not supported for AVR.
11345
11346 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11347 Olivier Hainque <hainque@adacore.com>
11348
11349 * rtl.h (set_for_reg_notes): Declare.
11350 * emit-rtl.c (set_for_reg_notes): New function.
11351 (set_unique_reg_note): Use it.
11352 * optabs.c (add_equal_note): Likewise
11353
11354 2014-05-27 Andrew Pinski <apinski@cavium.com>
11355
11356 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
11357 Use <w> for the register in assembly template.
11358 (stack_protect_test): Use the mode of operands[0] for the result.
11359 (stack_protect_test_<mode>): Use <w> for the register
11360 in assembly template.
11361
11362 2014-05-27 DJ Delorie <dj@redhat.com>
11363
11364 * config/rx/rx.c (add_vector_labels): New.
11365 (rx_output_function_prologue): Call it.
11366 (rx_handle_func_attribute): Don't require empty arguments.
11367 (rx_handle_vector_attribute): New.
11368 (rx_attribute_table): Add "vector" attribute.
11369 * doc/extend.texi (interrupt, vector): Document new/changed
11370 RX-specific attributes.
11371
11372 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
11373
11374 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
11375
11376 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
11377 predicate to detect a negative quotient.
11378
11379 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
11380
11381 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
11382 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
11383 Add X - Y CMP 0 to X CMP Y transformation.
11384 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
11385
11386 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
11387
11388 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
11389 before printing.
11390
11391 2014-05-27 Steve Ellcey <sellcey@mips.com>
11392
11393 * config/mips/mips.c: Add include of cgraph.h.
11394
11395 2014-05-27 Richard Biener <rguenther@suse.de>
11396
11397 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
11398
11399 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
11400
11401 PR libgcc/61152
11402 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
11403 * config/arm/arm-cores.def (License): Same.
11404 * config/arm/arm-opts.h (License): Same.
11405 * config/arm/aout.h (License): Same.
11406 * config/arm/bpabi.h (License): Same.
11407 * config/arm/elf.h (License): Same.
11408 * config/arm/linux-elf.h (License): Same.
11409 * config/arm/linux-gas.h (License): Same.
11410 * config/arm/netbsd-elf.h (License): Same.
11411 * config/arm/uclinux-eabi.h (License): Same.
11412 * config/arm/uclinux-elf.h (License): Same.
11413 * config/arm/vxworks.h (License): Same.
11414
11415 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11416
11417 * config/arm/neon.md (neon_bswap<mode>): New pattern.
11418 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
11419 (arm_init_neon_builtins): Handle NEON_BSWAP.
11420 Define required type nodes.
11421 (arm_expand_neon_builtin): Handle NEON_BSWAP.
11422 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
11423 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
11424 * config/arm/iterators.md (VDQHSD): New mode iterator.
11425
11426 2014-05-27 Richard Biener <rguenther@suse.de>
11427
11428 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
11429 Try using literal operands when comparing value-ranges failed.
11430
11431 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
11432
11433 * ira.c (commutative_operand): Adjust for change to recog_data.
11434 [Missing from previous commit.]
11435
11436 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
11437
11438 * system.h (TEST_BIT): New macro.
11439 * recog.h (alternative_mask): New type.
11440 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
11441 (recog_data_d): Replace alternative_enabled_p array with
11442 enabled_alternatives.
11443 (target_recog): New structure.
11444 (default_target_recog, this_target_recog): Declare.
11445 (get_enabled_alternatives, recog_init): Likewise.
11446 * recog.c (default_target_recog, this_target_recog): New variables.
11447 (get_enabled_alternatives): New function.
11448 (extract_insn): Use it.
11449 (recog_init): New function.
11450 (preprocess_constraints, constrain_operands): Adjust for change to
11451 recog_data.
11452 * postreload.c (reload_cse_simplify_operands): Likewise.
11453 * reload.c (find_reloads): Likewise.
11454 * ira-costs.c (record_reg_classes): Likewise.
11455 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
11456 all alternatives after a disabled one would be skipped.
11457 (ira_implicitly_set_insn_hard_regs): Likewise.
11458 * ira.c (ira_setup_alts): Adjust for change to recog_data.
11459 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
11460 with enabled_alternatives.
11461 * lra.c (free_insn_recog_data): Update accordingly.
11462 (lra_update_insn_recog_data): Likewise.
11463 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
11464 * lra-constraints.c (process_alt_operands): Likewise. Handle
11465 only_alternative as part of the enabled mask.
11466 * target-globals.h (this_target_recog): Declare.
11467 (target_globals): Add a recog field.
11468 (restore_target_globals): Restore this_target_recog.
11469 * target-globals.c: Include recog.h.
11470 (default_target_globals): Initialize recog field.
11471 (save_target_globals): Likewise.
11472 * reginfo.c (reinit_regs): Call recog_init.
11473 * toplev.c (backend_init_target): Likewise.
11474
11475 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
11476
11477 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
11478 rather than any named insn's code.
11479
11480 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
11481
11482 PR libgcc/61152
11483 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
11484 * config/arm/arm-cores.def (License): Same.
11485
11486 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
11487
11488 * tree.h (decl_comdat_group): Declare.
11489 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
11490 * tree.c (decl_comdat_group): Here.
11491
11492 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
11493
11494 PR rtl-optimization/61222
11495 * combine.c (simplify_shift_const_1): When moving a PLUS outside
11496 the shift, truncate the PLUS operand to the result mode.
11497
11498 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
11499
11500 PR target/61271
11501 * config/i386/i386.c (ix86_rtx_costs)
11502 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
11503 Fix condition.
11504
11505 2014-05-26 Martin Jambor <mjambor@suse.cz>
11506
11507 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
11508 subreg uses.
11509
11510 2014-05-26 Richard Biener <rguenther@suse.de>
11511
11512 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
11513 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
11514 Provide specializations.
11515 (wi::int_traits <HOST_WIDE_INT>,
11516 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
11517
11518 2014-05-26 Alan Modra <amodra@gmail.com>
11519
11520 PR target/61098
11521 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
11522 params and return a bool. Remove dead code. Update comment.
11523 Assert we have a const_int source. Remove bogus code from
11524 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
11525 handling of constants > 2G and reg_equal note, from..
11526 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
11527 return value. Update comment. If we can, use a new pseudo
11528 for intermediate calculations.
11529 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
11530 prototype.
11531 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
11532 call to rs6000_emit_set_const in splitter.
11533 (movdi_internal64+2, +3): Likewise.
11534
11535 2014-05-26 Richard Biener <rguenther@suse.de>
11536
11537 * system.h: Define __STDC_FORMAT_MACROS before
11538 including inttypes.h.
11539 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
11540 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
11541 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
11542 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
11543 HOST_WIDEST_INT_C): Remove.
11544 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
11545 if C99 inttypes.h is not available.
11546 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
11547 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
11548 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
11549 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
11550 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
11551 (struct output_info): Likewise.
11552 (print_statistics): Adjust.
11553 (dump_bitmap_statistics): Likewise.
11554 * bt-load.c (migrate_btr_defs): Print with PRId64.
11555 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
11556 (MAX_SAFE_MULTIPLIER): Adjust.
11557 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
11558 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
11559 dump_cgraph_node): Likewise.
11560 * final.c (dump_basic_block_info): Likewise.
11561 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
11562 * gcov.c (format_gcov): Likewise.
11563 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
11564 for calculation.
11565 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
11566 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
11567 (inline_small_functions, dump_overall_stats, dump_inline_stats):
11568 Use PRId64 for dumping.
11569 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
11570 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
11571 (add_allocno_hard_regs): Adjust.
11572 * loop-doloop.c (doloop_modify): Print using PRId64.
11573 * loop-iv.c (inverse): Compute in uint64_t.
11574 (determine_max_iter, iv_number_of_iterations): Likewise.
11575 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
11576 Print using PRId64.
11577 * lto-streamer-out.c (write_symbol): Use uint64_t.
11578 * mcf.c (CAP_INFINITY): Use int64_t maximum.
11579 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
11580 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
11581 * modulo-sched.c (const_iteration_count): Use int64_t.
11582 (sms_schedule): Dump using PRId64.
11583 * predict.c (dump_prediction): Likewise.
11584 * pretty-print.h (pp_widest_integer): Remove.
11585 * profile.c (get_working_sets, is_edge_inconsistent,
11586 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
11587 * tree-pretty-print.c (pp_double_int): Remove case handling
11588 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
11589 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
11590 and adjust users.
11591 (pass_optimize_bswap::execute): Remove restriction on hosts.
11592 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
11593 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
11594 * tree.c (widest_int_cst_value): Remove.
11595 * tree.h (widest_int_cst_value): Likewise.
11596 * value-prof.c (dump_histogram_value): Print using PRId64.
11597 * gengtype.c (main): Also inject int64_t.
11598 * ggc-page.c (struct max_alignment): Use int64_t.
11599 * alloc-pool.c (struct allocation_object_def): Likewise.
11600 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
11601 for computation.
11602 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
11603 * doc/tm.texi: Regenerated.
11604 * gengtype-lex.l (IWORD): Handle [u]int64_t.
11605 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
11606 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
11607 mmix_output_register_setting): Use [u]int64_t in prototypes.
11608 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
11609 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
11610 mmix_output_octa, mmix_output_shifted_value): Adjust.
11611 (mmix_intval): Adjust. Remove unreachable case.
11612 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
11613
11614 2014-05-26 Richard Biener <rguenther@suse.de>
11615
11616 * configure.ac: Drop __int64 type check. Insist that we
11617 found uint64_t and int64_t.
11618 * hwint.h (HOST_BITS_PER___INT64): Remove.
11619 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
11620 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
11621 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
11622 (HOST_WIDEST_FAST_INT): Remove __int64 case.
11623 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
11624 for dst_q_src_df_rms_cdt.
11625 * configure: Regenerate.
11626 * config.in: Likewise.
11627
11628 2014-05-26 Michael Tautschnig <mt@debian.org>
11629
11630 PR target/61249
11631 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
11632 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
11633
11634 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11635
11636 PR rtl-optimization/61278
11637 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
11638
11639 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11640
11641 PR rtl-optimization/61220
11642 Part of PR rtl-optimization/61225
11643 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
11644 insn; skip split_edge for a block with only one successor.
11645
11646 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11647
11648 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
11649 for variables.
11650
11651 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11652
11653 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
11654 (update_vtable_references): New function.
11655 (function_and_variable_visibility): Rewrite also vtable initializers.
11656 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
11657
11658 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11659
11660 * ggc.h (ggc_grow): New function.
11661 * ggc-none.c (ggc_grow): New function.
11662 * ggc-page.c (ggc_grow): Likewise.
11663
11664 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11665
11666 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
11667 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
11668 comdat_can_be_unshared_p, cgraph_externally_visible_p,
11669 varpool_externally_visible_p, can_replace_by_local_alias,
11670 update_visibility_by_resolution_info, function_and_variable_visibility,
11671 pass_data_ipa_function_and_variable_visibility,
11672 make_pass_ipa_function_and_variable_visibility,
11673 whole_program_function_and_variable_visibility,
11674 pass_data_ipa_whole_program_visibility,
11675 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
11676 * cgraph.h (cgraph_local_node_p): Declare.
11677 * ipa-visibility.c: New file.
11678 * Makefile.in (OBJS): Add ipa-visiblity.o
11679
11680 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11681
11682 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
11683 that var decl is available.
11684
11685 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11686
11687 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
11688 symtab_node pointer.
11689 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
11690 (find_decls_types_r): Do not walk COMDAT_GROUP.
11691 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
11692 * varasm.c (make_decl_one_only): Use set_comdat_group;
11693 create node if needed.
11694 * ipa-inline-transform.c (save_inline_function_body): Update
11695 way we decl->symtab mapping.
11696 * symtab.c (symtab_hash, hash_node, eq_node
11697 symtab_insert_node_to_hashtable): Remove.
11698 (symtab_register_node): Update.
11699 (symtab_unregister_node): Update.
11700 (symtab_get_node): Reimplement as inline function.
11701 (symtab_add_to_same_comdat_group): Update.
11702 (symtab_dissolve_same_comdat_group_list): Update.
11703 (dump_symtab_base): Update.
11704 (verify_symtab_base): Update.
11705 (symtab_make_decl_local): Update.
11706 (fixup_same_cpp_alias_visibility): Update.
11707 (symtab_nonoverwritable_alias): Update.
11708 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
11709 * ipa.c (update_visibility_by_resolution_info): UPdate.
11710 * bb-reorder.c: Include cgraph.h
11711 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
11712 with comdat groups.
11713 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
11714 * cgraph.c (cgraph_get_create_node): Update.
11715 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
11716 and comdat_group_.
11717 (symtab_get_node): Make inline.
11718 (symtab_insert_node_to_hashtable): Remove.
11719 (symtab_can_be_discarded): Update.
11720 (decl_comdat_group): New function.
11721 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
11722 Update.
11723 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
11724 comdat group name.
11725 (read_comdat_group): New function.
11726 (input_node, input_varpool_node): Use it.
11727 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
11728 comdat groups.
11729 * mips.c (mips_start_unique_function): Likewise.
11730 (ix86_code_end): Likewise.
11731 (rs6000_code_end): Likweise.
11732 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
11733
11734 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11735
11736 * gengtype-state.c (fatal_reading_state): Bring offline.
11737 * optabs.c (widening_optab_handler): Bring offline.
11738 * optabs.h (widening_optab_handler): Likewise.
11739 * final.c (get_attr_length_1): Likewise.
11740
11741 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11742
11743 * sched-int.h (sd_iterator_cond): Manually tail recurse.
11744
11745 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11746
11747 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
11748 (ppc440-compare): Include shift with dot.
11749 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
11750 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
11751 without dot.
11752 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
11753 without dot.
11754 (e6500_sfx2): Include it.
11755 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
11756 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
11757 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
11758 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
11759 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
11760 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
11761 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
11762 *lshiftrt_internal1le, *lshiftrt_internal1be,
11763 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
11764 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
11765 *rotldi3_internal10le, *rotldi3_internal10be,
11766 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
11767 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
11768 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
11769 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
11770 define_insns): Use type "shift" in the appropriate alternatives.
11771
11772 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11773
11774 * config/rs6000/rs6000.md (type): Add "logical". Delete
11775 "fast_compare".
11776 (dot): Adjust comment.
11777 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
11778 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
11779 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
11780 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
11781 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
11782 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
11783 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
11784 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11785
11786 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11787 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11788 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11789 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11790 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11791 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11792 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11793 * config/rs6000/8540.md (ppc8540_su): Adjust.
11794 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11795 cell-cmp-microcoded): Adjust.
11796 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11797 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11798 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11799 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11800 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11801 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11802 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11803 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11804 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11805 Adjust.
11806 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11807 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
11808 Adjust. Adjust comment.
11809 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11810 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11811
11812 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11813
11814 * config/rs6000/rs6000.md (type): Add "add".
11815 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
11816 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
11817 define_insns): Use it.
11818 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11819
11820 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11821 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11822 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11823 * config/rs6000/601.md (ppc601-integer): Adjust.
11824 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11825 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11826 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11827 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11828 * config/rs6000/8540.md (ppc8540_su): Adjust.
11829 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11830 cell-cmp-microcoded): Adjust.
11831 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11832 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11833 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11834 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11835 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11836 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11837 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11838 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11839 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11840 Adjust.
11841 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11842 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
11843 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11844 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11845
11846 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11847
11848 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
11849 "delayed_compare", "var_delayed_compare".
11850 (var_shift): New attribute.
11851 (cell_micro): Adjust.
11852 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
11853 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
11854 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
11855 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11856 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11857 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11858 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11859 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
11860 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
11861 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11862 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
11863 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
11864 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
11865 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
11866 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
11867 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
11868 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
11869 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
11870 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
11871 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
11872 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
11873 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
11874 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
11875 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11876 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11877
11878 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11879 * config/rs6000/440.md (ppc440-integer): Adjust.
11880 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11881 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
11882 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11883 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11884 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11885 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11886 * config/rs6000/8540.md (ppc8540_su): Adjust.
11887 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11888 cell-cmp-microcoded): Adjust.
11889 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
11890 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11891 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
11892 e500mc64_delayed): Adjust.
11893 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
11894 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
11895 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11896 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
11897 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
11898 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
11899 power6-delayed-compare, power6-var-delayed-compare): Adjust.
11900 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
11901 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
11902 Adjust comment.
11903 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11904 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11905
11906 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11907
11908 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
11909 (bits): New mode_attr.
11910 (idiv_ldiv): Delete mode_attr.
11911 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
11912 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11913 rs6000_adjust_priority, is_nonpipeline_insn,
11914 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11915
11916 * config/rs6000/40x.md (ppc403-idiv): Adjust.
11917 * config/rs6000/440.md (ppc440-idiv): Adjust.
11918 * config/rs6000/476.md (ppc476-idiv): Adjust.
11919 * config/rs6000/601.md (ppc601-idiv): Adjust.
11920 * config/rs6000/603.md (ppc603-idiv): Adjust.
11921 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
11922 ppc620-ldiv): Adjust.
11923 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
11924 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
11925 * config/rs6000/8540.md (ppc8540_divide): Adjust.
11926 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
11927 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
11928 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
11929 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
11930 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
11931 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
11932 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
11933 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
11934 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
11935 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
11936 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
11937 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
11938 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
11939 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
11940 * config/rs6000/titan.md (titan_fxu_div): Adjust.
11941
11942 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11943
11944 * config/rs6000/rs6000.md (type): Delete "insert_word",
11945 "insert_dword". Add "insert".
11946 (size): Update comment.
11947 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11948 insn_must_be_first_in_group): Adjust.
11949 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11950 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11951 *insvsi_internal6, insvdi_internal): Adjust.
11952
11953 * config/rs6000/40x.md (ppc403-integer): Adjust.
11954 * config/rs6000/440.md (ppc440-integer): Adjust.
11955 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
11956 * config/rs6000/601.md (ppc601-integer): Adjust.
11957 * config/rs6000/603.md (ppc603-integer): Adjust.
11958 * config/rs6000/6xx.md (ppc604-integer): Adjust.
11959 * config/rs6000/7450.md (ppc7450-integer): Adjust.
11960 * config/rs6000/7xx.md (ppc750-integer): Adjust.
11961 * config/rs6000/8540.md (ppc8540_su): Adjust.
11962 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
11963 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
11964 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11965 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
11966 * config/rs6000/e5500.md (e5500_sfx): Adjust.
11967 * config/rs6000/e6500.md (e6500_sfx): Adjust.
11968 * config/rs6000/mpc.md (mpccore-integer): Adjust.
11969 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
11970 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
11971 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
11972 * config/rs6000/power7.md (power7-integer): Adjust.
11973 * config/rs6000/power8.md (power8-1cyc): Adjust.
11974 * config/rs6000/rs64.md (rs64a-integer): Adjust.
11975 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11976
11977 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11978
11979 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
11980 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
11981 (size): New attribute.
11982 (dot): New attribute.
11983 (cell_micro): Adjust.
11984 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
11985 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
11986 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
11987 umuldi3_highpart): Adjust.
11988 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11989 rs6000_adjust_priority, is_nonpipeline_insn,
11990 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11991
11992 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
11993 ppc405-imul3): Adjust.
11994 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
11995 * config/rs6000/476.md (ppc476-imul): Adjust.
11996 * config/rs6000/601.md (ppc601-imul): Adjust.
11997 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
11998 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
11999 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
12000 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
12001 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
12002 Adjust.
12003 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
12004 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
12005 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
12006 cell-imul): Adjust.
12007 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
12008 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
12009 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
12010 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
12011 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
12012 * config/rs6000/mpc.md (mpccore-imul): Adjust.
12013 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
12014 power4-lmul, power4-imul, power4-imul3): Adjust.
12015 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
12016 power5-lmul, power5-imul, power5-imul3): Adjust.
12017 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
12018 power6-lmul, power6-imul, power6-imul3): Adjust.
12019 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
12020 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
12021
12022 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
12023 rs64a-lmul): Adjust.
12024 * config/rs6000/titan.md (titan_imul): Adjust.
12025
12026 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12027
12028 * config/rs6000/rs6000.md (type): Add new value "halfmul".
12029 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
12030 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
12031 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
12032 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
12033 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
12034 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
12035 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
12036 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
12037 * config/rs6000/titan.md: Delete nonsensical comment.
12038 (titan_imul): Add type imul3.
12039 (titan_mulhw): Remove type imul3; add type halfmul.
12040
12041 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12042
12043 * config/rs6000/rs6000.md (type): Reorder, reformat.
12044
12045 2014-05-23 Martin Jambor <mjambor@suse.cz>
12046
12047 PR tree-optimization/53787
12048 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
12049 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
12050 analysis_done, update all uses.
12051 * ipa-prop.c: Include domwalk.h
12052 (param_analysis_info): Removed.
12053 (param_aa_status): New type.
12054 (ipa_bb_info): Likewise.
12055 (func_body_info): Likewise.
12056 (ipa_get_bb_info): New function.
12057 (aa_overwalked): Likewise.
12058 (find_dominating_aa_status): Likewise.
12059 (parm_bb_aa_status_for_bb): Likewise.
12060 (parm_preserved_before_stmt_p): Changed to use new param AA info.
12061 (load_from_unmodified_param): Accept func_body_info as a parameter
12062 instead of parms_ainfo.
12063 (parm_ref_data_preserved_p): Changed to use new param AA info.
12064 (parm_ref_data_pass_through_p): Likewise.
12065 (ipa_load_from_parm_agg_1): Likewise. Update callers.
12066 (compute_complex_assign_jump_func): Changed to use new param AA info.
12067 (compute_complex_ancestor_jump_func): Likewise.
12068 (ipa_compute_jump_functions_for_edge): Likewise.
12069 (ipa_compute_jump_functions): Removed.
12070 (ipa_compute_jump_functions_for_bb): New function.
12071 (ipa_analyze_indirect_call_uses): Likewise, moved variable
12072 declarations down.
12073 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
12074 and info, moved variable declarations down.
12075 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
12076 node and info.
12077 (ipa_analyze_stmt_uses): Likewise.
12078 (ipa_analyze_params_uses): Removed.
12079 (ipa_analyze_params_uses_in_bb): New function.
12080 (ipa_analyze_controlled_uses): Likewise.
12081 (free_ipa_bb_info): Likewise.
12082 (analysis_dom_walker): New class.
12083 (ipa_analyze_node): Handle node-specific forbidden analysis,
12084 initialize and free func_body_info, use dominator walker.
12085 (ipcp_modif_dom_walker): New class.
12086 (ipcp_transform_function): Create and free func_body_info, use
12087 ipcp_modif_dom_walker, moved a lot of functionality there.
12088
12089 2014-05-23 Marek Polacek <polacek@redhat.com>
12090 Jakub Jelinek <jakub@redhat.com>
12091
12092 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
12093 * gcc.c (sanitize_spec_function): Likewise.
12094 * convert.c (convert_to_integer): Include "ubsan.h". Add
12095 floating-point to integer instrumentation.
12096 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
12097 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
12098 SANITIZE_NONDEFAULT.
12099 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
12100 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
12101 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
12102 * ubsan.c: Include "realmpfr.h" and "dfp.h".
12103 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
12104 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
12105 float/double/long double.
12106 (ubsan_instrument_float_cast): New function.
12107 * ubsan.h (ubsan_instrument_float_cast): Declare.
12108
12109 2014-05-23 Jiong Wang <jiong.wang@arm.com>
12110
12111 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
12112 predicate.
12113 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
12114 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
12115 Adjust for tailcalling through registers.
12116 * config/aarch64/aarch64.h (enum reg_class): New caller save
12117 register class.
12118 (REG_CLASS_NAMES): Likewise.
12119 (REG_CLASS_CONTENTS): Likewise.
12120 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
12121 Allow tailcalling without decls.
12122
12123 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
12124
12125 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
12126 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
12127
12128 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
12129 gsi, and variables v_* to v*.
12130
12131 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
12132
12133 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
12134
12135 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
12136
12137 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
12138 * omp-low.c: Update accordingly.
12139
12140 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
12141 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
12142 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
12143 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
12144 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
12145 GF_OMP_TARGET_KIND_UPDATE.
12146
12147 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
12148 Explicitly enumerate the expected region types.
12149
12150 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
12151
12152 PR other/56955
12153 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
12154 documentation; the old documentation didn't clearly state the
12155 constraints on the contents of the pointed-to storage.
12156
12157 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12158
12159 Fix bootstrap error on ia64
12160 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
12161 Return default value.
12162
12163 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
12164
12165 PR tree-optimization/54733
12166 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
12167 (CMPNOP): Define.
12168 (find_bswap_or_nop_load): New.
12169 (find_bswap_1): Renamed to ...
12170 (find_bswap_or_nop_1): This. Also add support for memory source.
12171 (find_bswap): Renamed to ...
12172 (find_bswap_or_nop): This. Also add support for memory source and
12173 detection of bitwise operations equivalent to load in target
12174 endianness.
12175 (execute_optimize_bswap): Likewise. Also move its leading comment back
12176 in place and split statement transformation into ...
12177 (bswap_replace): This.
12178
12179 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
12180
12181 PR rtl-optimization/61215
12182 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
12183 simplify_gen_subreg until final substitution.
12184
12185 2014-05-23 Alan Modra <amodra@gmail.com>
12186
12187 PR target/61231
12188 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
12189 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
12190 Use "Y" constraint rather than "m".
12191
12192 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12193
12194 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
12195 define.
12196 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
12197 New function declaration.
12198 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
12199 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
12200 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
12201 (aarch64_init_builtins) : Initialize builtins
12202 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
12203 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
12204 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
12205 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
12206 and __builtins_aarch64_set_fpsr.
12207 (aarch64_atomic_assign_expand_fenv): New function.
12208 * config/aarch64/aarch64.md (set_fpcr): New pattern.
12209 (get_fpcr) : Likewise.
12210 (set_fpsr) : Likewise.
12211 (get_fpsr) : Likewise.
12212 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
12213 and UNSPECV_SET_FPSR.
12214 * doc/extend.texi (AARCH64 Built-in Functions) : Document
12215 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
12216 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
12217
12218 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
12219
12220 PR rtl-optimization/60969
12221 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
12222 constraints. Set up mem cost for NO_REGS case.
12223
12224 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
12225
12226 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
12227
12228 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
12229
12230 * config/darwin.c: Include "lto-section-names.h".
12231 (LTO_SEGMENT_NAME): Don't define.
12232 * config/i386/winnt.c: Include "lto-section-names.h".
12233 * lto-streamer.c: Include "lto-section-names.h".
12234 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
12235 * lto-wrapper.c: Include "lto-section-names.h".
12236 (LTO_SECTION_NAME_PREFIX): Don't define.
12237 * lto-section-names.h: New file.
12238 * cgraphunit.c: Include "lto-section-names.h".
12239
12240 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
12241
12242 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
12243
12244 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
12245
12246 PR target/61208
12247 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
12248
12249 2014-05-22 Nick Clifton <nickc@redhat.com>
12250
12251 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
12252
12253 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
12254
12255 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
12256 -> (T)A transformation to integer types.
12257
12258 2014-05-22 Teresa Johnson <tejohnson@google.com>
12259
12260 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
12261 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
12262 (gcov_rewrite): Use gcov_nonruntime_assert.
12263 (gcov_open): Ditto.
12264 (gcov_write_words): Ditto.
12265 (gcov_write_length): Ditto.
12266 (gcov_read_words): Use gcov_nonruntime_assert, and remove
12267 gcc_assert from IN_LIBGCOV code.
12268 (gcov_read_summary): Use gcov_error to flag profile corruption.
12269 (gcov_sync): Use gcov_nonruntime_assert.
12270 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
12271 (gcov_histo_index): Use gcov_nonruntime_assert.
12272 (static void gcov_histogram_merge): Ditto.
12273 (compute_working_sets): Ditto.
12274 * gcov-io.h (gcov_nonruntime_assert): Define.
12275 (gcov_error): Define for !IN_LIBGCOV
12276
12277 2014-05-22 Richard Biener <rguenther@suse.de>
12278
12279 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12280 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
12281 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
12282 and deallocation site.
12283 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12284 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
12285 passing through the incoming points-to set.
12286 (handle_lhs_call): Use flags argument instead of recomputing it.
12287 (find_func_aliases_for_call): Call handle_lhs_call with proper
12288 call return flags.
12289
12290 2014-05-22 Jakub Jelinek <jakub@redhat.com>
12291
12292 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
12293 all padding bits in REAL_VALUE_TYPE are cleared.
12294
12295 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12296
12297 Cleanup and improve multipass_dfa_lookahead_guard
12298 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
12299 (core2i7_first_cycle_multipass_begin,)
12300 (core2i7_first_cycle_multipass_issue,)
12301 (core2i7_first_cycle_multipass_backtrack): Update signature.
12302 * config/ia64/ia64.c
12303 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
12304 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
12305 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
12306 hook definition.
12307 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
12308 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
12309 values.
12310 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
12311 return values.
12312 * doc/tm.texi: Regenerate.
12313 * doc/tm.texi.in
12314 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
12315 * haifa-sched.c (ready_try): Make signed to allow negative values.
12316 (rebug_ready_list_1): Update.
12317 (choose_ready): Simplify.
12318 (sched_extend_ready_list): Update.
12319
12320 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12321
12322 Remove IA64 speculation tweaking flags
12323 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
12324 speculation tuning flags.
12325 (msched-prefer-non-data-spec-insns,)
12326 (msched-prefer-non-control-spec-insns): Obsolete options.
12327 * haifa-sched.c (choose_ready): Remove handling of
12328 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
12329 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
12330 and PREFER_NON_DATA_SPEC.
12331 * sel-sched.c (process_spec_exprs): Remove handling of
12332 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
12333
12334 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12335
12336 Improve scheduling debug output
12337 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
12338 (advance_one_cycle): Update.
12339 (schedule_insn, queue_to_ready): Add debug printouts.
12340 (debug_ready_list_1): New static function.
12341 (debug_ready_list): Update.
12342 (max_issue): Add debug printouts.
12343 (dump_insn_stream): New static function.
12344 (schedule_block): Use it. Also better indent printouts.
12345
12346 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12347
12348 Fix sched_insn debug counter
12349 * haifa-sched.c (schedule_insn): Update.
12350 (struct haifa_saved_data): Add nonscheduled_insns_begin.
12351 (save_backtrack_point, restore_backtrack_point): Update.
12352 (first_nonscheduled_insn): New static function.
12353 (queue_to_ready, choose_ready): Use it.
12354 (schedule_block): Init nonscheduled_insns_begin.
12355 (sched_emit_insn): Update.
12356
12357
12358 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
12359
12360 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
12361 to GENERAL_REGS.
12362 (aarch64_secondary_reload) : LikeWise.
12363 (aarch64_class_max_nregs) : Remove CORE_REGS.
12364 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
12365 (REG_CLASS_NAMES) : Likewise.
12366 (REG_CLASS_CONTENTS) : LikeWise.
12367 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
12368
12369 2014-05-21 Guozhi Wei <carrot@google.com>
12370
12371 PR target/61202
12372 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
12373 constraint.
12374 (vqdmulhq_n_s16): Likewise.
12375
12376 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
12377
12378 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
12379
12380 2014-05-21 Marek Polacek <polacek@redhat.com>
12381
12382 PR sanitizer/61272
12383 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
12384
12385 2014-05-21 Martin Jambor <mjambor@suse.cz>
12386
12387 * doc/invoke.texi (Optimize Options): Document parameters
12388 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
12389 ipa-cp-array-index-hint-bonus.
12390
12391 2014-05-21 Mark Wielaard <mjw@redhat.com>
12392
12393 PR debug/16063
12394 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
12395 version >= 3 or not strict DWARF.
12396 * langhooks.h (struct lang_hooks_for_types): Add
12397 enum_underlying_base_type.
12398 * langhooks.c (lhd_enum_underlying_base_type): New function.
12399 * gcc/langhooks.h (struct lang_hooks_for_types): Add
12400 enum_underlying_base_type.
12401 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
12402 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
12403 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
12404
12405 2014-05-21 Richard Biener <rguenther@suse.de>
12406
12407 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
12408
12409 2014-05-21 John Marino <gnugcc@marino.st>
12410
12411 * config.gcc (*-*-dragonfly*): New target.
12412 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
12413 * configure: Regenerate.
12414 * config/dragonfly-stdint.h: New.
12415 * config/dragonfly.h: New.
12416 * config/dragonfly.opt: New.
12417 * config/i386/dragonfly.h: New.
12418 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
12419
12420 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12421
12422 * tree.def (VOID_CST): New.
12423 * tree-core.h (TI_VOID): New.
12424 * tree.h (void_node): New.
12425 * tree.c (tree_node_structure_for_code, tree_code_size)
12426 (iterative_hash_expr): Handle VOID_CST.
12427 (build_common_tree_nodes): Initialize void_node.
12428
12429 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
12430
12431 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
12432 functions.
12433 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
12434
12435 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
12436 more places.
12437
12438 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
12439 flag_reorder_blocks_and_partition.
12440 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
12441
12442 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12443
12444 PR target/54236
12445 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
12446 constraints.
12447 (*addc_r_t): Add new insn_and_split.
12448
12449 2014-05-21 Jakub Jelinek <jakub@redhat.com>
12450
12451 PR middle-end/61252
12452 * omp-low.c (handle_simd_reference): New function.
12453 (lower_rec_input_clauses): Use it. Defer adding reference
12454 initialization even for reduction without placeholder if in simd,
12455 handle it properly later on.
12456
12457 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
12458
12459 PR tree-optimization/60899
12460 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
12461 assume all static symbols will have definition wile parsing and
12462 check the do have definition later in compilation; check that
12463 variable referring symbol will be output before concluding that
12464 reference is safe; be conservative for referring local statics;
12465 be more precise about when comdat is output in other partition.
12466
12467 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
12468
12469 PR bootstrap/60984
12470 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
12471 parameter.
12472 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
12473 (ipa_inline): Loop inline_to_all_callers until no more aliases
12474 are removed.
12475
12476 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
12477
12478 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
12479 set writeonly flag only for vars actually written to.
12480
12481 2014-05-20 Dehao Chen <dehao@google.com>
12482
12483 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
12484 and callee count to get clone count.
12485 * tree-inline.c (expand_call_inline): Use callee count instead of bb
12486 count in copy_body.
12487
12488 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
12489
12490 PR rtl-optimization/61243
12491 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
12492
12493 2014-05-20 Xinliang David Li <davidxl@google.com>
12494
12495 * cgraphunit.c (walk_polymorphic_call_targets): Add
12496 dbgcnt and fopt-info support.
12497 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
12498 * ipa-devirt.c (ipa_devirt): Ditto.
12499 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
12500 * ipa.c (walk_polymorphic_call_targets): Ditto.
12501 * gimple-fold.c (fold_gimple_assign): Ditto.
12502 (gimple_fold_call): Ditto.
12503 * dbgcnt.def: New counter.
12504
12505 2014-05-20 DJ Delorie <dj@redhat.com>
12506
12507 * config/msp430/msp430.md (split): Don't allow subregs when
12508 splitting SImode adds.
12509 (andneghi): Fix subtraction logic.
12510 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
12511
12512 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
12513
12514 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
12515 symbols.
12516 * except.c (switch_to_exception_section, resolve_unique_section,
12517 get_named_text_section, default_function_rodata_section,
12518 align_variable, get_block_for_decl, default_section_type_flags):
12519 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
12520 * symtab.c (symtab_add_to_same_comdat_group,
12521 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
12522 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
12523 Likewise.
12524 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
12525 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
12526 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12527 (c6x_function_in_section_p): Likewise.
12528 * config/darwin.c (machopic_select_section): Likewise.
12529 * config/arm/arm.c (arm_function_in_section_p): Likewise.
12530 * config/mips/mips.c (mips_function_rodata_section): Likewise.
12531 * config/mep/mep.c (mep_select_section): LIkewise.
12532 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12533
12534 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
12535
12536 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
12537 EH region of calls to pure functions that can throw an exception.
12538 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
12539 (copy_reference_ops_from_call): Also copy the EH region of the call if
12540 it can throw an exception.
12541
12542 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12543
12544 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
12545 nested VEC_SELECTs that are inverses of each other.
12546
12547 2014-05-20 Richard Biener <rguenther@suse.de>
12548
12549 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
12550 (extract_and_process_scc_for_name): not here.
12551 (cond_dom_walker::before_dom_children): Only process
12552 stmts that end the BB in interesting ways.
12553 (run_scc_vn): Mark param uses as visited.
12554
12555 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12556
12557 * config/arm/arm.md (arith_shiftsi): Do not predicate for
12558 arm_restrict_it.
12559
12560 2014-05-20 Nick Clifton <nickc@redhat.com>
12561
12562 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
12563 (msp430_gimplify_va_arg_expr): New function.
12564 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
12565
12566 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
12567 operand 0 in order to prevent confusion about the number of
12568 registers involved.
12569
12570 2014-05-20 Richard Biener <rguenther@suse.de>
12571
12572 PR tree-optimization/61221
12573 * tree-ssa-pre.c (el_to_update): Remove.
12574 (eliminate_dom_walker::before_dom_children): Handle released
12575 VDEFs by value-numbering them to the associated VUSE. Update
12576 stmt immediately for substituted call address.
12577 (eliminate): Remove delayed stmt updating code.
12578 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
12579 possibly late re-numbered vuses.
12580 (vn_reference_lookup_2): Adjust.
12581 (vn_reference_lookup_pieces): Likewise.
12582 (vn_reference_lookup): Likewise.
12583
12584 2014-05-20 Richard Biener <rguenther@suse.de>
12585
12586 * config.gcc: Remove need_64bit_hwint.
12587 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
12588 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
12589 it to be true.
12590 * config.in: Regenerate.
12591 * configure: Likewise.
12592
12593 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
12594
12595 * doc/extend.texi: Create Label Attributes section,
12596 move all label attributes into it and reference it.
12597
12598 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
12599
12600 * arm.c (thumb1_reorg): When scanning backwards skip anything
12601 that's not a proper insn.
12602
12603 2014-05-19 Richard Biener <rguenther@suse.de>
12604
12605 PR tree-optimization/61221
12606 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12607 Do nothing for unreachable blocks.
12608 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
12609 Improve unreachability detection.
12610
12611 2014-05-19 Richard Biener <rguenther@suse.de>
12612
12613 PR tree-optimization/61209
12614 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
12615
12616 2014-05-19 Nick Clifton <nickc@redhat.com>
12617
12618 * except.c (init_eh): Fix computation of builtin setjmp buffer
12619 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
12620
12621 2014-05-19 Richard Biener <rguenther@suse.de>
12622
12623 PR tree-optimization/61184
12624 * tree-vrp.c (is_negative_overflow_infinity): Use
12625 TREE_OVERFLOW_P and do that check first.
12626 (is_positive_overflow_infinity): Likewise.
12627 (is_overflow_infinity): Likewise.
12628 (vrp_operand_equal_p): Properly treat operands with
12629 differing overflow as not equal.
12630
12631 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
12632
12633 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
12634 shift simplification where it was intended.
12635
12636 2014-05-19 Christian Bruel <christian.bruel@st.com>
12637
12638 PR target/61195
12639 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
12640
12641 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
12642
12643 PR target/61084
12644 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
12645 than wide_int.
12646
12647 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12648
12649 * reg-notes.def (CROSSING_JUMP): Likewise.
12650 * rtl.h (rtx_def): Update comment for jump flag.
12651 (CROSSING_JUMP_P): Define.
12652 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
12653 of a REG_CROSSING_JUMP note.
12654 * cfghooks.c (tidy_fallthru_edges): Likewise.
12655 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
12656 * emit-rtl.c (try_split): Likewise.
12657 * haifa-sched.c (sched_create_recovery_edges): Likewise.
12658 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12659 * jump.c (redirect_jump_2): Likewise.
12660 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
12661 (relax_delay_slots): Likewise.
12662 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
12663 (bbit_di): Likewise.
12664 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
12665 * config/sh/sh.md (jump_compact): Likewise.
12666 * bb-reorder.c (rotate_loop): Likewise.
12667 (pass_duplicate_computed_gotos::execute): Likewise.
12668 (add_reg_crossing_jump_notes): Rename to...
12669 (update_crossing_jump_flags): ...this.
12670 (pass_partition_blocks::execute): Update accordingly.
12671
12672 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12673
12674 * tree.h: Remove extraneous template <>.
12675
12676 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12677
12678 * ipa.c (symtab_remove_unreachable_nodes): Remove
12679 symbol from comdat group if its body was eliminated.
12680 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
12681 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
12682 (symtab_unregister_node): ... this one.
12683 (verify_symtab_base): More strict checking of comdats.
12684 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
12685
12686 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12687
12688 * tree-pass.h (make_pass_ipa_comdats): New pass.
12689 * timevar.def (TV_IPA_COMDATS): New timevar.
12690 * passes.def (pass_ipa_comdats): Add.
12691 * Makefile.in (OBJS): Add ipa-comdats.o
12692 * ipa-comdats.c: New file.
12693
12694 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12695
12696 * ipa.c (update_visibility_by_resolution_info): New function.
12697 (function_and_variable_visibility): Use it.
12698
12699 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12700
12701 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
12702 New functions.
12703 (FOR_EACH_DEFINED_SYMBOL): New macro.
12704 (varpool_first_static_initializer, varpool_next_static_initializer,
12705 varpool_first_defined_variable, varpool_next_defined_variable):
12706 Fix comments.
12707 (symtab_in_same_comdat_p): Correctly deal with inline functions.
12708
12709 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12710
12711 * ggc-page.c (ggc_handle_finalizers): Add comment.
12712
12713 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12714
12715 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
12716 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
12717 (ggc_internal_cleared_alloc): Likewise.
12718 * ggc-page.c (finalizer): New class.
12719 (vec_finalizer): Likewise.
12720 (globals::finalizers): New member.
12721 (globals::vec_finalizers): Likewise.
12722 (ggc_internal_alloc): Record the finalizer if any for the block being
12723 allocated.
12724 (ggc_handle_finalizers): New function.
12725 (ggc_collect): Call ggc_handle_finalizers.
12726 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
12727 finalizer.
12728 (ggc_internal_cleared_alloc): Likewise.
12729 (finalize): New function.
12730 (need_finalization_p): Likewise.
12731 (ggc_alloc): Install the type's destructor as the finalizer if it
12732 might do something.
12733 (ggc_cleared_alloc): Likewise.
12734 (ggc_vec_alloc): Likewise.
12735 (ggc_cleared_vec_alloc): Likewise.
12736
12737 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12738
12739 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
12740
12741 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12742
12743 * alias.c (record_alias_subset): Adjust.
12744 * bitmap.c (bitmap_element_allocate): Likewise.
12745 (bitmap_gc_alloc_stat): Likewise.
12746 * cfg.c (init_flow): Likewise.
12747 (alloc_block): Likewise.
12748 (unchecked_make_edge): Likewise.
12749 * cfgloop.c (alloc_loop): Likewise.
12750 (flow_loops_find): Likewise.
12751 (rescan_loop_exit): Likewise.
12752 * cfgrtl.c (init_rtl_bb_info): Likewise.
12753 * cgraph.c (insert_new_cgraph_node_version): Likewise.
12754 (cgraph_allocate_node): Likewise.
12755 (cgraph_create_edge_1): Likewise.
12756 (cgraph_allocate_init_indirect_info): Likewise.
12757 * cgraphclones.c (cgraph_clone_edge): Likewise.
12758 * cgraphunit.c (add_asm_node): Likewise.
12759 (init_lowered_empty_function): Likewise.
12760 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
12761 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12762 (alpha_use_linkage): Likewise.
12763 * config/arc/arc.c (arc_init_machine_status): Likewise.
12764 * config/arm/arm.c (arm_init_machine_status): Likewise.
12765 * config/avr/avr.c (avr_init_machine_status): Likewise.
12766 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12767 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
12768 * config/cris/cris.c (cris_init_machine_status): Likewise.
12769 * config/darwin.c (machopic_indirection_name): Likewise.
12770 (darwin_build_constant_cfstring): Likewise.
12771 (darwin_enter_string_into_cfstring_table): Likewise.
12772 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
12773 * config/frv/frv.c (frv_init_machine_status): Likewise.
12774 * config/i386/i386.c (get_dllimport_decl): Likewise.
12775 (ix86_init_machine_status): Likewise.
12776 (assign_386_stack_local): Likewise.
12777 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12778 (i386_pe_maybe_record_exported_symbol): Likewise.
12779 (i386_pe_record_stub): Likewise.
12780 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12781 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12782 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12783 (m32c_note_pragma_address): Likewise.
12784 * config/mep/mep.c (mep_init_machine_status): Likewise.
12785 (mep_note_pragma_flag): Likewise.
12786 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12787 (mips16_local_alias): Likewise.
12788 (mips_init_machine_status): Likewise.
12789 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12790 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12791 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
12792 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
12793 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
12794 * config/pa/pa.c (pa_init_machine_status): Likewise.
12795 (pa_get_deferred_plabel): Likewise.
12796 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
12797 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12798 (rs6000_init_machine_status): Likewise.
12799 (output_toc): Likewise.
12800 * config/s390/s390.c (s390_init_machine_status): Likewise.
12801 * config/score/score.c (score_output_external): Likewise.
12802 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12803 * config/spu/spu.c (spu_init_machine_status): Likewise.
12804 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
12805 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
12806 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12807 * coverage.c (coverage_end_function): Likewise.
12808 * dbxout.c (dbxout_init): Likewise.
12809 * doc/gty.texi: Don't mention variable_size attribute.
12810 * dwarf2cfi.c (new_cfi): Adjust.
12811 (new_cfi_row): Likewise.
12812 (copy_cfi_row): Likewise.
12813 (create_cie_data): Likewise.
12814 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
12815 (new_loc_descr): Likewise.
12816 (find_AT_string_in_table): Likewise.
12817 (add_addr_table_entry): Likewise.
12818 (new_die): Likewise.
12819 (add_var_loc_to_decl): Likewise.
12820 (clone_die): Likewise.
12821 (clone_as_declaration): Likewise.
12822 (break_out_comdat_types): Likewise.
12823 (new_loc_list): Likewise.
12824 (add_loc_descr_to_each): Likewise.
12825 (add_location_or_const_value_attribute): Likewise.
12826 (add_linkage_name): Likewise.
12827 (lookup_filename): Likewise.
12828 (dwarf2out_var_location): Likewise.
12829 (new_line_info_table): Likewise.
12830 (dwarf2out_init): Likewise.
12831 (mem_loc_descriptor): Likewise.
12832 (loc_descriptor): Likewise.
12833 (add_const_value_attribute): Likewise.
12834 (tree_add_const_value_attribute): Likewise.
12835 (comp_dir_string): Likewise.
12836 (dwarf2out_vms_debug_main_pointer): Likewise.
12837 (string_cst_pool_decl): Likewise.
12838 * emit-rtl.c (set_mem_attrs): Likewise.
12839 (get_reg_attrs): Likewise.
12840 (start_sequence): Likewise.
12841 (init_emit): Likewise.
12842 (init_emit_regs): Likewise.
12843 * except.c (init_eh_for_function): Likewise.
12844 (gen_eh_region): Likewise.
12845 (gen_eh_region_catch): Likewise.
12846 (gen_eh_landing_pad): Likewise.
12847 (add_call_site): Likewise.
12848 * function.c (add_frame_space): Likewise.
12849 (insert_temp_slot_address): Likewise.
12850 (assign_stack_temp_for_type): Likewise.
12851 (get_hard_reg_initial_val): Likewise.
12852 (allocate_struct_function): Likewise.
12853 (prepare_function_start): Likewise.
12854 (types_used_by_var_decl_insert): Likewise.
12855 * gengtype.c (variable_size_p): Remove function.
12856 (enum alloc_quantity): Remove enum.
12857 (write_typed_alloc_def): Remove function.
12858 (write_typed_struct_alloc_def): Likewise.
12859 (write_typed_typedef_alloc_def): Likewise.
12860 (write_typed_alloc_defns): Likewise.
12861 (main): Adjust.
12862 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
12863 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
12864 * ggc.h (ggc_alloc): new function.
12865 (ggc_cleared_alloc): Likewise.
12866 (ggc_vec_alloc): Template on type of vector element, and remove
12867 element size argument.
12868 (ggc_cleared_vec_alloc): Likewise.
12869 * gimple.c (gimple_build_omp_for): Adjust.
12870 (gimple_copy): Likewise.
12871 * ipa-cp.c (get_replacement_map): Likewise.
12872 (find_aggregate_values_for_callers_subset): Likewise.
12873 (known_aggs_to_agg_replacement_list): Likewise.
12874 * ipa-devirt.c (get_odr_type): Likewise.
12875 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
12876 (read_agg_replacement_chain): Likewise.
12877 * loop-iv.c (get_simple_loop_desc): Likewise.
12878 * lto-cgraph.c (input_node_opt_summary): Likewise.
12879 * lto-section-in.c (lto_new_in_decl_state): Likewise.
12880 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12881 (input_eh_region): Likewise.
12882 (input_eh_lp): Likewise.
12883 (input_cfg): Likewise.
12884 * optabs.c (set_optab_libfunc): Likewise.
12885 (init_tree_optimization_optabs): Likewise.
12886 (set_conv_libfunc): Likewise.
12887 * passes.c (do_per_function_toporder): Likewise.
12888 * rtl.h: Don't use variable_size gty attribute.
12889 * sese.c (if_region_set_false_region): Adjust.
12890 * stringpool.c (gt_pch_save_stringpool): Likewise.
12891 * target-globals.c (save_target_globals): Likewise.
12892 * toplev.c (general_init): Likewise.
12893 * trans-mem.c (record_tm_replacement): Likewise.
12894 (split_bb_make_tm_edge): Likewise.
12895 * tree-cfg.c (move_sese_region_to_fn): Likewise.
12896 * tree-data-ref.h (lambda_vector_new): Likewise.
12897 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12898 * tree-iterator.c (tsi_link_before): Likewise.
12899 (tsi_link_after): Likewise.
12900 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12901 * tree-ssa-loop-niter.c (record_estimate): Likewise.
12902 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12903 * tree-ssa-operands.h: Don't use variable_size gty attribute.
12904 * tree-ssa.c (init_tree_ssa): Adjust.
12905 * tree-ssanames.c (set_range_info): Likewise.
12906 (get_ptr_info): Likewise.
12907 (duplicate_ssa_name_ptr_info): Likewise.
12908 (duplicate_ssa_name_range_info): Likewise.
12909 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
12910 (unpack_ts_fixed_cst_value_fields): Likewise.
12911 * tree.c (build_fixed): Likewise.
12912 (build_real): Likewise.
12913 (build_string): Likewise.
12914 (decl_priority_info): Likewise.
12915 (decl_debug_expr_insert): Likewise.
12916 (decl_value_expr_insert): Likewise.
12917 (decl_debug_args_insert): Likewise.
12918 (type_hash_add): Likewise.
12919 (build_omp_clause): Likewise.
12920 * ubsan.c (decl_for_type_insert): Likewise.
12921 * varasm.c (get_unnamed_section): Likewise.
12922 (get_noswitch_section): Likewise.
12923 (get_section): Likewise.
12924 (get_block_for_section): Likewise.
12925 (create_block_symbol): Likewise.
12926 (build_constant_desc): Likewise.
12927 (create_constant_pool): Likewise.
12928 (force_const_mem): Likewise.
12929 (record_tm_clone_pair): Likewise.
12930 * varpool.c (varpool_create_empty_node): Likewise.
12931
12932 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12933
12934 * dwarf2out.c (tree_add_const_value_attribute): Call
12935 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
12936 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
12937 instead of ggc_internal_<x>alloc_stat.
12938 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
12939 (ggc_realloc): Likewise.
12940 * ggc-none.c (ggc_internal_alloc): Likewise.
12941 (ggc_internal_cleared_alloc): Likewise.
12942 * ggc-page.c: Likewise.
12943 * ggc.h (ggc_internal_alloc_stat): Likewise.
12944 (ggc_internal_alloc): Remove macro.
12945 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
12946 (ggc_internal_cleared_alloc): Remove macro.
12947 (GGC_RESIZEVEC): Adjust.
12948 (ggc_resizevar): Remove macro.
12949 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
12950 (ggc_internal_cleared_vec_alloc_stat): Likewise.
12951 (ggc_internal_vec_cleared_alloc): Remove macro.
12952 (ggc_alloc_atomic_stat): Drop _stat suffix.
12953 (ggc_alloc_atomic): Remove macro.
12954 (ggc_alloc_cleared_atomic): Remove macro.
12955 (ggc_alloc_string_stat): Drop _stat suffix.
12956 (ggc_alloc_string): Remove macro.
12957 (ggc_alloc_rtx_def_stat): Adjust.
12958 (ggc_alloc_tree_node_stat): Likewise.
12959 (ggc_alloc_cleared_tree_node_stat): Likewise.
12960 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
12961 (ggc_alloc_cleared_simd_clone_stat): Likewise.
12962 * gimple.c (gimple_build_omp_for): Likewise.
12963 (gimple_copy): Likewise.
12964 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
12965 * toplev.c (realloc_for_line_map): Adjust.
12966 * tree-data-ref.h (lambda_vector_new): Likewise.
12967 * tree-phinodes.c (allocate_phi_node): Likewise.
12968 * tree.c (grow_tree_vec_stat): Likewise.
12969 * vec.h (va_gc::reserve): Adjust.
12970
12971 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
12972
12973 * config/microblaze/microblaze.c (break_handler): New Declaration.
12974 (microblaze_break_function_p,microblaze_is_break_handler): New.
12975 (compute_frame_size): Use microblaze_break_function_p.
12976 Add the test of break_handler.
12977 (microblaze_function_prologue) : Add the test of variable
12978 break_handler. Check the fnname by BREAK_HANDLER_NAME.
12979 (microblaze_function_epilogue) : Add the test of break_handler.
12980 (microblaze_globalize_label) : Add the test of break_handler.
12981 Check the name by BREAK_HANDLER_NAME.
12982
12983 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
12984
12985 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
12986 microblaze_is_break_handler test.
12987 (call_internal1,call_value_intern): Use microblaze_break_function_p.
12988 Use SYMBOL_REF_DECL.
12989
12990 * config/microblaze/microblaze-protos.h
12991 (microblaze_break_function_p,microblaze_is_break_handler):
12992 New Declaration.
12993
12994 * doc/extend.texi (MicroBlaze break_handler Functions): Document
12995 new MicroBlaze break_handler functions.
12996
12997 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
12998
12999 * doc/extend.texi (Size of an asm): Move node text according
13000 to its @menu entry position.
13001
13002 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
13003
13004 PR tree-optimization/61140
13005 PR tree-optimization/61150
13006 PR tree-optimization/61197
13007 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
13008
13009 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
13010
13011 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
13012
13013 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
13014
13015 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
13016 __SIZEOF_INT128__ is defined.
13017
13018 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
13019
13020 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
13021 (rs6000_delegitimize_address): Use it.
13022
13023 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
13024
13025 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
13026 inplace argument. Store the new address in the original MEM when true.
13027 * emit-rtl.c (change_address_1): Likewise.
13028 (adjust_address_1, adjust_automodify_address_1, offset_address):
13029 Update accordingly.
13030 * rtl.h (plus_constant): Add an inplace argument.
13031 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
13032 when true. Avoid generating (plus X (const_int 0)).
13033 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
13034 in-place. Pass true to plus_constant.
13035 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
13036
13037 2014-05-16 Dehao Chen <dehao@google.com>
13038
13039 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
13040
13041 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
13042
13043 PR target/54089
13044 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
13045 patterns.
13046 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
13047
13048 2014-05-16 Dehao Chen <dehao@google.com>
13049
13050 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
13051 optimize_function_for_size_p.
13052 * regs.h (REG_FREQ_FROM_BB): Likewise.
13053
13054 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
13055
13056 PR target/51244
13057 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
13058 negt_reg_operand cases.
13059 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
13060 predicate.
13061 * config/sh/predicates.md (cbranch_treg_value): Simplify.
13062
13063 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
13064
13065 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
13066 target variants.
13067
13068 2014-05-16 David Malcolm <dmalcolm@redhat.com>
13069
13070 Revert:
13071 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13072
13073 * tree-cfg.c (dump_function_to_file): Dump the return type of
13074 functions, in a line to itself before the function body, mimicking
13075 the layout of a C function.
13076
13077 2014-05-16 Dehao Chen <dehao@google.com>
13078
13079 * cfghooks.c (make_forwarder_block): Use direct computation to
13080 get fall-through edge's count and frequency.
13081
13082 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
13083
13084 * config/arc/arc.c (arc_init): Fix typo in error message.
13085 * config/i386/i386.c (ix86_expand_builtin): Likewise.
13086 (split_stack_prologue_scratch_regno): Likewise.
13087 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
13088 word from error message.
13089
13090 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
13091
13092 * ira-costs.c: Fix typo in comment.
13093
13094 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
13095
13096 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
13097
13098 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
13099
13100 * varpool.c (dump_varpool_node): Dump write-only flag.
13101 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
13102 write-only flag.
13103 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
13104 write-only variables.
13105 * ipa.c (process_references): New function.
13106 (set_readonly_bit): New function.
13107 (set_writeonly_bit): New function.
13108 (clear_addressable_bit): New function.
13109 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
13110 fix handling of aliases.
13111 * cgraph.h (struct varpool_node): Add writeonly flag.
13112
13113 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
13114
13115 PR rtl-optimization/60969
13116 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
13117 Calculate costs for this case.
13118
13119 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
13120
13121 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
13122 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
13123
13124 2014-05-16 Richard Biener <rguenther@suse.de>
13125
13126 PR tree-optimization/61194
13127 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
13128 bool patterns ending in a COND_EXPR.
13129
13130 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13131
13132 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
13133
13134 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13135
13136 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
13137 where we were unable to cost an RTX.
13138
13139 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13140
13141 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
13142 HIGH, LO_SUM.
13143
13144 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13145 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13146
13147 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
13148
13149 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13150 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13151
13152 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
13153 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
13154
13155 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13156 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13157
13158 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
13159 operators.
13160
13161 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13162 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13163
13164 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
13165 DIV/MOD.
13166
13167 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13168 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13169
13170 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
13171 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
13172
13173 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13174 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13175
13176 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
13177 rotates and shifts.
13178
13179 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13180 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13181
13182 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
13183 ZERO_EXTEND and SIGN_EXTEND better.
13184
13185 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13186 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13187
13188 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
13189 logical operations.
13190
13191 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13192 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13193
13194 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
13195 costs when costing loads and stores to memory.
13196
13197 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13198 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
13199
13200 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
13201 for SET RTX.
13202
13203 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13204
13205 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
13206
13207 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13208 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13209
13210 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
13211 to...
13212 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
13213 well formed.
13214 (aarch64_rtx_mult_cost): New.
13215 (aarch64_rtx_costs): Use it, refactor as appropriate.
13216
13217 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13218 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13219
13220 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
13221 emit instructions, return number of instructions which would
13222 be emitted.
13223 (aarch64_add_constant): Update call to aarch64_build_constant.
13224 (aarch64_output_mi_thunk): Likewise.
13225 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
13226 a CONST_DOUBLE.
13227
13228 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13229
13230 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
13231 (TARGET_RTX_COSTS): Call it.
13232
13233 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13234
13235 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
13236 (cortexa57_vector_cost): Likewise.
13237 (cortexa57_tunings): Use them.
13238
13239 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
13240
13241 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
13242 (cpu_addrcost_table): Use it.
13243 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
13244 (aarch64_address_cost): Rewrite using aarch64_classify_address,
13245 move it.
13246
13247 2014-05-16 Richard Biener <rguenther@suse.de>
13248
13249 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
13250 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
13251 (visit_phi): Ignore edges marked as not executable.
13252 (class cond_dom_walker): New.
13253 (cond_dom_walker::before_dom_children): Value-number
13254 control statements and mark successor edges as not
13255 executable if possible.
13256 (run_scc_vn): First walk all control statements in
13257 dominator order, marking edges as not executable.
13258 * tree-inline.c (copy_edges_for_bb): Be not confused
13259 about random edge flags.
13260
13261 2014-05-16 Richard Biener <rguenther@suse.de>
13262
13263 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
13264
13265 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
13266
13267 PR target/61193
13268 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
13269 (__TM_simple_begin): Use it.
13270 (__TM_begin): Likewise.
13271
13272 2014-05-15 Martin Jambor <mjambor@suse.cz>
13273
13274 PR ipa/61085
13275 * ipa-prop.c (update_indirect_edges_after_inlining): Check
13276 type_preserved flag when the indirect edge is polymorphic.
13277
13278 2014-05-15 Martin Jambor <mjambor@suse.cz>
13279
13280 PR tree-optimization/61090
13281 * tree-sra.c (sra_modify_expr): Pass the current gsi to
13282 build_ref_for_model.
13283
13284 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13285
13286 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
13287 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
13288
13289 2014-05-15 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR tree-optimization/61158
13292 * fold-const.c (fold_binary_loc): If X is zero-extended and
13293 shiftc >= prec, make sure zerobits is all ones instead of
13294 invoking undefined behavior.
13295
13296 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13297
13298 * regcprop.h: New file.
13299 * regcprop.c (skip_debug_insn_p): New decl.
13300 (replace_oldest_value_reg): Check skip_debug_insn_p.
13301 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
13302 * shrink-wrap.c: Include regcprop.h.
13303 (prepare_shrink_wrap): Call
13304 copyprop_hardreg_forward_bb_without_debug_insn.
13305
13306 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13307
13308 * shrink-wrap.h: Update comment.
13309 * shrink-wrap.c: Update comment.
13310 (next_block_for_reg): Rename to live_edge_for_reg.
13311 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
13312 (move_insn_for_shrink_wrap): Split live_edge.
13313 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
13314
13315 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
13316
13317 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
13318 Delete.
13319 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
13320 * config/sparc/sparc.md (fptype_ut699): New attribute.
13321 (in_branch_delay): Return false if -mfix-ut699 is specified and
13322 fptype_ut699 is set to single.
13323 (truncdfsf2): Add fptype_ut699 attribute.
13324 (fix_truncdfsi2): Likewise.
13325 (floatsisf2): Change fptype attribute.
13326 (fix_truncsfsi2): Likewise.
13327 (negtf2_notv9): Delete.
13328 (negtf2_v9): Likewise.
13329 (negtf2_hq): New instruction.
13330 (negtf2): New instruction and splitter.
13331 (negdf2_notv9): Rewrite.
13332 (abstf2_notv9): Delete.
13333 (abstf2_hq_v9): Likewise.
13334 (abstf2_v9): Likewise.
13335 (abstf2_hq): New instruction.
13336 (abstf2): New instruction and splitter.
13337 (absdf2_notv9): Rewrite.
13338
13339 2014-05-14 Cary Coutant <ccoutant@google.com>
13340
13341 PR debug/61013
13342 * opts.c (common_handle_option): Don't special-case "-g".
13343 (set_debug_level): Default to at least level 2 with "-g".
13344
13345 2014-05-14 DJ Delorie <dj@redhat.com>
13346
13347 * config/msp430/msp430.c (msp430_builtin): Add
13348 MSP430_BUILTIN_DELAY_CYCLES.
13349 (msp430_init_builtins): Register void __delay_cycles(long long).
13350 (msp430_builtin_decl): Add it.
13351 (cg_magic_constant): New.
13352 (msp430_expand_delay_cycles): New.
13353 (msp430_expand_builtin): Call it.
13354 (msp430_print_operand_raw): Change integer printing from "int" to
13355 HOST_WIDE_INT.
13356 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
13357 (delay_cycles_start): New.
13358 (delay_cycles_end): New.
13359 (delay_cycles_32): New.
13360 (delay_cycles_32x): New.
13361 (delay_cycles_16): New.
13362 (delay_cycles_16x): New.
13363 (delay_cycles_2): New.
13364 (delay_cycles_1): New.
13365 * doc/extend.texi: Document __delay_cycles().
13366
13367 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
13368
13369 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
13370 length attribute computation.
13371
13372 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
13373
13374 PR debug/61188
13375 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
13376
13377 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
13378
13379 PR target/61084
13380 * config/sparc/sparc.md: Fix types of low and high in DI constant
13381 splitter. Use gen_int_mode in some other splitters.
13382
13383 2014-05-14 Martin Jambor <mjambor@suse.cz>
13384
13385 PR ipa/60897
13386 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
13387
13388 2014-05-14 James Norris <jnorris@codesourcery.com>
13389
13390 * omp-low.c (expand_parallel_call): Remove shadow variable.
13391 (expand_omp_taskreg): Likewise.
13392
13393 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
13394
13395 * common/config/i386/i386-common.c
13396 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
13397 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
13398 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
13399 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
13400 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
13401 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
13402 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
13403 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
13404 xsavecintrin.h, xsavesintrin.h.
13405 (x86_64-*-*): Ditto.
13406 * config/i386/clflushoptintrin.h: New.
13407 * config/i386/xsavecintrin.h: Ditto.
13408 * config/i386/xsavesintrin.h: Ditto.
13409 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
13410 (bit_XSAVES): Ditto.
13411 (bit_XSAVES): Ditto.
13412 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
13413 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
13414 -mno-clflushopt.
13415 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13416 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
13417 OPTION_MASK_ISA_XSAVES.
13418 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
13419 -mxsavec, -mxsaves.
13420 (PTA_CLFLUSHOPT) Define.
13421 (PTA_XSAVEC): Ditto.
13422 (PTA_XSAVES): Ditto.
13423 (ix86_option_override_internal): Handle new options.
13424 (ix86_valid_target_attribute_inner_p): Ditto.
13425 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
13426 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
13427 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
13428 (bdesc_special_args): Add __builtin_ia32_xsaves,
13429 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
13430 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
13431 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
13432 (ix86_expand_builtin): Handle new builtins.
13433 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
13434 (TARGET_CLFLUSHOPT_P): Ditto.
13435 (TARGET_XSAVEC): Ditto.
13436 (TARGET_XSAVEC_P): Ditto.
13437 (TARGET_XSAVES): Ditto.
13438 (TARGET_XSAVES_P): Ditto.
13439 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
13440 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
13441 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
13442 (ANY_XRSTOR): New.
13443 (ANY_XRSTOR64): Ditto.
13444 (xrstor): Ditto.
13445 (xrstor): Change into <xrstor>.
13446 (xrstor_rex64): Change into <xrstor>_rex64.
13447 (xrstor64): Change into <xrstor>64
13448 (clflushopt): New.
13449 * config/i386/i386.opt (mclflushopt): New.
13450 (mxsavec): Ditto.
13451 (mxsaves): Ditto.
13452 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
13453 xsavecintrin.h.
13454 * doc/invoke.texi: Document new options.
13455
13456 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
13457
13458 PR rtl-optimization/60866
13459 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
13460 Default it to -1. Pass it down to init_simplejump_data.
13461 (init_simplejump_data): New parameter old_seqno. Pass it down
13462 to get_seqno_for_a_jump.
13463 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
13464 initializing new jump seqno as a last resort. Add comment.
13465 (sel_redirect_edge_and_branch): Save old seqno of the conditional
13466 jump and pass it down to sel_init_new_insn.
13467 (sel_redirect_edge_and_branch_force): Likewise.
13468
13469 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
13470
13471 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
13472 shifted values to avoid build warning.
13473
13474 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
13475
13476 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
13477 * cfgrtl.c (rtl_merge_blocks): Fix comment.
13478 (cfg_layout_merge_blocks): Likewise.
13479 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
13480
13481 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
13482
13483 PR rtl-optimization/60901
13484 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
13485 bb predecessor belongs to the same scheduling region. Adjust comment.
13486
13487 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
13488
13489 * doc/sourcebuild.texi: (dfp_hw): Document.
13490 (p8vector_hw): Likewise.
13491 (powerpc_eabi_ok): Likewise.
13492 (powerpc_elfv2): Likewise.
13493 (powerpc_htm_ok): Likewise.
13494 (ppc_recip_hw): Likewise.
13495 (vsx_hw): Likewise.
13496
13497 2014-05-13 Cary Coutant <ccoutant@google.com>
13498
13499 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
13500
13501 2014-05-13 David Malcolm <dmalcolm@redhat.com>
13502
13503 * gengtype-parse.c (require3): Eliminate in favor of...
13504 (require4): New.
13505 (require_template_declaration): Update to support optional single *
13506 on a type.
13507
13508 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
13509 (create_user_defined_type): Handle a single level of explicit
13510 pointerness within template arguments.
13511 (struct write_types_data): Add field "kind".
13512 (filter_type_name): Handle "*" character.
13513 (write_user_func_for_structure_ptr): Require a write_types_data
13514 rather than just a prefix string, so that we can look up the kind
13515 of the wtd and use it as an index into wrote_user_func_for_ptr,
13516 ensuring that such functions are written at most once. Support
13517 subclasses by invoking the marking function of the ultimate base class.
13518 (write_user_func_for_structure_body): Require a write_types_data
13519 rather than just a prefix string, so that we can pass this to
13520 write_user_func_for_structure_ptr.
13521 (write_func_for_structure): Likewise.
13522 (ggc_wtd): Add initializer of new "kind" field.
13523 (pch_wtd): Likewise.
13524
13525 * gengtype.h (enum write_types_kinds): New.
13526 (struct type): Add field wrote_user_func_for_ptr to the "s"
13527 union member.
13528
13529 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
13530
13531 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
13532 instead of const_binop.
13533 (fold_binary_loc): Likewise.
13534
13535 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
13536
13537 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
13538 calculation to match get_ref_base_and_extent.
13539
13540 2014-05-13 Catherine Moore <clm@codesourcery.com>
13541 Sandra Loosemore <sandra@codesourcery.com>
13542
13543 * configure.ac: Fix assembly for explicit JALR relocation check.
13544 * configure: Regenerate.
13545
13546 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13547
13548 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
13549 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
13550 Remove associated type declarations and initialisations.
13551 (arm_expand_neon_builtin): Likewise.
13552 (neon_emit_pair_result_insn): Delete.
13553 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
13554 * config/arm/neon.md (neon_vtrn<mode>): Delete.
13555 (neon_vzip<mode>): Likewise.
13556 (neon_vuzp<mode>): Likewise.
13557
13558 2014-05-13 Richard Biener <rguenther@suse.de>
13559
13560 PR ipa/60973
13561 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
13562 it needs revisiting whether the call still may be tail-called.
13563
13564 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13565
13566 * rtl.def (SYMBOL_REF): Remove middle "0" field.
13567 * rtl.h (block_symbol): Reduce number of fields to 2.
13568 (rtx_def): Add u2.symbol_ref_flags.
13569 (SYMBOL_REF_FLAGS): Use it.
13570 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
13571 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
13572 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
13573 Lower index of SYMBOL_REF_DATA.
13574 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
13575 Print SYMBOL_REF_FLAGS at the same time.
13576 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
13577
13578 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13579
13580 * rtl.def (VAR_LOCATION): Remove "i" field.
13581 * rtl.h (rtx_def): Add u2.var_location_status.
13582 (PAT_VAR_LOCATION_STATUS): Use it.
13583 (gen_rtx_VAR_LOCATION): Declare.
13584 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
13585 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
13586 * var-tracking.c (emit_note_insn_var_location): Remove casts.
13587
13588 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13589
13590 * rtl.def (scratch): Fix outdated comment and remove "0" field.
13591 * gengtype.c (adjust_field_rtx_def): Update accordingly.
13592
13593 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13594
13595 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
13596 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
13597 * rtl.h (rtx_def): Add insn_uid to u2 field.
13598 (RTX_FLAG_CHECK8): Delete in favor of...
13599 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
13600 (INSN_DELETED_P): Update accordingly.
13601 (INSN_UID): Use u2.insn_uid.
13602 (INSN_CHAIN_CODE_P): Define.
13603 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
13604 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
13605 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
13606 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
13607 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
13608 indices accordingly.
13609 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
13610 Update indices for insn-chain rtxes.
13611 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
13612 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
13613 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
13614 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
13615 * combine.c (try_combine): Likewise.
13616 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13617
13618 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13619
13620 * rtl.def (REG): Remove middle field.
13621 * rtl.h (rtx_def): Add orignal_regno to u2.
13622 (ORIGINAL_REGNO): Use it instead of field 1.
13623 (REG_ATTRS): Lower field index accordingly.
13624 * gengtype.c (adjust_field_rtx_def): Remove handling of
13625 ORIGINAL_REGNO. Move REG_ATTRS index down.
13626 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
13627 code that prints the REGNO.
13628
13629 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13630
13631 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
13632 GENERATOR_FILE.
13633
13634 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13635
13636 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
13637
13638 2014-05-13 Bin Cheng <bin.cheng@arm.com>
13639
13640 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
13641 (alloc_iv): Lower base expressions containing ADDR_EXPR.
13642
13643 2014-05-13 Ian Bolton <ian.bolton@arm.com>
13644
13645 * config/aarch64/aarch64-protos.h
13646 (aarch64_hard_regno_caller_save_mode): New prototype.
13647 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
13648 New function.
13649 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
13650
13651 2014-05-13 Christian Bruel <christian.bruel@st.com>
13652
13653 * target.def (mode_switching): New hook vector.
13654 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
13655 (mode_exit, modepriority_to_mode): Likewise.
13656 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
13657 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13658 * target.h: Include tm.h and hard-reg-set.h.
13659 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
13660 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
13661 * doc/tm.texi Regenerate.
13662 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
13663 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13664 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
13665 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
13666 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
13667 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13668 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
13669 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
13670 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
13671 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
13672 (ix86_emit_mode_set): Hookify.
13673 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
13674 Delete.
13675 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13676 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
13677 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
13678 (epiphany_mode_priority_to_mode): Remove declaration.
13679 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
13680 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
13681 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
13682 Likewise.
13683 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
13684 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
13685 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
13686
13687 2014-05-13 Jakub Jelinek <jakub@redhat.com>
13688
13689 PR target/61060
13690 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
13691 is const0_rtx, return immediately. Don't test count == 0 when
13692 it is always true.
13693
13694 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13695
13696 * Makefile.in: add shrink-wrap.o.
13697 * config/i386/i386.c: include "shrink-wrap.h"
13698 * function.c: Likewise.
13699 (requires_stack_frame_p, next_block_for_reg,
13700 move_insn_for_shrink_wrap, prepare_shrink_wrap,
13701 dup_block_and_redirect): Move to shrink-wrap.c
13702 (thread_prologue_and_epilogue_insns): Extract three code segments
13703 as functions in shrink-wrap.c
13704 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
13705 shrink-wrap.h
13706 * shrink-wrap.c: New file.
13707 * shrink-wrap.h: New file.
13708
13709 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
13710
13711 * doc/extend.texi: Reflect current numbers of pragmas. Remove
13712 reference to Solaris.
13713
13714 2014-05-12 Mike Stump <mikestump@comcast.net>
13715
13716 PR other/31778
13717 * genattrtab.c (filename): Add.
13718 (convert_set_attr_alternative): Improve error message.
13719 (check_defs): Restore read_md_filename for error messages.
13720 (gen_insn): Save filename.
13721
13722 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
13723
13724 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
13725 -fno-local-ivars and -fivar-visibility.
13726 * c-family/c.opt: Make -Wshadow also implicitly enable
13727 -Wshadow-ivar.
13728
13729 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
13730
13731 * doc/tm.texi: Remove reference to deleted macro.
13732 * doc/tm.texi.in: Likewise.
13733
13734 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13735
13736 PR target/60991
13737 * config/avr/avr.c (avr_out_store_psi): Use correct constant
13738 to restore Y.
13739
13740 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
13741
13742 PR libgcc/61152
13743 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
13744 * config/arm/aout.h (License): Same.
13745 * config/arm/bpabi.h (License): Same.
13746 * config/arm/elf.h (License): Same.
13747 * config/arm/linux-elf.h (License): Same.
13748 * config/arm/linux-gas.h (License): Same.
13749 * config/arm/netbsd-elf.h (License): Same.
13750 * config/arm/uclinux-eabi.h (License): Same.
13751 * config/arm/uclinux-elf.h (License): Same.
13752 * config/arm/vxworks.h (License): Same.
13753
13754 2014-05-11 Jakub Jelinek <jakub@redhat.com>
13755
13756 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
13757 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
13758 number of operands to 3.
13759 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
13760 * tree-nested.c (convert_nonlocal_omp_clauses,
13761 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
13762 * gimplify.c (gimplify_scan_omp_clauses): Handle
13763 OMP_CLAUSE_LINEAR_STMT.
13764 * omp-low.c (lower_rec_input_clauses): Fix typo.
13765 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
13766 cast between Fortran boolean_type_node and C _Bool if
13767 needed.
13768
13769 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
13770
13771 PR tree-optimization/61136
13772 * wide-int.h (multiple_of_p): Define a version that doesn't return
13773 the quotient.
13774 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
13775 integer_zerop/const_binop pair.
13776 (multiple_of_p): Likewise, converting both operands to widest_int
13777 precision.
13778
13779 2014-05-09 Teresa Johnson <tejohnson@google.com>
13780
13781 * cgraphunit.c (analyze_functions): Use correct dump file.
13782
13783 2014-05-09 Florian Weimer <fweimer@redhat.com>
13784
13785 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
13786 expand_used_vars.
13787 (stack_protect_return_slot_p): New function.
13788 (expand_used_vars): Call stack_protect_decl_p and
13789 stack_protect_return_slot_p for -fstack-protector-strong.
13790
13791 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
13792 Andrew Haley <aph@redhat.com>
13793 Richard Sandiford <rdsandiford@googlemail.com>
13794
13795 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
13796 pages.
13797
13798 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
13799
13800 PR middle-end/61111
13801 * fold-const.c (fold_binary_loc): Changed width of mask.
13802
13803 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
13804
13805 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
13806 unsigned int initializers for regno_in, regno_out.
13807
13808 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
13809
13810 PR target/61055
13811 * config/avr/avr.md (cc): Add new attribute set_vzn.
13812 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
13813 Set cc insn attribute to set_vzn instead of set_zn for alternatives
13814 with INC, DEC or NEG.
13815 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
13816 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
13817 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
13818
13819 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13820
13821 Revert:
13822 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13823
13824 * wide-int.cc (UTItype): Define.
13825 (UDWtype): Define for appropriate W_TYPE_SIZE.
13826
13827 2014-05-09 Richard Biener <rguenther@suse.de>
13828
13829 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
13830 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
13831 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
13832 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
13833 ssa_propagate): Adjust.
13834
13835 2014-05-08 Jeff Law <law@redhat.com>
13836
13837 PR tree-optimization/61009
13838 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
13839 tri-state rather than a boolean. When a block is too big to
13840 thread through, inform caller via negative return value.
13841 (thread_across_edge): If a block was too big for normal threading,
13842 then it's too big for a joiner too, so remove temporary equivalences
13843 and return immediately.
13844
13845 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13846 Matthias Klose <doko@ubuntu.com>
13847
13848 PR driver/61106
13849 * optc-gen.awk: Fix option handling for -Wunused-parameter.
13850
13851 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
13852
13853 PR target/59952
13854 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
13855
13856 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
13857
13858 PR target/61092
13859 * config/alpha/alpha.c: Include gimple-iterator.h.
13860 (alpha_gimple_fold_builtin): New function. Move
13861 ALPHA_BUILTIN_UMULH folding from ...
13862 (alpha_fold_builtin): ... here.
13863 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
13864
13865 2014-05-08 Wei Mi <wmi@google.com>
13866
13867 PR target/58066
13868 * config/i386/i386.c (ix86_compute_frame_layout): Update
13869 preferred_stack_boundary for call, expanded from tls descriptor.
13870 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
13871 to depend on SP register.
13872 (*tls_local_dynamic_base_32_gnu): Ditto.
13873 (*tls_local_dynamic_32_once): Ditto.
13874 (tls_global_dynamic_64_<mode>): Set
13875 ix86_tls_descriptor_calls_expanded_in_cfun.
13876 (tls_local_dynamic_base_64_<mode>): Ditto.
13877 (tls_global_dynamic_32): Set
13878 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
13879 to depend on SP register.
13880 (tls_local_dynamic_base_32): Ditto.
13881
13882 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13883
13884 * config/arm/arm_neon.h: Update comment.
13885 * config/arm/neon-docgen.ml: Delete.
13886 * config/arm/neon-gen.ml: Delete.
13887 * doc/arm-neon-intrinsics.texi: Update comment.
13888
13889 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13890
13891 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
13892 and v4sf versions.
13893 (vand, vorr, veor, vorn, vbic): Remove.
13894 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
13895 iterator.
13896 (neon_vsub_unspec): Likewise.
13897 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
13898
13899 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13900
13901 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
13902 (vadd_s16): Likewise.
13903 (vadd_s32): Likewise.
13904 (vadd_f32): Likewise.
13905 (vadd_u8): Likewise.
13906 (vadd_u16): Likewise.
13907 (vadd_u32): Likewise.
13908 (vadd_s64): Likewise.
13909 (vadd_u64): Likewise.
13910 (vaddq_s8): Likewise.
13911 (vaddq_s16): Likewise.
13912 (vaddq_s32): Likewise.
13913 (vaddq_s64): Likewise.
13914 (vaddq_f32): Likewise.
13915 (vaddq_u8): Likewise.
13916 (vaddq_u16): Likewise.
13917 (vaddq_u32): Likewise.
13918 (vaddq_u64): Likewise.
13919 (vmul_s8): Likewise.
13920 (vmul_s16): Likewise.
13921 (vmul_s32): Likewise.
13922 (vmul_f32): Likewise.
13923 (vmul_u8): Likewise.
13924 (vmul_u16): Likewise.
13925 (vmul_u32): Likewise.
13926 (vmul_p8): Likewise.
13927 (vmulq_s8): Likewise.
13928 (vmulq_s16): Likewise.
13929 (vmulq_s32): Likewise.
13930 (vmulq_f32): Likewise.
13931 (vmulq_u8): Likewise.
13932 (vmulq_u16): Likewise.
13933 (vmulq_u32): Likewise.
13934 (vsub_s8): Likewise.
13935 (vsub_s16): Likewise.
13936 (vsub_s32): Likewise.
13937 (vsub_f32): Likewise.
13938 (vsub_u8): Likewise.
13939 (vsub_u16): Likewise.
13940 (vsub_u32): Likewise.
13941 (vsub_s64): Likewise.
13942 (vsub_u64): Likewise.
13943 (vsubq_s8): Likewise.
13944 (vsubq_s16): Likewise.
13945 (vsubq_s32): Likewise.
13946 (vsubq_s64): Likewise.
13947 (vsubq_f32): Likewise.
13948 (vsubq_u8): Likewise.
13949 (vsubq_u16): Likewise.
13950 (vsubq_u32): Likewise.
13951 (vsubq_u64): Likewise.
13952 (vand_s8): Likewise.
13953 (vand_s16): Likewise.
13954 (vand_s32): Likewise.
13955 (vand_u8): Likewise.
13956 (vand_u16): Likewise.
13957 (vand_u32): Likewise.
13958 (vand_s64): Likewise.
13959 (vand_u64): Likewise.
13960 (vandq_s8): Likewise.
13961 (vandq_s16): Likewise.
13962 (vandq_s32): Likewise.
13963 (vandq_s64): Likewise.
13964 (vandq_u8): Likewise.
13965 (vandq_u16): Likewise.
13966 (vandq_u32): Likewise.
13967 (vandq_u64): Likewise.
13968 (vorr_s8): Likewise.
13969 (vorr_s16): Likewise.
13970 (vorr_s32): Likewise.
13971 (vorr_u8): Likewise.
13972 (vorr_u16): Likewise.
13973 (vorr_u32): Likewise.
13974 (vorr_s64): Likewise.
13975 (vorr_u64): Likewise.
13976 (vorrq_s8): Likewise.
13977 (vorrq_s16): Likewise.
13978 (vorrq_s32): Likewise.
13979 (vorrq_s64): Likewise.
13980 (vorrq_u8): Likewise.
13981 (vorrq_u16): Likewise.
13982 (vorrq_u32): Likewise.
13983 (vorrq_u64): Likewise.
13984 (veor_s8): Likewise.
13985 (veor_s16): Likewise.
13986 (veor_s32): Likewise.
13987 (veor_u8): Likewise.
13988 (veor_u16): Likewise.
13989 (veor_u32): Likewise.
13990 (veor_s64): Likewise.
13991 (veor_u64): Likewise.
13992 (veorq_s8): Likewise.
13993 (veorq_s16): Likewise.
13994 (veorq_s32): Likewise.
13995 (veorq_s64): Likewise.
13996 (veorq_u8): Likewise.
13997 (veorq_u16): Likewise.
13998 (veorq_u32): Likewise.
13999 (veorq_u64): Likewise.
14000 (vbic_s8): Likewise.
14001 (vbic_s16): Likewise.
14002 (vbic_s32): Likewise.
14003 (vbic_u8): Likewise.
14004 (vbic_u16): Likewise.
14005 (vbic_u32): Likewise.
14006 (vbic_s64): Likewise.
14007 (vbic_u64): Likewise.
14008 (vbicq_s8): Likewise.
14009 (vbicq_s16): Likewise.
14010 (vbicq_s32): Likewise.
14011 (vbicq_s64): Likewise.
14012 (vbicq_u8): Likewise.
14013 (vbicq_u16): Likewise.
14014 (vbicq_u32): Likewise.
14015 (vbicq_u64): Likewise.
14016 (vorn_s8): Likewise.
14017 (vorn_s16): Likewise.
14018 (vorn_s32): Likewise.
14019 (vorn_u8): Likewise.
14020 (vorn_u16): Likewise.
14021 (vorn_u32): Likewise.
14022 (vorn_s64): Likewise.
14023 (vorn_u64): Likewise.
14024 (vornq_s8): Likewise.
14025 (vornq_s16): Likewise.
14026 (vornq_s32): Likewise.
14027 (vornq_s64): Likewise.
14028 (vornq_u8): Likewise.
14029 (vornq_u16): Likewise.
14030 (vornq_u32): Likewise.
14031 (vornq_u64): Likewise.
14032
14033 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14034
14035 * wide-int.cc (UTItype): Define.
14036 (UDWtype): Define for appropriate W_TYPE_SIZE.
14037
14038 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
14039
14040 PR tree-optimization/59100
14041 * tree-ssa-phiopt.c: Include tree-inline.h.
14042 (neutral_element_p, absorbing_element_p): New functions.
14043 (value_replacement): Handle conditional binary operations with a
14044 neutral or absorbing element.
14045
14046 2014-05-08 Richard Biener <rguenther@suse.de>
14047
14048 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
14049 folding the expression.
14050 (valueize_expr): Remove.
14051 (visit_reference_op_load): Do not valueize the result of
14052 vn_get_expr_for.
14053 (simplify_binary_expression): Likewise.
14054 (simplify_unary_expression): Likewise.
14055
14056 2014-05-08 Richard Biener <rguenther@suse.de>
14057
14058 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
14059 looking at TYPE_ARG_TYPES.
14060
14061 2014-05-08 Richard Biener <rguenther@suse.de>
14062
14063 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14064 pointer propagation special-case.
14065
14066 2014-05-08 Bin Cheng <bin.cheng@arm.com>
14067
14068 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
14069 core part of address expressions.
14070
14071 2014-05-08 Alan Modra <amodra@gmail.com>
14072
14073 PR target/60737
14074 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
14075 loads and stores when -mno-strict-align at any alignment.
14076 (expand_block_clear): Similarly. Also correct calculation of
14077 instruction count.
14078
14079 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14080
14081 PR middle-end/39246
14082 * tree-complex.c (expand_complex_move): Keep line info when expanding
14083 complex move.
14084 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
14085 of complex expression. Use new argument to display correct location
14086 for values coming from phi statement.
14087 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
14088 (warn_uninitialized_phi): Pass location of phi argument to
14089 warn_uninit.
14090 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
14091 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
14092
14093 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14094
14095 * config/rs6000/predicates.md (indexed_address_mem): New.
14096 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
14097 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
14098 fpstore_ux, fpstore_u.
14099 (sign_extend, indexed, update): New.
14100 (cell_micro): Adjust.
14101 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
14102 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
14103 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
14104 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
14105 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
14106 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
14107 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
14108 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
14109 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
14110 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
14111 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
14112 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
14113 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
14114 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
14115 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
14116
14117 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
14118 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
14119 *vsx_extract_<mode>_store): Adjust.
14120 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
14121 is_cracked_insn, insn_must_be_first_in_group,
14122 insn_must_be_last_in_group): Adjust.
14123
14124 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
14125 Adjust.
14126 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
14127 ppc440-fpstore): Adjust.
14128 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
14129 ppc476-fpstore): Adjust.
14130 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
14131 ppc601-fpstore): Adjust.
14132 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
14133 Adjust.
14134 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
14135 Adjust.
14136 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
14137 ppc7450-fpstore): Adjust.
14138 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
14139 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
14140 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
14141 Adjust.
14142 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
14143 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
14144 cell-fpstore, cell-fpstore-update): Adjust.
14145 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
14146 ppce300c3_store, ppce300c3_fpstore): Adjust.
14147 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
14148 e500mc_fpstore): Adjust.
14149 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
14150 e500mc64_store, e500mc64_fpstore): Adjust.
14151 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
14152 e5500_fpstore): Adjust.
14153 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
14154 e6500_fpstore): Adjust.
14155 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
14156 Adjust.
14157 * config/rs6000/power4.md (power4-load, power4-load-ext,
14158 power4-load-ext-update, power4-load-ext-update-indexed,
14159 power4-load-update-indexed, power4-load-update, power4-fpload,
14160 power4-fpload-update, power4-store, power4-store-update,
14161 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
14162 Adjust.
14163 * config/rs6000/power5.md (power5-load, power5-load-ext,
14164 power5-load-ext-update, power5-load-ext-update-indexed,
14165 power5-load-update-indexed, power5-load-update, power5-fpload,
14166 power5-fpload-update, power5-store, power5-store-update,
14167 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
14168 Adjust.
14169 * config/rs6000/power6.md (power6-load, power6-load-ext,
14170 power6-load-update, power6-load-update-indexed,
14171 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
14172 power6-fpload-update, power6-store, power6-store-update,
14173 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
14174 Adjust.
14175 * config/rs6000/power7.md (power7-load, power7-load-ext,
14176 power7-load-update, power7-load-update-indexed,
14177 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
14178 power7-fpload-update, power7-store, power7-store-update,
14179 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
14180 Adjust.
14181 * config/rs6000/power8.md (power8-load, power8-load-update,
14182 power8-load-ext, power8-load-ext-update, power8-fpload,
14183 power8-fpload-update, power8-store, power8-store-update-indexed,
14184 power8-fpstore, power8-fpstore-update): Adjust.
14185 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
14186 Adjust.
14187 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
14188 titan_lsu_store, titan_lsu_fpstore): Adjust.
14189 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
14190
14191 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
14192
14193 PR target/60884
14194 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
14195 unrolled byte insns. Emit address increments after move insns.
14196
14197 2014-05-07 David Malcolm <dmalcolm@redhat.com>
14198
14199 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
14200 const_gimple, rather than a gimple.
14201 (gimple_call_builtin_p): Likewise, for the three variants.
14202
14203 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
14204 (gimple_call_builtin_p): Likewise, for the three variants.
14205
14206 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14207
14208 PR tree-optimization/61095
14209 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
14210
14211 2014-05-07 Richard Biener <rguenther@suse.de>
14212
14213 PR tree-optimization/61034
14214 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
14215 (maybe_skip_until): Use translate to take into account
14216 lattices when trying to do disambiguations.
14217 (get_continuation_for_phi_1): Likewise.
14218 (get_continuation_for_phi): Adjust for added translate arguments.
14219 (walk_non_aliased_vuses): Likewise.
14220 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
14221 (walk_non_aliased_vuses): Likewise.
14222 (call_may_clobber_ref_p_1): Declare.
14223 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
14224 calls. Stop early if we are only supposed to disambiguate.
14225 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
14226
14227 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
14228
14229 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
14230 Emit an error when the function has arguments.
14231
14232 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
14233
14234 * cfgloop.h (unswitch_loops): Remove.
14235 * doc/passes.texi: Remove references to loop-unswitch.c
14236 * timevar.def (TV_LOOP_UNSWITCH): Remove.
14237
14238 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
14239
14240 * tree-vect-data-refs.c (vect_grouped_load_supported): New
14241 check for loads group of length 3.
14242 (vect_permute_load_chain): New permutations for loads group of
14243 length 3.
14244 * tree-vect-stmts.c (vect_model_load_cost): Change cost
14245 of vec_perm_shuffle for the new permutations.
14246
14247 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
14248
14249 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
14250 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
14251 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
14252 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
14253 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
14254 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
14255 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
14256 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
14257
14258 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
14259
14260 * loop-unswitch.c: Delete.
14261
14262 2014-05-07 Richard Biener <rguenther@suse.de>
14263
14264 * config.gcc: Always set need_64bit_hwint to yes.
14265
14266 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
14267
14268 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
14269 of using optimize_size.
14270
14271 2014-05-06 Mike Stump <mikestump@comcast.net>
14272
14273 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
14274
14275 2014-05-06 Joseph Myers <joseph@codesourcery.com>
14276
14277 * config/i386/sse.md (*mov<mode>_internal)
14278 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
14279 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
14280 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
14281 (*<code><mode>3, *andnot<mode>3<mask_name>)
14282 (<mask_codefor><code><mode>3<mask_name>): Only consider
14283 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
14284
14285 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
14286
14287 Revert:
14288 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14289
14290 * lra-constraints.c (valid_address_p): Move earlier in file.
14291 Add a constraint argument to the address_info version.
14292 (satisfies_memory_constraint_p): New function.
14293 (satisfies_address_constraint_p): Likewise.
14294 (process_alt_operands, curr_insn_transform): Use them.
14295 (process_address): Pass the constraint to valid_address_p when
14296 checking address operands.
14297
14298 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
14299
14300 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
14301 to their respective blocks. Fix inadvertent use of "node".
14302
14303 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
14304
14305 * emit-rtl.c (init_derived_machine_modes): New functionm, split
14306 out from...
14307 (init_emit_once): ...here.
14308 * rtl.h (init_derived_machine_modes): Declare.
14309 * toplev.c (do_compile): Call it even if no_backend.
14310
14311 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
14312 Mike Stump <mikestump@comcast.net>
14313 Richard Sandiford <rdsandiford@googlemail.com>
14314 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14315
14316 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
14317 (rtx_equal_for_memref_p): Update comment.
14318 (adjust_offset_for_component_ref): Use wide-int interfaces.
14319 * builtins.c (get_object_alignment_2): Likewise.
14320 (c_readstr): Likewise.
14321 (target_char_cast): Add comment.
14322 (determine_block_size): Use wide-int interfaces.
14323 (expand_builtin_signbit): Likewise.
14324 (fold_builtin_int_roundingfn): Likewise.
14325 (fold_builtin_bitop): Likewise.
14326 (fold_builtin_bswap): Likewise.
14327 (fold_builtin_logarithm): Use signop.
14328 (fold_builtin_pow): Likewise.
14329 (fold_builtin_memory_op): Use wide-int interfaces.
14330 (fold_builtin_object_size): Likewise.
14331 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
14332 nb_iterations_estimate.
14333 (record_niter_bound): Use wide-int interfaces.
14334 (get_estimated_loop_iterations_int): Likewise.
14335 (get_estimated_loop_iterations): Likewise.
14336 (get_max_loop_iterations): Likewise.
14337 * cfgloop.h: Include wide-int.h.
14338 (struct nb_iter_bound): Change bound to widest_int.
14339 (struct loop): Change nb_iterations_upper_bound and
14340 nb_iterations_estimate to widest_int.
14341 (record_niter_bound): Switch to use widest_int.
14342 (get_estimated_loop_iterations): Likewise.
14343 (get_max_loop_iterations): Likewise.
14344 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
14345 update for wide-int.
14346 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
14347 * combine.c (try_combine): Likewise.
14348 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
14349 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
14350 interfaces.
14351 (aarch64_float_const_representable_p): Likewise.
14352 * config/arc/arc.c: Include wide-int.h.
14353 (arc_can_use_doloop_p): Use wide-int interfaces.
14354 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
14355 (vfp3_const_double_index): Likewise.
14356 * config/avr/avr.c (avr_out_round): Likewise.
14357 (avr_fold_builtin): Likewise.
14358 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
14359 (bfin_can_use_doloop_p): Likewise.
14360 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
14361 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
14362 * config/i386/i386.c: Include wide-int.h.
14363 (ix86_data_alignment): Use wide-int interfaces.
14364 (ix86_local_alignment): Likewise.
14365 (ix86_emit_swsqrtsf): Update real_from_integer.
14366 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
14367 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14368 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
14369 (zero_constant): Likewise.
14370 (input_operand): Likewise.
14371 (splat_input_operand): Likewise.
14372 (non_logical_cint_operand): Change const_double to const_wide_int.
14373 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
14374 (easy_altivec_constant): Remove comment.
14375 (paired_expand_vector_init): Use CONSTANT_P.
14376 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
14377 (rs6000_emit_move): Update checks.
14378 (rs6000_aggregate_candidate): Use wide-int interfaces.
14379 (rs6000_expand_ternop_builtin): Likewise.
14380 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
14381 (rs6000_assemble_integer): Likewise.
14382 (rs6000_hash_constant): Likewise.
14383 (output_toc): Likewise.
14384 (rs6000_rtx_costs): Likewise.
14385 (rs6000_emit_swrsqrt); Update call to real_from_integer.
14386 * config/rs6000/rs6000-c.c: Include wide-int.h.
14387 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
14388 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
14389 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
14390 Handle CONST_WIDE_INT.
14391 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
14392 Use tree_fits_uhwi_p.
14393 * config/sparc/sparc.c: Include wide-int.h.
14394 (sparc_fold_builtin): Use wide-int interfaces.
14395 * config/vax/vax.c: Include wide-int.h.
14396 (vax_float_literal): Use real_from_integer.
14397 * coretypes.h (struct hwivec_def): New.
14398 (hwivec): New.
14399 (const_hwivec): New.
14400 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
14401 (equiv_constant): Handle CONST_WIDE_INT.
14402 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
14403 (cselib_hash_rtx): Handle CONST_WIDE_INT.
14404 * dbxout.c (stabstr_U): Use wide-int interfaces.
14405 (dbxout_type): Update to use cst_fits_shwi_p.
14406 * defaults.h (LOG2_BITS_PER_UNIT): Define.
14407 (TARGET_SUPPORTS_WIDE_INT): Add default.
14408 * dfp.c: Include wide-int.h.
14409 (decimal_real_to_integer2): Use wide-int interfaces and rename to
14410 decimal_real_to_integer.
14411 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
14412 decimal_real_to_integer.
14413 * doc/generic.texi (Constant expressions): Update for wide_int.
14414 * doc/rtl.texi (const_double): Likewise.
14415 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
14416 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
14417 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
14418 (REAL_VALUE_FROM_INT): Remove.
14419 (TARGET_SUPPORTS_WIDE_INT): New.
14420 * doc/tm.texi: Regenerate.
14421 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
14422 * double-int.h: Include wide-int.h.
14423 (struct wi::int_traits): New.
14424 * dwarf2out.c (get_full_len): New.
14425 (dw_val_equal_p): Add case dw_val_class_wide_int.
14426 (size_of_loc_descr): Likewise.
14427 (output_loc_operands): Likewise.
14428 (insert_double): Remove.
14429 (insert_wide_int): New.
14430 (add_AT_wide): New.
14431 (print_die): Add case dw_val_class_wide_int.
14432 (attr_checksum): Likewise.
14433 (attr_checksum_ordered): Likewise.
14434 (same_dw_val_p): Likewise.
14435 (size_of_die): Likewise.
14436 (value_format): Likewise.
14437 (output_die): Likewise.
14438 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
14439 Use wide-int.
14440 (clz_loc_descriptor): Use wide-int interfaces.
14441 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
14442 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
14443 (round_up_to_align): Use wide-int interfaces.
14444 (field_byte_offset): Likewise.
14445 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
14446 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
14447 CONST_DOUBLE handling. Use wide-int interfaces.
14448 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
14449 (gen_enumeration_type_die): Use add_AT_wide.
14450 (hash_loc_operands): Add case dw_val_class_wide_int.
14451 (compare_loc_operands): Likewise.
14452 * dwarf2out.h: Include wide-int.h.
14453 (wide_int_ptr): New.
14454 (enum dw_val_class): Add dw_val_class_wide_int.
14455 (struct dw_val_struct): Add val_wide.
14456 * emit-rtl.c (const_wide_int_htab): New.
14457 (const_wide_int_htab_hash): New.
14458 (const_wide_int_htab_eq): New.
14459 (lookup_const_wide_int): New.
14460 (const_double_htab_hash): Use wide-int interfaces.
14461 (const_double_htab_eq): Likewise.
14462 (rtx_to_double_int): Conditionally compile for wide-int.
14463 (immed_double_int_const): Rename to immed_wide_int_const and
14464 update for wide-int.
14465 (immed_double_const): Conditionally compile for wide-int.
14466 (init_emit_once): Use wide-int interfaces.
14467 * explow.c (plus_constant): Likewise.
14468 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
14469 (lshift_value): Use wide-int interfaces.
14470 (expand_mult): Likewise.
14471 (choose_multiplier): Likewise.
14472 (expand_smod_pow2): Likewise.
14473 (make_tree): Likewise.
14474 * expr.c (convert_modes): Consolidate handling of constants.
14475 Use wide-int interfaces.
14476 (emit_group_load_1): Add note.
14477 (store_expr): Update comment.
14478 (get_inner_reference): Use wide-int interfaces.
14479 (expand_constructor): Update comment.
14480 (expand_expr_real_2): Use wide-int interfaces.
14481 (expand_expr_real_1): Likewise.
14482 (reduce_to_bit_field_precision): Likewise.
14483 (const_vector_from_tree): Likewise.
14484 * final.c: Include wide-int-print.h.
14485 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
14486 * fixed-value.c: Include wide-int.h.
14487 (fixed_from_string): Use wide-int interfaces.
14488 (fixed_to_decimal): Likewise.
14489 (fixed_convert_from_real): Likewise.
14490 (real_convert_from_fixed): Likewise.
14491 * fold-const.h (mem_ref_offset): Return an offset_int.
14492 (div_if_zero_remainder): Remove code parameter.
14493 * fold-const.c (div_if_zero_remainder): Remove code parameter.
14494 Use wide-int interfaces.
14495 (may_negate_without_overflow_p): Use wide-int interfaces.
14496 (negate_expr_p): Likewise.
14497 (fold_negate_expr): Likewise.
14498 (int_const_binop_1): Likewise.
14499 (const_binop): Likewise.
14500 (fold_convert_const_int_from_int): Likewise.
14501 (fold_convert_const_int_from_real): Likewise.
14502 (fold_convert_const_int_from_fixed): Likewise.
14503 (fold_convert_const_fixed_from_int): Likewise.
14504 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
14505 (sign_bit_p): Use wide-int interfaces.
14506 (make_range_step): Likewise.
14507 (build_range_check): Likewise. Pass an integer of the correct type
14508 instead of using integer_one_node.
14509 (range_predecessor): Pass an integer of the correct type instead
14510 of using integer_one_node.
14511 (range_successor): Likewise.
14512 (merge_ranges): Likewise.
14513 (unextend): Use wide-int interfaces.
14514 (extract_muldiv_1): Likewise.
14515 (fold_div_compare): Likewise.
14516 (fold_single_bit_test): Likewise.
14517 (fold_sign_changed_comparison): Likewise.
14518 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
14519 (fold_plusminus_mult_expr): Use wide-int interfaces.
14520 (native_encode_int): Likewise.
14521 (native_interpret_int): Likewise.
14522 (fold_unary_loc): Likewise.
14523 (pointer_may_wrap_p): Likewise.
14524 (size_low_cst): Likewise.
14525 (mask_with_tz): Likewise.
14526 (fold_binary_loc): Likewise.
14527 (fold_ternary_loc): Likewise.
14528 (multiple_of_p): Likewise.
14529 (tree_call_nonnegative_warnv_p): Update calls to
14530 tree_int_cst_min_precision and real_from_integer.
14531 (fold_negate_const): Use wide-int interfaces.
14532 (fold_abs_const): Likewise.
14533 (fold_relational_const): Use tree_int_cst_lt.
14534 (round_up_loc): Use wide-int interfaces.
14535 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
14536 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
14537 * gengtype.c: Remove include of double-int.h.
14538 (do_typedef): Use wide-int interfaces.
14539 (open_base_files): Add wide-int.h.
14540 (main): Add offset_int and widest_int typedefs.
14541 * gengtype-lex.l: Handle "^".
14542 (CXX_KEYWORD): Add "static".
14543 * gengtype-parse.c (require3): New.
14544 (require_template_declaration): Handle constant template arguments
14545 and nested templates.
14546 * gengtype-state.c: Don't include "double-int.h".
14547 * genpreds.c (write_one_predicate_function): Update comment.
14548 (write_tm_constrs_h): Add check for hval and lval use in
14549 CONST_WIDE_INT.
14550 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
14551 (add_to_sequence): Likewise.
14552 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
14553 and const_double_operand.
14554 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
14555 interfaces.
14556 * gimple-fold.c (get_base_constructor): Likewise.
14557 (fold_array_ctor_reference): Likewise.
14558 (fold_nonarray_ctor_reference): Likewise.
14559 (fold_const_aggregate_ref_1): Likewise.
14560 (gimple_val_nonnegative_real_p): Likewise.
14561 (gimple_fold_indirect_ref): Likewise.
14562 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
14563 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
14564 (struct slsr_cand_d): Change index to be widest_int.
14565 (struct incr_info_d): Change incr to be widest_int.
14566 (alloc_cand_and_find_basis): Use wide-int interfaces.
14567 (slsr_process_phi): Likewise.
14568 (backtrace_base_for_ref): Likewise. Return a widest_int.
14569 (restructure_reference): Take a widest_int instead of a double_int.
14570 (slsr_process_ref): Use wide-int interfaces.
14571 (create_mul_ssa_cand): Likewise.
14572 (create_mul_imm_cand): Likewise.
14573 (create_add_ssa_cand): Likewise.
14574 (create_add_imm_cand): Take a widest_int instead of a double_int.
14575 (slsr_process_add): Use wide-int interfaces.
14576 (slsr_process_cast): Likewise.
14577 (slsr_process_copy): Likewise.
14578 (dump_candidate): Likewise.
14579 (dump_incr_vec): Likewise.
14580 (replace_ref): Likewise.
14581 (cand_increment): Likewise. Return a widest_int.
14582 (cand_abs_increment): Likewise.
14583 (replace_mult_candidate): Take a widest_int instead of a double_int.
14584 (replace_unconditional_candidate): Use wide-int interfaces.
14585 (incr_vec_index): Take a widest_int instead of a double_int.
14586 (create_add_on_incoming_edge): Likewise.
14587 (create_phi_basis): Use wide-int interfaces.
14588 (replace_conditional_candidate): Likewise.
14589 (record_increment): Take a widest_int instead of a double_int.
14590 (record_phi_increments): Use wide-int interfaces.
14591 (phi_incr_cost): Take a widest_int instead of a double_int.
14592 (lowest_cost_path): Likewise.
14593 (total_savings): Likewise.
14594 (analyze_increments): Use wide-int interfaces.
14595 (ncd_with_phi): Take a widest_int instead of a double_int.
14596 (ncd_of_cand_and_phis): Likewise.
14597 (nearest_common_dominator_for_cands): Likewise.
14598 (insert_initializers): Use wide-int interfaces.
14599 (all_phi_incrs_profitable): Likewise.
14600 (replace_one_candidate): Likewise.
14601 (replace_profitable_candidates): Likewise.
14602 * godump.c: Include wide-int-print.h.
14603 (go_output_typedef): Use wide-int interfaces.
14604 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
14605 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
14606 (build_loop_iteration_domains): Likewise.
14607 * hooks.h: Include wide-int.h rather than double-int.h.
14608 (hook_bool_dint_dint_uint_bool_true): Delete.
14609 (hook_bool_wint_wint_uint_bool_true): Declare.
14610 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
14611 (hook_bool_wint_wint_uint_bool_true): New.
14612 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
14613 interfaces.
14614 (ubsan_expand_si_overflow_mul_check): Likewise.
14615 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
14616 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
14617 (get_ancestor_addr_info): Likewise.
14618 (ipa_modify_call_arguments): Likewise.
14619 * loop-doloop.c (doloop_modify): Likewise.
14620 (doloop_optimize): Likewise.
14621 * loop-iv.c (iv_number_of_iterations): Likewise.
14622 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
14623 (unroll_loop_constant_iterations): Likewise.
14624 (decide_unroll_runtime_iterations): Likewise.
14625 (unroll_loop_runtime_iterations): Likewise.
14626 (decide_peel_simple): Likewise.
14627 (decide_unroll_stupid): Likewise.
14628 * lto-streamer-in.c (streamer_read_wi): Add.
14629 (input_cfg): Use wide-int interfaces.
14630 (lto_input_tree_1): Likewise.
14631 * lto-streamer-out.c (streamer_write_wi): Add.
14632 (hash_tree): Use wide-int interfaces.
14633 (output_cfg): Likewise.
14634 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
14635 (GTFILES): Add wide-int.h and signop.h.
14636 (TAGS): Look for .cc files too.
14637 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
14638 * optabs.c (expand_subword_shift): Likewise.
14639 (expand_doubleword_shift): Likewise.
14640 (expand_absneg_bit): Likewise.
14641 (expand_copysign_absneg): Likewise.
14642 (expand_copysign_bit): Likewise.
14643 * postreload.c (reload_cse_simplify_set): Likewise.
14644 * predict.c (predict_iv_comparison): Likewise.
14645 * pretty-print.h: Include wide-int-print.h.
14646 (pp_wide_int) New.
14647 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
14648 * print-tree.c: Include wide-int-print.h.
14649 (print_node_brief): Use wide-int interfaces.
14650 (print_node): Likewise.
14651 * read-rtl.c (validate_const_wide_int): New.
14652 (read_rtx_code): Add CONST_WIDE_INT case.
14653 * real.c: Include wide-int.h.
14654 (real_to_integer2): Delete.
14655 (real_to_integer): New function, returning a wide_int.
14656 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
14657 (ten_to_ptwo): Update call to real_from_integer.
14658 (real_digit): Likewise.
14659 * real.h: Include signop.h, wide-int.h and insn-modes.h.
14660 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
14661 (REAL_VALUE_TO_INT): Delete.
14662 (real_to_integer): Declare a wide-int form.
14663 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
14664 * recog.c (const_int_operand): Improve comment.
14665 (const_scalar_int_operand): New.
14666 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
14667 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
14668 (split_double): Likewise.
14669 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
14670 (rtx_size): Likewise.
14671 (rtx_alloc_stat_v): New.
14672 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
14673 (cwi_output_hex): New.
14674 (iterative_hash_rtx): Handle CONST_WIDE_INT.
14675 (cwi_check_failed_bounds): New.
14676 * rtl.def (CONST_WIDE_INT): New.
14677 * rtl.h: Include <utility> and wide-int.h.
14678 (struct hwivec_def): New.
14679 (CWI_GET_NUM_ELEM): New.
14680 (CWI_PUT_NUM_ELEM): New.
14681 (struct rtx_def): Add num_elem and hwiv.
14682 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
14683 (CASE_CONST_UNIQUE): Likewise.
14684 (CASE_CONST_ANY): Likewise.
14685 (CONST_SCALAR_INT_P): Likewise.
14686 (CONST_WIDE_INT_P): New.
14687 (CWI_ELT): New.
14688 (HWIVEC_CHECK): New.
14689 (cwi_check_failed_bounds): New.
14690 (CWI_ELT): New.
14691 (HWIVEC_CHECK): New.
14692 (CONST_WIDE_INT_VEC) New.
14693 (CONST_WIDE_INT_NUNITS) New.
14694 (CONST_WIDE_INT_ELT) New.
14695 (rtx_mode_t): New type.
14696 (wi::int_traits <rtx_mode_t>): New.
14697 (wi::shwi): New.
14698 (wi::min_value): New.
14699 (wi::max_value): New.
14700 (rtx_alloc_v) New.
14701 (const_wide_int_alloc): New.
14702 (immed_wide_int_const): New.
14703 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
14704 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
14705 * signop.h: New file.
14706 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
14707 (simplify_const_unary_operation): Use wide-int interfaces.
14708 (simplify_binary_operation_1): Likewise.
14709 (simplify_const_binary_operation): Likewise.
14710 (simplify_const_relational_operation): Likewise.
14711 (simplify_immed_subreg): Likewise.
14712 * stmt.c (expand_case): Likewise.
14713 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
14714 signop rather than a bool.
14715 * stor-layout.c (layout_type): Use wide-int interfaces.
14716 (initialize_sizetypes): Update calls to
14717 set_min_and_max_values_for_integral_type.
14718 (set_min_and_max_values_for_integral_type): Take a signop rather
14719 than a bool. Use wide-int interfaces.
14720 (fixup_signed_type): Update accordingly. Remove
14721 HOST_BITS_PER_DOUBLE_INT limit.
14722 (fixup_unsigned_type): Likewise.
14723 * system.h (STATIC_CONSTANT_P): New.
14724 (STATIC_ASSERT): New.
14725 * target.def (can_use_doloop_p): Take widest_ints rather than
14726 double_ints.
14727 * target.h: Include wide-int.h rather than double-int.h.
14728 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
14729 than double_ints.
14730 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
14731 rather than INT_CST_LT_UNSIGNED.
14732 (can_use_doloop_if_innermost): Take widest_ints rather than
14733 double_ints.
14734 * tree-affine.c: Include wide-int-print.h.
14735 (double_int_ext_for_comb): Delete.
14736 (wide_int_ext_for_comb): New.
14737 (aff_combination_zero): Use wide-int interfaces.
14738 (aff_combination_const): Take a widest_int instead of a double_int.
14739 (aff_combination_elt): Use wide-int interfaces.
14740 (aff_combination_scale): Take a widest_int instead of a double_int.
14741 (aff_combination_add_elt): Likewise.
14742 (aff_combination_add_cst): Likewise.
14743 (aff_combination_add): Use wide-int interfaces.
14744 (aff_combination_convert): Likewise.
14745 (tree_to_aff_combination): Likewise.
14746 (add_elt_to_tree): Take a widest_int instead of a double_int.
14747 (aff_combination_to_tree): Use wide-int interfaces.
14748 (aff_combination_remove_elt): Likewise.
14749 (aff_combination_add_product): Take a widest_int instead of
14750 a double_int.
14751 (aff_combination_mult): Use wide-int interfaces.
14752 (aff_combination_expand): Likewise.
14753 (double_int_constant_multiple_p): Delete.
14754 (wide_int_constant_multiple_p): New.
14755 (aff_combination_constant_multiple_p): Take a widest_int pointer
14756 instead of a double_int pointer.
14757 (print_aff): Use wide-int interfaces.
14758 (get_inner_reference_aff): Take a widest_int pointer
14759 instead of a double_int pointer.
14760 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
14761 * tree-affine.h: Include wide-int.h.
14762 (struct aff_comb_elt): Change type of coef to widest_int.
14763 (struct affine_tree_combination): Change type of offset to widest_int.
14764 (double_int_ext_for_comb): Delete.
14765 (wide_int_ext_for_comb): New.
14766 (aff_combination_const): Use widest_int instead of double_int.
14767 (aff_combination_scale): Likewise.
14768 (aff_combination_add_elt): Likewise.
14769 (aff_combination_constant_multiple_p): Likewise.
14770 (get_inner_reference_aff): Likewise.
14771 (aff_comb_cannot_overlap_p): Likewise.
14772 (aff_combination_zero_p): Use wide-int interfaces.
14773 * tree.c: Include tree.h.
14774 (init_ttree): Use make_int_cst.
14775 (tree_code_size): Removed code for INTEGER_CST case.
14776 (tree_size): Add INTEGER_CST case.
14777 (make_node_stat): Update comment.
14778 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
14779 (build_int_cst_type): Use wide-int interfaces.
14780 (double_int_to_tree): Likewise.
14781 (double_int_fits_to_tree_p): Delete.
14782 (force_fit_type_double): Delete.
14783 (force_fit_type): New.
14784 (int_cst_hash_hash): Use wide-int interfaces.
14785 (int_cst_hash_eq): Likewise.
14786 (build_int_cst_wide): Delete.
14787 (wide_int_to_tree): New.
14788 (cache_integer_cst): Use wide-int interfaces.
14789 (build_low_bits_mask): Likewise.
14790 (cst_and_fits_in_hwi): Likewise.
14791 (real_value_from_int_cst): Likewise.
14792 (make_int_cst_stat): New.
14793 (integer_zerop): Use wide_int interfaces.
14794 (integer_onep): Likewise.
14795 (integer_all_onesp): Likewise.
14796 (integer_pow2p): Likewise.
14797 (integer_nonzerop): Likewise.
14798 (tree_log2): Likewise.
14799 (tree_floor_log2): Likewise.
14800 (tree_ctz): Likewise.
14801 (int_size_in_bytes): Likewise.
14802 (mem_ref_offset): Return an offset_int rather than a double_int.
14803 (build_type_attribute_qual_variant): Use wide_int interfaces.
14804 (type_hash_eq): Likewise
14805 (tree_int_cst_equal): Likewise.
14806 (tree_int_cst_lt): Delete.
14807 (tree_int_cst_compare): Likewise.
14808 (tree_fits_shwi_p): Use wide_int interfaces.
14809 (tree_fits_uhwi_p): Likewise.
14810 (tree_int_cst_sign_bit): Likewise.
14811 (tree_int_cst_sgn): Likewise.
14812 (tree_int_cst_min_precision): Take a signop rather than a bool.
14813 (simple_cst_equal): Use wide_int interfaces.
14814 (compare_tree_int): Likewise.
14815 (iterative_hash_expr): Likewise.
14816 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
14817 INT_CST_LT.
14818 (get_type_static_bounds): Use wide_int interfaces.
14819 (tree_int_cst_elt_check_failed): New.
14820 (build_common_tree_nodes): Reordered to set prec before filling in
14821 value.
14822 (int_cst_value): Check cst_and_fits_in_hwi.
14823 (widest_int_cst_value): Use wide_int interfaces.
14824 (upper_bound_in_type): Likewise.
14825 (lower_bound_in_type): Likewise.
14826 (num_ending_zeros): Likewise.
14827 (drop_tree_overflow): Likewise.
14828 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
14829 (gen_conditions_for_pow_cst_base): Likewise.
14830 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
14831 (group_case_labels_stmt): Use wide-int interfaces.
14832 (verify_gimple_assign_binary): Likewise.
14833 (print_loop): Likewise.
14834 * tree-chrec.c (tree_fold_binomial): Likewise.
14835 * tree-core.h (struct tree_base): Add int_length.
14836 (struct tree_int_cst): Change rep of value.
14837 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
14838 (dr_may_alias_p): Likewise.
14839 (max_stmt_executions_tree): Likewise.
14840 * tree.def (INTEGER_CST): Update comment.
14841 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
14842 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
14843 * tree-dump.c: Include wide-int.h and wide-int-print.h.
14844 (dequeue_and_dump): Use wide-int interfaces.
14845 * tree.h: Include wide-int.h.
14846 (NULL_TREE): Moved to earlier loc in file.
14847 (TREE_INT_CST_ELT_CHECK): New.
14848 (tree_int_cst_elt_check_failed): New.
14849 (TYPE_SIGN): New.
14850 (TREE_INT_CST): Delete.
14851 (TREE_INT_CST_LOW): Use wide-int interfaces.
14852 (TREE_INT_CST_HIGH): Delete.
14853 (TREE_INT_CST_NUNITS): New.
14854 (TREE_INT_CST_EXT_NUNITS): Likewise.
14855 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
14856 (TREE_INT_CST_ELT): Likewise.
14857 (INT_CST_LT): Delete.
14858 (tree_int_cst_elt_check): New (two forms).
14859 (type_code_size): Update comment.
14860 (make_int_cst_stat, make_int_cst): New.
14861 (tree_to_double_int): Delete.
14862 (double_int_fits_to_tree_p): Delete.
14863 (force_fit_type_double): Delete.
14864 (build_int_cstu): Replace with out-of-line function.
14865 (build_int_cst_wide): Delete.
14866 (tree_int_cst_lt): Define inline.
14867 (tree_int_cst_le): New.
14868 (tree_int_cst_compare): Define inline.
14869 (tree_int_cst_min_precision): Take a signop rather than a bool.
14870 (wi::int_traits <const_tree>): New.
14871 (wi::int_traits <tree>): New.
14872 (wi::extended_tree): New.
14873 (wi::int_traits <wi::extended_tree>): New.
14874 (wi::to_widest): New.
14875 (wi::to_offset): New.
14876 (wi::fits_to_tree_p): New.
14877 (wi::min_value): New.
14878 (wi::max_value): New.
14879 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
14880 (copy_tree_body_r): Likewise.
14881 * tree-object-size.c (compute_object_offset): Likewise.
14882 (addr_object_size): Likewise.
14883 * tree-predcom.c: Include wide-int-print.h.
14884 (struct dref_d): Change type of offset to widest_int.
14885 (dump_dref): Call wide-int printer.
14886 (aff_combination_dr_offset): Use wide-int interfaces.
14887 (determine_offset): Take a widest_int pointer rather than a
14888 double_int pointer.
14889 (split_data_refs_to_components): Use wide-int interfaces.
14890 (suitable_component_p): Likewise.
14891 (order_drefs): Likewise.
14892 (add_ref_to_chain): Likewise.
14893 (valid_initializer_p): Likewise.
14894 (determine_roots_comp): Likewise.
14895 * tree-pretty-print.c: Include wide-int-print.h.
14896 (dump_generic_node): Use wide-int interfaces.
14897 * tree-sra.c (sra_ipa_modify_expr): Likewise.
14898 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14899 (move_fixed_address_to_symbol): Likewise.
14900 (move_hint_to_base): Likewise.
14901 (move_pointer_to_base): Likewise.
14902 (move_variant_to_index): Likewise.
14903 (most_expensive_mult_to_index): Likewise.
14904 (addr_to_parts): Likewise.
14905 (copy_ref_info): Likewise.
14906 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14907 (indirect_refs_may_alias_p): Likewise.
14908 (stmt_kills_ref_p_1): Likewise.
14909 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
14910 * tree-ssa-ccp.c: Update comment at top of file. Include
14911 wide-int-print.h.
14912 (struct prop_value_d): Change type of mask to widest_int.
14913 (extend_mask): New function.
14914 (dump_lattice_value): Use wide-int interfaces.
14915 (get_default_value): Likewise.
14916 (set_constant_value): Likewise.
14917 (set_value_varying): Likewise.
14918 (valid_lattice_transition): Likewise.
14919 (set_lattice_value): Likewise.
14920 (value_to_double_int): Delete.
14921 (value_to_wide_int): New.
14922 (get_value_from_alignment): Use wide-int interfaces.
14923 (get_value_for_expr): Likewise.
14924 (do_dbg_cnt): Likewise.
14925 (ccp_finalize): Likewise.
14926 (ccp_lattice_meet): Likewise.
14927 (bit_value_unop_1): Use widest_ints rather than double_ints.
14928 (bit_value_binop_1): Likewise.
14929 (bit_value_unop): Use wide-int interfaces.
14930 (bit_value_binop): Likewise.
14931 (bit_value_assume_aligned): Likewise.
14932 (evaluate_stmt): Likewise.
14933 (ccp_fold_stmt): Likewise.
14934 (visit_cond_stmt): Likewise.
14935 (ccp_visit_stmt): Likewise.
14936 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14937 (constant_pointer_difference): Likewise.
14938 (associate_pointerplus): Likewise.
14939 (combine_conversions): Likewise.
14940 * tree-ssa-loop.h: Include wide-int.h.
14941 (struct tree_niter_desc): Change type of max to widest_int.
14942 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
14943 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
14944 (remove_redundant_iv_tests): Likewise.
14945 (canonicalize_loop_induction_variables): Likewise.
14946 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
14947 (constant_multiple_of): Take a widest_int pointer instead of
14948 a double_int pointer.
14949 (get_computation_aff): Use wide-int interfaces.
14950 (ptr_difference_cost): Likewise.
14951 (difference_cost): Likewise.
14952 (get_loop_invariant_expr_id): Likewise.
14953 (get_computation_cost_at): Likewise.
14954 (iv_elimination_compare_lt): Likewise.
14955 (may_eliminate_iv): Likewise.
14956 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
14957 instead of double_int.
14958 (max_loop_iterations): Likewise.
14959 (max_stmt_executions): Likewise.
14960 (estimated_stmt_executions): Likewise.
14961 * tree-ssa-loop-niter.c: Include wide-int-print.h.
14962 (split_to_var_and_offset): Use wide-int interfaces.
14963 (determine_value_range): Likewise.
14964 (bound_difference_of_offsetted_base): Likewise.
14965 (bounds_add): Take a widest_int instead of a double_int.
14966 (number_of_iterations_ne_max): Use wide-int interfaces.
14967 (number_of_iterations_ne): Likewise.
14968 (number_of_iterations_lt_to_ne): Likewise.
14969 (assert_loop_rolls_lt): Likewise.
14970 (number_of_iterations_lt): Likewise.
14971 (number_of_iterations_le): Likewise.
14972 (number_of_iterations_cond): Likewise.
14973 (number_of_iterations_exit): Likewise.
14974 (finite_loop_p): Likewise.
14975 (derive_constant_upper_bound_assign): Likewise.
14976 (derive_constant_upper_bound): Return a widest_int.
14977 (derive_constant_upper_bound_ops): Likewise.
14978 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
14979 (record_estimate): Take a widest_int rather than a double_int.
14980 (record_nonwrapping_iv): Use wide-int interfaces.
14981 (double_int_cmp): Delete.
14982 (wide_int_cmp): New.
14983 (bound_index): Take a widest_int rather than a double_int.
14984 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
14985 (maybe_lower_iteration_bound): Likewise.
14986 (estimate_numbers_of_iterations_loop): Likewise.
14987 (estimated_loop_iterations): Take a widest_int pointer than than
14988 a double_int pointer.
14989 (estimated_loop_iterations_int): Use wide-int interfaces.
14990 (max_loop_iterations): Take a widest_int pointer than than
14991 a double_int pointer.
14992 (max_loop_iterations_int): Use wide-int interfaces.
14993 (max_stmt_executions): Take a widest_int pointer than than
14994 a double_int pointer.
14995 (estimated_stmt_executions): Likewise.
14996 (n_of_executions_at_most): Use wide-int interfaces.
14997 (scev_probably_wraps_p): Likewise.
14998 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
14999 to real_to_integer.
15000 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
15001 interfaces.
15002 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
15003 double_ints. Adjust for trailing_wide_ints <3> representation.
15004 (set_nonzero_bits): Likewise.
15005 (get_range_info): Return wide_ints rather than double_ints.
15006 Adjust for trailing_wide_ints <3> representation.
15007 (get_nonzero_bits): Likewise.
15008 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
15009 representation.
15010 * tree-ssanames.h (struct range_info_def): Replace min, max and
15011 nonzero_bits with a trailing_wide_ints <3>.
15012 (set_range_info): Use wide_int_refs rather than double_ints.
15013 (set_nonzero_bits): Likewise.
15014 (get_range_info): Return wide_ints rather than double_ints.
15015 (get_nonzero_bits): Likewise.
15016 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
15017 * tree-ssa-pre.c (phi_translate_1): Likewise.
15018 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
15019 (acceptable_pow_call): Likewise.
15020 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
15021 interfaces.
15022 (vn_reference_fold_indirect): Likewise.
15023 (vn_reference_maybe_forwprop_address): Likewise.
15024 (valueize_refs_1): Likewise.
15025 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
15026 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
15027 tree_int_cst_lt and tree_int_cst_le.
15028 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
15029 interfaces.
15030 (streamer_alloc_tree): Likewise.
15031 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
15032 (streamer_write_tree_header): Likewise.
15033 (streamer_write_integer_cst): Likewise.
15034 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15035 (build_constructors): Likewise.
15036 (array_value_type): Likewise.
15037 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
15038 (vect_check_gather): Likewise.
15039 * tree-vect-generic.c (build_replicated_const): Likewise.
15040 (expand_vector_divmod): Likewise.
15041 * tree-vect-loop.c (vect_transform_loop): Likewise.
15042 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
15043 (vect_do_peeling_for_alignment): Likewise.
15044 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
15045 * tree-vrp.c: Include wide-int.h.
15046 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
15047 (extract_range_from_assert): Use wide-int interfaces.
15048 (vrp_int_const_binop): Likewise.
15049 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
15050 double_int pointers.
15051 (ranges_from_anti_range): Use wide-int interfaces.
15052 (quad_int_cmp): Delete.
15053 (quad_int_pair_sort): Likewise.
15054 (extract_range_from_binary_expr_1): Use wide-int interfaces.
15055 (extract_range_from_unary_expr_1): Likewise.
15056 (adjust_range_with_scev): Likewise.
15057 (masked_increment): Take and return wide_ints rather than double_ints.
15058 (register_edge_assert_for_2): Use wide-int interfaces.
15059 (check_array_ref): Likewise.
15060 (search_for_addr_array): Likewise.
15061 (maybe_set_nonzero_bits): Likewise.
15062 (union_ranges): Pass an integer of the correct type instead of
15063 using integer_one_node.
15064 (intersect_ranges): Likewise.
15065 (simplify_truth_ops_using_ranges): Likewise.
15066 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
15067 (range_fits_type_p): Likewise.
15068 (simplify_cond_using_ranges): Likewise. Take a signop rather than
15069 a bool.
15070 (simplify_conversion_using_ranges): Use wide-int interfaces.
15071 (simplify_float_conversion_using_ranges): Likewise.
15072 (vrp_finalize): Likewise.
15073 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
15074 (gimple_stringops_transform): Likewise.
15075 * varasm.c (decode_addr_const): Likewise.
15076 (const_hash_1): Likewise.
15077 (const_rtx_hash_1): Likewise
15078 (output_constant): Likewise.
15079 (array_size_for_constructor): Likewise.
15080 (output_constructor_regular_field): Likewise.
15081 (output_constructor_bitfield): Likewise.
15082 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
15083 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
15084 GENERATOR_FILEs.
15085 * gencheck.c: Define BITS_PER_UNIT.
15086 * wide-int.cc: New.
15087 * wide-int.h: New.
15088 * wide-int-print.cc: New.
15089 * wide-int-print.h: New.
15090
15091 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15092
15093 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
15094
15095 2014-05-06 Richard Biener <rguenther@suse.de>
15096
15097 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
15098 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
15099 (TODO_verify_all): Adjust.
15100 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
15101 TODO_verify_stmts and TODO_verify_rtl_sharing.
15102 * bb-reorder.c: Likewise.
15103 * cfgexpand.c: Likewise.
15104 * cprop.c: Likewise.
15105 * cse.c: Likewise.
15106 * function.c: Likewise.
15107 * fwprop.c: Likewise.
15108 * gcse.c: Likewise.
15109 * gimple-ssa-isolate-paths.c: Likewise.
15110 * gimple-ssa-strength-reduction.c: Likewise.
15111 * ipa-split.c: Likewise.
15112 * loop-init.c: Likewise.
15113 * loop-unroll.c: Likewise.
15114 * lower-subreg.c: Likewise.
15115 * modulo-sched.c: Likewise.
15116 * postreload-gcse.c: Likewise.
15117 * predict.c: Likewise.
15118 * recog.c: Likewise.
15119 * sched-rgn.c: Likewise.
15120 * store-motion.c: Likewise.
15121 * tracer.c: Likewise.
15122 * trans-mem.c: Likewise.
15123 * tree-call-cdce.c: Likewise.
15124 * tree-cfg.c: Likewise.
15125 * tree-cfgcleanup.c: Likewise.
15126 * tree-complex.c: Likewise.
15127 * tree-eh.c: Likewise.
15128 * tree-emutls.c: Likewise.
15129 * tree-if-conv.c: Likewise.
15130 * tree-into-ssa.c: Likewise.
15131 * tree-loop-distribution.c: Likewise.
15132 * tree-object-size.c: Likewise.
15133 * tree-parloops.c: Likewise.
15134 * tree-pass.h: Likewise.
15135 * tree-sra.c: Likewise.
15136 * tree-ssa-ccp.c: Likewise.
15137 * tree-ssa-copy.c: Likewise.
15138 * tree-ssa-copyrename.c: Likewise.
15139 * tree-ssa-dce.c: Likewise.
15140 * tree-ssa-dom.c: Likewise.
15141 * tree-ssa-dse.c: Likewise.
15142 * tree-ssa-forwprop.c: Likewise.
15143 * tree-ssa-ifcombine.c: Likewise.
15144 * tree-ssa-loop-ch.c: Likewise.
15145 * tree-ssa-loop-ivcanon.c: Likewise.
15146 * tree-ssa-loop.c: Likewise.
15147 * tree-ssa-math-opts.c: Likewise.
15148 * tree-ssa-phiopt.c: Likewise.
15149 * tree-ssa-phiprop.c: Likewise.
15150 * tree-ssa-pre.c: Likewise.
15151 * tree-ssa-reassoc.c: Likewise.
15152 * tree-ssa-sink.c: Likewise.
15153 * tree-ssa-strlen.c: Likewise.
15154 * tree-ssa-tail-merge.c: Likewise.
15155 * tree-ssa-uncprop.c: Likewise.
15156 * tree-switch-conversion.c: Likewise.
15157 * tree-tailcall.c: Likewise.
15158 * tree-vect-generic.c: Likewise.
15159 * tree-vectorizer.c: Likewise.
15160 * tree-vrp.c: Likewise.
15161 * tsan.c: Likewise.
15162 * var-tracking.c: Likewise.
15163 * bt-load.c: Likewise.
15164 * cfgcleanup.c: Likewise.
15165 * combine-stack-adj.c: Likewise.
15166 * combine.c: Likewise.
15167 * compare-elim.c: Likewise.
15168 * config/epiphany/resolve-sw-modes.c: Likewise.
15169 * config/i386/i386.c: Likewise.
15170 * config/mips/mips.c: Likewise.
15171 * config/s390/s390.c: Likewise.
15172 * config/sh/sh_treg_combine.cc: Likewise.
15173 * config/sparc/sparc.c: Likewise.
15174 * dce.c: Likewise.
15175 * dse.c: Likewise.
15176 * final.c: Likewise.
15177 * ifcvt.c: Likewise.
15178 * mode-switching.c: Likewise.
15179 * passes.c: Likewise.
15180 * postreload.c: Likewise.
15181 * ree.c: Likewise.
15182 * reg-stack.c: Likewise.
15183 * regcprop.c: Likewise.
15184 * regrename.c: Likewise.
15185 * web.c: Likewise.
15186
15187 2014-05-06 Richard Biener <rguenther@suse.de>
15188
15189 PR middle-end/61070
15190 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
15191 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
15192
15193 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
15194
15195 PR ipa/60965
15196 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
15197
15198 2014-05-05 Radovan Obradovic <robradovic@mips.com>
15199 Tom de Vries <tom@codesourcery.com>
15200
15201 * target.def (call_fusage_contains_non_callee_clobbers): New
15202 DEFHOOKPOD.
15203 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
15204 Hooks to @menu.
15205 (@node Miscellaneous Register Hooks): New node.
15206 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
15207 * doc/tm.texi: Regenerate.
15208
15209 2014-05-05 Marek Polacek <polacek@redhat.com>
15210
15211 PR driver/61065
15212 * opts.c (common_handle_option): Call error_at instead of warning_at.
15213
15214 2014-05-05 Richard Biener <rguenther@suse.de>
15215
15216 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
15217 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
15218 under the TODO_verify_il umbrella.
15219
15220 2014-05-05 Richard Biener <rguenther@suse.de>
15221
15222 * passes.c (execute_function_todo): Move TODO_verify_flow under
15223 the TODO_verify_ul umbrella.
15224
15225 2014-05-05 Richard Biener <rguenther@suse.de>
15226
15227 PR middle-end/61010
15228 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
15229 X & CST away from a CST that is the mask of a mode.
15230
15231 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15232
15233 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
15234 int argument to enum machine_mode.
15235 (picochip_class_max_nregs): Ditto.
15236 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
15237 (picochip_class_max_nregs): Ditto.
15238
15239 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15240
15241 * target.def: Add new target hook.
15242 * doc/tm.texi: Regenerate.
15243 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
15244 * targhooks.c (default_keep_leaf_when_profiled): New function.
15245
15246 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
15247 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
15248
15249 2014-05-05 Bin Cheng <bin.cheng@arm.com>
15250
15251 PR tree-optimization/60363
15252 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
15253 (copy_phi_args): New parameters. Call get_value_locus_in_path.
15254 (update_destination_phis): New parameter.
15255 (create_edge_and_update_destination_phis): Ditto.
15256 (ssa_fix_duplicate_block_edges): Pass new arguments.
15257 (thread_single_edge): Ditto.
15258
15259 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
15260
15261 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
15262 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
15263 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
15264 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
15265 Use RS6000_BTM_HARD_FLOAT.
15266 (BU_MISC_2): Likewise.
15267 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15268 RS6000_BTM_HARD_FLOAT.
15269 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
15270 is explicitly used.
15271 (rs6000_invalid_builtin): Add hard floating builtin support.
15272 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
15273 hard float builtins.
15274 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
15275
15276 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
15277
15278 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
15279 Add missing function* argument.
15280
15281 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
15282
15283 * lra-constraints.c (valid_address_p): Move earlier in file.
15284 Add a constraint argument to the address_info version.
15285 (satisfies_memory_constraint_p): New function.
15286 (satisfies_address_constraint_p): Likewise.
15287 (process_alt_operands, curr_insn_transform): Use them.
15288 (process_address): Pass the constraint to valid_address_p when
15289 checking address operands.
15290
15291 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
15292
15293 * config/mips/mips.c (mips_isa_rev): New variable.
15294 (mips_set_architecture): Set it.
15295 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
15296 from mips_isa_rev.
15297 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
15298 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
15299 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
15300 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
15301 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
15302 conditions in terms of mips_isa_rev.
15303 (mips_isa_rev): Declare.
15304
15305 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
15306
15307 * config/sh/sh-mem.cc: Use tabs instead of spaces.
15308 (prob_unlikely, prob_likely): Make variables const.
15309
15310 2014-05-03 Denis Chertykov <chertykov@gmail.com>
15311
15312 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
15313
15314 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
15315
15316 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
15317
15318 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
15319
15320 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
15321 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
15322 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
15323 functions.
15324 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
15325 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
15326 sh_pass_in_reg_p.
15327 Replace usage of ROUND_REG with sh_round_reg.
15328 Use CEIL instead of ROUND_ADVANCE.
15329
15330 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
15331
15332 PR target/61026
15333 * config/sh/sh.c: Include stdlib headers before everything else.
15334
15335 2014-05-02 Jakub Jelinek <jakub@redhat.com>
15336
15337 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
15338 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
15339 (gimplify_adjust_omp_clauses): Simd region is never
15340 directly nested in combined parallel. Instead, for linear
15341 with copyin/copyout, if in combined for simd loop, make decl
15342 firstprivate/lastprivate on OMP_FOR.
15343 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
15344 expand_omp_for_static_chunk): When setting endvar, also set
15345 fd->loop.v to the same value.
15346
15347 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15348
15349 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
15350
15351 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
15352
15353 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
15354 expression.
15355
15356 2014-05-02 Marek Polacek <polacek@redhat.com>
15357
15358 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
15359
15360 2014-05-02 Kito Cheng <kito@0xlab.org>
15361
15362 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
15363 to a C expression marco.
15364 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
15365 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
15366 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
15367 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
15368 HONOR_REG_ALLOC_ORDER.
15369 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
15370
15371 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15372
15373 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
15374
15375 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15376
15377 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
15378
15379 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15380
15381 * tree-if-conv.c (is_cond_scalar_reduction): New function.
15382 (convert_scalar_cond_reduction): Likewise.
15383 (predicate_scalar_phi): Add recognition and transformation
15384 of simple conditioanl reduction to be vectorizable.
15385
15386 2014-05-01 Marek Polacek <polacek@redhat.com>
15387
15388 PR c/43245
15389 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
15390
15391 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
15392
15393 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
15394 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
15395 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
15396 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
15397 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
15398 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
15399 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
15400 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
15401
15402 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
15403
15404 * config/arc/arc.opt (mlra): Move comment above option name
15405 to avoid mis-parsing as language options.
15406
15407 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15408
15409 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
15410 * config/sol2.h: ... here.
15411 * config/sol2-10.h: Remove.
15412
15413 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
15414 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
15415 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
15416 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
15417 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
15418 * config/sol2.h: ... here.
15419 (SECTION_NAME_FORMAT): Don't redefine.
15420 (STARTFILE_ARCH32_SPEC): Rename to ...
15421 (STARTFILE_ARCH_SPEC): ... this.
15422 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15423 * config/sparc/sol2.h: ... here.
15424 (SECTION_NAME_FORMAT): Don't undef.
15425 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
15426 (SUBTARGET_EXTRA_SPECS): Remove.
15427 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
15428
15429 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
15430 (MD_STARTFILE_PREFIX): Remove.
15431 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
15432 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
15433 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
15434 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
15435 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
15436 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
15437 * config/i386/sol2.h: ... here.
15438 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
15439 * config/i386/sol2-bi.h: Remove.
15440 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
15441 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
15442
15443 * config/i386/t-sol2-64: Rename to ...
15444 * config/i386/t-sol2: ... this.
15445 * config/sparc/t-sol2-64: Rename to ...
15446 * config/sparc/t-sol2: ... this.
15447
15448 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
15449 sol2_tm_file_head, sol2_tm_file_tail.
15450 Include ${cpu_type}/sol2.h before sol2.h.
15451 Remove sol2-10.h.
15452 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
15453 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
15454 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
15455 Reflect i386/t-sol2-64 renaming.
15456 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
15457 Reflect sparc/t-sol2-64 renaming.
15458
15459 2014-04-30 Richard Biener <rguenther@suse.de>
15460
15461 * passes.c (execute_function_todo): Move TODO_verify_stmts
15462 and TODO_verify_ssa under the TODO_verify_il umbrella.
15463 * tree-ssa.h (verify_ssa): Adjust prototype.
15464 * tree-ssa.c (verify_ssa): Add parameter to tell whether
15465 we should verify SSA operands.
15466 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
15467 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
15468 whether we should verify whether not throwing stmts have EH info.
15469 * graphite-scop-detection.c (create_sese_edges): Adjust.
15470 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
15471 * tree-eh.c (lower_try_finally_switch): Do not add the
15472 default case label twice.
15473
15474 2014-04-30 Marek Polacek <polacek@redhat.com>
15475
15476 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
15477 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
15478 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
15479 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
15480
15481 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
15482
15483 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
15484 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
15485 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
15486 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
15487 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
15488 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
15489 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
15490 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
15491
15492 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15493
15494 * tree-cfg.c (dump_function_to_file): Dump the return type of
15495 functions, in a line to itself before the function body, mimicking
15496 the layout of a C function.
15497
15498 2014-04-29 Jakub Jelinek <jakub@redhat.com>
15499
15500 PR tree-optimization/60971
15501 * tree-tailcall.c (process_assignment): Reject conversions which
15502 reduce precision.
15503
15504 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15505
15506 * calls.c (initialize_argument_information): Always treat
15507 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
15508 (expand_call): Likewise.
15509 (emit_library_call_calue_1): Likewise.
15510 * expr.c (PUSH_ARGS_REVERSED): Do not define.
15511 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
15512 code accordingly.
15513
15514 2014-04-29 Nick Clifton <nickc@redhat.com>
15515
15516 * config/msp430/msp430.md (umulsidi): Fix typo.
15517 (mulhisi3): Enable even inside interrupt handlers.
15518 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
15519 bigger return address pushed in large mode.
15520
15521 2014-04-29 Nick Clifton <nickc@redhat.com>
15522
15523 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
15524 (arc_init_reg_tables): Use a machine_mode enum to iterate over
15525 available modes.
15526 * config/m32r/m32r.c (init_reg_tables): Likewise.
15527 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
15528 enum to hold the modes.
15529
15530 2014-04-29 Richard Biener <rguenther@suse.de>
15531
15532 * dominance.c (free_dominance_info): Add overload with
15533 function parameter.
15534 (dom_info_state): Likewise.
15535 (dom_info_available_p): Likewise.
15536 * basic-block.h (free_dominance_info, dom_info_state,
15537 dom_info_available_p): Declare overloads.
15538 * passes.c (execute_function_todo): Verify that verifiers
15539 don't change dominator info state. Drop dominator info
15540 for IPA pass invocations.
15541 * cgraph.c (release_function_body): Restore asserts that
15542 dominator information is released.
15543
15544 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
15545
15546 * doc/invoke.texi: Fix typo.
15547 * tree-vrp.c: Fix typos.
15548 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
15549
15550 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15551
15552 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
15553
15554 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
15555
15556 * config/aarch64/aarch64-builtins.c
15557 (aarch64_types_storestruct_lane_qualifiers): New.
15558 (TYPES_STORESTRUCT_LANE): Likewise.
15559 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
15560 (st3_lane): Likewise.
15561 (st4_lane): Likewise.
15562 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
15563 (vec_store_lanesci_lane<mode>): Likewise.
15564 (vec_store_lanesxi_lane<mode>): Likewise.
15565 (aarch64_st2_lane<VQ:mode>): Likewise.
15566 (aarch64_st3_lane<VQ:mode>): Likewise.
15567 (aarch64_st4_lane<VQ:mode>): Likewise.
15568 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
15569 * config/aarch64/arm_neon.h
15570 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
15571 use new macro arguments.
15572 (__ST3_LANE_FUNC): Likewise.
15573 (__ST4_LANE_FUNC): Likewise.
15574 * config/aarch64/iterators.md (V_TWO_ELEM): New.
15575 (V_THREE_ELEM): Likewise.
15576 (V_FOUR_ELEM): Likewise.
15577
15578 2014-04-28 David Malcolm <dmalcolm@redhat.com>
15579
15580 * doc/gimple.texi: Replace the description of the now-defunct
15581 union gimple_statement_d with a diagram showing the
15582 gimple_statement_base class hierarchy and its relationships to
15583 the GSS_ and GIMPLE_ enums.
15584
15585 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
15586
15587 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
15588 * config/aarch64/aarch64.c
15589 (aarch64_cannot_change_mode_class): Weaken conditions.
15590 (aarch64_modes_tieable_p): New.
15591 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
15592
15593 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
15594
15595 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15596 (loadsync_<mode>): Change mode.
15597 (load_quadpti, store_quadpti): New.
15598 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15599 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15600
15601 2014-04-28 Martin Jambor <mjambor@suse.cz>
15602
15603 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
15604 same alias type as the original statement.
15605 (subreplacement_assignment_data): New type.
15606 (handle_unscalarized_data_in_subtree): New type of parameter,
15607 generate new memory accesses with same alias type as the original
15608 statement.
15609 (load_assign_lhs_subreplacements): Likewise.
15610 (sra_modify_constructor_assign): Generate new memory accesses with
15611 same alias type as the original statement.
15612
15613 2014-04-28 Richard Biener <rguenther@suse.de>
15614
15615 * tree-pass.h (TODO_verify_il): Define.
15616 (TODO_verify_all): Complete properly.
15617 * passes.c (execute_function_todo): Move existing loop-closed
15618 SSA verification under TODO_verify_il.
15619 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
15620 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
15621 Fix tree sharing issue.
15622
15623 2014-04-28 Richard Biener <rguenther@suse.de>
15624
15625 PR middle-end/60092
15626 * builtins.def (DEF_C11_BUILTIN): Add.
15627 (BUILT_IN_ALIGNED_ALLOC): Likewise.
15628 * coretypes.h (enum function_class): Add function_c11_misc.
15629 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15630 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
15631 (call_may_clobber_ref_p_1): Likewise.
15632 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15633 (mark_all_reaching_defs_necessary_1): Likewise.
15634 (propagate_necessity): Likewise.
15635 (eliminate_unnecessary_stmts): Likewise.
15636 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
15637
15638 2014-04-28 Richard Biener <rguenther@suse.de>
15639
15640 * tree-vrp.c (vrp_var_may_overflow): Remove.
15641 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
15642 with overflow immediately bump to one before that value and
15643 let iteration figure out overflow status.
15644
15645 2014-04-28 Richard Biener <rguenther@suse.de>
15646
15647 * configure.ac: Do valgrind header checks unconditionally.
15648 Add --enable-valgrind-annotations.
15649 * system.h: Guard valgrind header inclusion with
15650 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
15651 * alloc-pool.c (pool_alloc, pool_free): Use
15652 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
15653 to guard possibly dead code.
15654 * config.in: Regenerated.
15655 * configure: Likewise.
15656
15657 2014-04-28 Jeff Law <law@redhat.com>
15658
15659 PR tree-optimization/60902
15660 * tree-ssa-threadedge.c
15661 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
15662 over real defs when invalidating outputs from statements that do not
15663 produce useful outputs for threading.
15664
15665 2014-04-28 Richard Biener <rguenther@suse.de>
15666
15667 PR tree-optimization/60979
15668 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
15669 SCOPs that end in a block with a successor with abnormal
15670 predecessors.
15671
15672 2014-04-28 Richard Biener <rguenther@suse.de>
15673
15674 * tree-pass.h (execute_pass_list): Adjust prototype.
15675 * passes.c (pass_manager::execute_early_local_passes): Adjust.
15676 (do_per_function): Change callback signature, push all actual
15677 work to the callbals.
15678 (do_per_function_toporder): Likewise.
15679 (execute_function_dump): Adjust.
15680 (execute_function_todo): Likewise.
15681 (clear_last_verified): Likewise.
15682 (verify_curr_properties): Likewise.
15683 (update_properties_after_pass): Likewise.
15684 (execute_pass_list_1): Split out from ...
15685 (execute_pass_list): ... here. Adjust.
15686 (execute_ipa_pass_list): Likewise.
15687 * cgraphunit.c (cgraph_add_new_function): Adjust.
15688 (analyze_function): Likewise.
15689 (expand_function): Likewise.
15690 * cgraph.c (release_function_body): Free dominance info
15691 here instead of asserting it was magically freed elsewhere.
15692
15693 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
15694
15695 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
15696 * configure: Regenerate.
15697 * config/sparc/sparc.opt (muser-mode): New option.
15698 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
15699 for LEON3.
15700 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
15701 * doc/invoke.texi (SPARC options): Document -muser-mode.
15702
15703 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
15704
15705 * cselib.c (find_slot_memmode): Delete.
15706 (cselib_hasher): Change compare_type to a struct.
15707 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
15708 constants.
15709 (preserve_constants_and_equivs): Adjust for new compare_type.
15710 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
15711 (wrap_constant): Delete.
15712 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
15713
15714 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
15715
15716 * doc/install.texi (Building with profile feedback): Remove
15717 outdated sentence.
15718
15719 2014-04-26 Tom de Vries <tom@codesourcery.com>
15720
15721 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
15722 array accesses.
15723
15724 2014-04-25 Cary Coutant <ccoutant@google.com>
15725
15726 PR debug/60929
15727 * dwarf2out.c (should_move_die_to_comdat): A type definition
15728 can contain a subprogram definition, but don't move it to a
15729 comdat unit.
15730 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
15731 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
15732 from original DIE.
15733 (clone_tree_hash): Rename to...
15734 (clone_tree_partial): ...this; change callers. Copy
15735 DW_TAG_subprogram DIEs as declarations.
15736 (copy_decls_walk): Don't copy children of a declaration into a
15737 type unit.
15738
15739 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
15740
15741 PR target/60969
15742 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
15743 alternative 12.
15744
15745 2014-04-25 Jiong Wang <jiong.wang@arm.com>
15746
15747 * config/arm/predicates.md (call_insn_operand): Add long_call check.
15748 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
15749 reg for long_call.
15750 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
15751 restriction.
15752
15753 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15754
15755 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
15756
15757 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15758
15759 PR tree-optimization/60930
15760 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
15761 creating a multiply candidate by folding two constant
15762 multiplicands when the result overflows.
15763
15764 2014-04-25 Jakub Jelinek <jakub@redhat.com>
15765
15766 PR tree-optimization/60960
15767 * tree-vect-generic.c (expand_vector_operation): Only call
15768 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
15769
15770 2014-04-25 Tom de Vries <tom@codesourcery.com>
15771
15772 * expr.c (clobber_reg_mode): New function.
15773 * expr.h (clobber_reg): New function.
15774
15775 2014-04-25 Tom de Vries <tom@codesourcery.com>
15776
15777 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
15778 clobbers.
15779
15780 2014-04-25 Radovan Obradovic <robradovic@mips.com>
15781 Tom de Vries <tom@codesourcery.com>
15782
15783 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
15784 handle.
15785 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
15786 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
15787 new argument to find_all_hard_reg_sets call.
15788
15789 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15790
15791 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
15792 Use HOST_WIDE_INT_C for mask literal.
15793 (aarch_rev16_shleft_mask_imm_p): Likewise.
15794
15795 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
15796
15797 PR target/60941
15798 * config/sparc/sparc.md (ashlsi3_extend): Delete.
15799
15800 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
15801
15802 PR preprocessor/56540
15803 * config/i386/i386-c.c (ix86_target_macros): Define
15804 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
15805
15806 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15807
15808 * configure.ac (tga_func): Remove.
15809 (LIB_TLS_SPEC): Remove.
15810 * configure: Regenerate.
15811 * config.in: Regenerate.
15812 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
15813
15814 2014-04-25 Richard Biener <rguenther@suse.de>
15815
15816 PR ipa/60912
15817 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
15818 call stmt use/clobber sets during stmt walk instead of
15819 walking the possibly incomplete set of caller edges.
15820
15821 2014-04-25 Richard Biener <rguenther@suse.de>
15822
15823 PR ipa/60911
15824 * passes.c (apply_ipa_transforms): Inline into only caller ...
15825 (execute_one_pass): ... here. Properly bring in function
15826 bodies for nodes we want to apply IPA transforms to.
15827
15828 2014-04-24 Cong Hou <congh@google.com>
15829
15830 PR tree-optimization/60896
15831 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
15832 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
15833 (vect_mark_pattern_stmts): Set the def type of all statements in
15834 PATTERN_DEF_SEQ as vect_internal_def.
15835
15836 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15837
15838 * doc/extend.texi (PowerPC Built-in Functions): Document new
15839 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
15840 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
15841
15842 * config/rs6000/predicates.md (const_0_to_3_operand): New
15843 predicate to match 0..3 integer constants.
15844
15845 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
15846 to support adding miscellaneous builtin functions.
15847 (BU_DFP_MISC_2): Likewise.
15848 (BU_P7_MISC_1): Likewise.
15849 (BU_P7_MISC_2): Likewise.
15850 (BU_P8V_MISC_3): Likewise.
15851 (BU_MISC_1): Likewise.
15852 (BU_MISC_2): Likewise.
15853 (DIVWE): Add extended divide builtin functions.
15854 (DIVWEO): Likewise.
15855 (DIVWEU): Likewise.
15856 (DIVWEUO): Likewise.
15857 (DIVDE): Likewise.
15858 (DIVDEO): Likewise.
15859 (DIVDEU): Likewise.
15860 (DIVDEUO): Likewise.
15861 (DXEX): Add decimal floating-point builtin functions.
15862 (DXEXQ): Likewise.
15863 (DDEDPD): Likewise.
15864 (DDEDPDQ): Likewise.
15865 (DENBCD): Likewise.
15866 (DENBCDQ): Likewise.
15867 (DIEX): Likewise.
15868 (DIEXQ): Likewise.
15869 (DSCLI): Likewise.
15870 (DSCLIQ): Likewise.
15871 (DSCRI): Likewise.
15872 (DSCRIQ): Likewise.
15873 (CDTBCD): Add new BCD builtin functions.
15874 (CBCDTD): Likewise.
15875 (ADDG6S): Likewise.
15876 (BCDADD): Likewise.
15877 (BCDADD_LT): Likewise.
15878 (BCDADD_EQ): Likewise.
15879 (BCDADD_GT): Likewise.
15880 (BCDADD_OV): Likewise.
15881 (BCDSUB): Likewise.
15882 (BCDSUB_LT): Likewise.
15883 (BCDSUB_EQ): Likewise.
15884 (BCDSUB_GT): Likewise.
15885 (BCDSUB_OV): Likewise.
15886 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
15887 (UNPACK_TD): Likewise.
15888 (PACK_TF): Likewise.
15889 (UNPACK_TF): Likewise.
15890 (UNPACK_TF_0): Likewise.
15891 (UNPACK_TF_1): Likewise.
15892 (PACK_V1TI): Likewise.
15893 (UNPACK_V1TI): Likewise.
15894
15895 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15896 support for decimal floating point builtin functions.
15897 (rs6000_expand_ternop_builtin): Add checks for the new builtin
15898 functions that take constant arguments.
15899 (rs6000_invalid_builtin): Add decimal floating point builtin support.
15900 (rs6000_init_builtins): Setup long double, _Decimal64, and
15901 _Decimal128 types for new builtin functions.
15902 (builtin_function_type): Set the unsigned flags appropriately for
15903 the new builtin functions.
15904 (rs6000_opt_masks): Add support for decimal floating point builtin
15905 functions.
15906
15907 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
15908 floating point builtin functions.
15909 (RS6000_BTM_COMMON): Likewise.
15910 (RS6000_BTI_long_double): Likewise.
15911 (RS6000_BTI_dfloat64): Likewise.
15912 (RS6000_BTI_dfloat128): Likewise.
15913 (long_double_type_internal_node): Likewise.
15914 (dfloat64_type_internal_node): Likewise.
15915 (dfloat128_type_internal_node): Likewise.
15916
15917 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
15918 2.07 bcd arithmetic instructions.
15919 (UNSPEC_BCDSUB): Likewise.
15920 (UNSPEC_BCD_OVERFLOW): Likewise.
15921 (UNSPEC_BCD_ADD_SUB): Likewise.
15922 (bcd_add_sub): Likewise.
15923 (BCD_TEST): Likewise.
15924 (bcd<bcd_add_sub>): Likewise.
15925 (bcd<bcd_add_sub>_test): Likewise.
15926 (bcd<bcd_add_sub>_test2): Likewise.
15927 (bcd<bcd_add_sub>_<code>): Likewise.
15928 (peephole2 for combined bcd ops): Likewise.
15929
15930 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
15931 decimal floating point builtin functions.
15932 (UNSPEC_DENBCD): Likewise.
15933 (UNSPEC_DXEX): Likewise.
15934 (UNSPEC_DIEX): Likewise.
15935 (UNSPEC_DSCLI): Likewise.
15936 (UNSPEC_DSCRI): Likewise.
15937 (D64_D128): Likewise.
15938 (dfp_suffix): Likewise.
15939 (dfp_ddedpd_<mode>): Likewise.
15940 (dfp_denbcd_<mode>): Likewise.
15941 (dfp_dxex_<mode>): Likewise.
15942 (dfp_diex_<mode>): Likewise.
15943 (dfp_dscli_<mode>): Likewise.
15944 (dfp_dscri_<mode>): Likewise.
15945
15946 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
15947 builtin functions.
15948 (UNSPEC_CDTBCD): Likewise.
15949 (UNSPEC_CBCDTD): Likewise.
15950 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
15951 (UNSPEC_DIVEO): Likewise.
15952 (UNSPEC_DIVEU): Likewise.
15953 (UNSPEC_DIVEUO): Likewise.
15954 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
15955 pack/unpack 128-bit types.
15956 (UNSPEC_PACK_128BIT): Likewise.
15957 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
15958 (udiv<mode>3): Use idiv_ldiv mode attribute.
15959 (div<mode>3): Likewise.
15960 (addg6s): Add new BCD builtin functions.
15961 (cdtbcd): Likewise.
15962 (cbcdtd): Likewise.
15963 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
15964 (div_extend): Likewise.
15965 (div<div_extend>_<mode>"): Likewise.
15966 (FP128_64): Add support for new builtin functions to pack/unpack
15967 128-bit types.
15968 (unpack<mode>): Likewise.
15969 (unpacktf_0): Likewise.
15970 (unpacktf_1): Likewise.
15971 (unpack<mode>_dm): Likewise.
15972 (unpack<mode>_nodm): Likewise.
15973 (pack<mode>): Likewise.
15974 (unpackv1ti): Likewise.
15975 (packv1ti): Likewise.
15976
15977 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
15978
15979 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
15980 is disabled.
15981
15982 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15983
15984 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
15985 * gimplify.c (omp_is_private): Change last argument's type to int.
15986 Only diagnose lastprivate if the simd argument is 1, only diagnose
15987 linear if the simd argument is 2.
15988 (gimplify_omp_for): Adjust omp_is_private callers. When adding
15989 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
15990 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
15991 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
15992 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
15993 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15994 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
15995 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15996 * tree-nested.c (convert_nonlocal_omp_clauses,
15997 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
15998
15999 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
16000
16001 PR target/60822
16002 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
16003 operand 1.
16004
16005 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
16006
16007 * flag-types.h (enum ivar_visibility): Add.
16008
16009 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
16010
16011 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
16012 function * argument.
16013
16014 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
16015
16016 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
16017
16018 2014-04-24 Radovan Obradovic <robradovic@mips.com>
16019 Tom de Vries <tom@codesourcery.com>
16020
16021 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
16022 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
16023 reg-note.
16024 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
16025 * emit-rtl.c (try_split): Same.
16026
16027 2014-04-24 Radovan Obradovic <robradovic@mips.com>
16028 Tom de Vries <tom@codesourcery.com>
16029
16030 * common.opt (fuse-caller-save): New option.
16031
16032 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
16033
16034 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
16035 elements for big-endian.
16036
16037 2014-04-24 Richard Biener <rguenther@suse.de>
16038
16039 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
16040 during TER and instead use the sepops interface for expanding
16041 non-GIMPLE_SINGLE_RHS.
16042
16043 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16044
16045 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
16046 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
16047
16048 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16049
16050 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
16051 assembler 64-bit option.
16052 * configure: Regenerate.
16053
16054 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16055
16056 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
16057 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
16058 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
16059 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
16060 (TARGET_CRYPTO): Take TARGET_SIMD into account.
16061
16062 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16063
16064 * config/aarch64/aarch64-builtins.c
16065 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
16066 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
16067 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
16068 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
16069 builtins.
16070 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
16071 (Vrevsuff): New mode attribute.
16072
16073 2014-04-24 Terry Guo <terry.guo@arm.com>
16074
16075 * config/arm/arm.h (machine_function): Define variable
16076 after_arm_reorg here.
16077 * config/arm/arm.c (after_arm_reorg): Remove the definition.
16078 (arm_split_constant): Update the way to access variable
16079 after_arm_reorg.
16080 (arm_reorg): Ditto.
16081 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
16082
16083 2014-04-23 Tom de Vries <tom@codesourcery.com>
16084
16085 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
16086
16087 2014-04-23 David Malcolm <dmalcolm@redhat.com>
16088
16089 * is-a.h: Update comments to reflect the following changes to the
16090 "pointerness" of the API, making the template parameter match the
16091 return type, allowing use of is-a.h with typedefs of pointers.
16092 (is_a_helper::cast): Return a T rather then a pointer to a T, so
16093 that the return type matches the parameter to the is_a_helper.
16094 (as_a): Likewise.
16095 (dyn_cast): Likewise.
16096
16097 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
16098 pointer from the is-a.h API.
16099
16100 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
16101 (is_a_helper <cgraph_node *>::test): ...this, matching change to
16102 is-a.h API.
16103 (is_a_helper <varpool_node>::test): Likewise, convert to...
16104 (is_a_helper <varpool_node *>::test): ...this.
16105
16106 (varpool_first_variable): Update for removal of implicit pointer
16107 from the is-a.h API.
16108 (varpool_next_variable): Likewise.
16109 (varpool_first_static_initializer): Likewise.
16110 (varpool_next_static_initializer): Likewise.
16111 (varpool_first_defined_variable): Likewise.
16112 (varpool_next_defined_variable): Likewise.
16113 (cgraph_first_defined_function): Likewise.
16114 (cgraph_next_defined_function): Likewise.
16115 (cgraph_first_function): Likewise.
16116 (cgraph_next_function): Likewise.
16117 (cgraph_first_function_with_gimple_body): Likewise.
16118 (cgraph_next_function_with_gimple_body): Likewise.
16119 (cgraph_alias_target): Likewise.
16120 (varpool_alias_target): Likewise.
16121 (cgraph_function_or_thunk_node): Likewise.
16122 (varpool_variable_node): Likewise.
16123 (symtab_real_symbol_p): Likewise.
16124 * cgraphunit.c (referred_to_p): Likewise.
16125 (analyze_functions): Likewise.
16126 (handle_alias_pairs): Likewise.
16127 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
16128 * gimple-ssa.h (gimple_vuse_op): Likewise.
16129 (gimple_vdef_op): Likewise.
16130 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
16131 * gimple.c (gimple_build_asm_1): Likewise.
16132 (gimple_build_try): Likewise.
16133 (gimple_build_resx): Likewise.
16134 (gimple_build_eh_dispatch): Likewise.
16135 (gimple_build_omp_for): Likewise.
16136 (gimple_omp_for_set_clauses): Likewise.
16137
16138 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
16139 (is_a_helper <gimple_statement_asm *>::test): ...this.
16140 (is_a_helper <gimple_statement_bind>::test): Convert to...
16141 (is_a_helper <gimple_statement_bind *>::test): ...this.
16142 (is_a_helper <gimple_statement_call>::test): Convert to...
16143 (is_a_helper <gimple_statement_call *>::test): ...this.
16144 (is_a_helper <gimple_statement_catch>::test): Convert to...
16145 (is_a_helper <gimple_statement_catch *>::test): ...this.
16146 (is_a_helper <gimple_statement_resx>::test): Convert to...
16147 (is_a_helper <gimple_statement_resx *>::test): ...this.
16148 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
16149 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
16150 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
16151 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
16152 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
16153 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
16154 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
16155 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
16156 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
16157 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
16158 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
16159 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
16160 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
16161 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
16162 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
16163 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
16164 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
16165 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
16166 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
16167 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
16168 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
16169 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
16170 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
16171 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
16172 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
16173 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
16174 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
16175 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
16176 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
16177 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
16178 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
16179 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
16180 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
16181 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
16182 (is_a_helper <gimple_statement_phi>::test): Convert to...
16183 (is_a_helper <gimple_statement_phi *>::test): ...this.
16184 (is_a_helper <gimple_statement_transaction>::test): Convert to...
16185 (is_a_helper <gimple_statement_transaction *>::test): ...this.
16186 (is_a_helper <gimple_statement_try>::test): Convert to...
16187 (is_a_helper <gimple_statement_try *>::test): ...this.
16188 (is_a_helper <gimple_statement_wce>::test): Convert to...
16189 (is_a_helper <gimple_statement_wce *>::test): ...this.
16190 (is_a_helper <const gimple_statement_asm>::test): Convert to...
16191 (is_a_helper <const gimple_statement_asm *>::test): ...this.
16192 (is_a_helper <const gimple_statement_bind>::test): Convert to...
16193 (is_a_helper <const gimple_statement_bind *>::test): ...this.
16194 (is_a_helper <const gimple_statement_call>::test): Convert to...
16195 (is_a_helper <const gimple_statement_call *>::test): ...this.
16196 (is_a_helper <const gimple_statement_catch>::test): Convert to...
16197 (is_a_helper <const gimple_statement_catch *>::test): ...this.
16198 (is_a_helper <const gimple_statement_resx>::test): Convert to...
16199 (is_a_helper <const gimple_statement_resx *>::test): ...this.
16200 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
16201 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
16202 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
16203 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
16204 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
16205 Convert to...
16206 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
16207 ...this.
16208 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
16209 Convert to...
16210 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
16211 ...this.
16212 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
16213 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
16214 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
16215 to...
16216 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
16217 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
16218 to...
16219 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
16220 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
16221 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
16222 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
16223 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
16224 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
16225 to...
16226 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
16227 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
16228 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
16229 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
16230 to...
16231 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
16232 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
16233 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
16234 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
16235 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
16236 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
16237 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
16238 (is_a_helper <const gimple_statement_phi>::test): Convert to...
16239 (is_a_helper <const gimple_statement_phi *>::test): ...this.
16240 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
16241 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
16242 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
16243 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
16244 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
16245 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
16246 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
16247 to...
16248 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
16249 ...this.
16250 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
16251 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
16252
16253 (gimple_use_ops): Update for removal of implicit pointer from the
16254 is-a.h API.
16255 (gimple_set_use_ops): Likewise.
16256 (gimple_vuse): Likewise.
16257 (gimple_vdef): Likewise.
16258 (gimple_vuse_ptr): Likewise.
16259 (gimple_vdef_ptr): Likewise.
16260 (gimple_set_vuse): Likewise.
16261 (gimple_set_vdef): Likewise.
16262 (gimple_omp_return_set_lhs): Likewise.
16263 (gimple_omp_return_lhs): Likewise.
16264 (gimple_omp_return_lhs_ptr): Likewise.
16265 (gimple_call_fntype): Likewise.
16266 (gimple_call_set_fntype): Likewise.
16267 (gimple_call_set_internal_fn): Likewise.
16268 (gimple_call_use_set): Likewise.
16269 (gimple_call_clobber_set): Likewise.
16270 (gimple_bind_vars): Likewise.
16271 (gimple_bind_set_vars): Likewise.
16272 (gimple_bind_body_ptr): Likewise.
16273 (gimple_bind_set_body): Likewise.
16274 (gimple_bind_add_stmt): Likewise.
16275 (gimple_bind_block): Likewise.
16276 (gimple_bind_set_block): Likewise.
16277 (gimple_asm_ninputs): Likewise.
16278 (gimple_asm_noutputs): Likewise.
16279 (gimple_asm_nclobbers): Likewise.
16280 (gimple_asm_nlabels): Likewise.
16281 (gimple_asm_input_op): Likewise.
16282 (gimple_asm_input_op_ptr): Likewise.
16283 (gimple_asm_output_op): Likewise.
16284 (gimple_asm_output_op_ptr): Likewise.
16285 (gimple_asm_set_output_op): Likewise.
16286 (gimple_asm_clobber_op): Likewise.
16287 (gimple_asm_set_clobber_op): Likewise.
16288 (gimple_asm_label_op): Likewise.
16289 (gimple_asm_set_label_op): Likewise.
16290 (gimple_asm_string): Likewise.
16291 (gimple_catch_types): Likewise.
16292 (gimple_catch_types_ptr): Likewise.
16293 (gimple_catch_handler_ptr): Likewise.
16294 (gimple_catch_set_types): Likewise.
16295 (gimple_catch_set_handler): Likewise.
16296 (gimple_eh_filter_types): Likewise.
16297 (gimple_eh_filter_types_ptr): Likewise.
16298 (gimple_eh_filter_failure_ptr): Likewise.
16299 (gimple_eh_filter_set_types): Likewise.
16300 (gimple_eh_filter_set_failure): Likewise.
16301 (gimple_eh_must_not_throw_fndecl): Likewise.
16302 (gimple_eh_must_not_throw_set_fndecl): Likewise.
16303 (gimple_eh_else_n_body_ptr): Likewise.
16304 (gimple_eh_else_e_body_ptr): Likewise.
16305 (gimple_eh_else_set_n_body): Likewise.
16306 (gimple_eh_else_set_e_body): Likewise.
16307 (gimple_try_eval_ptr): Likewise.
16308 (gimple_try_cleanup_ptr): Likewise.
16309 (gimple_try_set_eval): Likewise.
16310 (gimple_try_set_cleanup): Likewise.
16311 (gimple_wce_cleanup_ptr): Likewise.
16312 (gimple_wce_set_cleanup): Likewise.
16313 (gimple_phi_capacity): Likewise.
16314 (gimple_phi_num_args): Likewise.
16315 (gimple_phi_result): Likewise.
16316 (gimple_phi_result_ptr): Likewise.
16317 (gimple_phi_set_result): Likewise.
16318 (gimple_phi_arg): Likewise.
16319 (gimple_phi_set_arg): Likewise.
16320 (gimple_resx_region): Likewise.
16321 (gimple_resx_set_region): Likewise.
16322 (gimple_eh_dispatch_region): Likewise.
16323 (gimple_eh_dispatch_set_region): Likewise.
16324 (gimple_omp_critical_name): Likewise.
16325 (gimple_omp_critical_name_ptr): Likewise.
16326 (gimple_omp_critical_set_name): Likewise.
16327 (gimple_omp_for_clauses): Likewise.
16328 (gimple_omp_for_clauses_ptr): Likewise.
16329 (gimple_omp_for_set_clauses): Likewise.
16330 (gimple_omp_for_collapse): Likewise.
16331 (gimple_omp_for_index): Likewise.
16332 (gimple_omp_for_index_ptr): Likewise.
16333 (gimple_omp_for_set_index): Likewise.
16334 (gimple_omp_for_initial): Likewise.
16335 (gimple_omp_for_initial_ptr): Likewise.
16336 (gimple_omp_for_set_initial): Likewise.
16337 (gimple_omp_for_final): Likewise.
16338 (gimple_omp_for_final_ptr): Likewise.
16339 (gimple_omp_for_set_final): Likewise.
16340 (gimple_omp_for_incr): Likewise.
16341 (gimple_omp_for_incr_ptr): Likewise.
16342 (gimple_omp_for_set_incr): Likewise.
16343 (gimple_omp_for_pre_body_ptr): Likewise.
16344 (gimple_omp_for_set_pre_body): Likewise.
16345 (gimple_omp_parallel_clauses): Likewise.
16346 (gimple_omp_parallel_clauses_ptr): Likewise.
16347 (gimple_omp_parallel_set_clauses): Likewise.
16348 (gimple_omp_parallel_child_fn): Likewise.
16349 (gimple_omp_parallel_child_fn_ptr): Likewise.
16350 (gimple_omp_parallel_set_child_fn): Likewise.
16351 (gimple_omp_parallel_data_arg): Likewise.
16352 (gimple_omp_parallel_data_arg_ptr): Likewise.
16353 (gimple_omp_parallel_set_data_arg): Likewise.
16354 (gimple_omp_task_clauses): Likewise.
16355 (gimple_omp_task_clauses_ptr): Likewise.
16356 (gimple_omp_task_set_clauses): Likewise.
16357 (gimple_omp_task_child_fn): Likewise.
16358 (gimple_omp_task_child_fn_ptr): Likewise.
16359 (gimple_omp_task_set_child_fn): Likewise.
16360 (gimple_omp_task_data_arg): Likewise.
16361 (gimple_omp_task_data_arg_ptr): Likewise.
16362 (gimple_omp_task_set_data_arg): Likewise.
16363 (gimple_omp_taskreg_clauses): Likewise.
16364 (gimple_omp_taskreg_clauses_ptr): Likewise.
16365 (gimple_omp_taskreg_set_clauses): Likewise.
16366 (gimple_omp_taskreg_child_fn): Likewise.
16367 (gimple_omp_taskreg_child_fn_ptr): Likewise.
16368 (gimple_omp_taskreg_set_child_fn): Likewise.
16369 (gimple_omp_taskreg_data_arg): Likewise.
16370 (gimple_omp_taskreg_data_arg_ptr): Likewise.
16371 (gimple_omp_taskreg_set_data_arg): Likewise.
16372 (gimple_omp_task_copy_fn): Likewise.
16373 (gimple_omp_task_copy_fn_ptr): Likewise.
16374 (gimple_omp_task_set_copy_fn): Likewise.
16375 (gimple_omp_task_arg_size): Likewise.
16376 (gimple_omp_task_arg_size_ptr): Likewise.
16377 (gimple_omp_task_set_arg_size): Likewise.
16378 (gimple_omp_task_arg_align): Likewise.
16379 (gimple_omp_task_arg_align_ptr): Likewise.
16380 (gimple_omp_task_set_arg_align): Likewise.
16381 (gimple_omp_single_clauses): Likewise.
16382 (gimple_omp_single_clauses_ptr): Likewise.
16383 (gimple_omp_single_set_clauses): Likewise.
16384 (gimple_omp_target_clauses): Likewise.
16385 (gimple_omp_target_clauses_ptr): Likewise.
16386 (gimple_omp_target_set_clauses): Likewise.
16387 (gimple_omp_target_child_fn): Likewise.
16388 (gimple_omp_target_child_fn_ptr): Likewise.
16389 (gimple_omp_target_set_child_fn): Likewise.
16390 (gimple_omp_target_data_arg): Likewise.
16391 (gimple_omp_target_data_arg_ptr): Likewise.
16392 (gimple_omp_target_set_data_arg): Likewise.
16393 (gimple_omp_teams_clauses): Likewise.
16394 (gimple_omp_teams_clauses_ptr): Likewise.
16395 (gimple_omp_teams_set_clauses): Likewise.
16396 (gimple_omp_sections_clauses): Likewise.
16397 (gimple_omp_sections_clauses_ptr): Likewise.
16398 (gimple_omp_sections_set_clauses): Likewise.
16399 (gimple_omp_sections_control): Likewise.
16400 (gimple_omp_sections_control_ptr): Likewise.
16401 (gimple_omp_sections_set_control): Likewise.
16402 (gimple_omp_for_set_cond): Likewise.
16403 (gimple_omp_for_cond): Likewise.
16404 (gimple_omp_atomic_store_set_val): Likewise.
16405 (gimple_omp_atomic_store_val): Likewise.
16406 (gimple_omp_atomic_store_val_ptr): Likewise.
16407 (gimple_omp_atomic_load_set_lhs): Likewise.
16408 (gimple_omp_atomic_load_lhs): Likewise.
16409 (gimple_omp_atomic_load_lhs_ptr): Likewise.
16410 (gimple_omp_atomic_load_set_rhs): Likewise.
16411 (gimple_omp_atomic_load_rhs): Likewise.
16412 (gimple_omp_atomic_load_rhs_ptr): Likewise.
16413 (gimple_omp_continue_control_def): Likewise.
16414 (gimple_omp_continue_control_def_ptr): Likewise.
16415 (gimple_omp_continue_set_control_def): Likewise.
16416 (gimple_omp_continue_control_use): Likewise.
16417 (gimple_omp_continue_control_use_ptr): Likewise.
16418 (gimple_omp_continue_set_control_use): Likewise.
16419 (gimple_transaction_body_ptr): Likewise.
16420 (gimple_transaction_label): Likewise.
16421 (gimple_transaction_label_ptr): Likewise.
16422 (gimple_transaction_set_body): Likewise.
16423 (gimple_transaction_set_label): Likewise.
16424
16425 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
16426 * ipa-inline-analysis.c (inline_write_summary): Likewise.
16427 * ipa-ref.c (ipa_record_reference): Likewise.
16428 * ipa-reference.c (analyze_function): Likewise.
16429 (ipa_reference_write_optimization_summary): Likewise.
16430 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
16431 (address_taken_from_non_vtable_p): Likewise.
16432 (comdat_can_be_unshared_p_1): Likewise.
16433 * lto-cgraph.c (lto_output_ref): Likewise.
16434 (add_references): Likewise.
16435 (compute_ltrans_boundary): Likewise.
16436 (output_symtab): Likewise.
16437 (input_ref): Likewise.
16438 (input_cgraph_1): Likewise.
16439 (output_cgraph_opt_summary): Likewise.
16440 * lto-streamer-out.c (lto_output): Likewise.
16441 (output_symbol_p): Likewise.
16442 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
16443 (lsei_start_function_in_partition): Likewise.
16444 (lsei_next_variable_in_partition): Likewise.
16445 (lsei_start_variable_in_partition): Likewise.
16446 * symtab.c (insert_to_assembler_name_hash): Likewise.
16447 (unlink_from_assembler_name_hash): Likewise.
16448 (symtab_unregister_node): Likewise.
16449 (symtab_remove_node): Likewise.
16450 (dump_symtab_node): Likewise.
16451 (verify_symtab_base): Likewise.
16452 (verify_symtab_node): Likewise.
16453 (symtab_make_decl_local): Likewise.
16454 (symtab_alias_ultimate_target): Likewise.
16455 (symtab_resolve_alias): Likewise.
16456 (symtab_get_symbol_partitioning_class): Likewise.
16457 * tree-phinodes.c (allocate_phi_node): Likewise.
16458 (reserve_phi_args_for_new_edge): Likewise.
16459 (remove_phi_args): Likewise.
16460 * varpool.c (varpool_node_for_asm): Likewise.
16461 (varpool_remove_unreferenced_decls): Likewise.
16462
16463 2014-04-23 Jeff Law <law@redhat.com>
16464
16465 PR tree-optimization/60902
16466 * tree-ssa-threadedge.c
16467 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
16468 invalidate outputs from statements that do not produce useful
16469 outputs for threading.
16470
16471 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16472
16473 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
16474 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
16475 machine descriptions for Stack Smashing Protector.
16476
16477 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
16478
16479 * aarch64.md (<optab>_rol<mode>3): New pattern.
16480 (<optab>_rolsi3_uxtw): Likewise.
16481 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
16482
16483 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
16484
16485 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
16486 (arm_cortex_a12_tune): Likewise.
16487
16488 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16489
16490 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
16491
16492 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16493
16494 * config/arm/arm.md (arm_rev16si2): New pattern.
16495 (arm_rev16si2_alt): Likewise.
16496 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
16497
16498 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16499
16500 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
16501 (rev16<mode>2_alt): Likewise.
16502 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
16503 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
16504 (aarch_rev16_shleft_mask_imm_p): Likewise.
16505 (aarch_rev16_p_1): Likewise.
16506 (aarch_rev16_p): Likewise.
16507 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
16508 (aarch_rev16_shright_mask_imm_p): Likewise.
16509 (aarch_rev16_shleft_mask_imm_p): Likewise.
16510
16511 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16512
16513 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
16514 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
16515 rev cost.
16516 (cortex_a53_extra_costs): Likewise.
16517 (cortex_a57_extra_costs): Likewise.
16518 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
16519 (cortexa7_extra_costs): Likewise.
16520 (cortexa8_extra_costs): Likewise.
16521 (cortexa12_extra_costs): Likewise.
16522 (cortexa15_extra_costs): Likewise.
16523 (v7m_extra_costs): Likewise.
16524 (arm_new_rtx_costs): Handle BSWAP.
16525
16526 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16527
16528 * config/arm/arm.c (cortexa8_extra_costs): New table.
16529 (arm_cortex_a8_tune): New tuning struct.
16530 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
16531
16532 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16533
16534 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
16535
16536 2014-04-23 Richard Biener <rguenther@suse.de>
16537
16538 * Makefile.in (OBJS): Remove loop-unswitch.o.
16539 * tree-pass.h (make_pass_rtl_unswitch): Remove.
16540 * passes.def (pass_rtl_unswitch): Likewise.
16541 * loop-init.c (gate_rtl_unswitch): Likewise.
16542 (rtl_unswitch): Likewise.
16543 (pass_data_rtl_unswitch): Likewise.
16544 (pass_rtl_unswitch): Likewise.
16545 (make_pass_rtl_unswitch): Likewise.
16546 * rtl.h (reversed_condition): Likewise.
16547 (compare_and_jump_seq): Likewise.
16548 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
16549 and make static.
16550 * loop-unroll.c (compare_and_jump_seq): Likewise.
16551
16552 2014-04-23 Richard Biener <rguenther@suse.de>
16553
16554 PR tree-optimization/60903
16555 * tree-ssa-loop-im.c (analyze_memory_references): Remove
16556 commented code block.
16557 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
16558 loop flags to newly created BBs and edges.
16559
16560 2014-04-23 Nick Clifton <nickc@redhat.com>
16561
16562 * config/msp430/msp430.c (msp430_handle_option): Move function
16563 to msp430-common.c
16564 (msp430_option_override): Simplify mcu and mcpu option handling.
16565 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
16566 support for -mhwmult command line option.
16567 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
16568 -mhwmult command line option.
16569 (msp430_hwmult_enabled): Delete.
16570 (msp43o_output_labelref): Add support for -mhwmult command line option.
16571 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
16572 (umulsidi3): Likewise.
16573 * config/msp430/msp430.opt (mmcu): Add Report attribute.
16574 (mcpu, mlarge, msmall): Likewise.
16575 (mhwmult): New option.
16576 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
16577 prototype.
16578 (msp430_is_f5_mcu): Remove prototype.
16579 (msp430_use_f5_series_hwmult): Add prototype.
16580 * config/msp430/msp430-opts.h: New file.
16581 * common/config/msp430: New directory.
16582 * common/config/msp430/msp430-common.c: New file.
16583 * config.gcc (msp430): Remove target_has_targetm_common.
16584 * doc/invoke.texi: Document -mhwmult command line option.
16585
16586 2014-04-23 Nick Clifton <nickc@redhat.com>
16587
16588 * config/i386/cygwin.h (ENDFILE_SPEC): Include
16589 default-manifest.o if it can be found in the search path.
16590 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
16591
16592 2014-04-23 Terry Guo <terry.guo@arm.com>
16593
16594 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
16595
16596 2014-04-23 Richard Biener <rguenther@suse.de>
16597
16598 PR middle-end/60895
16599 * tree-inline.c (declare_return_variable): Use mark_addressable.
16600
16601 2014-04-23 Richard Biener <rguenther@suse.de>
16602
16603 PR middle-end/60891
16604 * loop-init.c (loop_optimizer_init): Make sure to apply
16605 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
16606
16607 2014-04-22 Jakub Jelinek <jakub@redhat.com>
16608
16609 PR sanitizer/60275
16610 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
16611 New options.
16612 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
16613 if flag_sanitize_undefined_trap_on_error.
16614 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
16615 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
16616 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
16617 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
16618 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
16619 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
16620 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
16621 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
16622 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
16623 * ubsan.c (ubsan_instrument_unreachable): Return
16624 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
16625 (ubsan_expand_null_ifn): Emit __builtin_trap ()
16626 if flag_sanitize_undefined_trap_on_error and
16627 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
16628 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
16629 instrument_bool_enum_load): Emit __builtin_trap () if
16630 flag_sanitize_undefined_trap_on_error and
16631 __builtin_handle_*_abort () if !flag_sanitize_recover.
16632 * doc/invoke.texi (-fsanitize-recover,
16633 -fsanitize-undefined-trap-on-error): Document.
16634
16635 2014-04-22 Christian Bruel <christian.bruel@st.com>
16636
16637 * config/sh/sh.md (mov<mode>): Replace movQIHI.
16638 Force immediates to SImode.
16639
16640 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
16641
16642 * config/nios2/nios2.md (UNSPEC_ROUND): New.
16643 (lroundsfsi2): New.
16644 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
16645 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
16646 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
16647 (nios2_fpu_insn): Add entry for round.
16648 (N2FPU_NO_ERRNO_P): Define.
16649 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
16650 flag_errno_math.
16651 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
16652
16653 2014-04-22 Richard Henderson <rth@redhat.com>
16654
16655 * config/aarch64/aarch64 (addti3, subti3): New expanders.
16656 (add<GPI>3_compare0): Remove leading * from name.
16657 (add<GPI>3_carryin): Likewise.
16658 (sub<GPI>3_compare0): Likewise.
16659 (sub<GPI>3_carryin): Likewise.
16660 (<su_optab>mulditi3): New expander.
16661 (multi3): New expander.
16662 (madd<GPI>): Remove leading * from name.
16663
16664 2014-04-22 Martin Jambor <mjambor@suse.cz>
16665
16666 * cgraphclones.c (cgraph_function_versioning): Copy
16667 ipa_transforms_to_apply instead of asserting it is empty.
16668
16669 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
16670
16671 PR target/60868
16672 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
16673 on count_exp to get mode.
16674
16675 2014-04-22 Andrew Pinski <apinski@cavium.com>
16676
16677 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16678 Handle TLS for ILP32.
16679 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
16680 (tlsie_small_<mode>): this and handle PTR.
16681 (tlsie_small_sidi): New pattern.
16682 (tlsle_small): Change to an expand to handle ILP32.
16683 (tlsle_small_<mode>): New pattern.
16684 (tlsdesc_small): Rename to ...
16685 (tlsdesc_small_<mode>): this and handle PTR.
16686
16687 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16688
16689 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
16690
16691 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16692
16693 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16694 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
16695 (aarch64_types_signed_poly_qualifiers): Likewise.
16696 (aarch64_types_unsigned_signed_qualifiers): Likewise.
16697 (aarch64_types_poly_signed_qualifiers): Likewise.
16698 (TYPES_REINTERP_SS): Type macro added.
16699 (TYPES_REINTERP_SU): Likewise.
16700 (TYPES_REINTERP_SP): Likewise.
16701 (TYPES_REINTERP_US): Likewise.
16702 (TYPES_REINTERP_PS): Likewise.
16703 (aarch64_fold_builtin): New expression folding added.
16704 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
16705 Declarations removed.
16706 (REINTERP_SS): Declarations added.
16707 (REINTERP_US): Likewise.
16708 (REINTERP_PS): Likewise.
16709 (REINTERP_SU): Likewise.
16710 (REINTERP_SP): Likewise.
16711 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
16712 (vreinterpretq_p8_f64): Likewise.
16713 (vreinterpret_p16_f64): Likewise.
16714 (vreinterpretq_p16_f64): Likewise.
16715 (vreinterpret_f32_f64): Likewise.
16716 (vreinterpretq_f32_f64): Likewise.
16717 (vreinterpret_f64_f32): Likewise.
16718 (vreinterpret_f64_p8): Likewise.
16719 (vreinterpret_f64_p16): Likewise.
16720 (vreinterpret_f64_s8): Likewise.
16721 (vreinterpret_f64_s16): Likewise.
16722 (vreinterpret_f64_s32): Likewise.
16723 (vreinterpret_f64_s64): Likewise.
16724 (vreinterpret_f64_u8): Likewise.
16725 (vreinterpret_f64_u16): Likewise.
16726 (vreinterpret_f64_u32): Likewise.
16727 (vreinterpret_f64_u64): Likewise.
16728 (vreinterpretq_f64_f32): Likewise.
16729 (vreinterpretq_f64_p8): Likewise.
16730 (vreinterpretq_f64_p16): Likewise.
16731 (vreinterpretq_f64_s8): Likewise.
16732 (vreinterpretq_f64_s16): Likewise.
16733 (vreinterpretq_f64_s32): Likewise.
16734 (vreinterpretq_f64_s64): Likewise.
16735 (vreinterpretq_f64_u8): Likewise.
16736 (vreinterpretq_f64_u16): Likewise.
16737 (vreinterpretq_f64_u32): Likewise.
16738 (vreinterpretq_f64_u64): Likewise.
16739 (vreinterpret_s64_f64): Likewise.
16740 (vreinterpretq_s64_f64): Likewise.
16741 (vreinterpret_u64_f64): Likewise.
16742 (vreinterpretq_u64_f64): Likewise.
16743 (vreinterpret_s8_f64): Likewise.
16744 (vreinterpretq_s8_f64): Likewise.
16745 (vreinterpret_s16_f64): Likewise.
16746 (vreinterpretq_s16_f64): Likewise.
16747 (vreinterpret_s32_f64): Likewise.
16748 (vreinterpretq_s32_f64): Likewise.
16749 (vreinterpret_u8_f64): Likewise.
16750 (vreinterpretq_u8_f64): Likewise.
16751 (vreinterpret_u16_f64): Likewise.
16752 (vreinterpretq_u16_f64): Likewise.
16753 (vreinterpret_u32_f64): Likewise.
16754 (vreinterpretq_u32_f64): Likewise.
16755
16756 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16757
16758 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16759 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
16760 (vreinterpret_p8_s8): Likewise.
16761 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
16762 (vreinterpret_p8_s16): Likewise.
16763 (vreinterpret_p8_s32): Likewise.
16764 (vreinterpret_p8_s64): Likewise.
16765 (vreinterpret_p8_f32): Likewise.
16766 (vreinterpret_p8_u8): Likewise.
16767 (vreinterpret_p8_u16): Likewise.
16768 (vreinterpret_p8_u32): Likewise.
16769 (vreinterpret_p8_u64): Likewise.
16770 (vreinterpret_p8_p16): Likewise.
16771 (vreinterpretq_p8_s8): Likewise.
16772 (vreinterpretq_p8_s16): Likewise.
16773 (vreinterpretq_p8_s32): Likewise.
16774 (vreinterpretq_p8_s64): Likewise.
16775 (vreinterpretq_p8_f32): Likewise.
16776 (vreinterpretq_p8_u8): Likewise.
16777 (vreinterpretq_p8_u16): Likewise.
16778 (vreinterpretq_p8_u32): Likewise.
16779 (vreinterpretq_p8_u64): Likewise.
16780 (vreinterpretq_p8_p16): Likewise.
16781 (vreinterpret_p16_s8): Likewise.
16782 (vreinterpret_p16_s16): Likewise.
16783 (vreinterpret_p16_s32): Likewise.
16784 (vreinterpret_p16_s64): Likewise.
16785 (vreinterpret_p16_f32): Likewise.
16786 (vreinterpret_p16_u8): Likewise.
16787 (vreinterpret_p16_u16): Likewise.
16788 (vreinterpret_p16_u32): Likewise.
16789 (vreinterpret_p16_u64): Likewise.
16790 (vreinterpret_p16_p8): Likewise.
16791 (vreinterpretq_p16_s8): Likewise.
16792 (vreinterpretq_p16_s16): Likewise.
16793 (vreinterpretq_p16_s32): Likewise.
16794 (vreinterpretq_p16_s64): Likewise.
16795 (vreinterpretq_p16_f32): Likewise.
16796 (vreinterpretq_p16_u8): Likewise.
16797 (vreinterpretq_p16_u16): Likewise.
16798 (vreinterpretq_p16_u32): Likewise.
16799 (vreinterpretq_p16_u64): Likewise.
16800 (vreinterpretq_p16_p8): Likewise.
16801 (vreinterpret_f32_s8): Likewise.
16802 (vreinterpret_f32_s16): Likewise.
16803 (vreinterpret_f32_s32): Likewise.
16804 (vreinterpret_f32_s64): Likewise.
16805 (vreinterpret_f32_u8): Likewise.
16806 (vreinterpret_f32_u16): Likewise.
16807 (vreinterpret_f32_u32): Likewise.
16808 (vreinterpret_f32_u64): Likewise.
16809 (vreinterpret_f32_p8): Likewise.
16810 (vreinterpret_f32_p16): Likewise.
16811 (vreinterpretq_f32_s8): Likewise.
16812 (vreinterpretq_f32_s16): Likewise.
16813 (vreinterpretq_f32_s32): Likewise.
16814 (vreinterpretq_f32_s64): Likewise.
16815 (vreinterpretq_f32_u8): Likewise.
16816 (vreinterpretq_f32_u16): Likewise.
16817 (vreinterpretq_f32_u32): Likewise.
16818 (vreinterpretq_f32_u64): Likewise.
16819 (vreinterpretq_f32_p8): Likewise.
16820 (vreinterpretq_f32_p16): Likewise.
16821 (vreinterpret_s64_s8): Likewise.
16822 (vreinterpret_s64_s16): Likewise.
16823 (vreinterpret_s64_s32): Likewise.
16824 (vreinterpret_s64_f32): Likewise.
16825 (vreinterpret_s64_u8): Likewise.
16826 (vreinterpret_s64_u16): Likewise.
16827 (vreinterpret_s64_u32): Likewise.
16828 (vreinterpret_s64_u64): Likewise.
16829 (vreinterpret_s64_p8): Likewise.
16830 (vreinterpret_s64_p16): Likewise.
16831 (vreinterpretq_s64_s8): Likewise.
16832 (vreinterpretq_s64_s16): Likewise.
16833 (vreinterpretq_s64_s32): Likewise.
16834 (vreinterpretq_s64_f32): Likewise.
16835 (vreinterpretq_s64_u8): Likewise.
16836 (vreinterpretq_s64_u16): Likewise.
16837 (vreinterpretq_s64_u32): Likewise.
16838 (vreinterpretq_s64_u64): Likewise.
16839 (vreinterpretq_s64_p8): Likewise.
16840 (vreinterpretq_s64_p16): Likewise.
16841 (vreinterpret_u64_s8): Likewise.
16842 (vreinterpret_u64_s16): Likewise.
16843 (vreinterpret_u64_s32): Likewise.
16844 (vreinterpret_u64_s64): Likewise.
16845 (vreinterpret_u64_f32): Likewise.
16846 (vreinterpret_u64_u8): Likewise.
16847 (vreinterpret_u64_u16): Likewise.
16848 (vreinterpret_u64_u32): Likewise.
16849 (vreinterpret_u64_p8): Likewise.
16850 (vreinterpret_u64_p16): Likewise.
16851 (vreinterpretq_u64_s8): Likewise.
16852 (vreinterpretq_u64_s16): Likewise.
16853 (vreinterpretq_u64_s32): Likewise.
16854 (vreinterpretq_u64_s64): Likewise.
16855 (vreinterpretq_u64_f32): Likewise.
16856 (vreinterpretq_u64_u8): Likewise.
16857 (vreinterpretq_u64_u16): Likewise.
16858 (vreinterpretq_u64_u32): Likewise.
16859 (vreinterpretq_u64_p8): Likewise.
16860 (vreinterpretq_u64_p16): Likewise.
16861 (vreinterpret_s8_s16): Likewise.
16862 (vreinterpret_s8_s32): Likewise.
16863 (vreinterpret_s8_s64): Likewise.
16864 (vreinterpret_s8_f32): Likewise.
16865 (vreinterpret_s8_u8): Likewise.
16866 (vreinterpret_s8_u16): Likewise.
16867 (vreinterpret_s8_u32): Likewise.
16868 (vreinterpret_s8_u64): Likewise.
16869 (vreinterpret_s8_p8): Likewise.
16870 (vreinterpret_s8_p16): Likewise.
16871 (vreinterpretq_s8_s16): Likewise.
16872 (vreinterpretq_s8_s32): Likewise.
16873 (vreinterpretq_s8_s64): Likewise.
16874 (vreinterpretq_s8_f32): Likewise.
16875 (vreinterpretq_s8_u8): Likewise.
16876 (vreinterpretq_s8_u16): Likewise.
16877 (vreinterpretq_s8_u32): Likewise.
16878 (vreinterpretq_s8_u64): Likewise.
16879 (vreinterpretq_s8_p8): Likewise.
16880 (vreinterpretq_s8_p16): Likewise.
16881 (vreinterpret_s16_s8): Likewise.
16882 (vreinterpret_s16_s32): Likewise.
16883 (vreinterpret_s16_s64): Likewise.
16884 (vreinterpret_s16_f32): Likewise.
16885 (vreinterpret_s16_u8): Likewise.
16886 (vreinterpret_s16_u16): Likewise.
16887 (vreinterpret_s16_u32): Likewise.
16888 (vreinterpret_s16_u64): Likewise.
16889 (vreinterpret_s16_p8): Likewise.
16890 (vreinterpret_s16_p16): Likewise.
16891 (vreinterpretq_s16_s8): Likewise.
16892 (vreinterpretq_s16_s32): Likewise.
16893 (vreinterpretq_s16_s64): Likewise.
16894 (vreinterpretq_s16_f32): Likewise.
16895 (vreinterpretq_s16_u8): Likewise.
16896 (vreinterpretq_s16_u16): Likewise.
16897 (vreinterpretq_s16_u32): Likewise.
16898 (vreinterpretq_s16_u64): Likewise.
16899 (vreinterpretq_s16_p8): Likewise.
16900 (vreinterpretq_s16_p16): Likewise.
16901 (vreinterpret_s32_s8): Likewise.
16902 (vreinterpret_s32_s16): Likewise.
16903 (vreinterpret_s32_s64): Likewise.
16904 (vreinterpret_s32_f32): Likewise.
16905 (vreinterpret_s32_u8): Likewise.
16906 (vreinterpret_s32_u16): Likewise.
16907 (vreinterpret_s32_u32): Likewise.
16908 (vreinterpret_s32_u64): Likewise.
16909 (vreinterpret_s32_p8): Likewise.
16910 (vreinterpret_s32_p16): Likewise.
16911 (vreinterpretq_s32_s8): Likewise.
16912 (vreinterpretq_s32_s16): Likewise.
16913 (vreinterpretq_s32_s64): Likewise.
16914 (vreinterpretq_s32_f32): Likewise.
16915 (vreinterpretq_s32_u8): Likewise.
16916 (vreinterpretq_s32_u16): Likewise.
16917 (vreinterpretq_s32_u32): Likewise.
16918 (vreinterpretq_s32_u64): Likewise.
16919 (vreinterpretq_s32_p8): Likewise.
16920 (vreinterpretq_s32_p16): Likewise.
16921 (vreinterpret_u8_s8): Likewise.
16922 (vreinterpret_u8_s16): Likewise.
16923 (vreinterpret_u8_s32): Likewise.
16924 (vreinterpret_u8_s64): Likewise.
16925 (vreinterpret_u8_f32): Likewise.
16926 (vreinterpret_u8_u16): Likewise.
16927 (vreinterpret_u8_u32): Likewise.
16928 (vreinterpret_u8_u64): Likewise.
16929 (vreinterpret_u8_p8): Likewise.
16930 (vreinterpret_u8_p16): Likewise.
16931 (vreinterpretq_u8_s8): Likewise.
16932 (vreinterpretq_u8_s16): Likewise.
16933 (vreinterpretq_u8_s32): Likewise.
16934 (vreinterpretq_u8_s64): Likewise.
16935 (vreinterpretq_u8_f32): Likewise.
16936 (vreinterpretq_u8_u16): Likewise.
16937 (vreinterpretq_u8_u32): Likewise.
16938 (vreinterpretq_u8_u64): Likewise.
16939 (vreinterpretq_u8_p8): Likewise.
16940 (vreinterpretq_u8_p16): Likewise.
16941 (vreinterpret_u16_s8): Likewise.
16942 (vreinterpret_u16_s16): Likewise.
16943 (vreinterpret_u16_s32): Likewise.
16944 (vreinterpret_u16_s64): Likewise.
16945 (vreinterpret_u16_f32): Likewise.
16946 (vreinterpret_u16_u8): Likewise.
16947 (vreinterpret_u16_u32): Likewise.
16948 (vreinterpret_u16_u64): Likewise.
16949 (vreinterpret_u16_p8): Likewise.
16950 (vreinterpret_u16_p16): Likewise.
16951 (vreinterpretq_u16_s8): Likewise.
16952 (vreinterpretq_u16_s16): Likewise.
16953 (vreinterpretq_u16_s32): Likewise.
16954 (vreinterpretq_u16_s64): Likewise.
16955 (vreinterpretq_u16_f32): Likewise.
16956 (vreinterpretq_u16_u8): Likewise.
16957 (vreinterpretq_u16_u32): Likewise.
16958 (vreinterpretq_u16_u64): Likewise.
16959 (vreinterpretq_u16_p8): Likewise.
16960 (vreinterpretq_u16_p16): Likewise.
16961 (vreinterpret_u32_s8): Likewise.
16962 (vreinterpret_u32_s16): Likewise.
16963 (vreinterpret_u32_s32): Likewise.
16964 (vreinterpret_u32_s64): Likewise.
16965 (vreinterpret_u32_f32): Likewise.
16966 (vreinterpret_u32_u8): Likewise.
16967 (vreinterpret_u32_u16): Likewise.
16968 (vreinterpret_u32_u64): Likewise.
16969 (vreinterpret_u32_p8): Likewise.
16970 (vreinterpret_u32_p16): Likewise.
16971 (vreinterpretq_u32_s8): Likewise.
16972 (vreinterpretq_u32_s16): Likewise.
16973 (vreinterpretq_u32_s32): Likewise.
16974 (vreinterpretq_u32_s64): Likewise.
16975 (vreinterpretq_u32_f32): Likewise.
16976 (vreinterpretq_u32_u8): Likewise.
16977 (vreinterpretq_u32_u16): Likewise.
16978 (vreinterpretq_u32_u64): Likewise.
16979 (vreinterpretq_u32_p8): Likewise.
16980 (vreinterpretq_u32_p16): Likewise.
16981
16982 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16983
16984 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
16985 Pattern extended.
16986 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
16987 (sqabs): Likewise.
16988 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
16989 (vqnegd_s64): Likewise.
16990 (vqabs_s64): Likewise.
16991 (vqabsd_s64): Likewise.
16992
16993 2014-04-22 Richard Henderson <rth@redhat.com>
16994
16995 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
16996 computation to the top of the loop.
16997
16998 2014-04-22 Renlin <renlin.li@arm.com>
16999 Jiong Wang <jiong.wang@arm.com>
17000
17001 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
17002 * config/aarch64/aarch64.c (aarch64_layout_frame)
17003 (aarch64_initial_elimination_offset): Likewise.
17004
17005 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
17006
17007 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
17008 Fix indentation.
17009
17010 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
17011
17012 * machmode.h (bitwise_mode_for_mode): Declare.
17013 * stor-layout.h (bitwise_type_for_mode): Likewise.
17014 * stor-layout.c (bitwise_mode_for_mode): New function.
17015 (bitwise_type_for_mode): Likewise.
17016 * builtins.c (fold_builtin_memory_op): Use it instead of
17017 int_mode_for_mode and build_nonstandard_integer_type.
17018
17019 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17020
17021 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
17022 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
17023 (*-*-solaris2*): Simplify.
17024 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
17025 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
17026 *-*-solaris2.9* handling.
17027
17028 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
17029 as bug.
17030 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
17031 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
17032 handling, simplify.
17033 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
17034 * configure: Regenerate.
17035
17036 * config/i386/sol2-9.h: Remove.
17037
17038 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
17039 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
17040 Remove Solaris 9 references.
17041
17042 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
17043
17044 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
17045 (floatuns<GPI:mode><GPF:mode>2): Remove.
17046 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
17047 and floatuns conversions.
17048 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
17049 and floatuns conversions.
17050 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
17051 (w1,w2): New mode attributes for inequal width conversions.
17052
17053 2014-04-22 Renlin Li <Renlin.Li@arm.com>
17054
17055 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
17056 the output asm format.
17057
17058 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17059
17060 * config/aarch64/aarch64-simd.md
17061 (aarch64_cm<optab>di): Always split.
17062 (*aarch64_cm<optab>di): New.
17063 (aarch64_cmtstdi): Always split.
17064 (*aarch64_cmtstdi): New.
17065
17066 2014-04-22 Jakub Jelinek <jakub@redhat.com>
17067
17068 PR tree-optimization/60823
17069 * omp-low.c (ipa_simd_modify_function_body): Go through
17070 all SSA_NAMEs and for those refering to vector arguments
17071 which are going to be replaced adjust SSA_NAME_VAR and,
17072 if it is a default definition, change it into a non-default
17073 definition assigned at the beginning of function from new_decl.
17074 (ipa_simd_modify_stmt_ops): Rewritten.
17075 * tree-dfa.c (set_ssa_default_def): When removing default def,
17076 check for NULL loc instead of NULL *loc.
17077
17078 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17079
17080 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
17081 restrictions on core registers for DImode values in Thumb2.
17082
17083 2014-04-22 Ian Bolton <ian.bolton@arm.com>
17084
17085 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
17086 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
17087
17088 2014-04-22 Ian Bolton <ian.bolton@arm.com>
17089
17090 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
17091 (*iordi_notzesidi_di): Likewise.
17092 (*iordi_notsesidi_di): Likewise.
17093
17094 2014-04-22 Ian Bolton <ian.bolton@arm.com>
17095
17096 * config/arm/arm-protos.h (tune_params): New struct members.
17097 * config/arm/arm.c: Initialise tune_params per processor.
17098 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
17099 for speed, based on new tune_params.
17100
17101 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
17102
17103 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
17104 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
17105 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
17106 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
17107 * config/aarch64/arm_neon.h (vrnd_f64): Added.
17108 (vrnda_f64): Likewise.
17109 (vrndi_f64): Likewise.
17110 (vrndm_f64): Likewise.
17111 (vrndn_f64): Likewise.
17112 (vrndp_f64): Likewise.
17113 (vrndx_f64): Likewise.
17114
17115 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17116
17117 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
17118 GET_MODE_SIZE argument is enum machine_mode.
17119
17120 2014-04-22 Jakub Jelinek <jakub@redhat.com>
17121
17122 PR target/60910
17123 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
17124 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
17125
17126 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
17127
17128 PR middle-end/60281
17129 * asan.c (asan_emit_stack_protection): Force the base to align to
17130 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
17131 appropriate bits if STRICT_ALIGNMENT.
17132 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
17133 when asan is on.
17134 (expand_used_vars): Leave a space in the stack frame for alignment
17135 if STRICT_ALIGNMENT.
17136
17137 2014-04-21 David Malcolm <dmalcolm@redhat.com>
17138
17139 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
17140 than a gimple.
17141 (gimple_store_p): Likewise.
17142 (gimple_assign_load_p): Likewise.
17143 (gimple_assign_cast_p): Likewise.
17144 (gimple_clobber_p): Likewise.
17145
17146 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
17147 rather than a gimple.
17148 (gimple_assign_cast_p): Likewise.
17149
17150 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17151
17152 PR target/60735
17153 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
17154 If mode is DDmode and TARGET_E500_DOUBLE allow move.
17155
17156 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
17157 more debug information for E500 if -mdebug=reg.
17158
17159 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
17160
17161 PR target/60909
17162 * config/i386/i386.c (ix86_expand_builtin)
17163 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
17164 register for target RTX.
17165 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
17166
17167 2014-04-18 Cong Hou <congh@google.com>
17168
17169 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
17170 the widen-mult pattern by handling two operands with different sizes,
17171 and operands whose size is smaller than half of the result type.
17172
17173 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
17174
17175 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
17176 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
17177 (do_estimate_edge_time): Compute it.
17178 * ipa-inline.c (want_inline_small_function_p): Bypass
17179 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
17180
17181 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
17182
17183 * ipa-inline.c (spec_rem): New static variable.
17184 (dump_overall_stats): New function.
17185 (dump_inline_stats): New function.
17186
17187 2014-04-18 Richard Henderson <rth@redhat.com>
17188
17189 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
17190 to GET_MODE_SIZE, not a reg_class_t.
17191
17192 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17193
17194 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
17195 (vsx_xxmrglw_<mode>): Likewise.
17196
17197 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
17198
17199 PR target/60876
17200 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
17201 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
17202 (rs6000_init_hard_regno_mode_ok): Likewise.
17203
17204 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
17205
17206 * ipa-inline.c (inline_small_functions): Account only non-cold
17207 functions.
17208 * doc/invoke.texi (inline-unit-growth): Update documentation.
17209
17210 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
17211
17212 * config/rs6000/rs6000.md (addti3, subti3): New.
17213
17214 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
17215
17216 PR target/60863
17217 * config/i386/i386.c (ix86_expand_clear): Remove outdated
17218 comment. Check optimize_insn_for_size_p instead of
17219 optimize_insn_for_speed_p.
17220
17221 2014-04-17 Martin Jambor <mjambor@suse.cz>
17222
17223 * gimple-iterator.c (gsi_start_edge): New function.
17224 * gimple-iterator.h (gsi_start_edge): Declare.
17225 * tree-sra.c (single_non_eh_succ): New function.
17226 (disqualify_ops_if_throwing_stmt): Renamed to
17227 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
17228 having one non-EH successor BB.
17229 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
17230 generate loads into replacements.
17231 (sra_modify_assign): Likewise and and also use the simple path for
17232 such statements.
17233 (sra_modify_function_body): Commit statements on edges.
17234
17235 2014-04-17 Richard Biener <rguenther@suse.de>
17236
17237 PR middle-end/60849
17238 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
17239 comparison results and add clarifying comment.
17240
17241 2014-04-17 Jakub Jelinek <jakub@redhat.com>
17242
17243 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
17244 (blank_mode): Initialize it.
17245 (emit_mode_size_inline, emit_mode_nunits_inline,
17246 emit_mode_inner_inline): New functions.
17247 (emit_insn_modes_h): Call them and surround their output with
17248 #if GCC_VERSION >= 4001 ... #endif.
17249 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
17250 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
17251 mode_* arrays if the argument is __builtin_constant_p.
17252 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
17253 is enum machine_mode.
17254
17255 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
17256
17257 * passes.c (opt_pass::execute): Adjust.
17258 (pass_manager::execute_pass_mode_switching): Likewise.
17259 (early_local_passes::execute): Likewise.
17260 (execute_one_pass): Pass cfun to the pass's execute method.
17261 * tree-pass.h (opt_pass::execute): Add function * argument.
17262 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17263 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17264 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17265 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17266 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17267 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
17268 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
17269 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
17270 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
17271 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
17272 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
17273 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
17274 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
17275 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
17276 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
17277 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
17278 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
17279 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
17280 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17281 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17282 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17283 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17284 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17285 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17286 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17287 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17288 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17289 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17290 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
17291 Adjust.
17292
17293 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
17294
17295 * passes.c (opt_pass::gate): Take function * argument.
17296 (gate_all_early_local_passes): Merge into
17297 (early_local_passes::gate): this.
17298 (gate_all_early_optimizations): Merge into
17299 (all_early_optimizations::gate): this.
17300 (gate_all_optimizations): Mege into
17301 (all_optimizations::gate): this.
17302 (gate_all_optimizations_g): Merge into
17303 (all_optimizations_g::gate): this.
17304 (gate_rest_of_compilation): Mege into
17305 (rest_of_compilation::gate): this.
17306 (gate_postreload): Merge into
17307 (postreload::gate): this.
17308 (dump_one_pass): Pass cfun to the pass's gate method.
17309 (execute_ipa_summary_passes): Likewise.
17310 (execute_one_pass): Likewise.
17311 (ipa_write_summaries_2): Likewise.
17312 (ipa_write_optimization_summaries_1): Likewise.
17313 (ipa_read_summaries_1): Likewise.
17314 (ipa_read_optimization_summaries_1): Likewise.
17315 (execute_ipa_stmt_fixups): Likewise.
17316 * tree-pass.h (opt_pass::gate): Add function * argument.
17317 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
17318 combine-stack-adj.c, combine.c, compare-elim.c,
17319 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17320 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
17321 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
17322 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
17323 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
17324 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
17325 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
17326 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
17327 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
17328 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
17329 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
17330 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
17331 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
17332 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
17333 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17334 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17335 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17336 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17337 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17338 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17339 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17340 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17341 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
17342 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
17343 var-tracking.c, vtable-verify.c, web.c: Adjust.
17344
17345 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
17346
17347 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
17348 * configure: Regenerate.
17349
17350 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
17351
17352 * passes.c (dump_one_pass): don't check pass->has_gate.
17353 (execute_ipa_summary_passes): Likewise.
17354 (execute_one_pass): Likewise.
17355 (ipa_write_summaries_2): Likewise.
17356 (ipa_write_optimization_summaries_1): Likewise.
17357 (ipa_read_optimization_summaries_1): Likewise.
17358 (execute_ipa_stmt_fixups): Likewise.
17359 * tree-pass.h (pass_data::has_gate): Remove.
17360 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17361 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17362 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17363 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17364 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17365 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
17366 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
17367 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
17368 gimple-low.c, gimple-ssa-isolate-paths.c,
17369 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
17370 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
17371 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
17372 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
17373 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
17374 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
17375 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
17376 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
17377 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
17378 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
17379 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
17380 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17381 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17382 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17383 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17384 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17385 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17386 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17387 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17388 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17389 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17390 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
17391 Adjust.
17392
17393 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
17394
17395 * pass_manager.h (pass_manager::register_dump_files_1): Remove
17396 declaration.
17397 * passes.c (pass_manager::register_dump_files_1): Merge into
17398 (pass_manager::register_dump_files): this, and remove its handling of
17399 properties since the pass always has the properties anyway.
17400 (pass_manager::pass_manager): Adjust.
17401
17402 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
17403
17404 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
17405 * passes.c (pass_manager::register_dump_files_1): Remove dead code
17406 dealing with properties.
17407 (pass_manager::register_dump_files): Adjust.
17408
17409 2014-03-20 Mark Wielaard <mjw@redhat.com>
17410
17411 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
17412 then represent the bound as normal constant value.
17413
17414 2014-04-17 Jakub Jelinek <jakub@redhat.com>
17415
17416 PR target/60847
17417 Forward port from 4.8 branch
17418 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
17419
17420 * config/i386/bmiintrin.h (_blsi_u32): New.
17421 (_blsi_u64): Ditto.
17422 (_blsr_u32): Ditto.
17423 (_blsr_u64): Ditto.
17424 (_blsmsk_u32): Ditto.
17425 (_blsmsk_u64): Ditto.
17426 (_tzcnt_u32): Ditto.
17427 (_tzcnt_u64): Ditto.
17428
17429 2014-04-17 Kito Cheng <kito@0xlab.org>
17430
17431 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
17432
17433 2014-04-17 Richard Biener <rguenther@suse.de>
17434
17435 PR middle-end/60849
17436 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
17437 boolean results for comparisons.
17438
17439 2014-04-17 Richard Biener <rguenther@suse.de>
17440
17441 PR tree-optimization/60836
17442 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
17443 initial PHI args to be gimple values.
17444
17445 2014-04-17 Richard Biener <rguenther@suse.de>
17446
17447 PR tree-optimization/60841
17448 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
17449 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
17450 of stmts to SLP build.
17451 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
17452 (vect_analyze_slp): Likewise.
17453 (vect_analyze_slp_instance): Likewise.
17454 (vect_build_slp_tree): Limit overall SLP tree growth.
17455 * tree-vectorizer.h (vect_analyze_data_refs,
17456 vect_analyze_slp): Adjust prototypes.
17457
17458 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
17459
17460 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
17461 Silvermont.
17462
17463 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
17464
17465 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
17466 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
17467 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
17468 for TARGET_SLOW_PSHUFB
17469
17470 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
17471
17472 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
17473 * config/i386/i386.c (intel_cost): Ditto.
17474
17475 2014-04-17 Joey Ye <joey.ye@arm.com>
17476
17477 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
17478
17479 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
17480
17481 * opts.c (common_handle_option): Disable -fipa-reference coorectly
17482 with -fuse-profile.
17483
17484 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
17485
17486 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
17487 (type_all_derivations_known_p): New predicate.
17488 (type_all_ctors_visible_p): New predicate.
17489 (type_possibly_instantiated_p): New predicate.
17490 (get_odr_type): Compute all_derivations_known.
17491 (dump_odr_type): Dump the flag.
17492 (maybe_record_type): Cleanup.
17493 (record_target_from_binfo): Add bases_to_consider array;
17494 record bases for types w/o instances and skip CXX destructor.
17495 (possible_polymorphic_call_targets_1): Add bases_to_consider
17496 and consider_construction parameters; check if type may have instance.
17497 (get_polymorphic_call_info): Set maybe_in_construction to true
17498 when we know nothing.
17499 (record_targets_from_bases): Skip CXX destructors; they are
17500 never called for types in construction.
17501 (possible_polymorphic_call_targets): Do not record target when
17502 type may not have instance.
17503
17504 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
17505
17506 PR ipa/60854
17507 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
17508 external aliases alive, too.
17509
17510 2014-04-16 Andrew Pinski <apinski@cavium.com>
17511
17512 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
17513 definition.
17514
17515 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
17516
17517 * final.c (compute_alignments): Do not apply loop alignment to a block
17518 falling through to the exit.
17519
17520 2014-04-16 Catherine Moore <clm@codesourcery.com>
17521
17522 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
17523 Adjust constraints for microMIPS store patterns.
17524
17525 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
17526
17527 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
17528
17529 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
17530
17531 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
17532 (append_use): Run at -O0.
17533 (append_vdef): Likewise.
17534 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
17535 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
17536
17537 2014-04-16 Jakub Jelinek <jakub@redhat.com>
17538
17539 PR tree-optimization/60844
17540 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
17541 (propagate_op_to_single_use, remove_visited_stmt_chain,
17542 linearize_expr, repropagate_negates, reassociate_bb): Use it
17543 instead of gsi_remove.
17544
17545 2014-04-16 Martin Jambor <mjambor@suse.cz>
17546
17547 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
17548 ipa_transforms_to_apply.
17549 (cgraph_function_versioning): Assert that old_node has empty
17550 ipa_transforms_to_apply.
17551 * trans-mem.c (ipa_tm_create_version): Likewise.
17552 * tree-inline.c (tree_function_versioning): Do not duplicate
17553 ipa_transforms_to_apply.
17554
17555 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17556
17557 PR target/60817
17558 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
17559 x86_64-*-* cases.
17560 Pass necessary as flags on 64-bit Solaris/x86.
17561 Use lowercase relocs for x86_64-*-*.
17562 * configure: Regenerate.
17563
17564 2014-04-15 Jan Hubicka <jh@suse.cz>
17565
17566 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
17567 (maybe_record_node, likely_target_p): Use it.
17568
17569 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17570
17571 PR target/60839
17572 Revert following patch
17573
17574 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17575
17576 PR target/60735
17577 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
17578 software floating point or no floating point registers, do not
17579 allow any type in the FPRs. Eliminate a test for SPE SIMD types
17580 in GPRs that occurs after we tested for GPRs that would never be
17581 true.
17582
17583 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
17584 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
17585 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
17586 specifically allow DDmode, since that does not use the SPE SIMD
17587 instructions.
17588
17589 2014-03-21 Mark Wielaard <mjw@redhat.com>
17590
17591 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
17592 as unsigned or int depending on type and value used.
17593
17594 2014-04-15 Richard Biener <rguenther@suse.de>
17595
17596 PR rtl-optimization/56965
17597 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
17598 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
17599 ... here.
17600 * alias.c (true_dependence_1): Do not call
17601 nonoverlapping_component_refs_p.
17602 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
17603 nonoverlapping_component_refs_p.
17604 (indirect_refs_may_alias_p): Likewise.
17605
17606 2014-04-15 Teresa Johnson <tejohnson@google.com>
17607
17608 * cfg.c (dump_bb_info): Fix flags check.
17609 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
17610
17611 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17612
17613 PR rtl-optimization/60663
17614 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
17615 avoid 0 cost.
17616
17617 2014-04-15 Richard Biener <rguenther@suse.de>
17618
17619 * lto-streamer.h (LTO_major_version): Bump to 4.
17620
17621 2014-04-15 Richard Biener <rguenther@suse.de>
17622
17623 * common.opt (lto_partition_model): New enum.
17624 (flto-partition=): Merge separate options with a single with argument,
17625 add -flto-partition=one support.
17626 * flag-types.h (enum lto_partition_model): Declare.
17627 * opts.c (finish_options): Remove duplicate -flto-partition=
17628 option check.
17629 * lto-wrapper.c (run_gcc): Adjust.
17630
17631 2014-04-15 Richard Biener <rguenther@suse.de>
17632
17633 * alias.c (ncr_compar): New function.
17634 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
17635
17636 2014-04-15 Richard Biener <rguenther@suse.de>
17637
17638 * alias.c (record_component_aliases): Do not walk BINFOs.
17639
17640 2014-04-15 Richard Biener <rguenther@suse.de>
17641
17642 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17643 Add struct function argument and adjust.
17644 (find_func_aliases_for_call): Likewise.
17645 (find_func_aliases): Likewise.
17646 (find_func_clobbers): Likewise.
17647 (intra_create_variable_infos): Likewise.
17648 (compute_points_to_sets): Likewise.
17649 (ipa_pta_execute): Adjust. Do not push/pop cfun.
17650
17651 2014-04-15 Richard Biener <rguenther@suse.de>
17652
17653 * tree.c (iterative_hash_expr): Use enum tree_code_class
17654 to store TREE_CODE_CLASS.
17655 (tree_block): Likewise.
17656 (tree_set_block): Likewise.
17657 * tree.h (fold_build_pointer_plus_loc): Use
17658 convert_to_ptrofftype_loc.
17659
17660 2014-04-15 Jakub Jelinek <jakub@redhat.com>
17661
17662 PR plugins/59335
17663 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
17664 added in 4.9.
17665
17666 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
17667
17668 * cfgloop.h (struct loop): Move force_vectorize down.
17669 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
17670 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
17671 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
17672 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
17673 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
17674 * tree-core.h (enum annot_expr_kind): Add new kind values.
17675 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
17676 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
17677 kinds.
17678 * tree.def (ANNOTATE_EXPR): Tweak comment.
17679
17680 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17681
17682 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
17683 cxa_pure_virtual).
17684
17685 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
17686
17687 * tree.h (TYPE_IDENTIFIER): Declare.
17688 * tree.c (subrange_type_for_debug_p): Use it.
17689 * godump.c (go_format_type): Likewise.
17690 * dwarf2out.c (is_cxx_auto, modified_type_die,
17691 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
17692 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
17693
17694 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17695
17696 PR lto/60820
17697 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
17698
17699 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
17700
17701 * config/i386/i386.c (examine_argument): Return bool. Return true if
17702 parameter should be passed in memory.
17703 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
17704 (construct_container): Update calls to examine_argument.
17705 (function_arg_advance_64): Ditto.
17706 (return_in_memory_32): Merge with ix86_return_in_memory.
17707 (return_in_memory_64): Ditto.
17708 (return_in_memory_ms_64): Ditto.
17709
17710 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17711
17712 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
17713 * coverage.c (coverage_compute_profile_id): Handle externally visible
17714 symbols.
17715
17716 2014-04-14 Martin Jambor <mjambor@suse.cz>
17717
17718 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
17719 DECL_DISREGARD_INLINE_LIMITS functions.
17720
17721 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
17722
17723 PR target/60827
17724 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
17725
17726 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
17727
17728 PR target/60827
17729 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
17730 optimize_insn_for_speed_p instead of
17731 optimize_function_for_speed_p.
17732
17733 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
17734
17735 * doc/invoke.texi (free): Document AArch64.
17736
17737 2014-04-14 Richard Biener <rguenther@suse.de>
17738
17739 PR tree-optimization/60042
17740 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
17741 (insert_into_preds_of_block): Do not prevent PHI insertion
17742 for REFERENCE exprs here ...
17743 (eliminate_dom_walker::before_dom_children): ... but prevent
17744 their use here under similar conditions when applied to the
17745 IL after PRE optimizations.
17746
17747 2014-04-14 Richard Biener <rguenther@suse.de>
17748
17749 * passes.def: Move early points-to after early SRA.
17750
17751 2014-04-14 Richard Biener <rguenther@suse.de>
17752
17753 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
17754 check for which sign-changes we allow when forwarding
17755 a converted value into a switch.
17756
17757 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
17758
17759 * stor-layout.c (place_field): Finalize non-constant offset for the
17760 field, if any.
17761
17762 2014-04-14 Richard Biener <rguenther@suse.de>
17763
17764 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
17765 as argument.
17766 (expand_switch_using_bit_tests_p): Likewise.
17767 (process_switch): Compute and pass on speed_p based on the
17768 switch stmt.
17769 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
17770 optimize_bb_for_speed_p.
17771
17772 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
17773
17774 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
17775 * function.h (struct function): Rename has_force_vect_loops into
17776 has_force_vectorize_loops.
17777 * lto-streamer-in.c (input_cfg): Adjust for renaming.
17778 (input_struct_function_base): Likewise.
17779 * lto-streamer-out.c (output_cfg): Likewise.
17780 (output_struct_function_base): Likewise.
17781 * omp-low.c (expand_omp_simd): Likewise.
17782 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17783 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
17784 (version_loop_for_if_conversion): Likewise.
17785 (tree_if_conversion): Likewise.
17786 (main_tree_if_conversion): Likewise.
17787 (gate_tree_if_conversion): Likewise.
17788 * tree-inline.c (copy_loops): Likewise.
17789 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
17790 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
17791 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17792 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
17793 * tree-vectorizer.c (vectorize_loops): Likewise.
17794 * tree-vectorizer.h (unlimited_cost_model): Likewise.
17795
17796 2014-04-14 Richard Biener <rguenther@suse.de>
17797
17798 PR lto/60720
17799 * lto-streamer-out.c (wrap_refs): New function.
17800 (lto_output): Wrap symbol references in global initializes in
17801 type-preserving MEM_REFs.
17802
17803 2014-04-14 Christian Bruel <christian.bruel@st.com>
17804
17805 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
17806
17807 2014-04-14 Christian Bruel <christian.bruel@st.com>
17808
17809 * config/sh/sh.md (setmemqi): New expand pattern.
17810 * config/sh/sh.h (CLEAR_RATIO): Define.
17811 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
17812 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
17813
17814 2014-04-14 Richard Biener <rguenther@suse.de>
17815
17816 PR middle-end/55022
17817 * fold-const.c (negate_expr_p): Don't negate directional rounding
17818 division.
17819 (fold_negate_expr): Likewise.
17820
17821 2014-04-14 Richard Biener <rguenther@suse.de>
17822
17823 PR tree-optimization/59817
17824 PR tree-optimization/60453
17825 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
17826 recursion to catch all CHRECs in the scalar evolution and restrict
17827 the predicate for the remains appropriately.
17828
17829 2014-04-12 Catherine Moore <clm@codesourcery.com>
17830
17831 * config/mips/constraints.md: Add new register constraint "kb".
17832 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
17833 (*movhi_internal): Likewise.
17834 (*movqi_internal): Likewise.
17835 * config/mips/mips.h (M16_STORE_REGS): New register class.
17836 (REG_CLASS_NAMES): Add M16_STORE_REGS.
17837 (REG_CLASS_CONTENTS): Likewise.
17838 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
17839
17840 2014-04-11 Tobias Burnus <burnus@net-b.de>
17841
17842 PR c/60194
17843 * doc/invoke.texi (-Wformat-signedness): Document it.
17844 (Wformat=2): Mention that this enables -Wformat-signedness.
17845
17846 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17847
17848 * common/config/epiphany/epiphany-common.c
17849 (epiphany_option_optimization_table): Enable section anchors by
17850 default at -O1 or higher.
17851 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
17852 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
17853 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
17854 carries no extra cost.
17855 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
17856 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
17857 * config/epiphany/predicates.md (memclob_operand): New predicate.
17858 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
17859 Use memclob_operand predicate and X constraint for operand 3.
17860
17861 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17862
17863 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
17864 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
17865 its operands.
17866
17867 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17868
17869 PR rtl-optimization/60651
17870 * mode-switching.c (optimize_mode_switching): Make sure to emit
17871 sets of a lower numbered entity before sets of a higher numbered
17872 entity to a mode of the same or lower priority.
17873 When creating a seginfo for a basic block that starts with a code
17874 label, move the insertion point past the code label.
17875 (new_seginfo): Document and enforce requirement that
17876 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
17877 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
17878 * doc/tm.texi: Regenerate.
17879
17880 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
17881
17882 PR target/60811
17883 * config/arc/arc.c (arc_save_restore): Fix assert typo.
17884
17885 2013-04-11 Jakub Jelinek <jakub@redhat.com>
17886
17887 * BASE-VER: Set to 4.10.0.
17888
17889 2014-04-11 Tobias Burnus <burnus@net-b.de>
17890
17891 PR other/59055
17892 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
17893 * doc/gcc.texi (Service): Update description in the @menu
17894 * doc/invoke.texi (Option Summary): Remove misplaced and
17895 duplicated @menu.
17896
17897 2014-04-11 Steve Ellcey <sellcey@mips.com>
17898 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR middle-end/60556
17901 * expr.c (convert_move): Use emit_store_flag_force instead of
17902 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
17903 argument to it.
17904
17905 2014-04-11 Richard Biener <rguenther@suse.de>
17906
17907 PR middle-end/60797
17908 * varasm.c (assemble_alias): Avoid endless error reporting
17909 recursion by setting TREE_ASM_WRITTEN.
17910
17911 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17912
17913 * config/s390/s390.md: Add a splitter for NOT rtx.
17914
17915 2014-04-11 Jakub Jelinek <jakub@redhat.com>
17916
17917 PR rtl-optimization/60663
17918 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
17919
17920 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
17921 Jakub Jelinek <jakub@redhat.com>
17922
17923 PR lto/60567
17924 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
17925 flag from decl_node to node.
17926
17927 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17928
17929 PR debug/60655
17930 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
17931 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
17932 ameliorating the cases where it can be.
17933
17934 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
17935
17936 Revert
17937 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
17938
17939 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17940 (loadsync_<mode>): Change mode.
17941 (load_quadpti, store_quadpti): New.
17942 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17943 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17944 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
17945
17946 2014-04-09 Cong Hou <congh@google.com>
17947
17948 PR testsuite/60773
17949 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
17950 documentation.
17951
17952 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17953
17954 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
17955 instead of vnor to exploit possible fusion opportunity in the
17956 future.
17957 (altivec_expand_vec_perm_const_le): Likewise.
17958
17959 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
17960
17961 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17962 (loadsync_<mode>): Change mode.
17963 (load_quadpti, store_quadpti): New.
17964 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17965 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17966
17967 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
17968
17969 PR target/60763
17970 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
17971 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
17972 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
17973
17974 2014-04-08 Richard Biener <rguenther@suse.de>
17975
17976 PR middle-end/60706
17977 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
17978 a 64bit widest int print double-int similar to on HWI64 hosts.
17979
17980 2014-04-08 Richard Biener <rguenther@suse.de>
17981
17982 PR tree-optimization/60785
17983 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
17984 default defs properly.
17985
17986 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
17987
17988 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
17989 (Weffc++): Likewise.
17990
17991 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
17992
17993 * ipa-devirt.c (maybe_record_node): When node is not recorded,
17994 set completep to false rather than true.
17995
17996 2014-04-07 Douglas B Rupp <rupp@adacore.com>
17997
17998 PR target/60504
17999 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
18000 ARM_TARGET2_DWARF_FORMAT.
18001
18002 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
18003
18004 PR target/60609
18005 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
18006 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
18007 ADDR_DIFF_VEC.
18008
18009 2014-04-07 Richard Biener <rguenther@suse.de>
18010
18011 PR tree-optimization/60766
18012 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
18013 (may_eliminate_iv): Convert cand_value_at result to desired type.
18014
18015 2014-04-07 Jason Merrill <jason@redhat.com>
18016
18017 PR c++/60731
18018 * common.opt (-fno-gnu-unique): Add.
18019 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
18020
18021 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18022
18023 * haifa-sched.c: Fix outdated function reference and minor
18024 grammar errors in introductory comment.
18025
18026 2014-04-07 Richard Biener <rguenther@suse.de>
18027
18028 PR middle-end/60750
18029 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
18030 for noreturn calls.
18031 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
18032
18033 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
18034
18035 PR debug/55794
18036 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
18037 size accounting for thunks.
18038 (pa_asm_output_mi_thunk): Use final_start_function() and
18039 final_end_function() to output function start and end directives.
18040
18041 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
18042
18043 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
18044 device specific ISA/ feature information. Remove short_sp and
18045 errata_skip ds. Add avr_device_specific_features enum to have device
18046 specific info.
18047 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
18048 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
18049 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
18050 updated device specific info.
18051 * config/avr/avr-mcus.def: Merge device specific details to
18052 dev_attribute field.
18053 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
18054 errata_skip.
18055 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
18056 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
18057 assembler if RMW isa supported by current device.
18058 * config/avr/genmultilib.awk: Update as device info structure changed.
18059 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
18060
18061 2014-04-04 Cong Hou <congh@google.com>
18062
18063 PR tree-optimization/60656
18064 * tree-vect-stmts.c (supportable_widening_operation):
18065 Fix a bug that elements in a vector with vect_used_by_reduction
18066 property are incorrectly reordered when the operation on it is not
18067 consistant with the one in reduction operation.
18068
18069 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
18070
18071 PR rtl-optimization/60155
18072 * gcse.c (record_set_data): New function.
18073 (single_set_gcse): New function.
18074 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
18075 (hoist_code): Likewise.
18076 (get_pressure_class_and_nregs): Likewise.
18077
18078 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
18079
18080 * explow.c (probe_stack_range): Emit a final optimization blockage.
18081
18082 2014-04-04 Anthony Green <green@moxielogic.com>
18083
18084 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
18085 typos.
18086
18087 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
18088
18089 PR ipa/59626
18090 * lto-cgraph.c (input_overwrite_node): Check that partitioning
18091 flags are set only during streaming.
18092 * ipa.c (process_references, walk_polymorphic_call_targets,
18093 symtab_remove_unreachable_nodes): Drop bodies of always inline
18094 after early inlining.
18095 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
18096
18097 2014-04-04 Jakub Jelinek <jakub@redhat.com>
18098 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18099
18100 PR debug/60655
18101 * dwarf2out.c (const_ok_for_output_1): Reject expressions
18102 containing a NOT.
18103
18104 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18105
18106 PR bootstrap/60743
18107 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
18108 duration.
18109 (cortex_a53_fdivd): Likewise.
18110
18111 2014-04-04 Martin Jambor <mjambor@suse.cz>
18112
18113 PR ipa/60640
18114 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
18115 Adjust all callers.
18116 * cgraph.c (clone_of_p): Also return true if thunks match.
18117 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
18118 cgraph_function_or_thunk_node and an obsolete comment.
18119 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
18120 file.
18121 (build_function_decl_skip_args): Likewise.
18122 (set_new_clone_decl_and_node_flags): New function.
18123 (duplicate_thunk_for_node): Likewise.
18124 (redirect_edge_duplicating_thunks): Likewise.
18125 (cgraph_clone_node): New parameter args_to_skip, pass it to
18126 redirect_edge_duplicating_thunks which is called instead of
18127 cgraph_redirect_edge_callee.
18128 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
18129 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
18130
18131 2014-04-04 Jeff Law <law@redhat.com>
18132
18133 PR target/60657
18134 * config/arm/predicates.md (const_int_I_operand): New predicate.
18135 (const_int_M_operand): Similarly.
18136 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
18137 const_int_operand.
18138 (insv_t2, extv_reg, extzv_t2): Likewise.
18139 (load_multiple_with_writeback): Similarly for const_int_I_operand.
18140 (pop_multiple_with_writeback_and_return): Likewise.
18141 (vfp_pop_multiple_with_writeback): Likewise
18142
18143 2014-04-04 Richard Biener <rguenther@suse.de>
18144
18145 PR ipa/60746
18146 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
18147 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
18148 non-GIMPLE_LABELs.
18149 * gimplify.h (gimple_add_tmp_var_fn): Declare.
18150 * gimplify.c (gimple_add_tmp_var_fn): New function.
18151 * gimple-expr.h (create_tmp_reg_fn): Declare.
18152 * gimple-expr.c (create_tmp_reg_fn): New function.
18153 * gimple-low.c (record_vars_into): Don't change cfun.
18154 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
18155 code generation without cfun.
18156
18157 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
18158
18159 PR bootstrap/60719
18160 * Makefile.in (install-driver): Fix shell scripting.
18161
18162 2014-04-03 Cong Hou <congh@google.com>
18163
18164 PR tree-optimization/60505
18165 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
18166 threshold of number of iterations below which no vectorization
18167 will be done.
18168 * tree-vect-loop.c (new_loop_vec_info):
18169 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
18170 * tree-vect-loop.c (vect_analyze_loop_operations):
18171 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
18172 * tree-vect-loop.c (vect_transform_loop):
18173 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
18174 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
18175 of iterations of the loop and see if we should build the epilogue.
18176
18177 2014-04-03 Richard Biener <rguenther@suse.de>
18178
18179 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
18180 (streamer_tree_cache_create): Adjust.
18181 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
18182 to allow optional nodes array.
18183 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
18184 (streamer_tree_cache_append): Likewise.
18185 (streamer_tree_cache_create): Create nodes array optionally
18186 as specified by parameter.
18187 * lto-streamer-out.c (create_output_block): Avoid maintaining
18188 the node array in the writer cache.
18189 (DFS_write_tree): Remove assertion.
18190 (produce_asm_for_decls): Free the out decl state hash table early.
18191 * lto-streamer-in.c (lto_data_in_create): Adjust for
18192 streamer_tree_cache_create prototype change.
18193
18194 2014-04-03 Richard Biener <rguenther@suse.de>
18195
18196 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
18197 set TREE_CHAIN to NULL_TREE.
18198
18199 2014-04-03 Richard Biener <rguenther@suse.de>
18200
18201 PR tree-optimization/60740
18202 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
18203 over all GIMPLE_COND operands.
18204
18205 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
18206
18207 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
18208 (Weffc++): Remove Scott's numbering, merge lists and reference
18209 Wnon-virtual-dtor.
18210
18211 2014-04-03 Nick Clifton <nickc@redhat.com>
18212
18213 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
18214 properly.
18215
18216 2014-04-03 Martin Jambor <mjambor@suse.cz>
18217
18218 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
18219 mention gcc_unreachable before failing.
18220 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
18221 removed symbols.
18222
18223 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
18224
18225 PR ipa/60659
18226 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
18227 inconsistent code and instead mark the context inconsistent.
18228 (possible_polymorphic_call_targets): For inconsistent contexts
18229 return empty complete list.
18230
18231 2014-04-02 Anthony Green <green@moxielogic.com>
18232
18233 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
18234 (extendqisi2, extendhisi2): Define.
18235 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
18236 (WCHAR_TYPE): Change to unsigned int.
18237
18238 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18239
18240 PR tree-optimization/60733
18241 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
18242 insertion point for PHI candidates to be the end of the feeding
18243 block for the PHI argument.
18244
18245 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
18246
18247 PR rtl-optimization/60650
18248 * lra-constraints.c (process_alt_operands): Decrease reject for
18249 earlyclobber matching.
18250
18251 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18252
18253 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
18254
18255 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18256
18257 * config/spu/spu.c (pad_bb): Do not crash when the last
18258 insn is CODE_FOR_blockage.
18259
18260 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18261
18262 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
18263 lies outside the target mode.
18264
18265 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18266
18267 PR target/60735
18268 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
18269 software floating point or no floating point registers, do not
18270 allow any type in the FPRs. Eliminate a test for SPE SIMD types
18271 in GPRs that occurs after we tested for GPRs that would never be
18272 true.
18273
18274 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
18275 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
18276 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
18277 specifically allow DDmode, since that does not use the SPE SIMD
18278 instructions.
18279
18280 2014-04-02 Richard Biener <rguenther@suse.de>
18281
18282 PR middle-end/60729
18283 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
18284 MODE_INTs. Properly use negv_optab.
18285 (expand_abs): Likewise.
18286
18287 2014-04-02 Richard Biener <rguenther@suse.de>
18288
18289 PR bootstrap/60719
18290 * Makefile.in (install-driver): Guard extra installs with special
18291 names properly.
18292
18293 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18294
18295 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18296 Document vec_vgbbd.
18297
18298 2014-04-01 Richard Henderson <rth@redhat.com>
18299
18300 PR target/60704
18301 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
18302 alternative enabled before register allocation.
18303
18304 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
18305
18306 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
18307 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
18308 typo.
18309 (nios2_large_got_address): Remove unneeded 'sym' parameter.
18310 (nios2_got_address): Update nios2_large_got_address call site.
18311 (nios2_delegitimize_address): New function.
18312 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
18313 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18314 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
18315
18316 2014-04-01 Martin Husemann <martin@duskware.de>
18317
18318 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
18319 for -mabi=32.
18320
18321 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
18322
18323 PR rtl-optimization/60604
18324 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
18325 check from register_operand.
18326 (register_operand): Redefine in terms of general_operand.
18327 (nonmemory_operand): Use register_operand for the non-constant cases.
18328
18329 2014-04-01 Richard Biener <rguenther@suse.de>
18330
18331 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
18332
18333 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
18334
18335 * doc/invoke.texi (mapp-regs): Clarify.
18336
18337 2014-03-31 Ulrich Drepper <drepper@gmail.com>
18338
18339 * config/i386/avx512fintrin.h (__v32hi): Define type.
18340 (__v64qi): Likewise.
18341 (_mm512_set1_epi8): Define.
18342 (_mm512_set1_epi16): Define.
18343 (_mm512_set4_epi32): Define.
18344 (_mm512_set4_epi64): Define.
18345 (_mm512_set4_pd): Define.
18346 (_mm512_set4_ps): Define.
18347 (_mm512_setr4_epi64): Define.
18348 (_mm512_setr4_epi32): Define.
18349 (_mm512_setr4_pd): Define.
18350 (_mm512_setr4_ps): Define.
18351 (_mm512_setzero_epi32): Define.
18352
18353 2014-03-31 Martin Jambor <mjambor@suse.cz>
18354
18355 PR middle-end/60647
18356 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
18357 callsite_arguments_match_p. Updated all callers. Also check types of
18358 corresponding formal parameters and actual arguments.
18359 (not_all_callers_have_enough_arguments_p) Renamed to
18360 some_callers_have_mismatched_arguments_p.
18361
18362 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
18363
18364 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
18365
18366 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
18367
18368 PR target/60034
18369 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
18370 section anchor.
18371
18372 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
18373
18374 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
18375 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
18376 Split out
18377 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
18378 Use FMAMODE_NOVF512 mode iterator.
18379 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
18380 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
18381 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
18382 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
18383 Split out
18384 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
18385 Use VF_128_256 mode iterator.
18386 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
18387 Ditto.
18388
18389 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
18390
18391 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
18392 static chain if needed.
18393
18394 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
18395
18396 PR target/60697
18397 * lra-constraints.c (index_part_to_reg): New.
18398 (process_address): Use it.
18399
18400 2014-03-27 Jeff Law <law@redhat.com>
18401 Jakub Jelinek <jakub@redhat.com>
18402
18403 PR target/60648
18404 * expr.c (do_tablejump): Use simplify_gen_binary rather than
18405 gen_rtx_{PLUS,MULT} to build up the address expression.
18406
18407 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
18408 creating non-canonical RTL.
18409
18410 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
18411
18412 PR ipa/60243
18413 * ipa-inline.c (want_inline_small_function_p): Short circuit large
18414 functions; reorganize to make cheap checks first.
18415 (inline_small_functions): Do not estimate growth when dumping;
18416 it is expensive.
18417 * ipa-inline.h (inline_summary): Add min_size.
18418 (growth_likely_positive): New function.
18419 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
18420 (set_cond_stmt_execution_predicate): Cleanup.
18421 (estimate_edge_size_and_time): Compute min_size.
18422 (estimate_calls_size_and_time): Likewise.
18423 (estimate_node_size_and_time): Likewise.
18424 (inline_update_overall_summary): Update min_size.
18425 (do_estimate_edge_time): Likewise.
18426 (do_estimate_edge_size): Update.
18427 (do_estimate_edge_hints): Update.
18428 (growth_likely_positive): New function.
18429
18430 2014-03-28 Jakub Jelinek <jakub@redhat.com>
18431
18432 PR target/60693
18433 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
18434 also if addr has VOIDmode.
18435
18436 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18437
18438 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
18439 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18440 Declare extern.
18441 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
18442 instructions as well as AdvancedSIMD loads.
18443
18444 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18445
18446 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
18447 Use crypto_aese type.
18448 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
18449 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
18450 crypto_aese, crypto_aesmc. Move to types.md.
18451 * config/arm/types.md (crypto_aes): Split into crypto_aese,
18452 crypto_aesmc.
18453 * config/arm/iterators.md (crypto_type): Likewise.
18454
18455 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
18456
18457 * cgraph.c: Include expr.h and tree-dfa.h.
18458 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
18459 remove LHS.
18460
18461 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
18462
18463 PR target/60675
18464 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
18465 regs from checking multi-reg pseudos.
18466
18467 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18468
18469 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
18470
18471 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18472
18473 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
18474 if it would clobber the stack pointer, even temporarily.
18475
18476 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
18477
18478 * mode-switching.c: Make small adjustments to the top comment.
18479
18480 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
18481
18482 * config/rs6000/constraints.md (wD constraint): New constraint to
18483 match the constant integer to get the top DImode/DFmode out of a
18484 vector in a VSX register.
18485
18486 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
18487 match the constant integer to get the top DImode/DFmode out of a
18488 vector in a VSX register.
18489
18490 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
18491 for ISA 2.07.
18492
18493 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18494 vbpermq builtins.
18495
18496 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
18497 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
18498
18499 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
18500 Optimize vec_extract of 64-bit values, where the value being
18501 extracted is in the top word, where we can use scalar
18502 instructions. Add direct move and store support. Combine the big
18503 endian/little endian vector select load support into a single insn.
18504 (vsx_extract_<mode>_internal1): Likewise.
18505 (vsx_extract_<mode>_internal2): Likewise.
18506 (vsx_extract_<mode>_load): Likewise.
18507 (vsx_extract_<mode>_store): Likewise.
18508 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
18509 combined into vsx_extract_<mode>_load.
18510 (vsx_extract_<mode>_one_le): Likewise.
18511
18512 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
18513 define the top 64-bit vector element.
18514
18515 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
18516 constraint.
18517
18518 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18519 Document vec_vbpermq builtin.
18520
18521 PR target/60672
18522 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
18523 enable use of xxsldwi and xxpermdi builtin functions.
18524 (vec_xxpermdi): Likewise.
18525
18526 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18527 Document use of vec_xxsldwi and vec_xxpermdi builtins.
18528
18529 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
18530
18531 PR rtl-optimization/60650
18532 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
18533 first_p. Use it.
18534 (find_spills_for): New.
18535 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
18536 Spill all pseudos on the second iteration.
18537
18538 2014-03-27 Marek Polacek <polacek@redhat.com>
18539
18540 PR c/50347
18541 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
18542 types.
18543
18544 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18545
18546 * config/s390/s390.c (s390_can_use_return_insn): Check for
18547 call-saved FPRs on 31 bit.
18548
18549 2014-03-27 Jakub Jelinek <jakub@redhat.com>
18550
18551 PR middle-end/60682
18552 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
18553 if they need regimplification, just drop them instead of
18554 calling gimple_regimplify_operands on them.
18555
18556 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
18557
18558 PR target/60580
18559 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
18560 (aarch64_frame_pointer_required): Adjust logic.
18561 (aarch64_can_eliminate): Adjust logic.
18562 (aarch64_override_options_after_change): Adjust logic.
18563
18564 2014-03-27 Dehao Chen <dehao@google.com>
18565
18566 * ipa-inline.c (early_inliner): Update node's inline info.
18567
18568 2014-03-26 Dehao Chen <dehao@google.com>
18569
18570 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
18571 compiler inserted conditional jumps for NAN float check.
18572
18573 2014-03-26 Jakub Jelinek <jakub@redhat.com>
18574
18575 * ubsan.h (ubsan_create_data): Change second argument's type
18576 to const location_t *.
18577 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
18578 _("<unknown>").
18579 (ubsan_create_data): Change second argument to const location_t *PLOC.
18580 Create Loc field whenever PLOC is non-NULL.
18581 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
18582 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
18583 callers.
18584
18585 PR other/59545
18586 * real.c (real_to_integer2): Change type of low to UHWI.
18587
18588 2014-03-26 Tobias Burnus <burnus@net-b.de>
18589
18590 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
18591 (CILK_SELF_SPECS): New define.
18592 (driver_self_specs): Use it.
18593
18594 2014-03-26 Richard Biener <rguenther@suse.de>
18595
18596 * tree-pretty-print.c (percent_K_format): Implement special
18597 case for LTO and its stripped down BLOCK tree.
18598
18599 2014-03-26 Jakub Jelinek <jakub@redhat.com>
18600
18601 PR sanitizer/60636
18602 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
18603
18604 * tree-vrp.c (simplify_internal_call_using_ranges): If only
18605 one range is range_int_cst_p, but not both, at least optimize
18606 addition/subtraction of 0 and multiplication by 0 or 1.
18607 * gimple-fold.c (gimple_fold_call): Fold
18608 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
18609 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
18610 INTEGER_CSTs, try to fold at least x * 0 and y - y.
18611
18612 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
18613
18614 PR rtl-optimization/60452
18615 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
18616 <case REG>: Return 1 for invalid offsets from the frame pointer.
18617
18618 2014-03-26 Marek Polacek <polacek@redhat.com>
18619
18620 PR c/37428
18621 * doc/extend.texi (C Extensions): Mention variable-length arrays in
18622 a structure/union.
18623
18624 2014-03-26 Marek Polacek <polacek@redhat.com>
18625
18626 PR c/39525
18627 * doc/extend.texi (Designated Inits): Describe what happens to omitted
18628 field members.
18629
18630 2014-03-26 Marek Polacek <polacek@redhat.com>
18631
18632 PR other/59545
18633 * ira-color.c (update_conflict_hard_regno_costs): Perform the
18634 multiplication in unsigned type.
18635
18636 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
18637
18638 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
18639
18640 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
18641
18642 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
18643
18644 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
18645
18646 PR ipa/60315
18647 * cif-code.def (UNREACHABLE) New code.
18648 * ipa-inline.c (inline_small_functions): Skip edges to
18649 __builtlin_unreachable.
18650 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
18651 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
18652 predicate to __bulitin_unreachable.
18653 (set_cond_stmt_execution_predicate): Fix issue when
18654 invert_tree_comparison returns ERROR_MARK.
18655 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
18656 propagate to inline clones.
18657 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
18658 to unreachable.
18659 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
18660 * cgraphclones.c (cgraph_clone_node): If call destination is already
18661 ureachable, do not redirect it back.
18662 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
18663 unreachable.
18664
18665 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
18666
18667 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
18668 Do not modify inline clones.
18669
18670 2014-03-25 Jakub Jelinek <jakub@redhat.com>
18671
18672 * config/i386/i386.md (general_sext_operand): New mode attr.
18673 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
18674 don't generate (sign_extend (const_int)).
18675 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
18676 operands[2]. Use We constraint instead of <i> and
18677 <general_sext_operand> predicate instead of <general_operand>.
18678 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
18679 * config/i386/constraints.md (We): New constraint.
18680 * config/i386/predicates.md (x86_64_sext_operand,
18681 sext_operand): New predicates.
18682
18683 2014-03-25 Martin Jambor <mjambor@suse.cz>
18684
18685 PR ipa/60600
18686 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
18687 inconsistent devirtualizations to __builtin_unreachable.
18688
18689 2014-03-25 Marek Polacek <polacek@redhat.com>
18690
18691 PR c/35449
18692 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
18693
18694 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
18695
18696 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
18697 order of elements for big-endian.
18698
18699 2014-03-25 Richard Biener <rguenther@suse.de>
18700
18701 PR middle-end/60635
18702 * gimplify-me.c (gimple_regimplify_operands): Update the
18703 re-gimplifed stmt.
18704
18705 2014-03-25 Martin Jambor <mjambor@suse.cz>
18706
18707 PR ipa/59176
18708 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
18709 (lto_output_varpool_node): Likewise.
18710 (input_overwrite_node): Likewise.
18711 (input_varpool_node): Likewise.
18712
18713 2014-03-25 Richard Biener <rguenther@suse.de>
18714
18715 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
18716 (run_gcc): Likewise.
18717
18718 2014-03-25 Jakub Jelinek <jakub@redhat.com>
18719
18720 * combine.c (simplify_compare_const): Add MODE argument.
18721 Handle mode_width 0 as very large mode_width.
18722 (try_combine, simplify_comparison): Adjust callers.
18723
18724 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
18725 type to avoid signed integer overflow.
18726 * explow.c (plus_constant): Likewise.
18727
18728 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18729
18730 * doc/generic.texi: Correct typos.
18731
18732 2014-03-24 Tobias Burnus <burnus@net-b.de>
18733
18734 * doc/invoke.texi (-flto): Expand section about
18735 using static libraries with LTO.
18736
18737 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18738
18739 PR rtl-optimization/60501
18740 * optabs.def (addptr3_optab): New optab.
18741 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
18742 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
18743 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
18744
18745 * lra.c (emit_add3_insn): Use the addptr pattern if available.
18746
18747 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
18748
18749 2014-03-24 Ulrich Drepper <drepper@gmail.com>
18750
18751 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
18752 _mm512_set1_pd.
18753
18754 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
18755 (_mm256_undefined_ps): Define.
18756 (_mm256_undefined_pd): Define.
18757 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
18758 (_mm_undefined_pd): Define.
18759 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
18760 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
18761 (_mm512_undefined_ps): Define.
18762 (_mm512_undefined_pd): Define.
18763 Use _mm*_undefined_*.
18764 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
18765
18766 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
18767
18768 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
18769 (lshr_simd): DI mode added.
18770 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
18771 (aarch64_ushr_simddi): Likewise.
18772 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
18773 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
18774 (vshrd_n_u64): Likewise.
18775
18776 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18777
18778 * Makefile.in (s-macro_list): Depend on cc1.
18779
18780 2014-03-23 Teresa Johnson <tejohnson@google.com>
18781
18782 * ipa-utils.c (ipa_print_order): Use specified dump file.
18783
18784 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
18785
18786 PR rtl-optimization/60601
18787 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
18788
18789 * gcc.c (eval_spec_function): Initialize save_growing_value.
18790
18791 2014-03-22 Jakub Jelinek <jakub@redhat.com>
18792
18793 PR sanitizer/60613
18794 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
18795 code == MINUS_EXPR, never swap op0 with op1.
18796
18797 * toplev.c (init_local_tick): Avoid signed integer multiplication
18798 overflow.
18799 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
18800 shift by first operand's bitsize.
18801
18802 2014-03-21 Jakub Jelinek <jakub@redhat.com>
18803
18804 PR target/60610
18805 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
18806 redefine to 1 or 0.
18807 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
18808 TARGET_ISA_64BIT_P(x).
18809
18810 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18811
18812 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
18813 pattern for vector nor instead of subtract from splat(-1).
18814 (altivec_expand_vec_perm_const_le): Likewise.
18815
18816 2014-03-21 Richard Henderson <rth@twiddle.net>
18817
18818 PR target/60598
18819 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
18820 related insns after epilogue_completed.
18821
18822 2014-03-21 Martin Jambor <mjambor@suse.cz>
18823
18824 PR ipa/59176
18825 * cgraph.h (symtab_node): New flag body_removed.
18826 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
18827 when removing bodies.
18828 * symtab.c (dump_symtab_base): Dump body_removed flag.
18829 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
18830 had their bodies removed.
18831
18832 2014-03-21 Martin Jambor <mjambor@suse.cz>
18833
18834 PR ipa/60419
18835 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
18836 in the border.
18837
18838 2014-03-21 Richard Biener <rguenther@suse.de>
18839
18840 PR tree-optimization/60577
18841 * tree-core.h (struct tree_base): Document nothrow_flag use
18842 in DECL_NONALIASED.
18843 * tree.h (DECL_NONALIASED): New.
18844 (may_be_aliased): Adjust.
18845 * coverage.c (build_var): Set DECL_NONALIASED.
18846
18847 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18848
18849 * expr.c (expand_expr_real_1): Remove outdated comment.
18850
18851 2014-03-20 Jakub Jelinek <jakub@redhat.com>
18852
18853 PR middle-end/60597
18854 * ira.c (adjust_cleared_regs): Call copy_rtx on
18855 *reg_equiv[REGNO (loc)].src_p before passing it to
18856 simplify_replace_fn_rtx.
18857
18858 PR target/60568
18859 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
18860 into CONST, put pic register as first operand of PLUS. Use
18861 gen_const_mem for both 32-bit and 64-bit PIC got loads.
18862
18863 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18864
18865 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
18866
18867 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18868
18869 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
18870 around for store forwarding issue in the FPU on the UT699.
18871 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
18872 loads and operations if -mfix-ut699 is specified.
18873 (divtf3_hq): Tweak attribute.
18874 (sqrttf2_hq): Likewise.
18875
18876 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18877
18878 * calls.c (store_one_arg): Remove incorrect const qualification on the
18879 type of the temporary.
18880 * cfgexpand.c (expand_return): Likewise.
18881 * expr.c (expand_constructor): Likewise.
18882 (expand_expr_real_1): Likewise.
18883
18884 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18885
18886 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
18887 of parts.
18888
18889 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
18890
18891 PR target/60039
18892 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
18893
18894 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
18895
18896 * config/arm/aarch-common-protos.h
18897 (alu_cost_table): Fix spelling of "extend".
18898 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
18899
18900 2014-03-19 Richard Biener <rguenther@suse.de>
18901
18902 PR middle-end/60553
18903 * tree-core.h (tree_type_common): Re-order pointer members
18904 to reduce recursion depth during GC walks.
18905
18906 2014-03-19 Marek Polacek <polacek@redhat.com>
18907
18908 PR sanitizer/60569
18909 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
18910 before accessing it.
18911
18912 2014-03-19 Richard Biener <rguenther@suse.de>
18913
18914 PR lto/59543
18915 * lto-streamer-in.c (input_function): In WPA stage do not drop
18916 debug stmts.
18917
18918 2014-03-19 Jakub Jelinek <jakub@redhat.com>
18919
18920 PR tree-optimization/60559
18921 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
18922 with build_zero_cst assignment.
18923
18924 2014-03-18 Kai Tietz <ktietz@redhat.com>
18925
18926 PR rtl-optimization/56356
18927 * sdbout.c (sdbout_parms): Verify that parms'
18928 incoming argument is valid.
18929 (sdbout_reg_parms): Likewise.
18930
18931 2014-03-18 Richard Henderson <rth@redhat.com>
18932
18933 PR target/60562
18934 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
18935 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
18936 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
18937
18938 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
18939
18940 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
18941 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
18942 Italicize plugin event names in description. Explain that
18943 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
18944 Remind that no GCC functions should be called after PLUGIN_FINISH.
18945 Explain what pragmas with expansion are.
18946
18947 2014-03-18 Martin Liska <mliska@suse.cz>
18948
18949 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
18950 gimple call statement is update.
18951 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
18952 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
18953
18954 2014-03-18 Jakub Jelinek <jakub@redhat.com>
18955
18956 PR sanitizer/60557
18957 * ubsan.c (ubsan_instrument_unreachable): Call
18958 initialize_sanitizer_builtins.
18959 (ubsan_pass): Likewise.
18960
18961 PR sanitizer/60535
18962 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
18963 varpool_finalize_decl instead of rest_of_decl_compilation.
18964
18965 2014-03-18 Richard Biener <rguenther@suse.de>
18966
18967 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
18968 by using bitmap_and_compl instead of bitmap_and_compl_into.
18969 (df_rd_transfer_function): Likewise.
18970
18971 2014-03-18 Richard Biener <rguenther@suse.de>
18972
18973 * doc/lto.texi (fresolution): Fix typo.
18974
18975 2014-03-18 Richard Biener <rguenther@suse.de>
18976
18977 * doc/invoke.texi (flto): Update for changes in 4.9.
18978
18979 2014-03-18 Richard Biener <rguenther@suse.de>
18980
18981 * doc/loop.texi: Remove section on the removed lambda framework.
18982 Update loop docs with recent changes in preserving loop structure.
18983
18984 2014-03-18 Richard Biener <rguenther@suse.de>
18985
18986 * doc/lto.texi (-fresolution): Document.
18987
18988 2014-03-18 Richard Biener <rguenther@suse.de>
18989
18990 * doc/contrib.texi: Adjust my name.
18991
18992 2014-03-18 Jakub Jelinek <jakub@redhat.com>
18993
18994 PR ipa/58721
18995 * internal-fn.c: Include diagnostic-core.h.
18996 (expand_BUILTIN_EXPECT): New function.
18997 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
18998 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
18999 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
19000 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
19001 IFN_BUILTIN_EXPECT.
19002 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
19003 Revert 3 argument __builtin_expect code.
19004 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
19005 * gimple-fold.c (gimple_fold_call): Likewise.
19006 * tree.h (fold_builtin_expect): New prototype.
19007 * builtins.c (build_builtin_expect_predicate): Add predictor
19008 argument, if non-NULL, create 3 argument __builtin_expect.
19009 (fold_builtin_expect): No longer static. Add ARG2 argument,
19010 pass it through to build_builtin_expect_predicate.
19011 (fold_builtin_2): Adjust caller.
19012 (fold_builtin_3): Handle BUILT_IN_EXPECT.
19013 * internal-fn.def (BUILTIN_EXPECT): New.
19014
19015 2014-03-18 Tobias Burnus <burnus@net-b.de>
19016
19017 PR ipa/58721
19018 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
19019 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
19020 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
19021
19022 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
19023
19024 PR ipa/58721
19025 * predict.c (combine_predictions_for_bb): Fix up formatting.
19026 (expr_expected_value_1, expr_expected_value): Add predictor argument,
19027 fill what it points to if non-NULL.
19028 (tree_predict_by_opcode): Adjust caller, use the predictor.
19029 * predict.def (PRED_COMPARE_AND_SWAP): Add.
19030
19031 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
19032
19033 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
19034 proper constant for the store mode.
19035
19036 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
19037
19038 * symtab.c (change_decl_assembler_name): Fix transparent alias
19039 chain construction.
19040
19041 2014-03-16 Renlin Li <Renlin.Li@arm.com>
19042
19043 * config/aarch64/aarch64.c: Correct the comments about the
19044 aarch64 stack layout.
19045
19046 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
19047
19048 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
19049 check for GF_OMP_FOR_KIND_FOR.
19050
19051 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
19052
19053 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
19054 ymm and zmm register names.
19055
19056 2014-03-17 Jakub Jelinek <jakub@redhat.com>
19057
19058 PR target/60516
19059 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
19060 note creation for the 2010-08-31 changes.
19061
19062 2014-03-17 Marek Polacek <polacek@redhat.com>
19063
19064 PR middle-end/60534
19065 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
19066 as -fno-tree-loop-vectorize.
19067 (expand_omp_simd): Likewise.
19068
19069 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
19070
19071 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
19072 (eligible_for_call_delay): New prototype.
19073 * config/sparc/sparc.c (tls_call_delay): Rename into...
19074 (eligible_for_call_delay): ...this. Return false if the instruction
19075 cannot be put in the delay slot of a branch.
19076 (eligible_for_restore_insn): Simplify.
19077 (eligible_for_return_delay): Return false if the instruction cannot be
19078 put in the delay slot of a branch and simplify.
19079 (eligible_for_sibcall_delay): Return false if the instruction cannot be
19080 put in the delay slot of a branch.
19081 * config/sparc/sparc.md (fix_ut699): New attribute.
19082 (tls_call_delay): Delete.
19083 (in_call_delay): Reimplement.
19084 (eligible_for_sibcall_delay): Rename into...
19085 (in_sibcall_delay): ...this.
19086 (eligible_for_return_delay): Rename into...
19087 (in_return_delay): ...this.
19088 (in_branch_delay): Reimplement.
19089 (in_uncond_branch_delay): Delete.
19090 (in_annul_branch_delay): Delete.
19091
19092 2014-03-14 Richard Henderson <rth@redhat.com>
19093
19094 PR target/60525
19095 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
19096 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
19097 (*floathi<X87MODEF>2_i387_with_temp): Remove.
19098 (floathi splitters): Remove.
19099 (float<SWI48x>xf2): New pattern.
19100 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
19101 code that tried to handle DImode for 32-bit, but which was excluded
19102 by the pattern's condition. Drop allocation of stack temporary.
19103 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
19104 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
19105 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
19106 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
19107 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
19108 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
19109 (*float<SWI48><MODEF>2_sse_interunit): Remove.
19110 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
19111 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
19112 (*float<SWI48x><X87MODEF>2_i387): Remove.
19113 (all float _with_temp splitters): Remove.
19114 (*float<SWI48x><MODEF>2_i387): New pattern.
19115 (*float<SWI48><MODEF>2_sse): New pattern.
19116 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
19117 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
19118
19119 2014-03-14 Jakub Jelinek <jakub@redhat.com>
19120 Marek Polacek <polacek@redhat.com>
19121
19122 PR middle-end/60484
19123 * common.opt (dump_base_name_prefixed): New Variable.
19124 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
19125 if x_dump_base_name_prefixed is already set, set it at the end.
19126
19127 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
19128
19129 PR rtl-optimization/60508
19130 * lra-constraints.c (get_reload_reg): Add new parameter
19131 in_subreg_p.
19132 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
19133 Pass the new parameter values.
19134
19135 2014-03-14 Richard Biener <rguenther@suse.de>
19136
19137 * common.opt: Revert unintented changes from r205065.
19138 * opts.c: Likewise.
19139
19140 2014-03-14 Richard Biener <rguenther@suse.de>
19141
19142 PR middle-end/60518
19143 * cfghooks.c (split_block): Properly adjust all loops the
19144 block was a latch of.
19145
19146 2014-03-14 Martin Jambor <mjambor@suse.cz>
19147
19148 PR lto/60461
19149 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
19150 and simplify it.
19151
19152 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
19153
19154 PR target/59396
19155 * config/avr/avr.c (avr_set_current_function): Pass function name
19156 through default_strip_name_encoding before sanity checking instead
19157 of skipping the first char of the assembler name.
19158
19159 2014-03-13 Richard Henderson <rth@redhat.com>
19160
19161 PR debug/60438
19162 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
19163 (ix86_force_to_memory, ix86_free_from_memory): Remove.
19164 * config/i386/i386-protos.h: Likewise.
19165 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
19166 in the expander instead of a splitter.
19167 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
19168 any possibility of requiring a memory.
19169 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
19170 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
19171 (fp branch splitters): Update for ix86_split_fp_branch.
19172 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
19173 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
19174 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
19175 (*fop_<MODEF>_2_i387): Remove f/r alternative.
19176 (*fop_<MODEF>_3_i387): Likewise.
19177 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
19178 (splitters for the fop_* register patterns): Remove.
19179 (fscalexf4_i387): Rename from *fscalexf4_i387.
19180 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
19181
19182 2014-03-13 Jakub Jelinek <jakub@redhat.com>
19183
19184 PR tree-optimization/59779
19185 * tree-dfa.c (get_ref_base_and_extent): Use double_int
19186 type for bitsize and maxsize instead of HOST_WIDE_INT.
19187
19188 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
19189
19190 PR rtl-optimization/57320
19191 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
19192 the CFG after thread_prologue_and_epilogue_insns.
19193
19194 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
19195
19196 PR rtl-optimization/57189
19197 * lra-constraints.c (process_alt_operands): Disfavor spilling
19198 vector pseudos.
19199
19200 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
19201
19202 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
19203
19204 2014-03-13 Jakub Jelinek <jakub@redhat.com>
19205
19206 PR tree-optimization/59025
19207 PR middle-end/60418
19208 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
19209 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
19210
19211 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
19212
19213 PR target/60486
19214 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
19215 calls of avr_out_plus_1.
19216
19217 2014-03-13 Bin Cheng <bin.cheng@arm.com>
19218
19219 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
19220 BB's single pred and update the father loop's latch info later.
19221
19222 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19223
19224 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
19225 (VEC_M): Likewise.
19226 (VEC_N): Likewise.
19227 (VEC_R): Likewise.
19228 (VEC_base): Likewise.
19229 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
19230 registers, we need to swap double words in little endian mode.
19231
19232 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
19233 to be a container mode for 128-bit integer operations added in ISA
19234 2.07. Unlike TImode and PTImode, the preferred register set is
19235 the Altivec/VMX registers for the 128-bit operations.
19236
19237 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
19238 declarations.
19239 (rs6000_split_128bit_ok_p): Likewise.
19240
19241 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
19242 macros for creating ISA 2.07 normal and overloaded builtin
19243 functions with 3 arguments.
19244 (BU_P8V_OVERLOAD_3): Likewise.
19245 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
19246 for use as overloaded functions.
19247 (VPERM_1TI_UNS): Likewise.
19248 (VSEL_1TI): Likewise.
19249 (VSEL_1TI_UNS): Likewise.
19250 (ST_INTERNAL_1ti): Likewise.
19251 (LD_INTERNAL_1ti): Likewise.
19252 (XXSEL_1TI): Likewise.
19253 (XXSEL_1TI_UNS): Likewise.
19254 (VPERM_1TI): Likewise.
19255 (VPERM_1TI_UNS): Likewise.
19256 (XXPERMDI_1TI): Likewise.
19257 (SET_1TI): Likewise.
19258 (LXVD2X_V1TI): Likewise.
19259 (STXVD2X_V1TI): Likewise.
19260 (VEC_INIT_V1TI): Likewise.
19261 (VEC_SET_V1TI): Likewise.
19262 (VEC_EXT_V1TI): Likewise.
19263 (EQV_V1TI): Likewise.
19264 (NAND_V1TI): Likewise.
19265 (ORC_V1TI): Likewise.
19266 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
19267 added in ISA 2.07. Add both normal 'altivec' builtins, and the
19268 overloaded builtin.
19269 (VADDUQM): Likewise.
19270 (VSUBCUQ): Likewise.
19271 (VADDEUQM): Likewise.
19272 (VADDECUQ): Likewise.
19273 (VSUBEUQM): Likewise.
19274 (VSUBECUQ): Likewise.
19275
19276 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
19277 __int128_t and __uint128_t types.
19278 (__uint128_type): Likewise.
19279 (altivec_categorize_keyword): Add support for vector __int128_t,
19280 vector __uint128_t, vector __int128, and vector unsigned __int128
19281 as a container type for TImode operations that need to be done in
19282 VSX/Altivec registers.
19283 (rs6000_macro_to_expand): Likewise.
19284 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
19285 to support 128-bit integer instructions vaddcuq, vadduqm,
19286 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
19287 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
19288
19289 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19290 for V1TImode, and set up preferences to use VSX/Altivec registers.
19291 Setup VSX reload handlers.
19292 (rs6000_debug_reg_global): Likewise.
19293 (rs6000_init_hard_regno_mode_ok): Likewise.
19294 (rs6000_preferred_simd_mode): Likewise.
19295 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
19296 (easy_altivec_constant): Likewise.
19297 (output_vec_const_move): Likewise.
19298 (rs6000_expand_vector_set): Convert V1TImode set and extract to
19299 simple move.
19300 (rs6000_expand_vector_extract): Likewise.
19301 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
19302 addressing.
19303 (rs6000_const_vec): Add support for V1TImode.
19304 (rs6000_emit_le_vsx_load): Swap double words when loading or
19305 storing TImode/V1TImode.
19306 (rs6000_emit_le_vsx_store): Likewise.
19307 (rs6000_emit_le_vsx_move): Likewise.
19308 (rs6000_emit_move): Add support for V1TImode.
19309 (altivec_expand_ld_builtin): Likewise.
19310 (altivec_expand_st_builtin): Likewise.
19311 (altivec_expand_vec_init_builtin): Likewise.
19312 (altivec_expand_builtin): Likewise.
19313 (rs6000_init_builtins): Add support for V1TImode type. Add
19314 support for ISA 2.07 128-bit integer builtins. Define type names
19315 for the VSX/Altivec vector types.
19316 (altivec_init_builtins): Add support for overloaded vector
19317 functions with V1TImode type.
19318 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
19319 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
19320 external function.
19321 (rs6000_split_128bit_ok_p): Likewise.
19322 (rs6000_handle_altivec_attribute): Create V1TImode from vector
19323 __int128_t and vector __uint128_t.
19324
19325 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
19326 and mode attributes.
19327 (VSX_M): Likewise.
19328 (VSX_M2): Likewise.
19329 (VSm): Likewise.
19330 (VSs): Likewise.
19331 (VSr): Likewise.
19332 (VSv): Likewise.
19333 (VS_scalar): Likewise.
19334 (VS_double): Likewise.
19335 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
19336
19337 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
19338 we support the ISA 2.07 128-bit integer arithmetic instructions.
19339 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
19340 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
19341 and TImode types for use with the builtin functions.
19342 (V1TI_type_node): Likewise.
19343 (unsigned_V1TI_type_node): Likewise.
19344 (intTI_type_internal_node): Likewise.
19345 (uintTI_type_internal_node): Likewise.
19346
19347 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
19348 128-bit builtin functions.
19349 (UNSPEC_VADDEUQM): Likewise.
19350 (UNSPEC_VADDECUQ): Likewise.
19351 (UNSPEC_VSUBCUQ): Likewise.
19352 (UNSPEC_VSUBEUQM): Likewise.
19353 (UNSPEC_VSUBECUQ): Likewise.
19354 (VM): Add V1TImode to vector mode iterators.
19355 (VM2): Likewise.
19356 (VI_unit): Likewise.
19357 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
19358 (altivec_vaddcuq): Likewise.
19359 (altivec_vsubuqm): Likewise.
19360 (altivec_vsubcuq): Likewise.
19361 (altivec_vaddeuqm): Likewise.
19362 (altivec_vaddecuq): Likewise.
19363 (altivec_vsubeuqm): Likewise.
19364 (altivec_vsubecuq): Likewise.
19365
19366 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
19367 mode iterators.
19368 (BOOL_128): Likewise.
19369 (BOOL_REGS_OUTPUT): Likewise.
19370 (BOOL_REGS_OP1): Likewise.
19371 (BOOL_REGS_OP2): Likewise.
19372 (BOOL_REGS_UNARY): Likewise.
19373 (BOOL_REGS_AND_CR0): Likewise.
19374
19375 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
19376 128-bit integer builtin support.
19377 (vec_vadduqm): Likewise.
19378 (vec_vaddecuq): Likewise.
19379 (vec_vaddeuqm): Likewise.
19380 (vec_vsubecuq): Likewise.
19381 (vec_vsubeuqm): Likewise.
19382 (vec_vsubcuq): Likewise.
19383 (vec_vsubuqm): Likewise.
19384
19385 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19386 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
19387 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
19388 128-bit integer add/subtract to ISA 2.07.
19389
19390 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
19391
19392 * config/arc/arc.c (arc_predicate_delay_insns):
19393 Fix third argument passed to conditionalize_nonjump.
19394
19395 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
19396
19397 * config/aarch64/aarch64-builtins.c
19398 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
19399 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
19400 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
19401 instead of __builtin_lfloor.
19402 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
19403
19404 2014-03-12 Jakub Jelinek <jakub@redhat.com>
19405
19406 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
19407 (tree_ssa_ifcombine_bb_1): New function.
19408 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
19409 is an empty forwarder block to then_bb or vice versa and then_bb
19410 and else_bb are effectively swapped.
19411
19412 2014-03-12 Christian Bruel <christian.bruel@st.com>
19413
19414 PR target/60264
19415 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
19416 REG_CFA_DEF_CFA note.
19417 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
19418 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
19419
19420 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
19421
19422 PR tree-optimization/60454
19423 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
19424
19425 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19426
19427 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
19428 Do not define target_cpu_default2 to generic.
19429 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
19430 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
19431 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
19432
19433 2014-03-12 Jakub Jelinek <jakub@redhat.com>
19434 Marc Glisse <marc.glisse@inria.fr>
19435
19436 PR tree-optimization/60502
19437 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
19438 instead of build_low_bits_mask.
19439
19440 2014-03-12 Jakub Jelinek <jakub@redhat.com>
19441
19442 PR middle-end/60482
19443 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
19444 if there are multiple uses, but op doesn't live on E edge.
19445 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
19446 clobber stmts before __builtin_unreachable.
19447
19448 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
19449
19450 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
19451 hard_frame_pointer_rtx.
19452 * cse.c (cse_insn): Remove volatile check.
19453 * cselib.c (cselib_process_insn): Likewise.
19454 * dse.c (scan_insn): Likewise.
19455
19456 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
19457
19458 * config/arc/arc.c (conditionalize_nonjump): New function,
19459 broken out of ...
19460 (arc_ifcvt): ... this.
19461 (arc_predicate_delay_insns): Use it.
19462
19463 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
19464
19465 * config/arc/predicates.md (extend_operand): During/after reload,
19466 allow const_int_operand.
19467 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
19468 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
19469 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
19470 to "i".
19471 (umulsi3_highpart_i): Likewise.
19472
19473 2014-03-11 Richard Biener <rguenther@suse.de>
19474
19475 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
19476 Add asserts to guard possible wrong-code bugs.
19477
19478 2014-03-11 Richard Biener <rguenther@suse.de>
19479
19480 PR tree-optimization/60429
19481 PR tree-optimization/60485
19482 * tree-ssa-structalias.c (set_union_with_increment): Properly
19483 take into account all fields that overlap the shifted vars.
19484 (do_sd_constraint): Likewise.
19485 (do_ds_constraint): Likewise.
19486 (get_constraint_for_ptr_offset): Likewise.
19487
19488 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
19489
19490 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
19491 (nios2_compute_frame_layout):
19492 Add calculation of cfun->machine->fp_save_offset.
19493 (nios2_expand_prologue): Correct setting of frame pointer register
19494 in prologue.
19495 (nios2_expand_epilogue): Update recovery of stack pointer from
19496 frame pointer accordingly.
19497 (nios2_initial_elimination_offset): Update calculation of offset
19498 for eliminating to HARD_FRAME_POINTER_REGNUM.
19499
19500 2014-03-10 Jakub Jelinek <jakub@redhat.com>
19501
19502 PR ipa/60457
19503 * ipa.c (symtab_remove_unreachable_nodes): Don't call
19504 cgraph_get_create_node on VAR_DECLs.
19505
19506 2014-03-10 Richard Biener <rguenther@suse.de>
19507
19508 PR middle-end/60474
19509 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
19510
19511 2014-03-08 Douglas B Rupp <rupp@gnat.com>
19512
19513 * config/vms/vms.opt (vms_float_format): New variable.
19514
19515 2014-03-08 Tobias Burnus <burnus@net-b.de>
19516
19517 * doc/invoke.texi (-fcilkplus): Update implementation status.
19518
19519 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
19520 Richard Biener <rguenther@suse.de>
19521
19522 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
19523 consistently accross all TUs.
19524 (run_gcc): Enable -fshort-double automatically at link at link-time
19525 and disallow override.
19526
19527 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
19528
19529 PR target/58271
19530 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
19531 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
19532 if they can't be used.
19533
19534 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19535
19536 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
19537 for Solaris 11/x86 ld.
19538 * configure: Regenerate.
19539
19540 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19541
19542 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
19543 (LIB_TLS_SPEC): Save as ld_tls_libs.
19544 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
19545 (HAVE_AS_IX86_TLSLDM): New test.
19546 * configure, config.in: Regenerate.
19547 * config/i386/i386.c (legitimize_tls_address): Fall back to
19548 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
19549 cannot support TLS_MODEL_LOCAL_DYNAMIC.
19550 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
19551 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
19552
19553 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
19554
19555 * common.opt (fira-loop-pressure): Mark as optimization.
19556
19557 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
19558
19559 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
19560 an OpenMP mappable type.
19561
19562 2014-03-06 Matthias Klose <doko@ubuntu.com>
19563
19564 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
19565 MULTILIB_OSDIRNAMES is not defined.
19566
19567 2014-03-06 Jakub Jelinek <jakub@redhat.com>
19568 Meador Inge <meadori@codesourcery.com>
19569
19570 PR target/58595
19571 * config/arm/arm.c (arm_tls_symbol_p): Remove.
19572 (arm_legitimize_address): Call legitimize_tls_address for any
19573 arm_tls_referenced_p expression, handle constant addend. Call it
19574 before testing for !TARGET_ARM.
19575 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
19576
19577 2014-03-06 Richard Biener <rguenther@suse.de>
19578
19579 PR middle-end/60445
19580 PR lto/60424
19581 PR lto/60427
19582 Revert
19583 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
19584
19585 * tree-streamer.c (record_common_node): Assert we don't record
19586 nodes with type double.
19587 (preload_common_node): Skip type double, complex double and double
19588 pointer since it is now frontend dependent due to fshort-double option.
19589
19590 2014-03-06 Richard Biener <rguenther@suse.de>
19591
19592 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
19593 or -fno-lto is specified and the linker has full plugin support.
19594 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
19595 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
19596 * lto-wrapper.c (merge_and_complain): Merge compile-time
19597 optimization levels.
19598 (run_gcc): And pass it through to the link options.
19599
19600 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
19601
19602 PR debug/60381
19603 Revert:
19604 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19605 PR debug/59992
19606 * cselib.c (remove_useless_values): Skip to avoid quadratic
19607 behavior if the condition moved from...
19608 (cselib_process_insn): ... here holds.
19609
19610 2014-03-05 Jakub Jelinek <jakub@redhat.com>
19611
19612 PR plugins/59335
19613 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
19614 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
19615
19616 PR plugins/59335
19617 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
19618 (TM_H): Add x86-tune.def.
19619
19620 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19621
19622 * config/aarch64/aarch64.c (generic_tunings):
19623 Use cortexa57_extra_costs.
19624
19625 2014-03-05 Jakub Jelinek <jakub@redhat.com>
19626
19627 PR lto/60404
19628 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
19629 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
19630 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
19631 cost for in_lto_p.
19632
19633 2014-03-04 Heiher <r@hev.cc>
19634
19635 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
19636 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
19637
19638 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
19639
19640 * config/i386/predicates.md (const2356_operand): Change to ...
19641 (const2367_operand): ... this.
19642 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
19643 const2367_operand.
19644 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19645 (*avx512pf_scatterpf<mode>sf): Ditto.
19646 (avx512pf_scatterpf<mode>df): Ditto.
19647 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19648 (*avx512pf_scatterpf<mode>df): Ditto.
19649 * config/i386/i386.c (ix86_expand_builtin): Update
19650 incorrect hint operand error message.
19651
19652 2014-03-04 Richard Biener <rguenther@suse.de>
19653
19654 * lto-section-in.c (lto_get_section_data): Fix const cast.
19655
19656 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
19657
19658 * tree-streamer.c (record_common_node): Assert we don't record
19659 nodes with type double.
19660 (preload_common_node): Skip type double, complex double and double
19661 pointer since it is now frontend dependent due to fshort-double option.
19662
19663 2014-03-04 Richard Biener <rguenther@suse.de>
19664
19665 PR lto/60405
19666 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
19667 (lto_input_toplevel_asms): Likewise.
19668 * lto-section-in.c (lto_get_section_data): Instead do it here
19669 for every section.
19670
19671 2014-03-04 Richard Biener <rguenther@suse.de>
19672
19673 PR tree-optimization/60382
19674 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
19675 dead PHIs a reduction.
19676
19677 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
19678
19679 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
19680 hint value.
19681 (_mm_prefetch): Move out of GCC target("sse") pragma.
19682 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
19683 GCC target("prfchw") pragma.
19684 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
19685 for locality <= 2.
19686 * config/i386/i386.c (ix86_option_override_internal): Enable
19687 -mprfchw with -mprefetchwt1.
19688
19689 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
19690
19691 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
19692 Mark as varying.
19693
19694 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
19695
19696 * opts.h (CL_PCH_IGNORE): Define.
19697 * targhooks.c (option_affects_pch_p):
19698 Return false for options that have CL_PCH_IGNORE set.
19699 * opt-functions.awk: Process PchIgnore.
19700 * doc/options.texi: Document PchIgnore.
19701
19702 * config/arc/arc.opt (misize): Add PchIgnore property.
19703
19704 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19705
19706 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
19707 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
19708 constraint on constants to permit them being loaded into
19709 GENERAL_REGS or BASE_REGS.
19710
19711 2014-03-03 Nick Clifton <nickc@redhat.com>
19712
19713 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
19714 anti-cacnonical alternatives.
19715 (negandhi3_real): New pattern.
19716 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
19717
19718 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19719
19720 * config/avr/avr-mcus.def: Remove atxmega16x1.
19721 * config/avr/avr-tables.opt: Regenerate.
19722 * config/avr/t-multilib: Regenerate.
19723 * doc/avr-mmcu.texi: Regenerate.
19724
19725 2014-03-03 Tobias Grosser <tobias@grosser.es>
19726 Mircea Namolaru <mircea.namolaru@inria.fr>
19727
19728 PR tree-optimization/58028
19729 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
19730 scalar dimensions.
19731
19732 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19733
19734 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
19735 not handled by recognizers.
19736
19737 2014-03-03 Jakub Jelinek <jakub@redhat.com>
19738
19739 PR middle-end/60175
19740 * function.c (expand_function_end): Don't emit
19741 clobber_return_register sequence if clobber_after is a BARRIER.
19742 * cfgexpand.c (construct_exit_block): Append instructions before
19743 return_label to prev_bb.
19744
19745 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19746
19747 * config/rs6000/constraints.md: Document reserved use of "wc".
19748
19749 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
19750
19751 PR ipa/60150
19752 * ipa.c (function_and_variable_visibility): When dissolving comdat
19753 group, also set all symbols to local.
19754
19755 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
19756
19757 PR ipa/60306
19758
19759 Revert:
19760 2013-12-14 Jan Hubicka <jh@suse.cz>
19761 PR middle-end/58477
19762 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
19763
19764 2014-03-02 Jon Beniston <jon@beniston.com>
19765
19766 PR bootstrap/48230
19767 PR bootstrap/50927
19768 PR bootstrap/52466
19769 PR target/46898
19770 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
19771 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
19772 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
19773 (simple_return, *simple_return): New patterns
19774 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
19775 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
19776
19777 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
19778
19779 * dwarf2out.c (gen_subprogram_die): Tidy.
19780
19781 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
19782
19783 PR target/60071
19784 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
19785 (*mov_t_msb_neg_negc): ... this new insn.
19786
19787 2014-02-28 Jason Merrill <jason@redhat.com>
19788
19789 PR c++/58678
19790 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
19791 function.
19792
19793 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
19794
19795 PR c++/60314
19796 * dwarf2out.c (decltype_auto_die): New static.
19797 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
19798 (gen_type_die_with_usage): Handle 'decltype(auto)'.
19799 (is_cxx_auto): Likewise.
19800
19801 2014-02-28 Ian Bolton <ian.bolton@arm.com>
19802
19803 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
19804 we are not using general regs only.
19805
19806 2014-02-28 Richard Biener <rguenther@suse.de>
19807
19808 PR target/60280
19809 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
19810 previous fix and only allow to remove trivial pre-headers
19811 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
19812 (remove_forwarder_block): Properly update the latch of a loop.
19813
19814 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19815
19816 PR debug/59992
19817 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
19818 (cselib_preserved_hash_table): New.
19819 (preserve_constants_and_equivs): Move preserved vals to it.
19820 (cselib_find_slot): Look it up first.
19821 (cselib_init): Initialize it.
19822 (cselib_finish): Release it.
19823 (dump_cselib_table): Dump it.
19824
19825 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19826
19827 PR debug/59992
19828 * cselib.c (remove_useless_values): Skip to avoid quadratic
19829 behavior if the condition moved from...
19830 (cselib_process_insn): ... here holds.
19831
19832 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19833
19834 PR debug/57232
19835 * var-tracking.c (vt_initialize): Apply the same condition to
19836 preserve the CFA base value.
19837
19838 2014-02-28 Joey Ye <joey.ye@arm.com>
19839
19840 PR target/PR60169
19841 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
19842 if reload in progress or completed.
19843
19844 2014-02-28 Tobias Burnus <burnus@net-b.de>
19845
19846 PR middle-end/60147
19847 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
19848 NAMELIST_DECL.
19849
19850 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
19851
19852 * doc/tm.texi.in (Condition Code Status): Update documention for
19853 relative locations of cc0-setter and cc0-user.
19854
19855 2014-02-27 Jeff Law <law@redhat.com>
19856
19857 PR rtl-optimization/52714
19858 * combine.c (try_combine): When splitting an unrecognized PARALLEL
19859 into two independent simple sets, if I3 is a jump, ensure the
19860 pattern we place into I3 is a (set (pc) ...).
19861
19862 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
19863 Jeff Law <law@redhat.com>
19864
19865 PR rtl-optimization/49847
19866 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
19867 are in different blocks.
19868 * doc/tm.texi (Condition Code Status): Update documention for
19869 relative locations of cc0-setter and cc0-user.
19870
19871 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
19872
19873 PR target/59222
19874 * lra.c (lra_emit_add): Check SUBREG too.
19875
19876 2014-02-27 Andreas Schwab <schwab@suse.de>
19877
19878 * config/m68k/m68k.c (m68k_option_override): Disable
19879 -flive-range-shrinkage for classic m68k.
19880 (m68k_override_options_after_change): Likewise.
19881
19882 2014-02-27 Marek Polacek <polacek@redhat.com>
19883
19884 PR middle-end/59223
19885 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
19886 -Wmaybe-uninitialized.
19887
19888 2014-02-27 Alan Modra <amodra@gmail.com>
19889
19890 PR target/57936
19891 * reload1.c (emit_input_reload_insns): When reload_override_in,
19892 set old to rl->in_reg when rl->in_reg is a subreg.
19893
19894 2014-02-26 Richard Biener <rguenther@suse.de>
19895
19896 PR bootstrap/60343
19897 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
19898
19899 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
19900
19901 * common/config/i386/predicates.md (const1256_operand): Remove.
19902 (const2356_operand): New.
19903 (const_1_to_2_operand): Remove.
19904 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19905 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19906 (*avx512pf_gatherpf<mode>sf): Ditto.
19907 (avx512pf_gatherpf<mode>df): Ditto.
19908 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19909 (*avx512pf_gatherpf<mode>df): Ditto.
19910 (avx512pf_scatterpf<mode>sf): Ditto.
19911 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19912 (*avx512pf_scatterpf<mode>sf): Ditto.
19913 (avx512pf_scatterpf<mode>df): Ditto.
19914 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19915 (*avx512pf_scatterpf<mode>df): Ditto.
19916 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
19917
19918 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
19919
19920 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
19921 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
19922 (_mm512_mask_testn_epi64_mask): Move to ...
19923 * config/i386/avx512cdintrin.h: Here.
19924 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
19925 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
19926 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
19927 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
19928 TARGET_AVX512F from TARGET_AVX512CD.
19929
19930 2014-02-26 Richard Biener <rguenther@suse.de>
19931
19932 PR ipa/60327
19933 * ipa.c (walk_polymorphic_call_targets): Properly guard
19934 call to inline_update_overall_summary.
19935
19936 2014-02-26 Bin Cheng <bin.cheng@arm.com>
19937
19938 PR target/60280
19939 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
19940 and latches only if requested. Fix latch if it is removed.
19941 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
19942 LOOPS_HAVE_PREHEADERS.
19943
19944 2014-02-25 Andrew Pinski <apinski@cavium.com>
19945
19946 * builtins.c (expand_builtin_thread_pointer): Create a new target
19947 when the target is NULL.
19948
19949 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
19950
19951 PR rtl-optimization/60317
19952 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19953 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19954 * lra-assigns.c: Include params.h.
19955 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
19956 other reload pseudos considerations.
19957
19958 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19959
19960 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
19961 to use canonical form for nor<mode>3.
19962
19963 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19964
19965 PR target/55426
19966 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
19967 conversions.
19968
19969 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
19970
19971 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
19972 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
19973 (ix86_handle_option): Handle OPT_mprefetchwt1.
19974 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
19975 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19976 PREFETCHWT1 CPUID.
19977 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19978 OPTION_MASK_ISA_PREFETCHWT1.
19979 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
19980 (PTA_PREFETCHWT1): New.
19981 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
19982 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
19983 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
19984 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
19985 (*prefetch_avx512pf_<mode>_: Change into ...
19986 (*prefetch_prefetchwt1_<mode>: This.
19987 * config/i386/i386.opt (mprefetchwt1): New.
19988 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
19989 (_mm_prefetch): Handle intent to write.
19990 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
19991
19992 2014-02-25 Richard Biener <rguenther@suse.de>
19993
19994 PR middle-end/60291
19995 * emit-rtl.c (mem_attrs_htab): Remove.
19996 (mem_attrs_htab_hash): Likewise.
19997 (mem_attrs_htab_eq): Likewise.
19998 (set_mem_attrs): Always allocate new mem-attrs when something changed.
19999 (init_emit_once): Do not allocate mem_attrs_htab.
20000
20001 2014-02-25 Richard Biener <rguenther@suse.de>
20002
20003 PR lto/60319
20004 * lto-opts.c (lto_write_options): Output non-explicit conservative
20005 -fwrapv, -fno-trapv and -fno-strict-overflow.
20006 * lto-wrapper.c (merge_and_complain): Handle merging those options.
20007 (run_gcc): And pass them through.
20008
20009 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
20010
20011 * sel-sched.c (calculate_new_fences): New parameter ptime.
20012 Calculate it as a maximum over all fence cycles.
20013 (sel_sched_region_2): Adjust the call to calculate_new_fences.
20014 Print the final schedule timing when sched_verbose.
20015
20016 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
20017
20018 PR rtl-optimization/60292
20019 * sel-sched.c (fill_vec_av_set): Do not reset target availability
20020 bit fot the fence instruction.
20021
20022 2014-02-24 Alangi Derick <alangiderick@gmail.com>
20023
20024 * calls.h: Fix typo in comment.
20025
20026 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
20027
20028 * config/pa/pa.c (pa_output_move_double): Don't valididate when
20029 adjusting offsetable addresses.
20030
20031 2014-02-24 Guozhi Wei <carrot@google.com>
20032
20033 * sparseset.h (sparseset_pop): Fix the wrong index.
20034
20035 2014-02-24 Walter Lee <walt@tilera.com>
20036
20037 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
20038 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
20039 triplet.
20040 * common/config/tilegx/tilegx-common.c
20041 (TARGET_DEFAULT_TARGET_FLAGS): Define.
20042 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
20043 (LINK_SPEC): Ditto.
20044 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
20045 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
20046 (tilegx_gimplify_va_arg_expr): Handle big endian.
20047 (tilegx_expand_unaligned_load): Ditto.
20048 (tilegx_expand_unaligned_store): Ditto.
20049 (TARGET_RETURN_IN_MSB): New.
20050 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
20051 (TARGET_ENDIAN_DEFAULT): New.
20052 (TARGET_BIG_ENDIAN): Handle big endian.
20053 (BYTES_BIG_ENDIAN): Ditto.
20054 (WORDS_BIG_ENDIAN): Ditto.
20055 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
20056 (ENDIAN_SPEC): New.
20057 (EXTRA_SPECS): New.
20058 * config/tilegx/tilegx.md (extv): Handle big endian.
20059 (extzv): Ditto.
20060 (insn_st<n>): Ditto.
20061 (insn_st<n>_add<bitsuffix>): Ditto.
20062 (insn_stnt<n>): Ditto.
20063 (insn_stnt<n>_add<bitsuffix>):Ditto.
20064 (vec_interleave_highv8qi): Handle big endian.
20065 (vec_interleave_highv8qi_be): New.
20066 (vec_interleave_highv8qi_le): New.
20067 (insn_v1int_h): Handle big endian.
20068 (vec_interleave_lowv8qi): Handle big endian.
20069 (vec_interleave_lowv8qi_be): New.
20070 (vec_interleave_lowv8qi_le): New.
20071 (insn_v1int_l): Handle big endian.
20072 (vec_interleave_highv4hi): Handle big endian.
20073 (vec_interleave_highv4hi_be): New.
20074 (vec_interleave_highv4hi_le): New.
20075 (insn_v2int_h): Handle big endian.
20076 (vec_interleave_lowv4hi): Handle big endian.
20077 (vec_interleave_lowv4hi_be): New.
20078 (vec_interleave_lowv4hi_le): New.
20079 (insn_v2int_l): Handle big endian.
20080 (vec_interleave_highv2si): Handle big endian.
20081 (vec_interleave_highv2si_be): New.
20082 (vec_interleave_highv2si_le): New.
20083 (insn_v4int_h): Handle big endian.
20084 (vec_interleave_lowv2si): Handle big endian.
20085 (vec_interleave_lowv2si_be): New.
20086 (vec_interleave_lowv2si_le): New.
20087 (insn_v4int_l): Handle big endian.
20088 * config/tilegx/tilegx.opt (mbig-endian): New option.
20089 (mlittle-endian): New option.
20090 * doc/install.texi: Document tilegxbe-linux.
20091 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
20092
20093 2014-02-24 Martin Jambor <mjambor@suse.cz>
20094
20095 PR ipa/60266
20096 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
20097 there are no parameter descriptors.
20098
20099 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
20100
20101 PR rtl-optimization/60268
20102 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
20103 initialization to ...
20104 (sched_rgn_init): ... here.
20105 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
20106
20107 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
20108
20109 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
20110 names.
20111
20112 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
20113
20114 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
20115 definition.
20116
20117 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
20118
20119 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
20120 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
20121
20122 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
20123
20124 * config/microblaze/predicates.md: Add cmp_op predicate.
20125 * config/microblaze/microblaze.md: Add branch_compare instruction
20126 which uses cmp_op predicate and emits cmp insn before branch.
20127 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
20128 to microblaze_expand_conditional_branch and consolidate logic.
20129 (microblaze_expand_conditional_branch): emit branch_compare
20130 insn instead of handling cmp op separate from branch insn.
20131
20132 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20133
20134 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
20135 to permit subregs.
20136
20137 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20138
20139 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
20140 define_insn with define_expand and new define_insn
20141 *altivec_lve<VI_char>x_internal.
20142 (altivec_stve<VI_char>x): Replace define_insn with define_expand
20143 and new define_insn *altivec_stve<VI_char>x_internal.
20144 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
20145 prototype.
20146 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
20147 lve*x built-ins.
20148 (altivec_expand_stvex_be): New function.
20149
20150 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
20151
20152 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
20153 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
20154 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
20155 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
20156
20157 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
20158
20159 PR target/60298
20160 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
20161 instead of emit_move_insn.
20162
20163 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20164
20165 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
20166 vspltw with vsldoi.
20167 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
20168 gen_altivec_vsumsws.
20169
20170 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20171
20172 * config/rs6000/altivec.md (altivec_lvxl): Rename as
20173 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
20174 (altivec_lvxl_<mode>): New define_expand incorporating
20175 -maltivec=be semantics where needed.
20176 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
20177 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
20178 semantics where needed.
20179 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
20180 (altivec_stvx_<mode>): New define_expand incorporating
20181 -maltivec=be semantics where needed.
20182 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
20183 VM2 iterator instead of V4SI.
20184 (altivec_stvxl_<mode>): New define_expand incorporating
20185 -maltivec=be semantics where needed.
20186 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
20187 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
20188 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
20189 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
20190 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
20191 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
20192 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
20193 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
20194 ALTIVEC_BUILTIN_STVXL.
20195 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
20196 (altivec_expand_stvx_be): Likewise.
20197 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
20198 (altivec_expand_lvx_be): Likewise.
20199 (altivec_expand_stvx_be): Likewise.
20200 (altivec_expand_builtin): Add cases for
20201 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
20202 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
20203 (altivec_init_builtins): Add definitions for
20204 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
20205 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
20206
20207 2014-02-21 Catherine Moore <clm@codesourcery.com>
20208
20209 * doc/invoke.texi (mvirt, mno-virt): Document.
20210 * config/mips/mips.opt (mvirt): New option.
20211 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
20212
20213 2014-02-21 Richard Biener <rguenther@suse.de>
20214
20215 PR tree-optimization/60276
20216 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
20217 (STMT_VINFO_MIN_NEG_DIST): New macro.
20218 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
20219 STMT_VINFO_MIN_NEG_DIST.
20220 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
20221 made for negative dependence distances still hold.
20222
20223 2014-02-21 Richard Biener <rguenther@suse.de>
20224
20225 PR middle-end/60291
20226 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
20227 DECL_INITIAL for globals not in the current function context.
20228
20229 2014-02-21 Jakub Jelinek <jakub@redhat.com>
20230
20231 PR tree-optimization/56490
20232 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
20233 * tree-ssa-uninit.c: Include params.h.
20234 (compute_control_dep_chain): Add num_calls argument, return false
20235 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
20236 num_calls to recursive call.
20237 (find_predicates): Change dep_chain into normal array,
20238 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
20239 variable and adjust compute_control_dep_chain caller.
20240 (find_def_preds): Likewise.
20241
20242 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
20243
20244 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
20245 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
20246
20247 2014-02-21 Nick Clifton <nickc@redhat.com>
20248
20249 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
20250 (pushhi1): Likewise.
20251 (popqi1): Add mode to pre_dec.
20252 (pophi1): Likewise.
20253
20254 2014-02-21 Jakub Jelinek <jakub@redhat.com>
20255
20256 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
20257 mode for mask of V8SFmode permutation.
20258
20259 2014-02-20 Richard Henderson <rth@redhat.com>
20260
20261 PR c++/60272
20262 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
20263 a new pseudo for OLDVAL.
20264
20265 2014-02-20 Jakub Jelinek <jakub@redhat.com>
20266
20267 PR target/57896
20268 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
20269 gen_reg_rtx if d->testing_p.
20270 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
20271 if d->testing_p and we will certainly return true.
20272 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
20273 if d->testing_p.
20274
20275 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
20276
20277 * emit-rtl.c (gen_reg_rtx): Assert that
20278 crtl->emit.regno_pointer_align_length is non-zero.
20279
20280 2014-02-20 Richard Henderson <rth@redhat.com>
20281
20282 PR c++/60272
20283 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
20284 on failure the store back into EXPECT.
20285
20286 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
20287 Sandra Loosemore <sandra@codesourcery.com>
20288
20289 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
20290 * config/nios2/nios2.c (nios2_function_profiler): Add
20291 -fPIC (flag_pic == 2) support.
20292 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
20293 (nios2_large_offset_p): New function.
20294 (nios2_unspec_reloc_p): Move up position, update to use
20295 nios2_large_offset_p.
20296 (nios2_unspec_address): Remove function.
20297 (nios2_unspec_offset): New function.
20298 (nios2_large_got_address): New function.
20299 (nios2_got_address): Add large offset support.
20300 (nios2_legitimize_tls_address): Update usage of removed and new
20301 functions.
20302 (nios2_symbol_binds_local_p): New function.
20303 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
20304 (nios2_legitimize_address): Update to use nios2_large_offset_p.
20305 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
20306 (nios2_print_operand): Merge H/L processing, add hiadj/lo
20307 processing for (const (unspec ...)).
20308 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
20309
20310 2014-02-20 Richard Biener <rguenther@suse.de>
20311
20312 * tree-cfg.c (replace_uses_by): Mark altered BBs before
20313 doing the substitution.
20314 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
20315
20316 2014-02-20 Martin Jambor <mjambor@suse.cz>
20317
20318 PR ipa/55260
20319 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
20320 info when checking whether lattices are bottom.
20321
20322 2014-02-20 Richard Biener <rguenther@suse.de>
20323
20324 PR middle-end/60221
20325 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
20326 regions at -O0.
20327
20328 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
20329
20330 PR ipa/58555
20331 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
20332 parameter specifying the scaling.
20333 (inline_call): Update.
20334 (want_inline_recursively): Guard division by zero.
20335 (recursive_inlining): Update.
20336 * ipa-inline.h (clone_inlined_nodes): Update.
20337
20338 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
20339
20340 PR target/60204
20341 * config/i386/i386.c (classify_argument): Pass structures of size
20342 64 bytes or less in register.
20343
20344 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
20345 Kirill Yukhin <kirill.yukhin@intel.com>
20346
20347 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
20348 (_mm_rcp28_round_ss): Ditto.
20349 (_mm_rsqrt28_round_sd): Ditto.
20350 (_mm_rsqrt28_round_ss): Ditto.
20351 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
20352 (_mm_rcp14_round_ss): Ditto.
20353 (_mm_rsqrt14_round_sd): Ditto.
20354 (_mm_rsqrt14_round_ss): Ditto.
20355 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
20356 the first input operand, get rid of match_dup.
20357 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
20358 attribute to sse.
20359 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
20360 Ditto.
20361 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
20362 operand as the first input operand, set type attribute.
20363 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
20364 Set type attribute.
20365 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
20366 operand as the first input operand, set type attribute.
20367
20368 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20369
20370 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
20371 bit of zero.
20372
20373 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
20374
20375 PR target/60207
20376 * config/i386/i386.c (construct_container): Remove TFmode check
20377 for X86_64_INTEGER_CLASS.
20378
20379 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
20380
20381 PR target/59794
20382 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
20383 only when -Wpsabi is enabled.
20384
20385 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
20386
20387 PR target/59799
20388 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
20389 passing arrays in registers are the same as for structs, so remove the
20390 special case for them.
20391
20392 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
20393
20394 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
20395 destination type, extract only the valid bits if the source type is not
20396 integral and has a different mode.
20397
20398 2014-02-19 Richard Biener <rguenther@suse.de>
20399
20400 PR ipa/60243
20401 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
20402 for all calls.
20403
20404 2014-02-19 Richard Biener <rguenther@suse.de>
20405
20406 PR ipa/60243
20407 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
20408 (ipa_modify_call_arguments): Emit an argument load explicitely and
20409 preserve virtual SSA form there and for the replacement call.
20410 Do not update SSA form nor free dominance info.
20411
20412 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
20413
20414 * ipa.c (function_and_variable_visibility): Also clear WEAK
20415 flag when disolving COMDAT_GROUP.
20416
20417 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
20418
20419 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
20420 * ipa-prop.c (ipa_set_jf_known_type): Return early when
20421 not devirtualizing.
20422 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
20423 do more sanity checks.
20424 (detect_type_change): Return true when giving up early.
20425 (compute_complex_assign_jump_func): Fix type parameter of
20426 ipa_set_ancestor_jf.
20427 (compute_complex_ancestor_jump_func): Likewise.
20428 (update_jump_functions_after_inlining): Fix updating of
20429 ancestor function.
20430 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
20431
20432 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
20433
20434 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
20435 inline clones when edge disappears.
20436
20437 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20438
20439 PR target/60203
20440 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
20441 Split 64-bit moves into 2 patterns. Do not allow the use of
20442 direct move for TDmode in little endian, since the decimal value
20443 has little endian bytes within a word, but the 64-bit pieces are
20444 ordered in a big endian fashion, and normal subreg's of TDmode are
20445 not allowed.
20446 (mov<mode>_64bit_dm): Likewise.
20447 (movtd_64bit_nodm): Likewise.
20448
20449 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
20450
20451 PR tree-optimization/60174
20452 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
20453 statement of an SSA_NAME that occurs in an abnormal PHI node.
20454
20455 2014-02-18 Jakub Jelinek <jakub@redhat.com>
20456
20457 PR sanitizer/60142
20458 * final.c (SEEN_BB): Remove.
20459 (SEEN_NOTE, SEEN_EMITTED): Renumber.
20460 (final_scan_insn): Don't force_source_line on second
20461 NOTE_INSN_BASIC_BLOCK.
20462
20463 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
20464
20465 PR target/60205
20466 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
20467 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
20468 (type_natural_mode): Warn ABI change when %zmm register is not
20469 available for AVX512F vector value passing.
20470
20471 2014-02-18 Kai Tietz <ktietz@redhat.com>
20472
20473 PR target/60193
20474 * config/i386/i386.c (ix86_expand_prologue): Use value in
20475 rax register as displacement when restoring %r10 or %rax.
20476 Fix wrong offset when restoring both registers.
20477
20478 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
20479
20480 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
20481 assertion with conditional return.
20482
20483 2014-02-18 Jakub Jelinek <jakub@redhat.com>
20484 Uros Bizjak <ubizjak@gmail.com>
20485
20486 PR driver/60233
20487 * config/i386/driver-i386.c (host_detect_local_cpu): If
20488 YMM state is not saved by the OS, also clear has_f16c. Move
20489 CPUID 0x80000001 handling before YMM state saving checking.
20490
20491 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
20492
20493 PR rtl-optimization/58960
20494 * haifa-sched.c (alloc_global_sched_pressure_data): New,
20495 factored out from ...
20496 (sched_init): ... here.
20497 (free_global_sched_pressure_data): New, factored out from ...
20498 (sched_finish): ... here.
20499 * sched-int.h (free_global_sched_pressure_data): Declare.
20500 * sched-rgn.c (nr_regions_initial): New static global.
20501 (haifa_find_rgns): Initialize it.
20502 (schedule_region): Disable sched-pressure for the newly
20503 generated regions.
20504
20505 2014-02-17 Richard Biener <rguenther@suse.de>
20506
20507 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
20508 release SSA defs of pattern stmts.
20509
20510 2014-02-17 Richard Biener <rguenther@suse.de>
20511
20512 * tree-inline.c (expand_call_inline): Release the virtual
20513 operand defined by the call we are about to inline.
20514
20515 2014-02-17 Richard Biener <rguenther@suse.de>
20516
20517 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
20518
20519 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
20520 Ilya Tocar <ilya.tocar@intel.com>
20521
20522 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
20523 arguments order in builtin.
20524 (_mm512_permutexvar_epi64): Ditto.
20525 (_mm512_mask_permutexvar_epi64): Ditto
20526 (_mm512_maskz_permutexvar_epi32): Ditto
20527 (_mm512_permutexvar_epi32): Ditto
20528 (_mm512_mask_permutexvar_epi32): Ditto
20529
20530 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20531
20532 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
20533 (p8_vmrgow): Likewise.
20534
20535 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20536
20537 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
20538 endian targets.
20539
20540 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20541
20542 PR target/60203
20543 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
20544 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
20545 into 64-bit and 32-bit moves. On 64-bit moves, add support for
20546 using direct move instructions on ISA 2.07. Also adjust
20547 instruction length for 64-bit.
20548 (mov<mode>_64bit, TFmode/TDmode): Likewise.
20549 (mov<mode>_32bit, TFmode/TDmode): Likewise.
20550
20551 2014-02-15 Alan Modra <amodra@gmail.com>
20552
20553 PR target/58675
20554 PR target/57935
20555 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
20556 find_replacement on parts of insn rtl that might be reloaded.
20557
20558 2014-02-15 Richard Biener <rguenther@suse.de>
20559
20560 PR tree-optimization/60183
20561 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
20562 (tree_ssa_phiprop): Calculate and free post-dominators.
20563
20564 2014-02-14 Jeff Law <law@redhat.com>
20565
20566 PR rtl-optimization/60131
20567 * ree.c (get_extended_src_reg): New function.
20568 (combine_reaching_defs): Use it rather than assuming location of REG.
20569 (find_and_remove_re): Verify first operand of extension is
20570 a REG before adding the insns to the copy list.
20571
20572 2014-02-14 Roland McGrath <mcgrathr@google.com>
20573
20574 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
20575 * configure: Regenerated.
20576 * config.in: Regenerated.
20577 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
20578 instead of ASM_SHORT.
20579
20580 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
20581 Richard Earnshaw <rearnsha@arm.com>
20582
20583 PR rtl-optimization/59535
20584 * lra-constraints.c (process_alt_operands): Encourage alternative
20585 when unassigned pseudo class is superset of the alternative class.
20586 (inherit_reload_reg): Don't inherit when optimizing for code size.
20587 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
20588 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
20589 modes not less than 4 for Thumb1.
20590
20591 2014-02-14 Kyle McMartin <kyle@redhat.com>
20592
20593 PR pch/60010
20594 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
20595
20596 2014-02-14 Richard Biener <rguenther@suse.de>
20597
20598 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
20599 (get_frame_arg): Drop the assert with langhook types_compatible_p.
20600 Do not strip INDIRECT_REFs.
20601
20602 2014-02-14 Richard Biener <rguenther@suse.de>
20603
20604 PR lto/60179
20605 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
20606 DECL_FUNCTION_SPECIFIC_TARGET.
20607 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
20608 * tree-streamer-out.c (pack_ts_target_option): Remove.
20609 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
20610 (write_ts_function_decl_tree_pointers): Do not stream
20611 DECL_FUNCTION_SPECIFIC_TARGET.
20612 * tree-streamer-in.c (unpack_ts_target_option): Remove.
20613 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
20614 (lto_input_ts_function_decl_tree_pointers): Do not stream
20615 DECL_FUNCTION_SPECIFIC_TARGET.
20616
20617 2014-02-14 Jakub Jelinek <jakub@redhat.com>
20618
20619 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
20620 (get_initial_def_for_induction, vectorizable_induction): Ignore
20621 debug stmts when looking for exit_phi.
20622 (vectorizable_live_operation): Fix up condition.
20623
20624 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
20625
20626 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
20627 nreverse() because it changes the content of original tree list.
20628
20629 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
20630
20631 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
20632 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
20633
20634 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
20635
20636 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
20637 GNU coding standards.
20638
20639 2014-02-13 Jakub Jelinek <jakub@redhat.com>
20640
20641 PR debug/60152
20642 * dwarf2out.c (gen_subprogram_die): Don't call
20643 add_calling_convention_attribute if subr_die is old_die.
20644
20645 2014-02-13 Sharad Singhai <singhai@google.com>
20646
20647 * doc/optinfo.texi: Fix order of nodes.
20648
20649 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
20650
20651 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
20652 operands[2], not operands[3].
20653
20654 2014-02-13 Richard Biener <rguenther@suse.de>
20655
20656 PR bootstrap/59878
20657 * doc/install.texi (ISL): Update recommended version to 0.12.2,
20658 mention the possibility of an in-tree build.
20659 (CLooG): Update recommended version to 0.18.1, mention the
20660 possibility of an in-tree build and clarify that the ISL
20661 bundled with CLooG does not work.
20662
20663 2014-02-13 Jakub Jelinek <jakub@redhat.com>
20664
20665 PR target/43546
20666 * expr.c (compress_float_constant): If x is a hard register,
20667 extend into a pseudo and then move to x.
20668
20669 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
20670
20671 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
20672 caused by bad second argument to warning_at() with -mhotpatch and
20673 nested functions (e.g. with gfortran).
20674
20675 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
20676
20677 * opts.c (option_name): Remove "enabled by default" rider.
20678
20679 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
20680
20681 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
20682
20683 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
20684 Uros Bizjak <ubizjak@gmail.com>
20685
20686 PR target/60151
20687 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
20688 * configure: Regenerated.
20689
20690 2014-02-12 Richard Biener <rguenther@suse.de>
20691
20692 * vec.c (vec_prefix::calculate_allocation): Move as
20693 inline variant to vec.h.
20694 (vec_prefix::calculate_allocation_1): New out-of-line version.
20695 * vec.h (vec_prefix::calculate_allocation_1): Declare.
20696 (vec_prefix::m_has_auto_buf): Rename to ...
20697 (vec_prefix::m_using_auto_storage): ... this.
20698 (vec_prefix::calculate_allocation): Inline the easy cases
20699 and dispatch to calculate_allocation_1 which doesn't need the
20700 prefix address.
20701 (va_heap::reserve): Use gcc_checking_assert.
20702 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
20703 m_using_auto_storage.
20704 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
20705 member and adjust.
20706 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
20707 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
20708 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
20709
20710 2014-02-12 Richard Biener <rguenther@suse.de>
20711
20712 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
20713 when we found a dependence.
20714
20715 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
20716
20717 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
20718 common code...
20719 (maybe_fold_stmt): ... into this new function.
20720 * omp-low.c (lower_omp): Update comment.
20721
20722 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
20723 last use.
20724
20725 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
20726 dereference.
20727
20728 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
20729
20730 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
20731 identifiers in comments.
20732 (cortexa53_extra_costs): Likewise.
20733 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
20734 (cortexa7_extra_costs): Likewise.
20735 (cortexa12_extra_costs): Likewise.
20736 (cortexa15_extra_costs): Likewise.
20737 (v7m_extra_costs): Likewise.
20738
20739 2014-02-12 Richard Biener <rguenther@suse.de>
20740
20741 PR middle-end/60092
20742 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
20743 of posix_memalign being successful.
20744 (lower_stmt): Restrict lowering of posix_memalign to when
20745 -ftree-bit-ccp is enabled.
20746
20747 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20748
20749 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
20750 arg_loc.
20751 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20752
20753 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
20754
20755 PR rtl-optimization/60116
20756 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
20757 other_insn once the combination has been validated.
20758
20759 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
20760
20761 PR lto/59468
20762 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
20763 and wrapper.
20764 * ipa-devirt.c: Include demangle.h
20765 (odr_violation_reported): New static variable.
20766 (add_type_duplicate): Update odr_violations.
20767 (maybe_record_node): Add completep parameter; update it.
20768 (record_target_from_binfo): Add COMPLETEP parameter;
20769 update it as needed.
20770 (possible_polymorphic_call_targets_1): Likewise.
20771 (struct polymorphic_call_target_d): Add nonconstruction_targets;
20772 rename FINAL to COMPLETE.
20773 (record_targets_from_bases): Sanity check we found the binfo;
20774 fix COMPLETEP updating.
20775 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
20776 parameter, fix computing of COMPLETEP.
20777 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
20778 at LTO time do demangling.
20779 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
20780 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
20781 parameter.
20782 (gimple_get_virt_method_for_binfo): Likewise.
20783 * gimple-fold.h (gimple_get_virt_method_for_binfo,
20784 gimple_get_virt_method_for_vtable): Update prototypes.
20785
20786 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
20787
20788 PR target/49008
20789 * genautomata.c (add_presence_absence): Fix typo with
20790 {final_}presence_list.
20791
20792 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20793
20794 PR target/60137
20795 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
20796 for VSX/Altivec vectors that land in GPR registers.
20797
20798 2014-02-11 Richard Henderson <rth@redhat.com>
20799 Jakub Jelinek <jakub@redhat.com>
20800
20801 PR debug/59776
20802 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
20803 around drhs if type conversion to lacc->type is not useless.
20804
20805 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20806
20807 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
20808 tuning struct.
20809 (cortex-a57.cortex-a53): Likewise.
20810 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
20811
20812 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20813
20814 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
20815 arm_restrict_it.
20816
20817 2014-02-11 Renlin Li <Renlin.Li@arm.com>
20818
20819 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
20820 add_options_for_arm_vfp3.
20821
20822 2014-02-11 Jeff Law <law@redhat.com>
20823
20824 PR middle-end/54041
20825 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
20826 object with an undesirable mode.
20827
20828 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20829
20830 PR libgomp/60107
20831 * config/i386/sol2-9.h: New file.
20832 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
20833 *-*-solaris2.9*): Use it.
20834
20835 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
20836
20837 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
20838 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
20839
20840 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
20841
20842 * config/microblaze/microblaze.c: Extend mcpu version format
20843
20844 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
20845
20846 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
20847
20848 2014-02-10 Richard Henderson <rth@redhat.com>
20849
20850 PR target/59927
20851 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
20852 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
20853 ms-abi vs -mno-accumulate-outgoing-args.
20854 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
20855 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
20856 respect to ms-abi.
20857
20858 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20859
20860 PR middle-end/60080
20861 * cfgexpand.c (expand_asm_operands): Attach source location to
20862 ASM_INPUT rtx objects.
20863 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
20864
20865 2014-02-10 Nick Clifton <nickc@redhat.com>
20866
20867 * config/mn10300/mn10300.c (popcount): New function.
20868 (mn10300_expand_prologue): Include saved registers in stack usage
20869 count.
20870
20871 2014-02-10 Jeff Law <law@redhat.com>
20872
20873 PR middle-end/52306
20874 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
20875 when changing the SET_DEST of a prior insn to avoid an input reload.
20876
20877 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20878
20879 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
20880 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
20881 -mcall-openbsd, or -mcall-linux.
20882 (CC1_ENDIAN_BIG_SPEC): Remove.
20883 (CC1_ENDIAN_LITTLE_SPEC): Remove.
20884 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20885 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
20886 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
20887 and %cc1_endian_default.
20888 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20889
20890 2014-02-10 Richard Biener <rguenther@suse.de>
20891
20892 PR tree-optimization/60115
20893 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
20894 MEM_REF handling. Properly verify that the accesses are not
20895 out of the objects bound.
20896
20897 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20898
20899 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
20900 coretex to cortex.
20901
20902 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
20903
20904 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
20905 proper constants and fix formatting.
20906 (possible_polymorphic_call_targets): Fix formatting.
20907
20908 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
20909 Ilya Tocar <ilya.tocar@intel.com>
20910
20911 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
20912 (_mm512_loadu_epi32): Renamed into...
20913 (_mm512_loadu_si512): This.
20914 (_mm512_storeu_epi32): Renamed into...
20915 (_mm512_storeu_si512): This.
20916 (_mm512_maskz_ceil_ps): Removed.
20917 (_mm512_maskz_ceil_pd): Ditto.
20918 (_mm512_maskz_floor_ps): Ditto.
20919 (_mm512_maskz_floor_pd): Ditto.
20920 (_mm512_floor_round_ps): Ditto.
20921 (_mm512_floor_round_pd): Ditto.
20922 (_mm512_ceil_round_ps): Ditto.
20923 (_mm512_ceil_round_pd): Ditto.
20924 (_mm512_mask_floor_round_ps): Ditto.
20925 (_mm512_mask_floor_round_pd): Ditto.
20926 (_mm512_mask_ceil_round_ps): Ditto.
20927 (_mm512_mask_ceil_round_pd): Ditto.
20928 (_mm512_maskz_floor_round_ps): Ditto.
20929 (_mm512_maskz_floor_round_pd): Ditto.
20930 (_mm512_maskz_ceil_round_ps): Ditto.
20931 (_mm512_maskz_ceil_round_pd): Ditto.
20932 (_mm512_expand_pd): Ditto.
20933 (_mm512_expand_ps): Ditto.
20934 * config/i386/i386.c (ix86_builtins): Remove
20935 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
20936 (bdesc_args): Ditto.
20937 * config/i386/predicates.md (const1256_operand): New.
20938 (const_1_to_2_operand): Ditto.
20939 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
20940 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20941 (*avx512pf_gatherpf<mode>sf): Ditto.
20942 (avx512pf_gatherpf<mode>df): Ditto.
20943 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20944 (*avx512pf_gatherpf<mode>df): Ditto.
20945 (avx512pf_scatterpf<mode>sf): Ditto.
20946 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20947 (*avx512pf_scatterpf<mode>sf): Ditto.
20948 (avx512pf_scatterpf<mode>df): Ditto.
20949 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20950 (*avx512pf_scatterpf<mode>df): Ditto.
20951 (avx512f_expand<mode>): Removed.
20952 (<shift_insn><mode>3<mask_name>): Change predicate type.
20953
20954 2014-02-08 Jakub Jelinek <jakub@redhat.com>
20955
20956 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
20957 not at the end of datarefs vector use ordered_remove to avoid
20958 reordering datarefs vector.
20959
20960 PR c/59984
20961 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
20962 mark local addressable non-static vars as GOVD_PRIVATE
20963 instead of GOVD_LOCAL.
20964 * omp-low.c (lower_omp_for): Move gimple_bind_vars
20965 and BLOCK_VARS of gimple_bind_block to new_stmt rather
20966 than copying them.
20967
20968 PR middle-end/60092
20969 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
20970 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
20971 assume_aligned or alloc_align attributes.
20972 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
20973 arguments. Handle also assume_aligned and alloc_align attributes.
20974 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
20975 calls to functions with assume_aligned or alloc_align attributes.
20976 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
20977
20978 2014-02-08 Terry Guo <terry.guo@arm.com>
20979
20980 * doc/invoke.texi: Document ARM -march=armv7e-m.
20981
20982 2014-02-08 Jakub Jelinek <jakub@redhat.com>
20983
20984 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
20985 flag on __cilkrts_rethrow builtin.
20986
20987 PR ipa/60026
20988 * ipa-cp.c (determine_versionability): Fail at -O0
20989 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
20990 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
20991
20992 Revert:
20993 2014-02-04 Jakub Jelinek <jakub@redhat.com>
20994
20995 PR ipa/60026
20996 * tree-inline.c (copy_forbidden): Fail for
20997 __attribute__((optimize (0))) functions.
20998
20999 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
21000
21001 * varpool.c: Include pointer-set.h.
21002 (varpool_remove_unreferenced_decls): Variables in other partitions
21003 will not be output; be however careful to not lose information
21004 about partitioning.
21005
21006 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
21007
21008 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
21009 lookup in the vtable constructor.
21010
21011 2014-02-07 Jeff Law <law@redhat.com>
21012
21013 PR target/40977
21014 * config/m68k/m68k.md (ashldi_extsi): Turn into a
21015 define_insn_and_split.
21016
21017 * ipa-inline.c (inline_small_functions): Fix typos.
21018
21019 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21020
21021 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
21022 (s390_can_use_return_insn): Declare.
21023 * config/s390/s390.h (EPILOGUE_USES): Define.
21024 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
21025 instructions.
21026 (s390_chunkify_start): Handle return JUMP_LABELs.
21027 (s390_early_mach): Emit a main_pool instruction on the entry edge.
21028 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
21029 (s390_can_use_return_insn): New functions.
21030 (s390_fix_long_loop_prediction): Handle conditional returns.
21031 (TARGET_SET_UP_BY_PROLOGUE): Define.
21032 * config/s390/s390.md (ANY_RETURN): New code iterator.
21033 (*creturn, *csimple_return, return, simple_return): New patterns.
21034
21035 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21036
21037 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
21038 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
21039 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
21040 REG_CFA_RESTORE list when deciding not to restore a register.
21041
21042 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21043
21044 * config/s390/s390.c: Include tree-pass.h and context.h.
21045 (s390_early_mach): New function, split out from...
21046 (s390_emit_prologue): ...here.
21047 (pass_data_s390_early_mach): New pass structure.
21048 (pass_s390_early_mach): New class.
21049 (s390_option_override): Create and register early_mach pass.
21050 Move to end of file.
21051
21052 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21053
21054 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
21055 to match for the exit block.
21056
21057 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21058
21059 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
21060 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
21061 Reject misaligned operands.
21062
21063 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21064
21065 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
21066
21067 2014-02-07 Richard Biener <rguenther@suse.de>
21068
21069 PR middle-end/60092
21070 * gimple-low.c (lower_builtin_posix_memalign): New function.
21071 (lower_stmt): Call it to lower posix_memalign in a way
21072 to make alignment info accessible.
21073
21074 2014-02-07 Jakub Jelinek <jakub@redhat.com>
21075
21076 PR c++/60082
21077 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
21078 __builtin_setjmp_receiver.
21079
21080 2014-02-07 Richard Biener <rguenther@suse.de>
21081
21082 PR middle-end/60092
21083 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
21084 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
21085 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21086 Handle BUILT_IN_POSIX_MEMALIGN.
21087 (find_func_clobbers): Likewise.
21088 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21089 (call_may_clobber_ref_p_1): Likewise.
21090
21091 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
21092
21093 PR ipa/59918
21094 * ipa-devirt.c (record_target_from_binfo): Remove overactive
21095 sanity check.
21096
21097 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
21098
21099 PR ipa/59469
21100 * lto-cgraph.c (lto_output_node): Use
21101 symtab_get_symbol_partitioning_class.
21102 (lto_output_varpool_node): likewise.
21103 (symtab_get_symbol_partitioning_class): Move here from
21104 lto/lto-partition.c
21105 * cgraph.h (symbol_partitioning_class): Likewise.
21106 (symtab_get_symbol_partitioning_class): Declare.
21107
21108 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
21109
21110 * ggc.h (ggc_internal_cleared_alloc): New macro.
21111 * vec.h (vec_safe_copy): Handle memory stats.
21112 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
21113 * target-globals.c (save_target_globals): Likewise.
21114
21115 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
21116
21117 PR target/60077
21118 * expr.c (emit_move_resolve_push): Export; be bit more selective
21119 on when to clear alias set.
21120 * expr.h (emit_move_resolve_push): Declare.
21121 * function.h (struct function): Add tail_call_marked.
21122 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
21123 * config/i386/i386-protos.h (ix86_expand_push): Remove.
21124 * config/i386/i386.md (TImode move expander): De not call
21125 ix86_expand_push.
21126 (FP push expanders): Preserve memory attributes.
21127 * config/i386/sse.md (push<mode>1): Remove.
21128 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
21129 (ix86_expand_push): Remove.
21130 * config/i386/mmx.md (push<mode>1): Remove.
21131
21132 2014-02-06 Jakub Jelinek <jakub@redhat.com>
21133
21134 PR rtl-optimization/60030
21135 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
21136 lopart with paradoxical subreg before shifting it up by hprec.
21137
21138 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21139
21140 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
21141 Remove extra newline at end of file.
21142 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
21143 (arm_issue_rate): Handle cortexa57.
21144 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
21145 (cortex-a57.cortex-a53): Likewise.
21146
21147 2014-02-06 Jakub Jelinek <jakub@redhat.com>
21148
21149 PR target/59575
21150 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
21151 don't record in REG_FRAME_RELATED_EXPR registers not set in that
21152 bitmask.
21153 (arm_expand_prologue): Adjust all callers.
21154 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
21155 info, registers also at the lowest numbered registers side. Use
21156 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
21157 XEXP.
21158
21159 PR debug/59992
21160 * var-tracking.c (adjust_mems): Before adding a SET to
21161 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
21162
21163 2014-02-06 Alan Modra <amodra@gmail.com>
21164
21165 PR target/60032
21166 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
21167 change SDmode to DDmode when lra_in_progress.
21168
21169 2014-02-06 Jakub Jelinek <jakub@redhat.com>
21170
21171 PR middle-end/59150
21172 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
21173 free_data_ref on the dr first, and before goto again also set dr
21174 to the next dr. For simd_lane_access, free old datarefs[i] before
21175 overwriting it. For get_vectype_for_scalar_type failure, don't
21176 free_data_ref if simd_lane_access.
21177
21178 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
21179
21180 PR target/60062
21181 * tree.h (opts_for_fn): New inline function.
21182 (opt_for_fn): Define.
21183 * config/i386/i386.c (ix86_function_regparm): Use
21184 opt_for_fn (decl, optimize) instead of optimize.
21185
21186 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
21187
21188 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
21189 for SYMBOL_REF in large memory model.
21190
21191 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21192
21193 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
21194 and crypto support.
21195 (cortex-a57): Likewise.
21196 (cortex-a57.cortex-a53): Likewise.
21197
21198 2014-02-06 Yury Gribov <y.gribov@samsung.com>
21199 Kugan Vivekanandarajah <kuganv@linaro.org>
21200
21201 * config/arm/arm.c (arm_vector_alignment_reachable): Check
21202 unaligned_access.
21203 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
21204
21205 2014-02-06 Richard Biener <rguenther@suse.de>
21206
21207 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
21208 set_loop_copy and initialize_original_copy_tables.
21209
21210 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
21211
21212 * config/aarch64/aarch64-simd.md
21213 (aarch64_ashr_simddi): Change QI to SI.
21214
21215 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
21216 Jakub Jelinek <jakub@redhat.com>
21217
21218 PR middle-end/60013
21219 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
21220 of the dataflow.
21221
21222 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21223
21224 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
21225 CODE_FOR_altivec_vpku[hw]um to
21226 CODE_FOR_altivec_vpku[hw]um_direct.
21227 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
21228 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
21229 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
21230 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
21231
21232 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21233
21234 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
21235 generation for -maltivec=be.
21236 (altivec_vsumsws): Simplify redundant test.
21237
21238 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21239
21240 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
21241 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
21242 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
21243 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
21244 gen_altivec_vpkuwum.
21245 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
21246 BYTES_BIG_ENDIAN.
21247 (altivec_vpks<VI_char>ss): Likewise.
21248 (altivec_vpks<VI_char>us): Likewise.
21249 (altivec_vpku<VI_char>us): Likewise.
21250 (altivec_vpku<VI_char>um): Likewise.
21251 (altivec_vpku<VI_char>um_direct): New (copy of
21252 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
21253 internal use).
21254 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
21255 target is little endian and -maltivec=be is not specified.
21256 (*altivec_vupkhs<VU_char>_direct): New (copy of
21257 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
21258 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
21259 target is little endian and -maltivec=be is not specified.
21260 (*altivec_vupkls<VU_char>_direct): New (copy of
21261 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
21262 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
21263 little endian and -maltivec=be is not specified.
21264 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
21265 little endian and -maltivec=be is not specified.
21266
21267 2014-02-05 Richard Henderson <rth@redhat.com>
21268
21269 PR debug/52727
21270 * combine-stack-adj.c: Revert r206943.
21271 * sched-int.h (struct deps_desc): Add last_args_size.
21272 * sched-deps.c (init_deps): Initialize it.
21273 (sched_analyze_insn): Add OUTPUT dependencies between insns that
21274 contain REG_ARGS_SIZE notes.
21275
21276 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
21277
21278 * lto-cgraph.c (asm_nodes_output): Make global.
21279 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
21280 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
21281 (driver_handle_option): Handle OPT_fwpa.
21282
21283 2014-02-05 Jakub Jelinek <jakub@redhat.com>
21284
21285 PR ipa/59947
21286 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
21287 a comment typo and formatting issue. If odr_hash hasn't been
21288 created, return vNULL and set *completep to false.
21289
21290 PR middle-end/57499
21291 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
21292 bb with no successors.
21293
21294 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
21295
21296 PR target/59718
21297 * doc/invoke.texi (-march): Clarify documentation for ARM.
21298 (-mtune): Likewise.
21299 (-mcpu): Likewise.
21300
21301 2014-02-05 Richard Biener <rguenther@suse.de>
21302
21303 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
21304 when not vectorizing because of too many alias checks.
21305 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21306 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
21307
21308 2014-02-05 Nick Clifton <nickc@redhat.com>
21309
21310 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
21311 accept extended registers in any mode when compiling for the MN10300.
21312
21313 2014-02-05 Yury Gribov <y.gribov@samsung.com>
21314
21315 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
21316 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
21317 sanitization attributes.
21318 (can_inline_edge_p): Likewise.
21319 (sanitize_attrs_match_for_inline_p): New function.
21320
21321 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
21322
21323 * ipa-prop.c (detect_type_change): Shor circuit testing of
21324 type changes on THIS pointer.
21325
21326 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
21327
21328 PR target/59777
21329 * config/pa/pa.c (legitimize_tls_address): Return original address
21330 if not passed a SYMBOL_REF rtx.
21331 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
21332 addresses.
21333 (pa_emit_move_sequence): Simplify TLS source operands.
21334 (pa_legitimate_constant_p): Reject all TLS constants.
21335 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
21336 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
21337
21338 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
21339
21340 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
21341 groups when we know they are controlled by LTO.
21342 * varasm.c (default_binds_local_p_1): If object is in other partition,
21343 it will be resolved locally.
21344
21345 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21346
21347 * config/host-linux.c (linux_gt_pch_use_address): Don't
21348 use SSIZE_MAX because it is not always defined.
21349
21350 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
21351
21352 PR bootstrap/59913
21353 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
21354 threshold for pseudo splitting.
21355 (update_ebb_live_info): Process call argument hard registers and
21356 hard registers from insn definition too.
21357 (max_small_class_regs_num): New constant.
21358 (inherit_in_ebb): Update live hard regs through EBBs. Update
21359 reloads_num only for small register classes. Don't split for
21360 outputs of jumps.
21361
21362 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
21363
21364 PR ipa/60058
21365 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
21366 is non-null.
21367
21368 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
21369
21370 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
21371 visibility is safe.
21372
21373 2014-02-04 Marek Polacek <polacek@redhat.com>
21374
21375 * gdbinit.in (pel): Define.
21376
21377 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
21378
21379 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
21380 behavior.
21381
21382 2014-02-04 Richard Biener <rguenther@suse.de>
21383
21384 PR lto/59723
21385 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
21386 in function context local.
21387 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
21388 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
21389 similar to LTO_imported_decl_ref.
21390
21391 2014-02-04 Jakub Jelinek <jakub@redhat.com>
21392
21393 PR tree-optimization/60002
21394 * cgraphclones.c (build_function_decl_skip_args): Clear
21395 DECL_LANG_SPECIFIC.
21396
21397 PR tree-optimization/60023
21398 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
21399 false to gsi_replace.
21400 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
21401 has been in some EH region and vec_stmt could throw, add
21402 vec_stmt into the same EH region.
21403 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
21404 has no lhs, ignore it.
21405 * internal-fn.c (expand_MASK_LOAD): Likewise.
21406
21407 PR ipa/60026
21408 * tree-inline.c (copy_forbidden): Fail for
21409 __attribute__((optimize (0))) functions.
21410
21411 PR other/58712
21412 * omp-low.c (simd_clone_struct_copy): If from->inbranch
21413 is set, copy one less argument.
21414 (expand_simd_clones): Don't subtract clone_info->inbranch
21415 from simd_clone_struct_alloc argument.
21416
21417 PR rtl-optimization/57915
21418 * recog.c (simplify_while_replacing): If all unary/binary/relational
21419 operation arguments are constant, attempt to simplify those.
21420
21421 PR middle-end/59261
21422 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
21423 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
21424
21425 2014-02-04 Richard Biener <rguenther@suse.de>
21426
21427 PR tree-optimization/60012
21428 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
21429 TBAA disambiguation to all DDRs.
21430
21431 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21432
21433 PR target/59788
21434 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
21435 (LINK_SPEC): Use it for -shared, -shared-libgcc.
21436
21437 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
21438
21439 PR ipa/59882
21440 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
21441
21442 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
21443
21444 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
21445 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
21446
21447 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
21448
21449 PR ipa/59831
21450 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
21451 to figure out targets of polymorphic calls with known decl.
21452 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21453 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
21454 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
21455 (get_polymorphic_call_info): ... here.
21456 (get_polymorphic_call_info_from_invariant): New function.
21457
21458 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
21459
21460 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
21461 lookup via vtable pointer; check for type consistency
21462 and turn inconsitent facts into UNREACHABLE.
21463 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21464 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
21465 type inconsistent querries; return UNREACHABLE instead.
21466
21467 2014-02-03 Richard Henderson <rth@twiddle.net>
21468
21469 PR tree-opt/59924
21470 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
21471 already processed this node.
21472 (normalize_one_pred_1): Pass along mark_set.
21473 (normalize_one_pred): Create and destroy a pointer_set_t.
21474 (normalize_one_pred_chain): Likewise.
21475
21476 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
21477
21478 PR gcov-profile/58602
21479 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
21480
21481 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
21482
21483 PR ipa/59831
21484 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
21485 -fno-devirtualize; try to devirtualize by the knowledge of
21486 virtual table pointer given by aggregate propagation.
21487 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21488 (ipa_print_node_jump_functions): Dump also offset that
21489 is relevant for polymorphic calls.
21490 (determine_known_aggregate_parts): Add arg_type parameter; use it
21491 instead of determining the type from pointer type.
21492 (ipa_compute_jump_functions_for_edge): Update call of
21493 determine_known_aggregate_parts.
21494 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
21495 (gimple_get_virt_method_for_binfo): ... here; simplify using
21496 vtable_pointer_value_to_vtable.
21497 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
21498 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
21499 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
21500 (vtable_pointer_value_to_vtable): Break out from ...; handle also
21501 POINTER_PLUS_EXPR.
21502 (vtable_pointer_value_to_binfo): ... here.
21503 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
21504
21505 2014-02-03 Teresa Johnson <tejohnson@google.com>
21506
21507 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
21508 redef of outer loop index variable.
21509
21510 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
21511
21512 PR c++/53017
21513 PR c++/59211
21514 * doc/extend.texi (Function Attributes): Typo.
21515
21516 2014-02-03 Cong Hou <congh@google.com>
21517
21518 PR tree-optimization/60000
21519 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
21520 if the vectorized statement is a store. A store statement can only
21521 appear at the end of pattern statements.
21522
21523 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
21524
21525 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
21526 (ix86_option_override_internal): Default long double to 64-bit for
21527 32-bit Bionic and to 128-bit for 64-bit Bionic.
21528
21529 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
21530 TARGET_LONG_DOUBLE_128 is true.
21531 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
21532
21533 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
21534 (mlong-double-64): Negate -mlong-double-128.
21535 (mlong-double-128): New option.
21536
21537 * config/i386/i386-c.c (ix86_target_macros): Define
21538 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
21539
21540 * doc/invoke.texi: Document -mlong-double-128.
21541
21542 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
21543
21544 PR rtl-optimization/60024
21545 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
21546
21547 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
21548
21549 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
21550
21551 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
21552
21553 PR rtl-optimization/57662
21554 * sel-sched.c (code_motion_path_driver): Do not mark already not
21555 existing blocks in the visiting bitmap.
21556
21557 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
21558
21559 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
21560 on the insn being emitted.
21561
21562 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
21563 Will Deacon <will.deacon@arm.com>
21564
21565 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
21566
21567 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21568
21569 * config/arm/arm-tables.opt: Regenerate.
21570
21571 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21572
21573 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
21574 for vector types other than V16QImode.
21575 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
21576 define_expand, and call altivec_expand_vec_perm_le when producing
21577 code with little endian element order.
21578 (*altivec_vperm_<mode>_internal): New insn having previous
21579 behavior of altivec_vperm_<mode>.
21580 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
21581 altivec_expand_vec_perm_le when producing code with little endian
21582 element order.
21583 (*altivec_vperm_<mode>_uns_internal): New insn having previous
21584 behavior of altivec_vperm_<mode>_uns.
21585
21586 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21587
21588 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
21589 (altivec_vsumsws): Add handling for -maltivec=be with a little
21590 endian target.
21591 (altivec_vsumsws_direct): New.
21592 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
21593 gen_altivec_vsumsws.
21594
21595 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
21596
21597 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
21598 vtable_pointer_value_to_binfo): New functions.
21599 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
21600 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
21601
21602 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
21603
21604 * config/nios2/nios2.md (load_got_register): Initialize GOT
21605 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
21606 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
21607
21608 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
21609
21610 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
21611 preserverd by passthrough, do not propagate the type.
21612
21613 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
21614
21615 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
21616 (mips_atomic_assign_expand_fenv): New function.
21617 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
21618
21619 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
21620
21621 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
21622 (__builtin_mips_set_fcsr): Likewise.
21623 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
21624 MIPS_USI_FTYPE_VOID.
21625 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
21626 (mips16_expand_set_fcsr): Likewise.
21627 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
21628 (mips16_set_fcsr_stub): Likewise.
21629 (mips16_get_fcsr_one_only_stub): New class.
21630 (mips16_set_fcsr_one_only_stub): Likewise.
21631 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
21632 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
21633 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
21634 (hard_float): New availability predicate.
21635 (mips_builtins): Add get_fcsr and set_fcsr.
21636 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
21637 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
21638 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
21639 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
21640 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
21641 patterns.
21642
21643 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
21644
21645 * config/mips/mips.c (mips_one_only_stub): New class.
21646 (mips_need_mips16_rdhwr_p): Replace with...
21647 (mips16_rdhwr_stub): ...this new variable.
21648 (mips16_stub_call_address): New function.
21649 (mips16_rdhwr_one_only_stub): New class.
21650 (mips_expand_thread_pointer): Use mips16_stub_call_address.
21651 (mips_output_mips16_rdhwr): Delete.
21652 (mips_finish_stub): New function.
21653 (mips_code_end): Use it to handle rdhwr stubs.
21654
21655 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
21656
21657 PR target/60017
21658 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
21659 when calculating size of integer atomic types.
21660
21661 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
21662
21663 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
21664
21665 2014-02-01 Jakub Jelinek <jakub@redhat.com>
21666
21667 PR tree-optimization/60003
21668 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
21669 * profile.c (branch_prob): Use gimple_call_builtin_p
21670 to check for BUILT_IN_SETJMP_RECEIVER.
21671 * tree-inline.c (copy_bb): Call notice_special_calls.
21672
21673 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
21674
21675 PR bootstrap/59985
21676 * lra-constraints.c (process_alt_operands): Update reload_sum only
21677 on the first pass.
21678
21679 2014-01-31 Richard Henderson <rth@redhat.com>
21680
21681 PR middle-end/60004
21682 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
21683 until after else_eh is processed.
21684
21685 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
21686
21687 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
21688 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
21689 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
21690 in smmintrin.h, remove them.
21691 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
21692 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
21693 * config/i386/i386.md (ROUND_SAE): Fix value.
21694 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
21695 (const48_operand): New.
21696 * config/i386/subst.md (round), (round_expand): Use
21697 const_4_or_8_to_11_operand.
21698 (round_saeonly), (round_saeonly_expand): Use const48_operand.
21699
21700 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
21701
21702 * config/i386/constraints.md (Yk): Swap meaning with k.
21703 * config/i386/i386.md (movhi_internal): Change Yk to k.
21704 (movqi_internal): Ditto.
21705 (*k<logic><mode>): Ditto.
21706 (*andhi_1): Ditto.
21707 (*andqi_1): Ditto.
21708 (kandn<mode>): Ditto.
21709 (*<code>hi_1): Ditto.
21710 (*<code>qi_1): Ditto.
21711 (kxnor<mode>): Ditto.
21712 (kortestzhi): Ditto.
21713 (kortestchi): Ditto.
21714 (kunpckhi): Ditto.
21715 (*one_cmplhi2_1): Ditto.
21716 (*one_cmplqi2_1): Ditto.
21717 * config/i386/sse.md (): Change k to Yk.
21718 (avx512f_load<mode>_mask): Ditto.
21719 (avx512f_blendm<mode>): Ditto.
21720 (avx512f_store<mode>_mask): Ditto.
21721 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
21722 (avx512f_storedqu<mode>_mask): Ditto.
21723 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
21724 Ditto.
21725 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
21726 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
21727 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
21728 (avx512f_maskcmp<mode>3): Ditto.
21729 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
21730 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
21731 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
21732 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
21733 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
21734 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
21735 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
21736 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
21737 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
21738 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
21739 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
21740 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
21741 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
21742 (vec_extract_lo_<mode>_maskm): Ditto.
21743 (vec_extract_hi_<mode>_maskm): Ditto.
21744 (avx512f_vternlog<mode>_mask): Ditto.
21745 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
21746 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
21747 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
21748 (avx512f_<code>v8div16qi2_mask): Ditto.
21749 (avx512f_<code>v8div16qi2_mask_store): Ditto.
21750 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
21751 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
21752 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
21753 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
21754 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21755 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21756 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21757 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21758 (avx512cd_maskb_vec_dupv8di): Ditto.
21759 (avx512cd_maskw_vec_dupv16si): Ditto.
21760 (avx512f_vpermi2var<mode>3_maskz): Ditto.
21761 (avx512f_vpermi2var<mode>3_mask): Ditto.
21762 (avx512f_vpermi2var<mode>3_mask): Ditto.
21763 (avx512f_vpermt2var<mode>3_maskz): Ditto.
21764 (*avx512f_gathersi<mode>): Ditto.
21765 (*avx512f_gathersi<mode>_2): Ditto.
21766 (*avx512f_gatherdi<mode>): Ditto.
21767 (*avx512f_gatherdi<mode>_2): Ditto.
21768 (*avx512f_scattersi<mode>): Ditto.
21769 (*avx512f_scatterdi<mode>): Ditto.
21770 (avx512f_compress<mode>_mask): Ditto.
21771 (avx512f_compressstore<mode>_mask): Ditto.
21772 (avx512f_expand<mode>_mask): Ditto.
21773 * config/i386/subst.md (mask): Change k to Yk.
21774 (mask_scalar_merge): Ditto.
21775 (sd): Ditto.
21776
21777 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
21778
21779 * doc/extend.texi (Vector Extensions): Document ?: in C++.
21780
21781 2014-01-31 Richard Biener <rguenther@suse.de>
21782
21783 PR middle-end/59990
21784 * builtins.c (fold_builtin_memory_op): Make sure to not
21785 use a floating-point mode or a boolean or enumeral type for
21786 the copy operation.
21787
21788 2014-01-30 DJ Delorie <dj@redhat.com>
21789
21790 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
21791 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
21792 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
21793 whenever main() has an epilogue.
21794
21795 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21796
21797 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
21798 unused variable "field".
21799 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
21800 (vsx_mergeh_<mode>): Likewise.
21801 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
21802 (altivec_vmrghh): Likewise.
21803 (altivec_vmrghw): Likewise.
21804 (altivec_vmrglb): Likewise.
21805 (altivec_vmrglh): Likewise.
21806 (altivec_vmrglw): Likewise.
21807 (altivec_vspltb): Add missing uses.
21808 (altivec_vsplth): Likewise.
21809 (altivec_vspltw): Likewise.
21810 (altivec_vspltsf): Likewise.
21811
21812 2014-01-30 Jakub Jelinek <jakub@redhat.com>
21813
21814 PR target/59923
21815 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
21816 frame related instructions.
21817
21818 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
21819
21820 PR rtl-optimization/59959
21821 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
21822 any reload of register whose subreg is invalid.
21823
21824 2014-01-30 Jakub Jelinek <jakub@redhat.com>
21825
21826 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
21827 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
21828 Add missing return type - void.
21829
21830 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21831
21832 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
21833 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
21834 remove element index adjustment for endian (now handled in vsx.md
21835 and altivec.md).
21836 (altivec_expand_vec_perm_const): Use
21837 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
21838 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
21839 (vsx_xxspltw_<mode>): Adjust element index for little endian.
21840 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
21841 define_expand and a new define_insn *altivec_vspltb_internal;
21842 adjust for -maltivec=be on a little endian target.
21843 (altivec_vspltb_direct): New.
21844 (altivec_vsplth): Divide into a define_expand and a new
21845 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
21846 little endian target.
21847 (altivec_vsplth_direct): New.
21848 (altivec_vspltw): Divide into a define_expand and a new
21849 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
21850 little endian target.
21851 (altivec_vspltw_direct): New.
21852 (altivec_vspltsf): Divide into a define_expand and a new
21853 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
21854 a little endian target.
21855
21856 2014-01-30 Richard Biener <rguenther@suse.de>
21857
21858 PR tree-optimization/59993
21859 * tree-ssa-forwprop.c (associate_pointerplus): Check we
21860 can propagate form the earlier stmt and avoid the transform
21861 when the intermediate result is needed.
21862
21863 2014-01-30 Alangi Derick <alangiderick@gmail.com>
21864
21865 * README.Portability: Fix typo.
21866
21867 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
21868
21869 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
21870 comparison_operator with ordered_comparison_operator.
21871
21872 2014-01-30 Nick Clifton <nickc@redhat.com>
21873
21874 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
21875 Rename to mn10300_store_multiple_regs.
21876 * config/mn10300/mn10300.c: Likewise.
21877 * config/mn10300/mn10300.md (store_movm): Fix typo: call
21878 store_multiple_regs.
21879 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
21880 Call mn10300_store_multiple_regs.
21881
21882 2014-01-30 Nick Clifton <nickc@redhat.com>
21883 DJ Delorie <dj@redhat.com>
21884
21885 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
21886 %fp 2 to keep registers after it properly word-aligned.
21887 (rl78_alloc_physical_registers_umul): Handle the case where both
21888 input operands are the same.
21889
21890 2014-01-30 Richard Biener <rguenther@suse.de>
21891
21892 PR tree-optimization/59903
21893 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
21894 check properly.
21895
21896 2014-01-30 Jason Merrill <jason@redhat.com>
21897
21898 PR c++/59633
21899 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
21900
21901 PR c++/59645
21902 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
21903
21904 2014-01-30 Richard Biener <rguenther@suse.de>
21905
21906 PR tree-optimization/59951
21907 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
21908
21909 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
21910
21911 PR target/59784
21912 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
21913 SFmode to DFmode case.
21914
21915 2014-01-29 DJ Delorie <dj@redhat.com>
21916
21917 * config/msp430/msp430.opt (-minrt): New.
21918 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
21919 if -minrt given.
21920 (ENDFILE_SPEC): Likewise.
21921
21922 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
21923
21924 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
21925 (estimate_function_body_sizes): Use it.
21926
21927 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
21928
21929 PR c++/58561
21930 * dwarf2out.c (is_cxx_auto): New.
21931 (is_base_type): Use it.
21932 (gen_type_die_with_usage): Likewise.
21933
21934 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21935
21936 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
21937 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
21938 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
21939 -maltivec=be with LE targets.
21940 (vsx_mergeh_<mode>): Likewise.
21941 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
21942 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
21943 (altivec_vmrghb): Replace with define_expand and new
21944 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
21945 (altivec_vmrghb_direct): New define_insn.
21946 (altivec_vmrghh): Replace with define_expand and new
21947 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
21948 (altivec_vmrghh_direct): New define_insn.
21949 (altivec_vmrghw): Replace with define_expand and new
21950 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
21951 (altivec_vmrghw_direct): New define_insn.
21952 (*altivec_vmrghsf): Adjust for endianness.
21953 (altivec_vmrglb): Replace with define_expand and new
21954 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
21955 (altivec_vmrglb_direct): New define_insn.
21956 (altivec_vmrglh): Replace with define_expand and new
21957 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
21958 (altivec_vmrglh_direct): New define_insn.
21959 (altivec_vmrglw): Replace with define_expand and new
21960 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
21961 (altivec_vmrglw_direct): New define_insn.
21962 (*altivec_vmrglsf): Adjust for endianness.
21963 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21964 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21965 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21966 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21967 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21968 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21969 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21970 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21971
21972 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
21973
21974 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
21975 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
21976 whitespace.
21977
21978 2014-01-29 Richard Biener <rguenther@suse.de>
21979
21980 PR tree-optimization/58742
21981 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
21982 associate_pointerplus_align.
21983 (associate_pointerplus_diff): New function.
21984 (associate_pointerplus): Likewise. Call associate_pointerplus_align
21985 and associate_pointerplus_diff.
21986
21987 2014-01-29 Richard Biener <rguenther@suse.de>
21988
21989 * lto-streamer.h (LTO_major_version): Bump to 3.
21990 (LTO_minor_version): Reset to 0.
21991
21992 2014-01-29 Renlin Li <Renlin.Li@arm.com>
21993
21994 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
21995 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
21996 (arm_file_start): Generate correct asm header for armv7ve.
21997 * config/arm/bpabi.h: Add multilib support for armv7ve.
21998 * config/arm/driver-arm.c: Change the architectures of cortex-a7
21999 and cortex-a15 to armv7ve.
22000 * config/arm/t-aprofile: Add multilib support for armv7ve.
22001 * doc/invoke.texi: Document -march=armv7ve.
22002
22003 2014-01-29 Richard Biener <rguenther@suse.de>
22004
22005 PR tree-optimization/58742
22006 * tree-ssa-forwprop.c (associate_plusminus): Return true
22007 if we changed sth, defer EH cleanup to ...
22008 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
22009 (simplify_mult): New function.
22010
22011 2014-01-29 Jakub Jelinek <jakub@redhat.com>
22012
22013 PR middle-end/59917
22014 PR tree-optimization/59920
22015 * tree.c (build_common_builtin_nodes): Remove
22016 __builtin_setjmp_dispatcher initialization.
22017 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
22018 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
22019 instead of gsi_after_labels + manually skipping debug stmts.
22020 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
22021 ignore bbs with IFN_ABNORMAL_DISPATCHER.
22022 * tree-inline.c (copy_edges_for_bb): Remove
22023 can_make_abnormal_goto argument, instead add abnormal_goto_dest
22024 argument. Ignore computed_goto_p stmts. Don't call
22025 make_abnormal_goto_edges. If a call might need abnormal edges
22026 for non-local gotos, see if it already has an edge to
22027 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
22028 with true argument, don't do anything then, otherwise add
22029 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
22030 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
22031 caller.
22032 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
22033 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
22034 (lower_stmt): Don't set data->calls_builtin_setjmp.
22035 (lower_builtin_setjmp): Adjust comment.
22036 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
22037 * tree-cfg.c (found_computed_goto): Remove.
22038 (factor_computed_gotos): Remove.
22039 (make_goto_expr_edges): Return bool, true for computed gotos.
22040 Don't call make_abnormal_goto_edges.
22041 (build_gimple_cfg): Don't set found_computed_goto, don't call
22042 factor_computed_gotos.
22043 (computed_goto_p): No longer static.
22044 (make_blocks): Don't set found_computed_goto.
22045 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
22046 (make_edges): If make_goto_expr_edges returns true, push bb
22047 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
22048 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
22049 vector. Record mapping between bbs and OpenMP regions if there
22050 are any, adjust make_gimple_omp_edges caller. Call
22051 handle_abnormal_edges.
22052 (make_abnormal_goto_edges): Remove.
22053 * tree-cfg.h (make_abnormal_goto_edges): Remove.
22054 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
22055 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
22056 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
22057 * internal-fn.def (ABNORMAL_DISPATCHER): New.
22058 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
22059 filling *region also set *region_idx to (*region)->entry->index.
22060
22061 PR other/58712
22062 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
22063 For REGs set ORIGINAL_REGNO.
22064
22065 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
22066
22067 * doc/md.texi: Mention that a target shouldn't implement
22068 vec_widen_(s|u)mul_even/odd pair if it is less efficient
22069 than hi/lo pair.
22070
22071 2014-01-29 Jakub Jelinek <jakub@redhat.com>
22072
22073 PR tree-optimization/59594
22074 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
22075 a copy of the datarefs vector rather than the vector itself.
22076
22077 2014-01-28 Jason Merrill <jason@redhat.com>
22078
22079 PR c++/53756
22080 * dwarf2out.c (auto_die): New static.
22081 (gen_type_die_with_usage): Handle C++1y 'auto'.
22082 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
22083 on definition.
22084
22085 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
22086
22087 PR target/59672
22088 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
22089 (SPEC_X32): Likewise.
22090 (SPEC_64): Likewise.
22091 * config/i386/i386.c (ix86_option_override_internal): Turn off
22092 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
22093 for TARGET_16BIT.
22094 (x86_file_start): Output .code16gcc for TARGET_16BIT.
22095 * config/i386/i386.h (TARGET_16BIT): New macro.
22096 (TARGET_16BIT_P): Likewise.
22097 * config/i386/i386.opt: Add m16.
22098 * doc/invoke.texi: Document -m16.
22099
22100 2014-01-28 Jakub Jelinek <jakub@redhat.com>
22101
22102 PR preprocessor/59935
22103 * input.c (location_get_source_line): Bail out on when line number
22104 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
22105
22106 2014-01-28 Richard Biener <rguenther@suse.de>
22107
22108 PR tree-optimization/58742
22109 * tree-ssa-forwprop.c (associate_plusminus): Handle
22110 pointer subtraction of the form (T)(P + A) - (T)P.
22111
22112 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22113
22114 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
22115 at const_int_cost.
22116
22117 2014-01-28 Richard Biener <rguenther@suse.de>
22118
22119 Revert
22120 2014-01-28 Richard Biener <rguenther@suse.de>
22121
22122 PR rtl-optimization/45364
22123 PR rtl-optimization/59890
22124 * var-tracking.c (local_get_addr_clear_given_value): Handle
22125 already cleared slot.
22126 (val_reset): Handle not allocated local_get_addr_cache.
22127 (vt_find_locations): Use post-order on the inverted CFG.
22128
22129 2014-01-28 Richard Biener <rguenther@suse.de>
22130
22131 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
22132
22133 2014-01-28 Richard Biener <rguenther@suse.de>
22134
22135 PR rtl-optimization/45364
22136 PR rtl-optimization/59890
22137 * var-tracking.c (local_get_addr_clear_given_value): Handle
22138 already cleared slot.
22139 (val_reset): Handle not allocated local_get_addr_cache.
22140 (vt_find_locations): Use post-order on the inverted CFG.
22141
22142 2014-01-28 Alan Modra <amodra@gmail.com>
22143
22144 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
22145 * configure.ac <recursive call for build != host>: Define
22146 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
22147 and LD_FOR_BUILD too.
22148 * configure: Regenerate.
22149
22150 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
22151
22152 * config/i386/i386.c (get_builtin_code_for_version): Separate
22153 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
22154 Broadwell from Haswell.
22155
22156 2014-01-27 Steve Ellcey <sellcey@mips.com>
22157
22158 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22159 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
22160 * config/mips/mips.c (mips_option_override): Change setting
22161 of TARGET_DSP.
22162 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
22163 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
22164 Change from Mask to Var.
22165
22166 2014-01-27 Jeff Law <law@redhat.com>
22167
22168 * ipa-inline.c (inline_small_functions): Fix typo.
22169
22170 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
22171
22172 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
22173 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
22174 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
22175 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
22176 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
22177 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
22178 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
22179 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
22180 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
22181 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
22182 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
22183 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
22184 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
22185 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
22186 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
22187 (_mm512_storeu_epi64): Ditto.
22188 (_mm512_cmpge_epi32_mask): Ditto.
22189 (_mm512_cmpge_epu32_mask): Ditto.
22190 (_mm512_cmpge_epi64_mask): Ditto.
22191 (_mm512_cmpge_epu64_mask): Ditto.
22192 (_mm512_cmple_epi32_mask): Ditto.
22193 (_mm512_cmple_epu32_mask): Ditto.
22194 (_mm512_cmple_epi64_mask): Ditto.
22195 (_mm512_cmple_epu64_mask): Ditto.
22196 (_mm512_cmplt_epi32_mask): Ditto.
22197 (_mm512_cmplt_epu32_mask): Ditto.
22198 (_mm512_cmplt_epi64_mask): Ditto.
22199 (_mm512_cmplt_epu64_mask): Ditto.
22200 (_mm512_cmpneq_epi32_mask): Ditto.
22201 (_mm512_cmpneq_epu32_mask): Ditto.
22202 (_mm512_cmpneq_epi64_mask): Ditto.
22203 (_mm512_cmpneq_epu64_mask): Ditto.
22204 (_mm512_expand_pd): Ditto.
22205 (_mm512_expand_ps): Ditto.
22206 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
22207 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
22208 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
22209 * config/i386/i386.c (ix86_builtins): Add
22210 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
22211 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
22212 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
22213 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
22214 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
22215 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
22216 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
22217 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
22218 IX86_BUILTIN_PMOVUSQW512_MEM.
22219 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
22220 __builtin_ia32_pmovsqd512mem_mask,
22221 __builtin_ia32_pmovqd512mem_mask,
22222 __builtin_ia32_pmovusqw512mem_mask,
22223 __builtin_ia32_pmovsqw512mem_mask,
22224 __builtin_ia32_pmovqw512mem_mask,
22225 __builtin_ia32_pmovusdw512mem_mask,
22226 __builtin_ia32_pmovsdw512mem_mask,
22227 __builtin_ia32_pmovdw512mem_mask,
22228 __builtin_ia32_pmovqb512mem_mask,
22229 __builtin_ia32_pmovusqb512mem_mask,
22230 __builtin_ia32_pmovsqb512mem_mask,
22231 __builtin_ia32_pmovusdb512mem_mask,
22232 __builtin_ia32_pmovsdb512mem_mask,
22233 __builtin_ia32_pmovdb512mem_mask.
22234 (bdesc_args): Add __builtin_ia32_expanddf512,
22235 __builtin_ia32_expandsf512.
22236 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
22237 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
22238 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
22239 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
22240 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
22241 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
22242 (avx512f_<code>v8div16qi2_mask_store): This.
22243 (avx512f_expand<mode>): New.
22244
22245 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
22246
22247 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
22248 New.
22249 (_mm512_mask_prefetch_i64gather_pd): Ditto.
22250 (_mm512_prefetch_i32scatter_pd): Ditto.
22251 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
22252 (_mm512_prefetch_i64scatter_pd): Ditto.
22253 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
22254 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
22255 (_mm512_mask_prefetch_i64gather_ps): Ditto.
22256 (_mm512_prefetch_i32scatter_ps): Ditto.
22257 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
22258 (_mm512_prefetch_i64scatter_ps): Ditto.
22259 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
22260 * config/i386/i386-builtin-types.def: Define
22261 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
22262 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
22263 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
22264 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
22265 IX86_BUILTIN_SCATTERPFQPD.
22266 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
22267 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
22268 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
22269 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
22270 __builtin_ia32_scatterpfqps.
22271 (ix86_expand_builtin): Expand new built-ins.
22272 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
22273 fix memory access data type.
22274 (*avx512pf_gatherpf<mode>_mask): Ditto.
22275 (*avx512pf_gatherpf<mode>): Ditto.
22276 (avx512pf_scatterpf<mode>): Ditto.
22277 (*avx512pf_scatterpf<mode>_mask): Ditto.
22278 (*avx512pf_scatterpf<mode>): Ditto.
22279 (GATHER_SCATTER_SF_MEM_MODE): New.
22280 (avx512pf_gatherpf<mode>df): Ditto.
22281 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22282 (*avx512pf_scatterpf<mode>df): Ditto.
22283
22284 2014-01-27 Jakub Jelinek <jakub@redhat.com>
22285
22286 PR bootstrap/59934
22287 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
22288 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
22289 reached.
22290
22291 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
22292
22293 * common/config/arm/arm-common.c
22294 (arm_rewrite_mcpu): Handle multiple names.
22295 * config/arm/arm.h
22296 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
22297
22298 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
22299
22300 * gimple-builder.h (create_gimple_tmp): Delete.
22301
22302 2014-01-27 Christian Bruel <christian.bruel@st.com>
22303
22304 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
22305 words comparisons.
22306
22307 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
22308
22309 * config/pa/pa.md (call): Generate indirect long calls to non-local
22310 functions when outputing 32-bit code.
22311 (call_value): Likewise except for special call to buggy powf function.
22312
22313 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
22314 portable runtime and PIC indirect calls.
22315 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
22316 and PIC call sequences. Use ldo instead of blr to set return register
22317 in PIC call sequence.
22318
22319 2014-01-25 Walter Lee <walt@tilera.com>
22320
22321 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
22322 avoid clobbering a live register.
22323
22324 2014-01-25 Walter Lee <walt@tilera.com>
22325
22326 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
22327 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
22328 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
22329 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
22330
22331 2014-01-25 Walter Lee <walt@tilera.com>
22332
22333 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
22334 arguments on even registers.
22335 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
22336 STACK_BOUNDARY.
22337 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
22338 (BIGGEST_ALIGNMENT): Ditto.
22339 (BIGGEST_FIELD_ALIGNMENT): Ditto.
22340
22341 2014-01-25 Walter Lee <walt@tilera.com>
22342
22343 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
22344 insns before bundling.
22345 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
22346
22347 2014-01-25 Walter Lee <walt@tilera.com>
22348
22349 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
22350 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
22351 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
22352
22353 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
22354
22355 * config/mips/constraints.md (kl): Delete.
22356 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
22357 define expands, using...
22358 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
22359 instructions for MIPS16.
22360 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
22361 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
22362
22363 2014-01-25 Walter Lee <walt@tilera.com>
22364
22365 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
22366 (clzdi2): Ditto.
22367 (ffsdi2): Ditto.
22368
22369 2014-01-25 Walter Lee <walt@tilera.com>
22370
22371 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
22372 (TARGET_EXPAND_TO_RTL_HOOK): Define.
22373
22374 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
22375
22376 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
22377 Handle XOR.
22378
22379 2014-01-25 Jakub Jelinek <jakub@redhat.com>
22380
22381 * print-rtl.c (in_call_function_usage): New var.
22382 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
22383 EXPR_LIST mode as mode and not as reg note name.
22384
22385 PR middle-end/59561
22386 * cfgloopmanip.c (copy_loop_info): If
22387 loop->warned_aggressive_loop_optimizations, make sure
22388 the flag is set in target loop too.
22389
22390 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
22391
22392 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
22393 flag_cilkplus.
22394 * builtins.def: Likewise.
22395 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
22396 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
22397 * ira.c (ira_setup_eliminable_regset): Likewise.
22398 * omp-low.c (gate_expand_omp): Likewise.
22399 (execute_lower_omp): Likewise.
22400 (diagnose_sb_0): Likewise.
22401 (gate_diagnose_omp_blocks): Likewise.
22402 (simd_clone_clauses_extract): Likewise.
22403 (gate): Likewise.
22404
22405 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22406
22407 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
22408 correction for little endian...
22409 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
22410 here.
22411
22412 2014-01-24 Jeff Law <law@redhat.com>
22413
22414 PR tree-optimization/59919
22415 * tree-vrp.c (find_assert_locations_1): Do not register asserts
22416 for non-returning calls.
22417
22418 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
22419
22420 * common/config/aarch64/aarch64-common.c
22421 (aarch64_rewrite_mcpu): Handle multiple names.
22422 * config/aarch64/aarch64.h
22423 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
22424
22425 2014-01-24 Dodji Seketeli <dodji@redhat.com>
22426
22427 * input.c (add_file_to_cache_tab): Handle the case where fopen
22428 returns NULL.
22429
22430 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
22431
22432 PR target/59929
22433 * config/i386/i386.md (pushsf splitter): Get stack adjustment
22434 from push operand if code of push isn't PRE_DEC.
22435
22436 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22437
22438 PR target/59909
22439 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
22440 -mquad-memory-atomic. Update -mquad-memory documentation to say
22441 it is only used for non-atomic loads/stores.
22442
22443 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
22444 -mquad-memory or -mquad-memory-atomic switches.
22445
22446 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
22447 -mquad-memory-atomic to ISA 2.07 support.
22448
22449 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
22450 to separate support of normal quad word memory operations (ldq, stq)
22451 from the atomic quad word memory operations.
22452
22453 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
22454 support to separate non-atomic quad word operations from atomic
22455 quad word operations. Disable non-atomic quad word operations in
22456 little endian mode so that we don't have to swap words after the
22457 load and before the store.
22458 (quad_load_store_p): Add comment about atomic quad word support.
22459 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
22460 options printed with -mdebug=reg.
22461
22462 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
22463 -mquad-memory-atomic as the test for whether we have quad word
22464 atomic instructions.
22465 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
22466 or -mp8-vector are used, allow byte/half-word atomic operations.
22467
22468 * config/rs6000/sync.md (load_lockedti): Insure that the address
22469 is a proper indexed or indirect address for the lqarx instruction.
22470 On little endian systems, swap the hi/lo registers after the lqarx
22471 instruction.
22472 (load_lockedpti): Use indexed_or_indirect_operand predicate to
22473 insure the address is valid for the lqarx instruction.
22474 (store_conditionalti): Insure that the address is a proper indexed
22475 or indirect address for the stqcrx. instruction. On little endian
22476 systems, swap the hi/lo registers before doing the stqcrx.
22477 instruction.
22478 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
22479 insure the address is valid for the stqcrx. instruction.
22480
22481 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
22482 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
22483 type of quad memory support is available.
22484
22485 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
22486
22487 PR regression/59915
22488 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
22489 there is a danger of looping.
22490
22491 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
22492
22493 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22494 force flag_ira_loop_pressure if set via command line.
22495
22496 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
22497
22498 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
22499 (ashr_simd): New builtin handling DI mode.
22500 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
22501 (aarch64_sshr_simddi): New match pattern.
22502 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
22503 (vshrd_n_s64): Likewise.
22504 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
22505
22506 2014-01-23 Nick Clifton <nickc@redhat.com>
22507
22508 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
22509 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
22510 favour of mcu specific scripts.
22511 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
22512 430x multilibs.
22513
22514 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
22515 Alex Velenko <Alex.Velenko@arm.com>
22516
22517 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
22518 (vaddv_s16): Likewise.
22519 (vaddv_s32): Likewise.
22520 (vaddv_u8): Likewise.
22521 (vaddv_u16): Likewise.
22522 (vaddv_u32): Likewise.
22523 (vaddvq_s8): Likewise.
22524 (vaddvq_s16): Likewise.
22525 (vaddvq_s32): Likewise.
22526 (vaddvq_s64): Likewise.
22527 (vaddvq_u8): Likewise.
22528 (vaddvq_u16): Likewise.
22529 (vaddvq_u32): Likewise.
22530 (vaddvq_u64): Likewise.
22531 (vaddv_f32): Likewise.
22532 (vaddvq_f32): Likewise.
22533 (vaddvq_f64): Likewise.
22534 (vmaxv_f32): Likewise.
22535 (vmaxv_s8): Likewise.
22536 (vmaxv_s16): Likewise.
22537 (vmaxv_s32): Likewise.
22538 (vmaxv_u8): Likewise.
22539 (vmaxv_u16): Likewise.
22540 (vmaxv_u32): Likewise.
22541 (vmaxvq_f32): Likewise.
22542 (vmaxvq_f64): Likewise.
22543 (vmaxvq_s8): Likewise.
22544 (vmaxvq_s16): Likewise.
22545 (vmaxvq_s32): Likewise.
22546 (vmaxvq_u8): Likewise.
22547 (vmaxvq_u16): Likewise.
22548 (vmaxvq_u32): Likewise.
22549 (vmaxnmv_f32): Likewise.
22550 (vmaxnmvq_f32): Likewise.
22551 (vmaxnmvq_f64): Likewise.
22552 (vminv_f32): Likewise.
22553 (vminv_s8): Likewise.
22554 (vminv_s16): Likewise.
22555 (vminv_s32): Likewise.
22556 (vminv_u8): Likewise.
22557 (vminv_u16): Likewise.
22558 (vminv_u32): Likewise.
22559 (vminvq_f32): Likewise.
22560 (vminvq_f64): Likewise.
22561 (vminvq_s8): Likewise.
22562 (vminvq_s16): Likewise.
22563 (vminvq_s32): Likewise.
22564 (vminvq_u8): Likewise.
22565 (vminvq_u16): Likewise.
22566 (vminvq_u32): Likewise.
22567 (vminnmv_f32): Likewise.
22568 (vminnmvq_f32): Likewise.
22569 (vminnmvq_f64): Likewise.
22570
22571 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
22572
22573 * config/aarch64/aarch64-simd.md
22574 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
22575 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
22576 (*aarch64_mul3_elt<mode>): Likewise.
22577 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
22578 (*aarch64_mul3_elt_to_64v2df): Likewise.
22579 (*aarch64_mla_elt<mode>): Likewise.
22580 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
22581 (*aarch64_mls_elt<mode>): Likewise.
22582 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
22583 (*aarch64_fma4_elt<mode>): Likewise.
22584 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
22585 (*aarch64_fma4_elt_to_64v2df): Likewise.
22586 (*aarch64_fnma4_elt<mode>): Likewise.
22587 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
22588 (*aarch64_fnma4_elt_to_64v2df): Likewise.
22589 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
22590 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
22591 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
22592 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
22593 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
22594 (aarch64_sqdmull_lane<mode>_internal): Likewise.
22595 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
22596
22597 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
22598
22599 * config/aarch64/aarch64-simd.md
22600 (aarch64_be_checked_get_lane<mode>): New define_expand.
22601 * config/aarch64/aarch64-simd-builtins.def
22602 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
22603 New builtin definition.
22604 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
22605 Use new safe be builtin.
22606
22607 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
22608
22609 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
22610 New define_insn.
22611 (aarch64_be_st1<mode>): Likewise.
22612 (aarch_ld1<VALL:mode>): Define_expand modified.
22613 (aarch_st1<VALL:mode>): Likewise.
22614 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
22615 (UNSPEC_ST1): Likewise.
22616
22617 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
22618
22619 * config/microblaze/microblaze.md: Add trap insn and attribute
22620
22621 2014-01-23 Dodji Seketeli <dodji@redhat.com>
22622
22623 PR preprocessor/58580
22624 * input.h (location_get_source_line): Take an additional line_size
22625 parameter.
22626 (void diagnostics_file_cache_fini): Declare new function.
22627 * input.c (struct fcache): New type.
22628 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
22629 New static constants.
22630 (diagnostic_file_cache_init, total_lines_num)
22631 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
22632 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
22633 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
22634 (get_next_line, read_next_line, goto_next_line, read_line_num):
22635 New static function definitions.
22636 (diagnostic_file_cache_fini): New function.
22637 (location_get_source_line): Take an additional output line_len
22638 parameter. Re-write using lookup_or_add_file_to_cache_tab and
22639 read_line_num.
22640 * diagnostic.c (diagnostic_finish): Call
22641 diagnostic_file_cache_fini.
22642 (adjust_line): Take an additional input parameter for the length
22643 of the line, rather than calculating it with strlen.
22644 (diagnostic_show_locus): Adjust the use of
22645 location_get_source_line and adjust_line with respect to their new
22646 signature. While displaying a line now, do not stop at the first
22647 null byte. Rather, display the zero byte as a space and keep
22648 going until we reach the size of the line.
22649 * Makefile.in: Add vec.o to OBJS-libcommon
22650
22651 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
22652 Ilya Tocar <ilya.tocar@intel.com>
22653
22654 * config/i386/avx512fintrin.h (_mm512_kmov): New.
22655 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
22656 (__builtin_ia32_kmov16): Ditto.
22657 * config/i386/i386.md (UNSPEC_KMOV): New.
22658 (kmovw): Ditto.
22659
22660 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
22661
22662 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
22663 (_mm512_storeu_si512): Ditto.
22664
22665 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
22666
22667 PR target/52125
22668 * rtl.h (get_referenced_operands): Declare.
22669 * recog.c (get_referenced_operands): New function.
22670 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
22671 operands have been referenced when recording LO_SUM references.
22672
22673 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
22674
22675 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
22676
22677 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
22678
22679 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
22680 Enable for generic and recent AMD targets.
22681
22682 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
22683
22684 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
22685 ARG_SIZE note when adjustment was eliminated.
22686
22687 2014-01-22 Jeff Law <law@redhat.com>
22688
22689 PR tree-optimization/59597
22690 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
22691 in file. Accept new argument REGISTERING and use it to modify
22692 dump output appropriately.
22693 (register_jump_thread): Corresponding changes.
22694 (mark_threaded_blocks): Reinstate code to cancel unprofitable
22695 thread paths involving joiner blocks. Add code to dump cancelled
22696 jump threading paths.
22697
22698 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
22699
22700 PR rtl-optimization/59477
22701 * lra-constraints.c (inherit_in_ebb): Process call for living hard
22702 regs. Update reloads_num and potential_reload_hard_regs for all insns.
22703
22704 2014-01-22 Tom Tromey <tromey@redhat.com>
22705
22706 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
22707 PARAMS.
22708 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
22709
22710 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
22711
22712 PR rtl-optimization/59896
22713 * lra-constraints.c (process_alt_operands): Check unused note for
22714 matched operands of insn with no output reloads.
22715
22716 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
22717
22718 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
22719 (mips_move_from_gpr_cost): Likewise.
22720
22721 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
22722
22723 PR rtl-optimization/59858
22724 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
22725 ira_class_hard_regs_num.
22726 (process_alt_operands): Increase reject for dying matched operand.
22727
22728 2014-01-21 Jakub Jelinek <jakub@redhat.com>
22729
22730 PR target/59003
22731 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
22732 smaller than size, perform several stores or loads and stores
22733 at dst + count - size to store or copy all of size bytes, rather
22734 than just last modesize bytes.
22735
22736 2014-01-20 DJ Delorie <dj@redhat.com>
22737
22738 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
22739 that CLOBBERs are REGs before propogating their values.
22740
22741 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
22742
22743 PR middle-end/59789
22744 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
22745 (cgraph_inline_failed_type): New function.
22746 * cgraph.h (DEFCIFCODE): Add type.
22747 (cgraph_inline_failed_type_t): New enum.
22748 (cgraph_inline_failed_type): New prototype.
22749 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
22750 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22751 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
22752 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
22753 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
22754 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
22755 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
22756 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
22757 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
22758 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
22759 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
22760 OPTIMIZATION_MISMATCH.
22761 * tree-inline.c (expand_call_inline): Emit errors during
22762 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
22763
22764 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
22765
22766 PR target/59685
22767 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
22768 mode attribute in insn output.
22769
22770 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
22771
22772 * output.h (output_constant): Delete.
22773 * varasm.c (output_constant): Make private.
22774
22775 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
22776
22777 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
22778
22779 2014-01-20 Jakub Jelinek <jakub@redhat.com>
22780
22781 PR middle-end/59860
22782 * tree.h (fold_builtin_strcat): New prototype.
22783 * builtins.c (fold_builtin_strcat): No longer static. Add len
22784 argument, if non-NULL, don't call c_strlen. Optimize
22785 directly into __builtin_memcpy instead of __builtin_strcpy.
22786 (fold_builtin_2): Adjust fold_builtin_strcat caller.
22787 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
22788
22789 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
22790
22791 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22792 for SImode_address_operand operands, having only a REG argument.
22793
22794 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
22795
22796 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
22797 loader name using mbig-endian.
22798 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
22799
22800 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
22801
22802 * doc/invoke.texi (-march): Clarify documentation for AArch64.
22803 (-mtune): Likewise.
22804 (-mcpu): Likewise.
22805
22806 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
22807
22808 * config/aarch64/aarch64-protos.h
22809 (aarch64_cannot_change_mode_class_ptr): Declare.
22810 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
22811 aarch64_cannot_change_mode_class_ptr): New.
22812 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
22813 backend hook aarch64_cannot_change_mode_class.
22814
22815 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
22816
22817 * common/config/aarch64/aarch64-common.c
22818 (aarch64_handle_option): Don't handle any option order logic here.
22819 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
22820 selected_cpu, warn on architecture version mismatch.
22821 (aarch64_override_options): Fix parsing order for option strings.
22822
22823 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22824 Iain Sandoe <iain@codesourcery.com>
22825
22826 PR bootstrap/59496
22827 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
22828 warning. Amend comment to reflect current functionality.
22829
22830 2014-01-20 Richard Biener <rguenther@suse.de>
22831
22832 PR middle-end/59860
22833 * builtins.c (fold_builtin_strcat): Remove case better handled
22834 by tree-ssa-strlen.c.
22835
22836 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
22837
22838 * config/aarch64/aarch64.opt
22839 (mcpu, march, mtune): Make case-insensitive.
22840
22841 2014-01-20 Jakub Jelinek <jakub@redhat.com>
22842
22843 PR target/59880
22844 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22845 if operands[1] is a REG or ZERO_EXTEND of a REG.
22846
22847 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
22848
22849 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
22850
22851 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
22852
22853 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
22854 long non-pic millicode calls.
22855
22856 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22857
22858 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
22859
22860 2014-01-19 Kito Cheng <kito@0xlab.org>
22861
22862 * builtins.c (expand_movstr): Check movstr expand done or fail.
22863
22864 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22865 H.J. Lu <hongjiu.lu@intel.com>
22866
22867 PR target/59379
22868 * config/i386/i386.md (*lea<mode>): Zero-extend return register
22869 to DImode for zero-extended addresses.
22870
22871 2014-01-19 Jakub Jelinek <jakub@redhat.com>
22872
22873 PR rtl-optimization/57763
22874 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
22875 on the new indirect jump_insn and increment LABEL_NUSES (label).
22876
22877 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
22878
22879 PR bootstrap/59580
22880 PR bootstrap/59583
22881 * config.gcc (x86_archs): New variable.
22882 (x86_64_archs): Likewise.
22883 (x86_cpus): Likewise.
22884 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
22885 --with-arch/--with-cpu= options.
22886 Support --with-arch=/--with-cpu={nehalem,westmere,
22887 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
22888
22889 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22890
22891 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
22892 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
22893
22894 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22895
22896 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
22897
22898 2014-01-18 Jakub Jelinek <jakub@redhat.com>
22899
22900 PR target/58944
22901 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
22902 clear cpp_get_options (parse_in)->warn_unused_macros for
22903 ix86_target_macros_internal with cpp_define.
22904
22905 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
22906
22907 * jump.c (delete_related_insns): Keep (use (insn))s.
22908 * reorg.c (redundant_insn): Check for barriers too.
22909
22910 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22911
22912 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
22913
22914 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
22915
22916 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
22917 call to $$dyncall when TARGET_LONG_CALLS is true.
22918
22919 2014-01-17 Jeff Law <law@redhat.com>
22920
22921 * ree.c (combine_set_extension): Temporarily disable test for
22922 changing number of hard registers.
22923
22924 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
22925
22926 PR middle-end/58125
22927 * ipa-inline-analysis.c (inline_free_summary):
22928 Do not free summary of aliases.
22929
22930 2014-01-17 Jakub Jelinek <jakub@redhat.com>
22931
22932 PR middle-end/59706
22933 * gimplify.c (gimplify_expr): Use create_tmp_var
22934 instead of create_tmp_var_raw. If cond doesn't have
22935 integral type, don't add the IFN_ANNOTATE builtin at all.
22936
22937 2014-01-17 Martin Jambor <mjambor@suse.cz>
22938
22939 PR ipa/59736
22940 * ipa-cp.c (prev_edge_clone): New variable.
22941 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
22942 Also resize prev_edge_clone vector.
22943 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
22944 (ipcp_edge_removal_hook): New function.
22945 (ipcp_driver): Register ipcp_edge_removal_hook.
22946
22947 2014-01-17 Andrew Pinski <apinski@cavium.com>
22948 Steve Ellcey <sellcey@mips.com>
22949
22950 PR target/59462
22951 * config/mips/mips.c (mips_print_operand): Check operand mode instead
22952 of operator mode.
22953
22954 2014-01-17 Jeff Law <law@redhat.com>
22955
22956 PR middle-end/57904
22957 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
22958 so that pass_ccp runs first.
22959
22960 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22961
22962 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
22963 (ix86_adjust_cost): Use !TARGET_XXX.
22964 (do_reorder_for_imul): Likewise.
22965 (swap_top_of_ready_list): Likewise.
22966 (ix86_sched_reorder): Likewise.
22967
22968 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22969
22970 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22971 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
22972 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
22973 (intel_memset): New. Duplicate slm_memset.
22974 (intel_cost): New. Duplicate slm_cost.
22975 (m_INTEL): New macro.
22976 (processor_target_table): Add "intel".
22977 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
22978 with PROCESSOR_INTEL for "intel".
22979 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
22980 PROCESSOR_SILVERMONT.
22981 (ix86_issue_rate): Likewise.
22982 (ix86_adjust_cost): Likewise.
22983 (ia32_multipass_dfa_lookahead): Likewise.
22984 (swap_top_of_ready_list): Likewise.
22985 (ix86_sched_reorder): Likewise.
22986 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
22987 instead of TARGET_OPT_AGU.
22988 * config/i386/i386.h (TARGET_INTEL): New.
22989 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
22990 (processor_type): Add PROCESSOR_INTEL.
22991 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
22992 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
22993
22994 2014-01-17 Marek Polacek <polacek@redhat.com>
22995
22996 PR c/58346
22997 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
22998 size is zero.
22999
23000 2014-01-17 Richard Biener <rguenther@suse.de>
23001
23002 PR tree-optimization/46590
23003 * opts.c (default_options_table): Add entries for
23004 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
23005 all enabled at -O1 but not for -Og.
23006 * common.opt (fbranch-count-reg): Remove Init(1).
23007 (fmove-loop-invariants): Likewise.
23008 (ftree-pta): Likewise.
23009
23010 2014-01-17 Jakub Jelinek <jakub@redhat.com>
23011
23012 * config/i386/i386.c (ix86_data_alignment): For compatibility with
23013 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
23014 decls to at least the GCC 4.8 used alignments.
23015
23016 PR fortran/59440
23017 * tree-nested.c (convert_nonlocal_reference_stmt,
23018 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
23019 of GIMPLE_BIND stmts, adjust associated decls.
23020
23021 2014-01-17 Richard Biener <rguenther@suse.de>
23022
23023 PR tree-optimization/46590
23024 * vec.h (vec<>::bseach): New member function implementing
23025 binary search according to C89 bsearch.
23026 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
23027 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
23028 bitmap pointer again. Make accesses_in_loop a flat array.
23029 (mem_ref_obstack): New global.
23030 (outermost_indep_loop): Adjust for mem_ref->stored changes.
23031 (mark_ref_stored): Likewise.
23032 (ref_indep_loop_p_2): Likewise.
23033 (set_ref_stored_in_loop): New helper function.
23034 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
23035 (memref_free): Adjust.
23036 (record_mem_ref_loc): Simplify.
23037 (gather_mem_refs_stmt): Adjust.
23038 (sort_locs_in_loop_postorder_cmp): New function.
23039 (analyze_memory_references): Sort accesses_in_loop after
23040 loop postorder number.
23041 (find_ref_loc_in_loop_cmp): New function.
23042 (for_all_locs_in_loop): Find relevant cluster of locs in
23043 accesses_in_loop and iterate without recursion.
23044 (execute_sm): Avoid uninit warning.
23045 (struct ref_always_accessed): Simplify.
23046 (ref_always_accessed::operator ()): Likewise.
23047 (ref_always_accessed_p): Likewise.
23048 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
23049 loop postorder numbers here.
23050 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
23051 numbers.
23052
23053 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
23054
23055 PR c++/57945
23056 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
23057 on decls for which assemble_alias has been called.
23058
23059 2014-01-17 Nick Clifton <nickc@redhat.com>
23060
23061 * config/msp430/msp430.opt: (mcpu): New option.
23062 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
23063 (msp430_option_override): Parse target_cpu. If the MCU name
23064 matches a generic string, clear target_mcu.
23065 (msp430_attr): Allow numeric interrupt values up to 63.
23066 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
23067 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
23068 option.
23069 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
23070 Add mcpu matches.
23071 * config/msp430/msp430.md (popm): Use %J rather than %I.
23072 (addsi3): Use msp430_nonimmediate_operand for operand 2.
23073 (addhi_cy_i): Use immediate_operand for operand 2.
23074 * doc/invoke.texi: Document -mcpu option.
23075
23076 2014-01-17 Richard Biener <rguenther@suse.de>
23077
23078 PR rtl-optimization/38518
23079 * df.h (df_analyze_loop): Declare.
23080 * df-core.c: Include cfgloop.h.
23081 (df_analyze_1): Split out main part of df_analyze.
23082 (df_analyze): Adjust.
23083 (loop_inverted_post_order_compute): New function.
23084 (loop_post_order_compute): Likewise.
23085 (df_analyze_loop): New function avoiding whole-function
23086 postorder computes.
23087 * loop-invariant.c (find_defs): Use df_analyze_loop.
23088 (find_invariants): Adjust.
23089 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
23090
23091 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
23092
23093 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
23094 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
23095
23096 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23097
23098 * ipa-ref.c (ipa_remove_stmt_references): Fix references
23099 traversal when removing references.
23100
23101 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
23102
23103 PR ipa/59775
23104 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
23105
23106 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
23107
23108 PR middle-end/56791
23109 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
23110 pushing a reload for an autoinc when we had previously reloaded an
23111 inner part of the address.
23112
23113 2014-01-16 Jakub Jelinek <jakub@redhat.com>
23114
23115 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
23116 field.
23117 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
23118 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
23119 when not giving up or versioning for alias only because of
23120 loop->safelen.
23121 (vect_analyze_data_ref_dependences): Set to true.
23122 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
23123 is a GIMPLE_PHI.
23124 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
23125 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
23126 to the condition.
23127
23128 PR middle-end/58344
23129 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
23130
23131 PR target/59839
23132 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
23133 operand 0 predicate for gathers, use a new pseudo as subtarget.
23134
23135 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
23136
23137 PR middle-end/59609
23138 * lra-constraints.c (process_alt_operands): Add printing debug info.
23139 Check absence of input/output reloads for matched operands too.
23140
23141 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
23142
23143 PR rtl-optimization/59835
23144 * ira.c (ira_init_register_move_cost): Increase cost for
23145 impossible modes.
23146
23147 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
23148
23149 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
23150
23151 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
23152
23153 PR target/59780
23154 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
23155 non-register objects. Use gen_(high/low)part more consistently.
23156 Fix assertions.
23157
23158 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
23159
23160 PR target/59844
23161 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
23162 endian support, remove tests for WORDS_BIG_ENDIAN.
23163 (p8_mfvsrd_3_<mode>): Likewise.
23164 (reload_gpr_from_vsx<mode>): Likewise.
23165 (reload_gpr_from_vsxsf): Likewise.
23166 (p8_mfvsrd_4_disf): Likewise.
23167
23168 2014-01-16 Richard Biener <rguenther@suse.de>
23169
23170 PR rtl-optimization/46590
23171 * lcm.c (compute_antinout_edge): Use postorder iteration.
23172 (compute_laterin): Use inverted postorder iteration.
23173
23174 2014-01-16 Nick Clifton <nickc@redhat.com>
23175
23176 PR middle-end/28865
23177 * varasm.c (output_constant): Return the number of bytes actually
23178 emitted.
23179 (output_constructor_array_range): Update the field size with the
23180 number of bytes emitted by output_constant.
23181 (output_constructor_regular_field): Likewise. Also do not
23182 complain if the total number of bytes emitted is now greater
23183 than the expected fieldpos.
23184 * output.h (output_constant): Update prototype and descriptive comment.
23185
23186 2014-01-16 Marek Polacek <polacek@redhat.com>
23187
23188 PR middle-end/59827
23189 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
23190 it is error_mark_node.
23191
23192 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
23193
23194 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
23195 VALID_AVX256_REG_OR_OI_MODE.
23196
23197 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
23198
23199 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
23200 current procedure should be profiled.
23201
23202 2014-01-15 Andrew Pinski <apinski@cavium.com>
23203
23204 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
23205 of moving from/to the STACK_REG register class.
23206
23207 2014-01-15 Richard Henderson <rth@redhat.com>
23208
23209 PR debug/54694
23210 * reginfo.c (global_regs_decl): Globalize.
23211 * rtl.h (global_regs_decl): Declare.
23212 * ira.c (do_reload): Diagnose frame_pointer_needed and it
23213 reserved via global_regs.
23214
23215 2014-01-15 Teresa Johnson <tejohnson@google.com>
23216
23217 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
23218
23219 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23220
23221 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
23222 and vmulosh rather than call gen_vec_widen_smult_*.
23223 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
23224 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
23225 (vec_widen_smult_even_v16qi): Likewise.
23226 (vec_widen_umult_even_v8hi): Likewise.
23227 (vec_widen_smult_even_v8hi): Likewise.
23228 (vec_widen_umult_odd_v16qi): Likewise.
23229 (vec_widen_smult_odd_v16qi): Likewise.
23230 (vec_widen_umult_odd_v8hi): Likewise.
23231 (vec_widen_smult_odd_v8hi): Likewise.
23232 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
23233 vmuloub rather than call gen_vec_widen_umult_*.
23234 (vec_widen_umult_lo_v16qi): Likewise.
23235 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
23236 vmulosb rather than call gen_vec_widen_smult_*.
23237 (vec_widen_smult_lo_v16qi): Likewise.
23238 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
23239 rather than call gen_vec_widen_umult_*.
23240 (vec_widen_umult_lo_v8hi): Likewise.
23241 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
23242 rather than call gen_vec_widen_smult_*.
23243 (vec_widen_smult_lo_v8hi): Likewise.
23244
23245 2014-01-15 Jeff Law <law@redhat.com>
23246
23247 PR tree-optimization/59747
23248 * ree.c (find_and_remove_re): Properly handle case where a second
23249 eliminated extension requires widening a copy created for elimination
23250 of a prior extension.
23251 (combine_set_extension): Ensure that the number of hard regs needed
23252 for a destination register does not change when we widen it.
23253
23254 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
23255
23256 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
23257 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
23258 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
23259 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
23260 (avr-*-rtems*): Likewise.
23261 (bfin*-rtems*): Likewise.
23262 (moxie-*-rtems*): Likewise.
23263 (h8300-*-rtems*): Likewise.
23264 (i[34567]86-*-rtems*): Likewise.
23265 (lm32-*-rtems*): Likewise.
23266 (m32r-*-rtems*): Likewise.
23267 (m68k-*-rtems*): Likewise.
23268 (microblaze*-*-rtems*): Likewise.
23269 (mips*-*-rtems*): Likewise.
23270 (powerpc-*-rtems*): Likewise.
23271 (sh-*-rtems*): Likewise.
23272 (sparc-*-rtems*): Likewise.
23273 (sparc64-*-rtems*): Likewise.
23274 (v850-*-rtems*): Likewise.
23275 (m32c-*-rtems*): Likewise.
23276
23277 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
23278
23279 PR rtl-optimization/59511
23280 * ira.c (ira_init_register_move_cost): Use memory costs for some
23281 cases of register move cost calculations.
23282 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
23283 instead of BB frequency.
23284 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
23285 * lra-assigns.c (find_hard_regno_for): Ditto.
23286
23287 2014-01-15 Richard Biener <rguenther@suse.de>
23288
23289 PR tree-optimization/59822
23290 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
23291 (vectorizable_load): Use it to hoist defs of uses of invariant
23292 loads out of the loop.
23293
23294 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
23295 Kugan Vivekanandarajah <kuganv@linaro.org>
23296
23297 PR target/59695
23298 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
23299 truncation.
23300
23301 2014-01-15 Richard Biener <rguenther@suse.de>
23302
23303 PR rtl-optimization/59802
23304 * lcm.c (compute_available): Use inverted postorder to seed
23305 the initial worklist.
23306
23307 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23308
23309 PR target/59803
23310 * config/s390/s390.c (s390_preferred_reload_class): Don't return
23311 ADDR_REGS for invalid symrefs in non-PIC code.
23312
23313 2014-01-15 Jakub Jelinek <jakub@redhat.com>
23314
23315 PR other/58712
23316 * builtins.c (determine_block_size): Initialize *probable_max_size
23317 even if len_rtx is CONST_INT.
23318
23319 2014-01-14 Andrew Pinski <apinski@cavium.com>
23320
23321 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
23322 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
23323 (cortexa53_tunings): Likewise.
23324 (aarch64_sched_issue_rate): New function.
23325 (TARGET_SCHED_ISSUE_RATE): Define.
23326
23327 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
23328
23329 * ira-costs.c (find_costs_and_classes): Add missed
23330 ira_init_register_move_cost_if_necessary.
23331
23332 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
23333
23334 PR target/59787
23335 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
23336
23337 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
23338
23339 PR target/59794
23340 * config/i386/i386.c (type_natural_mode): Add a bool parameter
23341 to indicate if type is used for function return value. Warn ABI
23342 change if the vector mode isn't available for function return value.
23343 (ix86_function_arg_advance): Pass false to type_natural_mode.
23344 (ix86_function_arg): Likewise.
23345 (ix86_gimplify_va_arg): Likewise.
23346 (function_arg_32): Don't warn ABI change.
23347 (ix86_function_value): Pass true to type_natural_mode.
23348 (ix86_return_in_memory): Likewise.
23349 (ix86_struct_value_rtx): Removed.
23350 (TARGET_STRUCT_VALUE_RTX): Likewise.
23351
23352 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23353
23354 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
23355 converting a conditional jump into a conditional return.
23356
23357 2014-01-14 Richard Biener <rguenther@suse.de>
23358
23359 PR tree-optimization/58921
23360 PR tree-optimization/59006
23361 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
23362 hoisting invariant stmts.
23363 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
23364 invariant loads on the preheader edge if possible.
23365
23366 2014-01-14 Joey Ye <joey.ye@arm.com>
23367
23368 * doc/plugin.texi (Building GCC plugins): Update to C++.
23369
23370 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
23371
23372 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
23373 (_mm_rcp28_round_ss): Ditto.
23374 (_mm_rsqrt28_round_sd): Ditto.
23375 (_mm_rsqrt28_round_ss): Ditto.
23376 (_mm_rcp28_sd): Ditto.
23377 (_mm_rcp28_ss): Ditto.
23378 (_mm_rsqrt28_sd): Ditto.
23379 (_mm_rsqrt28_ss): Ditto.
23380 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
23381 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
23382 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
23383 (IX86_BUILTIN_RCP28SD): Ditto.
23384 (IX86_BUILTIN_RCP28SS): Ditto.
23385 (IX86_BUILTIN_RSQRT28SD): Ditto.
23386 (IX86_BUILTIN_RSQRT28SS): Ditto.
23387 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
23388 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
23389 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
23390 (ix86_expand_special_args_builtin): Expand new FTYPE.
23391 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
23392 (srcp14<mode>): Make insn unary.
23393 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
23394 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
23395 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
23396 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
23397 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
23398 Fix rounding: make it SAE only.
23399 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23400 Ditto.
23401 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23402 Ditto.
23403 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
23404 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
23405 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
23406 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
23407 (round_saeonly_mask_scalar_operand4): Ditto.
23408 (round_saeonly_mask_scalar_op3): Ditto.
23409 (round_saeonly_mask_scalar_op4): Ditto.
23410
23411 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23412
23413 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23414 Implement -maltivec=be for vec_insert and vec_extract.
23415
23416 2014-01-10 DJ Delorie <dj@redhat.com>
23417
23418 * config/msp430/msp430.md (call_internal): Don't allow memory
23419 references with SP as the base register.
23420 (call_value_internal): Likewise.
23421 * config/msp430/constraints.md (Yc): New. For memory references
23422 that don't use SP as a base register.
23423
23424 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
23425 "an integer without a # prefix"
23426 * config/msp430/msp430.md (epilogue_helper): Use it.
23427
23428 2014-01-13 Jakub Jelinek <jakub@redhat.com>
23429
23430 PR target/59617
23431 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
23432 AVX512F gather builtins.
23433 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
23434 on gather decls with INTEGER_TYPE masktype.
23435 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
23436 directly into the builtin rather than hoisting it before loop.
23437
23438 PR tree-optimization/59387
23439 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
23440 (scev_const_prop): If folded_casts and type has undefined overflow,
23441 use force_gimple_operand instead of force_gimple_operand_gsi and
23442 for each added stmt if it is assign with
23443 arith_code_with_undefined_signed_overflow, call
23444 rewrite_to_defined_overflow.
23445 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
23446 gimple-fold.h instead.
23447 (arith_code_with_undefined_signed_overflow,
23448 rewrite_to_defined_overflow): Moved to ...
23449 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
23450 rewrite_to_defined_overflow): ... here. No longer static.
23451 Include gimplify-me.h.
23452 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
23453 rewrite_to_defined_overflow): New prototypes.
23454
23455 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23456
23457 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
23458
23459 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
23460
23461 * builtins.c (get_object_alignment_2): Minor tweak.
23462 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
23463
23464 2014-01-13 Christian Bruel <christian.bruel@st.com>
23465
23466 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
23467 optimized non constant lengths.
23468
23469 2014-01-13 Jakub Jelinek <jakub@redhat.com>
23470
23471 PR libgomp/59194
23472 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
23473 load as __atomic_load_N if possible.
23474
23475 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
23476
23477 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
23478 target parameter.
23479 (rs6000_expand_builtin): Adjust call.
23480
23481 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
23482
23483 PR target/58115
23484 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
23485 * config/rs6000/rs6000.c: Include target-globals.h.
23486 (rs6000_set_current_function): Instead of doing target_reinit
23487 unconditionally, use save_target_globals_default_opts and
23488 restore_target_globals.
23489
23490 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
23491 FPSCR.
23492 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
23493 (rs6000_expand_builtin): Handle mffs and mtfsf.
23494 (rs6000_init_builtins): Define mffs and mtfsf.
23495 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
23496 (rs6000_mffs): New pattern.
23497 (rs6000_mtfsf): New pattern.
23498
23499 2014-01-11 Bin Cheng <bin.cheng@arm.com>
23500
23501 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
23502 Start narrowing with START. Apply candidate-use pair
23503 and check overall cost in narrowing.
23504 (iv_ca_prune): Pass new argument.
23505
23506 2014-01-10 Jeff Law <law@redhat.com>
23507
23508 PR middle-end/59743
23509 * ree.c (combine_reaching_defs): Ensure the defining statement
23510 occurs before the extension when optimizing extensions with
23511 different source and destination hard registers.
23512
23513 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
23514
23515 PR ipa/58585
23516 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
23517 vtables into the type inheritance graph.
23518
23519 2014-01-10 Jakub Jelinek <jakub@redhat.com>
23520
23521 PR rtl-optimization/59754
23522 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
23523 modes in the REGNO != REGNO case.
23524
23525 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23526
23527 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
23528
23529 2014-01-10 Jakub Jelinek <jakub@redhat.com>
23530
23531 PR tree-optimization/59745
23532 * tree-predcom.c (tree_predictive_commoning_loop): Call
23533 free_affine_expand_cache if giving up because components is NULL.
23534
23535 * target-globals.c (save_target_globals): Allocate < 4KB structs using
23536 GC in payload of target_globals struct instead of allocating them on
23537 the heap and the larger structs separately using GC.
23538 * target-globals.h (struct target_globals): Make regs, hard_regs,
23539 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
23540 of GTY((skip)) and change type to void *.
23541 (reset_target_globals): Cast loads from those fields to corresponding
23542 types.
23543
23544 2014-01-10 Steve Ellcey <sellcey@mips.com>
23545
23546 PR plugins/59335
23547 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
23548 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
23549 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
23550
23551 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
23552
23553 PR target/59744
23554 * aarch64-modes.def (CC_Zmode): New flags mode.
23555 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
23556 represents an equality.
23557 (aarch64_get_condition_code): Handle CC_Zmode.
23558 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
23559
23560 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23561
23562 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
23563 extraction in good case.
23564
23565 2014-01-10 Richard Biener <rguenther@suse.de>
23566
23567 PR tree-optimization/59374
23568 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
23569 checking after SLP discovery. Mark stmts not participating
23570 in any SLP instance properly.
23571
23572 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23573
23574 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
23575 when handling a SET rtx.
23576
23577 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23578
23579 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
23580 (cortex-a57): Likewise.
23581 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
23582
23583 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23584
23585 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
23586 non-iwmmxt builtins.
23587
23588 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
23589
23590 PR ipa/58252
23591 PR ipa/59226
23592 * ipa-devirt.c record_target_from_binfo): Take as argument
23593 stack of binfos and lookup matching one for virtual inheritance.
23594 (possible_polymorphic_call_targets_1): Update.
23595
23596 2014-01-10 Huacai Chen <chenhc@lemote.com>
23597
23598 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
23599 kernel strings for Loongson-2E/2F/3A.
23600
23601 2014-01-10 Jakub Jelinek <jakub@redhat.com>
23602
23603 PR middle-end/59670
23604 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
23605 is_gimple_call before calling gimple_call_internal_p.
23606
23607 2014-01-09 Steve Ellcey <sellcey@mips.com>
23608
23609 * Makefile.in (TREE_FLOW_H): Remove.
23610 (TREE_SSA_H): Add file names from tree-flow.h.
23611 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
23612 * tree.h: Remove tree-flow.h reference.
23613 * hash-table.h: Remove tree-flow.h reference.
23614 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
23615 reference with tree-ssa-loop.h.
23616
23617 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23618
23619 * doc/invoke.texi: Add -maltivec={be,le} options, and document
23620 default element-order behavior for -maltivec.
23621 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
23622 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
23623 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
23624 when targeting big endian, at least for now.
23625 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
23626
23627 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23628
23629 PR middle-end/47735
23630 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
23631 var satisfies use_register_for_decl, just take into account type
23632 alignment, rather than decl alignment.
23633
23634 PR tree-optimization/59622
23635 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
23636 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
23637 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
23638 Don't devirtualize for inplace at all. For targets.length () == 1,
23639 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
23640
23641 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
23642
23643 * config/i386/i386.md (cpu): Remove the unused btver1.
23644
23645 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
23646
23647 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
23648
23649 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23650
23651 PR target/58115
23652 * tree-core.h (struct target_globals): New forward declaration.
23653 (struct tree_target_option): Add globals field.
23654 * tree.h (TREE_TARGET_GLOBALS): Define.
23655 (prepare_target_option_nodes_for_pch): New prototype.
23656 * target-globals.h (struct target_globals): Define even if
23657 !SWITCHABLE_TARGET.
23658 * tree.c (prepare_target_option_node_for_pch,
23659 prepare_target_option_nodes_for_pch): New functions.
23660 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
23661 * config/i386/i386.c: Include target-globals.h.
23662 (ix86_set_current_function): Instead of doing target_reinit
23663 unconditionally, use save_target_globals_default_opts and
23664 restore_target_globals.
23665
23666 2014-01-09 Richard Biener <rguenther@suse.de>
23667
23668 PR tree-optimization/59715
23669 * tree-cfg.h (split_critical_edges): Declare.
23670 * tree-cfg.c (split_critical_edges): Export.
23671 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
23672
23673 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
23674
23675 * cfgexpand.c (expand_stack_vars): Optionally disable
23676 asan stack protection.
23677 (expand_used_vars): Likewise.
23678 (partition_stack_vars): Likewise.
23679 * asan.c (asan_emit_stack_protection): Optionally disable
23680 after return stack usage.
23681 (instrument_derefs): Optionally disable memory access instrumentation.
23682 (instrument_builtin_call): Likewise.
23683 (instrument_strlen_call): Likewise.
23684 (asan_protect_global): Optionally disable global variables protection.
23685 * doc/invoke.texi: Added doc for new options.
23686 * params.def: Added new options.
23687 * params.h: Likewise.
23688
23689 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23690
23691 PR rtl-optimization/59724
23692 * ifcvt.c (cond_exec_process_if_block): Don't call
23693 flow_find_head_matching_sequence with 0 longest_match.
23694 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
23695 non-active insns if !stop_after.
23696 (try_head_merge_bb): Revert 2014-01-07 changes.
23697
23698 2014-01-08 Jeff Law <law@redhat.com>
23699
23700 * ree.c (get_sub_rtx): New function, extracted from...
23701 (merge_def_and_ext): Here.
23702 (combine_reaching_defs): Use get_sub_rtx.
23703
23704 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
23705
23706 * cgraph.h (varpool_variable_node): Do not choke on null node.
23707
23708 2014-01-08 Catherine Moore <clm@codesourcery.com>
23709
23710 * config/mips/mips.md (simple_return): Attempt to use JRC
23711 for microMIPS.
23712 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
23713
23714 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
23715
23716 PR rtl-optimization/59137
23717 * reorg.c (steal_delay_list_from_target): Call update_block for
23718 elided insns.
23719 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
23720
23721 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23722
23723 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23724 two duplicate entries.
23725
23726 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
23727
23728 Revert:
23729 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
23730
23731 * config/mips/mips.c (mips_truncated_op_cost): New function.
23732 (mips_rtx_costs): Adjust test for BADDU.
23733 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
23734
23735 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
23736
23737 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
23738 (*baddu_si): ...this new pattern.
23739
23740 2014-01-08 Jakub Jelinek <jakub@redhat.com>
23741
23742 PR ipa/59722
23743 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
23744
23745 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
23746
23747 PR middle-end/57748
23748 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
23749 inner_reference_p.
23750 (expand_expr, expand_normal): Adjust.
23751 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
23752 inner_reference_p. Use inner_reference_p to expand inner references.
23753 (store_expr): Adjust.
23754 * cfgexpand.c (expand_call_stmt): Adjust.
23755
23756 2014-01-08 Rong Xu <xur@google.com>
23757
23758 * gcov-io.c (gcov_var): Move from gcov-io.h.
23759 (gcov_position): Ditto.
23760 (gcov_is_error): Ditto.
23761 (gcov_rewrite): Ditto.
23762 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
23763 only part to libgcc/libgcov.h.
23764
23765 2014-01-08 Marek Polacek <polacek@redhat.com>
23766
23767 PR middle-end/59669
23768 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
23769
23770 2014-01-08 Marek Polacek <polacek@redhat.com>
23771
23772 PR sanitizer/59667
23773 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
23774
23775 2014-01-08 Jakub Jelinek <jakub@redhat.com>
23776
23777 PR rtl-optimization/59649
23778 * stor-layout.c (get_mode_bounds): For BImode return
23779 0 and STORE_FLAG_VALUE.
23780
23781 2014-01-08 Richard Biener <rguenther@suse.de>
23782
23783 PR middle-end/59630
23784 * gimple.h (is_gimple_builtin_call): Remove.
23785 (gimple_builtin_call_types_compatible_p): New.
23786 (gimple_call_builtin_p): New overload.
23787 * gimple.c (is_gimple_builtin_call): Remove.
23788 (validate_call): Rename to ...
23789 (gimple_builtin_call_types_compatible_p): ... this and export. Also
23790 check return types.
23791 (validate_type): New static function.
23792 (gimple_call_builtin_p): New overload and adjust.
23793 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
23794 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
23795 (gimple_fold_stmt_to_constant_1): Likewise.
23796 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
23797
23798 2014-01-08 Richard Biener <rguenther@suse.de>
23799
23800 PR middle-end/59471
23801 * gimplify.c (gimplify_expr): Gimplify register-register type
23802 VIEW_CONVERT_EXPRs to separate stmts.
23803
23804 2014-01-07 Jeff Law <law@redhat.com>
23805
23806 PR middle-end/53623
23807 * ree.c (combine_set_extension): Handle case where source
23808 and destination registers in an extension insn are different.
23809 (combine_reaching_defs): Allow source and destination registers
23810 in extension to be different under limited circumstances.
23811 (add_removable_extension): Remove restriction that the
23812 source and destination registers in the extension are the same.
23813 (find_and_remove_re): Emit a copy from the extension's
23814 destination to its source after the defining insn if
23815 the source and destination registers are different.
23816
23817 PR middle-end/59285
23818 * ifcvt.c (merge_if_block): If we are merging a block with more than
23819 one successor with a block with no successors, remove any BARRIER
23820 after the second block.
23821
23822 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
23823
23824 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
23825
23826 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
23827
23828 PR target/59652
23829 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
23830 for 14-bit register offsets when INT14_OK_STRICT is false.
23831
23832 2014-01-07 Roland Stigge <stigge@antcom.de>
23833 Michael Meissner <meissner@linux.vnet.ibm.com>
23834
23835 PR 57386/target
23836 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23837 Only check TFmode for SPE constants. Don't check TImode or TDmode.
23838
23839 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23840
23841 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
23842 -mcpu.
23843
23844 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
23845
23846 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
23847 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
23848 rtx is const0_rtx or not.
23849
23850 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
23851
23852 PR target/58115
23853 * target-globals.c (save_target_globals): Remove this_fn_optab
23854 handling.
23855 * toplev.c: Include optabs.h.
23856 (target_reinit): Temporarily restore the global options if another
23857 set of options are in force.
23858
23859 2014-01-07 Jakub Jelinek <jakub@redhat.com>
23860
23861 PR rtl-optimization/58668
23862 * cfgcleanup.c (flow_find_cross_jump): Don't count
23863 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
23864 to determine what is counted.
23865 (flow_find_head_matching_sequence): Use active_insn_p to determine
23866 what is counted.
23867 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
23868 counting change.
23869 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
23870 determine what is counted.
23871
23872 PR tree-optimization/59643
23873 * tree-predcom.c (split_data_refs_to_components): If one dr is
23874 read and one write, determine_offset fails and the write isn't
23875 in the bad component, just put the read into the bad component.
23876
23877 2014-01-07 Mike Stump <mikestump@comcast.net>
23878 Jakub Jelinek <jakub@redhat.com>
23879
23880 PR pch/59436
23881 * tree-core.h (struct tree_optimization_option): Change optabs
23882 type from unsigned char * to void *.
23883 * optabs.c (init_tree_optimization_optabs): Adjust
23884 TREE_OPTIMIZATION_OPTABS initialization.
23885
23886 2014-01-06 Jakub Jelinek <jakub@redhat.com>
23887
23888 PR target/59644
23889 * config/i386/i386.h (struct machine_function): Add
23890 no_drap_save_restore field.
23891 * config/i386/i386.c (ix86_save_reg): Use
23892 !cfun->machine->no_drap_save_restore instead of
23893 crtl->stack_realign_needed.
23894 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
23895 this function clears frame_pointer_needed. Set
23896 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
23897 and DRAP reg is needed.
23898
23899 2014-01-06 Marek Polacek <polacek@redhat.com>
23900
23901 PR c/57773
23902 * doc/implement-c.texi: Mention that other integer types are
23903 permitted as bit-field types in strictly conforming mode.
23904
23905 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
23906
23907 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
23908 is newly allocated.
23909
23910 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
23911
23912 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
23913
23914 2014-01-06 Martin Jambor <mjambor@suse.cz>
23915
23916 PR ipa/59008
23917 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
23918 to int.
23919 * ipa-prop.c (ipa_print_node_params): Fix indentation.
23920
23921 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
23922
23923 PR debug/59350
23924 PR debug/59510
23925 * var-tracking.c (add_stores): Preserve the value of the source even if
23926 we don't record the store.
23927
23928 2014-01-06 Terry Guo <terry.guo@arm.com>
23929
23930 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
23931
23932 2014-01-05 Iain Sandoe <iain@codesourcery.com>
23933
23934 PR bootstrap/59541
23935 * config/darwin.c (darwin_function_section): Adjust return values to
23936 correspond to optimisation changes made in r206070.
23937
23938 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
23939
23940 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
23941 from prefetch_block tune setting.
23942 (nocona_cost): Correct size of prefetch block to 64.
23943
23944 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
23945
23946 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
23947 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
23948 used to save the static chain register in the computation of the offset
23949 from which the FP registers need to be restored.
23950
23951 2014-01-04 Jakub Jelinek <jakub@redhat.com>
23952
23953 PR tree-optimization/59519
23954 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
23955 ICE if get_current_def (current_new_name) is already non-NULL, as long
23956 as it is a phi result of some other phi in *new_exit_bb that has
23957 the same argument.
23958
23959 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
23960 or vmovdqu* for misaligned_operand.
23961 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
23962 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
23963 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
23964 aligned_mem for AVX512F masked aligned load and store builtins and for
23965 non-temporal moves.
23966
23967 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
23968
23969 PR tree-optimization/59651
23970 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
23971 Address range for negative step should be added by TYPE_SIZE_UNIT.
23972
23973 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
23974
23975 * config/m68k/m68k.c (handle_move_double): Handle pushes with
23976 overlapping registers also for registers other than the stack pointer.
23977
23978 2014-01-03 Marek Polacek <polacek@redhat.com>
23979
23980 PR other/59661
23981 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
23982 __builtin_FILE.
23983
23984 2014-01-03 Jakub Jelinek <jakub@redhat.com>
23985
23986 PR target/59625
23987 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
23988 asm goto as jump.
23989
23990 * config/i386/i386.md (MODE_SIZE): New mode attribute.
23991 (push splitter): Use <P:MODE_SIZE> instead of
23992 GET_MODE_SIZE (<P:MODE>mode).
23993 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
23994 (mov -1, reg peephole2): Likewise.
23995 * config/i386/sse.md (*mov<mode>_internal,
23996 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
23997 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
23998 *<code><mode>3, *andnot<mode>3<mask_name>,
23999 <mask_codefor><code><mode>3<mask_name>): Likewise.
24000 * config/i386/subst.md (mask_mode512bit_condition,
24001 sd_mask_mode512bit_condition): Likewise.
24002
24003 2014-01-02 Xinliang David Li <davidxl@google.com>
24004
24005 PR tree-optimization/59303
24006 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
24007 (dump_predicates): Better output format.
24008 (pred_equal_p): New function.
24009 (is_neq_relop_p): Ditto.
24010 (is_neq_zero_form_p): Ditto.
24011 (pred_expr_equal_p): Ditto.
24012 (pred_neg_p): Ditto.
24013 (simplify_pred): Ditto.
24014 (simplify_preds_2): Ditto.
24015 (simplify_preds_3): Ditto.
24016 (simplify_preds_4): Ditto.
24017 (simplify_preds): Ditto.
24018 (push_pred): Ditto.
24019 (push_to_worklist): Ditto.
24020 (get_pred_info_from_cmp): Ditto.
24021 (is_degenerated_phi): Ditto.
24022 (normalize_one_pred_1): Ditto.
24023 (normalize_one_pred): Ditto.
24024 (normalize_one_pred_chain): Ditto.
24025 (normalize_preds): Ditto.
24026 (normalize_cond_1): Remove function.
24027 (normalize_cond): Ditto.
24028 (is_gcond_subset_of): Ditto.
24029 (is_subset_of_any): Ditto.
24030 (is_or_set_subset_of): Ditto.
24031 (is_and_set_subset_of): Ditto.
24032 (is_norm_cond_subset_of): Ditto.
24033 (pred_chain_length_cmp): Ditto.
24034 (convert_control_dep_chain_into_preds): Type change.
24035 (find_predicates): Ditto.
24036 (find_def_preds): Ditto.
24037 (destroy_predicates_vecs): Ditto.
24038 (find_matching_predicates_in_rest_chains): Ditto.
24039 (use_pred_not_overlap_with_undef_path_pred): Ditto.
24040 (is_pred_expr_subset): Ditto.
24041 (is_pred_chain_subset_of): Ditto.
24042 (is_included_in): Ditto.
24043 (is_superset_of): Ditto.
24044
24045 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24046
24047 Update copyright years.
24048
24049 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24050
24051 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
24052 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
24053 config/arc/arc.md, config/arc/arc.opt,
24054 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
24055 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
24056 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
24057 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
24058 config/linux-protos.h, config/linux.c, config/winnt-c.c,
24059 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
24060 vtable-verify.c, vtable-verify.h: Use the standard form for the
24061 copyright notice.
24062
24063 2014-01-02 Tobias Burnus <burnus@net-b.de>
24064
24065 * gcc.c (process_command): Update copyright notice dates.
24066 * gcov-dump.c: Ditto.
24067 * gcov.c: Ditto.
24068 * doc/cpp.texi: Bump @copying's copyright year.
24069 * doc/cppinternals.texi: Ditto.
24070 * doc/gcc.texi: Ditto.
24071 * doc/gccint.texi: Ditto.
24072 * doc/gcov.texi: Ditto.
24073 * doc/install.texi: Ditto.
24074 * doc/invoke.texi: Ditto.
24075
24076 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24077
24078 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
24079
24080 2014-01-01 Jakub Jelinek <jakub@redhat.com>
24081
24082 * config/i386/sse.md (*mov<mode>_internal): Guard
24083 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
24084
24085 PR rtl-optimization/59647
24086 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
24087 new_rtx into UNSIGNED_FLOAT rtxes.
24088 \f
24089 Copyright (C) 2014 Free Software Foundation, Inc.
24090
24091 Copying and distribution of this file, with or without modification,
24092 are permitted in any medium without royalty provided the copyright
24093 notice and this notice are preserved.