51e1fa0b9d3c0855497c86c13f16762de0a991f5
[gcc.git] / gcc / ChangeLog
1 2013-12-03 Wei Mi <wmi@google.com>
2
3 PR rtl-optimization/59020
4 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
5 (sched_analyze_insn): Call try_group_insn.
6 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
7 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
8 (group_insns_for_macro_fusion): Removed.
9 (sched_init): Remove calling group_insns_for_macro_fusion.
10
11 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
12
13 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
14 typo in macro name.
15 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
16
17 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
18
19 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
20 LR_REGNUM.
21 (aarch64_can_eliminate): Don't check elimination source when
22 frame_pointer_required is false.
23
24 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25
26 * config/avr/avr.c (avr_option_override): Warn if asked to generate
27 position independent code.
28 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
29
30 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
31
32 PR target/59363
33 * config/i386/i386.c (emit_memset): Adjust destination address
34 after gen_strset.
35 (expand_setmem_epilogue): Likewise.
36
37 2013-12-03 Marek Polacek <polacek@redhat.com>
38
39 PR middle-end/56344
40 * calls.c (expand_call): Disallow passing huge arguments
41 by value.
42
43 2013-12-03 Jakub Jelinek <jakub@redhat.com>
44
45 PR tree-optimization/59362
46 * tree-object-size.c (object_sizes): Change into array of
47 vec<unsigned HOST_WIDE_INT>.
48 (compute_builtin_object_size): Check computed bitmap for
49 non-NULL instead of object_sizes. Call safe_grow on object_sizes
50 vector if new SSA_NAMEs appeared.
51 (init_object_sizes): Check computed bitmap for non-NULL.
52 Call safe_grow on object_sizes elements instead of initializing
53 it with XNEWVEC.
54 (fini_object_sizes): Call release on object_sizes elements, don't
55 set it to NULL.
56
57 PR middle-end/59011
58 * gimplify.c (nonlocal_vla_vars): New variable.
59 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
60 nonlocal_vla_vars chain.
61 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
62 if outer_bind has DECL_INITIAL (current_function_decl) block.
63
64 PR target/58864
65 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
66 New functions.
67 * expr.h (struct saved_pending_stack_adjust): New type.
68 (save_pending_stack_adjust, restore_pending_stack_adjust): New
69 prototypes.
70 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
71 and get_last_insn before do_pending_stack_adjust, call
72 restore_pending_stack_adjust after delete_insns_since.
73 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
74 before calling emit_conditional_move.
75 * expmed.c (expand_sdiv_pow2): Likewise.
76 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
77
78 2013-12-02 Jeff Law <law@redhat.com>
79
80 PR tree-optimization/59322
81 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
82 Remove code which copied jump threading paths.
83
84 2013-12-02 Sriraman Tallam <tmsriram@google.com>
85
86 PR target/58944
87 * config/i386/i386.opt (ix86_arch_string): Mark this variable
88 for saving in cl_target_option.
89 (ix86_tune_string): Ditto.
90 (ix86_cmodel): Ditto.
91 (ix86_abi): Ditto.
92 (ix86_asm_dialect): Ditto.
93 (ix86_branch_cost): Ditto.
94 (ix86_dump_tunes): Ditto.
95 (ix86_force_align_arg_pointer): Ditto.
96 (ix86_force_drap): Ditto.
97 (ix86_incoming_stack_boundary_arg): Ditto.
98 (ix86_pmode): Ditto.
99 (ix86_preferred_stack_boundary_arg): Ditto.
100 (ix86_recip_name): Ditto.
101 (ix86_regparm): Ditto.
102 (ix86_section_threshold): Ditto.
103 (ix86_sse2avx): Ditto.
104 (ix86_stack_protector_guard): Ditto.
105 (ix86_stringop_alg): Ditto.
106 (ix86_tls_dialect): Ditto.
107 (ix86_tune_ctrl_string): Ditto.
108 (ix86_tune_memcpy_strategy): Ditto.
109 (ix86_tune_memset_strategy): Ditto.
110 (ix86_tune_no_default): Ditto.
111 (ix86_veclibabi_type): Ditto.
112 * config/i386/i386.c
113 (function_specific_save): Save the above variables
114 in gcc_options to cl_target_option.
115 (function_specific_restore): Do the reverse done in
116 function_specific_save.
117 (ix86_valid_target_attribute_tree): Change ix86_arch_string
118 and ix86_tune_string to use the opts structure.
119 (ix86_option_override_internal):Change
120 ix86_incoming_stack_boundary_arg to
121 opts->x_ix86_incoming_stack_boundary_arg
122
123 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
124
125 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
126 in #ifndef IN_LIBGCC2 / #endif.
127
128 2013-12-02 Jakub Jelinek <jakub@redhat.com>
129
130 PR tree-optimization/59358
131 * tree-vrp.c (union_ranges): To check for the partially
132 overlapping ranges or adjacent ranges, also compare *vr0max
133 with vr1max.
134
135 2013-12-02 Sterling Augustine  <saugustine@google.com>
136
137 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
138 when there isn't a skeleton die.
139
140 2013-12-02 Marek Polacek <polacek@redhat.com>
141
142 PR sanitizer/59353
143 * doc/invoke.texi: Document -fsanitize=return.
144
145 2013-12-02 Tobias Burnus <burnus@net-b.de>
146 Manuel López-Ibáñez <manu@gcc.gnu.org>
147
148 PR middle-end/59257
149 * doc/invoke.texi: Add missing @opindex.
150 (-fsanitize=): Use @gcctabopt instead of @itemize.
151
152 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
153
154 Fix C++0x memory model for unaligned fields in packed, aligned(4)
155 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
156 targets like arm-none-eabi.
157 * expr.c (expand_assignment): Handle normal fields like bit regions.
158
159 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
160
161 PR target/58115
162 * function.c (invoke_set_current_function_hook): Call
163 targetm.set_current_function after setting this_fn_optabs.
164
165 2013-12-02 Richard Biener <rguenther@suse.de>
166
167 PR tree-optimization/59139
168 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
169 code in get_val_for.
170 (get_val_for): Use gcc_checking_asserts.
171
172 2013-12-02 Richard Biener <rguenther@suse.de>
173
174 PR middle-end/59199
175 * tree-ssa-operands.c (opf_implicit): Remove.
176 (opf_address_taken): New flag.
177 (get_expr_operands): Remove early out, pass down
178 opf_address_taken for ADDR_EXPRs, add a use operand only
179 for non-opf_address_taken bases.
180 (get_indirect_ref_operands): Rename to ...
181 (get_mem_ref_operands): ... this.
182 (get_asm_expr_operands): Rename to ...
183 (get_asm_stmt_operands): ... this.
184
185 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
186
187 * ipa-inline.c (check_callers): Add missed pointer de-reference.
188
189 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
190
191 PR tree-optimization/59356
192 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
193 offset computation using the precision of the index type.
194
195 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
196
197 PR target/58785
198 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
199 when rclass is GENERAL_REGS.
200
201 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
202
203 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
204 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
205
206 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
207
208 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
209 identifier node.
210
211 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
212
213 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
214
215 2013-11-30 Paulo Matos <pmatos@broadcom.com>
216 Eric Botcazou <ebotcazou@adacore.com>
217
218 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
219 as applied to nonzero_sign_valid when last_set_mode has less precision
220 than mode.
221
222 2013-11-30 Tobias Burnus <burnus@net-b.de>
223
224 PR sanitizer/59275
225 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
226 environment variable and link to a list with flags.
227 (-fsanitize=thread): Ditto and update link.
228
229 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
230
231 PR rtl-optimization/59340
232 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
233
234 Revert
235 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
236
237 * lra.c (lra): Set lra_in_progress before check_rtl call.
238 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
239 adding clobber regs when LRA is running.
240
241 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
242
243 PR target/59289
244 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
245
246 2013-11-29 Richard Biener <rguenther@suse.de>
247
248 PR middle-end/59208
249 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
250 free_stmt_operands, update_stmt_operands): Add struct function
251 argument.
252 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
253 function argument from fini_ssa_operands, verify_ssa_operands,
254 free_stmt_operands and update_stmt_operands everywhere.
255 * tree-ssanames.h (release_ssa_name_fn): New.
256 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
257 * tree-ssanames.c (release_ssa_name): Rename to ...
258 (release_ssa_name_fn): ... this and add struct function argument.
259 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
260 (update_stmt_fn): New function.
261 * tree-cfg.c (move_block_to_fn): Adjust.
262 * tree-if-conv.c (free_bb_predicate): Likewise.
263 * tree-ssa.c (verify_ssa): Likewise.
264 (delete_tree_ssa): Likewise.
265 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
266 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
267 update_stmt_fn instead of update_stmt.
268
269 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
270
271 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
272 for LRA.
273
274 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
275
276 * config/arm/arm.md (store_minmaxsi): Use only when
277 optimize_function_for_size_p.
278
279 2013-11-29 Jakub Jelinek <jakub@redhat.com>
280 Yury Gribov <y.gribov@samsung.com>
281
282 PR sanitizer/59063
283 * config/gnu-user.h: Removed old code for setting up sanitizer
284 libs.
285 * gcc.c: Using libsanitizer spec instead of explicit libs.
286
287 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
288
289 Reverted:
290 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
291 * cgraph.h (varpool_node): Add need_bounds_init field.
292 * lto-cgraph.c (lto_output_varpool_node): Output
293 need_bounds_init value.
294 (input_varpool_node): Read need_bounds_init value.
295 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
296
297 Reverted:
298 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
299 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
300 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
301 (gen_type_die_with_usage): Skip pointer bounds.
302 (dwarf2out_global_decl): Likewise.
303
304 Reverted:
305 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
306 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
307 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
308 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
309 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
310 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
311 (gimple_call_with_bounds_p): New.
312 (gimple_call_set_with_bounds): New.
313 (gimple_call_num_nobnd_args): Remove.
314 (gimple_call_nobnd_arg): Remove.
315 * tree.h (CALL_WITH_BOUNDS_P): New.
316 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
317
318 Reverted:
319 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
320 * common.opt (fcheck-pointer-bounds): Move to ...
321 * c-family/c.opt: ... here.
322 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
323 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
324 * langhooks.h (lang_hooks): Remove chkp_supported field.
325 * toplev.c (process_options): Remove chkp_supported check.
326
327 Reverted:
328 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
329 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
330 * tree.h (POINTER_BOUNDS_P): New.
331 (BOUNDED_TYPE_P): New.
332 (BOUNDED_P): New.
333 (pointer_bounds_type_node): New.
334 * tree.c (build_common_tree_nodes): Initialize
335 pointer_bounds_type_node.
336 * gimple.h (gimple_call_get_nobnd_arg_index): New.
337 (gimple_call_num_nobnd_args): New.
338 (gimple_call_nobnd_arg): New.
339 (gimple_return_retbnd): New.
340 (gimple_return_set_retbnd): New
341 * gimple.c (gimple_build_return): Increase number of ops
342 for return statement.
343 (gimple_call_get_nobnd_arg_index): New.
344 * gimple-pretty-print.c (dump_gimple_return): Print second op.
345
346 Reverted:
347 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
348 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
349 with "chkp ctor" and "bnd_legacy" attributes.
350 * gimplify.c (gimplify_init_constructor): Avoid infinite
351 loop during gimplification of bounds initializer.
352
353 Reverted:
354 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
355 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
356 (handle_bnd_legacy): New.
357 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
358 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
359 attributes.
360
361 Reverted:
362 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
363 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
364 (BT_FN_PTR_CONST_PTR): New.
365 (BT_FN_CONST_PTR_CONST_PTR): New.
366 (BT_FN_PTR_CONST_PTR_SIZE): New.
367 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
368 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
369 (BT_FN_VOID_CONST_PTR_SIZE): New.
370 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
371 * chkp-builtins.def: New.
372 * builtins.def: include chkp-builtins.def.
373 (DEF_CHKP_BUILTIN): New.
374 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
375 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
376 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
377 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
378 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
379 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
380 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
381 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
382 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
383 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
384 * common.opt (fcheck-pointer-bounds): New.
385 * toplev.c (process_options): Check Pointer Bounds Checker is
386 supported.
387 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
388
389 Reverted:
390 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
391 * target.def (builtin_chkp_function): New.
392 (chkp_bound_type): New.
393 (chkp_bound_mode): New.
394 (fn_abi_va_list_bounds_size): New.
395 (load_bounds_for_arg): New.
396 (store_bounds_for_arg): New.
397 * targhooks.h (default_load_bounds_for_arg): New.
398 (default_store_bounds_for_arg): New.
399 (default_fn_abi_va_list_bounds_size): New.
400 (default_chkp_bound_type): New.
401 (default_chkp_bound_mode): New.
402 (default_builtin_chkp_function): New.
403 * targhooks.c (default_load_bounds_for_arg): New.
404 (default_store_bounds_for_arg): New.
405 (default_fn_abi_va_list_bounds_size): New.
406 (default_chkp_bound_type): New.
407 (default_chkp_bound_mode); New.
408 (default_builtin_chkp_function): New.
409 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
410 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
411 (TARGET_STORE_BOUNDS_FOR_ARG): New.
412 (TARGET_BUILTIN_CHKP_FUNCTION): New.
413 (TARGET_CHKP_BOUND_TYPE): New.
414 (TARGET_CHKP_BOUND_MODE): New.
415 * doc/tm.texi: Regenerated.
416 * langhooks.h (lang_hooks): Add chkp_supported field.
417 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
418 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
419
420 Reverted:
421 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
422 * config/i386/constraints.md (B): New.
423 (Ti): New.
424 (Tb): New.
425 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
426 * config/i386/i386-modes.def (BND32): New.
427 (BND64): New.
428 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
429 * config/i386/i386.c (isa_opts): Add mmpx.
430 (regclass_map): Add bound registers.
431 (dbx_register_map): Likewise.
432 (dbx64_register_map): Likewise.
433 (svr4_dbx_register_map): Likewise.
434 (PTA_MPX): New.
435 (ix86_option_override_internal): Support MPX ISA.
436 (ix86_conditional_register_usage): Support bound registers.
437 (print_reg): Likewise.
438 (ix86_code_end): Add MPX bnd prefix.
439 (output_set_got): Likewise.
440 (ix86_output_call_insn): Likewise.
441 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
442 (ix86_print_operand_punct_valid_p): Likewise.
443 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
444 UNSPEC_BNDMK_ADDR.
445 (ix86_class_likely_spilled_p): Add bound regs support.
446 (ix86_hard_regno_mode_ok): Likewise.
447 (x86_order_regs_for_local_alloc): Likewise.
448 (ix86_bnd_prefixed_insn_p): New.
449 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
450 (FIXED_REGISTERS): Add bound registers.
451 (CALL_USED_REGISTERS): Likewise.
452 (REG_ALLOC_ORDER): Likewise.
453 (HARD_REGNO_NREGS): Likewise.
454 (TARGET_MPX): New.
455 (VALID_BND_REG_MODE): New.
456 (FIRST_BND_REG): New.
457 (LAST_BND_REG): New.
458 (reg_class): Add BND_REGS.
459 (REG_CLASS_NAMES): Likewise.
460 (REG_CLASS_CONTENTS): Likewise.
461 (BND_REGNO_P): New.
462 (ANY_BND_REG_P): New.
463 (BNDmode): New.
464 (HI_REGISTER_NAMES): Add bound registers.
465 * config/i386/i386.md (UNSPEC_BNDMK): New.
466 (UNSPEC_BNDMK_ADDR): New.
467 (UNSPEC_BNDSTX): New.
468 (UNSPEC_BNDLDX): New.
469 (UNSPEC_BNDLDX_ADDR): New.
470 (UNSPEC_BNDCL): New.
471 (UNSPEC_BNDCU): New.
472 (UNSPEC_BNDCN): New.
473 (UNSPEC_MPX_FENCE): New.
474 (BND0_REG): New.
475 (BND1_REG): New.
476 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
477 (length_immediate): Likewise.
478 (prefix_0f): Likewise.
479 (memory): Likewise.
480 (prefix_rep): Check for bnd prefix.
481 (length_nobnd): New.
482 (length): Use length_nobnd if specified.
483 (BND): New.
484 (bnd_ptr): New.
485 (BNDCHECK): New.
486 (bndcheck): New.
487 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
488 (*jcc_2): Likewise.
489 (jump): Likewise.
490 (simple_return_internal): Likewise.
491 (simple_return_pop_internal): Likewise.
492 (*indirect_jump): Add MPX bnd prefix.
493 (*tablejump_1): Likewise.
494 (simple_return_internal_long): Likewise.
495 (simple_return_indirect_internal): Likewise.
496 (<mode>_mk): New.
497 (*<mode>_mk): New.
498 (mov<mode>): New.
499 (*mov<mode>_internal_mpx): New.
500 (<mode>_<bndcheck>): New.
501 (*<mode>_<bndcheck>): New.
502 (<mode>_ldx): New.
503 (*<mode>_ldx): New.
504 (<mode>_stx): New.
505 (*<mode>_stx): New.
506 * config/i386/predicates.md (lea_address_operand): Rename to...
507 (address_no_seg_operand): ... this.
508 (address_mpx_no_base_operand): New.
509 (address_mpx_no_index_operand): New.
510 (bnd_mem_operator): New.
511 * config/i386/i386.opt (mmpx): New.
512 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
513 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
514
515 Reverted:
516 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
517 * mode-classes.def (MODE_POINTER_BOUNDS): New.
518 * tree.def (POINTER_BOUNDS_TYPE): New.
519 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
520 (POINTER_BOUNDS_MODE): New.
521 (make_pointer_bounds_mode): New.
522 * machmode.h (POINTER_BOUNDS_MODE_P): New.
523 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
524 (layout_type): Support POINTER_BOUNDS_TYPE.
525 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
526 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
527 (type_contains_placeholder_1): Likewise.
528 * tree.h (POINTER_BOUNDS_TYPE_P): New.
529 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
530 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
531
532 2013-11-29 Richard Biener <rguenther@suse.de>
533
534 PR middle-end/59338
535 * tree-cfg.c (verify_expr): Restrict bounds verification of
536 BIT_FIELD_REF arguments to non-aggregate typed base objects.
537
538 2013-11-29 Richard Biener <rguenther@suse.de>
539
540 PR tree-optimization/59334
541 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
542 in previous commit.
543
544 2013-11-29 Jakub Jelinek <jakub@redhat.com>
545 Richard Biener <rguenther@suse.de>
546
547 PR lto/59326
548 * omp-low.c (simd_clone_create): Return NULL if for definition
549 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
550 before calling cgraph_function_versioning.
551 (expand_simd_clones): Look for "omp declare simd" attribute first.
552 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
553 Punt if node->global.inlined_to.
554 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
555 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
556 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
557
558 2013-11-29 Jakub Jelinek <jakub@redhat.com>
559
560 PR lto/59326
561 * tree-core.h (enum omp_clause_schedule_kind): Add
562 OMP_CLAUSE_SCHEDULE_LAST.
563 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
564 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
565 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
566 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
567 * lto-streamer-out.c (lto_is_streamable): Allow streaming
568 OMP_CLAUSE.
569 (DFS_write_tree_body): Handle OMP_CLAUSE.
570 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
571 function.
572 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
573 (write_ts_omp_clause_tree_pointers): New function.
574 (streamer_write_tree_body): Call it for OMP_CLAUSE.
575 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
576 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
577 function.
578 (unpack_value_fields): Call it for OMP_CLAUSE.
579 (streamer_alloc_tree): Handle OMP_CLAUSE.
580 (lto_input_ts_omp_clause_tree_pointers): New function.
581 (streamer_read_tree_body): Call it for OMP_CLAUSE.
582
583 2013-11-29 Joseph Myers <joseph@codesourcery.com>
584
585 * doc/implement-c.texi: Document C11 implementation-defined
586 behavior. Refer to -ffp-contract=fast for contraction behavior.
587 * doc/invoke.texi (-std=c99, std=c11): Update description of
588 completeness.
589 (-std=gnu99): Don't mention as future default.
590 (-std=gnu11): Mention as intended future default.
591 * doc/standards.texi: Update descriptions of C99 and C11 support.
592 Limit statement about C99 facilities for freestanding
593 implementations to some platforms only.
594
595 2013-11-28 Jakub Jelinek <jakub@redhat.com>
596
597 PR middle-end/59327
598 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
599 HWI hosts.
600
601 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
602
603 PR target/57293
604 * ira.h (ira_setup_eliminable_regset): Remove parameter.
605 * ira.c (ira_setup_eliminable_regset): Ditto. Add
606 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
607 Don't call lra_init_elimination.
608 (ira): Call ira_setup_eliminable_regset without arguments.
609 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
610 from ira_setup_eliminable_regset call.
611 * gcse.c (calculate_bb_reg_pressure): Ditto.
612 * haifa-sched.c (sched_init): Ditto.
613 * lra.h (lra_init_elimination): Remove the prototype.
614 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
615 used_insn_alternative upper.
616 (lra_eliminate_regs_1): Add one more parameter.
617 (lra-eliminate): Ditto.
618 * lra.c (lra_invalidate_insn_data): Set sp_offset.
619 (setup_sp_offset): New.
620 (lra_process_new_insns): Call setup_sp_offset.
621 (lra): Add argument to lra_eliminate calls.
622 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
623 (get_equiv_with_elimination): New.
624 (process_addr_reg): Call get_equiv_with_elimination instead of
625 get_equiv_substitution.
626 (equiv_address_substitution): Ditto.
627 (loc_equivalence_change_p): Ditto.
628 (loc_equivalence_callback, lra_constraints): Ditto.
629 (curr_insn_transform): Ditto. Print the sp offset
630 (process_alt_operands): Prevent stack pointer reloads.
631 (lra_constraints): Remove one argument from lra_eliminate call.
632 Move it up. Mark used hard regs bfore it. Use
633 get_equiv_with_elimination instead of get_equiv_substitution.
634 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
635 assert for param values combination. Use sp offset. Add argument
636 to lra_eliminate_regs_1 calls.
637 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
638 (curr_sp_change): New static var.
639 (mark_not_eliminable): Add parameter. Update curr_sp_change.
640 Don't prevent elimination to sp if we can calculate its change.
641 Pass the argument to mark_not_eliminable calls.
642 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
643 argument to lra_eliminate_regs_1 call.
644 (update_reg_eliminate): Move calculation of hard regs for spill
645 lower. Switch off lra_in_progress temporarily to generate regs
646 involved into elimination.
647 (lra_init_elimination): Rename to init_elimination. Make it
648 static. Set up insn sp offset, check the offsets at the end of
649 BBs.
650 (process_insn_for_elimination): Add parameter. Pass its value to
651 eliminate_regs_in_insn.
652 (lra_eliminate): : Add parameter. Pass its value to
653 process_insn_for_elimination. Add assert for param values
654 combination. Call init_elimination. Don't update offsets in
655 equivalence substitutions.
656 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
657 for created stack slot.
658 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
659 onto stack slot.
660
661 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
662
663 * config/arm/iterators.md (vrint_conds): New int attribute.
664 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
665 (smax<mode>3): Likewise.
666 (smin<mode>3): Likewise.
667
668 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
669
670 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
671 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
672 * tree-ssanames.h (set_range_info): Add range_type argument.
673 (duplicate_ssa_name_range_info): Likewise.
674 * tree-ssanames.c (set_range_info): Take the range type as argument
675 and store it in SSA_NAME_ANTI_RANGE_P.
676 (duplicate_ssa_name_range_info): Likewise.
677 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
678 (set_nonzero_bits): Update call to set_range_info.
679 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
680 * tree-ssa-copy.c (fini_copy_prop): Likewise.
681 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
682 (vrp_finalize): Likewise, passing anti-ranges directly.
683
684 2013-11-28 Richard Biener <rguenther@suse.de>
685
686 PR tree-optimization/59330
687 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
688 and fix delayed marking of free calls not necessary.
689
690 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
691
692 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
693 is_gimple_reg_type.
694 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
695
696 2013-11-28 Terry Guo <terry.guo@arm.com>
697
698 * config/arm/arm.c (v7m_extra_costs): New table.
699 (arm_v7m_tune): Use it.
700
701 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
702
703 * config/sol2.h (TIME_LIBRARY): Define.
704
705 2013-11-28 Richard Biener <rguenther@suse.de>
706
707 PR lto/59323
708 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
709 CONST_DECLs in function context are not indexable.
710
711 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
712
713 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
714 not optimized for size.
715
716 2013-11-28 Jakub Jelinek <jakub@redhat.com>
717
718 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
719 fields.
720 (expand_stack_vars): For -fsanitize=address, use (and set initially)
721 data->asan_base as base for vars and update asan_alignb.
722 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
723 Pass them to asan_emit_stack_protection.
724 * asan.c (asan_detect_stack_use_after_return): New variable.
725 (asan_emit_stack_protection): Add pbase and alignb arguments.
726 Implement use after return sanitization.
727 * asan.h (asan_emit_stack_protection): Adjust prototype.
728 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
729
730 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
731
732 * common.opt: Introduced a new option -fsimd-cost-model.
733 * doc/invoke.texi: Introduced a new openmp-simd warning and
734 a new -fsimd-cost-model option.
735 * tree-vectorizer.h (unlimited_cost_model): Interface updated
736 to rely on the particular loop info.
737 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
738 (vect_peeling_hash_choose_best_peeling): Ditto.
739 (vect_enhance_data_refs_alignment): Ditto.
740 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
741 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
742 plus added openmp-simd warining.
743
744 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
745
746 PR rtl-optimization/59311
747 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
748 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
749
750 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
751
752 * var-tracking.c (track_expr_p): Do not track declarations for parts
753 of tracked parameters.
754 (add_stores): Do not track values for tracked parameters passed in
755 multiple locations.
756 (vt_get_decl_and_offset): Handle PARALLEL.
757 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
758
759 2013-11-27 Jeff Law <law@redhat.com>
760
761 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
762 clobber the loop structure thread_block was unsuccessful. If
763 thread_block was unsuccessful, cleanup appropriately.
764
765 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
766
767 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
768 (score_char_to_class): Likewise.
769
770 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
771
772 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
773 overflow bit set.
774
775 2013-11-27 Richard Biener <rguenther@suse.de>
776
777 PR middle-end/58723
778 * cgraphbuild.c (build_cgraph_edges): Do not build edges
779 for internal calls.
780 (rebuild_cgraph_edges): Likewise.
781 * ipa-inline-analysis.c (estimate_function_body_sizes):
782 Skip internal calls.
783 * tree-inline.c (estimate_num_insns): Estimate size of internal
784 calls as 0.
785 (gimple_expand_calls_inline): Do not try inline-expanding
786 internal calls.
787 * lto-streamer-in.c (input_cfg): Stream loop safelen,
788 force_vect and simduid.
789 (input_struct_function_base): Stream has_force_vect_loops
790 and has_simduid_loops.
791 (input_function): Adjust.
792 * lto-streamer-out.c (output_cfg): Stream loop safelen,
793 force_vect and simduid.
794 (output_struct_function_base): Stream has_force_vect_loops
795 and has_simduid_loops.
796
797 2013-11-27 Kai Tietz <ktietz@redhat.com>
798
799 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
800 pointer cast.
801
802 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
803
804 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
805 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
806
807 2013-11-27 Marek Polacek <polacek@redhat.com>
808
809 PR sanitizer/59306
810 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
811 instead of walk_gimple_op.
812 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
813
814 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
815 Jakub Jelinek <jakub@redhat.com>
816
817 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
818 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
819 (struct cgraph_node): Add simdclone and simd_clones fields.
820 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
821 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
822 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
823 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
824 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
825 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
826 * doc/tm.texi: Regenerated.
827 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
828 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
829 attribute is present.
830 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
831 (simd_clone_vector_of_formal_parm_types): New function.
832 (simd_clone_struct_alloc, simd_clone_struct_copy,
833 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
834 simd_clone_compute_base_data_type, simd_clone_mangle,
835 simd_clone_create, simd_clone_adjust_return_type,
836 create_tmp_simd_array, simd_clone_adjust_argument_types,
837 simd_clone_init_simd_arrays): New functions.
838 (struct modify_stmt_info): New type.
839 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
840 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
841 functions.
842 (pass_data_omp_simd_clone): New variable.
843 (pass_omp_simd_clone): New class.
844 (make_pass_omp_simd_clone): New function.
845 * passes.def (pass_omp_simd_clone): New.
846 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
847 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
848 hooks.
849 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
850 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
851 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
852 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
853 * tree-vect-data-refs.c: Include cgraph.h.
854 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
855 and find_data_references_in_bb, if find_data_references_in_stmt
856 fails, still allow calls to #pragma omp declare simd functions
857 in #pragma omp simd loops unless they contain data references among
858 the call arguments or in lhs.
859 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
860 calls with no lhs.
861 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
862 lhs.
863 * tree-vectorizer.h (enum stmt_vec_info_type): Add
864 call_simd_clone_vec_info_type.
865 (struct _stmt_vec_info): Add simd_clone_fndecl field.
866 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
867 * tree-vect-stmts.c: Include tree-ssa-loop.h,
868 tree-scalar-evolution.h and cgraph.h.
869 (vectorizable_call): Handle calls without lhs. Assert
870 !stmt_can_throw_internal instead of failing for it. Don't update
871 EH stuff.
872 (struct simd_call_arg_info): New.
873 (vectorizable_simd_clone_call): New function.
874 (vect_transform_stmt): Call it.
875 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
876 calls without lhs.
877 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
878 if cgraph_function_with_gimple_body_p is true.
879
880 2013-11-27 Tom de Vries <tom@codesourcery.com>
881 Marc Glisse <marc.glisse@inria.fr>
882
883 PR middle-end/59037
884 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
885 BIT_FIELD_REF.
886 * gimple-fold.c (gimple_fold_indirect_ref): Same.
887 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
888 out-of-bounds.
889
890 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
891
892 PR middle-end/59138
893 * expr.c (emit_group_store): Don't write past the end of the structure.
894 (store_bit_field): Fix formatting.
895
896 2013-11-27 Richard Biener <rguenther@suse.de>
897
898 PR tree-optimization/59288
899 * tree-vect-loop.c (get_initial_def_for_induction): Do not
900 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
901
902 2013-11-27 Marek Polacek <polacek@redhat.com>
903
904 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
905 for a decl, recreate that decl. Save into the hash table VAR_DECLs
906 rather than ADDR_EXPRs.
907
908 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
909
910 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
911
912 2013-11-26 David Malcolm <dmalcolm@redhat.com>
913
914 * gengtype.c (struct seen_tag): New.
915 (already_seen_tag): New.
916 (mark_tag_as_seen): New.
917 (walk_subclasses): Support having multiple subclasses using the
918 same tag by tracking which tags have already been seen, and using
919 this to avoid adding duplicate cases to the "switch" statement.
920 The call to already_seen_tag introduces an O(N^2) when running
921 gengtype on N, the number of tags, due to the repeated linear
922 search, but currently max(N) is relatively small (the number of
923 GSS codes, which is 26).
924 (walk_type): Pass in a seen_tag for use by the walk_subclasses
925 recursion.
926
927 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
928 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
929 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
930 GIMPLE_OMP_RETURN happens to share the data layout of
931 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
932 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
933 underlying GSS value from GSS_OMP_PARALLEL to
934 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
935 not directly related; they merely share in-memory layout.
936 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
937 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
938
939 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
940 Rename to...
941 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
942 ...these.
943 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
944 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
945 ...these.
946 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
947 to...
948 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
949 ...these.
950
951 * gimple.h (gimple_statement_resx): New subclass of
952 gimple_statement_eh_ctrl, with the invariant that
953 stmt->code == GIMPLE_RESX.
954 (gimple_statement_eh_dispatch): New subclass of
955 gimple_statement_eh_ctrl, with the invariant that
956 stmt->code == GIMPLE_EH_DISPATH.
957
958 (gimple_statement_omp_parallel): The existing class expressed
959 a layout (GSS_OMP_PARALLEL), but the codes with that layout
960 are not all related, so it makes more sense for this class to
961 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
962 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
963 rename the existing gimple_statement_omp_parallel class to...
964 (gimple_statement_omp_parallel_layout): ...this, expressing
965 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
966 (gimple_statement_omp_taskreg): New subclass of
967 gimple_statement_omp_parallel_layout, expressing the invariant
968 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
969 as used by the various gimple_omp_taskreg_ accessors.
970 (gimple_statement_omp_parallel): Reintroduce this class, this time
971 as a subclass of gimple_statement_omp_taskreg to express the
972 invariant stmt->code == GIMPLE_OMP_PARALLEL.
973 (gimple_statement_omp_target) New class, subclassing
974 gimple_statement_omp_parallel_layout, to express the invariant
975 stmt->code == GIMPLE_OMP_TARGET.
976 (gimple_statement_omp_task): Update to inherit from
977 gimple_statement_omp_taskreg rather than
978 gimple_statement_omp_parallel.
979
980 (gimple_statement_omp_single): Rename to...
981 (gimple_statement_omp_single_layout): ...this, expressing the
982 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
983 (gimple_statement_omp_single): ...and reintroduce this name as
984 a subclass of gimple_statement_omp_single_layout, expressing
985 the invariant that code == GIMPLE_OMP_SINGLE.
986 (gimple_statement_omp_teams): New class, subclassing
987 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
988
989 (gimple_statement_omp_atomic_store): Rename to...
990 (gimple_statement_omp_atomic_store_layout): ...this, expressing
991 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
992 (gimple_statement_omp_atomic_store): ...and reintroduce this
993 name as a subclass of gimple_statement_omp_atomic_store_layout
994 with code == GIMPLE_OMP_ATOMIC_STORE.
995 (gimple_statement_omp_return): New class, subclassing
996 gimple_statement_omp_atomic_store_layout for the code
997 GIMPLE_OMP_RETURN.
998
999 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1000 (is_a_helper <gimple_statement_resx>::test): New.
1001 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1002 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1003 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1004 (is_a_helper <gimple_statement_omp_return>::test): New.
1005 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1006 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1007 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1008 GIMPLE_OMP_TARGET.
1009 (is_a_helper <gimple_statement_omp_target>::test): New.
1010 (is_a_helper <gimple_statement_omp_single>::test): Only check
1011 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1012 (is_a_helper <gimple_statement_omp_teams>::test): New.
1013
1014 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1015 (is_a_helper <const gimple_statement_resx>::test): New.
1016 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1017 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1018 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1019 (is_a_helper <const gimple_statement_omp_return>::test): New.
1020 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1021 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1022 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1023 GIMPLE_OMP_TARGET.
1024 (is_a_helper <const gimple_statement_omp_target>::test): New.
1025 (is_a_helper <const gimple_statement_omp_single>::test): Only
1026 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1027 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1028
1029 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1030 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1031 gimple_statement_omp_atomic_store with downcasts to
1032 gimple_statement_omp_return, thus requiring that the code be
1033 GIMPLE_OMP_RETURN.
1034 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1035 downcasts to gimple_statement_eh_ctrl with downcasts to
1036 gimple_statement_resx, thus requiring that the code be
1037 GIMPLE_RESX.
1038 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1039 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1040 downcasts to gimple_statement_eh_dispatch, thus requiring that
1041 the code be GIMPLE_EH_DISPATCH.
1042 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1043 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1044 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1045 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1046 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1047 gimple_statement_omp_parallel with downcasts to
1048 gimple_statement_omp_taskreg, thus requiring that the code be
1049 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1050 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1051 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1052 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1053 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1054 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1055 gimple_statement_omp_parallel with downcasts to
1056 gimple_statement_omp_target, thus requiring that the code be
1057 GIMPLE_OMP_TARGET.
1058 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1059 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1060 gimple_statement_omp_single with downcasts to
1061 gimple_statement_omp_teams, thus requiring that the code be
1062 GIMPLE_OMP_TEAMS.
1063
1064 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1065 gimple_statement_resx.
1066 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1067 gimple_statement_eh_dispatch.
1068
1069 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1070
1071 PR tree-optimization/59014
1072 * tree-vrp.c (register_edge_assert_for_1): Don't look
1073 through conversions from non-integral types or through
1074 narrowing conversions.
1075
1076 PR target/59229
1077 * config/i386/i386.c (device_alg): Fix up formatting.
1078 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1079 similarly to count && count < epilogue_size_needed. Fix up
1080 comment typo.
1081 * builtins.c (determine_block_size): Fix comment typo.
1082
1083 PR sanitizer/59258
1084 * ubsan.c (ubsan_source_location): Don't add any location
1085 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1086 (ubsan_create_data): Strip block info from LOC.
1087
1088 PR middle-end/59273
1089 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1090 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1091
1092 PR rtl-optimization/59166
1093 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1094 DF_REF_LOC in validate_change call.
1095 (split_live_ranges_for_shrink_wrap): Likewise.
1096
1097 PR middle-end/59150
1098 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1099 of references to constant size types in simd loops, defer emitting
1100 initializer for the new_var, emit it later on only if not using
1101 SIMD arrays for it.
1102
1103 PR middle-end/59152
1104 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1105 for the inner loop if collapse_bb is non-NULL.
1106 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1107
1108 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1109
1110 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1111 a constant immediate before force_reg.
1112
1113 2013-11-26 Richard Biener <rguenther@suse.de>
1114
1115 PR tree-optimization/59245
1116 * tree-vrp.c (set_value_range): Assert that we don't have
1117 overflowed constants (but our infinities).
1118 (set_value_range_to_value): Drop all overflow flags.
1119 (vrp_visit_phi_node): Likewise.
1120 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1121 to set a constant range.
1122
1123 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1124
1125 PR target/59290
1126 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1127 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1128 for zero_extend case.
1129
1130 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1131
1132 PR bootstrap/55552
1133 * configure.ac (install_gold_as_default): New. Set to yes for
1134 --disable-ld or --enable-gold=default.
1135 (gcc_cv_ld_gold_srcdir): New.
1136 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
1137 is yes.
1138 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1139 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1140 * configure: Regenerated.
1141
1142 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1143 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1144 (original) [collect-ld && -fuse-ld=bfd]: Set to
1145 $ORIGINAL_LD_BFD_FOR_TARGET.
1146 (original) [collect-ld && -fuse-ld=gold]: Set to
1147 $ORIGINAL_LD_GOLD_FOR_TARGET.
1148 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1149 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1150
1151 2013-11-26 Terry Guo <terry.guo@arm.com>
1152
1153 * config/arm/arm.c (require_pic_register): Handle high pic base
1154 register for thumb-1.
1155 (arm_load_pic_register): Also initialize high pic base register.
1156 * doc/invoke.texi: Update documentation for option -mpic-register.
1157
1158 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1159
1160 PR target/58314
1161 PR target/50751
1162 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1163 Prefix function names with 'sh_'. Make them non-static.
1164 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1165 sh_max_mov_insn_displacement): Add declarations.
1166 * config/sh/constraints.md (Q): Reject QImode.
1167 (Sdd): Use match_code "mem".
1168 (Snd): Fix erroneous matching of non-memory operands.
1169 * config/sh/predicates.md (short_displacement_mem_operand): New
1170 predicate.
1171 (general_movsrc_operand): Disallow PC relative QImode loads.
1172 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1173 (*movqi, *movhi): Merge both insns into...
1174 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1175 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1176 on the operand types.
1177
1178 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1179
1180 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1181 Remove unused variable save_config.
1182 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1183 assert.
1184
1185 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1186
1187 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1188 using other intrinsics.
1189 (vtbx3_<psu>8): Likewise.
1190
1191 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1192
1193 * config/aarch64/aarch64-builtins.c
1194 (aarch64_types_bsl_p_qualifiers): New.
1195 (aarch64_types_bsl_s_qualifiers): Likewise.
1196 (aarch64_types_bsl_u_qualifiers): Likewise.
1197 (TYPES_BSL_P): Likewise.
1198 (TYPES_BSL_S): Likewise.
1199 (TYPES_BSL_U): Likewise.
1200 (BUILTIN_VALLDIF): Likewise.
1201 (BUILTIN_VDQQH): Likewise.
1202 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1203 * config/aarch64/aarch64-simd.md
1204 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1205 (aarch64_simd_bsl<mode>): Likewise.
1206 * config/aarch64/arm_neon.h
1207 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1208 * config/aarch64/iterators.md (VALLDIF): New.
1209 (Vbtype): Handle more modes.
1210
1211 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1212
1213 * config/aarch64/aarch64-builtins.c
1214 (aarch64_type_qualifiers): Add qualifier_poly.
1215 (aarch64_build_scalar_type): Also build Poly types.
1216 (aarch64_build_vector_type): Likewise.
1217 (aarch64_build_type): Likewise.
1218 (aarch64_build_signed_type): New.
1219 (aarch64_build_unsigned_type): Likewise.
1220 (aarch64_build_poly_type): Likewise.
1221 (aarch64_init_simd_builtins): Also handle Poly types.
1222
1223 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1224
1225 * config/aarch64/aarch64-builtins.c
1226 (VAR1): Use new naming scheme for aarch64_builtins.
1227 (aarch64_builtin_vectorized_function): Use new
1228 aarch64_builtins names.
1229
1230 2013-11-26 Richard Biener <rguenther@suse.de>
1231
1232 PR tree-optimization/59287
1233 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1234 Remove no longer necessary special-casing of union accesses.
1235
1236 2013-11-26 Richard Biener <rguenther@suse.de>
1237
1238 * pretty-print.c (output_buffer::~output_buffer): Really
1239 free the obstacks.
1240
1241 2013-11-25 Jeff Law <law@redhat.com>
1242
1243 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1244 invalidate loop information.
1245
1246 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1247
1248 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1249
1250 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1251
1252 PR target/53976
1253 PR target/59243
1254 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1255 comments.
1256 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1257 previously visited basic blocks before recursing instead of only one
1258 basic block.
1259
1260 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1261
1262 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1263 * config/aarch64/aarch64-cores.def (cortex-a53):
1264 Use cortexa53 tuning struct.
1265
1266 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1267
1268 PR bootstrap/59260
1269 * fold-const.c: Include hash-table.h.
1270
1271 2013-11-25 Marek Polacek <polacek@redhat.com>
1272
1273 PR sanitizer/59258
1274 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1275
1276 2013-11-25 Richard Biener <rguenther@suse.de>
1277
1278 * tree-dfa.c: Remove unused convert.h include.
1279
1280 2013-11-25 Terry Guo <terry.guo@arm.com>
1281
1282 * doc/invoke.texi (-mslow-flash-data): Document new option.
1283 * config/arm/arm.opt (mslow-flash-data): New option.
1284 * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1285 it.
1286 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1287 are disabled.
1288 (arm_disable_literal_pool): Declare it.
1289 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1290 (arm_option_override): Handle new option.
1291 (thumb2_legitimate_address_p): Don't allow symbol references when
1292 literal pools are disabled.
1293 (arm_max_const_double_inline_cost): New function.
1294 * config/arm/arm.md (types.md): Include it before ...
1295 (use_literal_pool): New attribute.
1296 (enabled): Use new attribute.
1297 (split pattern): Replace symbol+offset with MOVW/MOVT.
1298
1299 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1300
1301 PR bootstrap/59279
1302 Revert previous commit.
1303
1304 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1305
1306 * jump.c (reset_insn_reg_label_operand_notes): New function,
1307 split out from ...
1308 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1309 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1310 split out from ...
1311 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1312 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1313 expensive CFG cleanup is called for.
1314 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1315 (cfg_layout_finalize): Delete dead jump tables before re-building
1316 the insns chain.
1317 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1318 basic blocks, not before.
1319 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1320
1321 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1322 insns chain of a scheduling extended basic block, they cannot appear
1323 there in cfglayout mode.
1324
1325 2013-11-24 Tobias Burnus <burnus@net-b.de>
1326
1327 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1328
1329 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1330
1331 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1332 for little endian.
1333
1334 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1335
1336 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1337
1338 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1339
1340 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1341
1342 2013-11-23 David Edelson <dje.gcc@gmail.com>
1343 Andrew Dixie <andrewd@gentrack.com>
1344
1345 PR target/33704
1346 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1347 (COLLECT_SHARED_FINI_FUNC): Define.
1348
1349 * collect2.c (aix_shared_initname): Declare.
1350 (aix_shared_fininame): Declare.
1351 (symkind): Add SYM_AIXI and SYM_AIXD.
1352 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1353 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1354 (aixlazy_flag): Parse.
1355 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1356 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1357
1358 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1359
1360 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1361 (rs6000_xcoff_select_section): Place decls with stricter alignment
1362 into named sections.
1363 (rs6000_xcoff_unique_section): Allow unique sections for
1364 uninitialized data with strict alignment.
1365
1366 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1367
1368 PR tree-optimization/59154
1369 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1370 rhs1 of a cast and new_op is invariant, fold_convert it.
1371 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1372 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1373
1374 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1375
1376 PR target/56788
1377 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1378 Declare as MULTI_ARG_1_SF instruction.
1379 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1380 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1381 from *xop_vmfrcz_<mode>.
1382 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1383 to merge scalar result with __A.
1384 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1385 result with __A.
1386
1387 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1388
1389 * gimplify.h (recalculate_side_effects): Delete.
1390 * gimplify.c (recalculate_side_effects): Make static and add comment.
1391
1392 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1393
1394 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1395 for the destination of a define_peephole2. Likewise register_operand
1396 rather than arith_reg_operand. Remove constraints from
1397 define_peephole2s.
1398
1399 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1400
1401 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1402 Delete.
1403 (mn10300_store_multiple_operation_p): Declare.
1404 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1405 Rename to...
1406 (mn10300_store_multiple_operation_p): ...this and remove mode
1407 argument.
1408 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1409 Define.
1410
1411 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1412
1413 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1414 (pop_multiple_operation): Delete.
1415 (analyze_push_multiple_operation): Declare.
1416 (analyze_pop_multiple_operation): Declare.
1417 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1418 (analyze_push_multiple_operation): ...this and remove mode argument.
1419 (pop_multiple_operation): Rename to...
1420 (analyze_pop_multiple_operation): ...this and remove mode argument.
1421 * config/bfin/predicates.md (push_multiple_operation): Define.
1422 (pop_multiple_operation): Likewise.
1423
1424 2013-11-23 Alan Modra <amodra@gmail.com>
1425
1426 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1427
1428 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1429
1430 PR sanitizer/59061
1431 * common.opt (static-liblsan): Add.
1432 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1433 Define.
1434 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1435 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1436 SANITIZE_RETURN.
1437 * opts.c (common_handle_option): Handle -fsanitize=leak.
1438 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1439 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1440 (LIBUBSAN_EARLY_SPEC): Remove.
1441 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1442 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1443 (sanitize_spec_function): Handle %sanitize(leak).
1444 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1445
1446 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1447 Jakub Jelinek <jakub@redhat.com>
1448
1449 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1450 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1451 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1452 (ipa_modify_formal_parameters): Adjust caller. Remove
1453 synth_parm_prefix argument. Use operator enum instead of bit fields.
1454 Add assert for properly handling vector of references. Handle
1455 creating brand new parameters.
1456 (ipa_modify_call_arguments): Use operator enum instead of bit
1457 fields.
1458 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1459 used.
1460 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1461 New functions.
1462 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1463 Use operator enum instead of bit fields.
1464 * ipa-prop.h (enum ipa_parm_op): New.
1465 (struct ipa_parm_adjustment): New field op. Rename reduction
1466 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1467 and copy_param.
1468 (ipa_modify_formal_parameters): Remove last argument.
1469 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1470 ipa_get_adjustment_candidate): New prototypes.
1471 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1472 enum. Set arg_prefix.
1473 (get_adjustment_for_base): Use operator enum.
1474 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1475 ipa-prop.c.
1476 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1477 (ipa_sra_modify_function_body): Same. No longer static.
1478 (sra_ipa_reset_debug_stmts): Use operator enum.
1479 (modify_function): Do not pass prefix argument.
1480
1481 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1482
1483 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1484 (ubsan_pass): Ignore clobber stmts.
1485
1486 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1487 * opts.c (common_handle_option): Add -fsanitize=return.
1488 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1489 or it into SANITIZE_UNDEFINED.
1490
1491 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1492 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1493 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1494 Don't instrument accesses to VAR_DECLs which are known to fit
1495 into their bounds and the vars are known to have shadow bytes
1496 indicating allowed access.
1497 (asan_dynamic_init_call): New function.
1498 (asan_add_global): If vnode->dynamically_initialized,
1499 set __has_dynamic_init to 1 instead of 0.
1500 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1501 * asan.h (asan_dynamic_init_call): New prototype.
1502 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1503
1504 2013-11-22 Martin Jambor <mjambor@suse.cz>
1505
1506 PR rtl-optimization/10474
1507 * ira.c (interesting_dest_for_shprep_1): New function.
1508 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1509 also check parallels.
1510
1511 2013-11-22 Jeff Law <law@redhat.com>
1512
1513 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1514 NULL for RHS, which we used to invalidate equivalences.
1515 (record_temporary_equivalences_from_phis): New bitmap arguments
1516 and a boolean indicating if we have passed a backedge. If we
1517 have passed a backedge, then set the appropriate bit in the
1518 bitmaps for the SRC & DEST of PHIs creating equivalences.
1519 (invalidate_equivalences, dummy_simplify): New functions.
1520 (cond_arg_set_in_b): Remove.
1521 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1522 arguments and a boolean indicating if we have passed a backedge.
1523 If we have passed a backedge, then perform invalidations as needed.
1524 (thread_around_empty_blocks): If we have seen a backedge, then
1525 use the dummy simplify routine.
1526 (thread_through_normal_block): Likewise. Pass bitmaps and
1527 backedge status to children. Do not pessimize so much when
1528 traversing backedges in the CFG.
1529 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1530 If we have seen a backedge, then use the dummy simplify routine.
1531 Do not pessimize so much when traversing backedges.
1532
1533 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1534
1535 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1536 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1537
1538 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1539
1540 * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1541 PTA_PCLMUL and PTA_RDRND for Silvermont.
1542 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1543 for Silvermont.
1544
1545 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1546
1547 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1548
1549 * hooks.h (hook_uint_mode_0): Add Prototype.
1550 * hooks.c (hook_uint_mode_0): New default function.
1551 * target.def (atomic_align_for_mode): New target hook.
1552 * tree.c (build_atomic_base): Add alignment override parameter.
1553 (build_common_tree_nodes): Use atomic alignment override.
1554 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1555 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1556
1557 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1558
1559 * gimple.h: Remove all includes.
1560 (recalculate_side_effects): Move prototype to gimplify.h.
1561 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1562 * gengtype.c (open_base_files): Add gimple.h include list.
1563 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1564 * gimple.c: Adjust include list.
1565 (recalculate_side_effects): Move to gimplify.c.
1566 * gimplify.c: Adjust include list.
1567 (recalculate_side_effects): Relocate from gimple.c.
1568 * alias.c: Add required include files removed from gimple.h.
1569 * asan.c: Likewise.
1570 * builtins.c: Likewise.
1571 * calls.c: Likewise.
1572 * cfgexpand.c: Likewise.
1573 * cfgloop.c: Likewise.
1574 * cfgloopmanip.c: Likewise.
1575 * cgraphbuild.c: Likewise.
1576 * cgraph.c: Likewise.
1577 * cgraphclones.c: Likewise.
1578 * cgraphunit.c: Likewise.
1579 * cilk-common.c: Likewise.
1580 * data-streamer.c: Likewise.
1581 * data-streamer-in.c: Likewise.
1582 * data-streamer-out.c: Likewise.
1583 * dse.c: Likewise.
1584 * dwarf2out.c: Likewise.
1585 * emit-rtl.c: Likewise.
1586 * except.c: Likewise.
1587 * expr.c: Likewise.
1588 * fold-const.c: Likewise.
1589 * function.c: Likewise.
1590 * gimple-builder.c: Likewise.
1591 * gimple-expr.c: Likewise.
1592 * gimple-fold.c: Likewise.
1593 * gimple-iterator.c: Likewise.
1594 * gimple-low.c: Likewise.
1595 * gimple-pretty-print.c: Likewise.
1596 * gimple-ssa-isolate-paths.c: Likewise.
1597 * gimple-ssa-strength-reduction.c: Likewise.
1598 * gimple-streamer-in.c: Likewise.
1599 * gimple-streamer-out.c: Likewise.
1600 * gimple-walk.c: Likewise.
1601 * gimplify-me.c: Likewise.
1602 * graphite-blocking.c: Likewise.
1603 * graphite.c: Likewise.
1604 * graphite-clast-to-gimple.c: Likewise.
1605 * graphite-dependences.c: Likewise.
1606 * graphite-interchange.c: Likewise.
1607 * graphite-optimize-isl.c: Likewise.
1608 * graphite-poly.c: Likewise.
1609 * graphite-scop-detection.c: Likewise.
1610 * graphite-sese-to-poly.c: Likewise.
1611 * internal-fn.c: Likewise.
1612 * ipa.c: Likewise.
1613 * ipa-cp.c: Likewise.
1614 * ipa-devirt.c: Likewise.
1615 * ipa-inline-analysis.c: Likewise.
1616 * ipa-inline.c: Likewise.
1617 * ipa-profile.c: Likewise.
1618 * ipa-prop.c: Likewise.
1619 * ipa-pure-const.c: Likewise.
1620 * ipa-reference.c: Likewise.
1621 * ipa-split.c: Likewise.
1622 * ipa-utils.c: Likewise.
1623 * langhooks.c: Likewise.
1624 * lto-cgraph.c: Likewise.
1625 * lto-compress.c: Likewise.
1626 * lto-opts.c: Likewise.
1627 * lto-section-in.c: Likewise.
1628 * lto-section-out.c: Likewise.
1629 * lto-streamer.c: Likewise.
1630 * lto-streamer-in.c: Likewise.
1631 * lto-streamer-out.c: Likewise.
1632 * omp-low.c: Likewise.
1633 * opts-global.c: Likewise.
1634 * passes.c: Likewise.
1635 * predict.c: Likewise.
1636 * profile.c: Likewise.
1637 * sese.c: Likewise.
1638 * stmt.c: Likewise.
1639 * stor-layout.c: Likewise.
1640 * symtab.c: Likewise.
1641 * targhooks.c: Likewise.
1642 * toplev.c: Likewise.
1643 * tracer.c: Likewise.
1644 * trans-mem.c: Likewise.
1645 * tree-affine.c: Likewise.
1646 * tree.c: Likewise.
1647 * tree-call-cdce.c: Likewise.
1648 * tree-cfg.c: Likewise.
1649 * tree-cfgcleanup.c: Likewise.
1650 * tree-chrec.c: Likewise.
1651 * tree-complex.c: Likewise.
1652 * tree-data-ref.c: Likewise.
1653 * tree-dfa.c: Likewise.
1654 * tree-eh.c: Likewise.
1655 * tree-emutls.c: Likewise.
1656 * tree-if-conv.c: Likewise.
1657 * tree-inline.c: Likewise.
1658 * tree-into-ssa.c: Likewise.
1659 * tree-loop-distribution.c: Likewise.
1660 * tree-nested.c: Likewise.
1661 * tree-nrv.c: Likewise.
1662 * tree-object-size.c: Likewise.
1663 * tree-outof-ssa.c: Likewise.
1664 * tree-parloops.c: Likewise.
1665 * tree-phinodes.c: Likewise.
1666 * tree-predcom.c: Likewise.
1667 * tree-pretty-print.c: Likewise.
1668 * tree-profile.c: Likewise.
1669 * tree-scalar-evolution.c: Likewise.
1670 * tree-sra.c: Likewise.
1671 * tree-ssa-address.c: Likewise.
1672 * tree-ssa-alias.c: Likewise.
1673 * tree-ssa.c: Likewise.
1674 * tree-ssa-ccp.c: Likewise.
1675 * tree-ssa-coalesce.c: Likewise.
1676 * tree-ssa-copy.c: Likewise.
1677 * tree-ssa-copyrename.c: Likewise.
1678 * tree-ssa-dce.c: Likewise.
1679 * tree-ssa-dom.c: Likewise.
1680 * tree-ssa-dse.c: Likewise.
1681 * tree-ssa-forwprop.c: Likewise.
1682 * tree-ssa-ifcombine.c: Likewise.
1683 * tree-ssa-live.c: Likewise.
1684 * tree-ssa-loop.c: Likewise.
1685 * tree-ssa-loop-ch.c: Likewise.
1686 * tree-ssa-loop-im.c: Likewise.
1687 * tree-ssa-loop-ivcanon.c: Likewise.
1688 * tree-ssa-loop-ivopts.c: Likewise.
1689 * tree-ssa-loop-manip.c: Likewise.
1690 * tree-ssa-loop-niter.c: Likewise.
1691 * tree-ssa-loop-prefetch.c: Likewise.
1692 * tree-ssa-loop-unswitch.c: Likewise.
1693 * tree-ssa-math-opts.c: Likewise.
1694 * tree-ssanames.c: Likewise.
1695 * tree-ssa-operands.c: Likewise.
1696 * tree-ssa-phiopt.c: Likewise.
1697 * tree-ssa-phiprop.c: Likewise.
1698 * tree-ssa-pre.c: Likewise.
1699 * tree-ssa-propagate.c: Likewise.
1700 * tree-ssa-reassoc.c: Likewise.
1701 * tree-ssa-sccvn.c: Likewise.
1702 * tree-ssa-sink.c: Likewise.
1703 * tree-ssa-strlen.c: Likewise.
1704 * tree-ssa-structalias.c: Likewise.
1705 * tree-ssa-tail-merge.c: Likewise.
1706 * tree-ssa-ter.c: Likewise.
1707 * tree-ssa-threadedge.c: Likewise.
1708 * tree-ssa-threadupdate.c: Likewise.
1709 * tree-ssa-uncprop.c: Likewise.
1710 * tree-ssa-uninit.c: Likewise.
1711 * tree-stdarg.c: Likewise.
1712 * tree-streamer.c: Likewise.
1713 * tree-streamer-in.c: Likewise.
1714 * tree-streamer-out.c: Likewise.
1715 * tree-switch-conversion.c: Likewise.
1716 * tree-tailcall.c: Likewise.
1717 * tree-vect-data-refs.c: Likewise.
1718 * tree-vect-generic.c: Likewise.
1719 * tree-vect-loop.c: Likewise.
1720 * tree-vect-loop-manip.c: Likewise.
1721 * tree-vectorizer.c: Likewise.
1722 * tree-vect-patterns.c: Likewise.
1723 * tree-vect-slp.c: Likewise.
1724 * tree-vect-stmts.c: Likewise.
1725 * tree-vrp.c: Likewise.
1726 * tsan.c: Likewise.
1727 * ubsan.c: Likewise.
1728 * value-prof.c: Likewise.
1729 * varpool.c: Likewise.
1730 * var-tracking.c: Likewise.
1731 * vtable-verify.c: Likewise.
1732 * config/darwin.c: Likewise.
1733 * config/aarch64/aarch64-builtins.c: Likewise.
1734 * config/aarch64/aarch64.c: Likewise.
1735 * config/alpha/alpha.c: Likewise.
1736 * config/i386/i386.c: Likewise.
1737 * config/i386/winnt.c: Likewise.
1738 * config/ia64/ia64.c: Likewise.
1739 * config/m32c/m32c.c: Likewise.
1740 * config/mep/mep.c: Likewise.
1741 * config/mips/mips.c: Likewise.
1742 * config/rs6000/rs6000.c: Likewise.
1743 * config/s390/s390.c: Likewise.
1744 * config/sh/sh.c: Likewise.
1745 * config/sparc/sparc.c: Likewise.
1746 * config/spu/spu.c: Likewise.
1747 * config/stormy16/stormy16.c: Likewise.
1748 * config/tilegx/tilegx.c: Likewise.
1749 * config/tilepro/tilepro.c: Likewise.
1750 * config/xtensa/xtensa.c: Likewise.
1751
1752 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
1753
1754 PR target/59216
1755 * arm.md (negdi_extendsidi): Fix invalid split.
1756
1757 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
1758
1759 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1760 (vmov_n_f64): Likewise.
1761 (vmov_n_p8): Likewise.
1762 (vmov_n_p16): Likewise.
1763 (vmov_n_s8): Likewise.
1764 (vmov_n_s16): Likewise.
1765 (vmov_n_s32): Likewise.
1766 (vmov_n_s64): Likewise.
1767 (vmov_n_u8): Likewise.
1768 (vmov_n_u16): Likewise.
1769 (vmov_n_u32): Likewise.
1770 (vmov_n_u64): Likewise.
1771 (vmovq_n_f32): Likewise.
1772 (vmovq_n_f64): Likewise.
1773 (vmovq_n_p8): Likewise.
1774 (vmovq_n_p16): Likewise.
1775 (vmovq_n_s8): Likewise.
1776 (vmovq_n_s16): Likewise.
1777 (vmovq_n_s32): Likewise.
1778 (vmovq_n_s64): Likewise.
1779 (vmovq_n_u8): Likewise.
1780 (vmovq_n_u16): Likewise.
1781 (vmovq_n_u32): Likewise.
1782 (vmovq_n_u64): Likewise.
1783
1784 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1785
1786 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1787 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1788 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1789 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1790 and also change to float UNSPEC.
1791 (reduc_maxmin_uns>_<mode>): Remove V2DI.
1792 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1793 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1794 result access for big-endian.
1795 (__LANE0): New macro used to fix up lane access of 'across-lanes'
1796 intrinsics for big-endian.
1797 * config/aarch64/iterators.md (VDQV): Add V2DI.
1798 (VDQV_S): New.
1799 (vp): New mode attribute.
1800
1801 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1802
1803 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1804 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1805 big-endian.
1806
1807 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1808
1809 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1810 for big-endian element order.
1811 (aarch64_simd_vec_setv2di): Likewise.
1812 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1813 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1814 (vec_extract): Expand using aarch64_get_lane.
1815 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1816
1817 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1818
1819 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1820 and stores to be ABI compliant.
1821
1822 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1823
1824 * input.h (input_line): Remove.
1825 (input_filename): Likewise.
1826 (in_system_header): Likewise.
1827 * tree.h (EXPR_LOC_OR_HERE): Remove.
1828 * config/bfin/bfin.c (output_file_start): Remove use of
1829 input_filename macro.
1830 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1831 * gimplify.c (internal_get_tmp_var): Likewise.
1832 EXPR_LOC_OR_HERE macro.
1833 (shortcut_cond_expr): Likewise.
1834 * tree-diagnostic.c (diagnostic_report_current_function): Remove
1835 use of input_filename macro.
1836 * tree.c (get_file_function_name): Likewise.
1837
1838 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1839
1840 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1841
1842 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1843
1844 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1845 (same sized) elements even if the type of the CONSTRUCTOR has
1846 vector mode and target is a REG.
1847
1848 2013-11-22 Richard Biener <rguenther@suse.de>
1849
1850 Revert
1851 2013-11-21 Richard Biener <rguenther@suse.de>
1852
1853 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1854 nb_iterations_upper_bound by one.
1855
1856 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
1857
1858 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1859 for Silvermont.
1860
1861 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1862 core-avx-i, core-avx2 and slm.
1863
1864 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
1865
1866 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1867
1868 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
1869
1870 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1871 (stzx_24_<mode>): Likewise mra_operand.
1872
1873 2013-11-22 Jeff Law <law@redhat.com>
1874
1875 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1876 (thread_block_1): Do not cancel jump threads which go from
1877 inside a loop, through the header, then back inside the loop.
1878 (bb_ends_with_multiway_branch): New function.
1879 (thread_through_all_blocks): Handle threading cases which start
1880 in a loop through the loop header to a point in the loop.
1881
1882 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1883 jump thread path properly.
1884
1885 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
1886
1887 * vec.h (auto_vec): New class.
1888 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1889 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1890 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1891 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1892 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1893 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1894 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1895 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1896 appropriate instead of vec for local variables.
1897
1898 2013-11-21 Teresa Johnson <tejohnson@google.com>
1899
1900 PR target/59233
1901 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1902 not understood by old_insns_match_p.
1903
1904 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
1905
1906 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1907 little endian change.
1908 (vec_pack_sfix_trunc_v2df): Likewise.
1909 (vec_pack_ufix_trunc_v2df): Likewise.
1910 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1911 double checking of endianness.
1912
1913 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1914
1915 * tree-vect-generic.c (optimize_vector_constructor): New function.
1916 (expand_vector_operations_1): Call it.
1917
1918 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
1919
1920 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1921 ix86_zero_extend_to_Pmode where appropriate.
1922 (ix86_expand_builtin): Ditto.
1923
1924 2013-11-21 Cary Coutant <ccoutant@google.com>
1925
1926 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1927 (add_linkage_name): Don't add linkage name for -g1.
1928 (decls_for_scope): Process subblocks for -g1.
1929 (dwarf2out_source_line): Output line tables for -g1.
1930 (dwarf2out_finish): Likewise.
1931 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1932 unused scopes for -g1.
1933 * opts.c (common_handle_option): Handle -g same as -g2.
1934 * doc/invoke.texi: Update description for -g1.
1935
1936 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
1937
1938 * doc/extend.texi: Document htm builtins.
1939
1940 2013-11-21 Jeff Law <law@redhat.com>
1941
1942 PR tree-optimization/59221
1943 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1944 temporary equivalences when threading through joiner blocks.
1945
1946 2013-11-21 Joseph Myers <joseph@codesourcery.com>
1947
1948 PR rtl-optimization/55950
1949 * real.c (real_sqrt): Remove function.
1950 * real.h (real_sqrt): Remove prototype.
1951 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1952 SQRT using real_sqrt.
1953
1954 2013-11-21 Richard Biener <rguenther@suse.de>
1955
1956 PR tree-optimization/59058
1957 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1958 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1959 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1960 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1961 (NITERS_KNOWN_P): Fold into ...
1962 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1963 (LOOP_VINFO_PEELING_FOR_NITER): Add.
1964 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1965 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1966 (vect_do_peeling_for_alignment): Re-use precomputed niter
1967 instead of re-emitting it.
1968 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1969 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1970 * tree-vect-loop.c (vect_get_loop_niters): Use
1971 number_of_latch_executions.
1972 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1973 (vect_analyze_loop_form): Simplify.
1974 (vect_analyze_loop_operations): Move epilogue peeling code ...
1975 (vect_analyze_loop_2): ... here and adjust it to compute
1976 LOOP_VINFO_PEELING_FOR_NITER.
1977 (vect_estimate_min_profitable_iters): Use
1978 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1979 (vect_build_loop_niters): Emit on the preheader.
1980 (vect_generate_tmps_on_preheader): Likewise.
1981 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1982 of recomputing it. Adjust.
1983
1984 2013-11-21 Richard Biener <rguenther@suse.de>
1985
1986 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1987 LOC_LINE): Remove wrappers and fix all users.
1988 (struct _loop_vec_info): Remove loop_line_number member.
1989 (LOOP_VINFO_LOC): Remove.
1990 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1991 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1992 and LOC_LINE.
1993
1994 2013-11-21 Richard Biener <rguenther@suse.de>
1995
1996 * tree-ssa-forwprop.c (simplify_vce): New function.
1997 (ssa_forward_propagate_and_combine): Call it.
1998
1999 2013-11-21 Richard Biener <rguenther@suse.de>
2000
2001 * tree-vect-loop-manip.c (vect_build_loop_niters,
2002 vect_generate_tmps_on_preheader): Move ...
2003 * tree-vect-loop.c (vect_build_loop_niters,
2004 vect_generate_tmps_on_preheader): ... here and simplify.
2005 (vect_transform_loop): Call them here and pass down results
2006 to consumers.
2007 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2008 Get niter variables from caller.
2009 (vect_do_peeling_for_alignment): Likewise.
2010 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2011 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2012 Adjust prototypes.
2013
2014 2013-11-21 Richard Biener <rguenther@suse.de>
2015
2016 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2017 nb_iterations_upper_bound by one.
2018
2019 2013-11-21 Richard Biener <rguenther@suse.de>
2020
2021 PR tree-optimization/59058
2022 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2023 (build_size_arg_loc): Apply niter adjustment here.
2024 (generate_memset_builtin): Adjust.
2025 (generate_memcpy_builtin): Likewise.
2026 (classify_partition): Do not use number_of_exit_cond_executions
2027 but record whether niter needs to be adjusted.
2028
2029 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2030
2031 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2032 could throw.
2033
2034 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2035
2036 PR target/53976
2037 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2038 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2039 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2040 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2041 sh_optimize_sett_clrt pass.o to extra_objs.
2042
2043 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2044
2045 * cfg.c (dump_edge_info): Remove redundant comment.
2046 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2047 EXIT_BLOCK_PTR in comment.
2048 (try_optimize_cfg): Likewise.
2049 * cfgrtl.c (last_bb_in_partition): Likewise.
2050 * cgraph.c (cgraph_node_cannot_return): Likewise.
2051 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2052 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2053 * ipa-split.c (consider_split): Likewise.
2054 * profile.c (find_spanning_tree): Likewise.
2055 * sched-int.h (common_sched_info_def.add_block): Likewise.
2056 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2057 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2058 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2059 in comments to now removed ENTRY_BLOCK_PTR macro.
2060 (tree_forwarder_block_p): Reword reference in comment to
2061 EXIT_BLOCK_PTR.
2062 * tree-inline.c (copy_cfg_body): Reword references in comments to
2063 now removed ENTRY_BLOCK_PTR macro.
2064 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2065 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2066 a comma to the comment to clarify the meaning.
2067
2068 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2069
2070 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2071 Move to gimplify.c.
2072 (free_gimplify_stack): Add prototype.
2073 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2074 (struct gimplify_ctx): Relocate here.
2075 (gimplify_ctxp): Make static.
2076 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2077 list of struct gimplify_ctx.
2078 (push_gimplify_context): Add default parameters and allocate a struct
2079 from the pool.
2080 (pop_gimplify_context): Free a struct back to the pool.
2081 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2082 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2083 use a local 'struct gimplify_ctx'.
2084 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2085 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2086 Likewise.
2087 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2088 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2089 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2090 lower_omp_teams, execute_lower_omp): Likewise.
2091 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2092 * tree-inline.c (optimize_inline_calls): Likewise.
2093
2094 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2095
2096 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2097 (vsx_extract_<mode>): Likewise.
2098 (*vsx_extract_<mode>_one_le): New LE variant on
2099 *vsx_extract_<mode>_zero.
2100 (vsx_extract_v4sf): Adjust for little endian.
2101
2102 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2103
2104 PR rtl-optimization/59133
2105 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2106 new pseudos.
2107 (lra_create_new_reg_with_unique_value): Pass new argument value.
2108 (lra_emit_add, lra_emit_move): Ditto.
2109 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2110 (change_class): Rename to lra_change_class. Move to lra-int.h.
2111 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2112 change_class.
2113 (process_addr_reg, process_addr): Ditto.
2114 (curr_insn_transform): Ditto. Add check on old pseudo for
2115 optional reload.
2116 * lra-int.h (lra_get_regno_hard_regno): Move below.
2117 (lra_change_class): Renamed change_class from lra.c.
2118
2119 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2120
2121 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2122 the children of a NULL pointer.
2123
2124 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2125
2126 * lra.c (lra): Set lra_in_progress before check_rtl call.
2127 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2128 adding clobber regs when LRA is running.
2129
2130 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2131
2132 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2133 restriction for ISA_MIPS32R2.
2134 (ISA_HAS_LXC1_SXC1): New macro.
2135 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2136 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2137 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2138 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2139 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2140 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2141 (*<ANYF:storex>_<P:mode>): Likewise.
2142
2143 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2144
2145 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2146 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2147 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2148 * config/mips/mips.md (recip_condition): Remove mode attribute.
2149 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2150 <recip_condition>.
2151 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2152
2153 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2154
2155 PR target/59207
2156 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2157 Make sure neg2_ovf is set before being used.
2158
2159 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2160
2161 * plugin.def: Add comment about register_callback and
2162 invoke_plugin_callbacks_full.
2163
2164 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2165 Handle PLUGIN_INCLUDE_FILE event.
2166
2167 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2168
2169 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2170 allow subregs of TDmode in FPRs of smaller size in little-endian.
2171 (rs6000_split_multireg_move): When splitting an access to TDmode
2172 in FPRs, do not use simplify_gen_subreg.
2173
2174 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2175
2176 PR middle-end/21718
2177 * real.c: Remove comment about decimal string conversion and
2178 rounding errors.
2179 (real_from_string): Use MPFR to convert nonzero decimal constant
2180 to REAL_VALUE_TYPE.
2181
2182 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2183
2184 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2185 endianness of the D registers for the legacy encodings.
2186
2187 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2188
2189 PR rtl-optimization/54300
2190 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2191 outputs in a single-set are killed from the value chains.
2192
2193 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2194
2195 * cgraph.h (varpool_node): Add need_bounds_init field.
2196 * lto-cgraph.c (lto_output_varpool_node): Output
2197 need_bounds_init value.
2198 (input_varpool_node): Read need_bounds_init value.
2199 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2200
2201 2013-11-20 Jan Hubicka <jh@suse.cz>
2202
2203 * opts.c (finish_options): Imply -ffat-lto-objects with
2204 -fno-use-linker-plugin.
2205 * common.opt (fuse-linker-plugin): Add var.
2206
2207 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2208
2209 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2210 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2211 (gen_type_die_with_usage): Skip pointer bounds.
2212 (dwarf2out_global_decl): Likewise.
2213
2214 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2215
2216 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2217 from all insns.
2218
2219 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2220
2221 PR target/57756
2222 * config/i386/i386.c (ix86_option_override_internal): Add missed
2223 argument prefix for 'ix86_fpmath'.
2224 * config/i386/ssemath.h: Add missed definition of
2225 TARGET_FPMATH_DEFAULT_P macros.
2226
2227 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2228 Mike Stump <mikestump@comcast.net>
2229 Richard Sandiford <rdsandiford@googlemail.com>
2230
2231 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2232 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2233 tree_fits_shwi_p or tree_fits_uhwi_p.
2234 * builtins.c (fold_builtin_powi): Likewise.
2235 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2236 Likewise.
2237 * dbxout.c (dbxout_symbol): Likewise.
2238 * expr.c (expand_expr_real_1): Likewise.
2239 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2240 (fold_binary_loc): Likewise.
2241 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2242 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2243 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2244 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2245 * stor-layout.c (compute_record_mode): Likewise.
2246 * tree-cfg.c (verify_expr): Likewise.
2247 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2248 * tree-pretty-print.c (dump_array_domain): Likewise.
2249 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2250 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2251 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2252 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2253 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2254 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2255 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2256 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2257 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2258 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2259 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2260 (create_variable_info_for_1): Likewise.
2261 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2262 (vect_verify_datarefs_alignment): Likewise.
2263 (vect_analyze_data_ref_accesses): Likewise.
2264 (vect_prune_runtime_alias_test_list): Likewise.
2265 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2266
2267 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2268
2269 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2270 overflow. Use tree_to_shwi.
2271
2272 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2273
2274 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2275 HOST_WIDE_INTs when folding (x >> c) << c.
2276
2277 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2278 Dominik Vogt <vogt@linux.vnet.ibm.com>
2279
2280 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2281 int comparisons with an out of range condition code.
2282 (s390_optimize_nonescaping_tx): Skip empty BBs.
2283 Generate the new tbegin RTX when removing the FPR clobbers (with
2284 two SETs).
2285 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2286 result before doing the retry calculations.
2287 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2288 "noreturn".
2289 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2290 the TDB setting part of an tbegin.
2291 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2292 ("tx_assist"): Set unused argument to an immediate zero instead of
2293 loading zero into a GPR and pass it as argument.
2294 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2295 Remove inline and related attributes.
2296 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2297 (__TM_is_illegal, __TM_is_footprint_exceeded)
2298 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2299
2300 2013-11-20 Richard Biener <rguenther@suse.de>
2301
2302 PR lto/59035
2303 * lto-opts.c (lto_write_options): Write defaults only if
2304 they were not explicitely specified. Also write
2305 -ffp-contract default.
2306 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2307 conservatively.
2308 (run_gcc): Pass through -ffp-contract.
2309
2310 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2311
2312 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2313
2314 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2315
2316 * gcc/config/aarch64/aarch64-builtins.c
2317 (aarch64_simd_itype): Remove.
2318 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2319 (VAR1): Use qualifiers.
2320 (aarch64_build_scalar_type): New.
2321 (aarch64_build_vector_type): Likewise.
2322 (aarch64_build_type): Likewise.
2323 (aarch64_init_simd_builtins): Refactor, remove special cases,
2324 consolidate main loop.
2325 (aarch64_simd_expand_args): Likewise.
2326
2327 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2328
2329 PR c/53001
2330 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2331
2332 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2333
2334 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2335
2336 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2337
2338 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2339 to "vec<>" instances.
2340 (build_pretty_printer): Register the vec<>* prettyprinter.
2341
2342 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2343
2344 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2345 (GdbSubprinter.handles_type): New.
2346 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2347 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2348 (GdbPrettyPrinters.add_printer): Remove in favor of...
2349 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2350 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2351 (GdbPrettyPrinters.__call__): Update search for subprinter
2352 to use handles_type method.
2353 (build_pretty_printer): Update registration of subprinters to
2354 use the new API above, supporting multiple spelling of each type,
2355 and allowing for future regex-based subprinters.
2356
2357 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2358
2359 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2360 V16QI vector splat case for little endian.
2361
2362 2013-11-19 Jeff Law <law@redhat.com>
2363
2364 * tree-ssa-threadedge.c (thread_across_edge): After threading
2365 through a joiner, allow threading a normal block requiring duplication.
2366
2367 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2368 jump threading requests that would muck up the loop structures.
2369
2370 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2371 * tree-ssa-threadupdate.h: Likewise.
2372
2373 2013-11-19 Mike Stump <mikestump@comcast.net>
2374
2375 * gdbinit.in: Add pmz to print out mpz values.
2376
2377 2013-11-20 Jan Hubicka <jh@suse.cz>
2378
2379 * common.opt (ffat-lto-objects): Disable by default.
2380 * doc/invoke.texi (fat-lto-objects): Update documentation.
2381 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2382
2383 2013-11-19 Martin Jambor <mjambor@suse.cz>
2384
2385 PR rtl-optimization/59099
2386 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2387 here.
2388 (ira): Move init_reg_equiv and call to
2389 split_live_ranges_for_shrink_wrap up, remove analyses around call
2390 to find_moveable_pseudos.
2391
2392 2013-11-20 Alan Modra <amodra@gmail.com>
2393
2394 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2395 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2396 to strict alignment on older processors when little-endian.
2397 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2398 for ELFv2.
2399
2400 2013-11-19 Teresa Johnson <tejohnson@google.com>
2401
2402 * common/config/i386/i386-common.c: Enable
2403 -freorder-blocks-and-partition at -O2 and up for x86.
2404 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2405 * opts.c (finish_options): Only warn if
2406 -freorder-blocks-and-partition was set on command line.
2407
2408 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2409
2410 * final.c (final_scan_insn): Emit a label for the split
2411 cold function part. Label name is formed by suffixing
2412 the original function name with "cold".
2413
2414 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2415
2416 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2417 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2418 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2419 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2420 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2421 cfun be explicit.
2422 (EXIT_BLOCK_PTR): Likewise.
2423 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2424 (FOR_ALL_BB_FN): Update for renaming of
2425 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2426
2427 * cfg.c (init_flow): Likewise.
2428 (check_bb_profile): Likewise.
2429 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2430 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2431 * cfghooks.c (account_profile_record): Likewise.
2432 * cfgloop.c (init_loops_structure): Likewise.
2433 * cgraphbuild.c (record_eh_tables): Likewise.
2434 (compute_call_stmt_bb_frequency): Likewise.
2435 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2436 * lto-streamer-in.c (input_cfg): Likewise.
2437 * predict.c (maybe_hot_frequency_p): Likewise.
2438 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2439 * tree-inline.c (initialize_cfun): Likewise.
2440 (copy_cfg_body): Likewise.
2441 (copy_body): Likewise.
2442 (tree_function_versioning): Likewise.
2443
2444 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2445 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2446 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2447 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2448 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2449 (connect_traces): Likewise.
2450 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2451 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2452 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2453 macro.
2454 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2455 EXIT_BLOCK_PTR.
2456 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2457 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2458 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2459 (rotate_loop): Likewise.
2460 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2461 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2462 EXIT_BLOCK_PTR.
2463 (alloc_aux_for_edges): Likewise.
2464 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2465 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2466 EXIT_BLOCK_PTR.
2467 (compact_blocks): Likewise.
2468 (clear_edges): Likewise.
2469 * cfganal.c (single_pred_before_succ_order): Remove usage of
2470 ENTRY_BLOCK_PTR macro.
2471 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2472 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2473 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2474 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2475 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2476 EXIT_BLOCK_PTR.
2477 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2478 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2479 EXIT_BLOCK_PTR.
2480 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2481 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2482 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2483 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2484 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2485 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2486 EXIT_BLOCK_PTR.
2487 (print_edge_list): Likewise.
2488 (create_edge_list): Likewise.
2489 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2490 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2491 EXIT_BLOCK_PTR.
2492 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2493 macro.
2494 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2495 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2496 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2497 (try_optimize_cfg): Likewise.
2498 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2499 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2500 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2501 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2502 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2503 (try_forward_edges): Likewise.
2504 (try_simplify_condjump): Likewise.
2505 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2506 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2507 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2508 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2509 EXIT_BLOCK_PTR.
2510 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2511 (expand_gimple_tailcall): Likewise.
2512 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2513 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2514 (tidy_fallthru_edges): Likewise.
2515 (verify_flow_info): Likewise.
2516 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2517 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2518 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2519 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2520 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2521 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2522 (get_loop_body_in_dom_order): Likewise.
2523 (get_loop_body): Likewise.
2524 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2525 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2526 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2527 macro.
2528 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2529 (fix_bb_placement): Likewise.
2530 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2531 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2532 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2533 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2534 EXIT_BLOCK_PTR.
2535 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2536 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2537 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2538 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2539 macro.
2540 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2541 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2542 (fixup_reorder_chain): Likewise.
2543 (relink_block_chain): Likewise.
2544 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2545 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2546 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2547 (force_one_exit_fallthru): Likewise.
2548 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2549 EXIT_BLOCK_PTR.
2550 (rtl_verify_edges): Likewise.
2551 (commit_edge_insertions): Likewise.
2552 (commit_one_edge_insertion): Likewise.
2553 (rtl_split_edge): Likewise.
2554 (force_nonfallthru_and_redirect): Likewise.
2555 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2556 (skip_insns_after_block): Likewise.
2557 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2558 EXIT_BLOCK_PTR.
2559 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2560 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2561 EXIT_BLOCK_PTR.
2562 (contains_no_active_insn_p): Likewise.
2563 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2564 (entry_of_function): Likewise.
2565 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2566 (fixup_new_cold_bb): Likewise.
2567 (patch_jump_insn): Likewise.
2568 (try_redirect_by_replacing_jump): Likewise.
2569 (block_label): Likewise.
2570 (could_fall_through): Likewise.
2571 (can_fallthru): Likewise.
2572 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2573 ENTRY_BLOCK_PTR macro.
2574 (rebuild_cgraph_edges): Likewise.
2575 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2576 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2577 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2578 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2579 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2580 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2581 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2582 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2583 macro.
2584 (reg_nonzero_bits_for_combine): Likewise.
2585 (set_nonzero_bits_and_sign_copies): Likewise.
2586 (combine_instructions): Likewise.
2587 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2588 EXIT_BLOCK_PTR.
2589 (bypass_conditional_jumps): Likewise.
2590 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2591 (find_implicit_sets): Likewise.
2592 (cprop_jump): Likewise.
2593 * cse.c (cse_cc_succs): Likewise.
2594 (cse_find_path): Likewise.
2595 * df-problems.c (df_lr_confluence_0): Likewise.
2596 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2597 ENTRY_BLOCK_PTR macro.
2598 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2599 * dominance.c (iterate_fix_dominators): Remove usage of
2600 ENTRY_BLOCK_PTR macro.
2601 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2602 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2603 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2604 EXIT_BLOCK_PTR.
2605 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2606 macro.
2607 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2608 EXIT_BLOCK_PTR.
2609 * domwalk.c (cmp_bb_postorder): Likewise.
2610 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2611 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2612 macro.
2613 (sjlj_emit_function_enter): Likewise.
2614 * final.c (compute_alignments): Likewise.
2615 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2616 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2617 (reposition_prologue_and_epilogue_notes): Remove usage of
2618 EXIT_BLOCK_PTR macro.
2619 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2620 EXIT_BLOCK_PTR.
2621 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2622 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2623 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2624 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2625 (compute_code_hoist_vbeinout): Likewise.
2626 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2627 (pre_expr_reaches_here_p_work): Likewise.
2628 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2629 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2630 EXIT_BLOCK_PTR.
2631 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2632 ENTRY_BLOCK_PTR macro.
2633 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2634 macro.
2635 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2636 ENTRY_BLOCK_PTR macro.
2637 * graphite-scop-detection.c (build_scops): Likewise.
2638 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2639 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2640 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2641 macro.
2642 (unlink_bb_notes): Likewise.
2643 (create_check_block_twin): Likewise.
2644 (init_before_recovery): Likewise.
2645 (sched_extend_bb): Likewise.
2646 (priority): Likewise.
2647 * hw-doloop.c (reorder_loops): Likewise.
2648 (discover_loop): Likewise.
2649 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2650 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2651 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2652 (block_has_only_trap): Likewise.
2653 (cond_exec_find_if_block): Likewise.
2654 (merge_if_block): Likewise.
2655 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2656 ENTRY_BLOCK_PTR macro.
2657 (record_modified): Likewise.
2658 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2659 EXIT_BLOCK_PTR macro.
2660 (local_pure_const): Likewise.
2661 * ipa-split.c (split_function): Remove uses of macros:
2662 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2663 (find_split_points): Likewise.
2664 (consider_split): Likewise.
2665 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2666 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2667 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2668 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2669 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2670 ENTRY_BLOCK_PTR macro.
2671 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2672 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2673 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2674 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2675 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2676 macro.
2677 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2678 EXIT_BLOCK_PTR.
2679 (compute_farthest): Likewise.
2680 (compute_available): Likewise.
2681 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2682 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2683 EXIT_BLOCK_PTR.
2684 (compute_earliest): Likewise.
2685 (compute_antinout_edge): Likewise.
2686 * loop-iv.c (simplify_using_initial_values): Remove usage of
2687 ENTRY_BLOCK_PTR macro.
2688 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2689 macro.
2690 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2691 macro.
2692 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2693 macro.
2694 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2695 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2696 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2697 macro.
2698 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2699 macro.
2700 * lto-streamer-out.c (output_cfg): Likewise.
2701 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2702 EXIT_BLOCK_PTR.
2703 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2704 * mode-switching.c (optimize_mode_switching): Likewise.
2705 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2706 * modulo-sched.c (rest_of_handle_sms): Likewise.
2707 (canon_loop): Likewise.
2708 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2709 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2710 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2711 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2712 macro.
2713 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2714 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2715 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2716 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2717 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2718 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2719 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2720 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2721 (gimple_predict_edge): Likewise.
2722 (probably_never_executed): Likewise.
2723 * profile.c (find_spanning_tree): Remove uses of macros:
2724 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2725 (branch_prob): Likewise.
2726 (compute_branch_probabilities): Likewise.
2727 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2728 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2729 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2730 (set_bb_counts): Likewise.
2731 (correct_negative_edge_counts): Likewise.
2732 (get_exec_counts): Likewise.
2733 (instrument_values): Likewise.
2734 (instrument_edges): Likewise.
2735 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2736 EXIT_BLOCK_PTR.
2737 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2738 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2739 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2740 (reg_to_stack): Likewise.
2741 * regs.h (REG_N_SETS): Likewise.
2742 * reload.c (find_dummy_reload): Likewise.
2743 (combine_reloads): Likewise.
2744 (push_reload): Likewise.
2745 * reload1.c (has_nonexceptional_receiver): Remove usage of
2746 EXIT_BLOCK_PTR macro.
2747 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2748 macro.
2749 (find_basic_block): Likewise.
2750 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2751 (schedule_ebbs): Likewise.
2752 * sched-int.h (sel_sched_p): Likewise.
2753 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2754 macro.
2755 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2756 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2757 EXIT_BLOCK_PTR.
2758 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2759 (extend_rgns): Likewise.
2760 (find_single_block_region): Likewise.
2761 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2762 ENTRY_BLOCK_PTR macro.
2763 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2764 (sel_create_recovery_block): Likewise.
2765 (bb_ends_ebb_p): Likewise.
2766 (sel_bb_end): Likewise.
2767 (sel_bb_head): Likewise.
2768 (free_lv_sets): Likewise.
2769 (init_lv_sets): Likewise.
2770 (tidy_control_flow): Likewise.
2771 (maybe_tidy_empty_bb): Likewise.
2772 * sel-sched-ir.h (_succ_iter_cond): Likewise.
2773 (_succ_iter_start): Likewise.
2774 (sel_bb_empty_or_nop_p): Likewise.
2775 (get_loop_exit_edges_unique_dests): Likewise.
2776 (inner_loop_header_p): Likewise.
2777 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2778 (find_block_for_bookkeeping): Likewise.
2779 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2780 (insert_store): Likewise.
2781 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2782 ENTRY_BLOCK_PTR macro.
2783 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2784 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2785 (gate_tm_init): Likewise.
2786 (tm_region_init): Likewise.
2787 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2788 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2789 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2790 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2791 EXIT_BLOCK_PTR.
2792 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2793 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2794 EXIT_BLOCK_PTR.
2795 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2796 macro.
2797 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2798 EXIT_BLOCK_PTR.
2799 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2800 macro.
2801 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2802 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2803 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2804 (build_gimple_cfg): Likewise.
2805 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2806 (gimple_can_merge_blocks_p): Likewise.
2807 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2808 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2809 * tree-complex.c (update_parameter_components): Remove usage of
2810 ENTRY_BLOCK_PTR macro.
2811 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2812 EXIT_BLOCK_PTR macro.
2813 * tree-inline.c (tree_function_versioning): Remove uses of macros:
2814 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2815 (delete_unreachable_blocks_update_callgraph): Likewise.
2816 (initialize_cfun): Likewise.
2817 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2818 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2819 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2820 * tree-into-ssa.c (update_ssa): Likewise.
2821 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2822 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2823 (rewrite_into_ssa): Likewise.
2824 (rewrite_debug_stmt_uses): Likewise.
2825 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2826 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2827 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2828 ENTRY_BLOCK_PTR macro.
2829 * tree-scalar-evolution.h (block_before_loop): Likewise.
2830 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2831 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2832 EXIT_BLOCK_PTR.
2833 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2834 macro.
2835 (propagate_dereference_distances): Remove uses of macros:
2836 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2837 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2838 macro.
2839 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2840 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2841 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2842 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2843 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2844 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2845 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2846 (mark_control_dependent_edges_necessary): Remove uses of macros:
2847 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2848 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2849 ENTRY_BLOCK_PTR macro.
2850 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2851 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2852 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2853 (calculate_live_on_exit): Likewise.
2854 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2855 (loe_visit_block): Likewise.
2856 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2857 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2858 (live_on_entry): Likewise.
2859 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2860 EXIT_BLOCK_PTR macro.
2861 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2862 ENTRY_BLOCK_PTR macro.
2863 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2864 (bound_difference): Likewise.
2865 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2866 of EXIT_BLOCK_PTR macro.
2867 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2868 of ENTRY_BLOCK_PTR macro.
2869 * tree-ssa-math-opts.c (register_division_in): Likewise.
2870 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2871 * tree-ssa-pre.c (compute_avail): Likewise.
2872 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2873 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2874 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2875 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2876 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2877 EXIT_BLOCK_PTR.
2878 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2879 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2880 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2881 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2882 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2883 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2884 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2885 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2886 (find_pdom): Likewise.
2887 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2888 * tree-stdarg.c (reachable_at_most_once): Likewise.
2889 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2890 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2891 (eliminate_tail_call): Likewise.
2892 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2893 macro.
2894 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2895 * var-tracking.c (vt_initialize): Remove uses of macros:
2896 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2897 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2898 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2899 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2900 EXIT_BLOCK_PTR.
2901 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2902 macro.
2903 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2904 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2905 of EXIT_BLOCK_PTR macro.
2906 * config/arm/arm.c (require_pic_register): Remove usage of
2907 ENTRY_BLOCK_PTR macro.
2908 (arm_r3_live_at_start_p): Likewise.
2909 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2910 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2911 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2912 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2913 ENTRY_BLOCK_PTR macro.
2914 * config/i386/i386.c (ix86_count_insn): Likewise.
2915 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2916 (ix86_pad_short_function): Likewise.
2917 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2918 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2919 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2920 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2921 (ix86_expand_epilogue): Likewise.
2922 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2923 (ia64_expand_prologue): Likewise.
2924
2925 2013-11-19 Catherine Moore <clm@codesourcery.com>
2926
2927 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2928 * config/mips/mips.opt (mfix-rm7000): New option.
2929 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2930 * config/mips/mips.c (mips_reorg_process_insns): Disable
2931 noreorder for TARGET_FIX_RM7000.
2932
2933 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
2934
2935 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2936
2937 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2938
2939 * config/arm/arm.c (arm_new_rtx_costs):
2940 Handle narrow mode add-shifts properly.
2941 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2942 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2943 Declare extern.
2944
2945 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2946
2947 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2948
2949 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2950
2951 * config/rs6000/vector.md ("mov<mode>"): Do not call
2952 rs6000_emit_le_vsx_move to move into or out of GPRs.
2953 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2954 source and destination are not GPR hard regs.
2955
2956 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2957
2958 * basic-block.h (n_edges_for_function): Rename macro to...
2959 (n_edges_for_fn): ...this.
2960 (n_edges): Eliminate macro as work towards making uses of
2961 cfun be explicit.
2962
2963 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2964 to "n_edges_for_fn".
2965
2966 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2967 (clear_edges): Likewise.
2968 (free_edge): Likewise.
2969 * cfghooks.c (dump_flow_info): Likewise.
2970 * cprop.c (is_too_expensive): Likewise.
2971 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2972 * gcse.c (is_too_expensive): Likewise.
2973 (prune_insertions_deletions): Likewise.
2974 * mcf.c (create_fixup_graph): Likewise.
2975 * sched-rgn.c (haifa_find_rgns): Likewise.
2976 * tree-cfg.c (gimple_dump_cfg): Likewise.
2977 * var-tracking.c (variable_tracking_main_1): Likewise.
2978
2979 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2980
2981 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2982 length lines.
2983
2984 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2985
2986 * config/aarch64/aarch64.md
2987 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2988
2989 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2990
2991 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2992
2993 2013-11-19 Joseph Myers <joseph@codesourcery.com>
2994
2995 * varasm.c (align_variable): Give error instead of warning for
2996 unsupported alignment.
2997 (assemble_noswitch_variable): Likewise.
2998
2999 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3000
3001 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3002 cb_file_change.
3003
3004 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3005
3006 * loop-doloop.c (doloop_optimize_loops): Remove unused
3007 loop iterator argument from FOR_EACH_LOOP.
3008
3009 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3010
3011 Convert gimple types from a union to C++ inheritance.
3012 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3013 * coretypes.h (union gimple_statement_d): Remove declaration.
3014 (gimple): Convert from being a "union gimple_statement_d *"
3015 to a "struct gimple_statement_base *".
3016 (const_gimple): Likewise (with "const").
3017 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3018 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3019 * gimple-pretty-print.c (debug): Change parameter from a
3020 "gimple_statement_d &" to a "gimple_statement_base &".
3021 (debug): Change parameter from a "gimple_statement_d *" to
3022 a "gimple_statement_base *".
3023 * gimple-pretty-print.h (debug): Update declarations as above.
3024 * gimple.c (gimple_alloc_stat): Update for renaming of
3025 ggc_alloc_cleared_gimple_statement_d_stat to
3026 ggc_alloc_cleared_gimple_statement_stat.
3027 * gimple.h: Include "is-a.h" for use by is_a_helper
3028 specializations in followup autogenerated patch.
3029 (struct gimple statement_base): Make this type usable as a base
3030 class by adding "desc", "tag" and "variable_size" to GTY, thus
3031 using opting-in to gengtype's support for simple inheritance.
3032 (gimple_statement_with_ops_base): Convert to a subclass of
3033 gimple_statement_base, dropping initial "gsbase" field. Note that
3034 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3035 (gimple_statement_with_ops): Convert to a subclass of
3036 gimple_statement_with_ops_base, dropping initial "opbase" field.
3037 Add tag value to GTY marking. Update marking of op field to
3038 reflect how num_ops field is accessed via inheritance.
3039 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3040 gimple_statement_with_ops_base, dropping initial "opbase" field.
3041 Add tag value to GTY marking.
3042 (gimple_statement_with_memory_ops): Convert to a subclass of
3043 public gimple_statement_with_memory_ops_base, dropping initial
3044 "membase" field. Add tag value to GTY marking. Update marking
3045 of op field to reflect how num_ops field is accessed via inheritance.
3046 (gimple_statement_call): Analogous changes that also update the
3047 marking of the "u" union.
3048 (gimple_statement_omp): Convert to a subclass of
3049 gimple_statement_base, dropping initial "gsbase" field, adding
3050 tag value to GTY marking.
3051 (gimple_statement_bind): Likewise.
3052 (gimple_statement_catch): Likewise.
3053 (gimple_statement_eh_filter): Likewise.
3054 (gimple_statement_eh_else): Likewise.
3055 (gimple_statement_eh_mnt): Likewise.
3056 (gimple_statement_phi): Likewise.
3057 (gimple_statement_eh_ctrl): Likewise.
3058 (gimple_statement_try): Likewise.
3059 (gimple_statement_wce): Likewise.
3060 (gimple_statement_asm): Convert to a subclass of
3061 gimple_statement_with_memory_ops_base, dropping initial
3062 "membase" field, adding tag value to GTY marking, and updating
3063 marking of op field.
3064 (gimple_statement_omp_critical): Convert to a subclass of
3065 gimple_statement_omp, dropping initial "omp" field, adding tag
3066 value to GTY marking.
3067 (gimple_statement_omp_for): Likewise.
3068 (gimple_statement_omp_parallel): Likewise.
3069 (gimple_statement_omp_task): Convert to a subclass of
3070 gimple_statement_omp_parallel, dropping initial "par" field,
3071 adding tag value to GTY marking.
3072 (gimple_statement_omp_sections): Convert to a subclass of
3073 gimple_statement_omp, dropping initial "omp" field, adding
3074 tag value to GTY marking.
3075 (gimple_statement_omp_continue): Convert to a subclass of
3076 gimple_statement_base, dropping initial "gsbase" field, adding
3077 tag value to GTY marking.
3078 (gimple_statement_omp_single): Convert to a subclass of
3079 gimple_statement_omp, dropping initial "omp" field, adding
3080 tag value to GTY marking.
3081 (gimple_statement_omp_atomic_load): Convert to a subclass of
3082 gimple_statement_base, dropping initial "gsbase" field, adding
3083 tag value to GTY marking.
3084 (gimple_statement_omp_atomic_store): Convert to a subclass of
3085 gimple_statement_base, dropping initial "gsbase" field, adding
3086 tag value to GTY marking.
3087 (gimple_statement_transaction): Convert to a subclass of
3088 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3089 field, adding tag value to GTY marking.
3090 (union gimple_statement_d): Remove.
3091 * system.h (CONST_CAST_GIMPLE): Update to use
3092 "struct gimple_statement_base *" rather than
3093 "union gimple_statement_d *".
3094 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3095 gimple_statement_d to gimple_statement_base.
3096
3097 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3098 (gimple_set_use_ops): Port from union to usage of as_a.
3099 (gimple_set_vuse): Likewise.
3100 (gimple_set_vdef): Likewise.
3101 (gimple_call_internal_fn): Port from union to a static_cast,
3102 given that the type has already been asserted.
3103 (gimple_omp_body_ptr): Port from unchecked union usage to
3104 a static_cast.
3105 (gimple_omp_set_body): Likewise.
3106
3107 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3108 gimple types to a true class hierarchy.
3109 (update_call_edge_frequencies): Likewise.
3110 (gsi_insert_seq_nodes_before): Likewise.
3111 (gsi_insert_seq_nodes_after): Likewise.
3112 (gsi_split_seq_after): Likewise.
3113 (gsi_set_stmt): Likewise.
3114 (gsi_split_seq_before): Likewise.
3115 (gsi_remove): Likewise.
3116 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3117 (gsi_next): Likewise.
3118 (gsi_prev): Likewise.
3119 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3120 * gimple-ssa.h (gimple_vuse_op): Likewise.
3121 (gimple_vdef_op): Likewise.
3122 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3123 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3124 * gimple.c (gimple_set_code): Likewise.
3125 (gimple_alloc_stat): Likewise.
3126 (gimple_set_subcode): Likewise.
3127 (gimple_build_call_internal_1): Likewise.
3128 (gimple_check_failed): Likewise.
3129 (gimple_call_flags): Likewise.
3130 (gimple_set_bb): Likewise.
3131 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3132 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3133 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3134 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3135 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3136 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3137 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3138 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3139 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3140 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3141 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3142 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3143 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3144 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3145 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3146 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3147 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3148 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3149 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3150 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3151 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3152 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3153 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3154 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3155 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3156 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3157 Likewise.
3158 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3159 Likewise.
3160 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3161 Likewise.
3162 (is_a_helper <const gimple_statement_omp_atomic_store>
3163 (const_gimple)): Likewise.
3164 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3165 Likewise.
3166 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3167 Likewise.
3168 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3169 Likewise.
3170 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3171 Likewise.
3172 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3173 Likewise.
3174 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3175 Likewise.
3176 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3177 Likewise.
3178 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3179 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3180 Likewise.
3181 (gimple_seq_last): Update for conversion of gimple types to a true
3182 class hierarchy.
3183 (gimple_seq_set_last): Likewise.
3184 (gimple_code): Likewise.
3185 (gimple_bb): Likewise.
3186 (gimple_block): Likewise.
3187 (gimple_set_block): Likewise.
3188 (gimple_location): Likewise.
3189 (gimple_location_ptr): Likewise.
3190 (gimple_set_location): Likewise.
3191 (gimple_no_warning_p): Likewise.
3192 (gimple_set_no_warning): Likewise.
3193 (gimple_set_visited): Likewise.
3194 (gimple_visited_p): Likewise.
3195 (gimple_set_plf): Likewise.
3196 (gimple_plf): Likewise.
3197 (gimple_set_uid): Likewise.
3198 (gimple_uid): Likewise.
3199 (gimple_init_singleton): Likewise.
3200 (gimple_modified_p): Likewise.
3201 (gimple_set_modified): Likewise.
3202 (gimple_expr_code): Likewise.
3203 (gimple_has_volatile_ops): Likewise.
3204 (gimple_set_has_volatile_ops): Likewise.
3205 (gimple_omp_subcode): Likewise.
3206 (gimple_omp_set_subcode): Likewise.
3207 (gimple_omp_return_set_nowait): Likewise.
3208 (gimple_omp_section_set_last): Likewise.
3209 (gimple_omp_parallel_set_combined_p): Likewise.
3210 (gimple_omp_atomic_set_need_value): Likewise.
3211 (gimple_omp_atomic_set_seq_cst): Likewise.
3212 (gimple_num_ops): Likewise.
3213 (gimple_set_num_ops): Likewise.
3214 (gimple_assign_nontemporal_move_p): Likewise.
3215 (gimple_assign_set_nontemporal_move): Likewise.
3216 (gimple_assign_rhs_code): Likewise.
3217 (gimple_assign_set_rhs_code): Likewise.
3218 (gimple_call_internal_p): Likewise.
3219 (gimple_call_with_bounds_p): Likewise.
3220 (gimple_call_set_with_bounds): Likewise.
3221 (gimple_call_set_tail): Likewise.
3222 (gimple_call_tail_p): Likewise.
3223 (gimple_call_set_return_slot_opt): Likewise.
3224 (gimple_call_return_slot_opt_p): Likewise.
3225 (gimple_call_set_from_thunk): Likewise.
3226 (gimple_call_from_thunk_p): Likewise.
3227 (gimple_call_set_va_arg_pack): Likewise.
3228 (gimple_call_va_arg_pack_p): Likewise.
3229 (gimple_call_set_nothrow): Likewise.
3230 (gimple_call_set_alloca_for_var): Likewise.
3231 (gimple_call_alloca_for_var_p): Likewise.
3232 (gimple_call_copy_flags): Likewise.
3233 (gimple_cond_code): Likewise.
3234 (gimple_cond_set_code): Likewise.
3235 (gimple_cond_make_false): Likewise.
3236 (gimple_cond_make_true): Likewise.
3237 (gimple_asm_volatile_p): Likewise.
3238 (gimple_asm_set_volatile): Likewise.
3239 (gimple_asm_set_input): Likewise.
3240 (gimple_asm_input_p): Likewise.
3241 (gimple_try_kind): Likewise.
3242 (gimple_try_set_kind): Likewise.
3243 (gimple_try_catch_is_cleanup): Likewise.
3244 (gimple_try_set_catch_is_cleanup): Likewise.
3245 (gimple_wce_cleanup_eh_only): Likewise.
3246 (gimple_wce_set_cleanup_eh_only): Likewise.
3247 (gimple_debug_bind_p): Likewise.
3248 (gimple_debug_source_bind_p): Likewise.
3249 (gimple_omp_for_set_kind): Likewise.
3250 (gimple_omp_for_set_combined_p): Likewise.
3251 (gimple_omp_for_set_combined_into_p): Likewise.
3252 (gimple_omp_target_set_kind): Likewise.
3253 (gimple_transaction_subcode): Likewise.
3254 (gimple_transaction_set_subcode): Likewise.
3255 (gimple_predict_predictor): Likewise.
3256 (gimple_predict_set_predictor): Likewise.
3257 (gimple_predict_outcome): Likewise.
3258 (gimple_predict_set_outcome): Likewise.
3259 (gimple_transaction_set_label): Likewise.
3260 (gimple_transaction_set_body): Likewise.
3261 (gimple_transaction_label_ptr): Likewise.
3262 (gimple_transaction_label): Likewise.
3263 (gimple_transaction_body_ptr): Likewise.
3264 (gimple_omp_continue_set_control_use): Likewise.
3265 (gimple_omp_continue_control_use_ptr): Likewise.
3266 (gimple_omp_continue_control_use): Likewise.
3267 (gimple_omp_continue_set_control_def): Likewise.
3268 (gimple_omp_continue_control_def_ptr): Likewise.
3269 (gimple_omp_continue_control_def): Likewise.
3270 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3271 (gimple_omp_atomic_load_rhs): Likewise.
3272 (gimple_omp_atomic_load_set_rhs): Likewise.
3273 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3274 (gimple_omp_atomic_load_lhs): Likewise.
3275 (gimple_omp_atomic_load_set_lhs): Likewise.
3276 (gimple_omp_atomic_store_val_ptr): Likewise.
3277 (gimple_omp_atomic_store_val): Likewise.
3278 (gimple_omp_atomic_store_set_val): Likewise.
3279 (gimple_omp_for_cond): Likewise.
3280 (gimple_omp_for_set_cond): Likewise.
3281 (gimple_omp_sections_set_control): Likewise.
3282 (gimple_omp_sections_control_ptr): Likewise.
3283 (gimple_omp_sections_control): Likewise.
3284 (gimple_omp_sections_set_clauses): Likewise.
3285 (gimple_omp_sections_clauses_ptr): Likewise.
3286 (gimple_omp_sections_clauses): Likewise.
3287 (gimple_omp_teams_set_clauses): Likewise.
3288 (gimple_omp_teams_clauses_ptr): Likewise.
3289 (gimple_omp_teams_clauses): Likewise.
3290 (gimple_omp_target_set_data_arg): Likewise.
3291 (gimple_omp_target_data_arg_ptr): Likewise.
3292 (gimple_omp_target_data_arg): Likewise.
3293 (gimple_omp_target_set_child_fn): Likewise.
3294 (gimple_omp_target_child_fn_ptr): Likewise.
3295 (gimple_omp_target_child_fn): Likewise.
3296 (gimple_omp_target_set_clauses): Likewise.
3297 (gimple_omp_target_clauses_ptr): Likewise.
3298 (gimple_omp_target_clauses): Likewise.
3299 (gimple_omp_single_set_clauses): Likewise.
3300 (gimple_omp_single_clauses_ptr): Likewise.
3301 (gimple_omp_single_clauses): Likewise.
3302 (gimple_omp_task_set_arg_align): Likewise.
3303 (gimple_omp_task_arg_align_ptr): Likewise.
3304 (gimple_omp_task_arg_align): Likewise.
3305 (gimple_omp_task_set_arg_size): Likewise.
3306 (gimple_omp_task_arg_size_ptr): Likewise.
3307 (gimple_omp_task_arg_size): Likewise.
3308 (gimple_omp_task_set_copy_fn): Likewise.
3309 (gimple_omp_task_copy_fn_ptr): Likewise.
3310 (gimple_omp_task_copy_fn): Likewise.
3311 (gimple_omp_task_set_data_arg): Likewise.
3312 (gimple_omp_task_data_arg_ptr): Likewise.
3313 (gimple_omp_task_data_arg): Likewise.
3314 (gimple_omp_task_set_child_fn): Likewise.
3315 (gimple_omp_task_child_fn_ptr): Likewise.
3316 (gimple_omp_task_child_fn): Likewise.
3317 (gimple_omp_task_set_clauses): Likewise.
3318 (gimple_omp_task_clauses_ptr): Likewise.
3319 (gimple_omp_task_clauses): Likewise.
3320 (gimple_omp_parallel_set_data_arg): Likewise.
3321 (gimple_omp_parallel_data_arg_ptr): Likewise.
3322 (gimple_omp_parallel_data_arg): Likewise.
3323 (gimple_omp_parallel_set_child_fn): Likewise.
3324 (gimple_omp_parallel_child_fn_ptr): Likewise.
3325 (gimple_omp_parallel_child_fn): Likewise.
3326 (gimple_omp_parallel_set_clauses): Likewise.
3327 (gimple_omp_parallel_clauses_ptr): Likewise.
3328 (gimple_omp_parallel_clauses): Likewise.
3329 (gimple_omp_for_set_pre_body): Likewise.
3330 (gimple_omp_for_pre_body_ptr): Likewise.
3331 (gimple_omp_for_set_incr): Likewise.
3332 (gimple_omp_for_incr_ptr): Likewise.
3333 (gimple_omp_for_incr): Likewise.
3334 (gimple_omp_for_set_final): Likewise.
3335 (gimple_omp_for_final_ptr): Likewise.
3336 (gimple_omp_for_final): Likewise.
3337 (gimple_omp_for_set_initial): Likewise.
3338 (gimple_omp_for_initial_ptr): Likewise.
3339 (gimple_omp_for_initial): Likewise.
3340 (gimple_omp_for_set_index): Likewise.
3341 (gimple_omp_for_index_ptr): Likewise.
3342 (gimple_omp_for_index): Likewise.
3343 (gimple_omp_for_collapse): Likewise.
3344 (gimple_omp_for_set_clauses): Likewise.
3345 (gimple_omp_for_clauses_ptr): Likewise.
3346 (gimple_omp_for_clauses): Likewise.
3347 (gimple_omp_critical_set_name): Likewise.
3348 (gimple_omp_critical_name_ptr): Likewise.
3349 (gimple_omp_critical_name): Likewise.
3350 (gimple_eh_dispatch_set_region): Likewise.
3351 (gimple_eh_dispatch_region): Likewise.
3352 (gimple_resx_set_region): Likewise.
3353 (gimple_resx_region): Likewise.
3354 (gimple_phi_set_arg): Likewise.
3355 (gimple_phi_arg): Likewise.
3356 (gimple_phi_set_result): Likewise.
3357 (gimple_phi_result_ptr): Likewise.
3358 (gimple_phi_result): Likewise.
3359 (gimple_phi_num_args): Likewise.
3360 (gimple_phi_capacity): Likewise.
3361 (gimple_wce_set_cleanup): Likewise.
3362 (gimple_wce_cleanup_ptr): Likewise.
3363 (gimple_try_set_cleanup): Likewise.
3364 (gimple_try_set_eval): Likewise.
3365 (gimple_try_cleanup_ptr): Likewise.
3366 (gimple_try_eval_ptr): Likewise.
3367 (gimple_eh_else_set_e_body): Likewise.
3368 (gimple_eh_else_set_n_body): Likewise.
3369 (gimple_eh_else_e_body_ptr): Likewise.
3370 (gimple_eh_else_n_body_ptr): Likewise.
3371 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3372 (gimple_eh_must_not_throw_fndecl): Likewise.
3373 (gimple_eh_filter_set_failure): Likewise.
3374 (gimple_eh_filter_set_types): Likewise.
3375 (gimple_eh_filter_failure_ptr): Likewise.
3376 (gimple_eh_filter_types_ptr): Likewise.
3377 (gimple_eh_filter_types): Likewise.
3378 (gimple_catch_set_handler): Likewise.
3379 (gimple_catch_set_types): Likewise.
3380 (gimple_catch_handler_ptr): Likewise.
3381 (gimple_catch_types_ptr): Likewise.
3382 (gimple_catch_types): Likewise.
3383 (gimple_asm_string): Likewise.
3384 (gimple_asm_set_label_op): Likewise.
3385 (gimple_asm_label_op): Likewise.
3386 (gimple_asm_set_clobber_op): Likewise.
3387 (gimple_asm_clobber_op): Likewise.
3388 (gimple_asm_set_output_op): Likewise.
3389 (gimple_asm_output_op_ptr): Likewise.
3390 (gimple_asm_output_op): Likewise.
3391 (gimple_asm_set_input_op): Likewise.
3392 (gimple_asm_input_op_ptr): Likewise.
3393 (gimple_asm_input_op): Likewise.
3394 (gimple_asm_nlabels): Likewise.
3395 (gimple_asm_nclobbers): Likewise.
3396 (gimple_asm_noutputs): Likewise.
3397 (gimple_asm_ninputs): Likewise.
3398 (gimple_bind_set_block): Likewise.
3399 (gimple_bind_block): Likewise.
3400 (gimple_bind_add_seq): Likewise.
3401 (gimple_bind_add_stmt): Likewise.
3402 (gimple_bind_set_body): Likewise.
3403 (gimple_bind_body_ptr): Likewise.
3404 (gimple_bind_append_vars): Likewise.
3405 (gimple_bind_set_vars): Likewise.
3406 (gimple_bind_vars): Likewise.
3407 (gimple_call_clobber_set): Likewise.
3408 (gimple_call_use_set): Likewise.
3409 (gimple_call_set_internal_fn): Likewise.
3410 (gimple_call_set_fntype): Likewise.
3411 (gimple_call_fntype): Likewise.
3412 (gimple_omp_return_lhs_ptr): Likewise.
3413 (gimple_omp_return_lhs): Likewise.
3414 (gimple_omp_return_set_lhs): Likewise.
3415 (gimple_omp_taskreg_set_data_arg): Likewise.
3416 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3417 (gimple_omp_taskreg_data_arg): Likewise.
3418 (gimple_omp_taskreg_set_child_fn): Likewise.
3419 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3420 (gimple_omp_taskreg_child_fn): Likewise.
3421 (gimple_omp_taskreg_set_clauses): Likewise.
3422 (gimple_omp_taskreg_clauses_ptr): Likewise.
3423 (gimple_omp_taskreg_clauses): Likewise.
3424 (gimple_vuse): Likewise.
3425 (gimple_vdef): Likewise.
3426 (gimple_vuse_ptr): Likewise.
3427 (gimple_vdef_ptr): Likewise.
3428 * tree-inline.c (copy_debug_stmt): Likewise.
3429 * tree-phinodes.c (make_phi_node): Likewise.
3430
3431 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3432 (is_a_helper <gimple_statement_with_ops>::test): New.
3433 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3434 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3435
3436 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3437 access to use of as_a.
3438 * gimple.c (gimple_build_asm_1): Likewise.
3439 (gimple_build_try): Likewise. Also, return a specific subclass
3440 rather than just gimple.
3441 (gimple_build_resx): Port from union access to use of as_a.
3442 (gimple_build_eh_dispatch): Likewise.
3443 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3444 now that gengtype no longer provides a typed allocator function.
3445 (gimple_copy): Likewise.
3446 * gimple.h (gimple_build_try): Return a specific subclass rather
3447 than just gimple.
3448 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3449 with subclass access by making use of new return type of
3450 gimple_build_try.
3451 * tree-phinodes.c: (allocate_phi_node): Return a
3452 "gimple_statement_phi *" rather than just a gimple.
3453 (resize_phi_node): Likewise.
3454 (make_phi_node): Replace union access with subclass access by
3455 making use of new return type of allocate_phi_node.
3456 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3457 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3458 than just a gimple.
3459 (remove_phi_args): Update for change to remove_phi_arg_num.
3460
3461 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3462 code field to reflect inheritance, rather than embedding of
3463 the base gimple type.
3464
3465 2013-11-19 Richard Biener <rguenther@suse.de>
3466
3467 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3468 and destructor and make fel_next a member function.
3469 (fel_next): Transform into ...
3470 (loop_iterator::next): ... this.
3471 (fel_init): Transform into ...
3472 (loop_iterator::loop_iterator): ... this.
3473 (loop_iterator::~loop_iterator): New.
3474 (FOR_EACH_LOOP): Remove loop-iterator argument.
3475 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3476 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3477 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3478 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3479 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3480 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3481 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3482 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3483 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3484 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3485 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3486 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3487 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3488 FOR_EACH_LOOP_BREAK with break.
3489
3490 2013-11-19 Richard Biener <rguenther@suse.de>
3491
3492 PR tree-optimization/59164
3493 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3494 Uncomment assert.
3495 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3496 whether we can create an epilogue loop to reflect thecases where
3497 we create one.
3498
3499 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3500
3501 * graphite-sese-to-poly.c: Include expr.h.
3502
3503 2013-11-19 Richard Biener <rguenther@suse.de>
3504
3505 PR middle-end/58956
3506 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3507 loads into stmts that may clobber it.
3508
3509 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3510
3511 * cgraphunit.c (symtab_terminator): New variable.
3512 (queued_nodes): Renamed from first. Use symtab_terminator as
3513 initializer.
3514 (analyze_functions): Adjust accordingly.
3515 (cgraph_process_new_functions): Return void.
3516 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3517
3518 2013-11-19 Marek Polacek <polacek@redhat.com>
3519
3520 * opts.c (common_handle_option): Add -fsanitize=null option.
3521 Turn off -fdelete-null-pointer-checks option when doing the
3522 NULL pointer checking.
3523 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3524 * tree-pass.h (make_pass_ubsan): Declare.
3525 (make_pass_sanopt): Declare.
3526 * timevar.def (TV_TREE_UBSAN): New timevar.
3527 * passes.def: Add pass_sanopt and pass_ubsan.
3528 * ubsan.h (ubsan_null_ckind): New enum.
3529 (ubsan_mismatch_data): New struct.
3530 (ubsan_expand_null_ifn): Declare.
3531 (ubsan_create_data): Adjust declaration.
3532 (ubsan_type_descriptor): Likewise.
3533 * asan.c: Include "ubsan.h".
3534 (pass_data_sanopt): New pass.
3535 (execute_sanopt): New function.
3536 (gate_sanopt): Likewise.
3537 (make_pass_sanopt): Likewise.
3538 (class pass_sanopt): New class.
3539 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3540 gimple-iterator.h and cfgloop.h.
3541 (PROB_VERY_UNLIKELY): Define.
3542 (tree_type_map_hash): New function.
3543 (ubsan_type_descriptor): Add new parameter.
3544 Improve type name generation.
3545 (ubsan_create_data): Add new parameter. Add pointer data into
3546 ubsan structure.
3547 (ubsan_expand_null_ifn): New function.
3548 (instrument_member_call): Likewise.
3549 (instrument_mem_ref): Likewise.
3550 (instrument_null): Likewise.
3551 (ubsan_pass): Likewise.
3552 (gate_ubsan): Likewise.
3553 (make_pass_ubsan): Likewise.
3554 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3555 (class pass_ubsan): New class.
3556 (pass_data_ubsan): New pass.
3557 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3558 * internal-fn.c (expand_UBSAN_NULL): New function.
3559 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3560 even when !flag_toplevel_reorder.
3561 * internal-fn.def (UBSAN_NULL): New.
3562
3563 2013-11-19 Jan Hubicka <jh@suse.cz>
3564
3565 * cgraph.c (cgraph_create_indirect_edge): Use
3566 get_polymorphic_call_info.
3567 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3568 maybe_in_construction and maybe_derived_type.
3569 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3570 (ipa_dummy_polymorphic_call_context): New global var.
3571 (possible_polymorphic_call_targets): Add context paramter.
3572 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3573 (possible_polymorphic_call_target_p): Likewise.
3574 (get_polymorphic_call_info): New function.
3575 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3576 (add_type_duplicate): Remove forgotten debug output.
3577 (method_class_type): Add sanity check.
3578 (maybe_record_node): Add FINALP parameter.
3579 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3580 by info by get_binfo_at_offset.
3581 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3582 parameters; pass them to record-binfo.
3583 (polymorphic_call_target_d): Add context and FINAL.
3584 (polymorphic_call_target_hasher::hash): Hash context.
3585 (polymorphic_call_target_hasher::equal): Compare context.
3586 (free_polymorphic_call_targets_hash):
3587 (get_class_context): New function.
3588 (contains_type_p): New function.
3589 (get_polymorphic_call_info): New function.
3590 (walk_bases): New function.
3591 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3592 (dump_possible_polymorphic_call_targets): Dump context.
3593 (possible_polymorphic_call_target_p): Add context.
3594 (update_type_inheritance_graph): Update comment.s
3595 (ipa_set_jf_known_type): Assert that compoentn type is known.
3596 (ipa_note_param_call): Do not tamper with offsets.
3597 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3598 outer type.
3599 (update_indirect_edges_after_inlining): Likewise.
3600 (ipa_write_indirect_edge_info): Stream new fields.
3601 (ipa_read_indirect_edge_info): Stream in new fields.
3602
3603 2013-11-19 Jan Hubicka <jh@suse.cz>
3604
3605 * tree-pretty-print.c (dump_generic_node): Print class type of
3606 OBJ_TYPE_REF.
3607
3608 2013-11-19 Joey Ye <joey.ye@arm.com>
3609
3610 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3611 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3612 for new option.
3613 * config/arm/arm.c (arm_option_override): By default disable
3614 -marm-pic-data-is-text-relative.
3615 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3616 (arm_assemble_integer): Likewise.
3617 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3618 New macro to initialize -marm-pic-data-is-text-relative.
3619
3620 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3621
3622 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3623 (address_cost_data): New field.
3624 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3625 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3626
3627 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3628
3629 * config/aarch64/aarch64.md: Remove v8type from all insns.
3630
3631 2013-11-19 Richard Biener <rguenther@suse.de>
3632
3633 PR tree-optimization/57517
3634 * tree-predcom.c (combinable_refs_p): Verify the combination
3635 is always executed when the refs are.
3636
3637 2013-11-19 Jeff Law <law@redhat.com>
3638
3639 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3640 (copy_phi_arg_into_existing_phi): New function.
3641 (any_remaining_duplicated_blocks): Likewise.
3642 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3643 blocks on a jump threading path.
3644
3645 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3646 thread through a joiner which has the latch edge.
3647
3648 2013-11-19 Jan Hubicka <jh@suse.cz>
3649
3650 * md.texi (setmem): Document new parameter.
3651 * optabs.c (maybe_gen_insn): Support 9 operands.
3652 * builtins.c (determine_block_size): Add probable_max_size;
3653 support anti-ranges.
3654 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3655 probable_max_size.
3656 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3657 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3658 Likewise.
3659 * expr.h (emit_block_move_hints, clear_storage_hints,
3660 set_storage_via_setmem): Update prototype.
3661 * i386.md (setmem, movmem patterns): Add 9th operand.
3662 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3663 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3664 argument; pass it to decide_alg.
3665
3666 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3667
3668 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3669 (n_basic_blocks_for_fn): ...this.
3670
3671 (n_basic_blocks): Eliminate macro as work towards making uses of
3672 cfun be explicit.
3673
3674 * cfgloop.c (init_loops_structure): Update for renaming of
3675 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3676 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3677 * ipa-utils.c (ipa_merge_profiles): Likewise.
3678 * lto-streamer-in.c (make_new_block): Likewise.
3679 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3680 (dump_function_to_file): Likewise.
3681
3682 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3683 macro with "n_basic_blocks_for_fn (cfun)".
3684 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3685 (duplicate_computed_gotos): Likewise.
3686 (reorder_basic_blocks): Likewise.
3687 * bt-load.c (augment_live_range): Likewise.
3688 * cfg.c (expunge_block): Likewise.
3689 (compact_blocks): Likewise.
3690 * cfganal.c (single_pred_before_succ_order): Likewise.
3691 (compute_idf): Likewise.
3692 (flow_dfs_compute_reverse_init): Likewise.
3693 (pre_and_rev_post_order_compute): Likewise.
3694 (pre_and_rev_post_order_compute_fn): Likewise.
3695 (inverted_post_order_compute): Likewise.
3696 (post_order_compute): Likewise.
3697 (print_edge_list): Likewise.
3698 (find_unreachable_blocks): Likewise.
3699 (mark_dfs_back_edges): Likewise.
3700 * cfgcleanup.c (try_optimize_cfg): Likewise.
3701 (try_forward_edges): Likewise.
3702 * cfghooks.c (dump_flow_info): Likewise.
3703 * cfgloop.c (verify_loop_structure): Likewise.
3704 (get_loop_body): Likewise.
3705 (flow_loops_find): Likewise.
3706 * cfgloopmanip.c (add_loop): Likewise.
3707 (remove_path): Likewise.
3708 (find_path): Likewise.
3709 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3710 (rtl_verify_bb_layout): Likewise.
3711 (entry_of_function): Likewise.
3712 (rtl_create_basic_block): Likewise.
3713 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3714 * cprop.c (one_cprop_pass): Likewise.
3715 (is_too_expensive): Likewise.
3716 * df-core.c (df_compute_cfg_image): Likewise.
3717 (df_compact_blocks): Likewise.
3718 (df_worklist_dataflow_doublequeue): Likewise.
3719 * dominance.c (calculate_dominance_info): Likewise.
3720 (calc_dfs_tree): Likewise.
3721 (calc_dfs_tree_nonrec): Likewise.
3722 (init_dom_info): Likewise.
3723 * domwalk.c (cmp_bb_postorder): Likewise.
3724 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3725 (generate_setjmp_warnings): Likewise.
3726 * fwprop.c (build_single_def_use_links): Likewise.
3727 * gcse.c (is_too_expensive): Likewise.
3728 (one_code_hoisting_pass): Likewise.
3729 (one_pre_gcse_pass): Likewise.
3730 * graphite.c (graphite_initialize): Likewise.
3731 * haifa-sched.c (haifa_sched_init): Likewise.
3732 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3733 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3734 * ira-build.c (ira_build): Likewise.
3735 * lcm.c (compute_nearerout): Likewise.
3736 (compute_available): Likewise.
3737 (compute_laterin): Likewise.
3738 (compute_antinout_edge): Likewise.
3739 * lra-lives.c (lra_create_live_ranges): Likewise.
3740 * lra.c (has_nonexceptional_receiver): Likewise.
3741 * mcf.c (create_fixup_graph): Likewise.
3742 * profile.c (branch_prob): Likewise.
3743 * reg-stack.c (convert_regs_2): Likewise.
3744 * regrename.c (regrename_analyze): Likewise.
3745 * reload1.c (has_nonexceptional_receiver): Likewise.
3746 * reorg.c (dbr_schedule): Likewise.
3747 * sched-deps.c (sched_deps_init): Likewise.
3748 * sched-ebb.c (schedule_ebbs): Likewise.
3749 * sched-rgn.c (extend_regions): Likewise.
3750 (schedule_insns): Likewise.
3751 (sched_rgn_init): Likewise.
3752 (extend_rgns): Likewise.
3753 (haifa_find_rgns): Likewise.
3754 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3755 (sel_recompute_toporder): Likewise.
3756 * sel-sched.c (run_selective_scheduling): Likewise.
3757 * store-motion.c (one_store_motion_pass): Likewise.
3758 (remove_reachable_equiv_notes): Likewise.
3759 * tracer.c (tracer): Likewise.
3760 (tail_duplicate): Likewise.
3761 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3762 (dump_cfg_stats): Likewise.
3763 (gimple_dump_cfg): Likewise.
3764 (create_bb): Likewise.
3765 (build_gimple_cfg): Likewise.
3766 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3767 * tree-inline.c (optimize_inline_calls): Likewise.
3768 (fold_marked_statements): Likewise.
3769 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3770 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3771 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3772 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3773 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3774 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3775 * tree-ssa-pre.c (do_pre): Likewise.
3776 (init_pre): Likewise.
3777 (compute_avail): Likewise.
3778 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3779 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3780 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3781 (init_worklist): Likewise.
3782 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3783 * var-tracking.c (variable_tracking_main_1): Likewise.
3784 (vt_find_locations): Likewise.
3785 (vt_stack_adjustments): Likewise.
3786 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3787 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3788
3789 2013-11-18 Jan Hubicka <jh@suse.cz>
3790
3791 * profile.c (compute_branch_probabilities): Do not sanity check
3792 run_max.
3793
3794 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3795
3796 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3797 GET_MODE_PRECISION.
3798 * fold-const.c (fold_single_bit_test_into_sign_test)
3799 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3800
3801 2013-11-18 Teresa Johnson <tejohnson@google.com>
3802
3803 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3804 cfglayout after bb reordering.
3805 * passes.def: Move compgotos before bb reordering since it goes into
3806 cfglayout.
3807
3808 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
3809
3810 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3811 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3812 static.
3813 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3814 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3815 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3816 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3817 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3818 Remove all_lto_gen_passes.
3819 * passes.c (pass_manager::dump_passes): Remove its use.
3820 (pass_manager::register_pass): Likewise.
3821 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3822 (pass_manager::pass_manager): Don't initialize or use it.
3823 (write_lto): New static function.
3824 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3825 instead of using all_lto_gen_passes.
3826 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3827 pass_ipa_lto_finish_out): Delete.
3828 * tree-pass.h (make_pass_ipa_lto_gimple_out,
3829 make_pass_ipa_lto_finish_out): Don't declare.
3830
3831 2013-11-18 Jeff Law <law@redhat.com>
3832
3833 * tree-ssa-threadupdate.c (redirection_data): Record two
3834 duplicated blocks instead of just one.
3835 (local_info): Explain why we don't create a template for the
3836 second duplicated block in a thread path.
3837 (create_block_for_threading): Accept argument indicating array
3838 index into redirection_data to store its result.
3839 (lookup_redirection_data): Initialize both duplicate blocks.
3840 (ssa_create_duplicates): If a jump threading path needs multiple
3841 blocks duplicated, then duplicate them.
3842 (ssa_fix_duplicate_block_edges): Corresponding changes.
3843 (ssa_fixup_template_block, thread_single_edge): Likewise.
3844
3845 2013-11-18 Marek Polacek <polacek@redhat.com>
3846
3847 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3848
3849 2013-11-18 Andrew Pinski <apinski@cavium.com>
3850 Steve Ellcey <sellcey@mips.com>
3851
3852 PR target/56552
3853 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3854 type restriction from equality_operator on conditonal move.
3855 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3856 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3857
3858 2013-11-18 Jeff Law <law@redhat.com>
3859
3860 * tree-ssa-threadupdate.c: Fix file block comment.
3861 Fix minor indention issue.
3862
3863 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
3864
3865 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3866 ix86_address_subreg_operand. Move subreg checks to
3867 ix86_validate_address_register. Move address override check to
3868 ix86_legitimate_address_p.
3869 (ix86_validate_address_register): New function.
3870 (ix86_legitimate_address_p): Call ix86_validate_address_register
3871 to validate base and index registers. Add address override check
3872 from ix86_decompose_address.
3873 (ix86_decompose_address): Remove.
3874
3875 2013-11-18 Richard Biener <rguenther@suse.de>
3876
3877 PR tree-optimization/59125
3878 PR tree-optimization/54570
3879 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3880 is not complete do not treat component-references with offset zero
3881 but different fields as equal.
3882 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3883 (compute_object_sizes): Apply TLC. Propagate the constant
3884 results into all uses and fold their stmts.
3885 * passes.def (pass_all_optimizations): Move pass_object_sizes
3886 after the first pass_forwprop and before pass_fre.
3887
3888 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3889
3890 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3891 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3892 (tree_ctz): Remove cast to unsigned type.
3893 * builtins.c (fold_builtin_memory_op): Likewise.
3894 * dwarf2out.c (descr_info_loc): Likewise.
3895 * godump.c (go_output_typedef): Likewise.
3896 * omp-low.c (expand_omp_simd): Likewise.
3897 * stor-layout.c (excess_unit_span): Likewise.
3898 * tree-object-size.c (addr_object_size): Likewise.
3899 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3900 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3901 (simplify_rotate): Likewise.
3902 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3903 (handle_pointer_plus): Likewise.
3904 * tree-switch-conversion.c (check_range): Likewise.
3905 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3906 * tsan.c (instrument_builtin_call): Likewise.
3907 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3908 * trans-mem.c (tm_log_add): Likewise.
3909 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3910 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3911 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3912 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3913
3914 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3915
3916 * tree.h (host_integerp, tree_low_cst): Delete.
3917 * tree.c (host_integerp, tree_low_cst): Delete.
3918
3919 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3920
3921 * expr.h: Update comments to refer to tree_to_[su]hwi rather
3922 than tree_low_cst.
3923 * fold-const.c (fold_binary_loc): Likewise.
3924 * expr.c (store_constructor): Use tree_to_uhwi rather than
3925 tree_low_cst.
3926 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3927 * stmt.c (emit_case_dispatch_table): Likewise.
3928 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3929
3930 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3931
3932 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3933 config/aarch64/aarch64.c, config/alpha/predicates.md,
3934 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3935 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3936 config/mep/mep-pragma.c, config/mips/mips.c,
3937 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3938 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3939 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3940 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3941 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3942 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3943 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3944 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3945 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3946 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3947
3948 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3949
3950 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3951 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3952 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3953 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3954 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3955 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3956 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3957 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3958 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3959 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3960 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3961
3962 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3963
3964 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3965 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3966
3967 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3968
3969 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3970 than host_integerp.
3971
3972 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3973
3974 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3975 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3976 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3977 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3978 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3979 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3980 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3981 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3982 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3983 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3984 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3985 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3986 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3987 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3988 tree_fits_uhwi_p throughout.
3989
3990 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3991
3992 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3993 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3994 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3995 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3996 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3997 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3998 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3999 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4000 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4001 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4002 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4003 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4004 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4005 throughout.
4006
4007 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4008
4009 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4010 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4011
4012 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4013
4014 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4015 flag if it kills its address, not its post-increment.
4016
4017 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4018
4019 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4020 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4021 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4022 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4023 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4024 (gimple_call_with_bounds_p): New.
4025 (gimple_call_set_with_bounds): New.
4026 (gimple_call_num_nobnd_args): Remove.
4027 (gimple_call_nobnd_arg): Remove.
4028 * tree.h (CALL_WITH_BOUNDS_P): New.
4029 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4030
4031 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4032
4033 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4034 (symtab_node_name): Rename to symtab_node::name.
4035 (cgraph_node_asm_name): Remove.
4036 (varpool_node_asm_name): Remove.
4037 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4038 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4039 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4040 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4041 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4042
4043 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4044
4045 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4046 * config/arm/arm.c (arm_cortex_a53_tune): New.
4047 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4048
4049 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4050
4051 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4052 (case ${target}): Add bdver4.
4053 * config/i386/bdver3.md: Add bdver4.
4054 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4055 -march=native recognize bdver4 processors.
4056 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4057 bdver4 def_and_undef
4058 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4059 (m_BDVER4): New definition.
4060 (m_AMD_MULTIPLE): Includes m_BDVER4.
4061 (processor_target_table): Add bdver4 entry.
4062 (static const char *const cpu_names): Add bdver4 entry.
4063 (software_prefetching_beneficial_p): Add bdver3.
4064 (ix86_option_override_internal): Add bdver4 instruction sets.
4065 (ix86_issue_rate): Add bdver4.
4066 (ix86_adjust_cost): Add bdver4.
4067 (ia32_multipass_dfa_lookahead): Add bdver4.
4068 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4069 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4070 (has_dispatch): Add bdver4.
4071 * config/i386/i386.h (TARGET_BDVER4): New definition.
4072 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4073 (enum processor_type): Add PROCESSOR_BDVER4.
4074 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4075 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4076 * doc/extend.texi: Add details about bdver4.
4077 * doc/invoke.texi: Add details about bdver4. Add
4078 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4079
4080 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4081
4082 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4083 sdmode_stack_slot also in little-endian mode.
4084
4085 2013-11-17 Jan Hubicka <jh@suse.cz>
4086
4087 * doc/md.texi (setmem, movstr): Update documentation.
4088 * builtins.c (determine_block_size): New function.
4089 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4090 (expand_builtin_memset_args): Use it and pass it to
4091 set_storage_via_setmem.
4092 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4093 parameters; update call to expander.
4094 (emit_block_move_hints): Add min_size/max_size parameters.
4095 (clear_storage_hints): Likewise.
4096 (set_storage_via_setmem): Likewise.
4097 (clear_storage): Update.
4098 * expr.h (emit_block_move_hints, clear_storage_hints,
4099 set_storage_via_setmem): Update prototypes.
4100 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4101 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4102 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4103 * i386.md (movmem, setmem): Pass parameters.
4104
4105 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4106
4107 PR target/59153
4108 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4109 reject non-integer subregs.
4110 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4111 Move check for invalid x32 constant addresses ...
4112 (ix86_legitimate_address_p): ... here.
4113
4114 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4115
4116 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4117 parameter and use it in REG_FRAME_RELATED_EXPR note.
4118 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4119 parameter.
4120 (rs6000_emit_prologue): Likewise, but for little endian VSX
4121 stores, pass the source register of the store instead.
4122
4123 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4124
4125 * gimple.h: Reorder prototypes to match .c declaration order, and
4126 remove protyotypes for functions not in gimple.c.
4127 (LABEL): Move to tree-into-ssa.c.
4128 * gimple.c: Remove unused prototypes.
4129 (get_base_address): Move to tree.c.
4130 * tree.c (get_base_address): Relocate from gimple.c.
4131 * builtins.h (validate_gimple_arglist): Add prototype.
4132 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4133 * cfgexpand.h: New File.
4134 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4135 * tree.h (build_addr): Move to tree-nested.h.
4136 * tree-nested.h: New File.
4137 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4138 prototypes.
4139 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4140 * ipa-inline-analysis.c: Include cfgexpand.h.
4141 * cgraphunit.c: Include tree-nested.h.
4142 * omp-low.c: Likewise.
4143 * tree-parloops.c: Likewise.
4144 * gimple-low.h: Likewise.
4145 * tree-profile.h: Likewise.
4146 * expr.c: Include cfgexpand.h.
4147 * tree-affine.c: Likewise.
4148 * tree-ssa.c: Likewise.
4149 * tree-ssa-loop-im.c: Include trans-mem.h.
4150 * tree-ssa-tail-merge.c: Likewise.
4151 * value-prof.c: Include builtins.h and tree-nested.h.
4152 * tree-into-ssa.c (LABEL): Define here.
4153
4154 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4155
4156 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4157 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4158 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4159 (make_pass_arc_predicate_delay_insns): New function.
4160 (arc_init): Register pass_arc_predicate_delay_insns if
4161 flag_delayed_branch is active.
4162
4163 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4164
4165 * config/arc/constraints.md (Rcq): Simplify register number test.
4166
4167 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4168
4169 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4170
4171 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4172
4173 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4174 is null.
4175
4176 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4177
4178 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4179 * gimple-pretty-print.c (dump_omp_for): Add case for
4180 GF_OMP_FOR_KIND_CILKSIMD.
4181 * gimple.h (enum gf_mask): Restructure entries to add
4182 GF_OMP_FOR_KIND_CILKSIMD.
4183 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4184 (gimplify_omp_for): Handle CILK_SIMD.
4185 (gimplify_expr): Add ccase for CILK_SIMD.
4186 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4187 (build_outer_var_ref): Same.
4188 (check_omp_nesting_restrictions): Same.
4189 (lower_rec_input_clauses): Same.
4190 (lower_lastprivate_clauses): Same.
4191 (expand_omp_for): Same.
4192 (execute_expand_omp): Check flag_enable_cilkplus.
4193 (execute_lower_omp): Same.
4194 (diagnose_sb_0): Handle CILK_SIMD.
4195 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4196 (setjmp_or_longjmp_p): New.
4197 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4198 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4199 * tree.def: Add tree code for CILK_SIMD.
4200
4201 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4202
4203 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4204 Remove.
4205 (altivec_vperm_<mode>): Revert earlier little endian change.
4206 (*altivec_vperm_<mode>_internal): Remove.
4207 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4208 (*altivec_vperm_<mode>_uns_internal): Remove.
4209 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4210
4211 2013-11-15 Jeff Law <law@redhat.com>
4212
4213 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4214 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4215 * gimple-ssa-isolate-paths.c
4216 (find_implicit_erroneous_behaviour): Corresponding changes.
4217 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4218 (find_explicit_erroneous_behaviour): Likewise.
4219
4220 2013-11-15 Jeff Law <law@redhat.com>
4221
4222 * ifcvt.c (find_cond_trap): Properly handle case where
4223 trap_bb == else_bb.
4224
4225 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4226
4227 * configure: Regenerate.
4228
4229 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4230
4231 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4232 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4233 where it is incorrect or missing.
4234
4235 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4236
4237 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4238 host_integerp test.
4239 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4240 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4241 constant.
4242 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4243 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4244 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4245
4246 2013-11-15 Richard Biener <rguenther@suse.de>
4247
4248 PR tree-optimization/50262
4249 * tree-ssa-alias.h (struct pt_solution): Split
4250 vars_contains_global into vars_contains_nonlocal,
4251 vars_contains_escaped and vars_contains_escaped_heap.
4252 * tree-ssa-structalias.c (label_visit): Expand comment.
4253 (handle_lhs_call): Adjust comment.
4254 (set_uids_in_ptset): Set the new flags appropriately.
4255 (pt_solution_set): Adjust.
4256 (pt_solution_set_var): Likewise.
4257 (pt_solution_ior_into): Likewise.
4258 (pt_solution_includes_global): Likewise.
4259 (pt_solutions_intersect_1): Optimize escaped handling.
4260 (compute_points_to_sets): Remove heap variable globalization.
4261 (ipa_escaped_pt): Adjust initializer.
4262 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4263 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4264 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4265
4266 2013-11-15 Richard Biener <rguenther@suse.de>
4267
4268 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4269 to distribute all stores.
4270
4271 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4272
4273 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4274
4275 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4276
4277 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4278 * configure.ac: Determine target_header_dir earlier.
4279 (--with-glibc-version): New configure option.
4280 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4281 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4282 * configure: Regenerate.
4283 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4284 native toolchains for default.
4285 (--with-glibc-version): Document.
4286
4287 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4288
4289 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4290
4291 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4292
4293 * lto-streamer-in.c (input function): Call cgraph_create_node if
4294 cgraph_get_node failed.
4295
4296 2013-11-14 Olivier Hainque <hainque@adacore.com>
4297
4298 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4299 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4300 small. Factorize size threshold computation from the existing one.
4301 (expand_used_vars): Refine comment.
4302
4303 2013-11-14 Cong Hou <congh@google.com>
4304
4305 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4306 address field as it can be obtained from dr. Rename the struct.
4307 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4308 steps of data references during sort.
4309 (vect_prune_runtime_alias_test_list): Adjust with the change to
4310 struct dr_with_seg_len.
4311 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4312 Adjust with the change to struct dr_with_seg_len.
4313
4314 2013-11-14 Jeff Law <law@redhat.com>
4315
4316 PR middle-end/59127
4317 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4318 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4319 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4320 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4321 edges, then ignore it. If the statement exhibiting erroneous
4322 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4323 then we can not optimize.
4324 (find_explicit_erroneous_behaviour): Likewise.
4325
4326 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4327
4328 * gimplify-me.h: New file. Add prototypes.
4329 * gimplify.h: Don't include gimple.h.
4330 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4331 Relocate from gimple.h.
4332 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4333 is_gimple_sizepos): Move to gimplify.h.
4334 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4335 (enum gsi_iterator_update): Move to gimple-iterator.h.
4336 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4337 * gimplify-me.c: New File.
4338 (force_gimple_operand_1, force_gimple_operand,
4339 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4340 gimple_regimplify_operands): Relocate from gimplify.c.
4341 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4342 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4343 gimple_regimplify_operands): Move to gimplify-me.c.
4344 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4345 from gimple.h.
4346 * Makefile.in (OBJS): Add gimplify-me.o
4347 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4348 required.
4349 * cfgloopmanip.c: Likewise.
4350 * cgraphunit.c: Likewise.
4351 * cilk-common.c: Likewise.
4352 * fold-const.c: Likewise.
4353 * function.c: Likewise.
4354 * gimple-expr.c: Likewise.
4355 * gimple-fold.c: Likewise.
4356 * gimple-ssa-strength-reduction.c: Likewise.
4357 * gimple.c: Likewise.
4358 * graphite-clast-to-gimple.c: Likewise.
4359 * graphite-sese-to-poly.c: Likewise.
4360 * ipa-prop.c: Likewise.
4361 * ipa-split.c: Likewise.
4362 * ipa.c: Likewise.
4363 * langhooks.c: Likewise.
4364 * omp-low.c: Likewise.
4365 * sese.c: Likewise.
4366 * stor-layout.c: Likewise.
4367 * targhooks.c: Likewise.
4368 * trans-mem.c: Likewise.
4369 * tree-affine.c: Likewise.
4370 * tree-cfg.c: Likewise.
4371 * tree-cfgcleanup.c: Likewise.
4372 * tree-complex.c: Likewise.
4373 * tree-if-conv.c: Likewise.
4374 * tree-inline.c: Likewise.
4375 * tree-loop-distribution.c: Likewise.
4376 * tree-nested.c: Likewise.
4377 * tree-parloops.c: Likewise.
4378 * tree-predcom.c: Likewise.
4379 * tree-profile.c: Likewise.
4380 * tree-scalar-evolution.c: Likewise.
4381 * tree-sra.c: Likewise.
4382 * tree-ssa-address.c: Likewise.
4383 * tree-ssa-ccp.c: Likewise.
4384 * tree-ssa-dce.c: Likewise.
4385 * tree-ssa-forwprop.c: Likewise.
4386 * tree-ssa-ifcombine.c: Likewise.
4387 * tree-ssa-loop-im.c: Likewise.
4388 * tree-ssa-loop-ivopts.c: Likewise.
4389 * tree-ssa-loop-manip.c: Likewise.
4390 * tree-ssa-loop-niter.c: Likewise.
4391 * tree-ssa-loop-prefetch.c: Likewise.
4392 * tree-ssa-loop-unswitch.c: Likewise.
4393 * tree-ssa-math-opts.c: Likewise.
4394 * tree-ssa-phiopt.c: Likewise.
4395 * tree-ssa-phiprop.c: Likewise.
4396 * tree-ssa-pre.c: Likewise.
4397 * tree-ssa-propagate.c: Likewise.
4398 * tree-ssa-reassoc.c: Likewise.
4399 * tree-ssa-sccvn.c: Likewise.
4400 * tree-ssa-strlen.c: Likewise.
4401 * tree-ssa.c: Likewise.
4402 * tree-switch-conversion.c: Likewise.
4403 * tree-tailcall.c: Likewise.
4404 * tree-vect-data-refs.c: Likewise.
4405 * tree-vect-generic.c: Likewise.
4406 * tree-vect-loop-manip.c: Likewise.
4407 * tree-vect-loop.c: Likewise.
4408 * tree-vect-patterns.c: Likewise.
4409 * tree-vect-stmts.c: Likewise.
4410 * tree.c: Likewise.
4411 * tsan.c: Likewise.
4412 * value-prof.c: Likewise.
4413 * config/aarch64/aarch64.c: Likewise.
4414 * config/alpha/alpha.c: Likewise.
4415 * config/darwin.c: Likewise.
4416 * config/i386/i386.c: Likewise.
4417 * config/ia64/ia64.c: Likewise.
4418 * config/mep/mep.c: Likewise.
4419 * config/mips/mips.c: Likewise.
4420 * config/rs6000/rs6000.c: Likewise.
4421 * config/s390/s390.c: Likewise.
4422 * config/sh/sh.c: Likewise.
4423 * config/sparc/sparc.c: Likewise.
4424 * config/spu/spu.c: Likewise.
4425 * config/stormy16/stormy16.c: Likewise.
4426 * config/tilegx/tilegx.c: Likewise.
4427 * config/tilepro/tilepro.c: Likewise.
4428 * config/xtensa/xtensa.c: Likewise.
4429
4430 2013-11-14 Diego Novillo <dnovillo@google.com>
4431
4432 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4433
4434 2013-11-14 Diego Novillo <dnovillo@google.com>
4435
4436 * tree.h: Include fold-const.h.
4437 (aggregate_value_p): Moved to function.h.
4438 (alloca_call_p): Moved to calls.h.
4439 (allocate_struct_function): Moved to function.h.
4440 (apply_tm_attr): Moved to attribs.h.
4441 (array_at_struct_end_p): Moved to expr.h.
4442 (array_ref_element_size): Moved to tree-dfa.h.
4443 (array_ref_low_bound): Moved to tree-dfa.h.
4444 (array_ref_up_bound): Moved to tree.h.
4445 (assemble_alias): Moved to cgraph.h.
4446 (bit_from_pos): Moved to stor-layout.h.
4447 (build_addr): Moved to tree-nested.h.
4448 (build_duplicate_type): Moved to tree-inline.h.
4449 (build_fold_addr_expr): Moved to fold-const.h.
4450 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4451 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4452 (build_fold_indirect_ref): Moved to fold-const.h.
4453 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4454 (build_personality_function): Moved to tree.h.
4455 (build_range_check): Moved to fold-const.h.
4456 (build_simple_mem_ref): Moved to fold-const.h.
4457 (build_simple_mem_ref_loc): Moved to fold-const.h.
4458 (build_tm_abort_call): Moved to trans-mem.h.
4459 (byte_from_pos): Moved to stor-layout.h.
4460 (call_expr_flags): Moved to calls.h.
4461 (can_move_by_pieces): Moved to expr.h.
4462 (categorize_ctor_elements): Moved to expr.h.
4463 (change_decl_assembler_name): Moved to gcc-symtab.h.
4464 (combine_comparisons): Moved to fold-const.h.
4465 (complete_ctor_at_level_p): Moved to tree.h.
4466 (component_ref_field_offset): Moved to tree-dfa.h.
4467 (compute_builtin_object_size): Moved to tree-object-size.h.
4468 (compute_record_mode): Moved to stor-layout.h.
4469 (constant_boolean_node): Moved to fold-const.h.
4470 (constructor_static_from_elts_p): Moved to varasm.h.
4471 (cxx11_attribute_p): Moved to attribs.h.
4472 (debug_body): Moved to print-tree.h.
4473 (debug_find_tree): Moved to tree-inline.h.
4474 (debug_fold_checksum): Moved to fold-const.h.
4475 (debug_head): Moved to print-tree.h.
4476 (debug_head): Moved to print-tree.h.
4477 (debug_raw): Moved to print-tree.h.
4478 (debug_tree): Moved to print-tree.h.
4479 (debug_vec_tree): Moved to print-tree.h.
4480 (debug_verbose): Moved to print-tree.h.
4481 (debug_verbose): Moved to print-tree.h.
4482 (decl_attributes): Moved to attribs.h.
4483 (decl_binds_to_current_def_p): Moved to varasm.h.
4484 (decl_default_tls_model): Moved to varasm.h.
4485 (decl_replaceable_p): Moved to varasm.h.
4486 (div_if_zero_remainder): Moved to fold-const.h.
4487 (double_int mem_ref_offset): Moved to fold-const.h.
4488 (dump_addr): Moved to print-tree.h.
4489 (element_precision): Moved to machmode.h.
4490 (expand_dummy_function_end): Moved to function.h.
4491 (expand_function_end): Moved to function.h.
4492 (expand_function_start): Moved to function.h.
4493 (expand_label): Moved to stmt.h.
4494 (expr_first): Moved to tree-iterator.h.
4495 (expr_last): Moved to tree-iterator.h.
4496 (finalize_size_functions): Moved to stor-layout.h.
4497 (finish_builtin_struct): Moved to stor-layout.h.
4498 (finish_record_layout): Moved to stor-layout.h.
4499 (fixup_signed_type): Moved to stor-layout.h.
4500 (fixup_unsigned_type): Moved to stor-layout.h.
4501 (flags_from_decl_or_type): Moved to calls.h.
4502 (fold): Moved to fold-const.h.
4503 (fold_abs_const): Moved to fold-const.h.
4504 (fold_binary): Moved to fold-const.h.
4505 (fold_binary_loc): Moved to fold-const.h.
4506 (fold_binary_to_constant): Moved to fold-const.h.
4507 (fold_build1): Moved to fold-const.h.
4508 (fold_build1_initializer_loc): Moved to fold-const.h.
4509 (fold_build1_loc): Moved to fold-const.h.
4510 (fold_build1_stat_loc): Moved to fold-const.h.
4511 (fold_build2): Moved to fold-const.h.
4512 (fold_build2_initializer_loc): Moved to fold-const.h.
4513 (fold_build2_loc): Moved to fold-const.h.
4514 (fold_build2_stat_loc): Moved to fold-const.h.
4515 (fold_build3): Moved to fold-const.h.
4516 (fold_build3_loc): Moved to fold-const.h.
4517 (fold_build3_stat_loc): Moved to fold-const.h.
4518 (fold_build_call_array): Moved to fold-const.h.
4519 (fold_build_call_array_initializer): Moved to fold-const.h.
4520 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4521 (fold_build_call_array_loc): Moved to fold-const.h.
4522 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4523 (fold_convert): Moved to fold-const.h.
4524 (fold_convert_loc): Moved to fold-const.h.
4525 (fold_convertible_p): Moved to fold-const.h.
4526 (fold_defer_overflow_warnings): Moved to fold-const.h.
4527 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4528 (fold_fma): Moved to fold-const.h.
4529 (fold_ignored_result): Moved to fold-const.h.
4530 (fold_indirect_ref): Moved to fold-const.h.
4531 (fold_indirect_ref_1): Moved to fold-const.h.
4532 (fold_indirect_ref_loc): Moved to fold-const.h.
4533 (fold_read_from_constant_string): Moved to fold-const.h.
4534 (fold_real_zero_addition_p): Moved to fold-const.h.
4535 (fold_single_bit_test): Moved to fold-const.h.
4536 (fold_strip_sign_ops): Moved to fold-const.h.
4537 (fold_ternary): Moved to fold-const.h.
4538 (fold_ternary_loc): Moved to fold-const.h.
4539 (fold_unary): Moved to tree-data-ref.h.
4540 (fold_unary_ignore_overflow): Moved to fold-const.h.
4541 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4542 (fold_unary_loc): Moved to fold-const.h.
4543 (fold_unary_to_constant): Moved to fold-const.h.
4544 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4545 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4546 (folding_initializer): Moved to fold-const.h.
4547 (free_temp_slots): Moved to function.h.
4548 (generate_setjmp_warnings): Moved to function.h.
4549 (get_attribute_name): Moved to attribs.h.
4550 (get_identifier): Moved to stringpool.h.
4551 (get_identifier_with_length): Moved to stringpool.h.
4552 (get_inner_reference): Moved to tree.h.
4553 (gimple_alloca_call_p): Moved to calls.h.
4554 (gimplify_parameters): Moved to function.h.
4555 (highest_pow2_factor): Moved to expr.h.
4556 (indent_to): Moved to print-tree.h.
4557 (init_attributes): Moved to attribs.h.
4558 (init_dummy_function_start): Moved to function.h.
4559 (init_function_start): Moved to function.h.
4560 (init_inline_once): Moved to tree-inline.h.
4561 (init_object_sizes): Moved to tree-object-size.h.
4562 (init_temp_slots): Moved to function.h.
4563 (init_tree_optimization_optabs): Moved to optabs.h.
4564 (initialize_sizetypes): Moved to stor-layout.h.
4565 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4566 (initializer_constant_valid_p): Moved to varasm.h.
4567 (int_const_binop): Moved to fold-const.h.
4568 (internal_reference_types): Moved to stor-layout.h.
4569 (invert_tree_comparison): Moved to fold-const.h.
4570 (invert_truthvalue): Moved to fold-const.h.
4571 (invert_truthvalue_loc): Moved to fold-const.h.
4572 (is_tm_ending_fndecl): Moved to trans-mem.h.
4573 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4574 (is_tm_pure): Moved to trans-mem.h.
4575 (is_tm_safe): Moved to trans-mem.h.
4576 (layout_decl): Moved to stor-layout.h.
4577 (layout_type): Moved to stor-layout.h.
4578 (lookup_attribute_spec): Moved to attribs.h.
4579 (make_accum_type): Moved to stor-layout.h.
4580 (make_decl_one_only): Moved to varasm.h.
4581 (make_decl_rtl): Moved to tree.h.
4582 (make_decl_rtl_for_debug): Moved to varasm.h.
4583 (make_fract_type): Moved to stor-layout.h.
4584 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4585 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4586 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4587 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4588 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4589 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4590 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4591 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4592 (make_range): Moved to fold-const.h.
4593 (make_range_step): Moved to fold-const.h.
4594 (make_sat_signed_accum_type): Moved to stor-layout.h.
4595 (make_sat_signed_fract_type): Moved to stor-layout.h.
4596 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4597 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4598 (make_signed_accum_type): Moved to stor-layout.h.
4599 (make_signed_fract_type): Moved to stor-layout.h.
4600 (make_signed_type): Moved to stor-layout.h.
4601 (make_unsigned_accum_type): Moved to stor-layout.h.
4602 (make_unsigned_fract_type): Moved to stor-layout.h.
4603 (make_unsigned_type): Moved to stor-layout.h.
4604 (mark_decl_referenced): Moved to varasm.h.
4605 (mark_referenced): Moved to varasm.h.
4606 (may_negate_without_overflow_p): Moved to fold-const.h.
4607 (maybe_get_identifier): Moved to stringpool.h.
4608 (merge_ranges): Moved to fold-const.h.
4609 (merge_weak): Moved to varasm.h.
4610 (mode_for_size_tree): Moved to stor-layout.h.
4611 (multiple_of_p): Moved to fold-const.h.
4612 (must_pass_in_stack_var_size): Moved to calls.h.
4613 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4614 (native_encode_expr): Moved to fold-const.h.
4615 (native_interpret_expr): Moved to fold-const.h.
4616 (non_lvalue): Moved to fold-const.h.
4617 (non_lvalue_loc): Moved to fold-const.h.
4618 (normalize_offset): Moved to stor-layout.h.
4619 (normalize_rli): Moved to stor-layout.h.
4620 (notice_global_symbol): Moved to varasm.h.
4621 (omit_one_operand): Moved to fold-const.h.
4622 (omit_one_operand_loc): Moved to fold-const.h.
4623 (omit_two_operands): Moved to fold-const.h.
4624 (omit_two_operands_loc): Moved to fold-const.h.
4625 (operand_equal_p): Moved to tree-data-ref.h.
4626 (parse_input_constraint): Moved to stmt.h.
4627 (parse_output_constraint): Moved to stmt.h.
4628 (place_field): Moved to stor-layout.h.
4629 (pop_function_context): Moved to function.h.
4630 (pop_temp_slots): Moved to function.h.
4631 (pos_from_bit): Moved to stor-layout.h.
4632 (preserve_temp_slots): Moved to function.h.
4633 (print_node): Moved to print-tree.h.
4634 (print_node_brief): Moved to print-tree.h.
4635 (print_rtl): Moved to rtl.h.
4636 (process_pending_assemble_externals): Moved to varasm.h.
4637 (ptr_difference_const): Moved to fold-const.h.
4638 (push_function_context): Moved to function.h.
4639 (push_struct_function): Moved to function.h.
4640 (push_temp_slots): Moved to function.h.
4641 (record_tm_replacement): Moved to trans-mem.h.
4642 (relayout_decl): Moved to stor-layout.h.
4643 (resolve_asm_operand_names): Moved to stmt.h.
4644 (resolve_unique_section): Moved to varasm.h.
4645 (rli_size_so_far): Moved to stor-layout.h.
4646 (rli_size_unit_so_far): Moved to stor-layout.h.
4647 (round_down): Moved to fold-const.h.
4648 (round_down_loc): Moved to fold-const.h.
4649 (round_up): Moved to fold-const.h.
4650 (round_up_loc): Moved to fold-const.h.
4651 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4652 (set_decl_rtl): Moved to tree.h.
4653 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4654 (set_user_assembler_name): Moved to varasm.h.
4655 (setjmp_call_p): Moved to calls.h.
4656 (size_binop): Moved to fold-const.h.
4657 (size_binop_loc): Moved to fold-const.h.
4658 (size_diffop): Moved to fold-const.h.
4659 (size_diffop_loc): Moved to fold-const.h.
4660 (size_int_kind): Moved to fold-const.h.
4661 (stack_protect_epilogue): Moved to function.h.
4662 (start_record_layout): Moved to stor-layout.h.
4663 (supports_one_only): Moved to varasm.h.
4664 (swap_tree_comparison): Moved to fold-const.h.
4665 (tm_malloc_replacement): Moved to trans-mem.h.
4666 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4667 (tree build_invariant_address): Moved to fold-const.h.
4668 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4669 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4670 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4671 (tree_expr_nonnegative_p): Moved to fold-const.h.
4672 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4673 (tree_output_constant_def): Moved to varasm.h.
4674 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4675 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4676 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4677 (tree_swap_operands_p): Moved to fold-const.h.
4678 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4679 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4680 (update_alignment_for_field): Moved to stor-layout.h.
4681 (use_register_for_decl): Moved to function.h.
4682 (variable_size): Moved to rtl.h.
4683 (vector_type_mode): Moved to stor-layout.h.
4684 * cgraph.h: Corresponding changes.
4685 * emit-rtl.h: Corresponding changes.
4686 * expr.h: Corresponding changes.
4687 * function.h: Corresponding changes.
4688 * optabs.h: Corresponding changes.
4689 * trans-mem.h: Corresponding changes.
4690 Protect against multiple inclusion.
4691 * tree-inline.h: Corresponding changes.
4692 * tree-iterator.h: Corresponding changes.
4693 * tree-dfa.h: Include expr.h.
4694 * tree-ssanames.h: Include stringpool.h.
4695 * attribs.h: New file.
4696 * calls.h: New file.
4697 * fold-const.h: New file.
4698 * gcc-symtab.h: New file.
4699 * print-rtl.h: New file.
4700 * print-tree.h: New file.
4701 * stmt.h: New file.
4702 * stor-layout.h: New file.
4703 * strinpool.h: New file.
4704 * tree-nested.h: New file
4705 * tree-object-size.h: New file.
4706 * varasm.h: New file.
4707
4708 2013-11-14 Diego Novillo <dnovillo@google.com>
4709
4710 * alias.c: Include varasm.h.
4711 Include expr.h.
4712 * asan.c: Include calls.h.
4713 Include stor-layout.h.
4714 Include varasm.h.
4715 * attribs.c: Include stringpool.h.
4716 Include attribs.h.
4717 Include stor-layout.h.
4718 * builtins.c: Include stringpool.h.
4719 Include stor-layout.h.
4720 Include calls.h.
4721 Include varasm.h.
4722 Include tree-object-size.h.
4723 * calls.c: Include stor-layout.h.
4724 Include varasm.h.
4725 Include stringpool.h.
4726 Include attribs.h.
4727 * cfgexpand.c: Include stringpool.h.
4728 Include varasm.h.
4729 Include stor-layout.h.
4730 Include stmt.h.
4731 Include print-tree.h.
4732 * cgraph.c: Include varasm.h.
4733 Include calls.h.
4734 Include print-tree.h.
4735 * cgraphclones.c: Include stringpool.h.
4736 Include function.h.
4737 Include emit-rtl.h.
4738 Move inclusion of rtl.h earlier in the file.
4739 * cgraphunit.c: Include varasm.h.
4740 Include stor-layout.h.
4741 Include stringpool.h.
4742 * cilk-common.c: Include stringpool.h.
4743 Include stor-layout.h.
4744 * combine.c: Include stor-layout.h.
4745 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4746 Include stringpool.h.
4747 Include calls.h.
4748 * config/aarch64/aarch64.c: Include stringpool.h.
4749 Include stor-layout.h.
4750 Include calls.h.
4751 Include varasm.h.
4752 * config/alpha/alpha.c: Include stor-layout.h.
4753 Include calls.h.
4754 Include varasm.h.
4755 * config/arc/arc.c: Include varasm.h.
4756 Include stor-layout.h.
4757 Include stringpool.h.
4758 Include calls.h.
4759 * config/arm/arm.c: Include stringpool.h.
4760 Include stor-layout.h.
4761 Include calls.h.
4762 Include varasm.h.
4763 * config/avr/avr-c.c: Include stor-layout.h.
4764 * config/avr/avr-log.c: Include print-tree.h.
4765 * config/avr/avr.c: Include print-tree.h.
4766 Include calls.h.
4767 Include stor-layout.h.
4768 Include stringpool.h.
4769 * config/bfin/bfin.c: Include varasm.h.
4770 Include calls.h.
4771 * config/c6x/c6x.c: Include stor-layout.h.
4772 Include varasm.h.
4773 Include calls.h.
4774 Include stringpool.h.
4775 * config/cr16/cr16.c: Include stor-layout.h.
4776 Include calls.h.
4777 * config/cris/cris.c: Include varasm.h.
4778 Include stor-layout.h.
4779 Include calls.h.
4780 Include stmt.h.
4781 * config/darwin.c: Include stringpool.h.
4782 Include varasm.h.
4783 Include stor-layout.h.
4784 * config/epiphany/epiphany.c: Include stor-layout.h.
4785 Include varasm.h.
4786 Include calls.h.
4787 Include stringpool.h.
4788 * config/fr30/fr30.c: Include stor-layout.h.
4789 Include varasm.h.
4790 * config/frv/frv.c: Include varasm.h.
4791 Include stor-layout.h.
4792 Include stringpool.h.
4793 * config/h8300/h8300.c: Include stor-layout.h.
4794 Include varasm.h.
4795 Include calls.h.
4796 Include stringpool.h.
4797 * config/i386/i386.c: Include stringpool.h.
4798 Include attribs.h.
4799 Include calls.h.
4800 Include stor-layout.h.
4801 Include varasm.h.
4802 * config/i386/winnt-cxx.c: Include stringpool.h.
4803 Include attribs.h.
4804 * config/i386/winnt.c: Include stringpool.h.
4805 Include varasm.h.
4806 * config/ia64/ia64-c.c: Include stringpool.h.
4807 * config/ia64/ia64.c: Include stringpool.h.
4808 Include stor-layout.h.
4809 Include calls.h.
4810 Include varasm.h.
4811 * config/iq2000/iq2000.c: Include stor-layout.h.
4812 Include calls.h.
4813 Include varasm.h.
4814 * config/lm32/lm32.c: Include calls.h.
4815 * config/m32c/m32c.c: Include stor-layout.h.
4816 Include varasm.h.
4817 Include calls.h.
4818 * config/m32r/m32r.c: Include stor-layout.h.
4819 Include varasm.h.
4820 Include stringpool.h.
4821 Include calls.h.
4822 * config/m68k/m68k.c: Include calls.h.
4823 Include stor-layout.h.
4824 Include varasm.h.
4825 * config/mcore/mcore.c: Include stor-layout.h.
4826 Include varasm.h.
4827 Include stringpool.h.
4828 Include calls.h.
4829 * config/mep/mep.c: Include varasm.h.
4830 Include calls.h.
4831 Include stringpool.h.
4832 Include stor-layout.h.
4833 * config/microblaze/microblaze.c: Include varasm.h.
4834 Include stor-layout.h.
4835 Include calls.h.
4836 * config/mips/mips.c: Include varasm.h.
4837 Include stringpool.h.
4838 Include stor-layout.h.
4839 Include calls.h.
4840 * config/mmix/mmix.c: Include varasm.h.
4841 Include stor-layout.h.
4842 Include calls.h.
4843 * config/mn10300/mn10300.c: Include stor-layout.h.
4844 Include varasm.h.
4845 Include calls.h.
4846 * config/moxie/moxie.c: Include stor-layout.h.
4847 Include varasm.h.
4848 Include calls.h.
4849 * config/msp430/msp430.c: Include stor-layout.h.
4850 Include calls.h.
4851 * config/nds32/nds32.c: Include stor-layout.h.
4852 Include varasm.h.
4853 Include calls.h.
4854 * config/pa/pa.c: Include stor-layout.h.
4855 Include stringpool.h.
4856 Include varasm.h.
4857 Include calls.h.
4858 * config/pdp11/pdp11.c: Include stor-layout.h.
4859 Include varasm.h.
4860 Include calls.h.
4861 * config/picochip/picochip.c: Include calls.h.
4862 Include stor-layout.h.
4863 Include stringpool.h.
4864 Include varasm.h.
4865 * config/rl78/rl78.c: Include varasm.h.
4866 Include stor-layout.h.
4867 Include calls.h.
4868 * config/rs6000/rs6000-c.c: Include stor-layout.h.
4869 Include stringpool.h.
4870 * config/rs6000/rs6000.c: Include stringpool.h.
4871 Include stor-layout.h.
4872 Include calls.h.
4873 Include print-tree.h.
4874 Include varasm.h.
4875 * config/rx/rx.c: Include varasm.h.
4876 Include stor-layout.h.
4877 Include calls.h.
4878 * config/s390/s390.c: Include print-tree.h.
4879 Include stringpool.h.
4880 Include stor-layout.h.
4881 Include varasm.h.
4882 Include calls.h.
4883 * config/score/score.c: Include stringpool.h.
4884 Include calls.h.
4885 Include varasm.h.
4886 Include stor-layout.h.
4887 * config/sh/sh-c.c: Include stringpool.h.
4888 Include attribs.h.h.
4889 * config/sh/sh.c: Include stringpool.h.
4890 Include stor-layout.h.
4891 Include calls.h.
4892 Include varasm.h.
4893 * config/sol2-c.c: Include stringpool.h.
4894 Include attribs.h.
4895 * config/sol2-cxx.c: Include stringpool.h.
4896 * config/sol2.c: Include stringpool.h.
4897 Include varasm.h.
4898 * config/sparc/sparc.c: Include stringpool.h.
4899 Include stor-layout.h.
4900 Include calls.h.
4901 Include varasm.h.
4902 * config/spu/spu-c.c: Include stringpool.h.
4903 * config/spu/spu.c: Include stringpool.h.
4904 Include stor-layout.h.
4905 Include calls.h.
4906 Include varasm.h.
4907 * config/stormy16/stormy16.c: Include stringpool.h.
4908 Include stor-layout.h.
4909 Include varasm.h.
4910 Include calls.h.
4911 * config/tilegx/tilegx.c: Include stringpool.h.
4912 Include stor-layout.h.
4913 Include varasm.h.
4914 Include calls.h.
4915 * config/tilepro/tilepro.c: Include stringpool.h.
4916 Include stor-layout.h.
4917 Include varasm.h.
4918 Include calls.h.
4919 * config/v850/v850-c.c: Include stringpool.h.
4920 Include attribs.h.
4921 * config/v850/v850.c: Include stringpool.h.
4922 Include stor-layout.h.
4923 Include varasm.h.
4924 Include calls.h.
4925 * config/vax/vax.c: Include calls.h.
4926 Include varasm.h.
4927 * config/vms/vms.c: Include stringpool.h.
4928 * config/vxworks.c: Include stringpool.h.
4929 * config/xtensa/xtensa.c: Include stringpool.h.
4930 Include stor-layout.h.
4931 Include calls.h.
4932 Include varasm.h.
4933 * convert.c: Include stor-layout.h.
4934 * coverage.c: Include stringpool.h.
4935 Include stor-layout.h.
4936 * dbxout.c: Include varasm.h.
4937 Include stor-layout.h.
4938 * dojump.c: Include stor-layout.h.
4939 * dse.c: Include stor-layout.h.
4940 * dwarf2asm.c: Include stringpool.h.
4941 Include varasm.h.
4942 * dwarf2cfi.c: Include stor-layout.h.
4943 * dwarf2out.c: Include rtl.h.
4944 Include stringpool.h.
4945 Include stor-layout.h.
4946 Include varasm.h.
4947 Include function.h.
4948 Include emit-rtl.h.
4949 Move inclusion of rtl.h earlier in the file.
4950 * emit-rtl.c: Include varasm.h.
4951 * except.c: Include stringpool.h.
4952 Include stor-layout.h.
4953 * explow.c: Include stor-layout.h.
4954 * expmed.c: Include stor-layout.h.
4955 * expr.c: Include stringpool.h.
4956 Include stor-layout.h.
4957 Include attribs.h.
4958 Include varasm.h.
4959 * final.c: Include varasm.h.
4960 * fold-const.c: Include stor-layout.h.
4961 Include calls.h.
4962 Include tree-iterator.h.
4963 * function.c: Include stor-layout.h.
4964 Include varasm.h.
4965 Include stringpool.h.
4966 * genattrtab.c (write_header): Emit includes for varasm.h,
4967 stor-layout.h and calls.h.
4968 * genautomata.c (main): Likewise.
4969 * genemit.c: Likewise.
4970 * genopinit.c: Likewise.
4971 * genoutput.c (output_prologue): Likewise.
4972 * genpeep.c: Likewise.
4973 * genpreds.c (write_insn_preds_c): Likewise.
4974 * gengtype.c (open_base_files): Add stringpool.h.
4975 * gimple-expr.c: Include stringpool.h.
4976 Include stor-layout.h.
4977 * gimple-fold.c: Include stringpool.h.
4978 Include expr.h.
4979 Include stmt.h.
4980 Include stor-layout.h.
4981 * gimple-low.c: Include tree-nested.h.
4982 Include calls.h.
4983 * gimple-pretty-print.c: Include stringpool.h.
4984 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4985 Include expr.h.
4986 * gimple-walk.c: Include stmt.h.
4987 * gimple.c: Include calls.h.
4988 Include stmt.h.
4989 Include stor-layout.h.
4990 * gimplify.c: Include stringpool.h.
4991 Include calls.h.
4992 Include varasm.h.
4993 Include stor-layout.h.
4994 Include stmt.h.
4995 Include print-tree.h.
4996 Include expr.h.
4997 * gimplify-me.c: Include stmt.h
4998 Include stor-layout.h
4999 * internal-fn.c: Include stor-layout.h.
5000 * ipa-devirt.c: Include print-tree.h.
5001 Include calls.h.
5002 * ipa-inline-analysis.c: Include stor-layout.h.
5003 Include stringpool.h.
5004 Include print-tree.h.
5005 * ipa-inline.c: Include trans-mem.h.
5006 Include calls.h.
5007 * ipa-prop.c: Include expr.h.
5008 Include stor-layout.h.
5009 Include print-tree.h.
5010 * ipa-pure-const.c: Include print-tree.h.
5011 Include calls.h.
5012 * ipa-reference.c: Include calls.h.
5013 * ipa-split.c: Include stringpool.h.
5014 Include expr.h.
5015 Include calls.h.
5016 * ipa.c: Include calls.h.
5017 Include stringpool.h.
5018 * langhooks.c: Include stringpool.h.
5019 Include attribs.h.
5020 * lto-cgraph.c: Include stringpool.h.
5021 * lto-streamer-in.c: Include stringpool.h.
5022 * lto-streamer-out.c: Include stor-layout.h.
5023 Include stringpool.h.
5024 * omp-low.c: Include stringpool.h.
5025 Include stor-layout.h.
5026 Include expr.h.
5027 * optabs.c: Include stor-layout.h.
5028 Include stringpool.h.
5029 Include varasm.h.
5030 * passes.c: Include varasm.h.
5031 * predict.c: Include calls.h.
5032 * print-rtl.c: Include print-tree.h.
5033 * print-tree.c: Include varasm.h.
5034 Include print-rtl.h.
5035 Include stor-layout.h.
5036 * realmpfr.c: Include stor-layout.h.
5037 * reg-stack.c: Include varasm.h.
5038 * sdbout.c: Include varasm.h.
5039 Include stor-layout.h.
5040 * simplify-rtx.c: Include varasm.h.
5041 * stmt.c: Include varasm.h.
5042 Include stor-layout.h.
5043 * stor-layout.c: Include stor-layout.h.
5044 Include stringpool.h.
5045 Include varasm.h.
5046 Include print-tree.h.
5047 * symtab.c: Include rtl.h.
5048 Include print-tree.h.
5049 Include varasm.h.
5050 Include function.h.
5051 Include emit-rtl.h.
5052 * targhooks.c: Include stor-layout.h.
5053 Include varasm.h.
5054 * toplev.c: Include varasm.h.
5055 Include tree-inline.h.
5056 * trans-mem.c: Include calls.h.
5057 Include function.h.
5058 Include rtl.h.
5059 Include emit-rtl.h.
5060 * tree-affine.c: Include expr.h.
5061 * tree-browser.c: Include print-tree.h.
5062 * tree-call-cdce.c: Include stor-layout.h.
5063 * tree-cfg.c: Include trans-mem.h.
5064 Include stor-layout.h.
5065 Include print-tree.h.
5066 * tree-complex.c: Include stor-layout.h.
5067 * tree-data-ref.c: Include expr.h.
5068 * tree-dfa.c: Include stor-layout.h.
5069 * tree-eh.c: Include expr.h.
5070 Include calls.h.
5071 * tree-emutls.c: Include stor-layout.h.
5072 Include varasm.h.
5073 * tree-if-conv.c: Include stor-layout.h.
5074 * tree-inline.c: Include stor-layout.h.
5075 Include calls.h.
5076 * tree-loop-distribution.c: Include stor-layout.h.
5077 * tree-nested.c: Include stringpool.h.
5078 Include stor-layout.h.
5079 * tree-object-size.c: Include tree-object-size.h.
5080 * tree-outof-ssa.c: Include stor-layout.h.
5081 * tree-parloops.c: Include stor-layout.h.
5082 Include tree-nested.h.
5083 * tree-pretty-print.c: Include stor-layout.h.
5084 Include expr.h.
5085 * tree-profile.c: Include varasm.h.
5086 Include tree-nested.h.
5087 * tree-scalar-evolution.c: Include expr.h.
5088 * tree-sra.c: Include stor-layout.h.
5089 * tree-ssa-address.c: Include stor-layout.h.
5090 * tree-ssa-ccp.c: Include stor-layout.h.
5091 * tree-ssa-dce.c: Include calls.h.
5092 * tree-ssa-dom.c: Include stor-layout.h.
5093 * tree-ssa-forwprop.c: Include stor-layout.h.
5094 * tree-ssa-ifcombine.c: Include stor-layout.h.
5095 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5096 * tree-ssa-loop-niter.c: Include calls.h.
5097 Include expr.h.
5098 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5099 * tree-ssa-math-opts.c: Include stor-layout.h.
5100 * tree-ssa-operands.c: Include stmt.h.
5101 Include print-tree.h.
5102 * tree-ssa-phiopt.c: Include stor-layout.h.
5103 * tree-ssa-reassoc.c: Include stor-layout.h.
5104 * tree-ssa-sccvn.c: Include stor-layout.h.
5105 * tree-ssa-sink.c: Include stor-layout.h.
5106 * tree-ssa-strlen.c: Include stor-layout.h.
5107 * tree-ssa-structalias.c: Include stor-layout.h.
5108 Include stmt.h.
5109 * tree-ssa-tail-merge.c: Include stor-layout.h.
5110 Include trans-mem.h.
5111 * tree-ssa-uncprop.c: Include stor-layout.h.
5112 * tree-ssa.c: Include stor-layout.h.
5113 * tree-ssanames.c: Include stor-layout.h.
5114 * tree-streamer-in.c: Include stringpool.h.
5115 * tree-streamer-out.c: Include stor-layout.h.
5116 * tree-switch-conversion.c: Include varasm.h.
5117 Include stor-layout.h.
5118 * tree-tailcall.c: Include stor-layout.h.
5119 * tree-vect-data-refs.c: Include stor-layout.h.
5120 * tree-vect-generic.c: Include stor-layout.h.
5121 * tree-vect-loop.c: Include stor-layout.h.
5122 * tree-vect-patterns.c: Include stor-layout.h.
5123 * tree-vect-slp.c: Include stor-layout.h.
5124 * tree-vect-stmts.c: Include stor-layout.h.
5125 * tree-vectorizer.c: Include stor-layout.h.
5126 * tree-vrp.c: Include stor-layout.h.
5127 Include calls.h.
5128 * tree.c: Include stor-layout.h.
5129 Include calls.h.
5130 Include attribs.h.
5131 Include varasm.h.
5132 * tsan.c: Include expr.h.
5133 * ubsan.c: Include stor-layout.h.
5134 Include stringpool.h.
5135 * value-prof.c: Include tree-nested.h.
5136 Include calls.h.
5137 * var-tracking.c: Include varasm.h.
5138 Include stor-layout.h.
5139 * varasm.c: Include stor-layout.h.
5140 Include stringpool.h.
5141 Include gcc-symtab.h.
5142 Include varasm.h.
5143 * varpool.c: Include varasm.h.
5144 * vmsdbgout.c: Include varasm.h.
5145 * xcoffout.c: Include varasm.h.
5146
5147 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5148
5149 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5150 use (.&-4) idiom.
5151
5152 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5153
5154 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5155
5156 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5157 Alan Modra <amodra@gmail.com>
5158
5159 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5160 (RS6000_SAVE_TOC): Remove.
5161 (RS6000_TOC_SAVE_SLOT): New macro.
5162 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5163 (rs6000_parm_start): Use it.
5164 (rs6000_function_arg_advance_1): Likewise.
5165 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5166 (rs6000_emit_epilogue): Likewise.
5167 (rs6000_call_aix): Likewise.
5168 (rs6000_output_function_prologue): Do not save/restore r11
5169 around calling _mcount for ABI_ELFv2.
5170
5171 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5172 Alan Modra <amodra@gmail.com>
5173
5174 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5175 Add prototype.
5176 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5177 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5178 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5179 (rs6000_function_parms_need_stack): Likewise.
5180 (rs6000_reg_parm_stack_space): Likewise.
5181 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5182 returning a register argument.
5183
5184 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5185 Michael Gschwind <mkg@us.ibm.com>
5186
5187 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5188 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5189 (FUNCTION_VALUE_REGNO_P): Use them.
5190 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5191 (rs6000_return_in_msb): New function.
5192 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5193 Handle aggregates of up to 16 bytes for ELFv2.
5194 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5195
5196 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5197 Michael Gschwind <mkg@us.ibm.com>
5198
5199 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5200 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5201 (rs6000_discover_homogeneous_aggregate): Likewise.
5202 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5203 (rs6000_function_arg_advance_1): Likewise.
5204 (rs6000_function_arg): Likewise.
5205 (rs6000_arg_partial_bytes): Likewise.
5206 (rs6000_psave_function_arg): Handle BLKmode arguments.
5207
5208 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5209 Michael Gschwind <mkg@us.ibm.com>
5210
5211 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5212 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5213 (rs6000_discover_homogeneous_aggregate): Likewise.
5214 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5215 (rs6000_function_arg_advance_1): Likewise.
5216 (rs6000_function_arg): Likewise.
5217 (rs6000_arg_partial_bytes): Likewise.
5218 (rs6000_psave_function_arg): Handle BLKmode arguments.
5219
5220 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5221
5222 * config/rs6000/rs6000.c (machine_function): New member
5223 r2_setup_needed.
5224 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5225 (rs6000_output_mi_thunk): Set r2_setup_needed.
5226 (rs6000_output_function_prologue): Output global entry point
5227 prologue and local entry point marker if needed for ABI_ELFv2.
5228 Output -mprofile-kernel code here.
5229 (output_function_profiler): Do not output -mprofile-kernel
5230 code here; moved to rs6000_output_function_prologue.
5231 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5232
5233 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5234 (rs6000_output_function_entry): Likewise.
5235 (rs6000_assemble_integer): Likewise.
5236 (rs6000_elf_encode_section_info): Likewise.
5237 (rs6000_elf_declare_function_name): Do not create dot symbols
5238 or .opd section for ABI_ELFv2.
5239
5240 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5241 (rs6000_trampoline_init): Likewise.
5242 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5243
5244 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5245 for function descriptors in ABI_ELFv2.
5246
5247 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5248 on ABI_AIX only, not ABI_ELFv2.
5249 ("*call_value_indirect_aix<mode>"): Likewise.
5250 ("*call_indirect_elfv2<mode>"): New pattern.
5251 ("*call_value_indirect_elfv2<mode>"): Likewise.
5252
5253 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5254 check for function descriptors in ABI_ELFv2.
5255 ("current_file_function_operand"): Likewise.
5256
5257 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5258 (toc): Undefine.
5259 (FUNC_NAME): Define ELFv2 variant.
5260 (JUMP_TARGET): Likewise.
5261 (FUNC_START): Likewise.
5262 (HIDDEN_FUNC): Likewise.
5263 (FUNC_END): Likeiwse.
5264
5265 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5266
5267 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5268 and --with-abi=elfv2.
5269 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5270 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5271 (mabi=elfv2): Likewise.
5272 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5273 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5274 if !RS6000_BI_ARCH.
5275 (ELFv2_ABI_CHECK): New macro.
5276 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5277 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5278 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5279 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5280 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5281
5282 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5283 (debug_stack_info): Likewise.
5284 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5285 (rs6000_legitimize_tls_address): Likewise.
5286 (rs6000_conditional_register_usage): Likewise.
5287 (rs6000_emit_move): Likewise.
5288 (init_cumulative_args): Likewise.
5289 (rs6000_function_arg_advance_1): Likewise.
5290 (rs6000_function_arg): Likewise.
5291 (rs6000_arg_partial_bytes): Likewise.
5292 (rs6000_output_function_entry): Likewise.
5293 (rs6000_assemble_integer): Likewise.
5294 (rs6000_savres_strategy): Likewise.
5295 (rs6000_stack_info): Likewise.
5296 (rs6000_function_ok_for_sibcall): Likewise.
5297 (rs6000_emit_load_toc_table): Likewise.
5298 (rs6000_savres_routine_name): Likewise.
5299 (ptr_regno_for_savres): Likewise.
5300 (rs6000_emit_prologue): Likewise.
5301 (rs6000_emit_epilogue): Likewise.
5302 (rs6000_output_function_epilogue): Likewise.
5303 (output_profile_hook): Likewise.
5304 (output_function_profiler): Likewise.
5305 (rs6000_trampoline_size): Likewise.
5306 (rs6000_trampoline_init): Likewise.
5307 (rs6000_elf_output_toc_section_asm_op): Likewise.
5308 (rs6000_elf_encode_section_info): Likewise.
5309 (rs6000_elf_reloc_rw_mask): Likewise.
5310 (rs6000_elf_declare_function_name): Likewise.
5311 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5312 except that rs6000_compat_align_parm is always assumed false.
5313 (rs6000_gimplify_va_arg): Likewise.
5314 (rs6000_call_aix): Update comment.
5315 (rs6000_sibcall_aix): Likewise.
5316 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5317 Treat ABI_ELFv2 the same as ABI_AIX.
5318 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5319 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5320 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5321 ("load_toc_aix_si"): Likewise.
5322 ("load_toc_aix_di"): Likewise.
5323 ("call"): Likewise.
5324 ("call_value"): Likewise.
5325 ("*call_local_aix<mode>"): Likewise.
5326 ("*call_value_local_aix<mode>"): Likewise.
5327 ("*call_nonlocal_aix<mode>"): Likewise.
5328 ("*call_value_nonlocal_aix<mode>"): Likewise.
5329 ("*call_indirect_aix<mode>"): Likewise.
5330 ("*call_value_indirect_aix<mode>"): Likewise.
5331 ("sibcall"): Likewise.
5332 ("sibcall_value"): Likewise.
5333 ("*sibcall_aix<mode>"): Likewise.
5334 ("*sibcall_value_aix<mode>"): Likewise.
5335 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5336 ("current_file_function_operand"): Likewise.
5337
5338 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5339
5340 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5341 by making use of the fact that for vector / floating point arguments
5342 passed both in VRs/FPRs and in the fixed parameter area, the partial
5343 bytes mechanism is in fact not used.
5344
5345 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5346
5347 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5348 (rs6000_finish_function_arg): Likewise.
5349 (rs6000_function_arg): Use rs6000_psave_function_arg and
5350 rs6000_finish_function_arg to handle both vector and floating
5351 point arguments that are also passed in GPRs / the stack.
5352
5353 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5354
5355 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5356 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5357 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5358 (rs6000_function_arg_advance_1):Likewise.
5359 (rs6000_darwin64_record_arg_recurse): Likewise.
5360 (rs6000_function_arg): Likewise.
5361 (rs6000_arg_partial_bytes): Likewise.
5362
5363 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5364
5365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5366 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5367 (rs6000_savres_strategy): Likewise.
5368 (rs6000_return_addr): Likewise.
5369 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5370 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5371 (rs6000_emit_prologue): Likewise.
5372 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5373 (rs6000_elf_declare_function_name): Remove duplicated test.
5374 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5375 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5376 ("load_toc_v4_PIC_1_normal"): Likewise.
5377 ("load_toc_v4_PIC_1_476"): Likewise.
5378 ("load_toc_v4_PIC_1b"): Likewise.
5379 ("load_toc_v4_PIC_1b_normal"): Likewise.
5380 ("load_toc_v4_PIC_1b_476"): Likewise.
5381 ("load_toc_v4_PIC_2"): Likewise.
5382 ("load_toc_v4_PIC_3b"): Likewise.
5383 ("load_toc_v4_PIC_3c"): Likewise.
5384 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5385 (RS6000_SAVE_AREA): Likewise.
5386 (FP_ARG_MAX_REG): Likewise.
5387 (RETURN_ADDRESS_OFFSET): Likewise.
5388 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5389 of ABI_AIX.
5390 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5391 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5392
5393 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5394
5395 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5396 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5397 Create call insn directly instead of via various gen_... routines.
5398 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5399 (rs6000_sibcall_aix): New function.
5400 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5401 (TOC_SAVE_OFFSET_64BIT): Likewise.
5402 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5403 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5404 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5405 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5406 ("call" expander): Call rs6000_call_aix.
5407 ("call_value" expander): Likewise.
5408 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5409 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5410 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5411 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5412 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5413 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5414 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5415 ("*call_nonlocal_aix<mode>"): ... this pattern.
5416 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5417 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5418 ("*call_local_aix<mode>"): New insn pattern.
5419 ("*call_value_local_aix<mode>"): Likewise.
5420 ("sibcall" expander): Call rs6000_sibcall_aix.
5421 ("sibcall_value" expander): Likewise. Move earlier in file.
5422 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5423 ("*sibcall_aix<mode>"): ... this pattern.
5424 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5425 ("*sibcall_value_aix<mode>"): ... this pattern.
5426 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5427 (rs6000_call_aix): Add prototype.
5428 (rs6000_sibcall_aix): Likewise.
5429
5430 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5431
5432 PR sanitizer/59122
5433 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5434 isn't confused by the artificial decl.
5435
5436 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5437
5438 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5439 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5440 Instead, add USEs of all modified call-saved CR fields to the
5441 insn storing the result to the stack slot, and provide an
5442 appropriate REG_FRAME_RELATED_EXPR for that insn.
5443 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5444 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5445
5446 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5447 Alan Modra <amodra@gmail.com>
5448
5449 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5450 of re-evaluating REG_PARM_STACK_SPACE target macro.
5451 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5452 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5453 (assign_parm_find_entry_rtl): Update call.
5454 * calls.c (initialize_argument_information): Update call.
5455 (emit_library_call_value_1): Likewise.
5456 * expr.h (locate_and_pad_parm): Update prototype.
5457
5458 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5459
5460 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5461 arguments.
5462
5463 2013-11-14 DJ Delorie <dj@redhat.com>
5464
5465 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5466 to 16 bits.
5467
5468 2013-11-14 Jeff Law <law@redhat.com>
5469
5470 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5471 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5472
5473 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5474
5475 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5476 and -mtune options.
5477
5478 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5479
5480 * config/aarch64/aarch64-cores.def (example-1): Remove.
5481 (example-2): Likewise.
5482 * config/aarch64/aarch64-tune.md: Regenerate.
5483 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5484 (generic_sched): Remove "large", "small".
5485 * config/aarch64/large.md: Delete.
5486 * config/aarch64/small.md: Delete.
5487
5488 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5489
5490 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5491 * config/aarch64/aarch64-tune.md: Regenerate.
5492 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5493 (generic_sched): "no" if we are tuning for cortexa15.
5494 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5495 relative path.
5496
5497 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5498
5499 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5500 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5501 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5502 (all_cores): Use cortexa53 when tuning for "generic".
5503 (aarch64_override_options): Fix comment.
5504 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5505 * config/aarch64/aarch64-generic.md: Delete.
5506
5507 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5508
5509 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5510
5511 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5512
5513 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5514 (generic_rtx_cost_table): Remove.
5515 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5516 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5517 insn_extra_cost.
5518 (cpu_rtx_cost_table): Remove.
5519
5520 2013-11-14 Julian Brown <julian@codesourcery.com>
5521 Joey Ye <joey.ye@arm.com>
5522
5523 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5524 (arm_v7m_tune): New.
5525 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5526 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5527 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5528 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5529
5530 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5531
5532 PR target/57491
5533 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5534 flag setting.
5535
5536 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5537 Uros Bizjak <ubizjak@gmail.com>
5538
5539 PR target/59101
5540 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5541 operands[2] satisfies_constraint_Z that might have bit 31 set.
5542
5543 2013-11-13 Jeff Law <law@redhat.com>
5544
5545 PR tree-optimization/59102
5546 * gimple-ssa-isolate-paths.c
5547 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5548 gimple assignment before looking at gimple_assign_lhs.
5549
5550 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5551
5552 * ira.c: Add comment about threads at the top of file.
5553
5554 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5555
5556 * ira-color.c (coalesce_allocnos): Don't allocate and free
5557 sorted_copies.
5558
5559 2013-11-14 Tom de Vries <tom@codesourcery.com>
5560
5561 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5562 equality for GIMPLE_ASSIGN.
5563
5564 2013-11-14 Tom de Vries <tom@codesourcery.com>
5565
5566 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5567 function out of ...
5568 (gimple_equal_p): ... here.
5569
5570 2013-11-14 Tom de Vries <tom@codesourcery.com>
5571
5572 * trans-mem.c (is_tm_ending): New function.
5573 * gimple.h (is_tm_ending): Declare.
5574 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5575 BUILT_IN_TM_COMMIT.
5576 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5577
5578 2013-11-14 Tom de Vries <tom@codesourcery.com>
5579
5580 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5581
5582 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5583
5584 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5585 (struct walk_stmt_info): Relocate here from gimple.h.
5586 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5587 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5588 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5589 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5590 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5591 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5592 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5593 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5594 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5595 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5596 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5597 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5598 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5599 (struct walk_stmt_info): Move to gimple-walk.h.
5600 (gimple_seq_set_location): Move to gimple.c
5601 * gimple-walk.c: New File.
5602 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5603 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5604 walk_stmt_load_store_ops): Relocate here from gimple.c.
5605 * gimple-iterator.c: Include gimple-iterator.h.
5606 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5607 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5608 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5609 gimple-walk.c.
5610 (gimple_seq_set_location): Relocate from gimple.h.
5611 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5612 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5613 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5614 * Makefile.in (OBJS): Add gimple-walk.o
5615 * asan.c: Update Include list as required for gimple-iterator.h and
5616 gimple-walk.h.
5617 * cfgexpand.c: Likewise.
5618 * cfgloop.c: Likewise.
5619 * cfgloopmanip.c: Likewise.
5620 * cgraph.c: Likewise.
5621 * cgraphbuild.c: Likewise.
5622 * cgraphunit.c: Likewise.
5623 * gimple-fold.c: Likewise.
5624 * gimple-low.c: Likewise.
5625 * gimple-pretty-print.c: Likewise.
5626 * gimple-ssa-isolate-paths.c: Likewise.
5627 * gimple-ssa-strength-reduction.c: Likewise.
5628 * gimple-streamer-in.c: Likewise.
5629 * gimple-streamer-out.c: Likewise.
5630 * gimplify.c: Likewise.
5631 * graphite-blocking.c: Likewise.
5632 * graphite-clast-to-gimple.c: Likewise.
5633 * graphite-dependences.c: Likewise.
5634 * graphite-interchange.c: Likewise.
5635 * graphite-optimize-isl.c: Likewise.
5636 * graphite-poly.c: Likewise.
5637 * graphite-scop-detection.c: Likewise.
5638 * graphite-sese-to-poly.c: Likewise.
5639 * graphite.c: Likewise.
5640 * ipa-inline-analysis.c: Likewise.
5641 * ipa-profile.c: Likewise.
5642 * ipa-prop.c: Likewise.
5643 * ipa-pure-const.c: Likewise.
5644 * ipa-split.c: Likewise.
5645 * lto-streamer-in.c: Likewise.
5646 * lto-streamer-out.c: Likewise.
5647 * omp-low.c: Likewise.
5648 * predict.c: Likewise.
5649 * profile.c: Likewise.
5650 * sese.c: Likewise.
5651 * tracer.c: Likewise.
5652 * trans-mem.c: Likewise.
5653 * tree-call-cdce.c: Likewise.
5654 * tree-cfg.c: Likewise.
5655 * tree-cfgcleanup.c: Likewise.
5656 * tree-complex.c: Likewise.
5657 * tree-data-ref.c: Likewise.
5658 * tree-dfa.c: Likewise.
5659 * tree-eh.c: Likewise.
5660 * tree-emutls.c: Likewise.
5661 * tree-if-conv.c: Likewise.
5662 * tree-inline.c: Likewise.
5663 * tree-into-ssa.c: Likewise.
5664 * tree-loop-distribution.c: Likewise.
5665 * tree-nested.c: Likewise.
5666 * tree-nrv.c: Likewise.
5667 * tree-object-size.c: Likewise.
5668 * tree-outof-ssa.c: Likewise.
5669 * tree-parloops.c: Likewise.
5670 * tree-predcom.c: Likewise.
5671 * tree-profile.c: Likewise.
5672 * tree-scalar-evolution.c: Likewise.
5673 * tree-sra.c: Likewise.
5674 * tree-ssa-ccp.c: Likewise.
5675 * tree-ssa-coalesce.c: Likewise.
5676 * tree-ssa-copy.c: Likewise.
5677 * tree-ssa-copyrename.c: Likewise.
5678 * tree-ssa-dce.c: Likewise.
5679 * tree-ssa-dom.c: Likewise.
5680 * tree-ssa-dse.c: Likewise.
5681 * tree-ssa-forwprop.c: Likewise.
5682 * tree-ssa-ifcombine.c: Likewise.
5683 * tree-ssa-live.c: Likewise.
5684 * tree-ssa-loop-ch.c: Likewise.
5685 * tree-ssa-loop-im.c: Likewise.
5686 * tree-ssa-loop-ivcanon.c: Likewise.
5687 * tree-ssa-loop-ivopts.c: Likewise.
5688 * tree-ssa-loop-manip.c: Likewise.
5689 * tree-ssa-loop-niter.c: Likewise.
5690 * tree-ssa-loop-prefetch.c: Likewise.
5691 * tree-ssa-loop.c: Likewise.
5692 * tree-ssa-math-opts.c: Likewise.
5693 * tree-ssa-phiopt.c: Likewise.
5694 * tree-ssa-phiprop.c: Likewise.
5695 * tree-ssa-pre.c: Likewise.
5696 * tree-ssa-propagate.c: Likewise.
5697 * tree-ssa-reassoc.c: Likewise.
5698 * tree-ssa-sink.c: Likewise.
5699 * tree-ssa-strlen.c: Likewise.
5700 * tree-ssa-structalias.c: Likewise.
5701 * tree-ssa-tail-merge.c: Likewise.
5702 * tree-ssa-ter.c: Likewise.
5703 * tree-ssa-threadedge.c: Likewise.
5704 * tree-ssa-threadupdate.c: Likewise.
5705 * tree-ssa-uncprop.c: Likewise.
5706 * tree-ssa-uninit.c: Likewise.
5707 * tree-ssa.c: Likewise.
5708 * tree-stdarg.c: Likewise.
5709 * tree-switch-conversion.c: Likewise.
5710 * tree-tailcall.c: Likewise.
5711 * tree-vect-data-refs.c: Likewise.
5712 * tree-vect-generic.c: Likewise.
5713 * tree-vect-loop-manip.c: Likewise.
5714 * tree-vect-loop.c: Likewise.
5715 * tree-vect-patterns.c: Likewise.
5716 * tree-vect-slp.c: Likewise.
5717 * tree-vect-stmts.c: Likewise.
5718 * tree-vectorizer.c: Likewise.
5719 * tree-vrp.c: Likewise.
5720 * tree.c: Likewise.
5721 * tsan.c: Likewise.
5722 * value-prof.c: Likewise.
5723 * vtable-verify.c: Likewise.
5724
5725 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5726
5727 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5728 fix.
5729
5730 2013-11-13 Jeff Law <law@redhat.com>
5731
5732 * PR middle-end/59119
5733 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5734 function, extracted from gimple_ssa_isolate_erroneous_paths.
5735 (find_explicit_erroneous_behaviour): Similarly.
5736 (insert_trap_and_remove_trailing_statements): Remove statements
5737 in reverse order.
5738
5739 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5740
5741 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5742 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5743 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5744 looking at INSN_CODE.
5745 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5746 active_insn_p object, respect basic block boundaries.
5747 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5748 follows immediately after the jump table data label.
5749 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5750 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5751 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5752
5753 2013-11-13 Teresa Johnson <tejohnson@google.com>
5754
5755 PR ipa/58862
5756 * predict.c (drop_profile): Error is currently too strict.
5757 (handle_missing_profiles): Pass call_count to drop_profile.
5758
5759 2013-11-13 Teresa Johnson <tejohnson@google.com>
5760
5761 PR ipa/58862
5762 * ipa-inline.c (edge_badness): Fix overflow.
5763
5764 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5765
5766 PR rtl-optimization/59036
5767 * ira-color.c (struct allocno_color_data): Add new members
5768 first_thread_allocno, next_thread_allocno, thread_freq.
5769 (sorted_copies): New static var.
5770 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5771 (allocno_thread_conflict_p, merge_threads)
5772 (form_threads_from_copies, form_threads_from_bucket)
5773 (form_threads_from_colorable_allocno, init_allocno_threads): New
5774 functions.
5775 (bucket_allocno_compare_func): Add comparison by thread frequency
5776 and threads.
5777 (add_allocno_to_ordered_bucket): Rename to
5778 add_allocno_to_ordered_colorable_bucket. Remove parameter.
5779 (push_only_colorable): Call form_threads_from_bucket.
5780 (color_pass): Call init_allocno_threads. Use
5781 consideration_allocno_bitmap instead of coloring_allocno_bitmap
5782 for nuillify allocno color data.
5783 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5784 (coalesce_allocnos): Use static sorted copies.
5785
5786 2013-11-13 Jakub Jelinek <jakub@redhat.com>
5787
5788 * passes.c (execute_todo): Don't call do_per_function if
5789 flags are zero.
5790 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5791 execute_function_dump if dump_file is NULL.
5792
5793 2013-11-13 Martin Jambor <mjambor@suse.cz>
5794
5795 * cgraph.c (cgraph_get_create_node): Do what
5796 cgraph_get_create_real_symbol_node used to do.
5797 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
5798 call cgraph_get_create_node.
5799 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5800 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5801 cgraph_get_create_node. Assert we get a node.
5802
5803 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5804
5805 * config/aarch64/aarch64-simd.md (vec_extract): New.
5806
5807 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5808
5809 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5810 the constraint.
5811
5812 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5813
5814 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5815 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5816 or if optimization is enabled.
5817 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5818 require that all the names based on a PARM_DECL or a RESULT_DECL that
5819 isn't ignored for debug info be coalesced.
5820
5821 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5822
5823 * config/c6x/c6x.c: Include "gimple-expr.h".
5824
5825 2013-11-13 Richard Biener <rguenther@suse.de>
5826
5827 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5828 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5829 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5830 dealing with type mismatches inside component reference chains.
5831
5832 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
5833
5834 PR tree-optimization/59077
5835 * ipa-pure-const.c (better_state): Update *state.
5836
5837 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5838
5839 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5840 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5841 Update offset calculations.
5842
5843 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5844
5845 PR ada/35998
5846 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5847 for fields. Do not add the attribute if the size is negative.
5848
5849 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5850
5851 * config/arm/arm.c: Include aarch-cost-tables.h.
5852 (generic_extra_costs): Move from here...
5853 * config/arm/aarch-cost-tables.h: ... To here. New file.
5854
5855 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
5856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5857 Sergey Lega <sergey.s.lega@intel.com>
5858 Anna Tikhonova <anna.tikhonova@intel.com>
5859 Ilya Tocar <ilya.tocar@intel.com>
5860 Andrey Turetskiy <andrey.turetskiy@intel.com>
5861 Ilya Verbin <ilya.verbin@intel.com>
5862 Kirill Yukhin <kirill.yukhin@intel.com>
5863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5864
5865 * config/i386/i386.c (ix86_print_operand): Support z-masking.
5866 * config/i386/predicate.md (const_0_to_4_operand): New.
5867 (const_0_to_5_operand): Ditto.
5868 * config/i386/sse.md (UNSPEC_COMPRESS): New.
5869 (UNSPEC_COMPRESS_STORE): Ditto.
5870 (UNSPEC_EXPAND): Ditto.
5871 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5872 (define_mode_attr ssescalarsize): Ditto.
5873 (avx512f_load<mode>_mask): Ditto.
5874 (avx512f_store<mode>_mask): Ditto.
5875 (avx512f_storedqu<mode>_mask): Ditto.
5876 (avx512f_vmcmp<mode>3_mask): Ditto.
5877 (avx512f_fmadd_<mode>_mask): Ditto.
5878 (avx512f_fmadd_<mode>_mask3): Ditto.
5879 (avx512f_fmsub_<mode>_mask): Ditto.
5880 (avx512f_fmsub_<mode>_mask3): Ditto.
5881 (avx512f_fnmadd_<mode>_mask): Ditto.
5882 (avx512f_fnmadd_<mode>_mask3): Ditto.
5883 (avx512f_fnmsub_<mode>_mask): Ditto.
5884 (avx512f_fnmsub_<mode>_mask3): Ditto.
5885 (avx512f_fmaddsub_<mode>_mask): Ditto.
5886 (avx512f_fmaddsub_<mode>_mask3): Ditto.
5887 (avx512f_fmsubadd_<mode>_mask): Ditto.
5888 (avx512f_fmsubadd_<mode>_mask3): Ditto.
5889 (vec_unpacku_float_lo_v16si): Ditto.
5890 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5891 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5892 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5893 (vec_extract_lo_<mode>_maskm): Ditto.
5894 (vec_extract_hi_<mode>_maskm): Ditto.
5895 (avx512f_vternlog<mode>_mask): Ditto.
5896 (avx512f_shufps512_mask): Ditto.
5897 (avx512f_fixupimm<mode>_mask): Ditto.
5898 (avx512f_shufpd512_mask): Ditto.
5899 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5900 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5901 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5902 (ashr<mode>3<mask_name>): Ditto.
5903 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5904 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5905 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5906 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5907 (avx512f_pshufdv3_mask): Ditto.
5908 (avx512f_perm<mode>_mask): Ditto.
5909 (avx512f_vpermi2var<mode>3_mask): Ditto.
5910 (avx512f_vpermt2var<mode>3_mask): Ditto.
5911 (avx512f_compress<mode>_mask): Ditto.
5912 (avx512f_compressstore<mode>_mask): Ditto.
5913 (avx512f_expand<mode>_mask): Ditto.
5914 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5915 to support masking.
5916 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5917 (<plusminus_insn><mode>3<mask_name>): Ditto.
5918 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5919 (mul<mode>3<mask_name>): Ditto.
5920 (*mul<mode>3<mask_name>): Ditto.
5921 (<sse>_div<mode>3<mask_name>): Ditto.
5922 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5923 (<sse>_sqrt<mode>2<mask_name>): Ditto.
5924 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5925 (<code><mode>3<mask_name>/smaxmin): Ditto.
5926 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5927 (*<code><mode>3<mask_name>/smaxmin): Ditto.
5928 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5929 (ufloatv16siv16sf2<mask_name>): Ditto.
5930 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5931 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5932 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5933 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5934 (ufloatv8siv8df<mask_name>): Ditto.
5935 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5936 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5937 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5938 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5939 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5940 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5941 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5942 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5943 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5944 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5945 (vec_extract_lo_<mode><mask_name>): Ditto.
5946 (vec_extract_hi_<mode><mask_name>): Ditto.
5947 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5948 (avx512f_movddup512<mask_name>): Ditto.
5949 (avx512f_unpcklpd512<mask_name>): Ditto.
5950 (*avx512f_unpcklpd512<mask_name>): Ditto.
5951 (*avx512f_vmscalef<mode>): Ditto.
5952 (avx512f_scalef<mode><mask_name>): Ditto.
5953 (avx512f_getexp<mode><mask_name>): Ditto.
5954 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5955 (avx512f_rndscale<mode><mask_name>): Ditto.
5956 (avx512f_shufps512_1<mask_name>): Ditto.
5957 (avx512f_shufpd512_1<mask_name>): Ditto.
5958 (<plusminus_insn><mode>3<mask_name>): Ditto.
5959 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5960 (vec_widen_umult_even_v16si<mask_name>): Ditto.
5961 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5962 (vec_widen_smult_even_v16si<mask_name>): Ditto.
5963 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5964 (mul<mode>3<mask_name>): Ditto.
5965 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5966 (<shift_insn><mode>3<mask_name>): Ditto.
5967 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5968 (avx512f_<rotate><mode><mask_name>): Ditto.
5969 (<code><mode>3<mask_name>/maxmin): Ditto.
5970 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5971 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5972 (*andnot<mode>3<mask_name>): Ditto.
5973 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5974 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5975 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5976 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5977 (vec_set_lo_<mode><mask_name>): Ditto.
5978 (vec_set_hi_<mode><mask_name>): Ditto.
5979 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5980 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5981 (avx512f_pshufd_1<mask_name>): Ditto.
5982 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5983 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5984 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5985 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5986 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5987 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5988 (avx512er_exp2<mode><mask_name>): Ditto.
5989 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5990 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5991 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5992 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5993 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5994 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5995 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5996 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5997 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5998 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5999 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6000 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6001 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6002 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6003 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6004 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6005 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6006 (avx512f_getmant<mode><mask_name>): Ditto.
6007 (clz<mode>2<mask_name>): Ditto.
6008 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6009 (*srcp14<mode>): Remove visibility.
6010 (*rsqrt14<mode>): Ditto.
6011 (*fma_fmsub_<mode>): Ditto.
6012 (*fma_fnmadd_<mode>): Ditto.
6013 (*avx512f_rndscale<mode>): Ditto.
6014 * config/i386/subst.md: New file.
6015
6016 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6017
6018 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6019 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6020 (atomic_load_explicit, atomic_exchange_explicit)
6021 (atomic_compare_exchange_strong_explicit)
6022 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6023 declare variable initialized with PTR argument.
6024
6025 2013-11-12 Jeff Law <law@redhat.com>
6026
6027 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6028 backedge_seen_p. Set, use and pass it to children appropriately.
6029 (thread_through_normal_block): Similarly.
6030 (thread_across_edge): Similarly.
6031
6032 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6033 memory references as volatile.
6034 (insert_trap_and_remove_trailing_statements): Fix comment.
6035
6036 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6037
6038 PR other/58712
6039 * ira-costs.c (record_operand_costs): Check operands number for
6040 the single set.
6041
6042 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6043
6044 PR target/59054
6045 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6046 constraints that would allow DImode into the traditional Altivec
6047 registers, but cause undesirable code generation when loading 0 as
6048 a constant.
6049 (movdi_internal64): Likewise.
6050 (cmp<mode>_fpr): Do not use %x for CR register output.
6051 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6052 -mallow-upper-sf debug switches are used.
6053
6054 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6055
6056 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6057 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6058 Relocate prototypes from gimple.h.
6059 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6060 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6061 from gimple.h.
6062 * gimple.h: Move some prototypes to gimplify.h.
6063 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6064 gimplify.h.
6065 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6066 Relocate from gimpify.c.
6067 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6068 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6069 is_gimple_reg_rhs) Relocate from gimplify.c.
6070 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6071 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6072 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6073 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6074 is_gimple_reg_rhs): Move to gimple-expr.c.
6075 (should_carry_location_p): Move to gimple.c.
6076 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6077 to gimple.h.
6078 (annotate_one_with_location, annotate_all_with_location_after,
6079 annotate_all_with_location): Move to gimple.c.
6080 (compare_case_labels, sort_case_labels,
6081 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6082 (rhs_predicate_for): Make static.
6083 (gimplify_assign): Relocate from gimple.c.
6084 * gimple.c (gimplify_assign): Move to gimplify.c.
6085 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6086 annotate_one_with_location, annotate_all_with_location_after,
6087 annotate_all_with_location, compare_case_labels, sort_case_labels,
6088 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6089 * tree.h (unshare_expr, unshare_expr_without_location,
6090 mark_addressable): Move prototypes to gimplify.h.
6091 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6092 tmp_var_id_num
6093 * asan.c: Include gimplify.h rather than gimple.h.
6094 * cfgloopmanip.c: Likewise.
6095 * cgraphunit.c: Likewise.
6096 * cilk-common.c: Likewise.
6097 * dwarf2out.c: Dont include gimple.h.
6098 * fold-const.c: Include gimplify.h rather than gimple.h.
6099 * function.c: Likewise.
6100 * gimple-fold.c: Likewise.
6101 * gimple-ssa-strength-reduction.c: Likewise.
6102 * graphite-clast-to-gimple.c: Likewise.
6103 * graphite-sese-to-poly.c: Likewise.
6104 * ipa-prop.c: Likewise.
6105 * ipa-split.c: Likewise.
6106 * ipa.c: Likewise.
6107 * langhooks.c: Dont include gimple.h.
6108 * loop-init.c: Include gimplify.h rather than gimple.h.
6109 * omp-low.c: Likewise.
6110 * sese.c: Likewise.
6111 * stor-layout.c: Likewise.
6112 * targhooks.c: Likewise.
6113 * trans-mem.c: Likewise.
6114 * tree-affine.c: Likewise.
6115 * tree-cfg.c: Likewise.
6116 * tree-cfgcleanup.c: Likewise.
6117 * tree-complex.c: Likewise.
6118 * tree-if-conv.c: Likewise.
6119 * tree-inline.c: Likewise.
6120 * tree-iterator.c: Likewise.
6121 * tree-loop-distribution.c: Likewise.
6122 * tree-nested.c: Likewise.
6123 * tree-parloops.c: Likewise.
6124 * tree-predcom.c: Likewise.
6125 * tree-profile.c: Likewise.
6126 * tree-scalar-evolution.c: Likewise.
6127 * tree-sra.c: Likewise.
6128 * tree-ssa-address.c: Likewise.
6129 * tree-ssa-ccp.c: Likewise.
6130 * tree-ssa-dce.c: Likewise.
6131 * tree-ssa-forwprop.c: Likewise.
6132 * tree-ssa-ifcombine.c: Likewise.
6133 * tree-ssa-loop-im.c: Likewise.
6134 * tree-ssa-loop-ivopts.c: Likewise.
6135 * tree-ssa-loop-manip.c: Likewise.
6136 * tree-ssa-loop-niter.c: Likewise.
6137 * tree-ssa-loop-prefetch.c: Likewise.
6138 * tree-ssa-loop-unswitch.c: Likewise.
6139 * tree-ssa-math-opts.c: Likewise.
6140 * tree-ssa-phiopt.c: Likewise.
6141 * tree-ssa-phiprop.c: Likewise.
6142 * tree-ssa-pre.c: Likewise.
6143 * tree-ssa-propagate.c: Likewise.
6144 * tree-ssa-reassoc.c: Likewise.
6145 * tree-ssa-sccvn.c: Likewise.
6146 * tree-ssa-strlen.c: Likewise.
6147 * tree-ssa.c: Likewise.
6148 * tree-switch-conversio: Likewise.n.c
6149 * tree-tailcall.c: Likewise.
6150 * tree-vect-data-refs.c: Likewise.
6151 * tree-vect-generic.c: Likewise.
6152 * tree-vect-loop-manip.c: Likewise.
6153 * tree-vect-loop.c: Likewise.
6154 * tree-vect-patterns.c: Likewise.
6155 * tree-vect-stmts.c: Likewise.
6156 * tsan.c: Likewise.
6157 * value-prof.c: Likewise.
6158 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6159 * config/alpha/alpha.c: Likewise.
6160 * config/darwin.c: Likewise.
6161 * config/i386/i386.c: Likewise.
6162 * config/ia64/ia64.c: Likewise.
6163 * config/mep/mep.c: Likewise.
6164 * config/mips/mips.c: Likewise.
6165 * config/rs6000/rs6000.c: Likewise.
6166 * config/s390/s390.c: Likewise.
6167 * config/sh/sh.c: Likewise.
6168 * config/sparc/sparc.c: Likewise.
6169 * config/spu/spu.c: Likewise.
6170 * config/stormy16/stormy16.c: Likewise.
6171 * config/tilegx/tilegx.c: Likewise.
6172 * config/tilepro/tilepro.c: Likewise.
6173 * config/xtensa/xtensa.c: Likewise.
6174
6175 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6176
6177 * tree.c (grow_tree_vec_stat): New function ...
6178 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6179 and macro front-end.
6180
6181 2013-11-12 Marek Polacek <polacek@redhat.com>
6182
6183 * final.c (update_alignments): Initialize label to NULL_RTX.
6184
6185 2013-11-12 Jeff Law <law@redhat.com>
6186
6187 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6188 (insert_trap_and_remove_trailing_statements): New argument OP which
6189 is the NULL pointer. Emit the trap after the load/store through
6190 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6191 when trivial to do so.
6192 (isolate_path): Corresponding changes.
6193 (gimple_ssa_isolate_erroneous_path): Likewise.
6194
6195 2013-11-12 Teresa Johnson <tejohnson@google.com>
6196 Jan Hubicka <jh@suse.cz>
6197
6198 * predict.c (drop_profile): New function.
6199 (handle_missing_profiles): Ditto.
6200 (counts_to_freqs): Don't overwrite estimated frequencies
6201 when function has no profile counts.
6202 * predict.h (handle_missing_profiles): Declare.
6203 * tree-inline.c (freqs_to_counts): New function.
6204 (copy_cfg_body): Invoke freqs_to_counts as needed.
6205 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6206
6207 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6208
6209 PR target/59088
6210 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6211 Set for m_HASWELL.
6212 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6213
6214 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6215
6216 PR target/59084
6217 * config/i386/i386.c (ix86_option_override_internal): Check
6218 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6219 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6220 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6221 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6222
6223 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6224 Clear m_COREI7_AVX and update comments.
6225 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6226
6227 2013-11-12 Martin Jambor <mjambor@suse.cz>
6228
6229 PR rtl-optimization/10474
6230 * ira.c (interesting_dest_for_shprep): New function.
6231 (split_live_ranges_for_shrink_wrap): Likewise.
6232 (find_moveable_pseudos): Move calculation of dominance info,
6233 df_analysios and the final anlyses to...
6234 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6235
6236 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6237
6238 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6239 Handle type conversion.
6240
6241 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6242 Jan Hubicka <jh@suse.cz>
6243
6244 * cgraph.c (dump_cgraph_node): Profile dump added.
6245 * cgraph.h (struct cgraph_node): New time profile variable added.
6246 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6247 * gcov-io.h (gcov_type): New profiler type introduced.
6248 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6249 (input_node): Time profiler is read from LTO stream.
6250 * predict.c (maybe_hot_count_p): Hot prediction changed.
6251 * profile.c (instrument_values): New case for time profiler added.
6252 (compute_value_histograms): Read of time profile.
6253 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6254 * tree-profile.c (init_ic_make_global_vars): Time profiler
6255 function added.
6256 (gimple_init_edge_profiler): TP function instrumentation.
6257 (gimple_gen_time_profiler): New.
6258 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6259 added.
6260 (dump_histogram_value): TP type added to dumps.
6261 (visit_hist): More sensitive check that takes TP into account.
6262 (gimple_find_values_to_profile): TP instrumentation.
6263 * value-prof.h (hist_type): New histogram type added.
6264 (struct histogram_value_t): Pointer to struct function added.
6265 * libgcc/Makefile.in: New GCOV merge function for TP added.
6266 * libgcov.c: function_counter variable introduced.
6267 (_gcov_merge_time_profile): New.
6268 (_gcov_time_profiler): New.
6269
6270 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6271 Jeff Law <law@redhat.com>
6272
6273 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6274 ao_ref_init_from_ptr_and_size for builtins.
6275
6276 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6277 H.J. Lu <hongjiu.lu@intel.com>
6278
6279 PR target/58853
6280 * config/i386/x86-tune.def
6281 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6282 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6283 * config/i386/i386.h
6284 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6285 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6286 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6287 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6288 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6289 misaligned_prologue_used. Check that
6290 desired_aling <= epilogue_size_needed.
6291
6292 2013-11-11 Cong Hou <congh@google.com>
6293
6294 PR tree-optimization/59050
6295 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6296
6297 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6298
6299 PR middle-end/59049
6300 * expmed.c (emit_store_flag): Fail for const-const comparison.
6301
6302 2013-11-11 Tristan Gingold <gingold@adacore.com>
6303 Eric Botcazou <ebotcazou@adacore.com>
6304
6305 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6306 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6307 * tree.def (CONSTRUCTOR): Likewise.
6308 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6309 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6310 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6311
6312 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6313
6314 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6315 diagnostic_finish.
6316
6317 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6318
6319 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6320 comparisons.
6321
6322 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6323
6324 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6325
6326 2013-11-08 Jeff Law <law@redhat.com>
6327
6328 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6329 threading paths first, then perform PHI node checks if applicable.
6330
6331 2013-11-10 Karlson2k <k2k@narod.ru>
6332 Kai Tietz <ktietz@redhat.com>
6333
6334 PR plugin/52872
6335 * configure.ac: Adding for exported symbols check
6336 and for rdynamic-check executable-extension.
6337 * configure: Regenerated.
6338
6339 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6340
6341 * mode-switching.c (optimize_mode_switching): Mark block as
6342 nontransparent, if last_mode at block exit is different from no_mode.
6343
6344 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6345
6346 * function.c (NAME__MAIN): Move to...
6347 * cfgexpand.c (NAME__MAIN): ...here.
6348
6349 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6350
6351 * target.def (can_use_doloop_p): New hook.
6352 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6353 * doc/tm.texi: Regenerate.
6354 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6355 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6356 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6357 * targhooks.h (can_use_doloop_if_innermost): Declare.
6358 * targhooks.c (can_use_doloop_if_innermost): New function.
6359 * target.h: Include double-int.h.
6360 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6361 Remove iteration count, maximum iteration count, loop depth and
6362 enter-at-top inputs from doloop_begin and doloop_end.
6363 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6364 interface.
6365 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6366 (TARGET_CAN_USE_DOLOOP_P): Define.
6367 * config/arm/thumb2.md (doloop_end): Update for new interface.
6368 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6369 * config/bfin/bfin.md (doloop_end): Update for new interface.
6370 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6371 (TARGET_CAN_USE_DOLOOP_P): Define.
6372 * config/c6x/c6x.md (doloop_end): Update for new interface.
6373 * config/ia64/ia64.md (doloop_end): Update for new interface.
6374 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6375 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6376 interface.
6377 * config/mep/mep.c (mep_emit_doloop): Likewise.
6378 (TARGET_CAN_USE_DOLOOP_P): Define.
6379 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6380 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6381 * config/s390/s390.md (doloop_end): Update for new interface.
6382 * config/sh/sh.md (doloop_end): Likewise.
6383 * config/spu/spu.md (doloop_end): Likewise.
6384 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6385 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6386 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6387 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6388 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6389 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6390 interface.
6391 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6392
6393 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6394
6395 PR other/59055
6396 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6397 Builtins node.
6398
6399 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6400 Joseph Myers <joseph@codesourcery.com>
6401
6402 * ginclude/stdatomic.h: New file.
6403 * Makefile.in (USER_H): Add stdatomic.h.
6404
6405 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6406
6407 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6408 comparisons.
6409
6410 2013-11-08 Jeff Law <law@redhat.com>
6411
6412 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6413 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6414 (ssa_redirect_edges, thread_block_1): Use it.
6415 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6416 (thread_through_all_blocks, register_jump_thread): Likewise.
6417 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6418
6419 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6420
6421 * config/arm/aarch-common.c
6422 (search_term): New typedef.
6423 (shift_rtx_costs): New array.
6424 (arm_rtx_shift_left_p): New.
6425 (arm_find_sub_rtx_with_search_term): Likewise.
6426 (arm_find_sub_rtx_with_code): Likewise.
6427 (arm_early_load_addr_dep): Add sanity checking.
6428 (arm_no_early_alu_shift_dep): Likewise.
6429 (arm_no_early_alu_shift_value_dep): Likewise.
6430 (arm_no_early_mul_dep): Likewise.
6431 (arm_no_early_store_addr_dep): Likewise.
6432
6433 2013-11-08 Richard Biener <rguenther@suse.de>
6434
6435 PR tree-optimization/59047
6436 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6437
6438 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6439
6440 * common.opt (fcheck-pointer-bounds): Move to ...
6441 * c-family/c.opt: ... here.
6442 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6443 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6444 * langhooks.h (lang_hooks): Remove chkp_supported field.
6445 * toplev.c (process_options): Remove chkp_supported check.
6446
6447 2013-11-08 Richard Biener <rguenther@suse.de>
6448
6449 PR tree-optimization/59038
6450 PR tree-optimization/58955
6451 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6452 previous change. Handle known dependences correctly.
6453
6454 2013-11-08 Tom de Vries <tom@codesourcery.com>
6455
6456 * config/rs6000/t-xilinx: Remove duplicate contents.
6457
6458 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6459 Joseph Myers <joseph@codesourcery.com>
6460
6461 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6462 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6463 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6464 (struct tree_base): Add atomic_flag field.
6465 * tree.h (TYPE_ATOMIC): New accessor macro.
6466 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6467 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6468 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6469 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6470 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6471 (find_atomic_core_type): New function.
6472 (build_qualified_type): Adjust alignment for qualified types.
6473 (build_atomic_base): New function
6474 (build_common_tree_nodes): Build atomicQI_type_node,
6475 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6476 atomicTI_type_node.
6477 * print-tree.c (print_node): Print atomic qualifier.
6478 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6479 * target.def (atomic_assign_expand_fenv): New hook.
6480 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6481 * doc/tm.texi: Regenerate.
6482 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6483 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6484 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6485 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6486 function type.
6487 * config/i386/i386.c (enum ix86_builtins): Add
6488 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6489 IX86_BUILTIN_FNCLEX.
6490 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6491 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6492 (ix86_expand_builtin): Handle the new built-in functions.
6493 (ix86_atomic_assign_expand_fenv): New function.
6494 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6495 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6496 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6497 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6498
6499 2013-11-07 Steve Ellcey <sellcey@mips.com>
6500
6501 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6502 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6503 (MULTILIB_DIRNAMES): Add fp64 directory.
6504 (MULTILIB_EXCEPTIONS): Add new exclusions.
6505
6506 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6507
6508 * gimplify.c (gimple_regimplify_operands): Do not set
6509 SSA_NAME_DEF_STMT.
6510 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6511 (rewrite_close_phi_out_of_ssa): Same.
6512 (rewrite_phi_out_of_ssa): Same.
6513 (rewrite_degenerate_phi): Same.
6514 (handle_scalar_deps_crossing_scop_limits): Same.
6515 * tree-if-conv.c (predicate_scalar_phi): Same.
6516 * tree-parloops.c (create_loads_for_reductions): Same.
6517 (create_final_loads_for_reduction): Same.
6518 (create_loads_and_stores_for_name): Same.
6519 (transform_to_exit_first_loop): Same.
6520 (create_parallel_loop): Same.
6521 * tree-ssa-loop-im.c
6522 (move_computations_dom_walker::before_dom_children): Same.
6523 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6524 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6525 * tree-ssa-propagate.c (substitute_and_fold): Same.
6526 * tree-vect-loop.c (vect_finalize_reduction): Same.
6527 * tree-vect-stmts.c (vectorizable_call): Same.
6528
6529 2013-11-07 Mike Stump <mikestump@comcast.net>
6530
6531 * config/pdp11/pdp11.c: Include dbxout.h.
6532 * config/picochip/picochip.c: Likewise.
6533
6534 2013-11-07 Cong Hou <congh@google.com>
6535
6536 PR tree-optimization/56764
6537 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6538 Combine alias checks if it is possible to amortize the runtime
6539 overhead. Return the number of alias checks after merging.
6540 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6541 Use the function vect_create_cond_for_alias_checks () to check
6542 the number of alias checks.
6543
6544 2013-11-07 Jeff Law <law@redhat.com>
6545
6546 * varpool.c (ctor_for_folding): Fix typo in comment.
6547
6548 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6549
6550 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6551 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6552
6553 2013-11-07 Jeff Law <law@redhat.com>
6554
6555 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6556
6557 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6558 No longer check if we have __builtin_trap, assume it's available.
6559
6560 2013-11-07 Diego Novillo <dnovillo@google.com>
6561
6562 * attribs.c (lookup_scoped_attribute_spec): Make static.
6563 (get_attribute_namespace): Likewise.
6564 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6565 (validate_arglist): Move earlier in the file. Make static.
6566 (expand_stack_restore): Move from stmt.c
6567 (expand_stack_save): Move from stmt.c
6568 (rewrite_call_expr_array): Move earlier in the file.
6569 (rewrite_call_expr_valist): Likewise.
6570 * cfgexpand.c: Include hard-reg-set.h before tree.h
6571 Include recog.h.
6572 Include output.h.
6573 (expand_asm_loc): Move from stmt.c.
6574 (n_occurrences): Move from stmt.c.
6575 (check_operand_nalternatives): Move from stmt.c.
6576 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6577 (expand_asm_operands): Move from stmt.c
6578 (expand_asm_stmt): Move from stmt.c
6579 (expand_computed_goto): Move from stmt.c
6580 (expand_goto): Move from stmt.c
6581 (expand_null_return_1): Move from stmt.c
6582 (expand_null_return): Move from stmt.c
6583 (expand_value_return): Move from stmt.c
6584 (expand_return): Move from stmt.c
6585 (expand_main_function): Move from function.c
6586 (stack_protect_prologue): Move from function.c
6587 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6588 (build_function_decl_skip_args): Move from tree.c.
6589 * explow.c (tree_expr_size): Move from tree.c.
6590 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6591 (fields_length): Move from tree.c.
6592 * fold-const.c (size_low_cst): Move from tree.c.
6593 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6594 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6595 (fold_build3_initializer_loc): Remove.
6596 (tree_invalid_nonnegative_warnv_p): Make static.
6597 * function.c (expand_main_function): Move to cfgexpand.c.
6598 (stack_protect_prologue): Move to cfgexpand.c.
6599 (set_insn_locations): Move earlier in the file.
6600 * gimple-fold.c: Include langhooks.h.
6601 (truth_type_for): Move from tree.c.
6602 * print-tree.c (print_vec_tree): Remove.
6603 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6604 (expand_goto): Move to cfgexpand.c.
6605 (n_occurrences): Move to cfgexpand.c.
6606 (expand_asm_loc): Move to cfgexpand.c
6607 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6608 (expand_asm_operands): Move to cfgexpand.c.
6609 (expand_asm_stmt): Move to cfgexpand.c.
6610 (check_operand_nalternatives): Move to cfgexpand.c
6611 (expand_null_return): Move to cfgexpand.c.
6612 (expand_value_return): Move to cfgexpand.c.
6613 (expand_null_return_1): Move to cfgexpand.c.
6614 (expand_return): Move to cfgexpand.c.
6615 (expand_stack_save): Move to builtins.c.
6616 (expand_stack_restore): Move to builtins.c
6617 * symtab.c: Include output.h.
6618 (decl_assembler_name_hash): Move from tree.c.
6619 (decl_assembler_name_equal): Move from tree.c.
6620 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6621 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6622 (range_in_array_bounds_p): Move from tree.c.
6623 * tree-object-size.c (fini_object_sizes): Make static.
6624 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6625 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6626 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6627 (tree_expr_size): Move to explow.c.
6628 (decl_assembler_name_hash): Move to symtab.c.
6629 (real_twop): Remove.
6630 (tree_expr_size): Move to explow.c.
6631 (stabilize_reference_1): Move earlier in the file. Make static.
6632 (omp_remove_redundant_declare_simd_attrs): Remove.
6633 (simple_cst_list_equal): Move earlier in the file. Make static.
6634 (size_low_cst): Move to fold-const.c.
6635 (build_type_no_quals): Remove.
6636 (build_function_type_skip_args): Move to cgraphclones.c.
6637 (build_function_decl_skip_args): Move to cgraphclones.c.
6638 (in_array_bounds_p): Move to tree-eh.c.
6639 (range_in_array_bounds_p): Move to tree-eh.c.
6640 (truth_type_for): Move to gimple-fold.c.
6641 (list_equal_p): Remove.
6642 * tree.h (decl_assembler_name_equal): Remove.
6643 (decl_assembler_name_hash): Remove.
6644 (truth_type_for): Remove.
6645 (build_type_no_quals): Remove.
6646 (build_function_decl_skip_args): Remove.
6647 (in_array_bounds_p): Remove.
6648 (range_in_array_bounds_p): Remove.
6649 (size_low_cst): Remove.
6650 (omp_remove_redundant_declare_simd_attrs): Remove.
6651 (tree_expr_size): Remove.
6652 (fields_length): Remove.
6653 (stabilize_reference_1): Remove.
6654 (expand_goto): Remove.
6655 (expand_stack_save): Remove.
6656 (expand_stack_restore): Remove.
6657 (expand_return): Remove.
6658 (fold_build3_initializer_loc): Remove.
6659 (tree_expr_nonzero_p): Remove.
6660 (tree_invalid_nonnegative_warnv_p): Remove.
6661 (tree_expr_nonzero_warnv_p): Remove.
6662 (fold_builtin_snprintf_chk): Remove.
6663 (validate_arglist): Remove.
6664 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6665 (simple_cst_list_equal): Remove.
6666 (real_twop): Remove.
6667 (expand_main_function): Remove.
6668 (stack_protect_prologue): Remove.
6669 (print_vec_tree): Remove.
6670 (lookup_scoped_attribute_spec): Remove.
6671 (get_attribute_namespace): Remove.
6672 (expand_computed_goto): Remove.
6673 (expand_asm_stmt): Remove.
6674 (list_equal_p): Remove.
6675 (ssa_name_nonnegative_p): Remove.
6676 (fini_object_sizes): Remove.
6677 (addr_expr_of_non_mem_decl_p): Remove.
6678 (is_tm_safe_or_pure): Move to trans-mem.c.
6679 (more_const_call_expr_args_p): Remove.
6680 (save_vtable_map_decl): Remove.
6681
6682 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6683
6684 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6685 linker plugins, too.
6686
6687 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6688 link to libgomp and its dependencies.
6689 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6690 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6691 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6692 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6693
6694 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6695
6696 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6697 (determine_value_range): Add loop argument. Use get_range_info to
6698 improve range.
6699 (bound_difference): Adjust caller.
6700
6701 2013-11-07 Richard Biener <rguenther@suse.de>
6702 Jakub Jelinek <jakub@redhat.com>
6703
6704 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6705 latches from header PHI arguments from the latch edge.
6706
6707 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6708
6709 PR c++/58176
6710 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6711
6712 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6713
6714 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6715 misaligned_prologue_used when it has been set.
6716
6717 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6718 Jakub Jelinek <jakub@redhat.com>
6719
6720 PR sanitizer/59029
6721 * asan.c (get_mem_refs_of_builtin_call): Allow
6722 integer literals as addresses in instrumented builtins.
6723
6724 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6725
6726 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6727 Explain why plus_constant is not used.
6728
6729 2013-11-07 Richard Biener <rguenther@suse.de>
6730
6731 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6732 (canonicalize_value): ... this. Also handle stripping of
6733 TREE_OVERFLOW.
6734 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6735 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6736 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6737
6738 2013-11-07 Richard Biener <rguenther@suse.de>
6739
6740 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6741
6742 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6743
6744 PR target/59034
6745 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6746 with stack_pointer_rtx.
6747
6748 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6749
6750 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6751 using operand_equal_p.
6752
6753 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6754
6755 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6756 * tree-affine.c (get_inner_reference_aff): Return base.
6757 * tree-affine.h (get_inner_reference_aff): Change prototype.
6758
6759 2013-11-06 Tobias Burnus <burnus@net-b.de>
6760
6761 * doc/invoke.texi (Wdate-time): Fix typo.
6762
6763 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6764
6765 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6766 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6767 fp_arith_reg_operand instead of arith_reg_operand.
6768
6769 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6770
6771 * config/sh/sh.md (adddi3): Remove empty constraints.
6772 Remove can_create_pseudo_p and arith_reg_operand check.
6773 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6774 Split before reload.
6775
6776 2013-11-06 Jeff Law <law@redhat.com>
6777 Tom Tromey <tromey@redhat.com>
6778
6779 * gdbinit.in: Disable strict type checking.
6780
6781 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
6782
6783 * tree-pass.h (make_pass_live_range_shrinkage): New external.
6784 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6785 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6786 (rest_of_handle_live_range_shrinkage): Ditto
6787 (class pass_live_range_shrinkage): Ditto.
6788 (pass_data_live_range_shrinkage): Ditto.
6789 (make_pass_live_range_shrinkage): Ditto.
6790 * sched-int.h (initialize_live_range_shrinkage): New prototype.
6791 (finish_live_range_shrinkage): Ditto.
6792 * sched-deps.c (create_insn_reg_set): Make void return value.
6793 * passes.def: Add pass_live_range_shrinkage.
6794 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6795 * haifa-sched.c (live_range_shrinkage_p): New.
6796 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6797 New functions.
6798 (rank_for_schedule): Add code for pressure relief through live
6799 range shrinkage.
6800 (schedule_insn): Print more debug info.
6801 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6802 through live range shrinkage.
6803 * doc/invoke.texi (-flive-range-shrinkage): New.
6804 * common.opt (flive-range-shrinkage): New.
6805
6806 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
6807
6808 PR target/59021
6809 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6810 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6811 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6812 RTXes that return in AVX256 register.
6813
6814 2013-11-06 Richard Biener <rguenther@suse.de>
6815
6816 PR tree-optimization/58653
6817 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6818 (prepare_initializers_chain): Adjust.
6819
6820 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
6821
6822 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6823 (gimple_in_transaction): Use bb_in_transaction.
6824 * basic-block.h (bb_in_transaction): Relocate here and rename.
6825 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6826
6827 2013-11-06 Richard Biener <rguenther@suse.de>
6828
6829 * tree.c (drop_tree_overflow): New function.
6830 * tree.h (drop_tree_overflow): Declare.
6831 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6832 * tree-vrp.c (range_int_cst_singleton_p): Use
6833 is_overflow_infinity instead of testing TREE_OVERFLOW.
6834 (extract_range_from_assert): Likewise.
6835 (zero_nonzero_bits_from_vr): Likewise.
6836 (extract_range_basic): Likewise.
6837 (register_new_assert_for): Use drop_tree_overflow.
6838 (vrp_visit_phi_node): Likewise.
6839
6840 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
6841
6842 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6843 checking for leaf functions without dynamic stack allocation.
6844 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6845 (ia64_expand_prologue): Likewise.
6846 * config/mips/mips.c (mips_expand_prologue): Likewise.
6847 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6848 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6849 (sparc_flat_expand_prologue): Likewise.
6850
6851 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
6852
6853 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6854 (__ST3_LANE_FUNC): Likewise.
6855 (__ST4_LANE_FUNC): Likewise.
6856
6857 2013-11-06 Nick Clifton <nickc@redhat.com>
6858
6859 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6860 name returned by msp430_mcu_name.
6861 (LIB_SPEC): If a -T option has not been specified then set a
6862 default, mcu-specific, linker script.
6863 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6864 * config/msp430/msp430.c (msp430x_names): Likewise.
6865 Alpha sort the names for ease of comparison.
6866 (msp430_mcu_name): New function: Returns a string suitable for
6867 use as a C preprocessor symbol based upon the name of the MCU
6868 being targeted.
6869 (msp430_option_override): Accept msp430x and msp430xv2 as generic
6870 mcu names.
6871 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6872
6873 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6874 unless it is the last part of a spec substring.
6875 * doc/invoke.texi (Spec Files): Document space insertion
6876 behaviour of %*.
6877
6878 2013-11-06 Christian Bruel <christian.bruel@st.com>
6879
6880 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6881 Factorize probabilities, Use adjust_address instead of
6882 adjust_automodify_address when possible. Enable for optimize.
6883 (sh_expand_strlen): New function.
6884 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6885 * config/sh/sh.md (strlensi): New pattern.
6886 (UNSPEC_BUILTIN_STRLEN): Define.
6887
6888 2013-11-06 Jakub Jelinek <jakub@redhat.com>
6889
6890 PR middle-end/58970
6891 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6892 (expand_assignment): If *bitpos is negative, set *offset
6893 and adjust *bitpos, so that it is not negative.
6894
6895 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6896
6897 * config/i386/bdver3.md : Added two additional decoder units
6898 to support issue rate of 4 and remodeled vector unit.
6899 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6900 architectures is set to 4.
6901 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6902 lookahead is set to 4 for BD architectures.
6903
6904 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6905
6906 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6907 Remove restriction against use of VSX instructions when generating
6908 code for little endian mode.
6909
6910 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6911
6912 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6913 for both big and little endian.
6914 (mulv8hi3): Swap input operands for merge high and merge low
6915 instructions for little endian.
6916
6917 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6918
6919 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6920 define_insn to define_expand that uses even patterns for big
6921 endian and odd patterns for little endian.
6922 (vec_widen_smult_even_v16qi): Likewise.
6923 (vec_widen_umult_even_v8hi): Likewise.
6924 (vec_widen_smult_even_v8hi): Likewise.
6925 (vec_widen_umult_odd_v16qi): Likewise.
6926 (vec_widen_smult_odd_v16qi): Likewise.
6927 (vec_widen_umult_odd_v8hi): Likewise.
6928 (vec_widen_smult_odd_v8hi): Likewise.
6929 (altivec_vmuleub): New define_insn.
6930 (altivec_vmuloub): Likewise.
6931 (altivec_vmulesb): Likewise.
6932 (altivec_vmulosb): Likewise.
6933 (altivec_vmuleuh): Likewise.
6934 (altivec_vmulouh): Likewise.
6935 (altivec_vmulesh): Likewise.
6936 (altivec_vmulosh): Likewise.
6937
6938 2013-11-05 Mike Stump <mikestump@comcast.net>
6939
6940 * Makefile.in (mostlyclean): Remove c-family objects.
6941
6942 2013-11-05 Ian Lance Taylor <iant@google.com>
6943
6944 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6945 If possible, add .cfi directives to record change to bx.
6946 * config/i386/i386.c (ix86_emit_cfi): New function.
6947 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6948
6949 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
6950
6951 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6952 immediately after a label for a tablejump pattern.
6953
6954 * config/arm/arm.c (is_jump_table): Remove.
6955 (create_fix_barrier): Use tablejump_p instead.
6956 (arm_reorg): Likewise.
6957 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6958 (thumb2_output_casesi): Likewise.
6959 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6960 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6961 casesi_shift_media, casesi_load_media): Likewise.
6962 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6963 * config/microblaze/microblaze.md: Likewise.
6964
6965 2013-11-05 Tobias Burnus <burnus@net-b.de>
6966
6967 * doc/invoke.texi (-Wdate-time): Document.
6968
6969 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
6970
6971 * double-int.c (lshift_double, rshift_double): Remove
6972 SHIFT_COUNT_TRUNCATED handling.
6973
6974 2013-11-05 Jeff Law <law@redhat.com>
6975
6976 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6977 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6978 * gimple-ssa-isolate-paths.c: New file.
6979 * gimple.c (check_loadstore): New function.
6980 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6981 Verify OP is in the argument list and the argument corresponding
6982 to OP is a pointer type. Use operand_equal_p rather than
6983 pointer equality when testing if OP is on the nonnull list.
6984 Use check_loadstore rather than count_ptr_derefs. Handle
6985 GIMPLE_RETURN statements.
6986 * tree-vrp.c (infer_nonnull_range): Remove.
6987 * gimple.h (infer_nonnull_range): Declare.
6988 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6989 * passes.def: Add pass_isolate_erroneous_paths.
6990 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6991 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6992 * tree-ssa.c (struct count_ptr_d): Remove.
6993 (count_ptr_derefs, count_uses_and_derefs): Remove.
6994 * tree-ssa.h (count_uses_and_derefs): Remove.
6995
6996 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6997
6998 PR rtl-optimization/58997
6999 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7000 get_iv_value to be in iv->mode rather than iv->extend_mode.
7001 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7002 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7003 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7004 mode.
7005
7006 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7007
7008 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7009 list.
7010 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7011 Move to gimple-expr.h.
7012 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7013 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7014 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7015 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7016 Relocate here.
7017 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7018 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7019 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7020 is_gimple_address, is_gimple_invariant_address,
7021 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7022 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7023 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7024 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7025 gimple_decl_printable_name, useless_type_conversion_p,
7026 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7027 gimple-expr.[ch].
7028 * gimple-expr.c: New File.
7029 (useless_type_conversion_p, gimple_set_body, gimple_body,
7030 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7031 gimple_can_coalesce_p, extract_ops_from_tree_1,
7032 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7033 is_gimple_address, is_gimple_invariant_address,
7034 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7035 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7036 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7037 is_gimple_mem_ref_addr): Relocate here.
7038 * Makefile.in (OBJS): Add gimple-expr.o.
7039
7040 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7041
7042 * gengtype-parse.c (struct_field_seq): Support empty structs.
7043
7044 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7045
7046 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7047
7048 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7049
7050 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7051 for !TARGET_80387.
7052 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7053 _SOFT_FLOAT here.
7054 (LONG_DOUBLE_TYPE_SIZE): New define.
7055 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7056
7057 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7058
7059 PR c++/58724
7060 * doc/extend.texi [visibility ("visibility_type")]: Add example
7061 about visibility attribute on namespace declaration.
7062
7063 2013-11-05 Richard Biener <rguenther@suse.de>
7064
7065 PR ipa/58492
7066 * passes.def (all_passes): Start with pass_fixup_cfg again.
7067
7068 2013-11-05 Richard Biener <rguenther@suse.de>
7069
7070 PR tree-optimization/58955
7071 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7072 edge direction.
7073
7074 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7075
7076 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7077 little endian.
7078 (vec_pack_ufix_trunc_v2df): Likewise.
7079
7080 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7081
7082 PR middle-end/58981
7083 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7084 pattern, instead of word_mode.
7085
7086 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7087 Pmode for size.
7088 (set_storage_via_setmem): Likewise.
7089
7090 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7091
7092 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7093 gimple.h and the rest of the condition in eliminate_build.
7094 (eliminate_build): Call new routine.
7095 * gimple.h (phi_ssa_name_p): Delete.
7096
7097 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7098
7099 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7100 case of no prefix and reserving zero slots, because when that's the
7101 case we'll never get here.
7102 * vec.h (va_heap::reserve): Don't try and handle
7103 vec_prefix::calculate_allocation returning zero because that should
7104 never happen.
7105
7106 2013-11-05 Richard Biener <rguenther@suse.de>
7107
7108 PR middle-end/58941
7109 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7110 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7111 process trailing array detection before diving into the
7112 view-converted object (and possibly apply some extra offset).
7113
7114 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7115
7116 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7117 New function.
7118 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7119
7120 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7121
7122 PR tree-optimization/58958
7123 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7124 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7125
7126 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7127
7128 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7129 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7130
7131 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7132
7133 PR tree-optimization/58984
7134 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7135 set *SIZE_P if non-NULL on success.
7136 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7137 callers.
7138 (ipcp_transform_function): Likewise. Punt if size of access
7139 is different from TYPE_SIZE on v->value's type.
7140
7141 2013-11-05 Tobias Burnus <burnus@net-b.de>
7142
7143 * doc/invoke.texi (-fopenmp-simd): Document new option.
7144 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7145 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7146 * tree.c (attribute_value_equal): Ditto.
7147
7148 2013-11-04 Wei Mi <wmi@google.com>
7149
7150 * sched-rgn.c (add_branch_dependences): Keep insns in
7151 a SCHED_GROUP at the end of BB to remain their location.
7152
7153 2013-11-04 Wei Mi <wmi@google.com>
7154
7155 * config/i386/i386.c (memory_address_length): Extract a part
7156 of code to rip_relative_addr_p.
7157 (rip_relative_addr_p): New Function.
7158 (ix86_macro_fusion_p): Ditto.
7159 (ix86_macro_fusion_pair_p): Ditto.
7160 * config/i386/i386.h: Add new tune features about macro-fusion.
7161 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7162 * doc/tm.texi: Generated.
7163 * doc/tm.texi.in: Ditto.
7164 * haifa-sched.c (try_group_insn): New Function.
7165 (group_insns_for_macro_fusion): Ditto.
7166 (sched_init): Call group_insns_for_macro_fusion.
7167 * target.def: Add two hooks: macro_fusion_p and
7168 macro_fusion_pair_p.
7169
7170 2013-11-04 Kostya Serebryany <kcc@google.com>
7171
7172 Update to match the changed asan API.
7173 * asan.c (asan_function_start): New function.
7174 (asan_emit_stack_protection): Update the string stored in the
7175 stack red zone to match new API. Store the PC of the current
7176 function in the red zone.
7177 (asan_global_struct): Update the __asan_global definition to match
7178 the new API.
7179 (asan_add_global): Ditto.
7180 * asan.h (asan_function_start): New prototype.
7181 * final.c (final_start_function): Call asan_function_start.
7182 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7183 to __asan_init_v3.
7184
7185 2013-11-04 Wei Mi <wmi@google.com>
7186
7187 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7188 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7189 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7190 (ix86_issue_rate): Ditto.
7191 (ix86_adjust_cost): Ditto.
7192 (ia32_multipass_dfa_lookahead): Ditto.
7193 (ix86_sched_init_global): Ditto.
7194 (get_builtin_code_for_version): Ditto.
7195 * config/i386/i386.h (enum target_cpu_default): Ditto.
7196 (enum processor_type): Ditto.
7197 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7198
7199 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7200
7201 PR rtl-optimization/58967
7202 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7203 !lra_in_progress for mode sizes bigger word.
7204
7205 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7206
7207 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7208 arguments to merge instruction for little endian.
7209 (vec_widen_umult_lo_v16qi): Likewise.
7210 (vec_widen_smult_hi_v16qi): Likewise.
7211 (vec_widen_smult_lo_v16qi): Likewise.
7212 (vec_widen_umult_hi_v8hi): Likewise.
7213 (vec_widen_umult_lo_v8hi): Likewise.
7214 (vec_widen_smult_hi_v8hi): Likewise.
7215 (vec_widen_smult_lo_v8hi): Likewise.
7216
7217 2013-11-04 Ian Lance Taylor <iant@google.com>
7218
7219 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7220 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7221 builtins that take pointers.
7222 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7223 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7224 (run_gcc): Pass -fnon-call-exceptions.
7225
7226 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7227
7228 * optabs.c (expand_vec_perm): Revert one incorrect line from
7229 2013-10-31 change.
7230
7231 PR tree-optimization/58978
7232 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7233 use_stmt by single_imm_use directly. Only call single_imm_use
7234 on SSA_NAMEs.
7235
7236 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7237
7238 PR rtl-optimization/58968
7239 * lra-spills.c (return_regno_p): New function.
7240 (lra_final_code_change): Use it.
7241
7242 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7243
7244 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7245 * target.def (float_exceptions_rounding_supported_p): New hook.
7246 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7247 function.
7248 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7249 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7250 New @hook.
7251 * doc/tm.texi: Regenerate.
7252 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7253 * config/rs6000/rs6000-linux.c: New file.
7254 * config/rs6000/rs6000-protos.h
7255 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7256 * config/rs6000/linux.h
7257 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7258 * config/rs6000/linux64.h
7259 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7260 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7261 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7262
7263 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7264
7265 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7266 Replace the define_insn_and_split with a define_insn and two
7267 define_splits, with the split after reload re-permuting the source
7268 register to its original value.
7269 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7270 (*vsx_le_perm_store_v8hi): Likewise.
7271 (*vsx_le_perm_store_v16qi): Likewise.
7272
7273 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7274
7275 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7276 little endian.
7277
7278 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7279
7280 PR tree-optimization/58946
7281 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7282 bbs with bbinfo[idx].op != NULL before all blocks with
7283 bbinfo[idx].op == NULL.
7284
7285 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7286
7287 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7288 (avr_dump_double_int_hex): Likewise.
7289 (avr_log_vadump): Remove %D and %X handling.
7290 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7291 (avr_map_op_t): Change map from double_int to unsigned int.
7292 (avr_map_op): Update accordingly.
7293 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7294 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7295 unsigned ints rather than double_ints.
7296
7297 2013-11-03 Marek Polacek <polacek@redhat.com>
7298
7299 Implement -fsanitize=vla-bound.
7300 * opts.c (common_handle_option): Handle vla-bound.
7301 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7302 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7303 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7304
7305 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7306
7307 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7308 little endian.
7309
7310 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7311
7312 * config/i386/constraints.md (Ts, Tv): New address constrains.
7313 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7314 constraint for address_no_seg_operand.
7315 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7316 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7317 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7318 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7319 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7320 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7321 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7322 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7323 constraint for vsib_address_operand.
7324
7325 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7326
7327 * gcse.c (pre_delete): Remove references to regmove from comments.
7328 * recog.c: (validate_replace_rtx_1): Likewise.
7329 * config/rl78/rl78.c: Likewise.
7330 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7331 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7332 * common/config/mmix/mmix-common.c: Likewise.
7333
7334 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7335
7336 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7337 * gimplify.c (gimplify_compound_lval): Likewise.
7338 * graphite-clast-to-gimple.c (gloog): Likewise.
7339 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7340 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7341 (limit_scop); Likewise.
7342 (build_scops): Likewise.
7343 (dot_scop): Likewise.
7344 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7345 (build_scop_drs): Likewise.
7346 (insert_stmts): Likewise.
7347 (insert_out_of_ssa_copy): Likewise.
7348 (remove_phi): Likewise.
7349 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7350 * hw-doloop.c (discover_loop): Likewise.
7351 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7352 * tree-dfa.c (dump_enumerated_decls): Likewise.
7353 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7354 * tree-inline.c (tree_function_versioning): Likewise.
7355 * tree-loop-distribution.c (build_rdg): Likewise.
7356 (rdg_flag_vertex_and_dependent): Likewise.
7357 (distribute_loop): Likewise.
7358 * tree-parloops.c (loop_parallel_p): Likewise.
7359 (eliminate_local_variables): Likewise.
7360 (separate_decls_in_region): Likewise.
7361 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7362 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7363 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7364 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7365 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7366 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7367 (vectorizable_condition): Likewise.
7368
7369 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7370
7371 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7372 * configure: Regenerate.
7373 * config/i386/i386.md (*movdi_internal): Change
7374 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7375 (*movdf_internal): Ditto.
7376 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7377 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7378 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7379
7380 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7381
7382 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7383 after comment.
7384
7385 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7386
7387 Automated part of renaming of symtab_node_base to symtab_node.
7388
7389 Patch autogenerated by rename_symtab.py from
7390 https://github.com/davidmalcolm/gcc-refactoring-scripts
7391 revision 58bb219cc090b2f4516a9297d868c245495ee622
7392 with ChangeLog entry fixed up by hand.
7393
7394 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7395 symtab_node.
7396 (cgraph_node_for_asm): Likewise.
7397 * cgraph.h (symtab_node_base): Likewise.
7398 (cgraph_node): Likewise.
7399 (varpool_node): Likewise.
7400 (is_a_helper <cgraph_node>::test): Likewise.
7401 (is_a_helper <varpool_node>::test): Likewise.
7402 (symtab_nodes): Likewise.
7403 (symtab_register_node): Likewise.
7404 (symtab_unregister_node): Likewise.
7405 (symtab_remove_node): Likewise.
7406 (symtab_get_node): Likewise.
7407 (symtab_node_for_asm): Likewise.
7408 (symtab_node_asm_name): Likewise.
7409 (symtab_node_name): Likewise.
7410 (symtab_insert_node_to_hashtable): Likewise.
7411 (symtab_add_to_same_comdat_group): Likewise.
7412 (symtab_dissolve_same_comdat_group_list): Likewise.
7413 (dump_symtab_node): Likewise.
7414 (debug_symtab_node): Likewise.
7415 (dump_symtab_base): Likewise.
7416 (verify_symtab_node): Likewise.
7417 (verify_symtab_base): Likewise.
7418 (symtab_used_from_object_file_p): Likewise.
7419 (symtab_alias_ultimate_target): Likewise.
7420 (symtab_resolve_alias): Likewise.
7421 (fixup_same_cpp_alias_visibility): Likewise.
7422 (symtab_for_node_and_aliases): Likewise.
7423 (symtab_nonoverwritable_alias): Likewise.
7424 (availability symtab_node_availability): Likewise.
7425 (symtab_semantically_equivalent_p): Likewise.
7426 (fixup_same_cpp_alias_visibility): Likewise.
7427 (symtab_prevail_in_asm_name_hash): Likewise.
7428 (cgraph): Likewise.
7429 (varpool): Likewise.
7430 (varpool_first_variable): Likewise.
7431 (varpool_next_variable): Likewise.
7432 (varpool_first_static_initializer): Likewise.
7433 (varpool_next_static_initializer): Likewise.
7434 (varpool_first_defined_variable): Likewise.
7435 (varpool_next_defined_variable): Likewise.
7436 (cgraph_first_defined_function): Likewise.
7437 (cgraph_next_defined_function): Likewise.
7438 (cgraph_first_function): Likewise.
7439 (cgraph_next_function): Likewise.
7440 (cgraph_first_function_with_gimple_body): Likewise.
7441 (cgraph_next_function_with_gimple_body): Likewise.
7442 (symtab_alias_target): Likewise.
7443 (symtab_real_symbol_p): Likewise.
7444 (symtab_can_be_discarded): Likewise.
7445 * cgraphbuild.c (mark_address): Likewise.
7446 (mark_load): Likewise.
7447 (mark_store): Likewise.
7448 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7449 (first): Likewise.
7450 (enqueue_node): Likewise.
7451 (referred_to_p): Likewise.
7452 (cgraph_process_same_body_aliases): Likewise.
7453 (analyze_functions): Likewise.
7454 (handle_alias_pairs): Likewise.
7455 (output_weakrefs): Likewise.
7456 (compile): Likewise.
7457 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7458 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7459 * ipa-prop.c (remove_described_reference): Likewise.
7460 (try_decrement_rdesc_refcount): Likewise.
7461 (ipa_edge_duplication_hook): Likewise.
7462 * ipa-ref.c (ipa_record_reference): Likewise.
7463 (ipa_maybe_record_reference): Likewise.
7464 (ipa_clone_ref): Likewise.
7465 (ipa_clone_references): Likewise.
7466 (ipa_clone_referring): Likewise.
7467 (ipa_find_reference): Likewise.
7468 (ipa_remove_stmt_references): Likewise.
7469 (ipa_clear_stmts_in_references): Likewise.
7470 * ipa-ref.h (symtab_node_base): Likewise.
7471 (ipa_ref): Likewise.
7472 (ipa_record_reference): Likewise.
7473 (ipa_maybe_record_reference): Likewise.
7474 (ipa_clone_references): Likewise.
7475 (ipa_clone_referring): Likewise.
7476 (ipa_clone_ref): Likewise.
7477 (ipa_find_reference): Likewise.
7478 (ipa_remove_stmt_references): Likewise.
7479 (ipa_clear_stmts_in_references): Likewise.
7480 * ipa-reference.c (ipa_reference_write_optimization_summary):
7481 Likewise.
7482 * ipa.c (enqueue_node): Likewise.
7483 (process_references): Likewise.
7484 (walk_polymorphic_call_targets): Likewise.
7485 (symtab_remove_unreachable_nodes): Likewise.
7486 (address_taken_from_non_vtable_p): Likewise.
7487 (comdat_can_be_unshared_p_1): Likewise.
7488 (comdat_can_be_unshared_p): Likewise.
7489 (can_replace_by_local_alias): Likewise.
7490 (function_and_variable_visibility): Likewise.
7491 * is-a.h: Likewise (within example in comment).
7492 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7493 (lto_symtab_encoder_encode): Likewise.
7494 (lto_symtab_encoder_delete_node): Likewise.
7495 (lto_symtab_encoder_in_partition_p): Likewise.
7496 (lto_set_symtab_encoder_in_partition): Likewise.
7497 (output_refs): Likewise.
7498 (compute_ltrans_boundary): Likewise.
7499 (output_symtab): Likewise.
7500 (input_node): Likewise.
7501 (input_ref): Likewise.
7502 (input_edge): Likewise.
7503 (input_cgraph_1): Likewise.
7504 (input_refs): Likewise.
7505 (output_cgraph_opt_summary): Likewise.
7506 (input_node_opt_summary): Likewise.
7507 (input_cgraph_opt_section): Likewise.
7508 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7509 Likewise.
7510 * lto-streamer-out.c (lto_output): Likewise.
7511 (output_symbol_p): Likewise.
7512 (produce_symtab): Likewise.
7513 * lto-streamer.h (lto_encoder_entry): Likewise.
7514 (lto_free_function_in_decl_state_for_node): Likewise.
7515 (lto_symtab_encoder_encode): Likewise.
7516 (lto_symtab_encoder_delete_node): Likewise.
7517 (lto_symtab_encoder_in_partition_p): Likewise.
7518 (lto_set_symtab_encoder_in_partition): Likewise.
7519 (lto_symtab_encoder_lookup): Likewise.
7520 (lsei_node): Likewise.
7521 (lto_symtab_encoder_deref): Likewise.
7522 * symtab.c (symtab_hash): Likewise.
7523 (assembler_name_hash): Likewise.
7524 (symtab_nodes): Likewise.
7525 (hash_node): Likewise.
7526 (eq_node): Likewise.
7527 (hash_node_by_assembler_name): Likewise.
7528 (eq_assembler_name): Likewise.
7529 (insert_to_assembler_name_hash): Likewise.
7530 (unlink_from_assembler_name_hash): Likewise.
7531 (symtab_prevail_in_asm_name_hash): Likewise.
7532 (symtab_register_node): Likewise.
7533 (symtab_insert_node_to_hashtable): Likewise.
7534 (symtab_unregister_node): Likewise.
7535 (symtab_get_node): Likewise.
7536 (symtab_remove_node): Likewise.
7537 (symtab_initialize_asm_name_hash): Likewise.
7538 (symtab_node_for_asm): Likewise.
7539 (symtab_add_to_same_comdat_group): Likewise.
7540 (symtab_dissolve_same_comdat_group_list): Likewise.
7541 (symtab_node_asm_name): Likewise.
7542 (symtab_node_name): Likewise.
7543 (dump_symtab_base): Likewise.
7544 (dump_symtab_node): Likewise.
7545 (dump_symtab): Likewise.
7546 (debug_symtab_node): Likewise.
7547 (verify_symtab_base): Likewise.
7548 (verify_symtab_node): Likewise.
7549 (verify_symtab): Likewise.
7550 (symtab_used_from_object_file_p): Likewise.
7551 (symtab_node_availability): Likewise.
7552 (symtab_alias_ultimate_target): Likewise.
7553 (fixup_same_cpp_alias_visibility): Likewise.
7554 (symtab_resolve_alias): Likewise.
7555 (symtab_for_node_and_aliases): Likewise.
7556 (symtab_for_node_and_aliases): Likewise.
7557 (symtab_nonoverwritable_alias_1): Likewise.
7558 (symtab_nonoverwritable_alias): Likewise.
7559 (symtab_semantically_equivalent_p): Likewise.
7560 * value-prof.c (init_node_map): Likewise.
7561 * varasm.c (find_decl): Likewise.
7562 * varpool.c (varpool_node_for_asm): Likewise.
7563 (varpool_remove_unreferenced_decls): Likewise.
7564
7565 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7566
7567 Manual part of renaming of symtab_node_base to symtab_node.
7568
7569 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7570 clashes with the preferred name for the base class.
7571 (const_symtab_node): Remove redundant typedef.
7572
7573 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7574
7575 * optabs.c (expand_vec_perm): Avoid vector mode punning
7576 SUBREGs in SET_DEST.
7577 * expmed.c (store_bit_field_1): Likewise.
7578 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7579 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7580 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7581 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7582 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7583 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7584 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7585 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7586 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7587 expand_vec_perm_vpshufb2_vpermq,
7588 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7589 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7590 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7591 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7592 than *d itself.
7593
7594 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7595
7596 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7597 Use gcc_unreachable for unhandled modes. Do not check results of
7598 expand_simple_binop. If not expanded to target, move the result.
7599
7600 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7601 Shiva Chen <shiva0217@gmail.com>
7602
7603 * config.gcc (nds32*-*-*): Add nds32 target.
7604 * config/nds32/nds32.c: New file.
7605 * config/nds32/nds32.h: New file.
7606 * config/nds32/nds32.md: New file.
7607 * config/nds32/constants.md: New file.
7608 * config/nds32/constraints.md: New file.
7609 * config/nds32/iterators.md: New file.
7610 * config/nds32/nds32-doubleword.md: New file.
7611 * config/nds32/nds32-intrinsic.md: New file.
7612 * config/nds32/nds32_intrinsic.h: New file.
7613 * config/nds32/nds32-modes.def: New file.
7614 * config/nds32/nds32-multiple.md: New file.
7615 * config/nds32/nds32.opt: New file.
7616 * config/nds32/nds32-opts.h: New file.
7617 * config/nds32/nds32-protos.h: New file.
7618 * config/nds32/nds32-peephole2.md: New file.
7619 * config/nds32/pipelines.md: New file.
7620 * config/nds32/predicates.md: New file.
7621 * config/nds32/t-mlibs: New file.
7622 * common/config/nds32: New directory and files.
7623
7624 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7625 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7626 * doc/install.texi (Cross-Compiler-Specific Options): Document
7627 --with-nds32-lib for nds32 target.
7628 * doc/extend.texi (Function Attributes, Target Builtins): Document
7629 nds32 specific attributes.
7630
7631 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7632
7633 * lra-constraints (process_alt_operands): Use the result
7634 elimination register for operand when matching constraints.
7635
7636 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7637
7638 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7639 (remove_range_assertions): Call it.
7640
7641 * tree.c (tree_ctz): New function.
7642 * tree.h (tree_ctz): New prototype.
7643 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7644 first argument from tree to const_tree.
7645 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7646 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7647 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7648 static.
7649 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7650 * tree-vect-loop.c (vect_analyze_loop_operations,
7651 vect_transform_loop): Don't force scalar loop for bound just because
7652 number of iterations is unknown, only do it if it is not known to be
7653 a multiple of vectorization_factor.
7654 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7655
7656 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7657 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7658 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7659 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7660 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7661 a default def isn't partially constant.
7662 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7663 is known to be partially zero.
7664 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7665 to see if a default def isn't partially constant.
7666 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7667 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7668 the range.
7669 (set_nonzero_bits, get_nonzero_bits): New functions.
7670
7671 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7672 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7673 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7674 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7675 uses but in the condition and ASSERT_EXPR and the other successor of
7676 the predecessor bb is __builtin_unreachable (), set_range_info of the
7677 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7678
7679 2013-10-31 Martin Jambor <mjambor@suse.cz>
7680
7681 PR rtl-optimization/58934
7682 Revert:
7683 2013-10-30 Martin Jambor <mjambor@suse.cz>
7684 PR rtl-optimization/10474
7685 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7686 nor df analysis.
7687 (interesting_dest_for_shprep): New function.
7688 (split_live_ranges_for_shrink_wrap): Likewise.
7689 (ira): Calculate dominance info and df analysis. Call
7690 split_live_ranges_for_shrink_wrap.
7691
7692 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7693 Yury Gribov <y.gribov@samsung.com>
7694
7695 PR sanitizer/58543
7696 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7697 shadow pointer to avoid clobbering the main one.
7698
7699 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7700
7701 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7702
7703 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7704
7705 PR bootstrap/58933
7706 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7707 it for calling update_costs_from_allocno.
7708 (assign_hard_reg): Call restore_costs_from_copies only for
7709 !retry_p. Pass new argument to update_costs_from_copies.
7710 (color_pass): Pass new argument to update_costs_from_copies.
7711 (ira_mark_allocation_change): Ditto.
7712
7713 2013-10-30 Sharad Singhai <singhai@google.com>
7714
7715 PR middle-end/58134
7716 * opts.c (common_handle_option): Remove deprecated option
7717 -ftree-vectorizer-verbose.
7718 * doc/invoke.texi (Debugging Options): Ditto.
7719 * opts-global.c (handle_common_deferred_options): Ditto.
7720 (dump_remap_tree_vectorizer_verbose): Delete.
7721 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7722
7723 2013-10-30 DJ Delorie <dj@redhat.com>
7724
7725 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7726 that take no arguments.
7727
7728 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7729
7730 PR other/58545
7731 * reload1.c (update_eliminables_and_spill): New function, broken
7732 out of reload.
7733 (reload): Use it. Check for frame size change after frame size
7734 alignment, and call update_eliminables_and_spill first if continue-ing.
7735
7736 2013-10-30 Cong Hou <congh@google.com>
7737
7738 PR target/58762
7739 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7740 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7741 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7742
7743 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7744
7745 PR rtl-optimization/58369
7746 * reload1.c (compute_reload_subreg_offset): New function.
7747 (choose_reload_regs): Use it to pass endian-correct
7748 offset to subreg_regno_offset.
7749
7750 2013-10-30 Tobias Burnus <burnus@net-b.de>
7751
7752 PR other/33426
7753 * tree-cfg.c (replace_loop_annotate): Replace warning by
7754 warning_at.
7755
7756 2013-10-30 Jason Merrill <jason@redhat.com>
7757
7758 * configure.ac (loose_warn): Add -Wno-format if
7759 --disable-build-format-warnings.
7760
7761 2013-10-30 David Malcolm <dmalcolm@redhat.com>
7762
7763 * cgraphunit.c (analyze_functions): Split symtab_node declarations
7764 onto multiple lines to make things easier for rename_symtab.py.
7765
7766 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7767 (symtab_semantically_equivalent_p): Likewise.
7768
7769 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7770
7771 PR target/58784
7772 * lra.c (check_rtl): Remove address check before LRA work.
7773
7774 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
7775
7776 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7777 POINTER_PLUS_EXPR in the defining statement.
7778
7779 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7780
7781 * regmove.c: Remove.
7782 * tree-pass.h (make_pass_regmove): Remove.
7783 * timevar.def (TV_REGMOVE): Remove.
7784 * passes.def (pass_regmove): Remove.
7785 * opts.c (default_options_table): Remove entry for regmove.
7786 * doc/passes.texi: Remove regmove pass description.
7787 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7788 options.
7789 (-fdump-rtl-regmove): Ditto.
7790 * common.opt (foptimize-register-move, fregmove): Ignore.
7791 * Makefile.in (OBJS): Remove regmove.o.
7792 * regmove.c: Remove.
7793 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7794 and type.
7795 (struct ira_allocno) New member allocno_prefs.
7796 (ALLOCNO_PREFS): New macro.
7797 (ira_prefs, ira_prefs_num): New external vars.
7798 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7799 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7800 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7801 Ditto.
7802 (ira_add_allocno_copy_to_list): Remove prototype.
7803 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7804 (ira_pref_iterator): New type.
7805 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7806 (FOR_EACH_PREF): New macro.
7807 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7808 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
7809 code.
7810 (ira_setup_alts): New function.
7811 (decrease_live_ranges_number): New function.
7812 (ira): Call the above function.
7813 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7814 (ira_create_allocno): Initialize allocno prefs.
7815 (pref_pool, pref_vec): New static vars.
7816 (initiate_prefs, find_allocno_pref, ira_create_pref): New
7817 functions.
7818 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7819 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7820 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7821 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7822 (ira_add_allocno_copy_to_list): Make static. Rename to
7823 add_allocno_copy_to_list.
7824 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
7825 swap_allocno_copy_ends_if_necessary.
7826 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7827 ira_remove_allocno_prefs.
7828 (ira_flattening): Ditto.
7829 (ira_build): Call initiate_prefs, print_prefs.
7830 (ira_destroy): Call finish_prefs.
7831 * ira-color.c (struct update_cost_record): New.
7832 (struct allocno_color_data): Add new member update_cost_records.
7833 (update_cost_record_pool): New static var.
7834 (init_update_cost_records, get_update_cost_record): New functions.
7835 (free_update_cost_record_list, finish_update_cost_records): Ditto.
7836 (struct update_cost_queue_elem): Add member from.
7837 (initiate_cost_update): Call init_update_cost_records.
7838 (finish_cost_update): Call finish_update_cost_records.
7839 (queue_update_cost, get_next_update_cost): Add new param from.
7840 (Update_allocno_cost, update_costs_from_allocno): New functions.
7841 (update_costs_from_prefs): Ditto.
7842 (update_copy_costs): Rename to update_costs_from_copies.
7843 (restore_costs_from_copies): New function.
7844 (update_conflict_hard_regno_costs): Don't go back.
7845 (assign_hard_reg): Call restore_costs_from_copies. Add printing
7846 more debug info.
7847 (pop_allocnos): Add priniting more debug info.
7848 (color_allocnos): Remove prefs for conflicting hard regs.
7849 Call update_costs_from_prefs.
7850 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7851 (get_dup_num): Rename, modify, and move to ira.c
7852 (process_regs_for_copy): Add prefs.
7853 (add_insn_allocno_copies): Put src as first arg of
7854 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
7855 * ira-costs.c (record_reg_classes): Modify and move code into
7856 record_operands_costs.
7857 (find_costs_and_classes): Create prefs for the hard reg of small
7858 reg class.
7859 (process_bb_node_for_hard_reg_moves): Add prefs.
7860
7861 2013-10-30 Richard Biener <rguenther@suse.de>
7862
7863 PR middle-end/57100
7864 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7865 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7866 as worker for ...
7867 (pre_and_rev_post_order_compute): ... which now wraps it.
7868 * graph.c (draw_cfg_nodes_no_loops): Use
7869 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7870 on cfun.
7871
7872 2013-10-30 Christian Bruel <christian.bruel@st.com>
7873
7874 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7875 (sh_expand_cmpstr): Handle known align and schedule improvements.
7876 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7877 * config/sh/sh.md (cmpstrnsi): New pattern.
7878
7879 2013-10-30 Martin Jambor <mjambor@suse.cz>
7880
7881 PR rtl-optimization/10474
7882 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7883 nor df analysis.
7884 (interesting_dest_for_shprep): New function.
7885 (split_live_ranges_for_shrink_wrap): Likewise.
7886 (ira): Calculate dominance info and df analysis. Call
7887 split_live_ranges_for_shrink_wrap.
7888
7889 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7890
7891 PR target/58854
7892 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7893
7894 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7895
7896 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7897 * tree.h (POINTER_BOUNDS_P): New.
7898 (BOUNDED_TYPE_P): New.
7899 (BOUNDED_P): New.
7900 (pointer_bounds_type_node): New.
7901 * tree.c (build_common_tree_nodes): Initialize
7902 pointer_bounds_type_node.
7903 * gimple.h (gimple_call_get_nobnd_arg_index): New.
7904 (gimple_call_num_nobnd_args): New.
7905 (gimple_call_nobnd_arg): New.
7906 (gimple_return_retbnd): New.
7907 (gimple_return_set_retbnd): New
7908 * gimple.c (gimple_build_return): Increase number of ops
7909 for return statement.
7910 (gimple_call_get_nobnd_arg_index): New.
7911 * gimple-pretty-print.c (dump_gimple_return): Print second op.
7912
7913 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7914
7915 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7916 with "chkp ctor" and "bnd_legacy" attributes.
7917 * gimplify.c (gimplify_init_constructor): Avoid infinite
7918 loop during gimplification of bounds initializer.
7919
7920 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7921
7922 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7923 (handle_bnd_legacy): New.
7924 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7925 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7926 attributes.
7927
7928 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
7929
7930 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7931 (BT_FN_PTR_CONST_PTR): New.
7932 (BT_FN_CONST_PTR_CONST_PTR): New.
7933 (BT_FN_PTR_CONST_PTR_SIZE): New.
7934 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7935 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7936 (BT_FN_VOID_CONST_PTR_SIZE): New.
7937 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7938 * chkp-builtins.def: New.
7939 * builtins.def: include chkp-builtins.def.
7940 (DEF_CHKP_BUILTIN): New.
7941 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7942 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7943 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7944 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7945 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7946 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7947 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7948 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7949 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7950 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7951 * common.opt (fcheck-pointer-bounds): New.
7952 * toplev.c (process_options): Check Pointer Bounds Checker is
7953 supported.
7954 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7955
7956 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7957
7958 * target.def (builtin_chkp_function): New.
7959 (chkp_bound_type): New.
7960 (chkp_bound_mode): New.
7961 (fn_abi_va_list_bounds_size): New.
7962 (load_bounds_for_arg): New.
7963 (store_bounds_for_arg): New.
7964 * targhooks.h (default_load_bounds_for_arg): New.
7965 (default_store_bounds_for_arg): New.
7966 (default_fn_abi_va_list_bounds_size): New.
7967 (default_chkp_bound_type): New.
7968 (default_chkp_bound_mode): New.
7969 (default_builtin_chkp_function): New.
7970 * targhooks.c (default_load_bounds_for_arg): New.
7971 (default_store_bounds_for_arg): New.
7972 (default_fn_abi_va_list_bounds_size): New.
7973 (default_chkp_bound_type): New.
7974 (default_chkp_bound_mode); New.
7975 (default_builtin_chkp_function): New.
7976 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7977 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7978 (TARGET_STORE_BOUNDS_FOR_ARG): New.
7979 (TARGET_BUILTIN_CHKP_FUNCTION): New.
7980 (TARGET_CHKP_BOUND_TYPE): New.
7981 (TARGET_CHKP_BOUND_MODE): New.
7982 * doc/tm.texi: Regenerated.
7983 * langhooks.h (lang_hooks): Add chkp_supported field.
7984 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7985 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7986
7987 2013-10-29 Andrew Pinski <apinski@cavium.com>
7988
7989 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7990 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7991 fails, combining the branches anyways.
7992 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7993 increases the number of combinings.
7994 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7995
7996 2013-10-29 Mike Stump <mikestump@comcast.net>
7997
7998 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7999 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8000 (make_vector_mode): Increase namebuf to 16.
8001 (emit_insn_modes_h): When processing BImode, don't
8002 also match partial int modes.
8003 (emit_class_narrowest_mode): Likewise.
8004
8005 * config/bfin/bfin-modes.def: Add precision to PDI.
8006 * config/m32c/m32c-modes.def: Add precision to PSI.
8007 * config/msp430/msp430-modes.def: Add precision to PSI.
8008 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8009 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8010
8011 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8012
8013 PR target/54236
8014 * config/sh/sh.md (*addc): Rename existing variations to ...
8015 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8016 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8017 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8018 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8019
8020 2013-10-29 Teresa Johnson <tejohnson@google.com>
8021
8022 PR ipa/58862
8023 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8024 insanities when updating probabilities.
8025
8026 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8027
8028 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8029 prettyprinter for cgraph_node to reflect the conversion of the
8030 symtable types to a C++ class hierarchy: it now *is* a
8031 symtab_node_base, rather than having one (named "symbol").
8032
8033 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8034
8035 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8036 __cilkrts_pop_frame. If matched, then return true for built-in
8037 function name.
8038 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8039 BUILT_IN_CILK_POP_FRAME case.
8040 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8041 (lhs_cilk_detect_spawn): Likewise.
8042 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8043 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8044 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8045 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8046 (LANG_HOOKS_CILKPLUS): Likewise.
8047 * tree.h (CILK_SPAWN_FN): Likewise.
8048 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8049 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8050 (OBJS): Added cilk-common.o.
8051 (BUILTINS_DEF): Added cilk-builtins.def.
8052 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8053 (lhd_cilk_detect_spawn): Likewise.
8054 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8055 (struct lang_hooks): Added new field called "cilkplus."
8056 * cilk-common.c: New file.
8057 * cilk.h: Likewise.
8058 * cilk-builtins.def: Likewise.
8059 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8060 "__cilk" macro and set it to 200.
8061 * function.h (struct function::cilk_frame_decl): New field.
8062 (struct function::is_cilk_function): Likewise.
8063 (struct function::calls_cilk_spawn): Likewise.
8064 * gimplify.c (gimplify_call_expr): Added a check if the function call
8065 being gimplified is a spawn detach point. If so, then add pop_frame
8066 and detach function calls.
8067 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8068 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8069 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8070 function. If so, added a _Cilk_sync and gimplified it.
8071 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8072 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8073 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8074 spawner function.
8075 (can_inline_edge_p): Prevent inling of spawnee function.
8076 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8077 for functions that use Cilk keywords.
8078 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8079 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8080 CILK_SYNC_STMT cases.
8081 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8082 trees.
8083 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8084 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8085 * passes.texi (Cilk Keywords): New section that describes the compiler
8086 code changes for handling Cilk Keywords.
8087
8088 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8089
8090 Patch autogenerated by refactor_symtab.py from
8091 https://github.com/davidmalcolm/gcc-refactoring-scripts
8092 revision 58bb219cc090b2f4516a9297d868c245495ee622
8093
8094 * asan.c (asan_finish_file): Update for conversion of symtab types to
8095 a true class hierarchy.
8096 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8097 * cgraph.c (cgraph_get_body): Likewise.
8098 (cgraph_get_create_real_symbol_node): Likewise.
8099 (verify_cgraph_node): Likewise.
8100 (verify_edge_corresponds_to_fndecl): Likewise.
8101 (verify_edge_count_and_frequency): Likewise.
8102 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8103 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8104 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8105 (cgraph_node_cannot_return): Likewise.
8106 (cgraph_set_pure_flag_1): Likewise.
8107 (cgraph_set_const_flag_1): Likewise.
8108 (cgraph_set_nothrow_flag_1): Likewise.
8109 (cgraph_make_node_local_1): Likewise.
8110 (cgraph_for_node_and_aliases): Likewise.
8111 (cgraph_for_node_thunks_and_aliases): Likewise.
8112 (cgraph_node_can_be_local_p): Likewise.
8113 (cgraph_node_cannot_be_local_p_1): Likewise.
8114 (cgraph_function_body_availability): Likewise.
8115 (dump_cgraph_node): Likewise.
8116 (cgraph_rtl_info): Likewise.
8117 (cgraph_mark_address_taken_node): Likewise.
8118 (cgraph_remove_node): Likewise.
8119 (cgraph_release_function_body): Likewise.
8120 (cgraph_update_edges_for_call_stmt_node): Likewise.
8121 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8122 (cgraph_make_edge_direct): Likewise.
8123 (cgraph_resolve_speculation): Likewise.
8124 (cgraph_speculative_call_info): Likewise.
8125 (cgraph_turn_edge_to_speculative): Likewise.
8126 (cgraph_create_edge_1): Likewise.
8127 (cgraph_set_call_stmt): Likewise.
8128 (cgraph_node_for_asm): Likewise.
8129 (cgraph_add_thunk): Likewise.
8130 (cgraph_same_body_alias): Likewise.
8131 (cgraph_create_function_alias): Likewise.
8132 (cgraph_create_node): Likewise.
8133 (cgraph_create_empty_node): Likewise.
8134 (record_function_versions): Likewise.
8135 (used_from_object_file_p): Likewise.
8136 * cgraph.h (symtab_can_be_discarded): Likewise.
8137 (symtab_real_symbol_p): Likewise.
8138 (cgraph_mark_force_output_node): Likewise.
8139 (cgraph_edge_recursive_p): Likewise.
8140 (symtab_alias_target): Likewise.
8141 (varpool_all_refs_explicit_p): Likewise.
8142 (varpool_can_remove_if_no_refs): Likewise.
8143 (cgraph_only_called_directly_or_aliased_p): Likewise.
8144 (cgraph_next_function_with_gimple_body): Likewise.
8145 (cgraph_first_function_with_gimple_body): Likewise.
8146 (cgraph_function_with_gimple_body_p): Likewise.
8147 (cgraph_next_function): Likewise.
8148 (cgraph_first_function): Likewise.
8149 (cgraph_next_defined_function): Likewise.
8150 (cgraph_first_defined_function): Likewise.
8151 (varpool_next_defined_variable): Likewise.
8152 (varpool_first_defined_variable): Likewise.
8153 (varpool_next_static_initializer): Likewise.
8154 (varpool_first_static_initializer): Likewise.
8155 (varpool_next_variable): Likewise.
8156 (varpool_first_variable): Likewise.
8157 (varpool_node_name): Likewise.
8158 (varpool): Likewise.
8159 (cgraph): Likewise.
8160 (is_a_helper <varpool_node>::test): Likewise.
8161 (is_a_helper <cgraph_node>::test): Likewise.
8162 (varpool_variable_node): Likewise.
8163 (cgraph_function_or_thunk_node): Likewise.
8164 (varpool_alias_target): Likewise.
8165 (cgraph_alias_target): Likewise.
8166 (cgraph_node_name): Likewise.
8167 (varpool_node_asm_name): Likewise.
8168 (cgraph_node_asm_name): Likewise.
8169 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8170 (cgraph_rebuild_references): Likewise.
8171 (rebuild_cgraph_edges): Likewise.
8172 (record_eh_tables): Likewise.
8173 (build_cgraph_edges): Likewise.
8174 (mark_store): Likewise.
8175 (mark_load): Likewise.
8176 (mark_address): Likewise.
8177 (record_type_list): Likewise.
8178 (record_reference): Likewise.
8179 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8180 (cgraph_materialize_clone): Likewise.
8181 (cgraph_function_versioning): Likewise.
8182 (cgraph_copy_node_for_versioning): Likewise.
8183 (update_call_expr): Likewise.
8184 (cgraph_find_replacement_node): Likewise.
8185 (cgraph_create_virtual_clone): Likewise.
8186 (cgraph_clone_node): Likewise.
8187 * cgraphunit.c (compile): Likewise.
8188 (output_weakrefs): Likewise.
8189 (output_in_order): Likewise.
8190 (expand_function): Likewise.
8191 (assemble_thunks_and_aliases): Likewise.
8192 (expand_thunk): Likewise.
8193 (mark_functions_to_output): Likewise.
8194 (handle_alias_pairs): Likewise.
8195 (analyze_functions): Likewise.
8196 (walk_polymorphic_call_targets): Likewise.
8197 (varpool_finalize_decl): Likewise.
8198 (process_function_and_variable_attributes): Likewise.
8199 (cgraph_process_same_body_aliases): Likewise.
8200 (analyze_function): Likewise.
8201 (cgraph_add_new_function): Likewise.
8202 (cgraph_finalize_function): Likewise.
8203 (referred_to_p): Likewise.
8204 (cgraph_reset_node): Likewise.
8205 (cgraph_process_new_functions): Likewise.
8206 (enqueue_node): Likewise.
8207 (decide_is_symbol_needed): Likewise.
8208 * coverage.c (coverage_compute_profile_id): Likewise.
8209 * dbxout.c (dbxout_expand_expr): Likewise.
8210 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8211 (reference_to_unused): Likewise.
8212 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8213 * gimplify.c (unvisit_body): Likewise.
8214 (unshare_body): Likewise.
8215 * ipa-cp.c (ipcp_generate_summary): Likewise.
8216 (ipcp_decision_stage): Likewise.
8217 (identify_dead_nodes): Likewise.
8218 (decide_whether_version_node): Likewise.
8219 (decide_about_value): Likewise.
8220 (perhaps_add_new_callers): Likewise.
8221 (create_specialized_node): Likewise.
8222 (update_profiling_info): Likewise.
8223 (ipcp_propagate_stage): Likewise.
8224 (estimate_local_effects): Likewise.
8225 (good_cloning_opportunity_p): Likewise.
8226 (devirtualization_time_bonus): Likewise.
8227 (propagate_constants_accross_call): Likewise.
8228 (initialize_node_lattices): Likewise.
8229 (ipcp_cloning_candidate_p): Likewise.
8230 (determine_versionability): Likewise.
8231 (print_all_lattices): Likewise.
8232 (print_lattice): Likewise.
8233 (ipcp_discover_new_direct_edges): Likewise.
8234 * ipa-devirt.c (ipa_devirt): Likewise.
8235 (likely_target_p): Likewise.
8236 (update_type_inheritance_graph): Likewise.
8237 (possible_polymorphic_call_target_p): Likewise.
8238 (dump_possible_polymorphic_call_targets): Likewise.
8239 (devirt_variable_node_removal_hook): Likewise.
8240 (record_binfo): Likewise.
8241 (maybe_record_node): Likewise.
8242 (build_type_inheritance_graph): Likewise.
8243 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8244 (inline_generate_summary): Likewise.
8245 (inline_analyze_function): Likewise.
8246 (do_estimate_growth): Likewise.
8247 (simple_edge_hints): Likewise.
8248 (estimate_node_size_and_time): Likewise.
8249 (estimate_edge_devirt_benefit): Likewise.
8250 (compute_inline_parameters): Likewise.
8251 (estimate_function_body_sizes): Likewise.
8252 (compute_bb_predicates): Likewise.
8253 (initialize_inline_failed): Likewise.
8254 (dump_inline_summary): Likewise.
8255 (dump_inline_edge_summary): Likewise.
8256 * ipa-inline-transform.c (inline_transform): Likewise.
8257 (preserve_function_body_p): Likewise.
8258 (save_inline_function_body): Likewise.
8259 (inline_call): Likewise.
8260 (clone_inlined_nodes): Likewise.
8261 (can_remove_node_now_p): Likewise.
8262 (can_remove_node_now_p_1): Likewise.
8263 * ipa-inline.c (early_inliner): Likewise.
8264 (early_inline_small_functions): Likewise.
8265 (inline_always_inline_functions): Likewise.
8266 (ipa_inline): Likewise.
8267 (flatten_function): Likewise.
8268 (inline_small_functions): Likewise.
8269 (speculation_useful_p): Likewise.
8270 (recursive_inlining): Likewise.
8271 (update_caller_keys): Likewise.
8272 (reset_edge_caches): Likewise.
8273 (update_edge_key): Likewise.
8274 (edge_badness): Likewise.
8275 (relative_time_benefit): Likewise.
8276 (want_inline_self_recursive_call_p): Likewise.
8277 (want_inline_small_function_p): Likewise.
8278 (want_early_inline_function_p): Likewise.
8279 (num_calls): Likewise.
8280 (can_early_inline_edge_p): Likewise.
8281 (can_inline_edge_p): Likewise.
8282 (report_inline_failed_reason): Likewise.
8283 * ipa-profile.c (ipa_profile): Likewise.
8284 (ipa_propagate_frequency): Likewise.
8285 (ipa_propagate_frequency_1): Likewise.
8286 (ipa_profile_generate_summary): Likewise.
8287 * ipa-prop.c (ipcp_transform_function): Likewise.
8288 (read_replacements_section): Likewise.
8289 (ipa_prop_read_section): Likewise.
8290 (ipa_modify_call_arguments): Likewise.
8291 (ipa_print_node_params): Likewise.
8292 (propagate_controlled_uses): Likewise.
8293 (update_indirect_edges_after_inlining): Likewise.
8294 (remove_described_reference): Likewise.
8295 (ipa_make_edge_direct_to_target): Likewise.
8296 (ipa_analyze_node): Likewise.
8297 (ipa_analyze_params_uses): Likewise.
8298 (ipa_compute_jump_functions): Likewise.
8299 (ipa_get_callee_param_type): Likewise.
8300 (ipa_print_node_jump_functions): Likewise.
8301 (ipa_initialize_node_params): Likewise.
8302 (ipa_populate_param_decls): Likewise.
8303 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8304 (write_agg_replacement_chain): Likewise.
8305 (ipa_write_node_info): Likewise.
8306 (ipa_edge_duplication_hook): Likewise.
8307 (try_decrement_rdesc_refcount): Likewise.
8308 * ipa-pure-const.c (propagate_nothrow): Likewise.
8309 (propagate_pure_const): Likewise.
8310 (pure_const_read_summary): Likewise.
8311 (pure_const_write_summary): Likewise.
8312 (analyze_function): Likewise.
8313 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8314 (ipa_ref_referring_ref_list): Likewise.
8315 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8316 (ipa_remove_stmt_references): Likewise.
8317 (ipa_find_reference): Likewise.
8318 (ipa_dump_referring): Likewise.
8319 (ipa_dump_references): Likewise.
8320 (ipa_record_reference): Likewise.
8321 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8322 (ipa_reference_write_optimization_summary): Likewise.
8323 (write_node_summary_p): Likewise.
8324 (propagate): Likewise.
8325 (read_write_all_from_decl): Likewise.
8326 (generate_summary): Likewise.
8327 (analyze_function): Likewise.
8328 (propagate_bits): Likewise.
8329 (ipa_reference_get_not_written_global): Likewise.
8330 (ipa_reference_get_not_read_global): Likewise.
8331 * ipa-split.c (execute_split_functions): Likewise.
8332 (split_function): Likewise.
8333 * ipa-utils.c (ipa_merge_profiles): Likewise.
8334 (dump_cgraph_node_set): Likewise.
8335 (ipa_reverse_postorder): Likewise.
8336 (ipa_edge_within_scc): Likewise.
8337 (ipa_get_nodes_in_cycle): Likewise.
8338 (ipa_free_postorder_info): Likewise.
8339 (ipa_reduced_postorder): Likewise.
8340 (searchc): Likewise.
8341 (recursive_call_p): Likewise.
8342 * ipa.c (ipa_cdtor_merge): Likewise.
8343 (record_cdtor_fn): Likewise.
8344 (function_and_variable_visibility): Likewise.
8345 (varpool_externally_visible_p): Likewise.
8346 (cgraph_externally_visible_p): Likewise.
8347 (comdat_can_be_unshared_p): Likewise.
8348 (comdat_can_be_unshared_p_1): Likewise.
8349 (address_taken_from_non_vtable_p): Likewise.
8350 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8351 (symtab_remove_unreachable_nodes): Likewise.
8352 (walk_polymorphic_call_targets): Likewise.
8353 (process_references): Likewise.
8354 (enqueue_node): Likewise.
8355 (has_addr_references_p): Likewise.
8356 (cgraph_non_local_node_p_1): Likewise.
8357 * is-a.h (varpool_analyze_node): Likewise.
8358 * lto-cgraph.c (input_symtab): Likewise.
8359 (merge_profile_summaries): Likewise.
8360 (input_cgraph_1): Likewise.
8361 (input_edge): Likewise.
8362 (input_varpool_node): Likewise.
8363 (input_node): Likewise.
8364 (input_overwrite_node): Likewise.
8365 (compute_ltrans_boundary): Likewise.
8366 (output_refs): Likewise.
8367 (lto_output_varpool_node): Likewise.
8368 (lto_output_node): Likewise.
8369 (reachable_from_other_partition_p): Likewise.
8370 (referenced_from_other_partition_p): Likewise.
8371 (lto_output_edge): Likewise.
8372 (output_node_opt_summary): Likewise.
8373 (add_node_to): Likewise.
8374 (reachable_from_this_partition_p): Likewise.
8375 (lto_set_symtab_encoder_in_partition): Likewise.
8376 (lto_symtab_encoder_in_partition_p): Likewise.
8377 (lto_set_symtab_encoder_encode_initializer): Likewise.
8378 (lto_symtab_encoder_encode_initializer_p): Likewise.
8379 (lto_set_symtab_encoder_encode_body): Likewise.
8380 (lto_symtab_encoder_encode_body_p): Likewise.
8381 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8382 Likewise.
8383 * lto-streamer-in.c (lto_read_body): Likewise.
8384 (fixup_call_stmt_edges): Likewise.
8385 (fixup_call_stmt_edges_1): Likewise.
8386 * lto-streamer-out.c (produce_symtab): Likewise.
8387 (output_symbol_p): Likewise.
8388 (write_symbol): Likewise.
8389 (lto_output): Likewise.
8390 (copy_function): Likewise.
8391 (output_function): Likewise.
8392 * passes.c (function_called_by_processed_nodes_p): Likewise.
8393 (ipa_write_optimization_summaries): Likewise.
8394 (ipa_write_summaries): Likewise.
8395 (do_per_function_toporder): Likewise.
8396 (do_per_function): Likewise.
8397 (dump_passes): Likewise.
8398 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8399 (symtab_nonoverwritable_alias): Likewise.
8400 (symtab_nonoverwritable_alias_1): Likewise.
8401 (symtab_for_node_and_aliases): Likewise.
8402 (symtab_resolve_alias): Likewise.
8403 (fixup_same_cpp_alias_visibility): Likewise.
8404 (symtab_alias_ultimate_target): Likewise.
8405 (symtab_used_from_object_file_p): Likewise.
8406 (verify_symtab_base): Likewise.
8407 (dump_symtab_base): Likewise.
8408 (symtab_node_name): Likewise.
8409 (symtab_node_asm_name): Likewise.
8410 (symtab_dissolve_same_comdat_group_list): Likewise.
8411 (symtab_add_to_same_comdat_group): Likewise.
8412 (symtab_unregister_node): Likewise.
8413 (symtab_insert_node_to_hashtable): Likewise.
8414 (symtab_register_node): Likewise.
8415 (unlink_from_assembler_name_hash): Likewise.
8416 (insert_to_assembler_name_hash): Likewise.
8417 (eq_assembler_name): Likewise.
8418 (hash_node_by_assembler_name): Likewise.
8419 (eq_node): Likewise.
8420 (hash_node): Likewise.
8421 * toplev.c (wrapup_global_declaration_2): Likewise.
8422 * trans-mem.c (ipa_tm_execute): Likewise.
8423 (ipa_tm_transform_clone): Likewise.
8424 (ipa_tm_transform_transaction): Likewise.
8425 (ipa_tm_transform_calls_redirect): Likewise.
8426 (ipa_tm_insert_gettmclone_call): Likewise.
8427 (ipa_tm_insert_irr_call): Likewise.
8428 (ipa_tm_create_version): Likewise.
8429 (ipa_tm_create_version_alias): Likewise.
8430 (ipa_tm_mark_forced_by_abi_node): Likewise.
8431 (ipa_tm_mark_force_output_node): Likewise.
8432 (ipa_tm_diagnose_tm_safe): Likewise.
8433 (ipa_tm_mayenterirr_function): Likewise.
8434 (ipa_tm_scan_irr_function): Likewise.
8435 (ipa_tm_note_irrevocable): Likewise.
8436 (ipa_tm_scan_calls_clone): Likewise.
8437 (get_cg_data): Likewise.
8438 * tree-eh.c (tree_could_trap_p): Likewise.
8439 * tree-emutls.c (ipa_lower_emutls): Likewise.
8440 (create_emultls_var): Likewise.
8441 (lower_emutls_function_body): Likewise.
8442 (gen_emutls_addr): Likewise.
8443 (emutls_decl): Likewise.
8444 (new_emutls_decl): Likewise.
8445 * tree-inline.c (tree_function_versioning): Likewise.
8446 (optimize_inline_calls): Likewise.
8447 (expand_call_inline): Likewise.
8448 (estimate_num_insns): Likewise.
8449 (copy_bb): Likewise.
8450 (delete_unreachable_blocks_update_callgraph): Likewise.
8451 * tree-nested.c (gimplify_all_functions): Likewise.
8452 (create_nesting_tree): Likewise.
8453 (check_for_nested_with_variably_modified): Likewise.
8454 * tree-pretty-print.c (dump_function_header): Likewise.
8455 * tree-profile.c (tree_profiling): Likewise.
8456 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8457 (modify_function): Likewise.
8458 (convert_callers): Likewise.
8459 (convert_callers_for_node): Likewise.
8460 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8461 (associate_varinfo_to_alias): Likewise.
8462 (create_variable_info_for): Likewise.
8463 (get_constraint_for_ssa_var): Likewise.
8464 * tree-vectorizer.c (increase_alignment): Likewise.
8465 * tree.c (find_decls_types_in_var): Likewise.
8466 (find_decls_types_in_node): Likewise.
8467 (free_lang_data_in_decl): Likewise.
8468 * value-prof.c (gimple_ic_transform): Likewise.
8469 (gimple_ic): Likewise.
8470 (check_ic_target): Likewise.
8471 (init_node_map): Likewise.
8472 * varasm.c (decl_binds_to_current_def_p): Likewise.
8473 (default_binds_local_p_1): Likewise.
8474 (dump_tm_clone_pairs): Likewise.
8475 (assemble_alias): Likewise.
8476 (find_decl): Likewise.
8477 (mark_decl_referenced): Likewise.
8478 * varpool.c (varpool_for_node_and_aliases): Likewise.
8479 (varpool_extra_name_alias): Likewise.
8480 (varpool_create_variable_alias): Likewise.
8481 (add_new_static_var): Likewise.
8482 (varpool_finalize_named_section_flags): Likewise.
8483 (varpool_remove_unreferenced_decls): Likewise.
8484 (enqueue_node): Likewise.
8485 (varpool_assemble_decl): Likewise.
8486 (assemble_aliases): Likewise.
8487 (varpool_analyze_node): Likewise.
8488 (cgraph_variable_initializer_availability): Likewise.
8489 (varpool_add_new_variable): Likewise.
8490 (ctor_for_folding): Likewise.
8491 (dump_varpool_node): Likewise.
8492 (varpool_remove_initializer): Likewise.
8493 (varpool_remove_node): Likewise.
8494 (varpool_node_for_decl): Likewise.
8495 (varpool_create_empty_node): Likewise.
8496 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8497 (ix86_get_function_versions_dispatcher): Likewise.
8498
8499 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8500
8501 * cgraph.h (symtab_node_base): Convert to a class;
8502 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8503 chain_next/prev from symtab_node_def.
8504 (cgraph_node): Inherit from symtab_node; add GTY option
8505 tag ("SYMTAB_FUNCTION").
8506 (varpool_node): Inherit from symtab_node; add GTY option
8507 tag ("SYMTAB_VARIABLE").
8508 (symtab_node_def): Remove.
8509 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8510 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8511 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8512 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8513
8514 * ipa-ref.h (symtab_node_def): Drop.
8515 (symtab_node): Change underlying type from symtab_node_def to
8516 symtab_node_base.
8517 (const_symtab_node): Likwise.
8518
8519 * is-a.h: Update examples in comment.
8520
8521 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8522 (assembler_name_hash): Likewise.
8523
8524 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8525
8526 * doc/tree-ssa.texi (gimple_phi_result): Document.
8527 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8528 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8529 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8530 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8531
8532 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8533
8534 * expr.h: Revert change and include tree-core.h.
8535 * rtl.h: Revert change and don't include tree-core.h.
8536
8537 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8538
8539 * config/darwin.c: Include gimple.h.
8540 * config/i386/winnt.c: Likewise.
8541
8542 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8543
8544 PR tree-optimization/19831
8545 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8546
8547 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8548
8549 * tree-outof-ssa.h: Remove include files.
8550 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8551 * expr.c: Likewise.
8552 * tree-ssa-coalesce.c: Likewise.
8553 * cfgexpand.c: Likewise.
8554 * tree-ssa-ter.c: Likewise.
8555 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8556 * lto-streamer.h: Likewise.
8557 * cgraphbuild.c: Add gimple.h to include list.
8558 * data-streamer-in.c: Likewise.
8559 * ipa-cp.c: Likewise.
8560 * tree-streamer.c: Likewise.
8561 * lto-compress.c: Likewise.
8562 * ipa-reference.c: Likewise.
8563 * data-streamer-out.c: Likewise.
8564 * lto-cgraph.c: Likewise.
8565 * cgraphclones.c: Likewise.
8566 * ipa-utils.c: Likewise.
8567 * data-streamer.c: Likewise.
8568 * ipa-split.c: Likewise.
8569 * lto-section-in.c: Likewise.
8570 * tree-streamer-out.c: Likewise.
8571 * ipa-prop.c: Likewise.
8572 * tree-streamer-in.c: Likewise.
8573 * symtab.c: Likewise.
8574 * opts-global.c: Likewise.
8575 * lto-opts.c: Likewise.
8576 * lto-section-out.c: Likewise.
8577 * lto-streamer.c: Likewise.
8578 * rtl.h: Add tree-core.h to include list.
8579 * expr.h: Remove tree-core.h from include list.
8580 * gimple.h: Likewise.
8581 * ipa-utils.h: Likewise.
8582 * streamer-hooks.h: Likewise.
8583 * streamer-hooks.c: Include input.h.
8584
8585 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8586
8587 * config/arm/arm.c (cortexa7_extra_costs): New table.
8588 (arm_cortex_a7_tune): New.
8589 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8590
8591 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8592
8593 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8594
8595 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8596
8597 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8598 to use autogenerated markers for a class-hierarchy, every class
8599 must have a GTY marker.
8600 * gengtype.h (struct type): Add linked list of subclasses to
8601 the "s" member of the union.
8602 (add_subclass): New decl.
8603 * gengtype-state.c (read_state_struct_type): Set up subclass
8604 linked list.
8605 * gengtype.c (get_ultimate_base_class): New.
8606 (add_subclass): New.
8607 (new_structure): Set up subclass linked list.
8608 (set_gc_used_type): Propagate usage information to subclasses.
8609 (output_mangled_typename): Use get_ultimate_base_class.
8610 (walk_subclasses): Use the subclass linked list, avoiding an
8611 O(N^2) when writing out all types.
8612 (walk_type): Issue an error if the base class is missing a tag,
8613 rather than generating bogus C code. Add a gcc_unreachable
8614 default case, in case people omit tags from concrete subclasses,
8615 or get the values wrong.
8616 (write_func_for_structure): Issue an error for subclasses for
8617 which the base doesn't have a "desc", since otherwise the
8618 autogenerated routines for the base would silently fail to visit
8619 any subclass fields.
8620 (write_root): Use get_ultimate_base_class, tweaking constness of
8621 tp to match that function's signature.
8622
8623 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8624
8625 * doc/gty.texi (GTY Options): Add note about inheritance to
8626 description of desc and tag.
8627 (Inheritance and GTY): New.
8628
8629 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8630
8631 * gengtype-parse.c (opts_have): Drop "static" so that
8632 we can use this from gengtype.c.
8633 * gengtype.c (set_gc_used_type): Mark any base class as used;
8634 update field traversal to visit inherited fields.
8635 (output_mangled_typename): Convert references to classes within
8636 an inheritance hierarchy to reference the ultimate base class,
8637 since only it will have gt_ functions.
8638 (get_string_option): New.
8639 (walk_subclasses): New.
8640 (walk_type): Treat GTY structs that have a "desc" as being the
8641 root of an inheritance hierarchy. Generate a switch on it
8642 within the marking function which walks all subclasses, adding
8643 cases for them via walk_subclasses. For subclasses, visit all
8644 fields of the type (including inherited ones).
8645 (write_func_for_structure): Don't write fns for subclasses, only
8646 for the ultimate base class within an inheritance hierarchy.
8647 Subclasses-marking will be handled by the base class marking functions.
8648 (write_types): Likewise.
8649 (write_local_func_for_structure): Likewise.
8650 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8651 a "tag" option (and are thus concrete subclasses).
8652 (write_root): Use the marker function for the ultimate base class.
8653 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8654 (opts_have): Add declaration.
8655
8656 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8657
8658 * lra-spills.c (lra_final_code_change): Remove useless move insns
8659 originated from moves of pseudos.
8660
8661 2013-10-28 Jeff Law <law@redhat.com>
8662
8663 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8664
8665 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8666
8667 * df-scan.c (df_collection_rec): Adjust.
8668 (copy_defs): New constant.
8669 (copy_uses): Likewise.
8670 (copy_eq_uses): Likewise.
8671 (copy_mw): Likewise.
8672 (copy_all): Likewise.
8673 (df_insn_rescan): Adjust.
8674 (df_notes_rescan): Likewise.
8675 (df_swap_refs): Likewise.
8676 (df_sort_and_compress_refs): Likewise.
8677 (df_sort_and_compress_mws): Likewise.
8678 (df_install_refs): Likewise.
8679 (df_install_mws): Likewise.
8680 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8681 are coppied.
8682 (df_bb_refs_record): Adjust.
8683 (df_record_entry_block_defs): Likewise.
8684 (df_record_exit_block_defs): Likewise.
8685 (df_refs_verify): Likewise.
8686 (df_mws_verify): Likewise.
8687 (df_insn_refs_verify): Likewise.
8688 (df_bb_verify): Likewise.
8689 * ipa-pure-const.c (finish_state): Remove.
8690 (propagate): Adjust.
8691 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8692 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8693 var-tracking.c: Adjust.
8694 * vec.c (stack_vecs): Remove.
8695 (register_stack_vec): Likewise.
8696 (stack_vec_register_index): Likewise.
8697 (unregister_stack_vec): Likewise.
8698 * vec.h (struct va_stack): Remove.
8699 (struct vec<T, A, vl_ptr>): Specialize as
8700 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8701 allocation strategy compatable with the vl_ptr layout.
8702 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8703 specialization anyway.
8704 (class stack_vec): New class.
8705 (vec_stack_alloc): Remove.
8706 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8707
8708 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8709 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8710 Sergey Lega <sergey.s.lega@intel.com>
8711 Anna Tikhonova <anna.tikhonova@intel.com>
8712 Ilya Tocar <ilya.tocar@intel.com>
8713 Andrey Turetskiy <andrey.turetskiy@intel.com>
8714 Ilya Verbin <ilya.verbin@intel.com>
8715 Kirill Yukhin <kirill.yukhin@intel.com>
8716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8717
8718 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8719 (*prefetch_avx512pf_<mode>): New.
8720 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8721 (avx512f_maskcmp<mode>3): Ditto.
8722 (vashrv16si3): Ditto.
8723
8724 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8725 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8726 Sergey Lega <sergey.s.lega@intel.com>
8727 Anna Tikhonova <anna.tikhonova@intel.com>
8728 Ilya Tocar <ilya.tocar@intel.com>
8729 Andrey Turetskiy <andrey.turetskiy@intel.com>
8730 Ilya Verbin <ilya.verbin@intel.com>
8731 Kirill Yukhin <kirill.yukhin@intel.com>
8732 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8733
8734 * config/i386/i386.md (any_truncate): New.
8735 (trunsuffix): Ditto.
8736 * config/i386/predicates.md (const_8_to_9_operand): New.
8737 (const_10_to_11_operand): Ditto.
8738 (const_12_to_13_operand): Ditto.
8739 (const_14_to_15_operand): Ditto.
8740 (const_16_to_19_operand): Ditto.
8741 (const_20_to_23_operand): Ditto.
8742 (const_24_to_27_operand): Ditto.
8743 (const_28_to_31_operand): Ditto.
8744 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8745 (cvtusi2<ssescalarmodesuffix>32): New.
8746 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8747 (ufloatv16siv16sf2): Ditto.
8748 (avx512f_fix_notruncv16sfv16si): Ditto.
8749 (avx512f_ufix_notruncv16sfv16si): Ditto.
8750 (avx512f_vcvtss2usi): Ditto.
8751 (avx512f_vcvtss2usiq): Ditto.
8752 (avx512f_vcvttss2usi): Ditto.
8753 (avx512f_vcvttss2usiq): Ditto.
8754 (avx512f_vcvtsd2usi): Ditto.
8755 (avx512f_vcvtsd2usiq): Ditto.
8756 (avx512f_vcvttsd2usi): Ditto.
8757 (avx512f_vcvttsd2usiq): Ditto.
8758 (ufloatv8siv8df): Ditto.
8759 (avx512f_cvtdq2pd512_2): Ditto.
8760 (avx512f_cvtpd2dq512): Ditto.
8761 (avx512f_ufix_notruncv8dfv8si): Ditto.
8762 (avx512f_cvtpd2ps512): Ditto.
8763 (vec_unpacks_lo_v16sf): Ditto.
8764 (vec_unpacks_hi_v16sf): Ditto.
8765 (vec_unpacks_float_hi_v16si): Ditto.
8766 (vec_unpacks_float_lo_v16si): Ditto.
8767 (avx512f_unpckhps512): Ditto.
8768 (avx512f_unpcklps512): Ditto.
8769 (avx512f_movshdup512): Ditto.
8770 (avx512f_movsldup512): Ditto.
8771 (vec_extract_lo_v32hi): Ditto.
8772 (vec_extract_hi_v32hi): Ditto.
8773 (vec_extract_lo_v64qi): Ditto.
8774 (vec_extract_hi_v64qi): Ditto.
8775 (avx512f_unpckhpd512): Ditto.
8776 (avx512f_movddup512): Ditto.
8777 (avx512f_unpcklpd512): Ditto.
8778 (*avx512f_unpcklpd512): Ditto.
8779 (avx512f_shufps512_1): Ditto.
8780 (avx512f_shufpd512_1): Ditto.
8781 (avx512f_interleave_highv8di): Ditto.
8782 (avx512f_interleave_lowv8di): Ditto.
8783 (PMOV_DST_MODE): Ditto.
8784 (pmov_src_mode): Ditto.
8785 (pmov_src_lower): Ditto.
8786 (pmov_suff): Ditto.
8787 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8788 (*avx512f_<code>v8div16qi2): Ditto.
8789 (*avx512f_<code>v8div16qi2_store): Ditto.
8790 (vec_widen_umult_even_v16si): Ditto.
8791 (*vec_widen_umult_even_v16si): Ditto.
8792 (vec_widen_smult_even_v16si): Ditto.
8793 (*vec_widen_smult_even_v16si): Ditto.
8794 (avx512f_interleave_highv16si): Ditto.
8795 (avx512f_interleave_lowv16si): Ditto.
8796 (avx512f_<code>v16qiv16si2): Ditto.
8797 (avx512f_<code>v16hiv16si2): Ditto.
8798 (avx512f_<code>v8qiv8di2): Ditto.
8799 (avx512f_<code>v8hiv8di2): Ditto.
8800 (avx512f_<code>v8siv8di2): Ditto.
8801 (avx512cd_maskb_vec_dupv8di): Ditto.
8802 (avx512cd_maskw_vec_dupv16si): Ditto.
8803 (avx512f_vcvtph2ps512): Ditto.
8804 (avx512f_vcvtps2ph512): Ditto.
8805 (VEC_EXTRACT_MODE): Extened with wider modes.
8806 (VEC_PERM_AVX2): Ditto.
8807 (VEC_PERM_CONST): Ditto.
8808
8809 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
8810
8811 * config/arc/arc.c (arc_ccfsm_post_advance):
8812 Add comment about TYPE_RETURN.
8813
8814 2013-10-28 Bin Cheng <bin.cheng@arm.com>
8815
8816 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8817 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8818 (strip_offset): Convert offset to unsigned number.
8819
8820 2013-10-27 Tom de Vries <tom@codesourcery.com>
8821
8822 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8823 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8824
8825 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
8826
8827 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8828 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8829 (TARGET_BIG_ENDIAN): New macro.
8830 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8831 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8832 * config/sh/sh.c: Likewise.
8833 * config/sh/sh.h: Likewise.
8834
8835 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
8836
8837 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8838 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
8839
8840 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8841
8842 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8843 Fix formatting.
8844 (cmpstr_t, cmpstrsi): Fix formatting.
8845
8846 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8847
8848 PR target/52483
8849 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8850 addressing, do not use general_operand for memory operands.
8851
8852 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8853
8854 Revert:
8855 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8856 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8857
8858 2013-10-26 Jeff Law <law@redhat.com>
8859
8860 * predict.c (PRED_MUDFLAP): Remove.
8861 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8862
8863 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8864 (OBJS): Remove tree-nomudflap.o
8865 (GTFILES): Remove tree-mudflap.c
8866 * builtins.c (expand_builtin_alloc): Remove mudflap support.
8867 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8868 (mfwrap_spec, mflib_spec): Likewise.
8869 (cpp_unique_options, cc1_options, static_specs): Likewise.
8870 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8871 * passes.def: Likewise.
8872 * toplev.c (compile_file, process_options): Likewise.
8873 * tree-inline.c (copy_tree_r): Likewise.
8874 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8875 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8876 (build_constant_desc, output_constant_def_contents): Likewise.
8877 (categorize_decl_for_section): Likewise.
8878 * tree-mudflap.c: Removed.
8879 * tree-mudflap.h: Removed.
8880 * tree-nomudflap.c: Removed.
8881 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8882 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8883 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8884 * config/sol2.h (MFLIB_SPEC): Likewise.
8885 * doc/install.texi: Remove mudflap references.
8886 * doc/passes.texi: Similarly.
8887 * doc/sourcebuild.texi: Similarly.
8888 * doc/invoke.texi: Remove mudlfap related options.
8889
8890 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8891
8892 PR rtl-optimization/58759
8893 * lra-constraints.c (lra_constraints): Remove wrong condition to
8894 remove insn setting up an equivalent pseudo.
8895
8896 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8897
8898 * config/rs6000/rs6000-protos.h
8899 (rs6000_secondary_memory_needed_mode): New prototype.
8900 * config/rs6000/rs6000.c: Include ira.h.
8901 (TARGET_LRA_P): Redefine.
8902 (rs6000_legitimate_offset_address_p): Call
8903 legitimate_constant_pool_address_p in strict mode for LRA.
8904 (rs6000_legitimate_address_p): Ditto.
8905 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
8906 (rs6000_emit_move): Add LRA version of code to generate load/store
8907 of SDmode values.
8908 (rs6000_secondary_memory_needed_mode): New.
8909 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8910 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8911 constants, memory, and FP registers.
8912 (rs6000_lra_p): New.
8913 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8914 * config/rs6000/rs6000.opt (mlra): New option.
8915 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8916
8917 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
8918
8919 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8920 has_single_use () and not do the conversion if has_single_use ()
8921 returns false for the multiplication result.
8922
8923 2013-10-25 David Malcolm <dmalcolm@redhat.com>
8924
8925 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8926 to "NODE", since this works on a "tree", not an
8927 "enum tree_code".
8928 (CONSTANT_CLASS_P): Likewise.
8929 (TYPE_P): Likewise.
8930 (DECL_P): Likewise.
8931 (INDIRECT_REF_P): Likewise.
8932 (REFERENCE_CLASS_P): Likewise.
8933 (COMPARISON_CLASS_P): Likewise.
8934 (UNARY_CLASS_P): Likewise.
8935 (BINARY_CLASS_P): Likewise.
8936 (STATEMENT_CLASS_P): Likewise.
8937 (VL_EXP_CLASS_P): Likewise.
8938 (EXPRESSION_CLASS_P): Likewise.
8939 (IS_TYPE_OR_DECL_P): Likewise.
8940
8941 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
8942
8943 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8944 ADDR_EXPR in the defining statement.
8945
8946 2013-10-25 Richard Biener <rguenther@suse.de>
8947
8948 PR tree-optimization/58626
8949 * tree-loop-distribution.c (enum rdg_dep_type): Remove
8950 anti_dd, output_dd and input_dd.
8951 (struct rdg_edge): Remove level and relation members.
8952 (RDGE_LEVEL, RDGE_RELATION): Remove.
8953 (dot_rdg_1): Adjust.
8954 (create_rdg_edge_for_ddr): Remove.
8955 (create_rdg_edges_for_scalar): Adjust.
8956 (create_edge_for_control_dependence): Likewise.
8957 (create_rdg_edges): Split into ...
8958 (create_rdg_flow_edges): ... this
8959 (create_rdg_cd_edges): ... and this.
8960 (free_rdg): Adjust.
8961 (build_rdg): Likewise, do not compute data dependences or
8962 add edges for them.
8963 (pg_add_dependence_edges): New function.
8964 (pgcmp): Likewise.
8965 (distribute_loop): First apply all non-dependence based
8966 partition mergings. Then compute dependences between partitions
8967 and merge and order partitions according to them.
8968
8969 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8970
8971 PR rtl-optimization/58831
8972 * alias.c (init_alias_analysis): At the beginning of each iteration,
8973 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8974
8975 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8976
8977 * recog.c (search_ofs): New static variable moved from...
8978 (peep2_find_free_register): ...here.
8979 (peephole2_optimize): Initialize it.
8980
8981 2013-10-25 Tobias Burnus <burnus@net-b.de>
8982
8983 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8984
8985 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
8986
8987 * config/i386/i386.h (TARGET_MPX): New define.
8988 (TARGET_MPX_P): Ditto.
8989
8990 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8991
8992 * config/i386/constraints.md (B): New.
8993 (Ti): New.
8994 (Tb): New.
8995 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8996 * config/i386/i386-modes.def (BND32): New.
8997 (BND64): New.
8998 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8999 * config/i386/i386.c (isa_opts): Add mmpx.
9000 (regclass_map): Add bound registers.
9001 (dbx_register_map): Likewise.
9002 (dbx64_register_map): Likewise.
9003 (svr4_dbx_register_map): Likewise.
9004 (PTA_MPX): New.
9005 (ix86_option_override_internal): Support MPX ISA.
9006 (ix86_conditional_register_usage): Support bound registers.
9007 (print_reg): Likewise.
9008 (ix86_code_end): Add MPX bnd prefix.
9009 (output_set_got): Likewise.
9010 (ix86_output_call_insn): Likewise.
9011 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9012 (ix86_print_operand_punct_valid_p): Likewise.
9013 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9014 UNSPEC_BNDMK_ADDR.
9015 (ix86_class_likely_spilled_p): Add bound regs support.
9016 (ix86_hard_regno_mode_ok): Likewise.
9017 (x86_order_regs_for_local_alloc): Likewise.
9018 (ix86_bnd_prefixed_insn_p): New.
9019 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9020 (FIXED_REGISTERS): Add bound registers.
9021 (CALL_USED_REGISTERS): Likewise.
9022 (REG_ALLOC_ORDER): Likewise.
9023 (HARD_REGNO_NREGS): Likewise.
9024 (TARGET_MPX): New.
9025 (VALID_BND_REG_MODE): New.
9026 (FIRST_BND_REG): New.
9027 (LAST_BND_REG): New.
9028 (reg_class): Add BND_REGS.
9029 (REG_CLASS_NAMES): Likewise.
9030 (REG_CLASS_CONTENTS): Likewise.
9031 (BND_REGNO_P): New.
9032 (ANY_BND_REG_P): New.
9033 (BNDmode): New.
9034 (HI_REGISTER_NAMES): Add bound registers.
9035 * config/i386/i386.md (UNSPEC_BNDMK): New.
9036 (UNSPEC_BNDMK_ADDR): New.
9037 (UNSPEC_BNDSTX): New.
9038 (UNSPEC_BNDLDX): New.
9039 (UNSPEC_BNDLDX_ADDR): New.
9040 (UNSPEC_BNDCL): New.
9041 (UNSPEC_BNDCU): New.
9042 (UNSPEC_BNDCN): New.
9043 (UNSPEC_MPX_FENCE): New.
9044 (BND0_REG): New.
9045 (BND1_REG): New.
9046 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9047 (length_immediate): Likewise.
9048 (prefix_0f): Likewise.
9049 (memory): Likewise.
9050 (prefix_rep): Check for bnd prefix.
9051 (length_nobnd): New.
9052 (length): Use length_nobnd if specified.
9053 (BND): New.
9054 (bnd_ptr): New.
9055 (BNDCHECK): New.
9056 (bndcheck): New.
9057 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9058 (*jcc_2): Likewise.
9059 (jump): Likewise.
9060 (simple_return_internal): Likewise.
9061 (simple_return_pop_internal): Likewise.
9062 (*indirect_jump): Add MPX bnd prefix.
9063 (*tablejump_1): Likewise.
9064 (simple_return_internal_long): Likewise.
9065 (simple_return_indirect_internal): Likewise.
9066 (<mode>_mk): New.
9067 (*<mode>_mk): New.
9068 (mov<mode>): New.
9069 (*mov<mode>_internal_mpx): New.
9070 (<mode>_<bndcheck>): New.
9071 (*<mode>_<bndcheck>): New.
9072 (<mode>_ldx): New.
9073 (*<mode>_ldx): New.
9074 (<mode>_stx): New.
9075 (*<mode>_stx): New.
9076 * config/i386/predicates.md (lea_address_operand): Rename to...
9077 (address_no_seg_operand): ... this.
9078 (address_mpx_no_base_operand): New.
9079 (address_mpx_no_index_operand): New.
9080 (bnd_mem_operator): New.
9081 * config/i386/i386.opt (mmpx): New.
9082 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9083 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9084
9085 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9086
9087 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9088 * tree.def (POINTER_BOUNDS_TYPE): New.
9089 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9090 (POINTER_BOUNDS_MODE): New.
9091 (make_pointer_bounds_mode): New.
9092 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9093 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9094 (layout_type): Support POINTER_BOUNDS_TYPE.
9095 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9096 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9097 (type_contains_placeholder_1): Likewise.
9098 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9099 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9100 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9101
9102 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9103
9104 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9105 mode of address computation when calling memory_address_addr_space.
9106
9107 2013-08-24 Richard Henderson <rth@twiddle.net>
9108
9109 PR rtl/58542
9110 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9111 instead of create_convert_operand_to.
9112 (maybe_emit_sync_lock_test_and_set): Likewise.
9113 (expand_atomic_compare_and_swap): Likewise.
9114 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9115
9116 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9117
9118 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9119 Change param_is to use the struct and not the pointer to the struct.
9120
9121 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9122
9123 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9124 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9125 Move to targhooks.c.
9126 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9127 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9128 Relocate from gimplify.c.
9129 * targhooks.h: Add 2 prototypes.
9130 * tree.h: Delete 2 prototypes.
9131
9132 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9133
9134 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9135 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9136
9137 2013-10-24 Cong Hou <congh@google.com>
9138
9139 * convert.c (convert_to_real): Guard those unsafe math function
9140 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9141 specially.
9142
9143 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9144
9145 PR ipa/58712
9146 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9147 as argument.
9148 (cgraph_create_edge): Use the new argument.
9149 (cgraph_create_indirect_edge): Likewise.
9150
9151 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9152
9153 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9154 TYPE_UNCOND_BRANCH.
9155 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9156 changes statep->state.
9157
9158 2013-10-24 Tobias Burnus <burnus@net-b.de>
9159
9160 PR other/33426
9161 * tree-cfg.c (replace_loop_annotate): New function.
9162 (execute_build_cfg): Call it.
9163 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9164 * internal-fn.c (expand_ANNOTATE): New function.
9165 * internal-fn.def (ANNOTATE): Define as new internal function.
9166 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9167 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9168 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9169 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9170 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9171
9172 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9173 Marcus Shawcroft <marcus.shawcroft@arm.com>
9174
9175 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9176 Special case reload SP+C into none GENERAL_REGS.
9177
9178 2013-10-24 Michael Matz <matz@suse.de>
9179
9180 * gengtype.c (is_file_equal): Check that files will be same length.
9181
9182 2013-10-25 Christian Bruel <christian.bruel@st.com>
9183
9184 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9185 * config/sh/t-sh (sh-mem.o): New rule.
9186 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9187 (sh_expand_cmpstr): New function.
9188 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9189 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9190 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9191 (rotlhi3_8): Rename.
9192
9193 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9194
9195 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9196 * Makefile.in (CXXDEPMODE): Assign and change users.
9197 (CCDEPMODE): Delete.
9198 * configure: Regenerate.
9199
9200 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9201
9202 * gengtype-parse.c (require_without_advance): New.
9203 (type): For GTY-marked types that are not GTY((user)), parse any
9204 base classes, requiring them to be single-inheritance, and not
9205 be templates. For non-GTY-marked types and GTY((user)),
9206 continue to skip over any C++ inheritance specification.
9207 * gengtype-state.c (state_writer::write_state_struct_type):
9208 Write base class of type (if any).
9209 (read_state_struct_type): Read base class of type (if any).
9210 * gengtype.c (new_structure): Add a "base_class" parameter.
9211 (create_optional_field_): Update for new parameter to new_structure.
9212 (adjust_field_rtx_def): Likewise.
9213 (adjust_field_tree_exp): Likewise.
9214 * gengtype.h (struct type): Add "base_class" field to the s
9215 union field.
9216 (new_structure): Add "base" parameter.
9217
9218 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9219
9220 PR target/57756
9221 * config/i386/i386.c (ix86_option_override_internal):
9222 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9223 (ix86_valid_target_attribute_tree):
9224 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9225 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9226
9227 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9228
9229 * tree-ssa-loop.h: Remove include files.
9230 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9231 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9232 * graphite-clast-to-gimple.c: Likewise.
9233 * graphite-scop-detection.c: Likewise.
9234 * graphite-sese-to-poly.c: Likewise.
9235 * ipa-inline-analysis.c: Likewise.
9236 * ipa-pure-const.c: Likewise.
9237 * loop-init.c: Likewise.
9238 * passes.c: Likewise.
9239 * predict.c: Likewise.
9240 * tree-cfg.c: Likewise.
9241 * tree-cfgcleanup.c: Likewise.
9242 * tree-chrec.c: Likewise.
9243 * tree-data-ref.c: Likewise.
9244 * tree-loop-distribution.c: Likewise.
9245 * tree-parloops.c: Likewise.
9246 * tree-predcom.c: Likewise.
9247 * tree-scalar-evolution.c: Likewise.
9248 * tree-ssa-address.c: Likewise.
9249 * tree-ssa.c: Likewise.
9250 * tree-ssa-dce.c: Likewise.
9251 * tree-ssa-loop.c: Likewise.
9252 * tree-ssa-loop-im.c: Likewise.
9253 * tree-ssa-loop-ivcanon.c: Likewise.
9254 * tree-ssa-loop-ivopts.c: Likewise.
9255 * tree-ssa-loop-manip.c: Likewise.
9256 * tree-ssa-loop-niter.c: Likewise.
9257 * tree-ssa-loop-prefetch.c: Likewise.
9258 * tree-ssa-loop-unswitch.c: Likewise.
9259 * tree-ssa-reassoc.c: Likewise.
9260 * tree-vect-data-refs.c: Likewise.
9261 * tree-vect-loop.c: Likewise.
9262 * tree-vect-loop-manip.c: Likewise.
9263 * tree-vectorizer.c: Likewise.
9264 * tree-vect-stmts.c: Likewise.
9265 * tree-vrp.c: Likewise.
9266
9267 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9268
9269 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9270
9271 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9272
9273 PR tree-optimization/58775
9274 PR tree-optimization/58791
9275 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9276 (insert_stmt_after): Rewritten, don't move the stmt, but really
9277 insert it.
9278 (get_stmt_uid_with_default): Remove.
9279 (build_and_add_sum): Use insert_stmt_after and
9280 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9281 (update_range_test): Set uid on stmts added by
9282 force_gimple_operand_gsi. Don't immediately modify statements
9283 in inter-bb optimization, just update oe->op values.
9284 (optimize_range_tests): Return bool whether any changed have been made.
9285 (update_ops): New function.
9286 (struct inter_bb_range_test_entry): New type.
9287 (maybe_optimize_range_tests): Perform statement changes here.
9288 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9289 ensure_ops_are_available): Remove.
9290 (find_insert_point): Rewritten.
9291 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9292 return LHS of the (new resp. old) stmt. Don't call
9293 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9294 instead of last, move new stmt at the right place.
9295 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9296 (negate_value): Likewise. Set uids.
9297 (break_up_subtract_bb): Initialize uids.
9298 (reassociate_bb): Adjust rewrite_expr_tree caller.
9299 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9300
9301 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9302
9303 PR target/58838
9304 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9305 TARGET_32BIT final condition.
9306 (mulsi3_internal2 and splitter): Same.
9307
9308 2013-10-23 Jeff Law <law@redhat.com>
9309
9310 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9311 through joiner blocks with abnormal outgoing edges.
9312
9313 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9314 Add parameter JOINERS, to allow/disallow threading through joiner
9315 blocks.
9316 (thread_block): New. Call thread_block_1.
9317 (mark_threaded_blocks): Remove code to filter out certain cases
9318 of threading through joiner blocks.
9319 (thread_through_all_blocks): Document how we can have a dangling
9320 edge AUX field and clear it.
9321
9322 2013-10-23 Ian Lance Taylor <iant@google.com>
9323
9324 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9325 (C++ Dialect Options): Likewise.
9326 (Optimize Options): Likewise.
9327
9328 2013-10-23 Tom de Vries <tom@codesourcery.com>
9329
9330 PR tree-optimization/58805
9331 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9332
9333 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9334
9335 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9336 sequence based on get_range_info returned range.
9337
9338 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9339
9340 * tree-ssa.h: Remove all #include's
9341 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9342 * alias.c: Move required includes from tree-ssa.h.
9343 * asan.c: Likewise.
9344 * builtins.c: Likewise.
9345 * calls.c: Likewise.
9346 * cfgexpand.c: Likewise.
9347 * cfghooks.c: Likewise.
9348 * cfgloop.c: Likewise.
9349 * cfgloopmanip.c: Likewise.
9350 * cgraph.c: Likewise.
9351 * cgraphbuild.c: Likewise.
9352 * cgraphclones.c: Likewise.
9353 * cgraphunit.c: Likewise.
9354 * dse.c: Likewise.
9355 * except.c: Likewise.
9356 * expr.c: Likewise.
9357 * final.c: Likewise.
9358 * fold-const.c: Likewise.
9359 * ggc-page.c: Likewise.
9360 * gimple-builder.c: Likewise.
9361 * gimple-fold.c: Likewise.
9362 * gimple-iterator.c: Likewise.
9363 * gimple-low.c: Likewise.
9364 * gimple-pretty-print.c: Likewise.
9365 * gimple-ssa-strength-reduction.c: Likewise.
9366 * gimple-streamer-in.c: Likewise.
9367 * gimple-streamer-out.c: Likewise.
9368 * gimplify.c: Likewise.
9369 * graphite-blocking.c: Likewise.
9370 * graphite-clast-to-gimple.c: Likewise.
9371 * graphite-dependences.c: Likewise.
9372 * graphite-interchange.c: Likewise.
9373 * graphite-optimize-isl.c: Likewise.
9374 * graphite-poly.c: Likewise.
9375 * graphite-scop-detection.c: Likewise.
9376 * graphite-sese-to-poly.c: Likewise.
9377 * graphite.c: Likewise.
9378 * ipa-cp.c: Likewise.
9379 * ipa-inline-analysis.c: Likewise.
9380 * ipa-inline-transform.c: Likewise.
9381 * ipa-inline.c: Likewise.
9382 * ipa-prop.c: Likewise.
9383 * ipa-pure-const.c: Likewise.
9384 * ipa-reference.c: Likewise.
9385 * ipa-split.c: Likewise.
9386 * ipa-utils.c: Likewise.
9387 * loop-init.c: Likewise.
9388 * lto-cgraph.c: Likewise.
9389 * lto-section-in.c: Likewise.
9390 * lto-section-out.c: Likewise.
9391 * lto-streamer-in.c: Likewise.
9392 * lto-streamer-out.c: Likewise.
9393 * lto-streamer.c: Likewise.
9394 * omp-low.c: Likewise.
9395 * passes.c: Likewise.
9396 * predict.c: Likewise.
9397 * print-tree.c: Likewise.
9398 * profile.c: Likewise.
9399 * sese.c: Likewise.
9400 * targhooks.c: Likewise.
9401 * tracer.c: Likewise.
9402 * trans-mem.c: Likewise.
9403 * tree-call-cdce.c: Likewise.
9404 * tree-cfg.c: Likewise.
9405 * tree-cfgcleanup.c: Likewise.
9406 * tree-chrec.c: Likewise.
9407 * tree-complex.c: Likewise.
9408 * tree-data-ref.c: Likewise.
9409 * tree-dfa.c: Likewise.
9410 * tree-eh.c: Likewise.
9411 * tree-emutls.c: Likewise.
9412 * tree-if-conv.c: Likewise.
9413 * tree-inline.c: Likewise.
9414 * tree-into-ssa.c: Likewise.
9415 * tree-loop-distribution.c: Likewise.
9416 * tree-mudflap.c: Likewise.
9417 * tree-nested.c: Likewise.
9418 * tree-nrv.c: Likewise.
9419 * tree-object-size.c: Likewise.
9420 * tree-outof-ssa.c: Likewise.
9421 * tree-parloops.c: Likewise.
9422 * tree-phinodes.c: Likewise.
9423 * tree-predcom.c: Likewise.
9424 * tree-pretty-print.c: Likewise.
9425 * tree-profile.c: Likewise.
9426 * tree-scalar-evolution.c: Likewise.
9427 * tree-sra.c: Likewise.
9428 * tree-ssa-address.c: Likewise.
9429 * tree-ssa-alias.c: Likewise.
9430 * tree-ssa-ccp.c: Likewise.
9431 * tree-ssa-coalesce.c: Likewise.
9432 * tree-ssa-copy.c: Likewise.
9433 * tree-ssa-copyrename.c: Likewise.
9434 * tree-ssa-dce.c: Likewise.
9435 * tree-ssa-dom.c: Likewise.
9436 * tree-ssa-dse.c: Likewise.
9437 * tree-ssa-forwprop.c: Likewise.
9438 * tree-ssa-ifcombine.c: Likewise.
9439 * tree-ssa-live.c: Likewise.
9440 * tree-ssa-loop-ch.c: Likewise.
9441 * tree-ssa-loop-im.c: Likewise.
9442 * tree-ssa-loop-ivcanon.c: Likewise.
9443 * tree-ssa-loop-ivopts.c: Likewise.
9444 * tree-ssa-loop-manip.c: Likewise.
9445 * tree-ssa-loop-niter.c: Likewise.
9446 * tree-ssa-loop-prefetch.c: Likewise.
9447 * tree-ssa-loop-unswitch.c: Likewise.
9448 * tree-ssa-loop.c: Likewise.
9449 * tree-ssa-math-opts.c: Likewise.
9450 * tree-ssa-operands.c: Likewise.
9451 * tree-ssa-phiopt.c: Likewise.
9452 * tree-ssa-phiprop.c: Likewise.
9453 * tree-ssa-pre.c: Likewise.
9454 * tree-ssa-propagate.c: Likewise.
9455 * tree-ssa-reassoc.c: Likewise.
9456 * tree-ssa-sccvn.c: Likewise.
9457 * tree-ssa-sink.c: Likewise.
9458 * tree-ssa-strlen.c: Likewise.
9459 * tree-ssa-structalias.c: Likewise.
9460 * tree-ssa-tail-merge.c: Likewise.
9461 * tree-ssa-ter.c: Likewise.
9462 * tree-ssa-threadedge.c: Likewise.
9463 * tree-ssa-threadupdate.c: Likewise.
9464 * tree-ssa-uncprop.c: Likewise.
9465 * tree-ssa-uninit.c: Likewise.
9466 * tree-ssa.c: Likewise.
9467 * tree-ssanames.c: Likewise.
9468 * tree-stdarg.c: Likewise.
9469 * tree-streamer-in.c: Likewise.
9470 * tree-switch-conversion.c: Likewise.
9471 * tree-tailcall.c: Likewise.
9472 * tree-vect-data-refs.c: Likewise.
9473 * tree-vect-generic.c: Likewise.
9474 * tree-vect-loop-manip.c: Likewise.
9475 * tree-vect-loop.c: Likewise.
9476 * tree-vect-patterns.c: Likewise.
9477 * tree-vect-slp.c: Likewise.
9478 * tree-vect-stmts.c: Likewise.
9479 * tree-vectorizer.c: Likewise.
9480 * tree-vrp.c: Likewise.
9481 * tree.c: Likewise.
9482 * tsan.c: Likewise.
9483 * value-prof.c: Likewise.
9484 * var-tracking.c: Likewise.
9485 * varpool.c: Likewise.
9486 * vtable-verify.c: Likewise.
9487
9488 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9489
9490 * config/tilegx/tilegx.c: Include "tree.h".
9491
9492 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9493
9494 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9495 the info, not after it.
9496 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9497 dump_ssaname_info call.
9498 (pp_gimple_stmt_1): Adjust caller.
9499 (dump_phi_nodes): Likewise. Don't print "# " here.
9500
9501 2013-10-22 Jan Hubicka <jh@suse.cz>
9502
9503 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9504 tuning flag.
9505 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9506 * i386.c (expand_small_movmem_or_setmem): New function.
9507 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9508 function.
9509 (alg_usable_p): Add support for value ranges; cleanup.
9510 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9511
9512 2013-10-22 Sterling Augustine <saugustine@google.com>
9513
9514 * doc/invoke.texi: Document -ggnu-pubnames.
9515 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9516 logic.
9517 * dwarf2out.c: Include gdb/gdb-index.h.
9518 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9519 debug_generate_pub_sections.
9520 (is_java, output_pubtables, output_pubname): New functions.
9521 (include_pubname_in_output): Handle debug_generate_pub_sections at
9522 level 2.
9523 (size_of_pubnames): Use new local space_for_flags based on
9524 debug_generate_pub_sections.
9525 (output_pubnames): Unify pubnames and pubtypes output logic.
9526 Genericize comments. Call output_pubname.
9527 (dwarf2out_finish): Move logic to output_pubnames and call it.
9528
9529 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9530
9531 PR target/58779
9532 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9533 Remove CCCmode handling.
9534 <case LTU>: Return 'c' suffix for CCCmode.
9535 <case GEU>: Return 'nc' suffix for CCCmode.
9536 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9537 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9538 (*sub<mode>3_cc_overflow): Ditto.
9539 (*subsi3_zext_cc_overflow): Ditto.
9540
9541 2013-10-22 Steve Ellcey <sellcey@mips.com>
9542
9543 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9544 (AND (NOT OP1) (NOT OP2)).
9545
9546 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9547
9548 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9549 meaning of merge-high and merge-low masks for little endian; avoid
9550 use of vector-pack masks for little endian for mismatched modes.
9551
9552 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9553
9554 * config/tilepro/tilepro.c: Include "tree.h".
9555
9556 2013-10-22 Andreas Schwab <schwab@suse.de>
9557
9558 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9559 with PRE_DEC.
9560
9561 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9562
9563 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9564 [Ed Smith-Rowland]): New entries.
9565 ([Stephen M. Webb]): Update.
9566
9567 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9568
9569 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9570
9571 2013-10-21 Marek Polacek <polacek@redhat.com>
9572
9573 PR middle-end/58809
9574 * fold-const.c (fold_range_test): Return 0 if the type is not
9575 an integral type.
9576
9577 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9578
9579 * system.h: Move hwint.h include further down.
9580 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9581 gcc_checking_asserts.
9582 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9583
9584 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9585
9586 Fix volatile issues in optimize_bit_field_compare.
9587 * fold-const.c (optimize_bit_field_compare): Bail out if
9588 lvolatilep or rvolatilep.
9589
9590 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9591
9592 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9593 and get_inner_reference returning different pmode for non-volatile
9594 bit-field members dependent on flag_strict_volatile_bitfields.
9595 * stor-layout.c (layout_decl): Remove special handling of
9596 flag_strict_volatile_bitfields.
9597 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9598 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9599
9600 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9601
9602 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9603 calculations.
9604
9605 2013-10-21 Jeff Law <law@redhat.com>
9606
9607 * tree-ssa-threadedge.c (thread_through_normal_block): New
9608 argument VISITED. Remove VISISTED as a local variable. When we
9609 have a threadable jump, verify the destination of the jump has not
9610 been visised.
9611 (thread_across_edge): Allocate VISITED bitmap once at function
9612 scope and use it throughout. Make sure to set appropriate bits in
9613 VISITED for E (start of jump thread path).
9614 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9615 through a joiner if any edge on the path has a recorded jump thread.
9616
9617 2013-10-21 Ian Lance Taylor <iant@google.com>
9618
9619 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9620 don't imply that attributes can solve all problems.
9621 (Directory Options): Fix typo.
9622
9623 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9624
9625 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9626 extend and extend_add.
9627
9628 2013-10-21 Richard Biener <rguenther@suse.de>
9629
9630 PR tree-optimization/58794
9631 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9632 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9633
9634 2013-10-21 Richard Biener <rguenther@suse.de>
9635
9636 PR middle-end/58742
9637 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9638 to (T) X for sign-changing conversions (or no conversion).
9639
9640 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9641
9642 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9643
9644 2013-10-20 Jan Hubicka <jh@suse.cz>
9645
9646 * config/i386/i386-tune.def: Add comment; organize into categories
9647
9648 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9649
9650 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9651 argument. Update function comment.
9652 (expand_set_or_movmem_via_rep): New function combining
9653 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9654 (expand_movmem_via_rep_mov): Remove.
9655 expand_setmem_via_rep_stos): Remove.
9656 (expand_movmem_epilogue): Update calls correspondingly.
9657 (expand_setmem_epilogue_via_loop): Likewise.
9658 (emit_memset): New.
9659 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9660 (expand_set_or_movmem_prologue): New function combining
9661 expand_movmem_prologue and expand_setmem_prologue.
9662 (expand_movmem_prologue): Remove.
9663 (expand_setmem_prologue): Remove.
9664 (expand_set_or_movmem_constant_prologue): New function combining
9665 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9666 (expand_constant_movmem_prologue): Remove.
9667 (expand_constant_setmem_prologue): Remove.
9668 (promote_duplicated_reg): Allow vector-const0 value.
9669 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9670 and ix86_expand_setmem.
9671 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9672 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9673
9674 2013-10-21 Diego Novillo <dnovillo@google.com>
9675
9676 * asan.c: Include tree.h
9677 * bb-reorder.c: Likewise.
9678 * cfgcleanup.c: Likewise.
9679 * cfgloopmanip.c: Likewise.
9680 * data-streamer-in.c: Likewise.
9681 * data-streamer-out.c: Likewise.
9682 * data-streamer.c: Likewise.
9683 * dwarf2cfi.c: Likewise.
9684 * graphite-blocking.c: Likewise.
9685 * graphite-clast-to-gimple.c: Likewise.
9686 * graphite-dependences.c: Likewise.
9687 * graphite-interchange.c: Likewise.
9688 * graphite-optimize-isl.c: Likewise.
9689 * graphite-poly.c: Likewise.
9690 * graphite-scop-detection.c: Likewise.
9691 * graphite-sese-to-poly.c: Likewise.
9692 * graphite.c: Likewise.
9693 * ipa-devirt.c: Likewise.
9694 * ipa-profile.c: Likewise.
9695 * ipa.c: Likewise.
9696 * ira.c: Likewise.
9697 * loop-init.c: Likewise.
9698 * loop-unroll.c: Likewise.
9699 * lower-subreg.c: Likewise.
9700 * lto/lto-object.c: Likewise.
9701 * recog.c: Likewise.
9702 * reginfo.c: Likewise.
9703 * tree-loop-distribution.c: Likewise.
9704 * tree-parloops.c: Likewise.
9705 * tree-ssa-strlen.c: Likewise.
9706 * tree-streamer.c: Likewise.
9707 * value-prof.c: Likewise.
9708 * target-globals.c: Likewise.
9709 * expr.h: Include tree-core.h instead of tree.h.
9710 * gimple.h: Likewise.
9711 * ipa-prop.h: Likewise.
9712 * ipa-utils.h: Likewise.
9713 * lto-streamer.h: Likewise.
9714 * streamer-hooks.h: Likewise.
9715 * ipa-reference.h: Include cgraph.h instead of tree.h.
9716 * cgraph.h: Include basic-block.h instead of tree.h.
9717 * tree-streamer.h: Do not include tree.h.
9718 * genattrtab.c (write_header): Generate inclusion of tree.h.
9719 * genautomata.c (main): Likewise.
9720 * genemit.c: Likewise.
9721 * genopinit.c: Likewise.
9722 * genoutput.c (output_prologue): Likewise.
9723 * genpeep.c: Likewise.
9724
9725 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9726
9727 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9728 little endian.
9729 (vec_unpacku_hi_v8hi): Likewise.
9730 (vec_unpacku_lo_v16qi): Likewise.
9731 (vec_unpacku_lo_v8hi): Likewise.
9732
9733 2013-10-20 Jan Hubicka <jh@suse.cz>
9734
9735 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9736 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9737 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9738
9739 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9740
9741 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9742 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9743 constants.
9744 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9745
9746 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9747
9748 PR target/58603
9749 * system.h: Undef m_slot.
9750
9751 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9752
9753 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9754 all elements for both endian flavors.
9755
9756 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9757
9758 PR target/58792
9759 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9760 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
9761 and SI_REG for 64bit SYSV ABI targets.
9762
9763 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9764
9765 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9766 to multi_reg_return. Clarify that we are skipping USEs of multiple
9767 return registers. Use bool type where appropriate.
9768
9769 2013-10-18 Jan Hubicka <jh@suse.cz>
9770
9771 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9772 for cold functions.
9773 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9774 (X86_TUNE_PUSH_MEMORY): Likewise.
9775 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9776 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9777 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9778 New.
9779 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9780 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9781 Remove.
9782 (ix86_option_override_internal): Update to use tune features instead
9783 of variables.
9784
9785 2013-10-18 Cong Hou <congh@google.com>
9786
9787 PR tree-optimization/58508
9788 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9789 statement that contains data refs with zero-step.
9790
9791 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9792
9793 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9794 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9795 * gimple-low.c (gimple_check_call_arg,
9796 gimple_check_call_matching_types): Move to cgraph.c.
9797 * gimple-low.h: Remove prototype.
9798 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9799 Relocate from gimple-low.c.
9800 * cgraph.h: Add prototype. Don't include basic-block.h.
9801 * gimplify.c: Add gimple-low to include list.
9802 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9803 * tree-eh.c: Add gimple-low to include list.
9804 * tree-nested.c: Likewise.
9805 * cfgexpand.c: Add tree-ssa-address.h to include list.
9806 * expr.c: Likewise.
9807 * gimple-fold.c: Likewise.
9808 * gimple-ssa-strength-reduction.c: Likewise.
9809 * trans-mem.c: Likewise.
9810 * tree-mudflap.c: Likewise.
9811 * tree-ssa-loop-ivopts.c: Likewise.
9812 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9813 (degenerate_phi_result): Move to tree-phinodes.c.
9814 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9815 * tree-ssa-threadedge.c: Likewise.
9816 * tree-vrp.c: Likewise.
9817 * tree-phinodes.c (degenerate_phi_result): Relocate here.
9818 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9819 * tree-phinodes.h (degenerate_phi_result): Add prototype.
9820 * tree-ssa-copy.c: Include tree-ssa-dom.h.
9821 * tree-ssa-forwprop.c: Likewise.
9822 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9823 pass_data_cleanup_cfg_post_optimizing,
9824 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9825 * tree-optimize.c: Delete File.
9826 * graphite.c: Include tree-cfgcleanup.h.
9827 * passes.c: Likewise.
9828 * tree-cfg.c: Likewise.
9829 * tree-profile.c: Likewise.
9830 * tree-ssa-dse.c: Likewise.
9831 * tree-ssa-loop-ivcanon.c: Likewise.
9832 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9833 * tree-outof-ssa.c: Include sbitmap.h.
9834 * tree-ssa-live.c: Likewise.
9835 * tree-ssa-propagate.c: Likewise.
9836 * tree-ssa-structalias.c: Likewise.
9837 * tree-stdarg.c: Likewise.
9838 * Makefile.in (OBJS): Delete tree-optimize.o.
9839 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9840 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9841 * varasm.c: Include basic-block.h.
9842 * cfgloop.h: Include function.h instead of basic-block.h
9843 (bb_loop_depth): Move to cfgloop.c.
9844 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9845
9846 2013-10-18 Teresa Johnson <tejohnson@google.com>
9847
9848 * predict.c (probably_never_executed): Compare frequency-based
9849 count to number of training runs.
9850 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9851
9852 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9853
9854 * config/arm/arm.c (cortexa9_extra_costs): New table.
9855 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9856
9857 2013-10-18 Jeff Law <law@redhat.com>
9858
9859 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9860
9861 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9862 (register_jump_thread): Add "registered_jump_thread" debug
9863 counter support.
9864 * dbgcnt.def (registered_jump_thread): New debug counter.
9865
9866 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9867
9868 * config/rs6000/rs6000.c: Include cgraph.h.
9869
9870 2013-10-18 Teresa Johnson <tejohnson@google.com>
9871
9872 * tree-ssa-tail-merge.c (replace_block_by): Update edge
9873 weights during merging.
9874
9875 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9876
9877 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
9878 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9879 * tree-ssa-operands.h: Remove prototype.
9880 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9881 * gimple.c (virtual_operand_p): Relocate from gimple.c.
9882 * gimple.h: Add prototype.
9883 * gimple-ssa.h: Include tree-ssa-operands.h.
9884 * tree-dump.c: Add tree-cfg.h to include list.
9885 * tree-ssa-alias.c: Add ipa-reference.h to include list.
9886 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9887 * config/i386/i386.c: Don't include tree-flow.h.
9888 * config/rs6000/rs6000.c: Likewise.
9889
9890 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9891
9892 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9893
9894 2013-10-18 Richard Biener <rguenther@suse.de>
9895
9896 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9897 or TYPE_UNSIGNED of integral types.
9898 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9899 NULL_TREE for zero-precision integral types.
9900
9901 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
9902
9903 * config/aarch64/arm_neon.h
9904 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9905
9906 2013-10-17 Sriraman Tallam <tmsriram@google.com>
9907
9908 PR target/57756
9909 * opth-gen.awk: Define target_flags_explicit.
9910
9911 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9912
9913 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9914 fields to the reg_addr array that describes the valid addressing
9915 mode for any register, general purpose registers, floating point
9916 registers, and Altivec registers.
9917 (FIRST_RELOAD_REG_CLASS): Likewise.
9918 (LAST_RELOAD_REG_CLASS): Likewise.
9919 (struct reload_reg_map_type): Likewise.
9920 (reload_reg_map_type): Likewise.
9921 (RELOAD_REG_VALID): Likewise.
9922 (RELOAD_REG_MULTIPLE): Likewise.
9923 (RELOAD_REG_INDEXED): Likewise.
9924 (RELOAD_REG_OFFSET): Likewise.
9925 (RELOAD_REG_PRE_INCDEC): Likewise.
9926 (RELOAD_REG_PRE_MODIFY): Likewise.
9927 (reg_addr): Likewise.
9928 (mode_supports_pre_incdec_p): New helper functions to say whether
9929 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9930 (mode_supports_pre_modify_p): Likewise.
9931 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9932 print the valid address mode bits for each mode.
9933 (rs6000_debug_print_mode): Likewise.
9934 (rs6000_debug_reg_global): Likewise.
9935 (rs6000_setup_reg_addr_masks): New function to set up the address
9936 mask bits for each type.
9937 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9938 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9939 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9940 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9941 PRE_MODIFY are supported.
9942 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9943 registers, instead of {src,dest}_av_p.
9944 (rs6000_print_options_internal): Tweak the debug output slightly.
9945
9946 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9947
9948 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9949 isa attribute.
9950
9951 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
9952
9953 * tree-flow.h (struct omp_region): Move to omp-low.c.
9954 Remove omp_ prototypes and variables.
9955 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9956 (copy_var_decl): Relocate prototype from tree-flow.h.
9957 * gimple.c (copy_var_decl): Relocate from omp-low.c.
9958 * tree.h: Move prototype to omp-low.h.
9959 * omp-low.h: New File. Relocate prototypes here.
9960 * omp-low.c (struct omp_region): Make local here.
9961 (root_omp_region): Make static.
9962 (copy_var_decl) Move to gimple.c.
9963 (new_omp_region): Make static.
9964 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
9965 * tree-cfg.c: Include omp-low.h.
9966 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9967 * gimplify.c: Include omp-low.h.
9968 * tree-parloops.c: Likewise.
9969
9970 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9971
9972 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9973 operands are in memory, prefer to force non-matched operand 1 to
9974 the register.
9975
9976 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9977
9978 PR target/58673
9979 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9980 restrict TImode addresses to single indirect registers if both
9981 -mquad-memory and -mvsx-timode are used.
9982 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9983 we should emit load/store quad. Remove using %y for quad memory
9984 addresses.
9985
9986 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9987 constraints to allow load/store quad on machines where TImode is
9988 not allowed in VSX registers. Use 'n' instead of 'F' constraint
9989 for TImode to load integer constants.
9990
9991 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9992
9993 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9994
9995 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
9996
9997 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9998 handling of STACK_REG.
9999
10000 2013-10-17 Richard Biener <rguenther@suse.de>
10001
10002 PR tree-optimization/58143
10003 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10004 New function.
10005 (rewrite_to_defined_overflow): Likewise.
10006 (move_computations_dom_walker::before_dom): Rewrite stmts
10007 with undefined signed overflow that are not always executed
10008 into unsigned arithmetic.
10009
10010 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10011
10012 PR target/57756
10013 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10014 explicit isa flag to be an options variable, instead of using
10015 global_options_set. Remove define from rs6000.h.
10016 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10017
10018 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10019 Initialize rs6000_isa_flags_explicit.
10020 (rs6000_function_specific_save): Add gcc_options* parameter, so
10021 that the powerpc builds after the 2013-10-15 changes.
10022 (rs6000_function_specific_restore): Likewise.
10023
10024 2013-10-16 DJ Delorie <dj@redhat.com>
10025
10026 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10027 op is a REG before checking REGNO.
10028 (rl78_alloc_physical_registers): Verify pattern is a SET before
10029 checking SET_SRC.
10030
10031 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10032
10033 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10034 endianness.
10035 (vec_unpacks_lo_v4sf): Likewise.
10036 (vec_unpacks_float_hi_v4si): Likewise.
10037 (vec_unpacks_float_lo_v4si): Likewise.
10038 (vec_unpacku_float_hi_v4si): Likewise.
10039 (vec_unpacku_float_lo_v4si): Likewise.
10040
10041 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10042
10043 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10044 (vsx_concat_v2sf): Likewise.
10045
10046 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10047
10048 * config/aarch64/aarch64.md
10049 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10050
10051 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10052
10053 PR tree-optimization/58697
10054 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10055 estimated_loop_iterations_int.
10056 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10057 (get_max_loop_iterations_int): New. HWINT version of
10058 get_max_loop_iterations.
10059 * cfgloop.h: Add prototypes.
10060 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10061 * loop-unroll.c (decide_peel_once_rolling): Call
10062 get_estimated_loop_iterations_int.
10063 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10064 * tree-ssa-loop-niter.h: Tweak prototypes.
10065
10066 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10067
10068 * gengtype-parse.c (struct_field_seq): Ignore access-control
10069 keywords ("public:" etc).
10070
10071 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10072
10073 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10074 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10075
10076 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10077
10078 * config/arm/arm.opt (mlra): New option.
10079 * config/arm/arm.c (arm_lra_p): New function.
10080 (TARGET_LRA_P): Define.
10081
10082 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10083
10084 * tree-core.h (tree_code_name): Remove.
10085 * tree.h (get_tree_code_name): New prototype.
10086 * tree.c (tree_code_name): Make static.
10087 (get_tree_code_name): New function.
10088 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10089 tree_class_check_failed, tree_range_check_failed,
10090 tree_not_class_check_failed, omp_clause_check_failed,
10091 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10092 wrapper get_tree_code_name instead of calling tree_code_name directly.
10093 * tree-vrp.c (dump_asserts_for): Likewise.
10094 * tree-dump.c (dequeue_and_dump): Likewise.
10095 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10096 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10097 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10098 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10099 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10100 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10101 dump_gimple_omp_for): Likewise.
10102 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10103 * tree-ssa-pre.c (print_pre_expr): Likewise.
10104 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10105 * print-tree.c (print_node_brief, print_node): Likewise.
10106 * gimple.c (gimple_check_failed): Likewise.
10107 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10108 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10109 * config/mep/mep.c (mep_validate_vliw): Likewise.
10110 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10111 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10112
10113 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10114
10115 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10116 for AMD bdver3.
10117
10118 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10119
10120 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10121 (MULTILIB_MATCHES): Add multilib for -march=v8.
10122
10123 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10124
10125 PR target/57756
10126 * optc-save-gen.awk: Add extra parameter to the save and restore
10127 target calls.
10128 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10129 * tree.c (build_optimization_node): New parameter. Add extra parameter
10130 to call to cl_optimization_save.
10131 (build_target_option_node): New parameter. Add extra parameter
10132 to call to cl_target_option_save.
10133 * tree.h (build_optimization_node): New parameter.
10134 (build_target_option_node): New parameter.
10135 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10136 build_optimization_node and build_target_option_node.
10137 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10138 (handle_pragma_push_options): Ditto.
10139 * toplev.c (process_options): Ditto.
10140 * opts.c (init_options_struct): Check for opts_set non-null.
10141 * target.def (target_option.save): New parameter.
10142 (target_option.restore): New parameter.
10143 * tm.texi: Generate.
10144 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10145 (ix86_pragma_target_parse): Ditto.
10146 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10147 parameters.
10148 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10149 to build_optimization_node and build_target_option_node.
10150 (rs6000_valid_attribute_p): Ditto.
10151 (rs6000_pragma_target_parse): Ditto.
10152 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10153 data.
10154 * config/i386/i386.h:
10155 TARGET_64BIT_P: New Macro
10156 TARGET_MMX_P: New Macro.
10157 TARGET_3DNOW_P: New Macro.
10158 TARGET_3DNOW_A_P: New Macro.
10159 TARGET_SSE_P: New Macro.
10160 TARGET_SSE2_P: New Macro.
10161 TARGET_SSE3_P: New Macro.
10162 TARGET_SSSE3_P: New Macro.
10163 TARGET_SSE4_1_P: New Macro.
10164 TARGET_SSE4_2_P: New Macro.
10165 TARGET_AVX_P: New Macro.
10166 TARGET_AVX2_P: New Macro.
10167 TARGET_AVX512F_P: New Macro.
10168 TARGET_AVX512PF_P: New Macro.
10169 TARGET_AVX512ER_P: New Macro.
10170 TARGET_AVX512CD_P: New Macro.
10171 TARGET_FMA_P: New Macro.
10172 TARGET_SSE4A_P: New Macro.
10173 TARGET_FMA4_P: New Macro.
10174 TARGET_XOP_P: New Macro.
10175 TARGET_LWP_P: New Macro.
10176 TARGET_ABM_P: New Macro.
10177 TARGET_BMI_P: New Macro.
10178 TARGET_BMI2_P: New Macro.
10179 TARGET_LZCNT_P: New Macro.
10180 TARGET_TBM_P: New Macro.
10181 TARGET_POPCNT_P: New Macro.
10182 TARGET_SAHF_P: New Macro.
10183 TARGET_MOVBE_P: New Macro.
10184 TARGET_CRC32_P: New Macro.
10185 TARGET_AES_P: New Macro.
10186 TARGET_PCLMUL_P: New Macro.
10187 TARGET_CMPXCHG16B_P: New Macro.
10188 TARGET_FSGSBASE_P: New Macro.
10189 TARGET_RDRND_P: New Macro.
10190 TARGET_F16C_P: New Macro.
10191 TARGET_RTM_P: New Macro.
10192 TARGET_HLE_P: New Macro.
10193 TARGET_RDSEED_P: New Macro.
10194 TARGET_PRFCHW_P: New Macro.
10195 TARGET_ADX_P: New Macro.
10196 TARGET_FXSR_P: New Macro.
10197 TARGET_XSAVE_P: New Macro.
10198 TARGET_XSAVEOPT_P: New Macro.
10199 TARGET_LP64_P: New Macro.
10200 TARGET_X32_P: New Macro.
10201 TARGET_FPMATH_DEFAULT_P: New Macro.
10202 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10203 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10204 opts and opts_set.
10205 Change ix86_tune_string to access opts->x_ix86_tune_string.
10206 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10207 Change ix86_arch_string to access opts->x_ix86_arch_string.
10208 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10209 Change ix86_pmode to access opts->x_ix86_pmode.
10210 Change ix86_abi to access opts->x_ix86_abi.
10211 Change ix86_cmodel to access opts->x_ix86_cmodel.
10212 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10213 Change ix86_isa_flags_explicit to access
10214 opts->x_ix86_isa_flags_explicit.
10215 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10216 Change ix86_regparm to access opts->x_ix86_regparm.
10217 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10218 Change ix86_preferred_stack_boundary_arg to access
10219 opts->x_ix86_preferred_stack_boundary_arg.
10220 Change ix86_force_align_arg_pointer to access
10221 opts->x_ix86_force_align_arg_pointer.
10222 Change ix86_incoming_stack_boundar_arg to access
10223 opts->x_ix86_incoming_stack_boundar_arg.
10224 Change ix86_fpmath to access opts->x_ix86_fpmath.
10225 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10226 Change ix86_recip_name to access opts->x_ix86_recip_name.
10227 Change ix86_stack_protector_guard to access
10228 opts->x_ix86_stack_protector_guard.
10229 Change ix86_tune_memcpy_strategy to access
10230 opts->x_ix86_tune_memcpy_strategy.
10231 Change ix86_tune_memset_strategy to access
10232 opts->x_ix86_tune_memset_strategy.
10233 Change global_options to access opts.
10234 Change global_options_set to access opts_set.
10235 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10236 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10237 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10238 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10239 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10240 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10241 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10242 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10243 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10244 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10245 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10246 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10247 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10248 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10249 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10250 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10251 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10252 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10253 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10254 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10255 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10256 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10257 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10258 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10259 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10260 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10261 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10262 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10263 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10264 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10265 Change TARGET_AES to TARGET_AES_P (opts->...).
10266 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10267 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10268 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10269 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10270 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10271 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10272 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10273 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10274 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10275 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10276 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10277 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10278 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10279 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10280 Change TARGET_X32 to TARGET_X32_P (opts->...).
10281 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10282 Change TARGET_FLOAT_RETURNS_IN_80387 to
10283 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10284 (ix86_function_specific_save): New parameter. Use opts-> fields
10285 to replace global fields.
10286 (ix86_function_specific_restore): Ditto.
10287 (ix86_valid_target_attribute_inner_p): New parameters.
10288 Fix recursive call.
10289 Fix call to ix86_handle_option and set_option.
10290 (ix86_valid_target_attribute_tree): New parameters.
10291 Change global_options to access opts.
10292 Change global_options_set to access opts_set.
10293 Fix call to ix86_valid_target_attribute_inner_p.
10294 Change ix86_tune_string to access opts->x_ix86_tune_string.
10295 Change ix86_arch_string to access opts->x_ix86_arch_string.
10296 Change ix86_fpmath to access opts->x_ix86_fpmath
10297 Fix call to ix86_option_override_internal.
10298 Fix call to ix86_add_new_builtins.
10299 Fix calls to build_optimization_node and build_target_option_node.
10300 (ix86_valid_target_attribute_p): Remove access to global_options.
10301 Use new gcc_options structure func_options.
10302 Fix call to ix86_valid_target_attribute_tree.
10303 Fix call to build_optimization_node.
10304 (get_builtin_code_for_version): Fix call to
10305 ix86_valid_target_attribute_tree.
10306
10307 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10308
10309 * Makefile.in (PICFLAG): New.
10310 (enable_host_shared): New.
10311 (INTERNAL_CFLAGS): Use PICFLAG.
10312 (LIBIBERTY): Use pic build of libiberty.a if configured with
10313 --enable-host-shared.
10314 * configure.ac: Add --enable-host-shared, setting up new
10315 PICFLAG variable.
10316 * configure: Regenerate.
10317 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10318 (--enable-host-shared): New option.
10319
10320 2013-10-15 Richard Biener <rguenther@suse.de>
10321
10322 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10323 for built-in functions.
10324
10325 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10326
10327 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10328 (optimize_range_tests_1): New function,
10329 extracted from optimize_range_tests.
10330 (optimize_range_tests_xor): Similarly.
10331 (optimize_range_tests_diff): New function.
10332 (optimize_range_tests): Use optimize_range_tests_1.
10333
10334 2013-10-15 Cong Hou <congh@google.com>
10335
10336 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10337 requirement of the reduction pattern so that one operand of the
10338 reduction operation can come from outside of the loop.
10339
10340 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10341
10342 * config/arm/neon-schedgen.ml: Remove.
10343 * config/arm/cortex-a9-neon.md: Remove comment regarding
10344 neon-schedgen.ml.
10345
10346 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10347
10348 * config/arm/types: Remove old neon types.
10349
10350 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10351
10352 * config/arm/cortex-a7.md
10353 (cortex_a7_neon_type): New.
10354 (cortex_a7_neon_mul): Update for new types.
10355 (cortex_a7_neon_mla): Likewise.
10356 (cortex_a7_neon): Likewise.
10357
10358 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10359
10360 * config/arm/cortex-a15-neon.md
10361 (cortex_a15_neon_type): New,
10362
10363 (cortex_a15_neon_int_1): Remove.
10364 (cortex_a15_neon_int_2): Likewise.
10365 (cortex_a15_neon_int_3): Likewise.
10366 (cortex_a15_neon_int_4): Likewise.
10367 (cortex_a15_neon_int_5): Likewise.
10368 (cortex_a15_neon_vqneg_vqabs): Likewise.
10369 (cortex_a15_neon_vmov): Likewise.
10370 (cortex_a15_neon_vaba): Likewise.
10371 (cortex_a15_neon_vaba_qqq): Likewise.
10372 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10373 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10374 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10375 Likewise.
10376 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10377 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10378 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10379 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10380 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10381 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10382 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10383 (cortex_a15_neon_shift_1): Likewise.
10384 (cortex_a15_neon_shift_2): Likewise.
10385 (cortex_a15_neon_shift_3): Likewise.
10386 (cortex_a15_neon_vshl_ddd): Likewise.
10387 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10388 (cortex_a15_neon_vsra_vrsra): Likewise.
10389 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10390 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10391 (cortex_a15_neon_bp_3cycle): Likewise.
10392 (cortex_a15_neon_ldm_2): Likewise.
10393 (cortex_a15_neon_stm_2): Likewise.
10394 (cortex_a15_neon_mcr): Likewise.
10395 (cortex_a15_neon_mrc): Likewise.
10396 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10397 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10398 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10399 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10400 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10401 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10402 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10403 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10404 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10405 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10406 (cortex_a15_neon_bp_simple): Likewise.
10407 (cortex_a15_neon_bp_2cycle): Likewise.
10408 (cortex_a15_neon_bp_3cycle): Likewise.
10409 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10410 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10411 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10412 (cortex_a15_neon_vld2_4_regs): Likewise.
10413 (cortex_a15_neon_vld3_vld4): Likewise.
10414 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10415 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10416 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10417 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10418 (cortex_a15_neon_vst3_vst4): Rename to...
10419 (cortex_a15_neon_vst4): This, update for new attributes.
10420 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10421 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10422 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10423 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10424 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10425 (cortex_a15_neon_ldm_2): Likewise.
10426 (cortex_a15_neon_stm_2): Likewise.
10427 (cortex_a15_neon_mcr): Likewise.
10428 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10429 (cortex_a15_neon_mrc): Likewise.
10430 (cortex_a15_neon_mrrc): Likewise.
10431
10432 (cortex_a15_neon_abd): New.
10433 (cortex_a15_neon_abd_q): Likewise.
10434 (cortex_a15_neon_aba): Likewise.
10435 (cortex_a15_neon_aba_q): Likewise.
10436 (cortex_a15_neon_acc): Likewise.
10437 (cortex_a15_neon_acc_q): Likewise.
10438 (cortex_a15_neon_arith_basic): Likewise.
10439 (cortex_a15_neon_arith_complex): Likewise.
10440 (cortex_a15_neon_multiply): Likewise.
10441 (cortex_a15_neon_multiply_q): Likewise.
10442 (cortex_a15_neon_mla): Likewise.
10443 (cortex_a15_neon_mla_q): Likewise.
10444 (cortex_a15_neon_sat_mla_long): Likewise.
10445 (cortex_a15_neon_shift_acc): Likewise.
10446 (cortex_a15_neon_shift_imm_basic): Likewise.
10447 (cortex_a15_neon_shift_imm_complex): Likewise.
10448 (cortex_a15_neon_shift_reg_basic): Likewise.
10449 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10450 (cortex_a15_neon_shift_reg_complex): Likewise.
10451 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10452 (cortex_a15_neon_fp_negabs): Likewise
10453 (cortex_a15_neon_fp_arith): Likewise
10454 (cortex_a15_neon_fp_arith_q): Likewise
10455 (cortex_a15_neon_fp_cvt_int): Likewise
10456 (cortex_a15_neon_fp_cvt_int_q): Likewise
10457 (cortex_a15_neon_fp_cvt_16): Likewise
10458 (cortex_a15_neon_fp_mul): Likewise
10459 (cortex_a15_neon_fp_mul_q): Likewise
10460 (cortex_a15_neon_fp_mla): Likewise
10461 (cortex_a15_neon_fp_mla_q): Likewise
10462 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10463 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10464 (cortex_a15_neon_bitops): Likewise.
10465 (cortex_a15_neon_bitops_q): Likewise.
10466 (cortex_a15_neon_from_gp): Likewise.
10467 (cortex_a15_neon_from_gp_q): Likewise.
10468 (cortex_a15_neon_tbl3_tbl4): Likewise.
10469 (cortex_a15_neon_zip_q): Likewise.
10470 (cortex_a15_neon_to_gp): Likewise.
10471 (cortex_a15_neon_load_a): Likewise.
10472 (cortex_a15_neon_load_b): Likewise.
10473 (cortex_a15_neon_load_c): Likewise.
10474 (cortex_a15_neon_load_d): Likewise.
10475 (cortex_a15_neon_load_e): Likewise.
10476 (cortex_a15_neon_load_f): Likewise.
10477 (cortex_a15_neon_store_a): Likewise.
10478 (cortex_a15_neon_store_b): Likewise.
10479 (cortex_a15_neon_store_c): Likewise.
10480 (cortex_a15_neon_store_d): Likewise.
10481 (cortex_a15_neon_store_e): Likewise.
10482 (cortex_a15_neon_store_f): Likewise.
10483 (cortex_a15_neon_store_g): Likewise.
10484 (cortex_a15_neon_store_h): Likewise.
10485 (cortex_a15_vfp_to_from_gp): Likewise.
10486
10487 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10488
10489 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10490
10491 (cortex_a9_neon_vshl_ddd): Remove.
10492 (cortex_a9_neon_vst3_vst4): Likewise.
10493 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10494
10495 (cortex_a9_neon_bit_ops_q): New.
10496
10497 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10498 (cortex_a9_neon_int_2): Likewise.
10499 (cortex_a9_neon_int_3): Likewise.
10500 (cortex_a9_neon_int_4): Likewise.
10501 (cortex_a9_neon_int_5): Likewise.
10502 (cortex_a9_neon_vqneg_vqabs): Likewise.
10503 (cortex_a9_neon_vmov): Likewise.
10504 (cortex_a9_neon_vaba): Likewise.
10505 (cortex_a9_neon_vaba_qqq): Likewise.
10506 (cortex_a9_neon_shift_1): Likewise.
10507 (cortex_a9_neon_shift_2): Likewise.
10508 (cortex_a9_neon_shift_3): Likewise.
10509 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10510 (cortex_a9_neon_vsra_vrsra): Likewise.
10511 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10512 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10513 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10514 Likewise.
10515 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10516 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10517 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10518 Likewise.
10519 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10520 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10521 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10522 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10523 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10524 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10525 (cortex_a9_neon_fp_vsum): Likewise.
10526 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10527 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10528 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10529 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10530 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10531 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10532 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10533 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10534 (cortex_a9_neon_bp_simple): Likewise.
10535 (cortex_a9_neon_bp_2cycle): Likewise.
10536 (cortex_a9_neon_bp_3cycle): Likewise.
10537 (cortex_a9_neon_ldr): Likewise.
10538 (cortex_a9_neon_str): Likewise.
10539 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10540 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10541 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10542 (cortex_a9_neon_vld2_4_regs): Likewise.
10543 (cortex_a9_neon_vld3_vld4): Likewise.
10544 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10545 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10546 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10547 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10548 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10549 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10550 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10551 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10552 (cortex_a9_neon_mcr): Likewise.
10553 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10554 (cortex_a9_neon_mrc): Likewise.
10555 (cortex_a9_neon_mrrc): Likewise.
10556
10557 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10558
10559 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10560
10561 (cortex_a8_neon_vshl_ddd): Remove.
10562 (cortex_a8_neon_vst3_vst4): Likewise.
10563 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10564
10565 (cortex_a8_neon_bit_ops_q): New.
10566
10567 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10568 (cortex_a8_neon_int_2): Likewise..
10569 (cortex_a8_neon_int_3): Likewise.
10570 (cortex_a8_neon_int_5): Likewise.
10571 (cortex_a8_neon_vqneg_vqabs): Likewise.
10572 (cortex_a8_neon_int_4): Likewise.
10573 (cortex_a8_neon_vaba): Likewise.
10574 (cortex_a8_neon_vaba_qqq): Likewise.
10575 (cortex_a8_neon_shift_1): Likewise.
10576 (cortex_a8_neon_shift_2): Likewise.
10577 (cortex_a8_neon_shift_3): Likewise.
10578 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10579 (cortex_a8_neon_vsra_vrsra): Likewise.
10580 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10581 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10582 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10583 Likewise.
10584 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10585 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10586 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10587 Likewise.
10588 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10589 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10590 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10591 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10592 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10593 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10594 (cortex_a8_neon_fp_vsum): Likewise.
10595 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10596 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10597 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10598 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10599 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10600 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10601 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10602 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10603 (cortex_a8_neon_bp_simple): Likewise.
10604 (cortex_a8_neon_bp_2cycle): Likewise.
10605 (cortex_a8_neon_bp_3cycle): Likewise.
10606 (cortex_a8_neon_ldr): Likewise.
10607 (cortex_a8_neon_str): Likewise.
10608 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10609 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10610 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10611 (cortex_a8_neon_vld2_4_regs): Likewise.
10612 (cortex_a8_neon_vld3_vld4): Likewise.
10613 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10614 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10615 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10616 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10617 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10618 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10619 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10620 (cortex_a8_neon_mcr): Likewise.
10621 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10622 (cortex_a8_neon_mrc): Likewise.
10623 (cortex_a8_neon_mrrc): Likewise.
10624
10625 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10626
10627 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10628 (fp): New.
10629 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10630 (aarch64_simd_dup<mode>): Add "type" attribute.
10631 (aarch64_dup_lane<mode>): Likewise.
10632 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10633 (*aarch64_simd_mov<mode>): Likewise.
10634 (aarch64_simd_mov_from_<mode>low): Likewise.
10635 (aarch64_simd_mov_from_<mode>high): Likewise.
10636 (orn<mode>3): Likewise.
10637 (bic<mode>3): Likewise.
10638 (add<mode>3): Likewise.
10639 (sub<mode>3): Likewise.
10640 (mul<mode>3): Likewise.
10641 (*aarch64_mul3_elt<mode>): Likewise.
10642 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10643 (*aarch64_mul3_elt_to_128df): Likewise.
10644 (*aarch64_mul3_elt_to_64v2df): Likewise.
10645 (neg<mode>2): Likewise.
10646 (abs<mode>2): Likewise.
10647 (abd<mode>_3): Likewise.
10648 (aba<mode>_3): Likewise.
10649 (fabd<mode>_3): Likewise.
10650 (*fabd_scalar<mode>3): Likewise.
10651 (and<mode>3): Likewise.
10652 (ior<mode>3): Likewise.
10653 (xor<mode>3): Likewise.
10654 (one_cmpl<mode>2): Likewise.
10655 (aarch64_simd_vec_set<mode>): Likewise.
10656 (aarch64_simd_lshr<mode>): Likewise.
10657 (aarch64_simd_ashr<mode>): Likewise.
10658 (aarch64_simd_imm_shl<mode>): Likewise.
10659 (aarch64_simd_reg_sshl<mode): Likewise.
10660 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10661 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10662 (aarch64_simd_vec_setv2di): Likewise.
10663 (aarch64_simd_vec_set<mode>): Likewise.
10664 (aarch64_mla<mode>): Likewise.
10665 (*aarch64_mla_elt<mode>): Likewise.
10666 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10667 (aarch64_mls<mode>): Likewise.
10668 (*aarch64_mls_elt<mode>): Likewise.
10669 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10670 (<su><maxmin><mode>3): Likewise.
10671 (move_lo_quad_<mode>): Likewise.
10672 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10673 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10674 (vec_pack_trunc_<mode>): Likewise.
10675 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10676 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10677 (*aarch64_<su>mlal_lo<mode>): Likewise.
10678 (*aarch64_<su>mlal_hi<mode>): Likewise.
10679 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10680 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10681 (*aarch64_<su>mlal<mode>): Likewise.
10682 (*aarch64_<su>mlsl<mode>): Likewise.
10683 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10684 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10685 (add<mode>3): Likewise.
10686 (sub<mode>3): Likewise.
10687 (mul<mode>3): Likewise.
10688 (div<mode>3): Likewise.
10689 (neg<mode>2): Likewise.
10690 (abs<mode>2): Likewise.
10691 (fma<mode>4): Likewise.
10692 (*aarch64_fma4_elt<mode>): Likewise.
10693 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10694 (*aarch64_fma4_elt_to_128df): Likewise.
10695 (*aarch64_fma4_elt_to_64v2df): Likewise.
10696 (fnma<mode>4): Likewise.
10697 (*aarch64_fnma4_elt<mode>): Likewise.
10698 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10699 (*aarch64_fnma4_elt_to_128df): Likewise.
10700 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10701 (<frint_pattern><mode>2): Likewise.
10702 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10703 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10704 (vec_unpacks_lo_v4sf): Likewise.
10705 (aarch64_float_extend_lo_v2df): Likewise.
10706 (vec_unpacks_hi_v4sf): Likewise.
10707 (aarch64_float_truncate_lo_v2sf): Likewise.
10708 (aarch64_float_truncate_hi_v4sf): Likewise.
10709 (aarch64_vmls<mode>): Likewise.
10710 (<su><maxmin><mode>3): Likewise.
10711 (<maxmin_uns><mode>3): Likewise.
10712 (reduc_<sur>plus_<mode>): Likewise.
10713 (reduc_<sur>plus_v2di): Likewise.
10714 (reduc_<sur>plus_v2si): Likewise.
10715 (reduc_<sur>plus_<mode>): Likewise.
10716 (aarch64_addpv4sf): Likewise.
10717 (clz<mode>2): Likewise.
10718 (reduc_<maxmin_uns>_<mode>): Likewise.
10719 (reduc_<maxmin_uns>_v2di): Likewise.
10720 (reduc_<maxmin_uns>_v2si): Likewise.
10721 (reduc_<maxmin_uns>_<mode>): Likewise.
10722 (reduc_<maxmin_uns>_v4sf): Likewise.
10723 (aarch64_simd_bsl<mode>_internal): Likewise.
10724 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10725 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10726 (aarch64_get_lane<mode>): Likewise.
10727 (*aarch64_combinez<mode>): Likewise.
10728 (aarch64_combine<mode>): Likewise.
10729 (aarch64_simd_combine<mode>): Likewise.
10730 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10731 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10732 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10733 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10734 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10735 (aarch64_<sur>h<addsub><mode>): Likewise.
10736 (aarch64_<sur><addsub>hn<mode>): Likewise.
10737 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10738 (aarch64_pmul<mode>): Likewise.
10739 (aarch64_<su_optab><optab><mode>): Likewise.
10740 (aarch64_<sur>qadd<mode>): Likewise.
10741 (aarch64_sqmovun<mode>): Likewise.
10742 (aarch64_<sur>qmovn<mode>): Likewise.
10743 (aarch64_s<optab><mode>): Likewise.
10744 (aarch64_sq<r>dmulh<mode>): Likewise.
10745 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10746 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10747 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10748 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10749 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10750 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10751 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10752 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10753 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10754 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10755 (aarch64_sqdmull<mode>): Likewise.
10756 (aarch64_sqdmull_lane<mode>_internal): Likewise.
10757 (aarch64_sqdmull_n<mode>): Likewise.
10758 (aarch64_sqdmull2<mode>_internal): Likewise.
10759 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10760 (aarch64_sqdmull2_n<mode>_internal): Likewise.
10761 (aarch64_<sur>shl<mode>): Likewise.
10762 (aarch64_<sur>q<r>shl<mode>
10763 (aarch64_<sur>shll_n<mode>): Likewise.
10764 (aarch64_<sur>shll2_n<mode>): Likewise.
10765 (aarch64_<sur>shr_n<mode>): Likewise.
10766 (aarch64_<sur>sra_n<mode>): Likewise.
10767 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10768 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10769 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10770 (aarch64_cm<optab><mode>): Likewise.
10771 (aarch64_cm<optab>di): Likewise.
10772 (aarch64_cm<optab><mode>): Likewise.
10773 (aarch64_cm<optab>di): Likewise.
10774 (aarch64_cmtst<mode>): Likewise.
10775 (aarch64_cmtstdi): Likewise.
10776 (aarch64_cm<optab><mode>): Likewise.
10777 (*aarch64_fac<optab><mode>): Likewise.
10778 (aarch64_addp<mode>): Likewise.
10779 (aarch64_addpdi): Likewise.
10780 (sqrt<mode>2): Likewise.
10781 (vec_load_lanesoi<mode>): Likewise.
10782 (vec_store_lanesoi<mode>): Likewise.
10783 (vec_load_lanesci<mode>): Likewise.
10784 (vec_store_lanesci<mode>): Likewise.
10785 (vec_load_lanesxi<mode>): Likewise.
10786 (vec_store_lanesxi<mode>): Likewise.
10787 (*aarch64_mov<mode>): Likewise.
10788 (aarch64_ld2<mode>_dreg): Likewise.
10789 (aarch64_ld2<mode>_dreg): Likewise.
10790 (aarch64_ld3<mode>_dreg): Likewise.
10791 (aarch64_ld3<mode>_dreg): Likewise.
10792 (aarch64_ld4<mode>_dreg): Likewise.
10793 (aarch64_ld4<mode>_dreg): Likewise.
10794 (aarch64_tbl1<mode>): Likewise.
10795 (aarch64_tbl2v16qi): Likewise.
10796 (aarch64_combinev16qi): Likewise.
10797 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10798 (aarch64_st2<mode>_dreg): Likewise.
10799 (aarch64_st2<mode>_dreg): Likewise.
10800 (aarch64_st3<mode>_dreg): Likewise.
10801 (aarch64_st3<mode>_dreg): Likewise.
10802 (aarch64_st4<mode>_dreg): Likewise.
10803 (aarch64_st4<mode>_dreg): Likewise.
10804 (*aarch64_simd_ld1r<mode>): Likewise.
10805 (aarch64_frecpe<mode>): Likewise.
10806 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10807 (aarch64_frecps<mode>): Likewise.
10808
10809 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10810
10811 * config/arm/iterators.md (V_elem_ch): New.
10812 (q): Likewise.
10813 (VQH_type): Likewise.
10814 * config/arm/arm.md (is_neon_type): New.
10815 (conds): Use is_neon_type.
10816 (anddi3_insn): Update type attribute.
10817 (xordi3_insn): Likewise.
10818 (one_cmpldi2): Likewise.
10819 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10820 * config/arm/neon.md (neon_mov): Update type attribute.
10821 (*movmisalign<mode>_neon_store): Likewise.
10822 (*movmisalign<mode>_neon_load): Likewise.
10823 (vec_set<mode>_internal): Likewise.
10824 (vec_set<mode>_internal): Likewise.
10825 (vec_setv2di_internal): Likewise.
10826 (vec_extract<mode>): Likewise.
10827 (vec_extract<mode>): Likewise.
10828 (vec_extractv2di): Likewise.
10829 (*add<mode>3_neon): Likewise.
10830 (adddi3_neon): Likewise.
10831 (*sub<mode>3_neon): Likewise.
10832 (subdi3_neon): Likewise.
10833 (fma<VCVTF:mode>4): Likewise.
10834 (fma<VCVTF:mode>4_intrinsic): Likewise.
10835 (*fmsub<VCVTF:mode>4): Likewise.
10836 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10837 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10838 (ior<mode>3): Likewise.
10839 (and<mode>3): Likewise.
10840 (orn<mode>3_neon): Likewise.
10841 (orndi3_neon): Likewise.
10842 (bic<mode>3_neon): Likewise.
10843 (bicdi3_neon): Likewise.
10844 (xor<mode>3): Likewise.
10845 (one_cmpl<mode>2): Likewise.
10846 (abs<mode>2): Likewise.
10847 (neg<mode>2): Likewise.
10848 (negdi2_neon): Likewise.
10849 (*umin<mode>3_neon): Likewise.
10850 (*umax<mode>3_neon): Likewise.
10851 (*smin<mode>3_neon): Likewise.
10852 (*smax<mode>3_neon): Likewise.
10853 (vashl<mode>3): Likewise.
10854 (vashr<mode>3_imm): Likewise.
10855 (vlshr<mode>3_imm): Likewise.
10856 (ashl<mode>3_signed): Likewise.
10857 (ashl<mode>3_unsigned): Likewise.
10858 (neon_load_count): Likewise.
10859 (ashldi3_neon_noclobber): Likewise.
10860 (ashldi3_neon): Likewise.
10861 (signed_shift_di3_neon): Likewise.
10862 (unsigned_shift_di3_neon): Likewise.
10863 (ashrdi3_neon_imm_noclobber): Likewise.
10864 (lshrdi3_neon_imm_noclobber): Likewise.
10865 (<shift>di3_neon): Likewise.
10866 (widen_ssum<mode>3): Likewise.
10867 (widen_usum<mode>3): Likewise.
10868 (quad_halves_<code>v4si): Likewise.
10869 (quad_halves_<code>v4sf): Likewise.
10870 (quad_halves_<code>v8hi): Likewise.
10871 (quad_halves_<code>v16qi): Likewise.
10872 (reduc_splus_v2di): Likewise.
10873 (neon_vpadd_internal<mode>): Likewise.
10874 (neon_vpsmin<mode>): Likewise.
10875 (neon_vpsmax<mode>): Likewise.
10876 (neon_vpumin<mode>): Likewise.
10877 (neon_vpumax<mode>): Likewise.
10878 (*ss_add<mode>_neon): Likewise.
10879 (*us_add<mode>_neon): Likewise.
10880 (*ss_sub<mode>_neon): Likewise.
10881 (*us_sub<mode>_neon): Likewise.
10882 (neon_vadd<mode>_unspec): Likewise.
10883 (neon_vaddl<mode>): Likewise.
10884 (neon_vaddw<mode>): Likewise.
10885 (neon_vhadd<mode>): Likewise.
10886 (neon_vqadd<mode>): Likewise.
10887 (neon_vaddhn<mode>): Likewise.
10888 (neon_vmul<mode>): Likewise.
10889 (neon_vfms<VCVTF:mode>): Likewise.
10890 (neon_vmlal<mode>): Likewise.
10891 (neon_vmls<mode>): Likewise.
10892 (neon_vmlsl<mode>): Likewise.
10893 (neon_vqdmulh<mode>): Likewise.
10894 (neon_vqdmlal<mode>): Likewise.
10895 (neon_vqdmlsl<mode>): Likewise.
10896 (neon_vmull<mode>): Likewise.
10897 (neon_vqdmull<mode>): Likewise.
10898 (neon_vsub<mode>_unspec): Likewise.
10899 (neon_vsubl<mode>): Likewise.
10900 (neon_vsubw<mode>): Likewise.
10901 (neon_vqsub<mode>): Likewise.
10902 (neon_vhsub<mode>): Likewise.
10903 (neon_vsubhn<mode>): Likewise.
10904 (neon_vceq<mode>): Likewise.
10905 (neon_vcge<mode>): Likewise.
10906 (neon_vcgeu<mode>): Likewise.
10907 (neon_vcgt<mode>): Likewise.
10908 (neon_vcgtu<mode>): Likewise.
10909 (neon_vcle<mode>): Likewise.
10910 (neon_vclt<mode>): Likewise.
10911 (neon_vcage<mode>): Likewise.
10912 (neon_vcagt<mode>): Likewise.
10913 (neon_vtst<mode>): Likewise.
10914 (neon_vabd<mode>): Likewise.
10915 (neon_vabdl<mode>): Likewise.
10916 (neon_vaba<mode>): Likewise.
10917 (neon_vabal<mode>): Likewise.
10918 (neon_vmax<mode>): Likewise.
10919 (neon_vmin<mode>): Likewise.
10920 (neon_vpaddl<mode>): Likewise.
10921 (neon_vpadal<mode>): Likewise.
10922 (neon_vpmax<mode>): Likewise.
10923 (neon_vpmin<mode>): Likewise.
10924 (neon_vrecps<mode>): Likewise.
10925 (neon_vrsqrts<mode>): Likewise.
10926 (neon_vqabs<mode>): Likewise.
10927 (neon_vqneg<mode>): Likewise.
10928 (neon_vcls<mode>): Likewise.
10929 (clz<mode>2): Likewise.
10930 (popcount<mode>2): Likewise.
10931 (neon_vrecpe<mode>): Likewise.
10932 (neon_vrsqrte<mode>): Likewise.
10933 (neon_vget_lane<mode>_sext_internal): Likewise.
10934 (neon_vget_lane<mode>_zext_internal): Likewise.
10935 (neon_vdup_n<mode>): Likewise.
10936 (neon_vdup_n<mode>): Likewise.
10937 (neon_vdup_nv2di): Likewise.
10938 (neon_vdup_lane<mode>_interal): Likewise.
10939 (*neon_vswp<mode>): Likewise.
10940 (neon_vcombine<mode>): Likewise.
10941 (float<mode><V_cvtto>2): Likewise.
10942 (floatuns<mode><V_cvtto>2): Likewise.
10943 (fix_trunc<mode><V_cvtto>2): Likewise.
10944 (fixuns_trunc<mode><V_cvtto>2
10945 (neon_vcvt<mode>): Likewise.
10946 (neon_vcvt<mode>): Likewise.
10947 (neon_vcvtv4sfv4hf): Likewise.
10948 (neon_vcvtv4hfv4sf): Likewise.
10949 (neon_vcvt_n<mode>): Likewise.
10950 (neon_vcvt_n<mode>): Likewise.
10951 (neon_vmovn<mode>): Likewise.
10952 (neon_vqmovn<mode>): Likewise.
10953 (neon_vqmovun<mode>): Likewise.
10954 (neon_vmovl<mode>): Likewise.
10955 (neon_vmul_lane<mode>): Likewise.
10956 (neon_vmul_lane<mode>): Likewise.
10957 (neon_vmull_lane<mode>): Likewise.
10958 (neon_vqdmull_lane<mode>): Likewise.
10959 (neon_vqdmulh_lane<mode>): Likewise.
10960 (neon_vqdmulh_lane<mode>): Likewise.
10961 (neon_vmla_lane<mode>): Likewise.
10962 (neon_vmla_lane<mode>): Likewise.
10963 (neon_vmlal_lane<mode>): Likewise.
10964 (neon_vqdmlal_lane<mode>): Likewise.
10965 (neon_vmls_lane<mode>): Likewise.
10966 (neon_vmls_lane<mode>): Likewise.
10967 (neon_vmlsl_lane<mode>): Likewise.
10968 (neon_vqdmlsl_lane<mode>): Likewise.
10969 (neon_vext<mode>): Likewise.
10970 (neon_vrev64<mode>): Likewise.
10971 (neon_vrev32<mode>): Likewise.
10972 (neon_vrev16<mode>): Likewise.
10973 (neon_vbsl<mode>_internal): Likewise.
10974 (neon_vshl<mode>): Likewise.
10975 (neon_vqshl<mode>): Likewise.
10976 (neon_vshr_n<mode>): Likewise.
10977 (neon_vshrn_n<mode>): Likewise.
10978 (neon_vqshrn_n<mode>): Likewise.
10979 (neon_vqshrun_n<mode>): Likewise.
10980 (neon_vshl_n<mode>): Likewise.
10981 (neon_vqshl_n<mode>): Likewise.
10982 (neon_vqshlu_n<mode>): Likewise.
10983 (neon_vshll_n<mode>): Likewise.
10984 (neon_vsra_n<mode>): Likewise.
10985 (neon_vsri_n<mode>): Likewise.
10986 (neon_vsli_n<mode>): Likewise.
10987 (neon_vtbl1v8qi): Likewise.
10988 (neon_vtbl2v8qi): Likewise.
10989 (neon_vtbl3v8qi): Likewise.
10990 (neon_vtbl4v8qi): Likewise.
10991 (neon_vtbl1v16qi): Likewise.
10992 (neon_vtbl2v16qi): Likewise.
10993 (neon_vcombinev16qi): Likewise.
10994 (neon_vtbx1v8qi): Likewise.
10995 (neon_vtbx2v8qi): Likewise.
10996 (neon_vtbx3v8qi): Likewise.
10997 (neon_vtbx4v8qi): Likewise.
10998 (*neon_vtrn<mode>_insn): Likewise.
10999 (*neon_vzip<mode>_insn): Likewise.
11000 (*neon_vuzp<mode>_insn): Likewise.
11001 (neon_vld1<mode>): Likewise.
11002 (neon_vld1_lane<mode>): Likewise.
11003 (neon_vld1_lane<mode>): Likewise.
11004 (neon_vld1_dup<mode>): Likewise.
11005 (neon_vld1_dup<mode>): Likewise.
11006 (neon_vld1_dupv2di): Likewise.
11007 (neon_vst1<mode>): Likewise.
11008 (neon_vst1_lane<mode>): Likewise.
11009 (neon_vst1_lane<mode>): Likewise.
11010 (neon_vld2<mode>): Likewise.
11011 (neon_vld2<mode>): Likewise.
11012 (neon_vld2_lane<mode>): Likewise.
11013 (neon_vld2_lane<mode>): Likewise.
11014 (neon_vld2_dup<mode>): Likewise.
11015 (neon_vst2<mode>): Likewise.
11016 (neon_vst2<mode>): Likewise.
11017 (neon_vst2_lane<mode>): Likewise.
11018 (neon_vst2_lane<mode>): Likewise.
11019 (neon_vld3<mode>): Likewise.
11020 (neon_vld3qa<mode>): Likewise.
11021 (neon_vld3qb<mode>): Likewise.
11022 (neon_vld3_lane<mode>): Likewise.
11023 (neon_vld3_lane<mode>): Likewise.
11024 (neon_vld3_dup<mode>): Likewise.
11025 (neon_vst3<mode>): Likewise.
11026 (neon_vst3qa<mode>): Likewise.
11027 (neon_vst3qb<mode>): Likewise.
11028 (neon_vst3_lane<mode>): Likewise.
11029 (neon_vst3_lane<mode>): Likewise.
11030 (neon_vld4<mode>): Likewise.
11031 (neon_vld4qa<mode>): Likewise.
11032 (neon_vld4qb<mode>): Likewise.
11033 (neon_vld4_lane<mode>): Likewise.
11034 (neon_vld4_lane<mode>): Likewise.
11035 (neon_vld4_dup<mode>): Likewise.
11036 (neon_vst4<mode>): Likewise.
11037 (neon_vst4qa<mode>): Likewise.
11038 (neon_vst4qb<mode>): Likewise.
11039 (neon_vst4_lane<mode>): Likewise.
11040 (neon_vst4_lane<mode>): Likewise.
11041 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11042 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11043 (neon_vec_<US>mult_lo_<mode>): Likewise.
11044 (neon_vec_<US>mult_hi_<mode>): Likewise.
11045 (neon_vec_<US>shiftl_<mode>): Likewise.
11046 (neon_unpack<US>_<mode>): Likewise.
11047 (neon_vec_<US>mult_<mode>): Likewise.
11048 (vec_pack_trunc_<mode>): Likewise.
11049 (neon_vec_pack_trunc_<mode>): Likewise.
11050 (neon_vabd<mode>_2): Likewise.
11051 (neon_vabd<mode>_3): Likewise.
11052
11053 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11054
11055 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11056 (load_pair): Update type attribute.
11057 (store_pair): Update type attribute.
11058 * config/aarch64/iterators.md (q): New.
11059
11060 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11061
11062 * config/arm/types.md: Add new types for Neon insns.
11063
11064 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11065 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11066 Sergey Lega <sergey.s.lega@intel.com>
11067 Anna Tikhonova <anna.tikhonova@intel.com>
11068 Ilya Tocar <ilya.tocar@intel.com>
11069 Andrey Turetskiy <andrey.turetskiy@intel.com>
11070 Ilya Verbin <ilya.verbin@intel.com>
11071 Kirill Yukhin <kirill.yukhin@intel.com>
11072 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11073
11074 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11075 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11076 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11077 (rcp14<mode>): New.
11078 (srcp14<mode>): Ditto.
11079 (rsqrt14<mode>): Ditto.
11080 (rsqrt14<mode>): Ditto.
11081 (avx512f_vmscalef<mode>): Ditto.
11082 (avx512f_scalef<mode>): Ditto.
11083 (avx512f_getexp<mode>): Ditto.
11084 (avx512f_sgetexp<mode>): Ditto.
11085 (avx512f_fixupimm<mode>): Ditto.
11086 (avx512f_sfixupimm<mode>): Ditto.
11087 (avx512f_rndscale<mode>): Ditto.
11088 (*avx512er_exp2<mode>): Ditto.
11089 (*avx512er_rcp28<mode>): Ditto.
11090 (avx512er_rsqrt28<mode>): Ditto.
11091 (avx512f_getmant<mode>): Ditto.
11092 (avx512f_getmant<mode>): Ditto.
11093 (avx512f_rndscale<mode>): Fix formatting.
11094
11095 2013-10-15 Martin Jambor <mjambor@suse.cz>
11096
11097 * ipa-utils.h (ipa_edge_within_scc): Declare.
11098 * ipa-cp.c (edge_within_scc): Moved...
11099 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11100
11101 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11102 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11103 Sergey Lega <sergey.s.lega@intel.com>
11104 Anna Tikhonova <anna.tikhonova@intel.com>
11105 Ilya Tocar <ilya.tocar@intel.com>
11106 Andrey Turetskiy <andrey.turetskiy@intel.com>
11107 Ilya Verbin <ilya.verbin@intel.com>
11108 Kirill Yukhin <kirill.yukhin@intel.com>
11109 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11110
11111 * config/i386/predicates.md (const_8_to_15_operand): New.
11112 (const_16_to_31_operand): Ditto.
11113 * config/i386/sse.md (V8FI): New.
11114 (V16FI): Ditto.
11115 (reduc_splus_v8df): Ditto.
11116 (reduc_splus_v16sf): Ditto.
11117 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11118 (vec_extract_hi_<mode>): Ditto.
11119 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11120 (vec_set_lo_<mode>): Ditto.
11121 (vec_set_hi_<mode>): Ditto.
11122 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11123 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11124 (avx512f_pshufd_1): Ditto.
11125 (avx512f_broadcast<mode>): Ditto.
11126 (avx512f_broadcast<mode>): Ditto.
11127 (define_split): Split vec_extract_lo into move.
11128 (ssequartermode): Ditto.
11129 (ssedoublemode): Extened with wider modes.
11130 (vec_extract_lo_<mode>): Ditto.
11131
11132 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11133 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11134 Sergey Lega <sergey.s.lega@intel.com>
11135 Anna Tikhonova <anna.tikhonova@intel.com>
11136 Ilya Tocar <ilya.tocar@intel.com>
11137 Andrey Turetskiy <andrey.turetskiy@intel.com>
11138 Ilya Verbin <ilya.verbin@intel.com>
11139 Kirill Yukhin <kirill.yukhin@intel.com>
11140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11141
11142 * config/i386/predicates.md (register_or_constm1_operand): New.
11143 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11144 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11145 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11146 UNSPEC_SCATTER_PREFETCH
11147 (VI48_512): New.
11148 (avx512f_ucmp<mode>3): Ditto.
11149 (avx512f_vternlog<mode>): Ditto.
11150 (avx512f_align<mode>): Ditto.
11151 (<shift_insn><mode>3): Ditto.
11152 (avx512f_<rotate>v<mode>): Ditto.
11153 (avx512f_<rotate><mode>): Ditto.
11154 (avx512f_eq<mode>3): Ditto.
11155 (avx512f_eq<mode>3_1): Ditto.
11156 (avx512f_gt<mode>3): Ditto.
11157 (avx512f_testm<mode>3): Ditto.
11158 (avx512f_testnm<mode>3): Ditto.
11159 (avx512pf_gatherpf<mode>): Ditto.
11160 (*avx512pf_gatherpf<mode>_mask): Ditto.
11161 (*avx512pf_gatherpf<mode>): Ditto.
11162 (avx512pf_scatterpf<mode>): Ditto.
11163 (*avx512pf_scatterpf<mode>_mask): Ditto.
11164 (*avx512pf_scatterpf<mode>): Ditto.
11165 (avx512f_vec_dup_gpr<mode>): Ditto.
11166 (clz<mode>2): Ditto.
11167 (conflict<mode>): Ditto.
11168 (REDUC_SMINMAX_MODE): Extened with wider modes.
11169 (reduc_<code>_<mode>): Ditto.
11170 (vlshr<mode>3): Ditto.
11171 (vashl<mode>3): Ditto.
11172
11173 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11175 Sergey Lega <sergey.s.lega@intel.com>
11176 Anna Tikhonova <anna.tikhonova@intel.com>
11177 Ilya Tocar <ilya.tocar@intel.com>
11178 Andrey Turetskiy <andrey.turetskiy@intel.com>
11179 Ilya Verbin <ilya.verbin@intel.com>
11180 Kirill Yukhin <kirill.yukhin@intel.com>
11181 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11182
11183 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11184 UNSPEC_SCATTER.
11185 (VI48F_512): New.
11186 (avx512fmaskmode): Ditto.
11187 (bcstscalarsuff): Ditto.
11188 (avx512f_blendm<mode>): Ditto.
11189 (cmp_imm_predicate): Ditto.
11190 (avx512f_cmp<mode>3): Ditto.
11191 (avx512f_vec_dup<mode>): Ditto.
11192 (avx512f_vec_dup_mem<mode>): Ditto.
11193 (avx512f_vpermi2var<mode>3): Ditto.
11194 (avx512f_vpermt2var<mode>3): Ditto.
11195 (vec_init<mode>): Ditto.
11196 (avx512f_gathersi<mode>): Ditto.
11197 (*avx512f_gathersi<mode>): Ditto.
11198 (*avx512f_gathersi<mode>_2): Ditto.
11199 (avx512f_gatherdi<mode>): Ditto.
11200 (*avx512f_gatherdi<mode>): Ditto.
11201 (*avx512f_gatherdi<mode>_2): Ditto.
11202 (avx512f_scattersi<mode>): Ditto.
11203 (*avx512f_scattersi<mode>): Ditto.
11204 (avx512f_scatterdi<mode>): Ditto.
11205 (*avx512f_scatterdi<mode>): Ditto.
11206 (sseintprefix): Extened with wider modes.
11207 (VEC_GATHER_IDXSI): Ditto.
11208 (VEC_GATHER_IDXDI): Ditto.
11209 (VEC_GATHER_SRCDI): Ditto.
11210
11211 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11212 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11213
11214 * config/arm/t-aprofile: New file.
11215 * config.gcc: Handle --with-multilib-list option.
11216
11217 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11218
11219 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11220 the input for r2.
11221
11222 2013-10-15 Richard Biener <rguenther@suse.de>
11223
11224 * tree-loop-distribution.c (build_empty_rdg): Inline into
11225 single user.
11226 (rdg_flag_vertex): Inline into single user.
11227 (rdg_flag_vertex_and_dependent): Likewise.
11228 (build_rdg_partition_for_vertex): Remove processed bitmap.
11229 (rdg_build_partitions): Simplify.
11230
11231 2013-10-15 Richard Biener <rguenther@suse.de>
11232
11233 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11234 Restructure forwarding through conversions and copies to
11235 avoid performing copy-propagation the wrong way. Adjust
11236 recursion invocations.
11237 (forward_propagate_addr_expr): Add argument stating if we
11238 are recursing from a single-use.
11239 (ssa_forward_propagate_and_combine): Adjust.
11240
11241 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11242
11243 * dumpfile.h (gcc::dump_manager): New class, to hold state
11244 relating to dumpfile management.
11245 (get_dump_file_name): Remove in favor of method of dump_manager.
11246 (dump_initialized_p): Likewise.
11247 (dump_start): Likewise.
11248 (dump_finish): Likewise.
11249 (dump_switch_p): Likewise.
11250 (dump_register): Likewise.
11251 (get_dump_file_info): Likewise.
11252 * context.c (gcc::context::context): Construct the dump_manager
11253 instance.
11254 * context.h (gcc::context::get_dumps): New.
11255 (gcc::context::m_dumps): New.
11256 * coverage.c (coverage_init): Port to dump_manager API.
11257 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11258 (extra_dump_files_in_use): Likewise.
11259 (extra_dump_files_alloced): Likewise.
11260 (gcc::dump_manager::dump_manager): New.
11261 (dump_register): Convert to...
11262 (gcc::dump_manager::dump_register): ...method, replacing
11263 function-static next_dump with m_next_dump field.
11264 (get_dump_file_info): Convert to...
11265 (gcc::dump_manager::get_dump_file_info): ...method.
11266 (get_dump_file_name): Convert to...
11267 (gcc::dump_manager::get_dump_file_name): ...method.
11268 (dump_start): Convert to...
11269 (gcc::dump_manager::dump_start): ...method.
11270 (dump_finish): Convert to...
11271 (gcc::dump_manager::dump_finish): ...method.
11272 (dump_begin): Replace body with...
11273 (gcc::dump_manager::dump_begin): ...new method.
11274 (dump_phase_enabled_p): Convert to...
11275 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11276 (dump_phase_enabled_p): Convert to...
11277 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11278 (dump_initialized_p): Convert to...
11279 (gcc::dump_manager::dump_initialized_p): ...method.
11280 (dump_flag_name): Replace body with...
11281 (gcc::dump_manager::dump_flag_name): ...new method.
11282 (dump_enable_all): Convert to...
11283 (gcc::dump_manager::dump_enable_all): ...new method.
11284 (opt_info_enable_passes): Convert to...
11285 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11286 (dump_switch_p_1): Convert to...
11287 (gcc::dump_manager::dump_switch_p_1): ...new method.
11288 (dump_switch_p): Convert to...
11289 (gcc::dump_manager::dump_switch_p): ...new method.
11290 (opt_info_switch_p): Port to dump_manager API.
11291 (enable_rtl_dump_file): Likewise.
11292 * opts-global.c (handle_common_deferred_options): Port to new
11293 dump_manager API.
11294 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11295 (pass_manager::register_one_dump_file): Likewise.
11296 (pass_manager::register_pass): Likewise.
11297 (pass_init_dump_file): Likewise.
11298 (pass_fini_dump_file): Likewise.
11299 * statistics.c (statistics_early_init): Likewise.
11300
11301 2013-10-14 Richard Biener <rguenther@suse.de>
11302
11303 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11304 iterative_hash_canonical_type, gimple_canonical_type_hash,
11305 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11306 gimple_register_canonical_type, print_gimple_types_stats,
11307 free_gimple_type_tables): Move to lto/lto.c
11308 (gt-gimple.h): Do not include.
11309 * gimple.h (gimple_register_canonical_type,
11310 print_gimple_types_stats, free_gimple_type_tables): Remove.
11311 * Makefile.in (GTFILES): Remove gimple.c.
11312
11313 2013-10-14 Travis Snoozy <quandary@remstate.com>
11314
11315 PR target/58716
11316 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11317 scanning for msp430x targets.
11318
11319 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11320
11321 PR bootstrap/58509
11322 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11323 (registers_ok_for_ldd_peep): Move around.
11324 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11325 * config/sparc/sparc.md (widening peepholes): Use it.
11326
11327 2013-10-14 Richard Biener <rguenther@suse.de>
11328
11329 PR middle-end/58712
11330 PR middle-end/55358
11331 * gimple.c (iterative_hash_canonical_type): Make sure to
11332 record the hash into the correct hashtable slot.
11333
11334 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11335
11336 PR rtl-optimization/58662
11337 * combine.c (try_combine): Take into account death nodes on I2 when
11338 splitting a PARALLEL of two independent SETs. Fix dump message.
11339
11340 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11341
11342 PR target/51244
11343 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11344 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11345 extra_objs.
11346 * config/sh/t-sh (sh_treg_combine.o): New entry.
11347 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11348 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11349 (register_sh_passes): New function. Register sh_treg_combine pass.
11350 (sh_option_override): Invoke it.
11351 (sh_canonicalize_comparison): Handle op0_preserve_value.
11352 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11353 opportunities. Canonicalize branch condition.
11354 (nott): Allow only if pseudos can be created for non-SH2A.
11355
11356 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11357
11358 PR target/58690
11359 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11360 (ix86_expand_movmem): Replace copy_addr_to_reg with
11361 ix86_copy_addr_to_reg.
11362 (ix86_expand_setmem): Likewise.
11363
11364 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11365
11366 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11367 provided by ix86_fp_compare_mode instead of CCFPUmode.
11368
11369 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11370
11371 * config/aarch64/arm_neon.h
11372 (vtbx<1,3>_<psu>8): Fix register constriants.
11373
11374 2013-10-11 Jeff Law <law@redhat.com>
11375
11376 PR tree-optimization/58640
11377 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11378 threading paths that cross over two loop entry points.
11379
11380 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11381
11382 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11383 handle vector float as well.
11384 (*vsx_le_perm_load_v4si): Likewise.
11385 (*vsx_le_perm_store_v2di): Likewise.
11386 (*vsx_le_perm_store_v4si): Likewise.
11387
11388 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11389
11390 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11391 directly to circumvent subtract from splat{31} workaround.
11392 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11393 prototype.
11394 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11395 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11396 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11397 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11398 separate big and little endian logic.
11399 (*altivec_vperm_<mode>_internal): New define_insn.
11400 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11401 separate big and little endian logic.
11402 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11403 (vec_permv16qi): Add little endian logic.
11404
11405 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11406
11407 * doc/extend.texi (returns_nonnull): Remove arguments.
11408
11409 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11411 Sergey Lega <sergey.s.lega@intel.com>
11412 Anna Tikhonova <anna.tikhonova@intel.com>
11413 Ilya Tocar <ilya.tocar@intel.com>
11414 Andrey Turetskiy <andrey.turetskiy@intel.com>
11415 Ilya Verbin <ilya.verbin@intel.com>
11416 Kirill Yukhin <kirill.yukhin@intel.com>
11417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11418
11419 * config/i386/sse.md (VI48F_256_512): New.
11420 (avx2_permvar<mode>): Change to ...
11421 (<avx2_avx512f>_permvar<mode>): This.
11422
11423 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11425 Sergey Lega <sergey.s.lega@intel.com>
11426 Anna Tikhonova <anna.tikhonova@intel.com>
11427 Ilya Tocar <ilya.tocar@intel.com>
11428 Andrey Turetskiy <andrey.turetskiy@intel.com>
11429 Ilya Verbin <ilya.verbin@intel.com>
11430 Kirill Yukhin <kirill.yukhin@intel.com>
11431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11432
11433 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11434 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11435 * config/i386/sse.md (VI4_AVX): New.
11436 (sf2simodelower): Ditto.
11437 (sse2_cvtps2dq): Change to ...
11438 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11439
11440 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11442 Sergey Lega <sergey.s.lega@intel.com>
11443 Anna Tikhonova <anna.tikhonova@intel.com>
11444 Ilya Tocar <ilya.tocar@intel.com>
11445 Andrey Turetskiy <andrey.turetskiy@intel.com>
11446 Ilya Verbin <ilya.verbin@intel.com>
11447 Kirill Yukhin <kirill.yukhin@intel.com>
11448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11449
11450 * config/i386/sse.md (V_512): New.
11451 (VI_512): Ditto.
11452 (vcond<V_512:mode><VF_512:mode>): Ditto.
11453 (vcond<V_512:mode><VI_512:mode>): Ditto.
11454 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11455
11456 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11458 Sergey Lega <sergey.s.lega@intel.com>
11459 Anna Tikhonova <anna.tikhonova@intel.com>
11460 Ilya Tocar <ilya.tocar@intel.com>
11461 Andrey Turetskiy <andrey.turetskiy@intel.com>
11462 Ilya Verbin <ilya.verbin@intel.com>
11463 Kirill Yukhin <kirill.yukhin@intel.com>
11464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11465
11466 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11467 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11468 (FMAMODE): Ditto.
11469 (fma<mode>4): Removed condition.
11470 (fms<mode>4): Ditto.
11471 (fnma<mode>4): Ditto.
11472 (fnms<mode>4): Ditto.
11473 (fma4i_fmadd_<mode>): Ditto.
11474 (*fma_fmadd_<mode>): Ditto.
11475 (*fma_fmsub_<mode>): Ditto.
11476 (*fma_fnmadd_<mode>): Ditto.
11477 (*fma_fnmsub_<mode>): Ditto.
11478 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11479 (*fma_fmaddsub_<mode>): Ditto.
11480 (*fma_fmsubadd_<mode>): Ditto.
11481 (*fmai_fmadd_<mode>): Ditto.
11482 (*fmai_fmsub_<mode>): Ditto.
11483 (*fmai_fnmadd_<mode>): Ditto.
11484 (*fmai_fnmsub_<mode>): Ditto.
11485
11486 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11488 Sergey Lega <sergey.s.lega@intel.com>
11489 Anna Tikhonova <anna.tikhonova@intel.com>
11490 Ilya Tocar <ilya.tocar@intel.com>
11491 Andrey Turetskiy <andrey.turetskiy@intel.com>
11492 Ilya Verbin <ilya.verbin@intel.com>
11493 Kirill Yukhin <kirill.yukhin@intel.com>
11494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11495
11496 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11497 (VI124_256): Changed to ...
11498 (VI124_256_48_512): This.
11499 (ssepackmode): Extended with wider modes.
11500 (<code><mode>3): Changed iterator.
11501 (*avx2_<code><mode>3): Ditto.
11502 (vec_pack_trunc_<mode>): Ditto.
11503
11504 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11506 Sergey Lega <sergey.s.lega@intel.com>
11507 Anna Tikhonova <anna.tikhonova@intel.com>
11508 Ilya Tocar <ilya.tocar@intel.com>
11509 Andrey Turetskiy <andrey.turetskiy@intel.com>
11510 Ilya Verbin <ilya.verbin@intel.com>
11511 Kirill Yukhin <kirill.yukhin@intel.com>
11512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11513
11514 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11515 (VI8F_256_512): Ditto.
11516 (abs<mode>2): Changed iterator.
11517 (avx2_perm<mode>): Changed to ...
11518 (<avx2_avx512f>_perm<mode>): This.
11519 (avx2_perm<mode>_1): Changed to ...
11520 (<avx2_avx512f>_perm<mode>_1): This.
11521
11522 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11524 Sergey Lega <sergey.s.lega@intel.com>
11525 Anna Tikhonova <anna.tikhonova@intel.com>
11526 Ilya Tocar <ilya.tocar@intel.com>
11527 Andrey Turetskiy <andrey.turetskiy@intel.com>
11528 Ilya Verbin <ilya.verbin@intel.com>
11529 Kirill Yukhin <kirill.yukhin@intel.com>
11530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11531
11532 * config/i386/sse.md (VI48_AVX512F): New.
11533 (VI48_AVX2): Changed to ...
11534 (VI48_AVX2_48_AVX512F): This.
11535 (avx2_ashrv<mode>): Changed to ...
11536 (<avx2_avx512f>_ashrv<mode>): This.
11537 (avx2_<shift_insn>v<mode>): Changed to ...
11538 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11539
11540 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11541 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11542 Sergey Lega <sergey.s.lega@intel.com>
11543 Anna Tikhonova <anna.tikhonova@intel.com>
11544 Ilya Tocar <ilya.tocar@intel.com>
11545 Andrey Turetskiy <andrey.turetskiy@intel.com>
11546 Ilya Verbin <ilya.verbin@intel.com>
11547 Kirill Yukhin <kirill.yukhin@intel.com>
11548 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11549
11550 * config/i386/sse.md (VI4_AVX512F): New.
11551 (VI8_AVX2_AVX512F): Ditto.
11552 (mul<mode>3): Extended with wider modes.
11553 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11554 (mul<mode>3): Ditto.
11555 (vec_widen_<s>mult_odd_<mode>): Ditto.
11556
11557 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11558 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11559 Sergey Lega <sergey.s.lega@intel.com>
11560 Anna Tikhonova <anna.tikhonova@intel.com>
11561 Ilya Tocar <ilya.tocar@intel.com>
11562 Andrey Turetskiy <andrey.turetskiy@intel.com>
11563 Ilya Verbin <ilya.verbin@intel.com>
11564 Kirill Yukhin <kirill.yukhin@intel.com>
11565 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11566
11567 * config/i386/sse.md (VI2_AVX512F): New.
11568 (VI124_AVX512F): Ditto.
11569 (sseunpackmode): Extended with wider modes.
11570 (sseunpackfltmode): Ditto.
11571 (vec_unpacks_float_hi_<mode>): Ditto.
11572 (vec_unpacks_float_lo_<mode>): Ditto.
11573 (vec_unpacku_float_hi_<mode>): Ditto.
11574 (vec_unpacku_float_lo_<mode>): Ditto.
11575 (vec_unpacks_lo_<mode>): Ditto.
11576 (vec_unpacks_hi_<mode>): Ditto.
11577 (vec_unpacku_lo_<mode>): Ditto.
11578 (vec_unpacku_hi_<mode>): Ditto.
11579
11580 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11582 Sergey Lega <sergey.s.lega@intel.com>
11583 Anna Tikhonova <anna.tikhonova@intel.com>
11584 Ilya Tocar <ilya.tocar@intel.com>
11585 Andrey Turetskiy <andrey.turetskiy@intel.com>
11586 Ilya Verbin <ilya.verbin@intel.com>
11587 Kirill Yukhin <kirill.yukhin@intel.com>
11588 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11589
11590 * config/i386/i386.md (multdiv): New.
11591 (multdiv_mnemonic): Ditto.
11592 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11593 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11594 (<sse>_vmdiv<mode>3): Removed.
11595
11596 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11598 Sergey Lega <sergey.s.lega@intel.com>
11599 Anna Tikhonova <anna.tikhonova@intel.com>
11600 Ilya Tocar <ilya.tocar@intel.com>
11601 Andrey Turetskiy <andrey.turetskiy@intel.com>
11602 Ilya Verbin <ilya.verbin@intel.com>
11603 Kirill Yukhin <kirill.yukhin@intel.com>
11604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11605
11606 * config/i386/sse.md (V): Extended with wider modes.
11607 (VF2): Ditto.
11608 (ssehalfvecmode): Ditto.
11609 (i128): Ditto.
11610 (ssepackfltmode): Ditto.
11611 (avx_vec_concat<mode>): Ditto.
11612 (V_256_512): New iterator.
11613 (VF2_512_256): Ditto.
11614 (si2dfmode): New attribute.
11615 (si2dfmodelower): Ditto.
11616 (sf2dfmode): Ditto.
11617 (concat_tg_mode): Ditto.
11618 (floatv4siv4df2): Changed to ...
11619 (float<si2dfmodelower><mode>2): This.
11620 (avx_cvtps2pd256): Changed to ...
11621 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11622 (vec_pack_trunc_v4df): Changed to ...
11623 (vec_pack_trunc_<mode>): This.
11624 (avx_vpermil<mode>): Changed to ...
11625 (<sse2_avx_avx512f>_vpermil<mode>): This.
11626 (<fixsuffix>fix_truncv8dfv8si2): New.
11627 (vec_pack_sfix_trunc_v8df): Ditto.
11628 (avx512f_rndscale<mode>): Ditto.
11629 (avx512f_roundpd512): Ditto.
11630 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11631
11632 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11633 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11634 Sergey Lega <sergey.s.lega@intel.com>
11635 Anna Tikhonova <anna.tikhonova@intel.com>
11636 Ilya Tocar <ilya.tocar@intel.com>
11637 Andrey Turetskiy <andrey.turetskiy@intel.com>
11638 Ilya Verbin <ilya.verbin@intel.com>
11639 Kirill Yukhin <kirill.yukhin@intel.com>
11640 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11641
11642 * config/i386/i386.md (any_fix): New iterator.
11643 (fixsuffix): New attribute.
11644 * config/i386/sse.md (VF1): Extened with wider modes.
11645 (VI): Ditto.
11646 (VI_AVX2): Ditto.
11647 (VI8): Ditto.
11648 (sseintvecmodelower): Ditto.
11649 (ssescalarmode): Ditto.
11650 (ssescalarnum): Ditto.
11651 (VF1_128_256): New.
11652 (ssexmmmode): Ditto.
11653 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11654 (<sse>_rcp<mode>2): Change iterator.
11655 (rsqrt<mode>2): Ditto.
11656 (<sse>_rsqrt<mode>2): Ditto.
11657 (avx2_vec_dup<mode>): Ditto.
11658 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11659 (round<mode>2_sfix): Ditto.
11660 (avx2_pbroadcast<mode>): Ditto.
11661 (*andnot<mode>3): Handle XI mode.
11662 (*<code><mode>3): Ditto.
11663 (AVXTOSSEMODE): Removed.
11664 (avx_vpermil<mode>): Changed to ...
11665 (<sse2_avx_avx512f>_vpermil<mode>): This.
11666
11667 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11669 Sergey Lega <sergey.s.lega@intel.com>
11670 Anna Tikhonova <anna.tikhonova@intel.com>
11671 Ilya Tocar <ilya.tocar@intel.com>
11672 Andrey Turetskiy <andrey.turetskiy@intel.com>
11673 Ilya Verbin <ilya.verbin@intel.com>
11674 Kirill Yukhin <kirill.yukhin@intel.com>
11675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11676
11677 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11678 (<sse>_comi): Ditto.
11679 (<sse>_ucomi): Ditto.
11680 (sse_cvtss2siq_2): Ditto.
11681 (sse2_cvtsd2si): Ditto.
11682 (sse2_cvtsd2siq): Ditto.
11683 (sse2_cvttsd2si): Ditto.
11684 (sse2_cvttsd2siq): Ditto.
11685 (<shift_insn><mode>3): Ditto.
11686 (sse2_cvtsi2sdq): Update constraint and prefix.
11687 (sse_cvtsi2ss): Update prefix.
11688 (sse_cvtsi2ssq): Ditto.
11689
11690 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11691
11692 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11693 ignore internal calls.
11694
11695 2013-10-11 Richard Biener <rguenther@suse.de>
11696
11697 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11698 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11699 TREE_OVERFLOW is set.
11700
11701 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11702
11703 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11704
11705 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11706 * gimple.h: Likewise.
11707
11708 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11709
11710 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11711 macros.
11712
11713 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11714
11715 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11716 * configure: Regenerate.
11717
11718 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11719
11720 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11721 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11722 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11723 similarly pp_right_paren.
11724 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11725 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11726 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11727 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11728 clauses.
11729 (omp_declare_simd_clauses_equal,
11730 omp_remove_redundant_declare_simd_attrs): New functions.
11731 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11732 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11733 * tree.h (OMP_LOOP_CHECK): Define.
11734 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11735 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11736 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11737 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11738 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11739 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11740 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11741 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11742 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11743 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11744 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11745 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11746 (omp_remove_redundant_declare_simd_attrs): New prototype.
11747 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11748 GIMPLE_OMP_TEAMS): New codes.
11749 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11750 * omp-low.c (struct omp_context): Add cancel_label and cancellable
11751 fields.
11752 (target_nesting_level): New variable.
11753 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11754 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
11755 for collapse > 1 static schedule unless ordered.
11756 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
11757 (determine_parallel_type): Adjust get_ws_args_for caller.
11758 (install_var_field): Handle mask & 4 for double indirection.
11759 (scan_sharing_clauses): Ignore shared clause on teams construct.
11760 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11761 (create_omp_child_function): If inside target or declare target
11762 constructs, set "omp declare target" attribute on the child function.
11763 (find_combined_for): New function.
11764 (scan_omp_parallel): Handle combined loops.
11765 (scan_omp_target, scan_omp_teams): New functions.
11766 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11767 restrictions and set ctx->cancellable for cancellable constructs.
11768 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11769 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
11770 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11771 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11772 (omp_clause_aligned_alignment): New function.
11773 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11774 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
11775 on teams constructs. Handle user defined reductions and new
11776 OpenMP 4.0 clauses.
11777 (lower_reduction_clauses): Don't set placeholder to address of ref
11778 if it has already the right type.
11779 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11780 (expand_parallel_call): Use the new non-_start suffixed builtins,
11781 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11782 and GOMP_parallel_end after the call.
11783 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11784 (expand_omp_for_init_counts): Handle combined loops.
11785 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11786 loops.
11787 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
11788 end of cancellable loops.
11789 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11790 Likewise. Handle collapse > 1 loops.
11791 (expand_omp_simd): Handle combined loops.
11792 (expand_omp_for): Add inner_stmt argument, adjust callers of
11793 expand_omp_for* functions, use expand_omp_for_static*chunk even
11794 for collapse > 1 unless ordered.
11795 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11796 of cancellable sections.
11797 (expand_omp_single): Remove need_barrier variable, just rely on
11798 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
11799 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11800 (expand_omp_atomic_load, expand_omp_atomic_store,
11801 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11802 (expand_omp_target): New function.
11803 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
11804 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11805 (build_omp_regions_1): Immediately close region for
11806 GF_OMP_TARGET_KIND_UPDATE.
11807 (maybe_add_implicit_barrier_cancel): New function.
11808 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
11809 cancellation.
11810 (lower_omp_single): Likewise. Add clobber after the barrier.
11811 (lower_omp_taskgroup): New function.
11812 (lower_omp_for): Handle combined loops. Adjust
11813 lower_rec_input_clauses caller. Handle cancellation.
11814 (lower_depend_clauses): New function.
11815 (lower_omp_taskreg): Lower depend clauses. Adjust
11816 lower_rec_input_clauses caller. Add clobber after the call. Handle
11817 cancellation.
11818 (lower_omp_target, lower_omp_teams): New functions.
11819 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
11820 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11821 and GOMP_cancellation_point calls.
11822 (lower_omp): Fold stmts inside of target region.
11823 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11824 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11825 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11826 (BT_FN_VOID_OMPFN_PTR_UINT,
11827 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11828 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11829 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11830 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11831 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11832 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11833 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11834 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11835 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11836 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11837 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11838 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11839 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11840 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
11841 BUILT_IN_GOMP_PARALLEL_END.
11842 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11843 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11844 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11845 GF_OMP_FOR_KIND_DISTRIBUTE.
11846 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11847 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11848 (dump_gimple_omp_return): Print lhs if it has any.
11849 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11850 gimple_omp_atomic_seq_cst_p.
11851 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11852 and GIMPLE_OMP_TEAMS.
11853 * langhooks.c (lhd_omp_mappable_type): New function.
11854 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11855 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11856 hook.
11857 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11858 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11859 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11860 (struct gimplify_omp_ctx): Add combined_loop field.
11861 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11862 on stmts inside of target region.
11863 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11864 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11865 ORT_TARGET and ORT_TARGET_DATA.
11866 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11867 Handle GOVD_MAP.
11868 (omp_notice_threadprivate_variable): Complain about threadprivate
11869 variables in target region.
11870 (omp_notice_variable): Complain about vars with non-mappable type
11871 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11872 (omp_check_private): Ignore ORT_TARGET* regions.
11873 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11874 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11875 (find_combined_omp_for): New function.
11876 (gimplify_omp_for): Handle gimplification of combined loops.
11877 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11878 OMP_TEAMS.
11879 (gimplify_omp_target_update): New function.
11880 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11881 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11882 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11883 (gimplify_body): If fndecl has "omp declare target" attribute, add
11884 implicit ORT_TARGET context around it.
11885 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11886 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11887 * tree-nested.c (convert_nonlocal_reference_stmt,
11888 convert_local_reference_stmt, convert_gimple_call): Handle
11889 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11890 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11891 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11892 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11893 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11894 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11895 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11896 BUILT_IN_GOMP_LOOP_END_CANCEL,
11897 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11898 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11899 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11900 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11901 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11902 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11903 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11904 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11905 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11906 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11907 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11908 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11909 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11910 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11911 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11912 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11913 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11914 gimple_build_omp_teams): New functions.
11915 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11916 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
11917 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11918 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11919 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11920 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11921 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11922 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11923 GF_OMP_ATOMIC_SEQ_CST): New.
11924 (gimple_build_omp_taskgroup, gimple_build_omp_target,
11925 gimple_build_omp_teams): New prototypes.
11926 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11927 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11928 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11929 GIMPLE_OMP_SINGLE as end of range.
11930 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11931 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11932 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11933 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11934 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11935 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11936 gimple_omp_target_kind, gimple_omp_target_set_kind,
11937 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11938 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11939 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11940 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11941 gimple_omp_teams_set_clauses): New inlines.
11942 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11943 and GIMPLE_OMP_TASKGROUP.
11944 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11945 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11946 enum omp_clause_proc_bind_kind): New.
11947 (union omp_clause_subcode): Add depend_kind, map_kind and
11948 proc_bind_kind fields.
11949 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11950 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11951 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11952 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11953 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11954
11955 2013-10-10 Teresa Johnson <tejohnson@google.com>
11956
11957 * predict.c (tree_estimate_probability): Add new parameter
11958 for estimate_bb_frequencies.
11959 (estimate_bb_frequencies): Add new parameter to force estimation.
11960 (rebuild_frequencies): When max frequency in function is small,
11961 recompute counts from frequencies.
11962 * predict.h (estimate_bb_frequencies): New parameter.
11963
11964 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11965
11966 * ipa-inline.c (ipa_inline): Fix leak of "order" when
11967 optimizations are disabled.
11968
11969 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11970
11971 * coverage.c (coverage_finish): Fix leak of da_file_name.
11972
11973 2013-10-10 Jan Hubicka <jh@suse.cz>
11974
11975 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11976 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11977 Bobcat and generic.
11978
11979 2013-10-10 Jakub Jelinek <jakub@redhat.com>
11980
11981 PR middle-end/58670
11982 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11983 if any labels are in FALLTHRU_BB, use a special label emitted
11984 immediately after the asm goto insn rather than label_rtx
11985 of the LABEL_DECL.
11986 (expand_asm_stmt): Adjust caller.
11987 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11988 edge if the last insn in predecessor is a jump with single successor,
11989 but it isn't simplejump_p.
11990
11991 2013-10-10 Richard Biener <rguenther@suse.de>
11992
11993 PR tree-optimization/58656
11994 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11995
11996 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11997
11998 * gimplify.c: Include expr.h and tm_p.h for targets with special
11999 va-arg padding requirements.
12000
12001 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12002
12003 * tree-flow.h: Move some prototypes to gimple.h.
12004 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12005 * gimple.h: Relocate some prototypes from tree-flow.h
12006 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12007 Move to gimplify.c.
12008 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12009 (build_va_arg_indirect_ref): Relocate and make static.
12010 (std_gimplify_va_arg_expr): Relocate here.
12011 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12012 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12013
12014 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12015
12016 * doc/md.texi: Document the mnemonic attribute.
12017
12018 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12019
12020 PR target/57377
12021 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12022 (set_attr_alternative x ...) when searching for user defined
12023 mnemonic attribute.
12024
12025 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12026
12027 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12028
12029 2013-10-09 Easwaran Raman <eraman@google.com>
12030
12031 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12032 * cfgexpand.c (defer_stack_allocation): ...use here
12033 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12034
12035 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12036
12037 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12038 (operand_equal_for_value_replacement): New function, extracted from
12039 value_replacement and enhanced to catch more cases.
12040 (value_replacement): Use operand_equal_for_value_replacement.
12041
12042 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12043
12044 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12045 get_max_loop_iterations.
12046
12047 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12048
12049 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12050 Place comment above function.
12051
12052 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12053
12054 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12055 are not related to tree-cfg.c.
12056 * tree-ssa-address.h: New file. Relocate prototypes.
12057 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12058 (addr_for_mem_ref): New. Combine call to get_address_description and
12059 return addr_for_mem_ref.
12060 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12061 * tree-ssa-live.h: Adjust prototypes.
12062 * passes.c: Include tree-ssa-live.h.
12063 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12064 * graphite.c (graphite_transform_loops): Make static.
12065 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12066 make_pass_graphite, pass_data_graphite_transforms,
12067 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12068 * ipa-pure-const.c (warn_function_noreturn): Make static.
12069 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12070 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12071 Relocate from tree-cfg.c
12072 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12073 static.
12074 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12075 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12076 Move to ipa-pure-const.c.
12077 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12078 Relocate from tree-optimize.c.
12079 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12080 make_pass_fixup_cfg): Move to tree-cfg.c.
12081 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12082 Relocate some prototypes.
12083 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12084 * tree-dump.c (dump_function_to_file): Remove prototype.
12085 Add tree-flow.h to the include file.
12086 * tree-dump.h: Remove prototype.
12087 * tree-parloops.h: New File. Add prototypes.
12088 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12089 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12090 from tree-ssa-loop.c.
12091 * tree-predcom.c (run_tree_predictive_commoning,
12092 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12093 Relocate here from tree-ssa-loop.c.
12094 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12095 ssa_name_values.release ().
12096 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12097 (ssa_name_values): Relocate from tree-flow.h.
12098 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12099 * tree-ssa-loop.c (run_tree_predictive_commoning,
12100 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12101 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12102 make_pass_graphite, pass_data_graphite_transforms,
12103 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12104 tree_parallelize_loops, pass_data_parallelize_loops,
12105 make_pass_parallelize_loops): Move to other files.
12106 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12107 moved here.
12108 * tree.h: Remove prototypes from tree-address.c.
12109
12110 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12111
12112 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12113 (struct int_tree_map): Move to tree-hasher.h
12114 (SCALE, LABEL, PERCENT): Move to gimple.h
12115 * tree-flow-inline.h: Delete. Move functions to other files.
12116 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12117 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12118 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12119 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12120 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12121 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12122 * tree-hasher.h: Don't include tree-flow.h.
12123 (struct int_tree_map): Relocate from tree-flow.h.
12124 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12125 tree-flow-inline.h and make static.
12126 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12127 tree-flow-inline.h.
12128 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12129 tree-flow-inline.h and make static.
12130 * tree.h (is_global_var, may_be_aliased): Relocate from
12131 tree-flow-inline.h.
12132 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12133 * value-prof.c: No longer include tree-flow-inline.h.
12134 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12135
12136 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12137
12138 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12139 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12140 (enum move_pos): Move to tree-ssa-loop-im.h
12141 * cfgloop.h: Move some prototypes.
12142 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12143 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12144 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12145 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12146 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12147 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12148 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12149 (enum move_pos): Relocate here.
12150 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12151 tree-ssa-loop.c.
12152 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12153 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12154 make_pass_lim): Relocate here from tree-ssa-loop.c.
12155 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12156 tree-ssa-loop.c.
12157 (loop_edge_to_cancel, unloop_loops): Make static.
12158 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12159 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12160 (tree_complete_unroll, gate_tree_complete_unroll,
12161 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12162 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12163 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12164 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12165 (stmt_invariant_in_loop_p): Remove unused function.
12166 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12167 * tree-ssa-loop-manip.h: New file. Add prototypes.
12168 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12169 (gcov_type_to_double_int): Move to cfgloop.h.
12170 (double_int_cmp, bound_index,
12171 estimate_numbers_of_iterations_loop): Make static.
12172 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12173 (max_loop_iterations): Factor out get_max_loop_iterations.
12174 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12175 cfgloop.c.
12176 * tree-ssa-loop-niter.h: New file. Add prototypes.
12177 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12178 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12179 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12180 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12181 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12182 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12183 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12184 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12185 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12186 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12187 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12188 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12189 pass_data_complete_unroll, make_pass_complete_unroll,
12190 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12191 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12192 tree-ssa-loop-ivcanon.c.
12193 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12194 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12195 tree-ssa-loop-prefetch.c.
12196 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12197 tree-ssa-loop-im.c.
12198 (get_lsm_tmp_name): Relocate and add suffix parameter.
12199 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12200 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12201 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12202 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12203 (get_estimated_loop_iterations): Factor out accessor from
12204 estimated_loop_iterations in tree-ssa-loop-niter.c.
12205 (get_max_loop_iterations): Factor out accessor from
12206 _max_loop_iterations in tree-ssa-niter.c.
12207 * loop-unroll.c (decide_unroll_constant_iterations,
12208 decide_unroll_runtime_iterations, decide_peel_simple,
12209 decide_unroll_stupid): Use new get_* accessors.
12210
12211 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12212
12213 PR tree-optimization/20318
12214 * doc/extend.texi (returns_nonnull): New function attribute.
12215 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12216 attribute.
12217 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12218 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12219
12220 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12221
12222 PR middle-end/58570
12223 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12224 false if both components are bitfields.
12225
12226 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12227
12228 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12229 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12230 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12231 * config/aarch64/aarch64.h
12232 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12233 * config/aarch64/aarch64-simd-builtins.def
12234 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12235
12236 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12237
12238 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12239
12240 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12241
12242 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12243
12244 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12245
12246 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12247 (vneg_f64): New intrinsic.
12248 (vneg_s8): Asm replaced with C.
12249 (vneg_s16): Likewise.
12250 (vneg_s32): Likewise.
12251 (vneg_s64): New intrinsic.
12252 (vnegq_f32): Asm replaced with C.
12253 (vnegq_f64): Likewise.
12254 (vnegq_s8): Likewise.
12255 (vnegq_s16): Likewise.
12256 (vnegq_s32): Likewise.
12257 (vnegq_s64): Likewise.
12258
12259 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12260
12261 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12262
12263 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12264
12265 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12266 packed stack special handling.
12267 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12268 back to fixed stack slots for FPRs saved due to stdarg.
12269
12270 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12271
12272 * config/s390/s390.c (s390_frame_info): Restructure function.
12273
12274 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12275
12276 * config/s390/s390.c (struct s390_frame_layout): New field
12277 gpr_save_slots.
12278 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12279 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12280 regs_ever_clobbered to char*.
12281 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12282 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12283 (s390_register_info): Enable FPR save slots. Move/Copy some
12284 functionality into ...
12285 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12286 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12287 function.
12288 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12289 not imply a stack frame.
12290 (s390_init_frame_layout): Remove variable clobbered_regs.
12291 (s390_update_register_info): Remove function.
12292 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12293 cannot be used for register renaming.
12294 (s390_hard_regno_scratch_ok): New function.
12295 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12296 (s390_initial_elimination_offset): Change offset calculation of
12297 the return address pointer.
12298 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12299 (restore_gprs): Set frame related flag.
12300 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12301 (s390_emit_prologue): Call s390_register_info instead of
12302 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12303 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12304 (s390_optimize_prologue): Call s390_optimize_register_info.
12305 Try to remove also FPR slot save/restore INSNs. Remove frame
12306 related flags from restore INSNs.
12307
12308 2013-10-08 DJ Delorie <dj@redhat.com>
12309
12310 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12311 (movhi): Likewise.
12312
12313 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12314 avoid conflict with the MI use of %c.
12315 * config/rl78/rl78-real.md: change %c to %C throughout.
12316 * config/rl78/rl78-virt.md: Likewise.
12317
12318 2013-10-08 Jan Hubicka <jh@suse.cz>
12319
12320 * config/i386/i386.c (ix86_option_override_internal): Switch
12321 to SSE math for -ffast-math when target ISA supports SSE2.
12322
12323 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12324
12325 * tree-flow.h: Remove some prototypes.
12326 * tree.h: Remove some protypes, add a couple.
12327 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12328 using_eh_for_cleanups_p): Add interface routines for front ends.
12329 * tree-eh.h: New file. Add protoptyes.
12330 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12331 (add_stmt_to_eh_lp_fn): Make static.
12332 (lower_try_finally): Use new using_eh_for_cleanups_p.
12333 * emit-rtl.c: Include tree-eh.h.
12334 * gimple.h: Include tree-eh.h.
12335
12336 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12337
12338 PR tree-optimization/58480
12339 * tree-vrp.c (infer_nonnull_range): New function.
12340 (infer_value_range): Call infer_nonnull_range.
12341
12342 2013-10-08 Dehao Chen <dehao@google.com>
12343
12344 PR tree-optimization/58619
12345 * tree-inline.c (copy_phis_for_bb): Combine location data
12346 only if non-null.
12347
12348 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12349
12350 PR target/58423
12351 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12352 RTX_FRAME_RELATED_P on INSN.
12353
12354 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12355
12356 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12357 (altivec_expand_vec_perm_const): Call it.
12358
12359 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12360
12361 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12362 sequences for LE VSX loads and stores at expand time.
12363 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12364 prototype.
12365 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12366 (rs6000_gen_le_vsx_permute): New.
12367 (rs6000_gen_le_vsx_load): New.
12368 (rs6000_gen_le_vsx_store): New.
12369 (rs6000_gen_le_vsx_move): New.
12370 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12371 (*vsx_le_perm_load_v4si): New.
12372 (*vsx_le_perm_load_v8hi): New.
12373 (*vsx_le_perm_load_v16qi): New.
12374 (*vsx_le_perm_store_v2di): New.
12375 (*vsx_le_perm_store_v4si): New.
12376 (*vsx_le_perm_store_v8hi): New.
12377 (*vsx_le_perm_store_v16qi): New.
12378 (*vsx_xxpermdi2_le_<mode>): New.
12379 (*vsx_xxpermdi4_le_<mode>): New.
12380 (*vsx_xxpermdi8_le_V8HI): New.
12381 (*vsx_xxpermdi16_le_V16QI): New.
12382 (*vsx_lxvd2x2_le_<mode>): New.
12383 (*vsx_lxvd2x4_le_<mode>): New.
12384 (*vsx_lxvd2x8_le_V8HI): New.
12385 (*vsx_lxvd2x16_le_V16QI): New.
12386 (*vsx_stxvd2x2_le_<mode>): New.
12387 (*vsx_stxvd2x4_le_<mode>): New.
12388 (*vsx_stxvd2x8_le_V8HI): New.
12389 (*vsx_stxvd2x16_le_V16QI): New.
12390
12391 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12392
12393 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12394
12395 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12396
12397 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12398 loop to work also for 31bit ABI.
12399 Save the stack pointer for frame_size > 0.
12400
12401 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12402
12403 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12404 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12405 constraint letters from expanders.
12406 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12407 retry count to general_operand.
12408 ("tabort"): Give operand 0 a mode.
12409 ("tabort_1"): Add mode and constraint letter for operand 0.
12410 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12411
12412 2013-10-04 Jeff Law <law@redhat.com>
12413
12414 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12415
12416 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12417 out of ...
12418 (thread_across_edge): Here. Call it.
12419
12420 2013-10-04 Cary Coutant <ccoutant@google.com>
12421
12422 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12423 discarding a location list expression (or a piece of one).
12424
12425 2013-10-03 Jan Hubicka <jh@suse.cz>
12426
12427 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12428 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12429 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12430
12431 2013-10-03 Jan Hubicka <jh@suse.cz>
12432
12433 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12434 accumulate-outgoing-args when producing unwind info.
12435
12436 2013-10-03 Wei Mi <wmi@google.com>
12437
12438 * lra-constraints.c (insert_move_for_subreg): New function
12439 extracted from simplify_operand_subreg.
12440 (simplify_operand_subreg): Add reload for paradoxical subreg.
12441
12442 2013-10-03 Rong Xu <xur@google.com>
12443
12444 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12445 the candidate of builtin_expect such that we should fix the
12446 size/time estimation.
12447 (estimate_function_body_sizes): Do the acutally size/time fix-up
12448 for builtin_expect.
12449
12450 2013-10-03 Rong Xu <xur@google.com>
12451
12452 * predict.c (tree_predict_by_opcode): Get the probability
12453 for builtin_expect from param builtin_expect_probability.
12454 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12455 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12456 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12457
12458 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12459
12460 PR c++/19476
12461 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12462 * calls.c (alloca_call_p): Use get_callee_fndecl.
12463 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12464 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12465 Likewise.
12466 (vrp_visit_stmt): Remove duplicated code.
12467
12468 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12469
12470 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12471 ceildf2, btruncdf2, instead of vsx_* name.
12472
12473 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12474 iterators to only do V2DF and V4SF here. Move the DF code to
12475 rs6000.md where it is combined with SF mode. Replace <VSv> with
12476 just 'v' since only vector operations are handled with these insns
12477 after moving the DF support to rs6000.md.
12478 (vsx_sub<mode>3): Likewise.
12479 (vsx_mul<mode>3): Likewise.
12480 (vsx_div<mode>3): Likewise.
12481 (vsx_fre<mode>2): Likewise.
12482 (vsx_neg<mode>2): Likewise.
12483 (vsx_abs<mode>2): Likewise.
12484 (vsx_nabs<mode>2): Likewise.
12485 (vsx_smax<mode>3): Likewise.
12486 (vsx_smin<mode>3): Likewise.
12487 (vsx_sqrt<mode>2): Likewise.
12488 (vsx_rsqrte<mode>2): Likewise.
12489 (vsx_fms<mode>4): Likewise.
12490 (vsx_nfma<mode>4): Likewise.
12491 (vsx_copysign<mode>3): Likewise.
12492 (vsx_btrunc<mode>2): Likewise.
12493 (vsx_floor<mode>2): Likewise.
12494 (vsx_ceil<mode>2): Likewise.
12495 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12496 (vsx_sminsf3): Likewise.
12497 (vsx_fmadf4): Likewise.
12498 (vsx_fmsdf4): Likewise.
12499 (vsx_nfmadf4): Likewise.
12500 (vsx_nfmsdf4): Likewise.
12501 (vsx_cmpdf_internal1): Likewise.
12502
12503 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12504 simpler to select whether a target has SPE or traditional floating
12505 point support in iterators.
12506 (TARGET_DF_SPE): Likewise.
12507 (TARGET_SF_FPR): Likewise.
12508 (TARGET_DF_FPR): Likewise.
12509 (TARGET_SF_INSN): Macros to say whether floating point support
12510 exists for a given operation for expanders.
12511 (TARGET_DF_INSN): Likewise.
12512
12513 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12514 combining of SF/DF mode operations, using both traditional and VSX
12515 registers.
12516 (Fvsx): Likewise.
12517 (Ff): Likewise.
12518 (Fv): Likewise.
12519 (Fs): Likewise.
12520 (Ffre): Likewise.
12521 (FFRE): Likewise.
12522 (abs<mode>2): Combine SF/DF modes using traditional floating point
12523 instructions. Add support for using the upper DF registers with
12524 VSX support, and SF registers with power8-vector support. Update
12525 expanders for operations supported by both the SPE and traditional
12526 floating point units.
12527 (abs<mode>2_fpr): Likewise.
12528 (nabs<mode>2): Likewise.
12529 (nabs<mode>2_fpr): Likewise.
12530 (neg<mode>2): Likewise.
12531 (neg<mode>2_fpr): Likewise.
12532 (add<mode>3): Likewise.
12533 (add<mode>3_fpr): Likewise.
12534 (sub<mode>3): Likewise.
12535 (sub<mode>3_fpr): Likewise.
12536 (mul<mode>3): Likewise.
12537 (mul<mode>3_fpr): Likewise.
12538 (div<mode>3): Likewise.
12539 (div<mode>3_fpr): Likewise.
12540 (sqrt<mode>3): Likewise.
12541 (sqrt<mode>3_fpr): Likewise.
12542 (fre<Fs>): Likewise.
12543 (rsqrt<mode>2): Likewise.
12544 (cmp<mode>_fpr): Likewise.
12545 (smax<mode>3): Likewise.
12546 (smin<mode>3): Likewise.
12547 (smax<mode>3_vsx): Likewise.
12548 (smin<mode>3_vsx): Likewise.
12549 (negsf2): Delete SF operations that are merged with DF.
12550 (abssf2): Likewise.
12551 (addsf3): Likewise.
12552 (subsf3): Likewise.
12553 (mulsf3): Likewise.
12554 (divsf3): Likewise.
12555 (fres): Likewise.
12556 (fmasf4_fpr): Likewise.
12557 (fmssf4_fpr): Likewise.
12558 (nfmasf4_fpr): Likewise.
12559 (nfmssf4_fpr): Likewise.
12560 (sqrtsf2): Likewise.
12561 (rsqrtsf_internal1): Likewise.
12562 (smaxsf3): Likewise.
12563 (sminsf3): Likewise.
12564 (cmpsf_internal1): Likewise.
12565 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12566 (negdf2): Delete DF operations that are merged with SF.
12567 (absdf2): Likewise.
12568 (nabsdf2): Likewise.
12569 (adddf3): Likewise.
12570 (subdf3): Likewise.
12571 (muldf3): Likewise.
12572 (divdf3): Likewise.
12573 (fred): Likewise.
12574 (rsqrtdf_internal1): Likewise.
12575 (fmadf4_fpr): Likewise.
12576 (fmsdf4_fpr): Likewise.
12577 (nfmadf4_fpr): Likewise.
12578 (nfmsdf4_fpr): Likewise.
12579 (sqrtdf2): Likewise.
12580 (smaxdf3): Likewise.
12581 (smindf3): Likewise.
12582 (cmpdf_internal1): Likewise.
12583 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12584 (btrunc<mode>2): Delete separate expander, and combine with the
12585 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12586 (btrunc<mode>2_fpr): Likewise.
12587 (ceil<mode>2): Likewise.
12588 (ceil<mode>2_fpr): Likewise.
12589 (floor<mode>2): Likewise.
12590 (floor<mode>2_fpr): Likewise.
12591 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12592 Add support for using the upper registers with VSX and
12593 power8-vector. Move insns to be closer to the define_expands. On
12594 VSX systems, prefer the traditional form of FMA over the VSX
12595 version, since the traditional form allows the target not to
12596 overlap with the inputs.
12597 (fms<mode>4_fpr): Likewise.
12598 (nfma<mode>4_fpr): Likewise.
12599 (nfms<mode>4_fpr): Likewise.
12600
12601 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12602 Richard Earnshaw <richard.earnshaw@arm.com>
12603
12604 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12605 (struct mult_cost_table): Likewise.
12606 (struct mem_cost_table): Likewise.
12607 (struct fp_cost_table): Likewise.
12608 (struct vector_cost_table): Likewise.
12609 (cpu_cost_table): Likewise.
12610 * config/arm/arm.opt (mold-rts-costs): New option.
12611 (mnew-generic-costs): Likewise.
12612 * config/arm/arm.c (generic_extra_costs): New table.
12613 (cortexa15_extra_costs): Likewise.
12614 (arm_slowmul_tune): Use NULL as new costs.
12615 (arm_fastmul_tune): Likewise.
12616 (arm_strongarm_tune): Likewise.
12617 (arm_xscale_tune): Likewise.
12618 (arm_9e_tune): Likewise.
12619 (arm_v6t2_tune): Likewise.
12620 (arm_cortex_a5_tune): Likewise.
12621 (arm_cortex_a9_tune): Likewise.
12622 (arm_v6m_tune): Likewise.
12623 (arm_fa726te_tune): Likewise.
12624 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12625 (arm_cortex_tune): Use generict_extra_costs.
12626 (shifter_op_p): New function.
12627 (arm_unspec_cost): Likewise.
12628 (LIBCALL_COST): Define.
12629 (arm_new_rtx_costs): New function.
12630 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12631 table is available. Use old costs otherwise unless mnew-generic-costs
12632 is specified.
12633 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12634 (cpu_cost_table): Declare.
12635
12636 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12637
12638 PR target/58460
12639 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12640 (*subs_mul_imm_<mode>)
12641 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12642 (*sub_<shift>_<mode>)
12643 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12644 Remove k constraint.
12645
12646 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12647
12648 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12649 code.
12650 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12651
12652 2013-10-02 Teresa Johnson <tejohnson@google.com>
12653
12654 * predict.c (probably_never_executed): New function.
12655 (probably_never_executed_bb_p): Invoke probably_never_executed.
12656 (probably_never_executed_edge_p): Ditto.
12657 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12658 Treat profile insanities conservatively.
12659
12660 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12661
12662 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12663
12664 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12665
12666 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12667 use it. Use smaller increase for scratch. Don't increase reject
12668 for early clobber scratch.
12669 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12670 setting eliminated regs except setting fp from hfp.
12671 (lra_eliminate): Check lra_insn_recog_data on NULL.
12672
12673 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12674
12675 PR target/58587
12676 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12677 setting -mvsx-timode by default until the underlying problem is fixed.
12678 (RS6000_CPU, power7 defaults): Likewise.
12679
12680 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12681
12682 * config/x-linux (host-linux.o): Remove header dependencies.
12683 Use $(COMPILE) and $(POSTCOMPILE).
12684 * config/t-linux-android (linux-android.o): Ditto.
12685
12686 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12687
12688 * Makefile.in (expmed.o-warn): Remove.
12689
12690 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12691
12692 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12693 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12694
12695 2013-10-02 Teresa Johnson <tejohnson@google.com>
12696
12697 * dojump.c (do_jump_1): Divide probability between
12698 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12699
12700 2013-10-02 Tom Tromey <tromey@redhat.com>
12701
12702 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12703
12704 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12705
12706 * tree-flow.h: Remove some prototypes.
12707 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12708 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12709 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12710 mark_virtual_phi_result_for_renaming): Relocate here.
12711 * tree-into-ssa.h: Add prototypes.
12712 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12713 single_pred_before_succ_order.
12714 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12715 (nonfreeing_call_p) Move to gimple.c.
12716 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12717 tree-ssa-phiopt.c.
12718 * basic-block.h (single_pred_before_succ_order): Add prototype.
12719 * gimple.c (nonfreeing_call_p): Relocate here.
12720 * gimple.h: Add prototype.
12721 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12722 * tree-ssa-dom.h: New file. Relocate prototypes here.
12723 * tree-ssa.h: Include tree-ssa-dom.h.
12724
12725 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12726
12727 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12728 Use $(COMPILE) and $(POSTCOMPILE).
12729
12730 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12731
12732 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12733
12734 * tree-flow.h: Remove some prototypes.
12735 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12736 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12737 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12738 propagate_tree_value*): Move from here to...
12739 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12740 propagate_tree_value*): Relocate here.
12741 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12742 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12743 * gimple-fold.c: Remove gimple-fold.h from include list.
12744 * tree-vrp.c: Remove gimple-fold.h from include list.
12745 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12746 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12747 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12748 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12749 * sese.c: Add tree-ssa-propagate.h to include list.
12750
12751 2013-10-02 Richard Biener <rguenther@suse.de>
12752
12753 * tree-loop-distribution.c: Include tree-vectorizer.h for
12754 find_loop_location.
12755 (enum partition_kind): Remove PKIND_REDUCTION.
12756 (struct partition_s): Remove has_writes member, add reduction_p member.
12757 (partition_alloc): Adjust.
12758 (partition_builtin_p): Likewise.
12759 (partition_has_writes): Remove.
12760 (partition_reduction_p): New function.
12761 (partition_merge_into): Likewise.
12762 (generate_code_for_partition): Commonize builtin partition
12763 handling tail.
12764 (rdg_cannot_recompute_vertex_p): Remove.
12765 (already_processed_vertex_p): Likewise.
12766 (rdg_flag_vertex): Do not set has_writes.
12767 (classify_partition): Adjust.
12768 (rdg_build_partitions): Do not set has_writes, treat all
12769 partitions as useful.
12770 (distribute_loop): Record number of library calls generated. Adjust.
12771 (tree_loop_distribution): Report number of loops and library
12772 calls generated as opt-info.
12773
12774 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12775
12776 * tree-flow.h: Include new .h files. Move prototypes.
12777 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
12778 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
12779 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12780 * tree-pretty-print.h: Add prototypes from tree-flow.h.
12781 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
12782 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12783 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12784 * tree.h (get_ref_base_and_extent): Move prototype out.
12785 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12786 tree-dfa.h.
12787 * gimple-low.h: New File. Add prototypes from tree-flow.h.
12788 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12789 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12790 * tree-scalar-evolution.c: Include tree.h.
12791 * sese.c: Include tree.h.
12792 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12793 * dwarf2out.c: Include tree-dfa.h.
12794 * tree-chrec.c: Include tree.h.
12795 * tree-data-ref.c: Include tree.h.
12796
12797 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
12798
12799 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12800 Fix whitespace.
12801
12802 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12803
12804 * config/t-sol2 (sol2-c.o): Remove header dependencies.
12805 Use $(COMPILE) and $(POSTCOMPILE).
12806 (sol2-cxx.o): Likewise.
12807 (sol2-stubs.o): Likewise.
12808 (sol2.o): Likewise.
12809 * config/x-solaris (host-solaris.o): Likewise.
12810
12811 * config/sparc/t-sparc (sparc.o): Remove.
12812 (sparc-c.o): Remove header dependencies.
12813 Use $(COMPILE) and $(POSTCOMPILE).
12814 * config/sparc/x-sparc: Likewise.
12815
12816 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
12817
12818 * config/arc/arc-opts.h: Add 2013 to Copyright years.
12819 * config/arc/arc700.md: Likewise.
12820 * config/arc/arc-modes.def: Likewise.
12821 * config/arc/arc-simd.h: Likewise.
12822 * config/arc/t-arc-uClibc: Likewise.
12823 * config/arc/t-arc-newlib: Likewise.
12824
12825 2013-10-02 Renlin Li <renlin.li@arm.com>
12826
12827 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12828 plus_constant.
12829 (aarch64_expand_epilogue): Likewise.
12830
12831 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12832 Yufeng Zhang <yufeng.zhang@arm.com>
12833
12834 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12835 declaration.
12836 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12837 'base_in' represent a conversion and legal_cast_p_1 holds; set
12838 'base_in' with the returned value from get_unwidened.
12839
12840 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12841
12842 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12843 plus_constant is not used.
12844
12845 2013-10-01 Wei Mi <wmi@google.com>
12846
12847 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12848 * config/i386/i386.md: Add define_peephole2 to
12849 break partial reg stall for cvtss2sd/cvtsd2ss.
12850
12851 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12852
12853 * config/arc/arc.c (pass_arc_ifcvt::clone):
12854 Update for ctxt_ -> m_ctxt change.
12855
12856 2013-10-01 Jeff Law <law@redhat.com>
12857
12858 * tree-ssa-threadupdate.c (struct redirection_data): Delete
12859 outgoing_edge and intermediate_edge fields. Instead store the path.
12860 (redirection_data::hash): Hash on the last edge's destination index.
12861 (redirection_data::equal): Check the entire thread path.
12862 (lookup_redirectio_data): Corresponding changes.
12863 (create_edge_and_update_destination_phis): Likewise.
12864 (thread_single_edge): Likewise.
12865
12866 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12867 Diego Novillo <dnovillo@google.com>
12868
12869 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12870 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12871 (vld32wh_insn, vld32wl_insn): Delete commented-out old
12872 versions of these patterns.
12873
12874 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12875 (__builtin_arc_aligned): Likewise.
12876
12877 * config/arc/arc.md: Expand adc_0 comment stating the intended
12878 purpose and why it isn't ready.
12879 Replace commented out call_value_via_label_mixed with a
12880 plain comment about bl_s.
12881
12882 * config/arc/arc.c (stdio.h): Don't include directly.
12883 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12884 Remove if (1) condition.
12885 (arc_encode_section_info): Fix comment.
12886
12887 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12888
12889 * config/arc/arc.c (arc_conditional_register_usage):
12890 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12891 Also set reg_alloc_order for DMA config regs.
12892
12893 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12894 Jeremy Bennett <jeremy.bennett@embecosm.com>
12895
12896 * doc/install.texi (--with-cpu): Mention ARC.
12897 (arc-*-elf32): New paragraph.
12898 (arc-linux-uclibc): Likewise.
12899 * doc/md.texi (Machine Constraints): Add ARC part.
12900 * doc/invoke.texi: (menu): Add ARC Options.
12901 (Machine Dependent Options) <ARC Options>: Add synopsis.
12902 (node ARC Options): Add.
12903 * doc/extend.texi (long_call / short_call attribute): Add ARC.
12904 (ARC Built-in Functions): New section defining
12905 generic ARC built-in functions.
12906 (ARC SIMD Built-in Functions): New section defining SIMD specific
12907 built-in functions.
12908 (Declaring Attributes of Functions): Extended
12909 description of short_call and long_call attributes for ARC and
12910 added index entries.
12911
12912 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
12913 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
12914 Joern Rennecke <joern.rennecke@embecosm.com>
12915 Muhammad Khurram Riaz <khurram.riaz@arc.com>
12916 Brendan Kehoe <brendan@zen.org>
12917 Michael Eager <eager@eagercon.com>
12918 Simon Cook <simon.cook@embecosm.com>
12919 Jeremy Bennett <jeremy.bennett@embecosm.com>
12920
12921 * config/arc, common/config/arc: New directories.
12922
12923 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12924 Brendan Kehoe <brendan@zen.org>
12925 Simon Cook <simon.cook@embecosm.com>
12926
12927 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12928
12929 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12930
12931 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12932 * tree-ssa-coalesce.h: New. Move prototype to here.
12933 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12934 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12935 (gimple_can_coalesce_p): Move to...
12936 * gimple.c (gimple_can_coalesce_p): Here.
12937
12938 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12939
12940 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12941 (dump_decl_set): Move to gimple.c.
12942 * gimple.h: Don't include tree-ssa-operands.h.
12943 (dump_decl_set): Add prototype.
12944 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12945 Move to gimple-ssa.h.
12946 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12947 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12948 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12949 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12950 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12951 than PHI_ARG_DEF.
12952 (dump_decl_set): Relocate here.
12953 * gimple-ssa.h: New file.
12954 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12955 Relocate from gimple.h.
12956 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12957 * tree-ssa-operands.c (swap_ssa_operands): Rename from
12958 swap_tree_operands and remove non-ssa path.
12959 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12960 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12961 swap_ssa_operands.
12962 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12963 vect_is_simple_reduction_1): Use swap_ssa_operands.
12964 * tree-flow.h: Move various prototypes to tree-phinodes.h.
12965 (enum need_phi_state): Move to tree-into-ssa.c.
12966 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12967 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12968 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12969 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12970 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12971 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12972 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12973 num_imm_uses): Move to ssa-iterators.h.
12974 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12975 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12976 tree-phinodes.h.
12977 (op_iter_done, op_iter_next_def, op_iter_next_tree,
12978 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12979 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12980 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12981 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12982 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12983 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12984 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12985 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12986 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12987 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12988 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12989 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12990 (set_phi_nodes): Move to tree-phinodes.h.
12991 * tree-ssa-operands.h (enum ssa_op_iter_type,
12992 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12993 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12994 (dump_decl_set): Remove prototype.
12995 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12996 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
12997 (set_phi_nodes): Relocate from tree-flow-inline.h.
12998 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12999 tree-flow-inline.h
13000 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13001 include list. Temporarily add gimple.h to include list.
13002 * ssa-iterators.h: New file.
13003 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13004 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13005 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13006 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13007 Relocate from tree-ssa-operands.h.
13008 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13009 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13010 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13011 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13012 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13013 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13014 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13015 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13016 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13017 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13018 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13019 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13020 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13021 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13022 Relocate from tree-flow-inline.h.
13023 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13024
13025 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13026
13027 * aarch64-simd.md
13028 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13029 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13030 Insert '\t' to output template.
13031 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13032 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13033 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13034 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13035
13036 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13037
13038 * doc/install.texi (Host/target specific installation notes for GCC):
13039 Put @anchor before @heading.
13040 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13041 Use @email for email addresses.
13042
13043 2013-10-01 Jeff Law <law@redhat.com>
13044
13045 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13046 a vec. Only delete the path if we create one without successfully
13047 registering a jump thread.
13048 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13049 as a pointer.
13050 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13051 (paths): New vector of jump threading paths.
13052 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13053 (THREAD_PATH): New accessor macro for the entire thread path.
13054 (lookup_redirection_data): Get intermediate and final outgoing edge
13055 from the thread path.
13056 (create_edge_and_update_destination_phis): Copy the threading path.
13057 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13058 jump threading path.
13059 (ssa_redirect_edges): Get edges and block types from the jump threading
13060 path. Free the path vector.
13061 (thread_block): Get edges from the jump threading path. Look at the
13062 entire path to see if we thread to a loop exit. If we cancel a jump
13063 thread request, then free the path vector.
13064 (thread_single_edge): Get edges and block types from the jump threading
13065 path. Free the path vector.
13066 (thread_through_loop_header): Get edges and block types from the jump
13067 threading path. Free the path vector.
13068 (mark_threaded_blocks): Iterate over the vector of paths and store
13069 the path on the appropriate edge. Get edges and block types from the
13070 jump threading path.
13071 (mark_threaded_blocks): Get edges and block types from the jump
13072 threading path. Free the path vector.
13073 (thread_through_all_blocks): Use the vector of paths rather than
13074 a vector of 3-edge sets.
13075 (register_jump_thread): Accept pointer to a path vector rather
13076 than the path vector itself. Store the path vector for later use.
13077 Simplify.
13078
13079 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13080 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13081
13082 PR target/58574
13083 * config/s390/s390.c (s390_split_branches): Modify check for table
13084 jump insns.
13085 (s390_chunkify_start): Rearrange table jump insn check in order to
13086 deal with compare and branch insns correctly.
13087
13088 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13089
13090 PR target/58578
13091 Revert
13092 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13093 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13094 define_insn_and_split.
13095 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13096 (shiftsi3_compare): New pattern.
13097 (rrx): New pattern.
13098 * config/arm/unspecs.md (UNSPEC_RRX): New.
13099
13100 2013-10-01 Alan Modra <amodra@gmail.com>
13101
13102 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13103 casing inout operands.
13104
13105 2013-10-01 Richard Biener <rguenther@suse.de>
13106
13107 PR tree-optimization/58553
13108 * tree-loop-distribution.c (struct partition_s): Add niter member.
13109 (classify_partition): Populate niter member for the partition
13110 and properly identify whether the relevant store happens before
13111 or after the loop exit.
13112 (generate_memset_builtin): Use niter member from the partition.
13113 (generate_memcpy_builtin): Likewise.
13114
13115 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13116
13117 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13118 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13119
13120 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13121
13122 * basic-block.h (edge_list): Prefix member names with "m_".
13123 * context.h (context): Likewise.
13124 * domwalk.h (dom_walker): Likewise.
13125 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13126 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13127 * hash-table.h (hash_table): Likewise.
13128 * machmode.h (bit_field_mode_iterator): Likewise.
13129 * pass_manager.h (pass_list): Likewise.
13130 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13131 * tree-pass.h (pass_data): Likewise.
13132 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13133 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13134 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13135 * asan.c (pass_data_asan): Update accordingly.
13136 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13137 (control_dependences::control_dependences): Likewise.
13138 (control_dependences::~control_dependences): Likewise.
13139 (control_dependences::~control_dependences): Likewise.
13140 (control_dependences::get_edges_dependent_on): Likewise.
13141 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13142 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13143 * context.c (gcc::context::context): Likewise.
13144 * cprop.c (pass_rtl_cprop::clone): Likewise.
13145 * domwalk.c (dom_walker::walk): Likewise.
13146 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13147 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13148 * mode-switching.c (pass_mode_switching::clone): Likewise.
13149 * passes.c (opt_pass::opt_pass): Likewise.
13150 (pass_manager::pass_manager): Likewise.
13151 * predict.c (pass_strip_predict_hints::clone): Likewise.
13152 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13153 (pass_split_all_insns::clone): Likewise.
13154 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13155 Likewise.
13156 (bit_field_mode_iterator::next_mode): Likewise.
13157 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13158 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13159 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13160 * tree-complex.c (pass_lower_complex::clone): Likewise.
13161 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13162 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13163 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13164 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13165 (pass_fold_builtins::clone): Likewise.
13166 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13167 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13168 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13169 (pass_cd_dce::clone): Likewise.
13170 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13171 (pass_phi_only_cprop::clone): Likewise.
13172 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13173 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13174 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13175 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13176 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13177 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13178 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13179 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13180 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13181 * tree-vrp.c (pass_vrp::clone): Likewise.
13182 * tsan.c (pass_tsan::clone): Likewise.
13183
13184 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13185
13186 PR middle-end/58564
13187 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13188 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13189
13190 PR middle-end/58564
13191 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13192 optimization, punt if sign_bit_p looked through any zero extension.
13193
13194 2013-09-30 Teresa Johnson <tejohnson@google.com>
13195
13196 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13197 Update redirected out edge count in joiner case.
13198 (ssa_redirect_edges): Common the joiner and non-joiner cases
13199 so that joiner case gets profile updates.
13200
13201 2013-09-30 Richard Biener <rguenther@suse.de>
13202
13203 PR tree-optimization/58554
13204 * tree-loop-distribution.c (classify_partition): Require
13205 unconditionally executed stores for memcpy and memset recognition.
13206 (tree_loop_distribution): Calculate dominance info.
13207
13208 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13209
13210 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13211 (NO_PROFILE_COUNTERS): Likewise.
13212 (PROFILE_HOOK): Likewise.
13213 (FUNCTION_PROFILER): Likewise.
13214 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13215
13216 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13217
13218 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13219 calls and defines in TARGET_MACHO conditional.
13220 (load_macho_picbase_di): Likewise.
13221 (reload_macho_picbase): Likewise.
13222 (reload_macho_picbase_si): Likewise.
13223 (reload_macho_picbase_di): Likewise.
13224 (nonlocal_goto_receiver): Likewise.
13225
13226 2013-09-30 Nick Clifton <nickc@redhat.com>
13227
13228 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13229 that use the MSP430X ISA.
13230 (msp430_option_override): Scan -mmcu command line option for any
13231 MCU name that supports the MSP430X ISA.
13232 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13233 -mmcu options which enable the MSP430X ISA.
13234
13235 2013-09-30 Richard Biener <rguenther@suse.de>
13236
13237 PR middle-end/58532
13238 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13239 before looking for setjmp-like calls.
13240
13241 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13242
13243 PR target/10901
13244 * config/darwin-protos.h (machopic_get_function_picbase): New.
13245 * config/darwin.c (machopic_get_function_picbase): New.
13246 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13247 label for a new func. (load_macho_picbase_di): Likewise.
13248 (reload_macho_picbase): New expand.
13249 (reload_macho_picbase_si): New insn.
13250 (reload_macho_picbase_di): New insn.
13251 (nonlocal_goto_receiver): New define and split.
13252 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13253 (unspecv enum): Add UNSPECV_NLGR.
13254
13255 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13256
13257 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13258 that altivec registers are correctly sized on Darwin.
13259
13260 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13261
13262 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13263 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13264 * config/x-darwin (host-darwin.o): Likewise.
13265 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13266 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13267 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13268
13269 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13270
13271 * doc/invoke.texi: Fix usage of @tie{} command.
13272
13273 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13274
13275 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13276
13277 2013-09-28 Jan Hubicka <jh@suse.cz>
13278
13279 * config/i386/x86-tune.def: Add documentation for each of the options;
13280 add whitespace.
13281
13282 2013-09-28 Jan Hubicka <jh@suse.cz>
13283
13284 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13285 generic.
13286 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13287 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13288 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13289 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13290 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13291
13292 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13293
13294 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13295 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13296 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13297 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13298 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13299 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13300 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13301 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13302 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13303 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13304 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13305 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13306 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13307 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13308 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13309 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13310 gimple.h, godump.c, graphite-clast-to-gimple.c,
13311 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13312 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13313 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13314 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13315 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13316 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13317 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13318 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13319 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13320 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13321 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13322 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13323 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13324 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13325 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13326 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13327 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13328 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13329 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13330 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13331 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13332 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13333 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13334 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13335 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13336 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13337 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13338 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13339 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13340 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13341 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13342 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13343 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13344 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13345 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13346 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13347 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13348 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13349 whitespace before "(".
13350
13351 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13352
13353 * expr.h (extract_bit_field): Remove packedp parameter.
13354 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13355 from forward declaration.
13356 (store_split_bit_field): Remove packedp arg from calls to
13357 extract_fixed_bit_field.
13358 (extract_bit_field_1): Remove packedp parameter and packedp
13359 argument from recursive calls and calls to extract_fixed_bit_field.
13360 (extract_bit_field): Remove packedp parameter and corresponding
13361 arg to extract_bit_field_1.
13362 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13363 to issue warnings.
13364 (extract_split_bit_field): Remove packedp arg from call to
13365 extract_fixed_bit_field.
13366 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13367 (copy_blkmode_from_reg): Likewise.
13368 (copy_blkmode_to_reg): Likewise.
13369 (read_complex_part): Likewise.
13370 (store_field): Likewise.
13371 (expand_expr_real_1): Likewise.
13372 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13373 to extract_bit_field.
13374 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13375 call to extract_bit_field.
13376 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13377 call to extract_bit_field.
13378 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13379 and special packedp behavior from -fstrict-volatile-bitfields
13380 documentation.
13381
13382 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13383
13384 * lra-eliminations.c (init_elim_table): Guard value_p.
13385
13386 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13387
13388 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13389 DFmode, DImode, and SFmode in the upper VSX registers based on the
13390 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13391 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13392 of the VSX register handling.
13393
13394 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13395 (f32_sv): Likewise.
13396 (zero_extendsidi2_lfiwzx): Add support for loading into the
13397 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13398 only do VSX memory options on Altivec registers.
13399 (extendsidi2_lfiwax): Likewise.
13400 (extendsfdf2_fpr): Likewise.
13401 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13402 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13403 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13404 (movdi_internal64): Likewise.
13405
13406 2013-09-27 Xinliang David Li <davidxl@google.com>
13407
13408 * opts.c (finish_options): Adjust parameters
13409 according to vect cost model.
13410 (common_handle_option): Set dynamic vect cost
13411 model for FDO.
13412 targhooks.c (default_add_stmt_cost): Compute stmt cost
13413 unconditionally.
13414 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13415 Use helper function.
13416 * tree-vectorizer.h (unlimited_cost_model): New function.
13417 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13418 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13419 function.
13420 (vect_enhance_data_refs_alignment): Ditto.
13421 * flag-types.h: New enum.
13422 * common/config/i386/i386-common.c (ix86_option_init_struct):
13423 No need to initialize vect_cost_model flag.
13424 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13425 unconditionally.
13426
13427 2013-09-27 Diego Novillo <dnovillo@google.com>
13428
13429 * gimple.h (enum ssa_mode): Remove.
13430
13431 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13432
13433 * cfgloop.h (number_of_loops): Fix typo in check for null.
13434
13435 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13436
13437 PR middle-end/58551
13438 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13439 are children of outermost saved_cfun's loop, and set it up to
13440 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13441 if loop != loop0 and SESE region contains bbs that belong to loop0.
13442
13443 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13444
13445 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13446 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13447 (set_address_segment, set_address_base, set_address_index)
13448 (set_address_disp): Accept the argument unconditionally.
13449 (baseness): Remove must_be_base_p and must_be_index_p checks.
13450 (decompose_normal_address): Classify as much as possible in the
13451 main loop.
13452
13453 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13454
13455 * cse.c (count_reg_usage): Handle INT_LIST.
13456 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13457 * reginfo.c (reg_scan_mark_refs): Likewise.
13458 * reload1.c (eliminate_regs_1): Likewise.
13459
13460 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13461
13462 PR middle-end/58547
13463 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13464 signed.
13465
13466 2013-09-27 Richard Biener <rguenther@suse.de>
13467
13468 PR tree-optimization/58459
13469 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13470 restriction not propagating into loops.
13471
13472 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13473
13474 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13475 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13476 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13477
13478 2013-09-26 Richard Biener <rguenther@suse.de>
13479
13480 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13481
13482 2013-09-26 Richard Biener <rguenther@suse.de>
13483
13484 * alias.h (component_uses_parent_alias_set): Rename to ...
13485 (component_uses_parent_alias_set_from): ... this.
13486 * alias.c (component_uses_parent_alias_set): Rename to ...
13487 (component_uses_parent_alias_set_from): ... this and return
13488 the desired parent.
13489 (reference_alias_ptr_type_1): Use the result from
13490 component_uses_parent_alias_set_from instead of stripping
13491 components one at a time.
13492 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13493
13494 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13495
13496 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13497 Move prototypes to...
13498 * tree-ssa-ter.h: New File. Move prototypes here.
13499 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13500 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13501 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13502 from is_replaceable_p.
13503 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13504 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13505 (process_replaceable): Use ter_is_replaceable_p.
13506 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13507 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13508 newly refactored ssa_is_replaceable_p.
13509 * cfgexpand.c: Include tree-outof-ssa.h.
13510 * ssaexpand.h: Delete.
13511
13512 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13513
13514 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13515 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13516 tree-ssa.c
13517 (create_gimple_tmp): Delete.
13518 (get_expr_type, build_assign, build_type_cast): Move to...
13519 * gimple-builder.c: New File.
13520 (get_expr_type): Relocate from gimple.c.
13521 (build_assign, build_type_cast): Change to only create ssanames.
13522 * gimple.h: Move prototypes to...
13523 * gimple-builder.h: New File. Here.
13524 * tree-ssa.h: And here.
13525 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13526 count_uses_and_derefs): Relocate from gimple.c.
13527 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13528 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13529 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13530 gimple_replace_ssa_lhs.
13531 * asan.c: Include gimple-builder.h.
13532 * Makefile.in: Add gimple-builder.o.
13533
13534 2013-09-26 Richard Biener <rguenther@suse.de>
13535
13536 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13537 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13538 (loe_visit_block): Use gcc_checking_assert.
13539 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13540 gimple_assign_ssa_name_copy_p.
13541 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13542 change.
13543
13544 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13545
13546 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13547 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13548
13549 2013-09-26 Richard Biener <rguenther@suse.de>
13550
13551 PR tree-optimization/58539
13552 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13553 the fact that debug statements are not taking part in loop-closed
13554 SSA construction.
13555
13556 2013-09-26 Nick Clifton <nickc@redhat.com>
13557
13558 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13559 time warning message.
13560 (msp430_print_operand_raw): Delete unused letter parameter.
13561 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13562 (msp430_print_operand_address): New function.
13563 (msp430_print_operand): Move address printing code from here to
13564 new function.
13565 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13566 assembler.
13567 (zero_extendpsisi2): Likewise.
13568 (extendpsisi2): New pattern.
13569 (andneghi3): New pattern.
13570
13571 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13572
13573 * config/aarch64/aarch64.opt (mlra): New option.
13574 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13575 (TARGET_LRA_P): Define.
13576
13577 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * expr.c (expand_assignment): Remove obsolete comment.
13580
13581 2013-09-25 Jeff Law <law@redhat.com>
13582
13583 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13584 tree-ssa-threadupdate.h.
13585 (register_jump_thread): Similarly.
13586 * tree-ssa-threadupdate.h: New header file.
13587 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13588 * tree-vrp.c: Likewise.
13589 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13590 (thread_around_empty_blocks): Change type of path vector argument to
13591 an edge,type pair from just an edge. Initialize both elements when
13592 appending to a jump threading path. Tweak references to elements
13593 appropriately.
13594 (thread_across_edge): Similarly. Release memory for the elements
13595 as needed.
13596 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13597 (dump_jump_thread_path): New function broken out from
13598 register_jump_thread.
13599 (register_jump_thread): Use dump_jump_thread_path. Change type of
13600 path vector entries. Search the path for NULL edges and dump
13601 the path if one is found. Tweak the conversion of path to 3-edge
13602 form to use the block copy type information embedded in the path.
13603
13604 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13605
13606 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13607
13608 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13609 Vladimir Makarov <vmakarov@redhat.com>
13610
13611 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13612 from the least significant bit.
13613 (strip_address_mutations): Add bitfield operations handling.
13614 (must_be_index_p): Add shifting and rotate operations handling.
13615 (set_address_base): Use must_be_base_p predicate.
13616 (set_address_index): Use must_be_index_p predicate.
13617
13618 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13620 Sergey Lega <sergey.s.lega@intel.com>
13621 Anna Tikhonova <anna.tikhonova@intel.com>
13622 Ilya Tocar <ilya.tocar@intel.com>
13623 Andrey Turetskiy <andrey.turetskiy@intel.com>
13624 Ilya Verbin <ilya.verbin@intel.com>
13625 Kirill Yukhin <kirill.yukhin@intel.com>
13626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13627
13628 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13629 Use new names.
13630 (ix86_expand_vector_move_misalign): Support new unaligned load and
13631 stores and use new names.
13632 (CODE_FOR_sse2_storedqu): Rename to ...
13633 (CODE_FOR_sse2_storedquv16qi): ... this.
13634 (CODE_FOR_sse2_loaddqu): Rename to ...
13635 (CODE_FOR_sse2_loaddquv16qi): ... this.
13636 (CODE_FOR_avx_loaddqu256): Rename to ...
13637 (CODE_FOR_avx_loaddquv32qi): ... this.
13638 (CODE_FOR_avx_storedqu256): Rename to ...
13639 (CODE_FOR_avx_storedquv32qi): ... this.
13640 * config/i386/i386.md (fpint_logic): New.
13641 * config/i386/sse.md (VMOVE): Extend for AVX512.
13642 (VF): Ditto.
13643 (VF_128_256): New.
13644 (VF_512): Ditto.
13645 (VI_UNALIGNED_LOADSTORE): Ditto.
13646 (sse2_avx_avx512f): Ditto.
13647 (sse2_avx2): Extend for AVX512.
13648 (sse4_1_avx2): Ditto.
13649 (avx2_avx512f): New.
13650 (sse): Extend for AVX512.
13651 (sse2): Ditto.
13652 (sse4_1): Ditto.
13653 (avxsizesuffix): Ditto.
13654 (sseintvecmode): Ditto.
13655 (ssePSmode): Ditto.
13656 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13657 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13658 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13659 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13660 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13661 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13662 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13663 (STORENT_MODE): Extend for AVX512.
13664 (*absneg<mode>2): Replace constraint "x" with "v".
13665 (*mul<mode>3): Ditto.
13666 (*ieee_smin<mode>3): Ditto.
13667 (*ieee_smax<mode>3): Ditto.
13668 (avx_cmp<mode>3): Replace VF with VF_128_256.
13669 (*<sse>_maskcmp<mode>3_comm): Ditto.
13670 (<sse>_maskcmp<mode>3): Ditto.
13671 (<sse>_andnot<mode>3): Extend for AVX512.
13672 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13673 (<code><mode>3, fpint_logic): New.
13674 (*<code><mode>3): Extend for AVX512.
13675 (avx512flogicsuff): New.
13676 (avx512f_<logic><mode>): Ditto.
13677 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13678 VF_128_256.
13679 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13680 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13681 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13682 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13683 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13684 (xop_vpermil2<mode>3): Ditto.
13685 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13686 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13687 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13688 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13689
13690 2013-09-25 Tom Tromey <tromey@redhat.com>
13691
13692 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13693 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13694 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13695 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13696 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13697 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13698 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13699 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13700 (GRAPHITE_HTAB_H): Remove.
13701
13702 2013-09-25 Tom Tromey <tromey@redhat.com>
13703
13704 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13705
13706 2013-09-25 Tom Tromey <tromey@redhat.com>
13707
13708 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13709
13710 2013-09-25 Tom Tromey <tromey@redhat.com>
13711
13712 * config/i386/t-i386 (i386.o): Remove.
13713 (i386-c.o): Use COMPILE and POSTCOMPILE.
13714
13715 2013-09-25 Tom Tromey <tromey@redhat.com>
13716
13717 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13718
13719 2013-09-25 Tom Tromey <tromey@redhat.com>
13720
13721 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13722 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13723 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13724 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13725 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13726 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13727 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13728 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13729 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13730 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13731 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13732 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13733 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13734 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13735 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13736 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13737 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13738 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13739 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13740 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13741 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13742 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13743 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13744 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13745 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13746 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13747 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13748 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13749 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13750 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13751 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13752 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13753 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13754 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13755 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13756 (graphite-clast-to-gimple.o, graphite-dependences.o)
13757 (graphite-interchange.o, graphite-poly.o)
13758 (graphite-scop-detection.o, graphite-sese-to-poly.o)
13759 (graphite-optimize-isl.o, tree-vect-loop.o)
13760 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13761 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13762 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13763 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13764 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13765 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13766 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13767 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13768 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13769 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13770 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13771 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13772 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13773 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13774 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13775 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13776 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13777 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13778 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13779 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13780 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13781 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13782 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13783 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13784 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13785 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13786 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13787 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13788 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13789 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13790 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13791 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13792 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13793 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13794 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13795 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13796 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13797 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13798 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13799 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13800 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13801 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13802 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13803 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13804 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13805 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13806 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13807 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13808 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13809 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13810 (gcov-dump.o): Remove.
13811 (default-c.o): Use COMPILE and POSTCOMPILE.
13812 (CFLAGS-gcc.o): New variable.
13813 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13814
13815 2013-09-25 Tom Tromey <tromey@redhat.com>
13816
13817 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13818 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13819 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13820 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13821 (c-family/c-pragma.o, c-family/c-pretty-print.o)
13822 (c-family/c-semantics.o, c-family/c-ada-spec.o)
13823 (c-family/array-notation-common.o, c-family/stub-objc.o)
13824 (c-family/c-ubsan.o): Remove.
13825
13826 2013-09-25 Tom Tromey <tromey@redhat.com>
13827
13828 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13829
13830 2013-09-25 Tom Tromey <tromey@redhat.com>
13831
13832 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13833 to add -DENABLE_SHARED_LIBGCC.
13834 (gcc.o): Don't use subshell.
13835
13836 2013-09-25 Tom Tromey <tromey@redhat.com>
13837
13838 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13839 * configure.ac: Don't invoke AM_PROG_CC_C_O.
13840 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13841 * configure, config.in: Rebuild.
13842
13843 2013-09-25 Tom Tromey <tromey@redhat.com>
13844
13845 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13846 (COMPILE, POSTCOMPILE): New variables.
13847 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13848 (DEPFILES): New variable.
13849 Include ".Po" files.
13850 * configure.ac: Add checks for dependency checking.
13851 * configure, aclocal.m4: Regenerate.
13852
13853 2013-09-25 Tom Tromey <tromey@redhat.com>
13854
13855 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13856 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13857
13858 2013-09-25 Tom Tromey <tromey@redhat.com>
13859
13860 * Makefile.in (generated_files): Add options.h,
13861 target-hooks-def.h, insn-opinit.h,
13862 common/common-target-hooks-def.h, pass-instances.def,
13863 c-family/c-target-hooks-def.h.
13864
13865 2013-09-25 Jeff Law <law@redhat.com>
13866
13867 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13868 than foo[foo.length () - 1] to access last member in a vec.
13869 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13870
13871 2013-09-25 Richard Biener <rguenther@suse.de>
13872
13873 PR middle-end/58521
13874 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13875
13876 2013-09-25 Jan Hubicka <jh@suse.cz>
13877
13878 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13879 test.
13880
13881 2013-09-25 Marek Polacek <polacek@redhat.com>
13882
13883 PR sanitizer/58420
13884 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13885 when determining the type name.
13886
13887 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
13888
13889 * config/sh/sh.md: Fix formatting.
13890
13891 2013-09-24 Xinliang David Li <davidxl@google.com>
13892
13893 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13894 max peel iterations parameter.
13895 * param.def: New parameter.
13896 * doc/invoke.texi: Document New parameter.
13897
13898 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
13899
13900 * gimple-pretty-print.c: Various whitespace tweaks.
13901 * tree-core.h: Likewise.
13902 * tree-pretty-print.c: Likewise.
13903 * tree-ssa-alias.c: Likewise.
13904 * tree-ssa-copy.c: Likewise.
13905 * tree-ssanames.c: Likewise.
13906 * tree-ssanames.h: Likewise.
13907 * tree-vrp.c: Likewise.
13908
13909 2013-09-24 Alan Modra <amodra@gmail.com>
13910
13911 PR middle-end/57134
13912 PR middle-end/57586
13913 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13914 for output operands that disallow regs. Don't use EXPAND_WRITE on
13915 inout operands.
13916
13917 2013-09-24 Richard Biener <rguenther@suse.de>
13918
13919 PR middle-end/58513
13920 * tree.c (reference_alias_ptr_type): Move ...
13921 * alias.c (reference_alias_ptr_type): ... here and implement
13922 in terms of the new reference_alias_ptr_type_1.
13923 (ref_all_alias_ptr_type_p): New helper.
13924 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13925 use ref_all_alias_ptr_type_p.
13926 (get_deref_alias_set): Add flag_strict_aliasing check here.
13927 (reference_alias_ptr_type_1): New function, split out from ...
13928 (get_alias_set): ... here.
13929 (alias_ptr_types_compatible_p): New function.
13930 * alias.h (reference_alias_ptr_type): Declare.
13931 (alias_ptr_types_compatible_p): Likewise.
13932 * tree.h (reference_alias_ptr_type): Remove.
13933 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13934 to compare MEM_REF alias types.
13935
13936 2013-09-24 Richard Biener <rguenther@suse.de>
13937
13938 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13939
13940 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13941
13942 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13943 reload helper function arrays into a single array reg_addr.
13944 (reload_fpr_gpr): Likewise.
13945 (reload_gpr_vsx): Likewise.
13946 (reload_vsx_gpr): Likewise.
13947 (struct rs6000_reg_addr): Likewise.
13948 (reg_addr): Likewise.
13949 (rs6000_debug_reg_global): Change rs6000_vector_reload,
13950 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13951 (rs6000_init_hard_regno_mode_ok): Likewise.
13952 (rs6000_secondary_reload_direct_move): Likewise.
13953 (rs6000_secondary_reload): Likewise.
13954
13955 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13956 constraints: wu, ww, and wy. Repurpose wv constraint added during
13957 power8 changes. Put wg constraint in alphabetical order.
13958
13959 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13960 for future work to add ISA 2.07 VSX single precision support.
13961 (-mvsx-scalar-double): Change default from -1 to 1, update
13962 documentation comment.
13963 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13964 (-mupper-regs-df): New debug switch to control whether DF values
13965 can go in the traditional Altivec registers.
13966 (-mupper-regs-sf): New debug switch to control whether SF values
13967 can go in the traditional Altivec registers.
13968
13969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13970 and wy constraints.
13971 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13972 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
13973 Add new constraints, wu/ww/wy. Repurpose wv constraint.
13974 (rs6000_debug_legitimate_address_p): Print if we are running
13975 before, during, or after reload.
13976 (rs6000_secondary_reload): Add a comment.
13977 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13978
13979 * config/rs6000/constraints.md (wa constraint): Sort w<x>
13980 constraints. Update documentation string.
13981 (wd constraint): Likewise.
13982 (wf constraint): Likewise.
13983 (wg constraint): Likewise.
13984 (wn constraint): Likewise.
13985 (ws constraint): Likewise.
13986 (wt constraint): Likewise.
13987 (wx constraint): Likewise.
13988 (wz constraint): Likewise.
13989 (wu constraint): New constraint for ISA 2.07 SFmode scalar
13990 instructions.
13991 (ww constraint): Likewise.
13992 (wy constraint): Likewise.
13993 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13994 in the previous submissions.
13995 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13996
13997 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
13998
13999 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14000 (REG_BR_PROB): Say that the probability is stored in an int_list.
14001 * reg-notes.def: Update commentary to mention INT_LIST.
14002 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14003 (INT_LIST): New rtx.
14004 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14005 * rtlanal.c (int_reg_note_p): New function.
14006 (alloc_reg_note): Assert that the note does not have an int argument.
14007 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14008 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14009 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14010 rather than an INSN_LIST. Handle INT_LIST.
14011 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14012 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14013 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14014 Manipulate them as ints rather than rtxes.
14015 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14016 * regmove.c (copy_src_to_dest): Likewise.
14017 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14018
14019 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14020 into the cases that need it.
14021 * config/arm/arm.c (arm_unwind_emit): Likewise.
14022
14023 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14024 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14025 * loop-doloop.c (add_test, doloop_modify): Likewise.
14026 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14027 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14028 * predict.c (combine_predictions_for_insn): Likewise.
14029 * print-rtl.c (print_rtx): Handle INT_LIST.
14030 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14031 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14032 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14033 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14034 (ix86_split_fp_branch, predict_jump): Likewise.
14035 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14036 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14037 * config/spu/spu.c (ea_load_store_inline): Likewise.
14038
14039 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14040 value of a REG_BR_PROB note.
14041 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14042 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14043 * emit-rtl.c (try_split): Likewise.
14044 * predict.c (br_prob_note_reliable_p): Likewise.
14045 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14046 * reorg.c (mostly_true_jump): Likewise.
14047 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14048 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14049 * config/i386/i386.c (ix86_print_operand): Likewise.
14050 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14051 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14052 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14053 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14054 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14055 * config/sparc/sparc.c (output_cbranch): Likewise.
14056 * config/spu/spu.c (get_branch_target): Likewise.
14057 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14058 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14059
14060 2013-09-23 Jan Hubicka <jh@suse.cz>
14061
14062 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14063 for ipa-devirt.
14064 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14065 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14066 of external calls
14067 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14068 (gimple_fold_call): Dump inconsistent devirtualizations; add
14069 sanity check for type based devirtualizations.
14070 * ipa-prop.c: Include ipa-utils.h
14071 (ipa_intraprocedural_devirtualization): Add sanity check.
14072 (try_make_edge_direct_virtual_call): Likewise.
14073
14074 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14075
14076 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14077 assignment statements.
14078
14079 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14080
14081 * gimple-pretty-print.c (dump_ssaname_info): New function.
14082 (dump_gimple_phi): Call it.
14083 (pp_gimple_stmt_1): Likewise.
14084 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14085 (range_info_def): Declare.
14086 * tree-pretty-print.c (pp_double_int): New function.
14087 (dump_generic_node): Call it.
14088 * tree-pretty-print.h (pp_double_int): Declare.
14089 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14090 * tree-ssanames.h (range_info_def): New structure.
14091 (value_range_type): Move definition here.
14092 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14093 Declare.
14094 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14095 initialization.
14096 (set_range_info): New function.
14097 (get_range_info): Likewise.
14098 (duplicate_ssa_name_range_info): Likewise.
14099 (duplicate_ssa_name_fn): Check pointer type and call
14100 duplicate_ssa_name_range_info.
14101 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14102 * tree-vrp.c (value_range_type): Remove definition, now in
14103 tree-ssanames.h.
14104 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14105 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14106 (SSA_NAME_RANGE_INFO): New macro.
14107
14108 2013-09-23 Richard Biener <rguenther@suse.de>
14109
14110 PR tree-optimization/58464
14111 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14112 (phi_trans_add): Change to add conditionally on being not present.
14113 (phi_translate_1): Remove recursion detection here.
14114 (phi_translate): Pre-seed the cache with NULL to catch
14115 recursion here in a more generic way.
14116 (bitmap_find_leader): Adjust comment.
14117 (get_representative_for): Dump value-numbers.
14118 (create_expression_by_pieces): Likewise.
14119 (insert_into_preds_of_block): Likewise.
14120
14121 2013-09-23 Christian Bruel <christian.bruel@st.com>
14122
14123 PR target/58475
14124 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14125 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14126
14127 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14128
14129 Revert r202780:
14130 2013-09-20 Renlin Li <renlin.li@arm.com>
14131
14132 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14133 plus_constant.
14134 (aarch64_expand_epilogue): Likewise.
14135 (aarch64_legitimize_reload_address): Likewise.
14136
14137 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14138
14139 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14140 NULL_TREE before pushing them onto the vector. Likewise for labels.
14141
14142 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14143
14144 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14145 comparison operators when -fno-trapping-math is in effect.
14146 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14147 comparison operators in TFmode and assert that unsupported operators
14148 cannot reach here.
14149 (ia64_print_operand): Likewise.
14150
14151 2013-09-21 Jan Hubicka <jh@suse.cz>
14152
14153 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14154 (sse_typeless_stores): Enable for core
14155 (sse_load0_by_pxor): Likewise.
14156 (four_jump_limit): Disable for core.
14157 (pad_returns): Likewise.
14158 (avoid_vector_decode): Likewise.
14159 (fuse_cmp_and_branch): Enable for cores.
14160 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14161
14162 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14163
14164 PR middle-end/56791
14165 * config/pa/pa.c (pa_option_override): Disable auto increment and
14166 decrement instructions until reload is completed.
14167
14168 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14169 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14170 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14171
14172 2013-09-20 DJ Delorie <dj@redhat.com>
14173 Nick Clifton <nickc@redhat.com>
14174
14175 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14176 (need_to_save): Save bank 0 on interrupts.
14177 (characterize_address): Strip far address wrappers.
14178 (rl78_as_legitimate_address): Likewise.
14179 (transcode_memory_rtx): Likewise.
14180 (rl78_peep_movhi_p): Disable this peephole after devirt.
14181 (rl78_propogate_register_origins): Forget all origins when a
14182 CLOBBER is seen.
14183 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14184 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14185 peephole2's.
14186 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14187 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14188 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14189 relocating.
14190 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14191
14192 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14193
14194 * config/pa/pa.md: In "scc" insn patterns, change output template to
14195 handle const0_rtx in reg_or_0_operand operands.
14196
14197 2013-09-20 Martin Husemann <martin@NetBSD.org>
14198
14199 PR target/56875
14200 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14201 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14202
14203 2013-09-20 Richard Biener <rguenther@suse.de>
14204
14205 PR middle-end/58484
14206 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14207 remembering SSA name version and block index.
14208 (new_scev_info_str): Adjust.
14209 (hash_scev_info): Likewise. Also hash the block index.
14210 (eq_scev_info): Adjust.
14211 (find_var_scev_info): Likewise.
14212 (struct instantiate_cache_entry): Remove.
14213 (struct instantiate_cache_type): Use a htab to map name, block
14214 to chrec.
14215 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14216 (get_instantiated_value_entry): Likewise.
14217 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14218 (instantiate_scev_name): Adjust.
14219
14220 2013-09-20 Jeff Law <law@redhat.com>
14221
14222 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14223
14224 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14225
14226 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14227 Call aarch64_simd_expand_args to update op[argc].
14228
14229 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14230
14231 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14232 plugin argument.
14233
14234 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14235
14236 * gengtype.c (file_rules): Added rule for *.cc files.
14237 (get_output_file_with_visibility): Give fatal message when no
14238 rules found.
14239
14240 2013-09-20 Renlin Li <renlin.li@arm.com>
14241
14242 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14243 (aarch64_expand_epilogue): Likewise.
14244 (aarch64_legitimize_reload_address): Likewise.
14245
14246 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14247
14248 PR middle-end/57748
14249 * expr.c (expand_assignment): Remove misalignp code path.
14250
14251 2013-09-20 Marek Polacek <polacek@redhat.com>
14252
14253 PR sanitizer/58413
14254 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14255 TYPE_PRECISION. Add asserts.
14256
14257 2013-09-20 Richard Biener <rguenther@suse.de>
14258
14259 PR tree-optimization/58453
14260 * tree-loop-distribution.c (distribute_loop): Apply the cost
14261 model for -ftree-loop-distribute-patterns, too.
14262
14263 2013-09-20 Richard Biener <rguenther@suse.de>
14264
14265 PR middle-end/58473
14266 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14267 make type comparison less strict.
14268
14269 2013-09-20 Alan Modra <amodra@gmail.com>
14270
14271 * configure: Regenerate.
14272 * aclocal.m4: Regenerate.
14273
14274 2013-09-20 Marek Polacek <polacek@redhat.com>
14275
14276 PR other/58467
14277 * doc/extend.texi: Document that attribute used is meant to be used
14278 on variables with static storage duration.
14279
14280 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14281
14282 PR tree-optimization/58472
14283 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14284 simd_lane_access set inv_p = false.
14285 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14286 the simduid magic VAR_DECL.
14287
14288 2013-09-19 Jan Hubicka <jh@suse.cz>
14289
14290 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14291
14292 2013-09-17 Jeff Law <law@redhat.com>
14293
14294 * tree-ssa-dom.c (record_temporary_equivalences): New function
14295 split out of dom_opt_dom_walker::after_dom_children.
14296 (dom_opt_dom_walker::thread_across_edge): Move common code
14297 in here from dom_opt_dom_walker::after_dom_children.
14298 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14299
14300 2013-09-19 Jan Hubicka <jh@suse.cz>
14301
14302 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14303 (TARGET_GENERIC): Use PROCESOR_GENERIC
14304 (enum processor_type): Unify generic32 and 64.
14305 * i386.md (cpu): Likewise.
14306 * x86-tune.def (use_leave): Enable for generic32.
14307 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14308 * athlon.md: Change generic64 to generic in all occurences.
14309 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14310 (ix86_target_macros_internal): Likewise.
14311 * driver-i386.c (host_detect_local_cpu): Likewise.
14312 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14313 to ..
14314 (generic_memcpy, generic_memset, generic_cost): This one.
14315 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14316 (m_GENERIC32, m_GENERIC64): Remove.
14317 (m_GENERIC): Turn into one flag.
14318 (processor_target): Unify generic tunnings.
14319 (ix86_option_override_internal): Replace generic32/64 by generic.
14320 (ix86_issue_rate): Likewise.
14321 (ix86_adjust_cost): Likewise.
14322
14323 2013-09-19 Jan Hubicka <jh@suse.cz>
14324
14325 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14326 of speculative flag.
14327
14328 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14329
14330 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14331 GOMP_sections_start, even if !exit_reachable.
14332
14333 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14334
14335 * lra-constraints.c (need_for_all_save_p): Use macro
14336 HARD_REGNO_CALL_PART_CLOBBERED.
14337 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14338 set up pseudo conflict hard regs.
14339
14340 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14341
14342 PR target/58452
14343 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14344 operands.
14345
14346 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14347
14348 PR rtl-optimization/58438
14349 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14350 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14351 from previous subpasses.
14352
14353 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14354
14355 * arm.c (arm_get_frame_offsets): Validate architecture supports
14356 LDRD/STRD before accepting the tuning preference.
14357 (arm_expand_prologue): Likewise.
14358 (arm_expand_epilogue): Likewise.
14359
14360 2013-09-18 Richard Biener <rguenther@suse.de>
14361
14362 PR tree-optimization/58417
14363 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14364 have chrecs with symbols defined in the loop as operands.
14365 (chrec_fold_multiply): Likewise.
14366 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14367 parameters before folding binary operations.
14368 (struct instantiate_cache_entry_hasher): Remove.
14369 (struct instantiate_cache_type): Use a pointer-map.
14370 (instantiate_cache_type::instantiate_cache_type): New function.
14371 (instantiate_cache_type::get): Likewise.
14372 (instantiate_cache_type::set): Likewise.
14373 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14374 (get_instantiated_value_entry): Likewise.
14375 (global_cache): New global.
14376 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14377 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14378 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14379 (instantiate_scev_name): Adjust.
14380 (instantiate_scev): Construct global instead of local cache.
14381 (resolve_mixers): Likewise.
14382
14383 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14384 Paolo Carlini <paolo.carlini@oracle.com>
14385
14386 PR c++/58458
14387 * doc/implement-cxx.texi: Fix references to the C++ standards.
14388
14389 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14390
14391 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14392 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14393 simd_lane_access drs, update also DR_ALIGNED_TO.
14394
14395 2013-09-18 Marek Polacek <polacek@redhat.com>
14396
14397 PR sanitizer/58411
14398 * doc/extend.texi: Document no_sanitize_undefined attribute.
14399 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14400 no_sanitize_undefined attribute.
14401
14402 2013-09-18 Nick Clifton <nickc@redhat.com>
14403
14404 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14405 (ASM_DECLARE_FUNCTION_NAME): Define.
14406
14407 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14408
14409 * compare-elim.c (find_comparison_dom_walker): New class
14410 (find_comparisons_in_bb): Rename to
14411 find_comparison_dom_walker::before_dom_children
14412 (find_comparisons): Adjust
14413 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14414 adjust.
14415 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14416 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14417 (init_walk_dominator_tree): Remove declaration.
14418 (fini_walk_dominator_tree): Remove declaration.
14419 * fwprop.c (single_def_use_dom_walker): New class
14420 (single_def_use_enter_block): Convert to
14421 single_def_use_dom_walker::before_dom_children.
14422 (single_def_use_leave_block): Convert to
14423 single_def_use_dom_walker::after_dom_children.
14424 (build_single_def_use_links): Adjust.
14425 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14426 class.
14427 (find_candidates_in_block): Convert to
14428 find_candidates_dom_walker::before_dom_children.
14429 (execute_strength_reduction): Adjust.
14430 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14431 (sese_dom_walker): New class.
14432 (sese_dom_walker::sese_dom_walker): New constructor.
14433 (sese_dom_walker::~sese_dom_walker): New destructor.
14434 (build_sese_conditions_before): Convert to
14435 sese_dom_walker::before_dom_children.
14436 (build_sese_conditions_after): Convert to
14437 sese_dom_walker::after_dom_children.
14438 (build_poly_scop): Adjust
14439 * tree-into-ssa.c (rewrite_dom_walker): New class
14440 (rewrite_enter_block): Convert to
14441 rewrite_dom_walker::before_dom_children.
14442 (rewrite_leave_block): Convert to
14443 rewrite_dom_walker::after_dom_children.
14444 (rewrite_update_dom_walker): New class.
14445 (rewrite_update_enter_block): Convert to
14446 rewrite_update_dom_walker::before_dom_children.
14447 (rewrite_update_leave_block): Convert to
14448 rewrite_update_dom_walker::after_dom_children.
14449 (rewrite_blocks, rewrite_into_ssa): Adjust.
14450 (mark_def_dom_walker): New class.
14451 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14452 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14453 (mark_def_sites_blocks): Convert to
14454 mark_def_dom_walker::before_dom_children.
14455 (mark_def_site_blocks): Remove.
14456 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14457 (tree_ssa_dominator_optimize): Adjust.
14458 (dom_thread_across_edge): Convert to method
14459 dom_opt_dom_walker::thread_across_edge.
14460 (dom_opt_enter_block): Convert to member function
14461 dom_opt_dom_walker::before_dom_children.
14462 (dom_opt_leave_block): Convert to member function
14463 dom_opt_dom_walker::after_dom_children.
14464 * tree-ssa-dse.c (dse_dom_walker): New class.
14465 (dse_enter_block): Convert to member function
14466 dse_dom_walker::before_dom_children.
14467 (tree_ssa_dse): Adjust.
14468 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14469 (determine_invariantness_stmt): Convert to method
14470 invariantness_dom_walker::before_dom_children.
14471 (determine_invariantness): Remove
14472 (move_computations_dom_walker): New class.
14473 (move_computations_stmt): Convert to method
14474 move_computations_dom_walker::before_dom_children.
14475 (move_computations, tree_ssa_lim): Adjust.
14476 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14477 (nt_init_block): Convert to method
14478 notrappping_dom_walker::before_dom_children.
14479 (nt_fini_block): Convert to method
14480 method nontrapping_dom_walker::after_dom_children.
14481 (get_non_trapping): Adjust.
14482 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14483 (eliminate_bb): Convert to method
14484 eliminate_dom_walker::before_dom_children.
14485 (eliminate_leave_block): Convert to method
14486 eliminate_dom_walker::after_dom_children.
14487 (eliminate): Adjust.
14488 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14489 (strlen_enter_block): Convert to method
14490 strlen_dom_walker::before_dom_children.
14491 (strlen_leave_block): Convert to method
14492 method strlen_dom_walker::after_dom_children.
14493 (tree_ssa_strlen): Adjust.
14494 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14495 (tree_ssa_uncprop): Adjust.
14496 (uncprop_leave_block): Convert to method
14497 uncprop_dom_walker::after_dom_children.
14498 (uncprop_leave_block): Convert to method
14499 uncprop_dom_walker::before_dom_children.
14500
14501 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14502
14503 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14504 branch in same basic block. Check both src and dest of the move insn.
14505
14506 2013-09-17 Nick Clifton <nickc@redhat.com>
14507
14508 * config/rl78/rl78-real.md (bf): New pattern.
14509 (bt): New pattern.
14510 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14511 (rl78_print_operand): Do not put a # before a %B.
14512 * config/rl78/rl78.opt: Tweak doc strings.
14513
14514 2013-09-17 DJ Delorie <dj@redhat.com>
14515
14516 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14517 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14518 (rl78_option_override): Likewise, if -mallregs.
14519 (is_virtual_register): Likewise.
14520 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14521 (REGNO_OK_FOR_BASE_P): Likewise.
14522 * config/rl78/rl78.opt (-mallregs): New.
14523
14524 2013-09-17 Nick Clifton <nickc@redhat.com>
14525
14526 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14527 For interrupt functions: save all call clobbered registers if the
14528 interrupt handler is not a leaf function.
14529 (rl78_expand_prologue): Always recompute the frame information.
14530 For interrupt functions: only select bank 0 if one of the bank 0
14531 registers is going to be psuhed.
14532
14533 2013-09-17 DJ Delorie <dj@redhat.com>
14534
14535 * config/rl78/constraints.md: For each W* constraint, rename to C*
14536 and create a W* constraint that checks for an optional ES: prefix
14537 pattern also.
14538 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14539 (es_addr): New. Used to wrap far addresses.
14540 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14541 (rl78_es_base): New.
14542 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14543 wrapped far addresses.
14544 (rl78_print_operand_1): Unwrap far addresses before processing.
14545 (rl78_lo16): Wrap far addresses in unspecs.
14546 (rl78_es_addr): New.
14547 (rl78_es_base): New.
14548 (insn_ok_now): Check for not-yet-wrapped far addresses.
14549 (transcode_memory_rtx): Properly re-wrap far addresses.
14550
14551 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14552
14553 * config/sparc/t-rtems: Add leon3 multilibs.
14554
14555 2013-09-17 Cong Hou <congh@google.com>
14556
14557 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14558 when checking the dot production pattern. The type of rhs operand
14559 of multiply is now checked correctly.
14560
14561 2013-09-17 Jeff Law <law@redhat.com>
14562
14563 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14564 edge implied equivalences into successor phis.
14565 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14566 here from tree-ssa-threadedge.c.
14567 (mark_threaded_blocks): When threading through a joiner, if both
14568 successors of the joiner's clone reach the same block, verify the
14569 PHI arguments are equal. If not, cancel the jump threading request.
14570 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14571 tree-ssa-threadupdate.c
14572 (thread_across_edge): Don't check PHI argument equality when
14573 threading through joiner block here.
14574
14575 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14576
14577 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14578 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14579 (warn_uninit, warn_uninitialized_vars,
14580 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14581 Move to tree-ssa-uninit.c.
14582 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14583 (has_undefined_value_p): New. Pass dependant parts of
14584 ssa_undefined_value_p.
14585 (uninit_undefined_value_p): Use has_undefined_value_p.
14586 (warn_uninit, warn_uninitialized_vars,
14587 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14588 Move from tree-ssa.c.
14589 * tree-ssa.h: Adjust prototypes.
14590
14591 2013-09-17 Jan Hubicka <jh@suse.cz>
14592
14593 PR middle-end/58332
14594 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14595 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14596 FUNCTION_NOT_OPTIMIZED.
14597 * ipa-inline-analysis.c (compute_inline_parameters): Function
14598 not optimized is not inlinable unless it is alwaysinline.
14599 (inline_analyze_function): Force calls in not optimized
14600 function not inlinable.
14601
14602 2013-09-17 Jan Hubicka <jh@suse.cz>
14603
14604 PR middle-end/58329
14605 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14606 to return NULL.
14607 * ipa.c (function_and_variable_visibility): Likewise.
14608 * ipa-profile.c (ipa_profile): Likewise.
14609
14610 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14611
14612 PR ipa/58398
14613 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14614 attribute, and don't inline the resolver in this case.
14615
14616 2013-09-17 Teresa Johnson <tejohnson@google.com>
14617
14618 * coverage.c (get_coverage_counts): Add missing newline.
14619
14620 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14621
14622 PR tree-optimization/58088
14623 * fold-const.c (mask_with_trailing_zeros): New function.
14624 (fold_binary_loc): Make sure we don't recurse infinitely
14625 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14626 Use mask_with_trailing_zeros where appropriate.
14627
14628 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14629
14630 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14631 of 'prev' var to get better distance estimation.
14632
14633 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14634
14635 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14636 * tree-inline.c (is_parameter_of): New predicate.
14637 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14638 a parameter has been remapped.
14639 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14640 (optimize_inline_calls): Initialize transform_parameter.
14641 (copy_gimple_seq_and_replace_locals): Likewise.
14642 (tree_function_versioning): Likewise.
14643 (maybe_inline_call_in_expr): Likewise.
14644
14645 2013-09-17 Nick Clifton <nickc@redhat.com>
14646
14647 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14648 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14649 interrupt handlers.
14650 (is_attr_func): New function.
14651 (msp430_is_interrupt_func): New function.
14652 (is_naked_func): New function.
14653 (is_reentrant_func): New function.
14654 (is_critical_func): New function.
14655 (msp430_start_function): Add annotations for function attributes.
14656 (msp430_attr): New function.
14657 (msp430_attribute_table): New.
14658 (msp430_function_section): New function.
14659 (TARGET_ASM_FUNCTION_SECTION): Define.
14660 (msp430_builtin): New enum.
14661 (msp430_init_builtins): New function.
14662 (msp430_builtin_devl): New function.
14663 (msp430_expand_builtin): New function.
14664 (TARGET_INIT_BUILTINS): Define.
14665 (TARGET_EXPAND_BUILTINS): Define.
14666 (TARGET_BUILTIN_DECL): Define.
14667 (msp430_expand_prologue): Add support for naked, interrupt,
14668 critical and reentrant functions.
14669 (msp430_expand_epilogue): Likewise.
14670 (msp430_print_operand): Handle 'O' character.
14671 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14672 NO_TRAMPOLINES.
14673 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14674 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14675 (pushm): Use a 'n' rather than an 'i' constraint.
14676 (msp_return): Add generation of the interrupt return instruction.
14677 (disable_interrupts): New pattern.
14678 (enable_interrupts): New pattern.
14679 (push_intr_state): New pattern.
14680 (pop_intr_state): New pattern.
14681 (bic_SR): New pattern.
14682 (bis_SR): New pattern.
14683 * doc/extend.texi: Document MSP430 function attributes and builtin
14684 functions.
14685
14686 2013-09-17 Richard Biener <rguenther@suse.de>
14687
14688 PR tree-optimization/58432
14689 * tree-loop-distribution.c (tree_loop_distribution): Also
14690 scan PHIs for outside loop uses and seed a partition from them.
14691
14692 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14693
14694 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14695 (restructure_reference): Call backtrace_base_for_ref.
14696
14697 2013-09-17 Alan Modra <amodra@gmail.com>
14698
14699 PR target/57589
14700 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14701 patch.
14702
14703 2013-09-16 DJ Delorie <dj@redhat.com>
14704
14705 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14706 vregs location for RL78/G10.
14707 (rl78_expand_prologue): Avoid SEL on G10.
14708 (rl78_expand_epilogue): Likewise.
14709 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14710 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14711 __RL78_G10__ when appropriate.
14712 (ASM_SPEC): Pass -mg10 along to the assembler.
14713 * config/rl78/rl78.md (sel_rb): Disable for G10.
14714 * config/rl78/rl78.opt: Add -mg10 option.
14715 * config/rl78/t-rl78: Add -mg10 multilib.
14716
14717 2013-09-16 Xinliang David Li <davidxl@google.com>
14718
14719 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14720 * omp-low.c (omp_max_vf): Ditto.
14721 (expand_omp_simd): Ditto.
14722 * tree-vectorizer.c (vectorize_loops): Ditto.
14723 (gate_vect_slp): Ditto.
14724 (gate_increase_alignment): Ditto.
14725 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14726 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14727 (gate_tree_vectorize): Name change.
14728 (tree_vectorize): Ditto.
14729 (pass_vectorize::gate): Call new function.
14730 (pass_vectorize::execute): Ditto.
14731 * opts.c: O3 default setting change.
14732 (finish_options): Check new flag.
14733 * doc/invoke.texi: Document new flags.
14734 * common.opt: New flags.
14735
14736 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14737
14738 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14739 (Condition Code): Don't reference it.
14740 * doc/tm.texi: Regenerate.
14741
14742 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14743
14744 PR middle-end/58418
14745 * lra-constraints.c (undo_optional_reloads): Consider all optional
14746 reload even if it did not get a hard reg.
14747
14748 2013-09-16 Teresa Johnson <tejohnson@google.com>
14749
14750 * dumpfile.c (dump_loc): Remove newline emission.
14751 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14752 emission to dump_printf_loc calls where missing.
14753 (vect_mark_for_runtime_alias_test): Ditto.
14754 (vect_analyze_data_ref_dependence): Ditto.
14755 (vect_analyze_data_ref_dependences): Ditto.
14756 (vect_slp_analyze_data_ref_dependence): Ditto.
14757 (vect_slp_analyze_data_ref_dependences): Ditto.
14758 (vect_compute_data_ref_alignment): Ditto.
14759 (vect_update_misalignment_for_peel): Ditto.
14760 (vect_verify_datarefs_alignment): Ditto.
14761 (vector_alignment_reachable_p): Ditto.
14762 (vect_get_data_access_cost): Ditto.
14763 (vect_enhance_data_refs_alignment): Ditto.
14764 (vect_find_same_alignment_drs): Ditto.
14765 (vect_analyze_data_refs_alignment): Ditto.
14766 (vect_analyze_group_access): Ditto.
14767 (vect_analyze_data_ref_access): Ditto.
14768 (vect_analyze_data_ref_accesses): Ditto.
14769 (vect_prune_runtime_alias_test_list): Ditto.
14770 (vect_analyze_data_refs): Ditto.
14771 (vect_create_addr_base_for_vector_ref): Ditto.
14772 (vect_create_data_ref_ptr): Ditto.
14773 (vect_grouped_store_supported): Ditto.
14774 (vect_grouped_load_supported): Ditto.
14775 * value-prof.c (check_counter): Ditto.
14776 (check_ic_target): Ditto.
14777 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14778 (vect_recog_widen_mult_pattern): Ditto.
14779 (vect_recog_widen_sum_pattern): Ditto.
14780 (vect_recog_over_widening_pattern): Ditto.
14781 (vect_recog_widen_shift_pattern): Ditto.
14782 (vect_recog_rotate_pattern): Ditto.
14783 (vect_recog_vector_vector_shift_pattern): Ditto.
14784 (vect_recog_divmod_pattern): Ditto.
14785 (vect_recog_mixed_size_cond_pattern): Ditto.
14786 (vect_recog_bool_pattern): Ditto.
14787 (vect_pattern_recog_1): Ditto.
14788 (vect_pattern_recog): Ditto.
14789 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14790 (vect_is_simple_iv_evolution): Ditto.
14791 (vect_analyze_scalar_cycles_1): Ditto.
14792 (vect_get_loop_niters): Ditto.
14793 (vect_analyze_loop_1): Ditto.
14794 (vect_analyze_loop_form): Ditto.
14795 (vect_analyze_loop_operations): Ditto.
14796 (vect_analyze_loop_2): Ditto.
14797 (vect_analyze_loop): Ditto.
14798 (report_vect_op): Ditto.
14799 (vect_is_slp_reduction): Ditto.
14800 (vect_is_simple_reduction_1): Ditto.
14801 (vect_get_known_peeling_cost): Ditto.
14802 (vect_estimate_min_profitable_iters): Ditto.
14803 (vect_model_reduction_cost): Ditto.
14804 (vect_model_induction_cost): Ditto.
14805 (get_initial_def_for_induction): Ditto.
14806 (vect_create_epilog_for_reduction): Ditto.
14807 (vectorizable_reduction): Ditto.
14808 (vectorizable_induction): Ditto.
14809 (vectorizable_live_operation): Ditto.
14810 (vect_loop_kill_debug_uses): Ditto.
14811 (vect_transform_loop): Ditto.
14812 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14813 (vect_stmt_relevant_p): Ditto.
14814 (process_use): Ditto.
14815 (vect_mark_stmts_to_be_vectorized): Ditto.
14816 (vect_model_simple_cost): Ditto.
14817 (vect_model_promotion_demotion_cost): Ditto.
14818 (vect_model_store_cost): Ditto.
14819 (vect_get_store_cost): Ditto.
14820 (vect_model_load_cost): Ditto.
14821 (vect_get_load_cost): Ditto.
14822 (vect_init_vector_1): Ditto.
14823 (vect_get_vec_def_for_operand): Ditto.
14824 (vect_finish_stmt_generation): Ditto.
14825 (vectorizable_call): Ditto.
14826 (vectorizable_conversion): Ditto.
14827 (vectorizable_assignment): Ditto.
14828 (vectorizable_shift): Ditto.
14829 (vectorizable_operation): Ditto.
14830 (vectorizable_store): Ditto.
14831 (vectorizable_load): Ditto.
14832 (vectorizable_condition): Ditto.
14833 (vect_analyze_stmt): Ditto.
14834 (vect_transform_stmt): Ditto.
14835 (vect_is_simple_use): Ditto.
14836 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14837 (vect_can_advance_ivs_p): Ditto.
14838 (vect_update_ivs_after_vectorizer): Ditto.
14839 (vect_do_peeling_for_loop_bound): Ditto.
14840 (vect_gen_niters_for_prolog_loop): Ditto.
14841 (vect_update_inits_of_drs): Ditto.
14842 (vect_create_cond_for_alias_checks): Ditto.
14843 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14844 (vect_build_slp_tree_1): Ditto.
14845 (vect_supported_load_permutation_p): Ditto.
14846 (vect_analyze_slp_instance): Ditto.
14847 (vect_analyze_slp): Ditto.
14848 (vect_make_slp_decision): Ditto.
14849 (vect_detect_hybrid_slp): Ditto.
14850 (vect_bb_vectorization_profitable_p): Ditto.
14851 (vect_slp_analyze_bb_1): Ditto.
14852 (vect_update_slp_costs_according_to_vf): Ditto.
14853 (vect_get_mask_element): Ditto.
14854 (vect_transform_slp_perm_load): Ditto.
14855 (vect_schedule_slp_instance): Ditto.
14856 (vect_schedule_slp): Ditto.
14857 (vect_slp_transform_bb): Ditto.
14858 * profile.c (read_profile_edge_counts): Ditto.
14859 (compute_branch_probabilities): Ditto.
14860 * coverage.c (get_coverage_counts): Ditto.
14861
14862 2013-09-16 Diego Novillo <dnovillo@google.com>
14863
14864 * tree-core.h: Add missing comment lines from refactoring of tree.h.
14865
14866 2013-09-16 Jan Hubicka <jh@suse.cz>
14867
14868 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14869 abstract functions; for static functions check the presence of body.
14870
14871 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14872
14873 * config/aarch64/aarch64-simd-builtins.def (fma): New.
14874 * config/aarch64/aarch64-simd.md
14875 (aarch64_mla_elt<mode>): New.
14876 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14877 (aarch64_mls_elt<mode>): Likewise.
14878 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14879 (aarch64_fma4_elt<mode>): Likewise.
14880 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14881 (aarch64_fma4_elt_to_128v2df): Likewise.
14882 (aarch64_fma4_elt_to_64df): Likewise.
14883 (fnma<mode>4): Likewise.
14884 (aarch64_fnma4_elt<mode>): Likewise.
14885 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14886 (aarch64_fnma4_elt_to_128v2df): Likewise.
14887 (aarch64_fnma4_elt_to_64df): Likewise.
14888 * config/aarch64/iterators.md (VDQSF): New.
14889 * config/aarch64/arm_neon.h
14890 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14891 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14892
14893 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14894
14895 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14896 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14897 (aarch64_mul3_elt_to_128df): Likewise.
14898 (aarch64_mul3_elt_to_64v2df): Likewise.
14899 * config/aarch64/iterators.md (VEL): Also handle DFmode.
14900 (VMUL): New.
14901 (VMUL_CHANGE_NLANES) Likewise.
14902 (h_con): Likewise.
14903 (f): Likewise.
14904 * config/aarch64/arm_neon.h
14905 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14906
14907 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14908
14909 * config/aarch64/arm_neon.h
14910 (vcvtx_high_f32_f64): Fix parameters.
14911
14912 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14913 Uros Bizjak <ubizjak@gmail.com>
14914
14915 * config/alpha.c: Include tree-ssanames.h.
14916
14917 2013-09-16 Richard Biener <rguenther@suse.de>
14918
14919 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14920 (dot_rdg_1): Handle control_dd.
14921 (create_edge_for_control_dependence): New function.
14922 (create_rdg_edges): Add control dependences if asked for.
14923 (build_rdg): Likewise.
14924 (generate_loops_for_partition): If there are not necessary
14925 control stmts remove all their dependencies.
14926 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14927 (distribute_loop): Pass on control dependences.
14928 (tree_loop_distribution): Compute control dependences and remove
14929 restriction on number of loop nodes.
14930
14931 2013-09-16 Jakub Jelinek <jakub@redhat.com>
14932
14933 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14934 for internal calls.
14935
14936 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
14937
14938 * cse.c (try_const_anchors): Punt on CC modes.
14939
14940 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14941
14942 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14943
14944 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
14945
14946 PR target/58382
14947 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14948 calls to word_mode.
14949
14950 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14951
14952 PR target/48094
14953 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14954 seen.
14955 (darwin_objc1_section): Likewise.
14956 (darwin_file_end): Emit Image Info section when required.
14957
14958 2013-09-14 Jan Hubicka <jh@suse.cz>
14959
14960 * tree-into-ssa.c (gate_into_ssa): New.
14961 (pass_data_build_ssa): Use it.
14962 * cgraph.h (expand_thunk): Update prototype.
14963 * cgraphunit.c (analyze_function): Expand thunks early.
14964 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14965 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14966 set lowered flag; do not add new function.
14967 (assemble_thunks_and_aliases): Update.
14968 * tree-ssa.c (gate_init_datastructures): New gate.
14969 (pass_data_init_datastructures): Use it.
14970
14971 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14972
14973 PR target/58269
14974 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14975 xmm register set described in the psABI.
14976
14977 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
14978
14979 * dwarf2out.c (should_emit_struct_debug): Add check
14980 for type_decl variable is not NULL.
14981
14982 2013-09-13 Jacek Caban <jacek@codeweavers.com>
14983
14984 * config.gcc: Use new winnt-c.c target hooks
14985 * config/t-winnt: New file
14986 * config/winnt-c.c: New file
14987 * doc/tm.texi.in: Document new hook
14988 * doc/tm.texi: Regenerated
14989
14990 2013-09-13 Jan Hubicka <jh@suse.cz>
14991
14992 PR middle-end/58094
14993 * ipa-inline.c (check_callers): New function.
14994 (check_caller_edge): Remove.
14995 (want_inline_function_to_all_callers_p): Also permit alises that are
14996 called dirrectly.
14997 (inline_to_all_callers): Terminate the walk when devirtualization
14998 introduce new calls.
14999
15000 2013-09-13 Jan Hubicka <jh@suse.cz>
15001
15002 * ipa-inline-analysis.c (struct growth_data): Add node.
15003 (do_estimate_growth_1): Fix detection of recursion.
15004
15005 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15006
15007 PR tree-optimization/58392
15008 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15009 to avoid shadowing of outer loop variable. If
15010 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15011 replace_by_duplicate_decl simduid of loops that have it set and
15012 set dest_cfun->has_simduid_loops and/or
15013 dest_cfun->has_force_vect_loops.
15014 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15015 instead of maybe_lookup_decl.
15016 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15017 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15018 call. Copy over force_vect and copy and remap simduid. Set
15019 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15020 (copy_cfg_body): Remove blocks_to_copy argument. Use
15021 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15022 caller. Don't set cfun->has_simduid_loops and/or
15023 cfun->has_force_vect_loops here.
15024 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15025 caller.
15026 (expand_call_inline, tree_function_versioning): Adjust copy_body
15027 callers.
15028
15029 2013-09-13 Martin Jambor <mjambor@suse.cz>
15030
15031 PR bootstrap/58388
15032 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15033 the assert if the edge was a speculative one.
15034
15035 2013-09-13 Richard Biener <rguenther@suse.de>
15036
15037 * tree-data-ref.h (known_dependences_p): Move here ...
15038 * tree-loop-distribution.c (known_dependences_p): ... from here.
15039 (dump_rdg_component, debug_rdg_component): Remove.
15040 (dump_rdg): Adjust.
15041 (generate_loops_for_partition): Use gimple_uid instead of
15042 relying on matching stmt visit order.
15043 (rdg_build_partitions): Take starting stmt vector.
15044 (ldist_gen): Merge into ...
15045 (distribute_loop): ... this function. Do not compute starting
15046 vertices vector.
15047 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15048
15049 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15050
15051 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15052 Set type attribute correctly. Set predicable_short_it attribute.
15053 (cmpsi_shiftsi): Remove %? from output template.
15054
15055 2013-09-13 Richard Biener <rguenther@suse.de>
15056
15057 * tree-loop-distribution.c (struct rdg_component,
15058 rdg_defs_used_in_other_loops_p, free_rdg_components,
15059 rdg_build_components): Remove.
15060 (stmts_from_loop): Do not record virtual PHIs.
15061 (generate_loops_for_partition): Skip virtual PHIs.
15062 (build_rdg_partition_for_component): Rename to ...
15063 (build_rdg_partition_for_vertex): ... this and adjust.
15064 (rdg_build_partitions): Take a vector of starting vertices
15065 instead of components. Remove unnecessary leftover handling.
15066 (ldist_gen): Do not build components or record other stores.
15067 (distribute_loop): Do not distribute loops containing stmts
15068 with side-effects.
15069
15070 2013-09-13 Christian Bruel <christian.bruel@st.com>
15071
15072 PR target/58314
15073 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15074
15075 2013-09-13 Kai Tietz <ktietz@redhat.com>
15076
15077 * config.gcc: Separate cases for mingw and cygwin targets,
15078 and add 64-bit cygwin target case.
15079
15080 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15081 dll-export inline-functions.
15082 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15083
15084 2013-09-13 Jeff Law <law@redhat.com>
15085
15086 PR middle-end/58387
15087 Revert:
15088 2013-09-06 Jeff Law <law@redhat.com>
15089
15090 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15091 edge implied equivalences into successor phis.
15092
15093 2013-09-12 DJ Delorie <dj@redhat.com>
15094
15095 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15096 separators.
15097
15098 2013-09-12 Brooks Moses <bmoses@google.com>
15099
15100 PR driver/42955
15101 * Makefile.in: Do not install driver binaries in $(target)/bin.
15102
15103 2013-09-12 DJ Delorie <dj@redhat.com>
15104
15105 * config/rl78/rl78.opt (mrelax): New.
15106 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15107 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15108
15109 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15110 between SP and FP.
15111 (rl78_expand_epilogue): Likewise.
15112
15113 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15114
15115 PR middle-end/58335
15116 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15117 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15118 pointer elimination with using remove_reg_equal_offset_note.
15119
15120 2013-09-12 DJ Delorie <dj@redhat.com>
15121
15122 * config/msp430/: New port.
15123 * config.gcc (msp430): Added.
15124 * doc/invoke.texi: Document MSP430 options.
15125 * doc/install.texi: Document msp430-elf
15126 * doc/md.texi: Document msp430-elf
15127 * doc/contrib.texi: Document msp430-elf
15128
15129 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15130 PSImode.
15131
15132 2013-09-12 Martin Jambor <mjambor@suse.cz>
15133
15134 PR ipa/58389
15135 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15136 reference descriptor is NULL.
15137 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15138 edge to NULL.
15139
15140 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15141
15142 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15143 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15144 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15145 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15146 make_temp_ssa_name): move to tree-ssanames.h
15147 * tree-ssa-alias.h: Move prototype.
15148 * tree-ssa.h: Include tree-ssanames.h.
15149 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15150 * tree-ssanames.h: New. Move items from tree-flow*.h
15151 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15152
15153 2013-09-12 Richard Biener <rguenther@suse.de>
15154
15155 PR tree-optimization/58404
15156 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15157 propagate non-invariant addresses into dereferences wrapped
15158 in component references.
15159
15160 2013-09-12 Richard Biener <rguenther@suse.de>
15161
15162 PR tree-optimization/58402
15163 * passes.def: Move pass_late_warn_uninitialized later.
15164
15165 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15166
15167 * tree-ssa.h: New. Move content from tree-flow.h and
15168 tree-flow-inline.h.
15169 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15170 Move prototypes belonging to tree-ssa.c.
15171 * tree-flow-inline.h (redirect_edge_var_map_def,
15172 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15173 tree-ssa.h.
15174 * gimple.h: Adjust prototypes.
15175 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15176 to...
15177 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15178 * tree.h: Move prototype to tree-ssa.h.
15179 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15180 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15181 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15182 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15183 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15184 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15185 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15186 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15187 graphite-blocking.c, graphite-clast-to-gimple.c,
15188 graphite-dependences.c, graphite-interchange.c,
15189 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15190 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15191 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15192 ipa-reference.c, ipa-split.c, ipa-utils.c,
15193 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15194 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15195 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15196 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15197 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15198 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15199 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15200 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15201 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15202 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15203 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15204 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15205 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15206 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15207 value-prof.c, var-tracking.c,
15208 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15209
15210 2013-09-12 Richard Biener <rguenther@suse.de>
15211
15212 PR tree-optimization/58396
15213 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15214 (build_rdg): Take a loop-nest parameter, fix memleaks.
15215 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15216
15217 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15218
15219 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15220 for SLM.
15221
15222 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15223
15224 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15225 The FMA instruction names should have a 'v' prefix.
15226
15227 2013-09-12 Richard Biener <rguenther@suse.de>
15228
15229 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15230 (dot_rdg): Use popen instead of system in optional code.
15231 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15232 (already_processed_vertex_p): Adjust.
15233 (has_anti_or_output_dependence, predecessor_has_mem_write,
15234 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15235 rdg_flag_uses): Remove.
15236 (rdg_flag_vertex): Simplify.
15237 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15238 remove recursion.
15239 (build_rdg_partition_for_component): Process the first vertex
15240 of a component only.
15241 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15242
15243 2013-09-12 Alan Modra <amodra@gmail.com>
15244
15245 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15246
15247 2013-09-11 DJ Delorie <dj@redhat.com>
15248 Nick Clifton <nickc@redhat.com>
15249
15250 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15251 (rl78_stack_based_mem): New.
15252 * config/rl78/constraints.md (Iv08): New.
15253 (Iv16): New.
15254 (Iv24): New.
15255 (Is09): New.
15256 (Is17): New.
15257 (Is25): New.
15258 (ISsi): New.
15259 (IShi): New.
15260 (ISqi): New.
15261 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15262 (movhi): Likewise.
15263 (movsi): Change from expand to insn-and-split.
15264 (ashrsi3): Clobber AX.
15265 (lshrsi3): New.
15266 (ashlsi3): New.
15267 (cbranchsi4): New.
15268 * config/rl78/rl78.md (CC_REG): Fix.
15269 (addsi3): Allow memory and immediate operands.
15270 (addsi3_internal): Split into...
15271 (addsi3_internal_virt): ...new, and ...
15272 (addsi3_internal_real): ...new.
15273 (subsi): New.
15274 (subsi3_internal_virt): New.
15275 (subsi3_internal_real): New.
15276 (mulsi3): Add memory operand.
15277 (mulsi3_rl78): Likewise.
15278 (mulsi3_g13): Likewise.
15279 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15280 (cbranchqi4_real): Add more constraint options.
15281 (cbranchhi4_real): Expand pattern.
15282 (cbranchhi4_real_signed): New.
15283 (cbranchhi4_real_inverted): New.
15284 (cbranchsi4_real_lt): New.
15285 (cbranchsi4_real_ge): New.
15286 (cbranchsi4_real_signed): New.
15287 (cbranchsi4_real): New.
15288 (peephole2): New.
15289 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15290 constant shifts.
15291 (lshrsi3_virt): Likewise.
15292 (ashlsi3_virt): Likewise.
15293 (cbranchqi4_virt_signed): New.
15294 (cbranchhi4_virt_signed): New.
15295 (cbranchsi4_virt): New.
15296 * config/rl78/rl78.c: Whitespace fixes throughout.
15297 (move_elim_pass): New.
15298 (pass_data_rl78_move_elim): New.
15299 (pass_rl78_move_elim): New.
15300 (make_pass_rl78_move_elim): New.
15301 (rl78_devirt_info): Run devirt earlier.
15302 (rl78_move_elim_info): New.
15303 (rl78_asm_file_start): Register it.
15304 (rl78_split_movsi): New.
15305 (rl78_as_legitimate_address): Allow virtual base registers when
15306 appropriate.
15307 (rl78_addr_space_convert): Remove spurious debug stuff.
15308 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15309 (rl78_print_operand): More cases for not printing '#'.
15310 (rl78_expand_compare): Remove most of the logic.
15311 (content_memory): New.
15312 (clear_content_memory): New.
15313 (get_content_index): New.
15314 (get_content_name): New.
15315 (display_content_memory): New.
15316 (update_content): New.
15317 (record_content): New.
15318 (already_contains): New.
15319 (insn_ok_now): Re-recog insns with virtual registers.
15320 (add_postponed_content_update): New.
15321 (process_postponed_content_update): New.
15322 (gen_and_emit_move): New.
15323 (transcode_memory_rtx): Record new location content.
15324 Use gen_and_emit_move.
15325 (force_into_acc): New.
15326 (move_to_acc): Use gen_and_emit_move.
15327 (move_from_acc): Likewise.
15328 (move_acc_to_reg): Likewise.
15329 (move_to_x): Likewise.
15330 (move_to_hl): Likewise.
15331 (move_to_de): Likewise.
15332 (rl78_alloc_physical_registers_op1): Record location content.
15333 (has_constraint): New.
15334 (rl78_alloc_physical_registers_op2): Record location content.
15335 Optimize use of HL.
15336 (rl78_alloc_physical_registers_ro1): Likewise.
15337 (rl78_alloc_physical_registers_cmp): Likewise.
15338 (rl78_alloc_physical_registers_umul): Likewise.
15339 (rl78_alloc_address_registers_macax): New.
15340 (rl78_alloc_physical_registers): Initialize and set location
15341 content memory as needed.
15342 (rl78_reorg): Make sure split2 is called.
15343 (rl78_rtx_costs): New.
15344
15345 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15346
15347 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15348 for (not (neg ...)) and (neg (not ...)) cases.
15349
15350 2013-09-11 Richard Biener <rguenther@suse.de>
15351
15352 PR middle-end/58377
15353 * passes.def: Split critical edges before late uninit warning passes.
15354 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15355
15356 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15357
15358 PR tree-optimization/58385
15359 * fold-const.c (build_range_check): If both low and high are NULL,
15360 use omit_one_operand_loc to preserve exp side-effects.
15361
15362 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15363
15364 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15365
15366 2013-09-11 Richard Biener <rguenther@suse.de>
15367
15368 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15369 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15370 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15371 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15372 stmts_from_loop, known_dependences_p, build_empty_rdg,
15373 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15374 * tree-loop-distribution.c: ... here.
15375 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15376 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15377 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15378 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15379 * tree-loop-distribution.c: ... here.
15380 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15381 (struct partition_s): Add loops member.
15382 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15383 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15384 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15385
15386 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15387 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15388 Sergey Lega <sergey.s.lega@intel.com>
15389 Anna Tikhonova <anna.tikhonova@intel.com>
15390 Ilya Tocar <ilya.tocar@intel.com>
15391 Andrey Turetskiy <andrey.turetskiy@intel.com>
15392 Ilya Verbin <ilya.verbin@intel.com>
15393 Kirill Yukhin <kirill.yukhin@intel.com>
15394 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15395
15396 * config/i386/constraints.md (k): New.
15397 (Yk): Ditto.
15398 * config/i386/i386.c (const regclass_map): Add new mask registers.
15399 (dbx_register_map): Ditto.
15400 (dbx64_register_map): Ditto.
15401 (svr4_dbx_register_map): Ditto.
15402 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15403 disabled.
15404 (ix86_preferred_reload_class): Disable constants for mask registers.
15405 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15406 (ix86_hard_regno_mode_ok): Support new mask registers.
15407 (x86_order_regs_for_local_alloc): Ditto.
15408 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15409 (FIXED_REGISTERS): Add new mask registers.
15410 (CALL_USED_REGISTERS): Ditto.
15411 (REG_ALLOC_ORDER): Ditto.
15412 (VALID_MASK_REG_MODE): New.
15413 (FIRST_MASK_REG): Ditto.
15414 (LAST_MASK_REG): Ditto.
15415 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15416 (MAYBE_MASK_CLASS_P): New.
15417 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15418 (REG_CLASS_CONTENTS): Ditto.
15419 (MASK_REGNO_P): New.
15420 (ANY_MASK_REG_P): Ditto.
15421 (HI_REGISTER_NAMES): Add new mask registers.
15422 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15423 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15424 mask registers.
15425 (attribute "type"): Add mskmov, msklog.
15426 (attribute "length_immediate"): Support them.
15427 (attribute "memory"): Ditto.
15428 (attribute "prefix_0f"): Ditto.
15429 (*movhi_internal): Support new mask registers.
15430 (*movqi_internal): Ditto.
15431 (define_split): Split out clobber pattern is a logic
15432 insn on mask registers.
15433 (*k<logic><mode>): New.
15434 (*andhi_1): Extend to support mask regs.
15435 (*andqi_1): Extend to support mask regs.
15436 (kandn<mode>): New.
15437 (define_split): Split and-not to and and not if operands
15438 are not mask regs.
15439 (*<code><mode>_1): Separate HI mode to new pattern...
15440 (*<code>hi_1): This.
15441 (*<code>qi_1): Extend to support mask regs.
15442 (kxnor<mode>): New.
15443 (kortestzhi): Ditto.
15444 (kortestchi): Ditto.
15445 (kunpckhi): Ditto.
15446 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15447 (*one_cmplhi2_1): ...Here, now with mask registers support.
15448 (*one_cmplqi2_1): Support new mask registers.
15449 (HI/QImode arithmetics splitter): Don't split if mask registers
15450 are used.
15451 (HI/QImode not splitter): Ditto.
15452 * config/i386/predicated.md (mask_reg_operand): New.
15453 (general_reg_operand): Ditto.
15454
15455 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15456
15457 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15458 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15459
15460 2013-09-10 Jeff Law <law@redhat.com>
15461
15462 PR tree-optimization/58380
15463 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15464 of threading through a buried loop header.
15465
15466 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15467 return value for single successor case.
15468
15469 2013-09-10 Jan Hubicka <jh@suse.cz>
15470
15471 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15472
15473 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15474
15475 PR target/58361
15476 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15477 support conditional execution.
15478 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15479
15480 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15481
15482 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15483 constraint pass.
15484 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15485 Check destination too to check move insn.
15486 (undo_optional_reloads): Add check that the original peudo did not
15487 changed its allocation and the optional reload was inherited on last
15488 inheritance pass. Break loop after deciding to keep optional reload.
15489 (lra_undo_inheritance): Add check that inherited pseudo still in
15490 memory.
15491
15492 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15493
15494 * config/aarch64/aarch64.md (generic_sched): New.
15495 * config/aarch64/aarch64-generic.md (load): Make conditional
15496 on generic_sched attribute.
15497 (nonload): Likewise.
15498
15499 2013-09-10 Jan Hubicka <jh@suse.cz>
15500
15501 * lto-cgraph.c: Include ipa-utils.h.
15502 (compute_ltrans_boundary): Also add possible targets into the boundary.
15503
15504 2013-09-10 Jan Hubicka <jh@suse.cz>
15505
15506 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15507 VAR_DECL of vtable rather than full expression.
15508
15509 2013-09-10 Jan Hubicka <jh@suse.cz>
15510 Paolo Carlini <paolo.carlini@oracle.com>
15511
15512 * cgraphunit.c (analyze_functions): Save input_location, set it
15513 to UNKNOWN_LOCATION and restore it at the end.
15514
15515 2013-09-10 Martin Jambor <mjambor@suse.cz>
15516
15517 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15518 represented by a thunk.
15519
15520 2013-09-10 Jeff Law <law@redhat.com>
15521
15522 PR tree-optimization/58343
15523 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15524 jump threading requests through loop headers buried in the middle
15525 of a jump threading path.
15526
15527 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15528 in return value/type.
15529
15530 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15531
15532 PR rtl-optimization/58365
15533 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15534 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15535 it differs.
15536
15537 2013-09-10 Richard Biener <rguenther@suse.de>
15538
15539 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15540 * tree-data-ref.c (create_rdg_vertices): Collect all data
15541 references, signal failure to the caller, use data-ref API.
15542 (build_rdg): Compute data references only once. Maintain lifetime
15543 of data references and data dependences from within RDG.
15544 (free_rdg): Free dependence relations.
15545 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15546 inventing extra dependences.
15547 (distribute_loop): Update for RDG API changes.
15548
15549 2013-09-10 Kai Tietz <ktietz@redhat.com>
15550
15551 * doc/invoke.texi (fms-extensions): Document changed
15552 behavior for ms-abi targets.
15553 * config/i386/i386.c (ix86_option_override_internal):
15554 Set default value of option -fms-extension for ms-abi targets.
15555
15556 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15557
15558 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15559
15560 2013-09-10 Alan Modra <amodra@gmail.com>
15561
15562 PR target/58330
15563 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15564
15565 2013-09-10 Alan Modra <amodra@gmail.com>
15566
15567 * config/rs6000/predicates.md (add_cint_operand): New.
15568 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15569 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15570 using add_cint_operand.
15571 (largetoc_high_plus_aix): Likewise.
15572
15573 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15574
15575 PR tree-optimization/58364
15576 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15577 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15578 the current range can't be an unconditional true or false.
15579
15580 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15581
15582 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15583
15584 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15585
15586 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15587
15588 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15589
15590 PR c++/43452
15591 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15592
15593 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15594
15595 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15596 NO_REGS for immediate that can't be moved directly into FP_REGS.
15597
15598 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15599
15600 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15601 comparison with negated operand.
15602 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15603 RTL form.
15604
15605 2013-09-09 Richard Biener <rguenther@suse.de>
15606
15607 PR middle-end/58326
15608 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15609 of a subloop record all its block as affecting loop-closed SSA form.
15610
15611 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15612
15613 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15614 of an rtx/bitpos pair.
15615 (store_fixed_bit_field): Update accordingly.
15616
15617 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15618
15619 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15620 GEN_INT.
15621 * builtins.c (expand_errno_check): Likewise.
15622 * dwarf2cfi.c (init_return_column_size): Likewise.
15623 * except.c (sjlj_mark_call_sites): Likewise.
15624 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15625 * lra-constraints.c (emit_inc): Likewise.
15626 * ree.c (combine_set_extension): Likewise.
15627 * regmove.c (fixup_match_2): Likewise.
15628 * reload1.c (inc_for_reload): Likewise.
15629
15630 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15631
15632 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15633 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15634 Use gen_int_mode with the mode of the associated simplify_* call.
15635 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15636 * expmed.c (expand_shift_1): Likewise.
15637 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15638 * loop-iv.c (iv_number_of_iterations): Likewise.
15639 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15640 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15641
15642 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15643
15644 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15645 of the associated expand_* call.
15646 (asan_emit_stack_protection): Likewise.
15647 * builtins.c (round_trampoline_addr): Likewise.
15648 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15649 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15650 (emit_store_flag): Likewise.
15651 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15652 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15653 Likewise.
15654 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15655 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15656 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15657 * modulo-sched.c (generate_prolog_epilog): Likewise.
15658 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15659 (expand_ctz, expand_ffs, expand_unop): Likewise.
15660
15661 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15662
15663 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15664 of the associated gen_rtx_* call.
15665 * caller-save.c (init_caller_save): Likewise.
15666 * combine.c (find_split_point, make_extraction): Likewise.
15667 (make_compound_operation): Likewise.
15668 * dwarf2out.c (mem_loc_descriptor): Likewise.
15669 * explow.c (plus_constant, probe_stack_range): Likewise.
15670 * expmed.c (expand_mult_const): Likewise.
15671 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15672 * reload1.c (init_reload): Likewise.
15673 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15674 * var-tracking.c (adjust_mems): Likewise.
15675 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15676 rather than gen_rtx_fmt_ee.
15677
15678 2013-09-09 Jan Hubicka <jh@suse.cz>
15679
15680 PR middle-end/58294
15681 * value-prof.c (gimple_ic): Copy also abnormal edges.
15682
15683 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15684
15685 * asan.c (asan_shadow_cst): Use gen_int_mode.
15686
15687 2013-09-08 Jan Hubicka <jh@suse.cz>
15688
15689 * ipa-profile.c: Add toplevel comment.
15690 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15691 (contains_hot_call_p): New function.
15692 (ipa_propagate_frequency): Set frequencies based on counts when
15693 profile is read.
15694 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15695 profile; do not tamper with profile after inlining if it is read.
15696
15697 2013-09-08 Jan Hubicka <jh@suse.cz>
15698
15699 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15700 speculative edges.
15701
15702 2013-09-08 Jan Hubicka <jh@suse.cz>
15703
15704 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15705 summary generation.
15706
15707 2013-09-08 Jeff Law <law@redhat.com>
15708
15709 PR bootstrap/58340
15710 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15711 of 'found'.
15712
15713 2013-09-08 Andi Kleen <ak@linux.intel.com>
15714
15715 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15716
15717 2013-09-08 Jan Hubicka <jh@suse.cz>
15718
15719 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15720
15721 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15722
15723 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15724 for non-debug insns.
15725 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15726 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15727 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15728 accordingly.
15729
15730 2013-09-08 Jan Hubicka <jh@suse.cz>
15731
15732 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15733 targets and devirtualize to BUILT_IN_UNREACHABLE.
15734 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15735 * ipa.c (walk_polymorphic_call_targets): New function.
15736 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15737 functions; use the new timevar.
15738 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15739 was removed from the program.
15740 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15741 not consider it in the walk when its vtable is dead.
15742 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15743 record_binfo.
15744 (devirt_variable_node_removal_hook): New function.
15745 (possible_polymorphic_call_targets): Also register
15746 devirt_variable_node_removal_hook.
15747 (ipa_devirt): Do not do non-speculative devirtualization.
15748 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15749
15750 2013-09-08 Jan Hubicka <jh@suse.cz>
15751
15752 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15753 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15754 varpool_remove_variable_insertion_hook): Declare.
15755 * varpool.c (varpool_node_hook_list): New structure.
15756 (first_varpool_node_removal_hook,
15757 first_varpool_variable_insertion_hook): New variables.
15758 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15759 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15760 varpool_remove_variable_insertion_hook,
15761 varpool_call_variable_insertion_hooks): New functions.
15762 (varpool_remove_node): Use it.
15763
15764 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
15765
15766 PR c++/54941
15767 * diagnostic.c (diagnostic_build_prefix): When s.file is
15768 "<built-in>" don't output line and column numbers.
15769
15770 2013-09-06 Jan Hubicka <jh@suse.cz>
15771
15772 * cgraphunit.c (expand_thunk): Get body before touching arguments.
15773 * lto-streamer-out.c: Stream thunks, too.
15774 * lto-streamer-in.c (input_function): Pop cfun here
15775 (lto_read_body): Instead of here.
15776
15777 2013-09-06 Caroline Tice <cmtice@google.com>
15778
15779 * doc/install.texi: Add documentation for the --enable-vtable-verify
15780 and the --disable-libvtv configure options.
15781
15782 2013-09-06 Jeff Law <law@redhat.com>
15783
15784 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15785 edge implied equivalences into successor phis.
15786
15787 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
15788
15789 * resource.c (mark_referenced_resources): Handle COND_EXEC.
15790
15791 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
15792
15793 * resource.c (mark_target_live_regs): Compute resources taking
15794 into account if a call is predicated or not.
15795
15796 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15797
15798 * toplev.c (output_stack_usage): Be prepared for suffixes created by
15799 the compiler in the function names.
15800
15801 2013-09-06 Jan Hubicka <jh@suse.cz>
15802
15803 PR middle-end/58094
15804 * ipa-inline.c (has_caller_p): New function.
15805 (want_inline_function_to_all_callers_p): Use it.
15806 (sum_callers, inline_to_all_callers): Break out from ...
15807 (ipa_inline): ... here.
15808
15809 2013-09-06 Jan Hubicka <jh@suse.cz>
15810
15811 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15812 only when AVX is enabled.
15813
15814 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15815
15816 * config/aarch64/aarch64.md
15817 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15818 is fpsimd_<load/store>2.
15819 (load_pair<mode>): Likewise.
15820 (store_pair<mode>): Likewise.
15821
15822 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15823
15824 * config/arm/types.md (type): Add "mrs" type.
15825 * config/aarch64/aarch64.md
15826 (aarch64_load_tp_hard): Make type "mrs".
15827 * config/arm/arm.md
15828 (load_tp_hard): Make type "mrs".
15829 * config/arm/cortex-a15.md: Update with new attributes.
15830 * config/arm/cortex-a5.md: Update with new attributes.
15831 * config/arm/cortex-a53.md: Update with new attributes.
15832 * config/arm/cortex-a7.md: Update with new attributes.
15833 * config/arm/cortex-a8.md: Update with new attributes.
15834 * config/arm/cortex-a9.md: Update with new attributes.
15835 * config/arm/cortex-m4.md: Update with new attributes.
15836 * config/arm/cortex-r4.md: Update with new attributes.
15837 * config/arm/fa526.md: Update with new attributes.
15838 * config/arm/fa606te.md: Update with new attributes.
15839 * config/arm/fa626te.md: Update with new attributes.
15840 * config/arm/fa726te.md: Update with new attributes.
15841
15842 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15843
15844 * config/aarch64/aarch64.md
15845 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15846 (*movtf_aarch64): Likewise.
15847 * config/arm/arm.md
15848 (thumb1_movdi_insn): Use "multiple" for type where more than one
15849 instruction is used for a move.
15850 (*arm32_movhf): Likewise.
15851 (*thumb_movdf_insn): Likewise.
15852
15853 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15854
15855 * config/arm/types.md (type): Rename fcpys to fmov.
15856 * config/arm/vfp.md
15857 (*arm_movsi_vfp): Rename type fcpys as fmov.
15858 (*thumb2_movsi_vfp): Likewise
15859 (*movhf_vfp_neon): Likewise
15860 (*movhf_vfp): Likewise
15861 (*movsf_vfp): Likewise
15862 (*thumb2_movsf_vfp): Likewise
15863 (*movsfcc_vfp): Likewise
15864 (*thumb2_movsfcc_vfp): Likewise
15865 * config/aarch64/aarch64-simd.md
15866 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15867 * config/aarch64/aarch64.md
15868 (*movsi_aarch64): Replace type mov_reg with fmovs.
15869 (*movdi_aarch64): Likewise
15870 (*movsf_aarch64): Likewise
15871 (*movdf_aarch64): Likewise
15872 * config/arm/arm.c
15873 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15874 * config/arm/iwmmxt.md
15875 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15876 * config/arm/arm1020e.md: Update with new attributes.
15877 * config/arm/cortex-a15-neon.md: Update with new attributes.
15878 * config/arm/cortex-a5.md: Update with new attributes.
15879 * config/arm/cortex-a53.md: Update with new attributes.
15880 * config/arm/cortex-a7.md: Update with new attributes.
15881 * config/arm/cortex-a8-neon.md: Update with new attributes.
15882 * config/arm/cortex-a9.md: Update with new attributes.
15883 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15884 * config/arm/cortex-r4f.md: Update with new attributes.
15885 * config/arm/marvell-pj4.md: Update with new attributes.
15886 * config/arm/vfp11.md: Update with new attributes.
15887
15888 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15889
15890 * config/aarch64/aarch64.md
15891 (*madd<mode>): Fix type attribute.
15892 (*maddsi_uxtw): Likewise.
15893 (*msub<mode>): Likewise.
15894 (*msubsi_uxtw): Likewise.
15895 (<su_optab>maddsidi4): Likewise.
15896 (<su_optab>msubsidi4): Likewise.
15897
15898 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15899
15900 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15901 * config/arm/arm.md (core_cycles): Remove fdiv.
15902 * config/arm/vfp.md:
15903 (*sqrtsf2_vfp): Update for attribute changes.
15904 (*sqrtdf2_vfp): Likewise.
15905 * config/aarch64/aarch64.md:
15906 (sqrt<mode>2): Update for attribute changes.
15907 * config/arm/arm1020e.md: Update with new attributes.
15908 * config/arm/cortex-a15-neon.md: Update with new attributes.
15909 * config/arm/cortex-a5.md: Update with new attributes.
15910 * config/arm/cortex-a53.md: Update with new attributes.
15911 * config/arm/cortex-a7.md: Update with new attributes.
15912 * config/arm/cortex-a8-neon.md: Update with new attributes.
15913 * config/arm/cortex-a9.md: Update with new attributes.
15914 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15915 * config/arm/cortex-r4f.md: Update with new attributes.
15916 * config/arm/marvell-pj4.md: Update with new attributes.
15917 * config/arm/vfp11.md: Update with new attributes.
15918
15919 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15920
15921 * config/arm/types.md
15922 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15923 * config/aarch64/aarch64.md
15924 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15925 new attributes.
15926 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15927 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15928 (float<GPI:mode><GPF:mode>2): Likewise.
15929 * config/arm/vfp.md
15930 (*truncsisf2_vfp): Update with new attributes.
15931 (*truncsidf2_vfp): Likewise.
15932 (fixuns_truncsfsi2): Likewise.
15933 (fixuns_truncdfsi2): Likewise.
15934 (*floatsisf2_vfp): Likewise.
15935 (*floatsidf2_vfp): Likewise.
15936 (floatunssisf2): Likewise.
15937 (floatunssidf2): Likewise.
15938 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15939 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15940 * config/arm/arm1020e.md: Update with new attributes.
15941 * config/arm/cortex-a15-neon.md: Update with new attributes.
15942 * config/arm/cortex-a5.md: Update with new attributes.
15943 * config/arm/cortex-a53.md: Update with new attributes.
15944 * config/arm/cortex-a7.md: Update with new attributes.
15945 * config/arm/cortex-a8-neon.md: Update with new attributes.
15946 * config/arm/cortex-a9.md: Update with new attributes.
15947 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15948 * config/arm/cortex-r4f.md: Update with new attributes.
15949 * config/arm/marvell-pj4.md: Update with new attributes.
15950 * config/arm/vfp11.md: Update with new attributes.
15951
15952 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15953
15954 * config/aarch64/arm_neon.h
15955 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15956 (vqtbx<1,2,3,4><q>_s8): Likewise.
15957
15958 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15959
15960 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15961 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15962 (add<mode>3): Add type attribute.
15963 (add<mode>3): Likewise.
15964 (usadd<mode>3): Likewise.
15965 (ssadd<mode>3): Likewise.
15966 (sub<mode>3): Likewise.
15967 (sub<mode>3): Likewise.
15968 (ussub<mode>3): Likewise.
15969 (sssub<mode>3): Likewise.
15970 (ssmulsa3): Likewise.
15971 (usmulusa3): Likewise.
15972 (arm_usatsihi): Likewise.
15973 * config/arm/vfp.md
15974 (*movdi_vfp): Add types for all instructions.
15975 (*movdi_vfp_cortexa8): Likewise.
15976 (*movhf_vfp_neon): Likewise.
15977 (*movhf_vfp): Likewise.
15978 (*movdf_vfp): Likewise.
15979 (*thumb2_movdf_vfp): Likewise.
15980 (*thumb2_movdfcc_vfp): Likewise.
15981 * config/arm/arm.md: Add type attribute to all insn patterns.
15982 (*thumb1_adddi3): Add type attribute.
15983 (*arm_adddi3): Likewise.
15984 (*adddi_sesidi_di): Likewise.
15985 (*adddi_zesidi_di): Likewise.
15986 (*thumb1_addsi3): Likewise.
15987 (addsi3_compare0): Likewise.
15988 (*addsi3_compare0_scratch): Likewise.
15989 (*compare_negsi_si): Likewise.
15990 (cmpsi2_addneg): Likewise.
15991 (*addsi3_carryin_<optab>): Likewise.
15992 (*addsi3_carryin_alt2_<optab>): Likewise.
15993 (*addsi3_carryin_clobercc_<optab>): Likewise.
15994 (*subsi3_carryin): Likewise.
15995 (*subsi3_carryin_const): Likewise.
15996 (*subsi3_carryin_compare): Likewise.
15997 (*subsi3_carryin_compare_const): Likewise.
15998 (*arm_subdi3): Likewise.
15999 (*thumb_subdi3): Likewise.
16000 (*subdi_di_zesidi): Likewise.
16001 (*subdi_di_sesidi): Likewise.
16002 (*subdi_zesidi_di): Likewise.
16003 (*subdi_sesidi_di): Likewise.
16004 (*subdi_zesidi_ze): Likewise.
16005 (thumb1_subsi3_insn): Likewise.
16006 (*arm_subsi3_insn): Likewise.
16007 (*anddi3_insn): Likewise.
16008 (*anddi_zesidi_di): Likewise.
16009 (*anddi_sesdi_di): Likewise.
16010 (*ne_zeroextracts): Likewise.
16011 (*ne_zeroextracts): Likewise.
16012 (*ite_ne_zeroextr): Likewise.
16013 (*ite_ne_zeroextr): Likewise.
16014 (*anddi_notdi_di): Likewise.
16015 (*anddi_notzesidi): Likewise.
16016 (*anddi_notsesidi): Likewise.
16017 (andsi_notsi_si): Likewise.
16018 (thumb1_bicsi3): Likewise.
16019 (*iordi3_insn): Likewise.
16020 (*iordi_zesidi_di): Likewise.
16021 (*iordi_sesidi_di): Likewise.
16022 (*thumb1_iorsi3_insn): Likewise.
16023 (*xordi3_insn): Likewise.
16024 (*xordi_zesidi_di): Likewise.
16025 (*xordi_sesidi_di): Likewise.
16026 (*arm_xorsi3): Likewise.
16027 (*andsi_iorsi3_no): Likewise.
16028 (*smax_0): Likewise.
16029 (*smax_m1): Likewise.
16030 (*arm_smax_insn): Likewise.
16031 (*smin_0): Likewise.
16032 (*arm_smin_insn): Likewise.
16033 (*arm_umaxsi3): Likewise.
16034 (*arm_uminsi3): Likewise.
16035 (*minmax_arithsi): Likewise.
16036 (*minmax_arithsi_): Likewise.
16037 (*satsi_<SAT:code>): Likewise.
16038 (arm_ashldi3_1bit): Likewise.
16039 (arm_ashrdi3_1bit): Likewise.
16040 (arm_lshrdi3_1bit): Likewise.
16041 (*arm_negdi2): Likewise.
16042 (*thumb1_negdi2): Likewise.
16043 (*arm_negsi2): Likewise.
16044 (*thumb1_negsi2): Likewise.
16045 (*negdi_extendsid): Likewise.
16046 (*negdi_zero_extend): Likewise.
16047 (*arm_abssi2): Likewise.
16048 (*thumb1_abssi2): Likewise.
16049 (*arm_neg_abssi2): Likewise.
16050 (*thumb1_neg_abss): Likewise.
16051 (one_cmpldi2): Likewise.
16052 (extend<mode>di2): Likewise.
16053 (*compareqi_eq0): Likewise.
16054 (*arm_extendhisi2addsi): Likewise.
16055 (*arm_movdi): Likewise.
16056 (*thumb1_movdi_insn): Likewise.
16057 (*arm_movt): Likewise.
16058 (*thumb1_movsi_insn): Likewise.
16059 (pic_add_dot_plus_four): Likewise.
16060 (pic_add_dot_plus_eight): Likewise.
16061 (tls_load_dot_plus_eight): Likewise.
16062 (*thumb1_movhi_insn): Likewise.
16063 (*thumb1_movsf_insn): Likewise.
16064 (*movdf_soft_insn): Likewise.
16065 (*thumb_movdf_insn): Likewise.
16066 (cbranchsi4_insn): Likewise.
16067 (cbranchsi4_scratch): Likewise.
16068 (*negated_cbranchsi4): Likewise.
16069 (*tbit_cbranch): Likewise.
16070 (*tlobits_cbranch): Likewise.
16071 (*tstsi3_cbranch): Likewise.
16072 (*cbranchne_decr1): Likewise.
16073 (*addsi3_cbranch): Likewise.
16074 (*addsi3_cbranch_scratch): Likewise.
16075 (*arm_cmpdi_insn): Likewise.
16076 (*arm_cmpdi_unsig): Likewise.
16077 (*arm_cmpdi_zero): Likewise.
16078 (*thumb_cmpdi_zero): Likewise.
16079 (*deleted_compare): Likewise.
16080 (*mov_scc): Likewise.
16081 (*mov_negscc): Likewise.
16082 (*mov_notscc): Likewise.
16083 (*cstoresi_eq0_thumb1_insn): Likewise.
16084 (cstoresi_nltu_thumb1): Likewise.
16085 (cstoresi_ltu_thu): Likewise.
16086 (thumb1_addsi3_addgeu): Likewise.
16087 (*arm_jump): Likewise.
16088 (*thumb_jump): Likewise.
16089 (*check_arch2): Likewise.
16090 (arm_casesi_internal): Likewise.
16091 (thumb1_casesi_dispatch): Likewise.
16092 (*arm_indirect_jump): Likewise.
16093 (*thumb1_indirect_jump): Likewise.
16094 (nop): Likewise.
16095 (*and_scc): Likewise.
16096 (*ior_scc): Likewise.
16097 (*compare_scc): Likewise.
16098 (*cond_move): Likewise.
16099 (*cond_arith): Likewise.
16100 (*cond_sub): Likewise.
16101 (*cmp_ite0): Likewise.
16102 (*cmp_ite1): Likewise.
16103 (*cmp_and): Likewise.
16104 (*cmp_ior): Likewise.
16105 (*ior_scc_scc): Likewise.
16106 (*ior_scc_scc_cmp): Likewise.
16107 (*and_scc_scc): Likewise.
16108 (*and_scc_scc_cmp): Likewise.
16109 (*and_scc_scc_nod): Likewise.
16110 (*negscc): Likewise.
16111 (movcond_addsi): Likewise.
16112 (movcond): Likewise.
16113 (*ifcompare_plus_move): Likewise.
16114 (*if_plus_move): Likewise.
16115 (*ifcompare_move_plus): Likewise.
16116 (*if_move_plus): Likewise.
16117 (*ifcompare_arith_arith): Likewise.
16118 (*if_arith_arith): Likewise.
16119 (*ifcompare_arith_move): Likewise.
16120 (*if_arith_move): Likewise.
16121 (*ifcompare_move_arith): Likewise.
16122 (*if_move_arith): Likewise.
16123 (*ifcompare_move_not): Likewise.
16124 (*if_move_not): Likewise.
16125 (*ifcompare_not_move): Likewise.
16126 (*if_not_move): Likewise.
16127 (*ifcompare_shift_move): Likewise.
16128 (*if_shift_move): Likewise.
16129 (*ifcompare_move_shift): Likewise.
16130 (*if_move_shift): Likewise.
16131 (*ifcompare_shift_shift): Likewise.
16132 (*ifcompare_not_arith): Likewise.
16133 (*ifcompare_arith_not): Likewise.
16134 (*if_arith_not): Likewise.
16135 (*ifcompare_neg_move): Likewise.
16136 (*if_neg_move): Likewise.
16137 (*ifcompare_move_neg): Likewise.
16138 (*if_move_neg): Likewise.
16139 (prologue_thumb1_interwork): Likewise.
16140 (*cond_move_not): Likewise.
16141 (*sign_extract_onebit): Likewise.
16142 (*not_signextract_onebit): Likewise.
16143 (stack_tie): Likewise.
16144 (align_4): Likewise.
16145 (align_8): Likewise.
16146 (consttable_end): Likewise.
16147 (consttable_1): Likewise.
16148 (consttable_2): Likewise.
16149 (consttable_4): Likewise.
16150 (consttable_8): Likewise.
16151 (consttable_16): Likewise.
16152 (*thumb1_tablejump): Likewise.
16153 (prefetch): Likewise.
16154 (force_register_use): Likewise.
16155 (thumb_eh_return): Likewise.
16156 (load_tp_hard): Likewise.
16157 (load_tp_soft): Likewise.
16158 (tlscall): Likewise.
16159 (*arm_movtas_ze): Likewise.
16160 (*arm_rev): Likewise.
16161 (*arm_revsh): Likewise.
16162 (*arm_rev16): Likewise.
16163 * config/arm/thumb2.md
16164 (*thumb2_smaxsi3): Likewise.
16165 (*thumb2_sminsi3): Likewise.
16166 (*thumb32_umaxsi3): Likewise.
16167 (*thumb2_uminsi3): Likewise.
16168 (*thumb2_negdi2): Likewise.
16169 (*thumb2_abssi2): Likewise.
16170 (*thumb2_neg_abss): Likewise.
16171 (*thumb2_movsi_insn): Likewise.
16172 (tls_load_dot_plus_four): Likewise.
16173 (*thumb2_movhi_insn): Likewise.
16174 (*thumb2_mov_scc): Likewise.
16175 (*thumb2_mov_negs): Likewise.
16176 (*thumb2_mov_negs): Likewise.
16177 (*thumb2_mov_nots): Likewise.
16178 (*thumb2_mov_nots): Likewise.
16179 (*thumb2_movsicc_): Likewise.
16180 (*thumb2_movsfcc_soft_insn): Likewise.
16181 (*thumb2_indirect_jump): Likewise.
16182 (*thumb2_and_scc): Likewise.
16183 (*thumb2_ior_scc): Likewise.
16184 (*thumb2_ior_scc_strict_it): Likewise.
16185 (*thumb2_cond_move): Likewise.
16186 (*thumb2_cond_arith): Likewise.
16187 (*thumb2_cond_ari): Likewise.
16188 (*thumb2_cond_sub): Likewise.
16189 (*thumb2_negscc): Likewise.
16190 (*thumb2_movcond): Likewise.
16191 (thumb2_casesi_internal): Likewise.
16192 (thumb2_casesi_internal_pic): Likewise.
16193 (*thumb2_alusi3_short): Likewise.
16194 (*thumb2_mov<mode>_shortim): Likewise.
16195 (*thumb2_addsi_short): Likewise.
16196 (*thumb2_subsi_short): Likewise.
16197 (thumb2_addsi3_compare0): Likewise.
16198 (*thumb2_cbz): Likewise.
16199 (*thumb2_cbnz): Likewise.
16200 (*thumb2_one_cmplsi2_short): Likewise.
16201 (*thumb2_negsi2_short): Likewise.
16202 (*orsi_notsi_si): Likewise.
16203 * config/arm/arm1020e.md: Update with new attributes.
16204 * config/arm/arm1026ejs.md: Update with new attributes.
16205 * config/arm/arm1136jfs.md: Update with new attributes.
16206 * config/arm/arm926ejs.md: Update with new attributes.
16207 * config/arm/cortex-a15.md: Update with new attributes.
16208 * config/arm/cortex-a5.md: Update with new attributes.
16209 * config/arm/cortex-a53.md: Update with new attributes.
16210 * config/arm/cortex-a7.md: Update with new attributes.
16211 * config/arm/cortex-a8.md: Update with new attributes.
16212 * config/arm/cortex-a9.md: Update with new attributes.
16213 * config/arm/cortex-m4.md: Update with new attributes.
16214 * config/arm/cortex-r4.md: Update with new attributes.
16215 * config/arm/fa526.md: Update with new attributes.
16216 * config/arm/fa606te.md: Update with new attributes.
16217 * config/arm/fa626te.md: Update with new attributes.
16218 * config/arm/fa726te.md: Update with new attributes.
16219
16220 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16221
16222 * config/aarch64/aarch64-simd.md
16223 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16224 <vwx> iterator to ensure correct register choice.
16225 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16226 (aarch64_sqdmull_n<mode>): Likewise.
16227 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16228 * config/aarch64/arm_neon.h
16229 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16230 (vml<as><q>_n_<su>16): Likewise.
16231 (vml<as>l_high_lane<q>_<su>16): Likewise.
16232 (vml<as>l_high_n_<su>16): Likewise.
16233 (vml<as>l_lane<q>_<su>16): Likewise.
16234 (vml<as>l_n_<su>16): Likewise.
16235 (vmul<q>_lane<q>_<su>16): Likewise.
16236 (vmul<q>_n_<su>16): Likewise.
16237 (vmull_lane<q>_<su>16): Likewise.
16238 (vmull_n_<su>16): Likewise.
16239 (vmull_high_lane<q>_<su>16): Likewise.
16240 (vmull_high_n_<su>16): Likewise.
16241 (vqrdmulh<q>_n_s16): Likewise.
16242
16243 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16244
16245 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16246 have the correct lane parameter.
16247
16248 2013-09-06 Richard Biener <rguenther@suse.de>
16249
16250 * cfganal.c (control_dependences::~control_dependences):
16251 Properly free all of the vector.
16252
16253 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16254
16255 PR target/58269
16256 * config/i386/i386.c (ix86_conditional_register_usage):
16257 Proper initialize extended SSE registers.
16258
16259 2013-09-06 Jan Hubicka <jh@suse.cz>
16260
16261 PR tree-optimization/58311
16262 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16263
16264 2013-09-06 Jan Hubicka <jh@suse.cz>
16265
16266 * Makefile.in (tree-sra.o): Update dependencies.
16267 * tree-sra.c: Include ipa-utils.h
16268 (scan_function): Use recursive_call_p.
16269 (has_caller_p): New function.
16270 (cgraph_for_node_and_aliases): Count also callers of aliases.
16271
16272 2013-09-06 Jan Hubicka <jh@suse.cz>
16273
16274 PR middle-end/58094
16275 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16276 * tree-tailcall.c: Include ipa-utils.h.
16277 (find_tail_calls): Use it.
16278 * ipa-pure-const.c (check_call): Likewise.
16279 * ipa-utils.c (recursive_call_p): New function.
16280 * ipa-utils.h (recursive_call_p): Dclare.
16281 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16282 (symtab_semantically_equivalent_p): New function.
16283 * Makefile.in (tree-tailcall.o): Update dependencies.
16284
16285 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16286
16287 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16288 non-inlinable part.
16289
16290 2013-09-06 Richard Biener <rguenther@suse.de>
16291
16292 * lto-streamer.h (lto_global_var_decls): Remove.
16293 * Makefile.in (OBJS): Remove lto-symtab.o.
16294 (lto-symtab.o): Remove.
16295 (GTFILES): Remove lto-symtab.c
16296 * lto-symtab.c: Move to lto/
16297
16298 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16299
16300 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16301 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16302 (UNSPEC_FPINT_RINT): New constant definitions.
16303 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16304 definition with 2 attributes.
16305 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16306 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16307 definitions.
16308
16309 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16310
16311 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16312 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16313 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16314 attribute to "z196_alone".
16315 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16316 "zEC12_simple".
16317
16318 2013-09-06 Richard Biener <rguenther@suse.de>
16319
16320 * basic-block.h (class control_dependences): New.
16321 * tree-ssa-dce.c (control_dependence_map): Remove.
16322 (cd): New global.
16323 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16324 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16325 find_pdom, find_control_dependence, find_all_control_dependences):
16326 Move to cfganal.c.
16327 (mark_control_dependent_edges_necessary,
16328 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16329 tree_dce_done, perform_tree_ssa_dce): Adjust.
16330 * cfganal.c (set_control_dependence_map_bit,
16331 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16332 find_all_control_dependences): Move from tree-ssa-dce.c and
16333 implement as methods of control_dependences class.
16334 (control_dependences::control_dependences): New.
16335 (control_dependences::~control_dependences): Likewise.
16336 (control_dependences::get_edges_dependent_on): Likewise.
16337 (control_dependences::get_edge): Likewise.
16338
16339 2013-09-04 Jan Hubicka <jh@suse.cz>
16340
16341 * tree.c (types_same_for_odr): Drop overactive check.
16342 * ipa-devirt.c (hash_type_name): Likewise.
16343
16344 2013-09-04 Jan Hubicka <jh@suse.cz>
16345
16346 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16347 (analyze_functions): ... here.
16348
16349 2013-09-04 Jan Hubicka <jh@suse.cz>
16350
16351 PR middle-end/58201
16352 * cgraphunit.c (analyze_functions): Clear AUX fields
16353 after processing; initialize assembler name has.
16354
16355 2013-09-05 Jeff Law <law@redhat.com>
16356
16357 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16358 from thread_around_empty_block. Record threading path into PATH.
16359 Recurse if threading through the initial block is successful.
16360 (thread_across_edge): Corresponding changes to slightly simplify.
16361
16362 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16363
16364 * config/aarch64/aarch64.md
16365 (type): Remove frecpe, frecps, frecpx.
16366 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16367 fix to be a TARGET_SIMD instruction.
16368 (aarch64_frecps): Remove.
16369 * config/aarch64/aarch64-simd.md
16370 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16371 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16372
16373 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16374 Sofiane Naci <sofiane.naci@arm.com>
16375
16376 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16377 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16378 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16379 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16380 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16381 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16382 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16383 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16384 into "clz, "rbit". Rename "shift" to "shift_imm".
16385 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16386 changes. Update for attribute changes all occurrences of arlo_* and
16387 shift* types.
16388 * config/arm/arm-fixed.md: Update for attribute changes
16389 all occurrences of arlo_* types.
16390 * config/arm/thumb2.md: Update for attribute changes all occurrences
16391 of arlo_* types.
16392 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16393 (cortexa7_older_only): Likewise.
16394 (cortexa7_younger): Likewise.
16395 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16396 (1020alu_shift_op): Likewise.
16397 (1020alu_shift_reg_op): Likewise.
16398 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16399 (alu_shift_op): Likewise.
16400 (alu_shift_reg_op): Likewise.
16401 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16402 (11_alu_shift_op): Likewise.
16403 (11_alu_shift_reg_op): Likewise.
16404 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16405 (9_alu_shift_reg_op): Likewise.
16406 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16407 attribute changes.
16408 (cortex_a15_alu_shift): Likewise.
16409 (cortex_a15_alu_shift_reg): Likewise.
16410 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16411 attribute changes.
16412 (cortex_a5_alu_shift): Likewise.
16413 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16414 attribute changes.
16415 (cortex_a53_alu_shift): Likewise.
16416 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16417 attribute changes.
16418 (cortex_a7_alu_reg): Likewise.
16419 (cortex_a7_alu_shift): Likewise.
16420 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16421 attribute changes.
16422 (cortex_a8_alu_shift): Likewise.
16423 (cortex_a8_alu_shift_reg): Likewise.
16424 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16425 (cortex_a9_dp_shift): Likewise.
16426 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16427 attribute changes.
16428 * config/arm/cortex-r4.md
16429 (cortex_r4_alu): Update for attribute changes.
16430 (cortex_r4_mov): Likewise.
16431 (cortex_r4_alu_shift_reg): Likewise.
16432 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16433 (526_alu_shift_op): Likewise.
16434 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16435 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16436 (626te_alu_shift_op): Likewise.
16437 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16438 (726te_alu_shift_op): Likewise.
16439 (726te_alu_shift_reg_op): Likewise.
16440 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16441 (mp626_alu_shift_op): Likewise.
16442 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16443 (pj4_alu_conds): Likewise.
16444 (pj4_shift): Likewise.
16445 (pj4_shift_conds): Likewise.
16446 (pj4_alu_shift): Likewise.
16447 (pj4_alu_shift_conds): Likewise.
16448 * config/aarch64/aarch64.md: Update for attribute change
16449 all occurrences of arlo_* and shift* types.
16450
16451 2013-09-05 Mike Stump <mikestump@comcast.net>
16452
16453 * tree.h: Move documentation for tree_function_decl to tree-core.h
16454 with the declaration.
16455
16456 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16457
16458 PR target/58139
16459 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16460 looking for widest mode.
16461
16462 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16463
16464 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16465
16466 2013-09-05 Richard Biener <rguenther@suse.de>
16467
16468 PR tree-optimization/58137
16469 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16470 Do not create vectors of pointers.
16471 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16472 types for the components of the vector initializer.
16473 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16474 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16475
16476 2013-09-05 Martin Jambor <mjambor@suse.cz>
16477
16478 * ipa-prop.c (remove_described_reference): Accept missing references,
16479 return false if that hppens, otherwise return true.
16480 (cgraph_node_for_jfunc): New function.
16481 (try_decrement_rdesc_refcount): Likewise.
16482 (try_make_edge_direct_simple_call): Use them.
16483 (ipa_edge_removal_hook): Remove references from rdescs.
16484 (ipa_edge_duplication_hook): Clone rdescs and their references
16485 when the new edge has the same caller as the old one.
16486 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16487 reference before removing any edges.
16488
16489 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16490
16491 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16492 initial store.
16493 * thumb2.md (thumb2_storewb_parisi): New pattern.
16494
16495 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16496
16497 * config/aarch64/aarch64-option-extensions.def: Add
16498 AARCH64_OPT_EXTENSION of 'crc'.
16499 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16500 (AARCH64_ISA_CRC): Ditto.
16501 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16502 description of the CRC extension.
16503
16504 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16505
16506 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16507 * config/rs6000/linux.h: Ditto.
16508 * alpha/linux.h: Ditto.
16509 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16510 no_c99_libc_has_function.
16511 * config/c6x/uclinux-elf.h: Ditto.
16512 * config/lm32/uclinux-elf.h: Ditto.
16513 * config/m68k/uclinux.h: Ditto.
16514 * config/moxie/uclinux.h: Ditto.
16515 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16516 (crisv32-*-linux*, cris-*-linux*): Ditto.
16517 * config/bfin/bfin.c: Include "tm_p.h".
16518
16519 2013-09-05 Richard Biener <rguenther@suse.de>
16520
16521 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16522 check for a definition without a basic-block.
16523
16524 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16525 Sofiane Naci <sofiane.naci@arm.com>
16526
16527 * config/aarch64/aarch64.md
16528 (*movti_aarch64): Rename r_2_f and f_2_r.
16529 (*movsf_aarch64): Likewise.
16530 (*movdf_aarch64): Likewise.
16531 (*movtf_aarch64): Likewise.
16532 (aarch64_movdi_<mode>low): Likewise.
16533 (aarch64_movdi_<mode>high): Likewise.
16534 (aarch64_mov<mode>high_di): Likewise.
16535 (aarch64_mov<mode>low_di): Likewise.
16536 (aarch64_movtilow_tilow): Likewise.
16537 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16538 values to config/arm/types.md
16539 (attribute "conds"): Update for attribute change.
16540 (anddi3_insn): Likewise.
16541 (iordi3_insn): Likewise.
16542 (xordi3_insn): Likewise.
16543 (one_cmpldi2): Likewise.
16544 * config/arm/types.md (type): Add Neon types.
16545 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16546 use "type" attribute.
16547 (movmisalign<mode>_neon_store): Likewise.
16548 (movmisalign<mode>_neon_load): Likewise.
16549 (vec_set<mode>_internal): Likewise.
16550 (vec_setv2di_internal): Likewise.
16551 (vec_extract<mode>): Likewise.
16552 (vec_extractv2di): Likewise.
16553 (add<mode>3_neon): Likewise.
16554 (adddi3_neon): Likewise.
16555 (sub<mode>3_neon): Likewise.
16556 (subdi3_neon): Likewise.
16557 (mul<mode>3_neon): Likewise.
16558 (mul<mode>3add<mode>_neon): Likewise.
16559 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16560 (fma<VCVTF:mode>4)): Likewise.
16561 (fma<VCVTF:mode>4_intrinsic): Likewise.
16562 (fmsub<VCVTF:mode>4)): Likewise.
16563 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16564 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16565 (ior<mode>3): Likewise.
16566 (and<mode>3): Likewise.
16567 (anddi3_neon): Likewise.
16568 (orn<mode>3_neon): Likewise.
16569 (orndi3_neon): Likewise.
16570 (bic<mode>3_neon): Likewise.
16571 (bicdi3_neon): Likewise.
16572 (xor<mode>3): Likewise.
16573 (one_cmpl<mode>2): Likewise.
16574 (abs<mode>2): Likewise.
16575 (neg<mode>2): Likewise.
16576 (umin<mode>3_neon): Likewise.
16577 (umax<mode>3_neon): Likewise.
16578 (smin<mode>3_neon): Likewise.
16579 (smax<mode>3_neon): Likewise.
16580 (vashl<mode>3): Likewise.
16581 (vashr<mode>3_imm): Likewise.
16582 (vlshr<mode>3_imm): Likewise.
16583 (ashl<mode>3_signed): Likewise.
16584 (ashl<mode>3_unsigned): Likewise.
16585 (neon_load_count): Likewise.
16586 (ashldi3_neon_noclobber): Likewise.
16587 (signed_shift_di3_neon): Likewise.
16588 (unsigned_shift_di3_neon): Likewise.
16589 (ashrdi3_neon_imm_noclobber): Likewise.
16590 (lshrdi3_neon_imm_noclobber): Likewise.
16591 (widen_ssum<mode>3): Likewise.
16592 (widen_usum<mode>3): Likewise.
16593 (quad_halves_<code>v4si): Likewise.
16594 (quad_halves_<code>v4sf): Likewise.
16595 (quad_halves_<code>v8hi): Likewise.
16596 (quad_halves_<code>v16qi): Likewise.
16597 (reduc_splus_v2di): Likewise.
16598 (neon_vpadd_internal<mode>): Likewise.
16599 (neon_vpsmin<mode>): Likewise.
16600 (neon_vpsmax<mode>): Likewise.
16601 (neon_vpumin<mode>): Likewise.
16602 (neon_vpumax<mode>): Likewise.
16603 (ss_add<mode>_neon): Likewise.
16604 (us_add<mode>_neon): Likewise.
16605 (ss_sub<mode>_neon): Likewise.
16606 (us_sub<mode>_neon): Likewise.
16607 (neon_vadd<mode>_unspec): Likewise.
16608 (neon_vaddl<mode>): Likewise.
16609 (neon_vaddw<mode>): Likewise.
16610 (neon_vhadd<mode>): Likewise.
16611 (neon_vqadd<mode>): Likewise.
16612 (neon_vaddhn<mode>): Likewise.
16613 (neon_vmul<mode>): Likewise.
16614 (neon_vmla<mode>): Likewise.
16615 (neon_vmlal<mode>): Likewise.
16616 (neon_vmls<mode>): Likewise.
16617 (neon_vmlsl<mode>): Likewise.
16618 (neon_vqdmulh<mode>): Likewise.
16619 (neon_vqdmlal<mode>): Likewise.
16620 (neon_vqdmlsl<mode>): Likewise.
16621 (neon_vmull<mode>): Likewise.
16622 (neon_vqdmull<mode>): Likewise.
16623 (neon_vsub<mode>_unspec): Likewise.
16624 (neon_vsubl<mode>): Likewise.
16625 (neon_vsubw<mode>): Likewise.
16626 (neon_vqsub<mode>): Likewise.
16627 (neon_vhsub<mode>): Likewise.
16628 (neon_vsubhn<mode>): Likewise.
16629 (neon_vceq<mode>): Likewise.
16630 (neon_vcge<mode>): Likewise.
16631 (neon_vcgeu<mode>): Likewise.
16632 (neon_vcgt<mode>): Likewise.
16633 (neon_vcgtu<mode>): Likewise.
16634 (neon_vcle<mode>): Likewise.
16635 (neon_vclt<mode>): Likewise.
16636 (neon_vcage<mode>): Likewise.
16637 (neon_vcagt<mode>): Likewise.
16638 (neon_vtst<mode>): Likewise.
16639 (neon_vabd<mode>): Likewise.
16640 (neon_vabdl<mode>): Likewise.
16641 (neon_vaba<mode>): Likewise.
16642 (neon_vabal<mode>): Likewise.
16643 (neon_vmax<mode>): Likewise.
16644 (neon_vmin<mode>): Likewise.
16645 (neon_vpaddl<mode>): Likewise.
16646 (neon_vpadal<mode>): Likewise.
16647 (neon_vpmax<mode>): Likewise.
16648 (neon_vpmin<mode>): Likewise.
16649 (neon_vrecps<mode>): Likewise.
16650 (neon_vrsqrts<mode>): Likewise.
16651 (neon_vqabs<mode>): Likewise.
16652 (neon_vqneg<mode>): Likewise.
16653 (neon_vcls<mode>): Likewise.
16654 (clz<mode>2): Likewise.
16655 (popcount<mode>2): Likewise.
16656 (neon_vrecpe): Likewise.
16657 (neon_vrsqrte): Likewise.
16658 (neon_vget_lane<mode>_sext_internal): Likewise.
16659 (neon_vget_lane<mode>_zext_internal): Likewise.
16660 (neon_vdup_n<mode>): Likewise.
16661 (neon_vdup_nv2di): Likewise.
16662 (neon_vdpu_lane<mode>_internal): Likewise.
16663 (neon_vswp<mode>): Likewise.
16664 (float<mode><V_cvtto>2): Likewise.
16665 (floatuns<mode><V_cvtto>2): Likewise.
16666 (fix_trunc<mode><V_cvtto>)2): Likewise
16667 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16668 (neon_vcvt<mode>): Likewise.
16669 (neon_vcvtv4sfv4hf): Likewise.
16670 (neon_vcvtv4hfv4sf): Likewise.
16671 (neon_vcvt_n<mode>): Likewise.
16672 (neon_vmovn<mode>): Likewise.
16673 (neon_vqmovn<mode>): Likewise.
16674 (neon_vqmovun<mode>): Likewise.
16675 (neon_vmovl<mode>): Likewise.
16676 (neon_vmul_lane<mode>): Likewise.
16677 (neon_vmull_lane<mode>): Likewise.
16678 (neon_vqdmull_lane<mode>): Likewise.
16679 (neon_vqdmulh_lane<mode>): Likewise.
16680 (neon_vmla_lane<mode>): Likewise.
16681 (neon_vmlal_lane<mode>): Likewise.
16682 (neon_vqdmlal_lane<mode>): Likewise.
16683 (neon_vmls_lane<mode>): Likewise.
16684 (neon_vmlsl_lane<mode>): Likewise.
16685 (neon_vqdmlsl_lane<mode>): Likewise.
16686 (neon_vext<mode>): Likewise.
16687 (neon_vrev64<mode>): Likewise.
16688 (neon_vrev32<mode>): Likewise.
16689 (neon_vrev16<mode>): Likewise.
16690 (neon_vbsl<mode>_internal): Likewise.
16691 (neon_vshl<mode>): Likewise.
16692 (neon_vqshl<mode>): Likewise.
16693 (neon_vshr_n<mode>): Likewise.
16694 (neon_vshrn_n<mode>): Likewise.
16695 (neon_vqshrn_n<mode>): Likewise.
16696 (neon_vqshrun_n<mode>): Likewise.
16697 (neon_vshl_n<mode>): Likewise.
16698 (neon_vqshl_n<mode>): Likewise.
16699 (neon_vqshlu_n<mode>): Likewise.
16700 (neon_vshll_n<mode>): Likewise.
16701 (neon_vsra_n<mode>): Likewise.
16702 (neon_vsri_n<mode>): Likewise.
16703 (neon_vsli_n<mode>): Likewise.
16704 (neon_vtbl1v8qi): Likewise.
16705 (neon_vtbl2v8qi): Likewise.
16706 (neon_vtbl3v8qi): Likewise.
16707 (neon_vtbl4v8qi): Likewise.
16708 (neon_vtbx1v8qi): Likewise.
16709 (neon_vtbx2v8qi): Likewise.
16710 (neon_vtbx3v8qi): Likewise.
16711 (neon_vtbx4v8qi): Likewise.
16712 (neon_vtrn<mode>_internal): Likewise.
16713 (neon_vzip<mode>_internal): Likewise.
16714 (neon_vuzp<mode>_internal): Likewise.
16715 (neon_vld1<mode>): Likewise.
16716 (neon_vld1_lane<mode>): Likewise.
16717 (neon_vld1_dup<mode>): Likewise.
16718 (neon_vld1_dupv2di): Likewise.
16719 (neon_vst1<mode>): Likewise.
16720 (neon_vst1_lane<mode>): Likewise.
16721 (neon_vld2<mode>): Likewise.
16722 (neon_vld2_lane<mode>): Likewise.
16723 (neon_vld2_dup<mode>): Likewise.
16724 (neon_vst2<mode>): Likewise.
16725 (neon_vst2_lane<mode>): Likewise.
16726 (neon_vld3<mode>): Likewise.
16727 (neon_vld3qa<mode>): Likewise.
16728 (neon_vld3qb<mode>): Likewise.
16729 (neon_vld3_lane<mode>): Likewise.
16730 (neon_vld3_dup<mode>): Likewise.
16731 (neon_vst3<mode>): Likewise.
16732 (neon_vst3qa<mode>): Likewise.
16733 (neon_vst3qb<mode>): Likewise.
16734 (neon_vst3_lane<mode>): Likewise.
16735 (neon_vld4<mode>): Likewise.
16736 (neon_vld4qa<mode>): Likewise.
16737 (neon_vld4qb<mode>): Likewise.
16738 (neon_vld4_lane<mode>): Likewise.
16739 (neon_vld4_dup<mode>): Likewise.
16740 (neon_vst4<mode>): Likewise.
16741 (neon_vst4qa<mode>): Likewise.
16742 (neon_vst4qb<mode>): Likewise.
16743 (neon_vst4_lane<mode>): Likewise.
16744 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16745 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16746 (neon_vec_<US>mult_lo_<mode>): Likewise.
16747 (neon_vec_<US>mult_hi_<mode>): Likewise.
16748 (neon_vec_<US>shiftl_<mode>): Likewise.
16749 (neon_unpack<US>_<mode>): Likewise.
16750 (neon_vec_<US>mult_<mode>): Likewise.
16751 (vec_pack_trunc_<mode>): Likewise.
16752 (neon_vec_pack_trunk_<mode>): Likewise.
16753 (neon_vabd<mode>_2): Likewise.
16754 (neon_vabd<mode>_3): Likewise.
16755 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16756 (thumb2_movsi_vfp): Likewise.
16757 (movdi_vfp): Likewise.
16758 (movdi_vfp_cortexa8): Likewise.
16759 (movhf_vfp_neon): Likewise.
16760 (movhf_vfp): Likewiwse.
16761 (movsf_vfp): Likewiwse.
16762 (thumb2_movsf_vfp): Likewiwse.
16763 (movdf_vfp): Likewise.
16764 (thumb2_movdf_vfp): Likewise.
16765 (movsfcc_vfp): Likewise.
16766 (thumb2_movsfcc_vfp): Likewise.
16767 (movdfcc_vfp): Likewise.
16768 (thumb2_movdfcc_vfp): Likewise.
16769 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16770 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16771 (v10_v2c): Likewise.
16772 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16773 attribute change.
16774 (cortex_a15_neon_int_2): Likewise.
16775 (cortex_a15_neon_int_3): Likewise.
16776 (cortex_a15_neon_int_4): Likewise.
16777 (cortex_a15_neon_int_5): Likewise.
16778 (cortex_a15_neon_vqneg_vqabs): Likewise.
16779 (cortex_a15_neon_vmov): Likewise.
16780 (cortex_a15_neon_vaba): Likewise.
16781 (cortex_a15_neon_vaba_qqq): Likewise.
16782 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16783 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16784 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16785 scalar_64_32_long_scalar): Likewise.
16786 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16787 (cortex_a15_neon_mla_qqq_8_16): Likewise.
16788 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16789 lotype_qdd_64_32_long): Likewise.
16790 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16791 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16792 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16793 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16794 (cortex_a15_neon_shift_1): Likewise.
16795 (cortex_a15_neon_shift_2): Likewise.
16796 (cortex_a15_neon_shift_3): Likewise.
16797 (cortex_a15_neon_vshl_ddd): Likewise.
16798 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16799 (cortex_a15_neon_vsra_vrsra): Likewise.
16800 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16801 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16802 (cortex_a15_neon_fp_vmul_ddd): Likewise.
16803 (cortex_a15_neon_fp_vmul_qqd): Likewise.
16804 (cortex_a15_neon_fp_vmla_ddd): Likewise.
16805 (cortex_a15_neon_fp_vmla_qqq): Likewise.
16806 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16807 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16808 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16809 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16810 (cortex_a15_neon_bp_simple): Likewise.
16811 (cortex_a15_neon_bp_2cycle): Likewise.
16812 (cortex_a15_neon_bp_3cycle): Likewise.
16813 (cortex_a15_neon_vld1_1_2_regs): Likewise.
16814 (cortex_a15_neon_vld1_3_4_regs): Likewise.
16815 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16816 (cortex_a15_neon_vld2_4_regs): Likewise.
16817 (cortex_a15_neon_vld3_vld4): Likewise.
16818 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16819 (cortex_a15_neon_vst1_3_4_regs): Likewise.
16820 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16821 (cortex_a15_neon_vst3_vst4): Likewise.
16822 (cortex_a15_neon_vld1_vld2_lane): Likewise.
16823 (cortex_a15_neon_vld3_vld4_lane" 10
16824 (cortex_a15_neon_vst1_vst2_lane): Likewise.
16825 (cortex_a15_neon_vst3_vst4_lane): Likewise.
16826 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16827 (cortex_a15_neon_ldm_2): Likewise.0
16828 (cortex_a15_neon_stm_2): Likewise.
16829 (cortex_a15_neon_mcr): Likewise.
16830 (cortex_a15_neon_mcr_2_mcrr): Likewise.
16831 (cortex_a15_neon_mrc): Likewise.
16832 (cortex_a15_neon_mrrc): Likewise.
16833 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16834 change.
16835 (cortex_a15_alu_shift): Likewise.
16836 (cortex_a15_alu_shift_reg): Likewise.
16837 (cortex_a15_mult32): Likewise.
16838 (cortex_a15_mult64): Likewise.
16839 (cortex_a15_block): Likewise.
16840 (cortex_a15_branch): Likewise.
16841 (cortex_a15_load1): Likewise.
16842 (cortex_a15_load3): Likewise.
16843 (cortex_a15_store1): Likewise.
16844 (cortex_a15_store3): Likewise.
16845 (cortex_a15_call): Likewise.
16846 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16847 (cortex_a5_f2r): Likewise.
16848 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16849 change.
16850 (cortex_a53_f2r): Likewise.
16851 * config/arm/cortex-a7.md
16852 (cortex_a7_branch): Update for attribute change.
16853 (cortex_a7_call): Likewise.
16854 (cortex_a7_alu_imm): Likewise.
16855 (cortex_a7_alu_reg): Likewise.
16856 (cortex_a7_alu_shift): Likewise.
16857 (cortex_a7_mul): Likewise.
16858 (cortex_a7_load1): Likewise.
16859 (cortex_a7_store1): Likewise.
16860 (cortex_a7_load2): Likewise.
16861 (cortex_a7_store2): Likewise.
16862 (cortex_a7_load3): Likewise.
16863 (cortex_a7_store3): Likewise.
16864 (cortex_a7_load4): Likewise.
16865 (cortex_a7_store4): Likewise.
16866 (cortex_a7_fpalu): Likewise.
16867 (cortex_a7_fconst): Likewise.
16868 (cortex_a7_fpmuls): Likewise.
16869 (cortex_a7_neon_mul): Likewise.
16870 (cortex_a7_fpmacs): Likewise.
16871 (cortex_a7_neon_mla: Likewise.
16872 (cortex_a7_fpmuld: Likewise.
16873 (cortex_a7_fpmacd: Likewise.
16874 (cortex_a7_fpfmad: Likewise.
16875 (cortex_a7_fdivs: Likewise.
16876 (cortex_a7_fdivd: Likewise.
16877 (cortex_a7_r2f: Likewise.
16878 (cortex_a7_f2r: Likewise.
16879 (cortex_a7_f_flags: Likewise.
16880 (cortex_a7_f_loads: Likewise.
16881 (cortex_a7_f_loadd: Likewise.
16882 (cortex_a7_f_stores: Likewise.
16883 (cortex_a7_f_stored: Likewise.
16884 (cortex_a7_neon): Likewise.
16885 * config/arm/cortex-a8-neon.md
16886 (cortex_a8_neon_mrc): Update for attribute change.
16887 (cortex_a8_neon_mrrc): Likewise.
16888 (cortex_a8_neon_int_1): Likewise.
16889 (cortex_a8_neon_int_2): Likewise.
16890 (cortex_a8_neon_int_3): Likewise.
16891 (cortex_a8_neon_int_4): Likewise.
16892 (cortex_a8_neon_int_5): Likewise.
16893 (cortex_a8_neon_vqneg_vqabs): Likewise.
16894 (cortex_a8_neon_vmov): Likewise.
16895 (cortex_a8_neon_vaba): Likewise.
16896 (cortex_a8_neon_vaba_qqq): Likewise.
16897 (cortex_a8_neon_vsma): Likewise.
16898 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16899 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16900 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16901 long_scalar): Likewise.
16902 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16903 (cortex_a8_neon_mla_qqq_8_16): Likewise.
16904 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16905 long_scalar_qdd_64_32_long): Likewise.
16906 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16907 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16908 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16909 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16910 (cortex_a8_neon_shift_1): Likewise.
16911 (cortex_a8_neon_shift_2): Likewise.
16912 (cortex_a8_neon_shift_3): Likewise.
16913 (cortex_a8_neon_vshl_ddd): Likewise.
16914 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16915 (cortex_a8_neon_vsra_vrsra): Likewise.
16916 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16917 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16918 (cortex_a8_neon_fp_vsum): Likewise.
16919 (cortex_a8_neon_fp_vmul_ddd): Likewise.
16920 (cortex_a8_neon_fp_vmul_qqd): Likewise.
16921 (cortex_a8_neon_fp_vmla_ddd): Likewise.
16922 (cortex_a8_neon_fp_vmla_qqq): Likewise.
16923 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16924 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16925 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16926 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16927 (cortex_a8_neon_bp_simple): Likewise.
16928 (cortex_a8_neon_bp_2cycle): Likewise.
16929 (cortex_a8_neon_bp_3cycle): Likewise.
16930 (cortex_a8_neon_ldr): Likewise.
16931 (cortex_a8_neon_str): Likewise.
16932 (cortex_a8_neon_vld1_1_2_regs): Likewise.
16933 (cortex_a8_neon_vld1_3_4_regs): Likewise.
16934 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16935 (cortex_a8_neon_vld2_4_regs): Likewise.
16936 (cortex_a8_neon_vld3_vld4): Likewise.
16937 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16938 (cortex_a8_neon_vst1_3_4_regs): Likewise.
16939 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16940 (cortex_a8_neon_vst3_vst4): Likewise.
16941 (cortex_a8_neon_vld1_vld2_lane): Likewise.
16942 (cortex_a8_neon_vld3_vld4_lane): Likewise.
16943 (cortex_a8_neon_vst1_vst2_lane): Likewise.
16944 (cortex_a8_neon_vst3_vst4_lane): Likewise.
16945 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16946 (cortex_a8_neon_mcr): Likewise.
16947 (cortex_a8_neon_mcr_2_mcrr): Likewise.
16948 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16949 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16950 change.
16951 (ca9_neon_mrrc): Likewise.
16952 (cortex_a9_neon_int_1): Likewise.
16953 (cortex_a9_neon_int_2): Likewise.
16954 (cortex_a9_neon_int_3): Likewise.
16955 (cortex_a9_neon_int_4): Likewise.
16956 (cortex_a9_neon_int_5): Likewise.
16957 (cortex_a9_neon_vqneg_vqabs): Likewise.
16958 (cortex_a9_neon_vmov): Likewise.
16959 (cortex_a9_neon_vaba): Likewise.
16960 (cortex_a9_neon_vaba_qqq): Likewise.
16961 (cortex_a9_neon_vsma): Likewise.
16962 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16963 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16964 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16965 long_scalar): Likewise.
16966 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16967 (cortex_a9_neon_mla_qqq_8_16): Likewise.
16968 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16969 long_scalar_qdd_64_32_long): Likewise.
16970 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16971 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16972 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16973 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16974 (cortex_a9_neon_shift_1): Likewise.
16975 (cortex_a9_neon_shift_2): Likewise.
16976 (cortex_a9_neon_shift_3): Likewise.
16977 (cortex_a9_neon_vshl_ddd): Likewise.
16978 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16979 (cortex_a9_neon_vsra_vrsra): Likewise.
16980 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16981 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16982 (cortex_a9_neon_fp_vsum): Likewise.
16983 (cortex_a9_neon_fp_vmul_ddd): Likewise.
16984 (cortex_a9_neon_fp_vmul_qqd): Likewise.
16985 (cortex_a9_neon_fp_vmla_ddd): Likewise.
16986 (cortex_a9_neon_fp_vmla_qqq): Likewise.
16987 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16988 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16989 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16990 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16991 (cortex_a9_neon_bp_simple): Likewise.
16992 (cortex_a9_neon_bp_2cycle): Likewise.
16993 (cortex_a9_neon_bp_3cycle): Likewise.
16994 (cortex_a9_neon_ldr): Likewise.
16995 (cortex_a9_neon_str): Likewise.
16996 (cortex_a9_neon_vld1_1_2_regs): Likewise.
16997 (cortex_a9_neon_vld1_3_4_regs): Likewise.
16998 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16999 (cortex_a9_neon_vld2_4_regs): Likewise.
17000 (cortex_a9_neon_vld3_vld4): Likewise.
17001 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17002 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17003 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17004 (cortex_a9_neon_vst3_vst4): Likewise.
17005 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17006 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17007 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17008 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17009 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17010 (cortex_a9_neon_mcr): Likewise.
17011 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17012 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17013 (cortex_a9_fps): Likewise.
17014 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17015 change.
17016 (cortex_m4_fmuls): Likewise.
17017 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17018 change.
17019 (cortex_r4_mrc): Likewise.
17020 * config/arm/iterators.md: Update comment referring to neon_type.
17021 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17022 (iwmmxt_movsi_insn): Likewise.
17023 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17024 attribute change.
17025 (pj4_core_to_vfp): Likewise.
17026 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17027 attribute change.
17028 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17029 (vfp_fstore): Likewise.
17030 * doc/md.texi: Change references to neon_type to refer to type.
17031
17032 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17033
17034 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17035
17036 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17037
17038 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17039 lglobl if not weak.
17040
17041 2013-09-04 Easwaran Raman <eraman@google.com>
17042
17043 PR middle-end/57370
17044 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17045 (build_and_add_sum): Use it.
17046 (appears_later_in_bb): Simplify code.
17047
17048 2013-09-04 Teresa Johnson <tejohnson@google.com>
17049
17050 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17051
17052 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17053
17054 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17055
17056 2013-09-04 Jan Hubicka <jh@suse.cz>
17057
17058 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17059 * ipa-devirt.c: Include diganostic.h
17060 (odr_type_d): Add types and types_set.
17061 (hash_type_name): Work for types with vtables during LTO.
17062 (odr_hasher::remove): Fix comment; destroy types_set.
17063 (add_type_duplicate): New function,
17064 (get_odr_type): Use it.
17065 (dump_type_inheritance_graph): Dump type duplicates.
17066 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17067 graph.
17068 * tree.c (types_same_for_odr): Give exact answers on types with
17069 virtual tables.
17070
17071 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17072
17073 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17074 explaining their differences.
17075
17076 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17077
17078 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17079
17080 2013-09-03 Jeff Law <law@redhat.com>
17081
17082 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17083 when not threading through a joiner block. Pass joiner/no joiner
17084 state to register_jump_thread.
17085 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17086 state from argument rather than implying on path length.
17087 Dump the entire jump thread path into debugging dump.
17088 * tree-flow.h (register_jump_thread): Update prototype.
17089
17090 2013-08-29 Xinliang David Li <davidxl@google.com>
17091
17092 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17093 Remove a trivial gcc_assert.
17094
17095 2013-08-29 Xinliang David Li <davidxl@google.com>
17096
17097 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17098 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17099 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17100 Delay base decl alignment adjustment.
17101 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17102 * tree-vectorizer.h: New data structure.
17103 (set_dr_misalignment): New function.
17104 (dr_misalignment): Ditto.
17105 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17106 (vectorizable_load): Ditto.
17107 (ensure_base_align): New function.
17108 (vectorize_loops): Add dbg_cnt support.
17109 (execute_vect_slp): Ditto.
17110 * dbgcnt.def: New debug counter.
17111 * Makefile: New dependency.
17112
17113 2013-09-03 Meador Inge <meadori@codesourcery.com>
17114
17115 Revert:
17116
17117 2013-08-30 Meador Inge <meadori@codesourcery.com>
17118
17119 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17120
17121 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17122
17123 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17124 function descriptor.
17125
17126 2013-09-03 Richard Biener <rguenther@suse.de>
17127
17128 * tree-affine.c (add_elt_to_tree): Fix association issue,
17129 avoid useless converts and make sure to always return a
17130 properly typed result.
17131
17132 2013-09-03 Richard Biener <rguenther@suse.de>
17133
17134 PR middle-end/57656
17135 * fold-const.c (negate_expr_p): Fix division case.
17136 (negate_expr): Likewise.
17137
17138 2013-09-03 Richard Biener <rguenther@suse.de>
17139
17140 PR lto/58285
17141 * tree-streamer-out.c: Include tm.h.
17142 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17143
17144 2013-09-03 Jan Hubicka <jh@suse.cz>
17145
17146 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17147
17148 2013-09-03 Alan Modra <amodra@gmail.com>
17149
17150 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17151 multilibs to big-endian target and vice versa.
17152 * config/rs6000/t-linux64: Use := assignment on all vars.
17153 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17154 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17155 * config/rs6000/t-linux64le: New file.
17156 * config/rs6000/t-linux64bele: New file.
17157 * config/rs6000/t-linux64lebe: New file.
17158
17159 2013-09-02 Jan Hubicka <jh@suse.cz>
17160
17161 * ipa-inline-transform.c (inline_transform): Do not
17162 optimize_inline_calls when not optimizing.
17163
17164 2013-09-02 Jan Hubicka <jh@suse.cz>
17165
17166 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17167 duplicated nodes for assembler names.
17168 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17169 hard registers from assembler name hash.
17170
17171 2013-09-02 Jan Hubicka <jh@suse.cz>
17172
17173 * ipa-split.c (execute_split_functions): Split externally visible
17174 functions called once.
17175
17176 2013-09-02 Martin Jambor <mjambor@suse.cz>
17177
17178 PR ipa/58106
17179 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17180 linked list. When finding the correct duplicate, also consider also
17181 the caller in additon to its inlined_to node.
17182
17183 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17184
17185 * config/aarch64/aarch64-simd-builtins.def
17186 (dup_lane_scalar): Remove.
17187 * config/aarch64/aarch64-simd.md
17188 (aarch64_simd_dup): Add 'w->w' alternative.
17189 (aarch64_dup_lane<mode>): Allow for VALL.
17190 (aarch64_dup_lane_scalar<mode>): Remove.
17191 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17192 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17193 (aarch64_get_lane_unsigned<mode>): Likewise.
17194 (aarch64_get_lane<mode>): Likewise.
17195 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17196 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17197 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17198 (VCON): Change container of V2SF.
17199 (vswap_width_name): Likewise.
17200 * config/aarch64/arm_neon.h
17201 (__aarch64_vdup_lane_any): New.
17202 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17203 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17204 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17205
17206 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17207
17208 PR middle-end/56382
17209 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17210 the source or the destination is a single hard register.
17211
17212 2013-09-02 Richard Biener <rguenther@suse.de>
17213
17214 PR middle-end/57511
17215 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17216 non-linear SCEVs.
17217
17218 2013-09-02 Richard Biener <rguenther@suse.de>
17219
17220 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17221 arithmetic to sizetype.
17222
17223 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17224
17225 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17226 Find auto-increment use both before and after candidate.
17227
17228 2013-09-02 Marek Polacek <polacek@redhat.com>
17229
17230 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17231
17232 2013-09-01 Jan Hubicka <jh@suse.cz>
17233
17234 * Makefile.in: Add ipa-profile.o
17235 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17236 * cgraph.c (struct cgraph_propagate_frequency_data,
17237 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17238 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17239 * cgraph.h (cgraph_propagate_frequency): Remove.
17240 * ipa-inline-analysis.c: Include ipa-utils.h;
17241 drop duplicated cfgloop.h.
17242 (inline_update_callee_summaries): Update.
17243 * ipa-profile.c: New file.
17244 * ipa-utils.h (ipa_propagate_frequency): Declare.
17245 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17246 data-streamer.h, value-prof.h.
17247 (symtab_remove_unreachable_nodes): Update profile.
17248 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17249 account_time_size, cmp_counts, dump_histogram,
17250 ipa_profile_generate_summary, ipa_profile_write_summary,
17251 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17252 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17253 Move to ipa-profile.c.
17254
17255 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17256
17257 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17258
17259 2013-09-01 Jan Hubicka <jh@suse.cz>
17260
17261 * common.opt (fdevirtualize-speculatively): New function.
17262 * invoke.texi (fdevirtualize-speculatively): Document.
17263 * ipa-devirt.c: Include ipa-inline.h
17264 (likely_target_p): New function.
17265 (ipa_devirt): New function.
17266 (gate_ipa_devirt): New function.
17267 (pass_data_ipa_devirt): New static var.
17268 (pass_ipa_devirt): Likewise.
17269 (make_pass_ipa_devirt): New function.
17270 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17271 (common_handle_option): Disable devirtualization when
17272 value range profiling is available.
17273 * passes.def (pass_ipa_devirt): Add.
17274 * timever.def (TV_IPA_DEVIRT): New timevar.
17275 * tree-pass.h (make_pass_ipa_devirt):
17276
17277 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17278
17279 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17280 include sanitize(undefined).
17281
17282 2013-08-31 Diego Novillo <dnovillo@google.com>
17283
17284 * Makefile.in (TREE_CORE_H): Define.
17285 (TREE_H): Use.
17286 (GTFILES): Add tree-core.h.
17287 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17288 size the array.
17289 * tree-core.h: New file.
17290 Move all data structures, enum, typedefs, global
17291 declarations and constants from ...
17292 * tree.h: ... here.
17293
17294 2013-08-31 Jan Hubicka <jh@suse.cz>
17295
17296 * bulitins.c (expand_builtin): Do not early exit for gcov
17297 instrumented functions.
17298
17299 2013-08-31 Marek Polacek <polacek@redhat.com>
17300
17301 * ubsan.c: Include tm_p.h.
17302
17303 2013-08-31 Jan Hubicka <jh@suse.cz>
17304
17305 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17306 warning.
17307
17308 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17309 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17310 * tree-cfg.c (verify_gimple_label): ... here.
17311 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17312 (ipa_merge_profiles): New function.
17313 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17314 (lto_input_function_body): Likewise.
17315 * ipa-utils.h (ipa_merge_profiles): Declare.
17316 * lto-streamer.h (lto_input_function_body): Update prototype.
17317 (emit_label_in_global_context_p): Remove.
17318 * lto-symtab.c: Include ipa-utils.h
17319 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17320
17321 2013-08-31 Jan Hubicka <jh@suse.cz>
17322
17323 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17324
17325 2013-08-31 Jan Hubicka <jh@suse.cz>
17326
17327 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17328
17329 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17330
17331 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17332 "cmp" RTX before signed_comparison_operator check to account
17333 for "code" changes.
17334
17335 2013-08-30 Jan Hubicka <jh@suse.cz>
17336
17337 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17338 (detect_type_change_1): Rename to ...
17339 (detect_type_change): ... this one; early return on non-polymorphic
17340 types.
17341 (detect_type_change_ssa): Add comp_type parameter; update
17342 use of detect_type_change.
17343 (compute_complex_assign_jump_func): Add param_type parameter;
17344 update use of detect_type_change_ssa.
17345 (compute_complex_ancestor_jump_func): Likewise.
17346 (ipa_get_callee_param_type): New function.
17347 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17348 update calls to the jump function computation functions.
17349
17350 2013-08-30 Teresa Johnson <tejohnson@google.com>
17351 Steven Bosscher <steven@gcc.gnu.org>
17352
17353 * cfgrtl.c (fixup_new_cold_bb): New routine.
17354 (commit_edge_insertions): Invoke fixup_partitions.
17355 (find_partition_fixes): New routine.
17356 (fixup_partitions): Ditto.
17357 (verify_hot_cold_block_grouping): Update comments.
17358 (rtl_verify_edges): Invoke find_partition_fixes.
17359 (rtl_verify_bb_pointers): Update comments.
17360 (rtl_verify_bb_layout): Ditto.
17361 * basic-block.h (probably_never_executed_edge_p): Declare.
17362 (fixup_partitions): Ditto.
17363 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17364 * bb-reorder.c (sanitize_hot_paths): New function.
17365 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17366 sanitize_hot_paths.
17367 * predict.c (probably_never_executed_edge_p): New routine.
17368 * cfg.c (check_bb_profile): Add partition insanity warnings.
17369
17370 2013-08-30 Meador Inge <meadori@codesourcery.com>
17371
17372 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17373
17374 2013-08-30 Marek Polacek <polacek@redhat.com>
17375
17376 * Makefile.in (ubsan.o): Add.
17377 (c-family/c-ubsan.o): Add.
17378 (builtins.o): Add ubsan.h dependency.
17379 * ubsan.h: New file.
17380 * ubsan.c: New file.
17381 * common.opt: Add -fsanitize=undefined option.
17382 (flag_sanitize): Add variable.
17383 (fsanitize=): Add option. Add Driver.
17384 (fsanitize=thread): Remove option.
17385 (fsanitize=address): Likewise.
17386 (static-libubsan): New option.
17387 * doc/invoke.texi: Document the new flag and -static-libubsan.
17388 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17389 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17390 * builtin-attrs.def (ATTR_COLD): Define.
17391 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17392 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17393 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17394 * flag-types.h (sanitize_code): New enum.
17395 * opts.c (common_handle_option): Parse command line arguments
17396 of -fsanitize=. Add -fsanitize=unreachable option.
17397 * varasm.c (get_variable_section): Adjust.
17398 (assemble_noswitch_variable): Likewise.
17399 (assemble_variable): Likewise.
17400 (output_constant_def_contents): Likewise.
17401 (categorize_decl_for_section): Likewise.
17402 (place_block_symbol): Likewise.
17403 (output_object_block): Likewise.
17404 * builtins.def: Likewise.
17405 * toplev.c (compile_file): Likewise.
17406 (process_options): Likewise.
17407 * cppbuiltin.c: Likewise.
17408 * tsan.c (tsan_pass): Likewise.
17409 (tsan_gate): Likewise.
17410 (tsan_gate_O0): Likewise.
17411 * cfgexpand.c (partition_stack_vars): Likewise.
17412 (expand_stack_vars): Likewise.
17413 (defer_stack_allocation): Likewise.
17414 (expand_used_vars): Likewise.
17415 * cfgcleanup.c (old_insns_match_p): Likewise.
17416 * asan.c (asan_finish_file): Likewise.
17417 (asan_instrument): Likewise.
17418 (gate_asan): Likewise.
17419 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17420 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17421 (asan_global_struct): Use pointer_sized_int_node instead
17422 calling build_nonstandard_integer_type.
17423 (initialize_sanitizer_builtins): Likewise.
17424 (asan_finish_file): Likewise.
17425 * gcc.c: Document %{%:function(args):X}.
17426 (static_spec_functions): Add sanitize.
17427 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17428 store funcval != NULL there.
17429 (do_spec_1): Adjust handle_spec_function caller.
17430 (handle_braces): Allow %:function(args) as condition.
17431 (sanitize_spec_function): New function.
17432 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17433 (LIBUBSAN_SPEC): Likewise.
17434 (LIBUBSAN_EARLY_SPEC): Likewise.
17435 (SANITIZER_SPEC): Handle libubsan.
17436 (SANITIZER_EARLY_SPEC): Likewise.
17437 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17438 instead of fsanitize=address.
17439 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17440 instead of fsanitize=address*.
17441 * builtins.c: Include ubsan.h.
17442 (fold_builtin_0): Instrument __builtin_unreachable.
17443 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17444 instead of flag_asan.
17445 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17446 (pointer_sized_int_node): Define.
17447 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17448
17449 2013-08-30 Mike Stump <mikestump@comcast.net>
17450
17451 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17452 with RE patterns.
17453
17454 2013-08-29 Jan Hubicka <jh@suse.cz>
17455
17456 * cgraph.c (cgraph_function_body_availability): Handle weakref
17457 correctly.
17458 * passes.def: Remove pass_fixup_cfg.
17459 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17460 track when we need to remove functions.
17461 (gate_ipa_inline): Execute inlining always; add comment why.
17462 (pass_data_ipa_inline): Remove TODO_remove_functions.
17463 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17464 do not produce summaries.
17465 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17466 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17467 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17468 constant pool and vtable.
17469
17470 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17471
17472 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17473 New arm_neon.h's internal macros to specify 64-bit constants.
17474 Avoid using stdint.h's macros.
17475
17476 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17477
17478 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17479 before applying REG_P.
17480
17481 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17482
17483 PR tree-optimization/58277
17484 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17485 after seeing too many stmts with vdef in between dombb and current
17486 bb, invalidate everything.
17487
17488 2013-08-30 Richard Biener <rguenther@suse.de>
17489
17490 * fold-const.c (fold_single_bit_test): Fix overflow test.
17491
17492 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17493
17494 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17495 and which can live in a register, always retrieve the value on entry.
17496 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17497 passed by invisible reference specially.
17498 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17499 (vt_add_function_parameter): Correctly deal with a parameter passed by
17500 invisible reference.
17501
17502 2013-08-30 Jan Hubicka <jh@suse.cz>
17503
17504 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17505
17506 2013-08-30 Richard Biener <rguenther@suse.de>
17507
17508 PR tree-optimization/58228
17509 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17510 allow invariant loads in nested loop vectorization.
17511
17512 2013-08-30 Richard Biener <rguenther@suse.de>
17513
17514 PR tree-optimization/58223
17515 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17516 (has_anti_or_output_dependence): ... this and adjust to also
17517 look for output dependences.
17518 (mark_nodes_having_upstream_mem_writes): Adjust.
17519 (rdg_flag_uses): Likewise.
17520
17521 2013-08-30 Richard Biener <rguenther@suse.de>
17522
17523 PR tree-optimization/58010
17524 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17525 assert that we have a loop-closed PHI.
17526
17527 2013-08-29 Jan Hubicka <jh@suse.cz>
17528
17529 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17530 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17531 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17532 (lto_free_function_in_decl_state_for_node): New function.
17533
17534 2013-08-29 Xinliang David Li <davidxl@google.com>
17535
17536 * loop-unroll.c (report_unroll_peel): Minor message change.
17537 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17538 Emit alignment peeling message with default -fopt-info.
17539 (vect_loop_versioning): Emit loop version info message.
17540 * tree-vectorizer.c (vectorize_loops): Minor message change.
17541 (execute_vect_slp): Ditto.
17542
17543 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17544
17545 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17546 of the clone from the DECL_NAME of the original function.
17547
17548 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17549
17550 * passes.c (register_pass): Add overload.
17551 * tree-pass.h (register_pass): Forward declare it. Add comment.
17552
17553 2013-08-29 Jan Hubicka <jh@suse.cz>
17554
17555 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17556 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17557 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17558 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17559 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17560 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17561 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17562 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17563
17564 2013-08-29 Teresa Johnson <tejohnson@google.com>
17565
17566 * dumpfile.c (dump_loc): Output column number.
17567 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17568 * doc/invoke.texi: Document optall -fopt-info flag.
17569 * profile.c (read_profile_edge_counts): Use new dump framework.
17570 (compute_branch_probabilities): Ditto.
17571 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17572 when pass not in any opt group.
17573 * pass_manager.h (pass_manager::get_pass_profile): New method.
17574 * value-prof.c (check_counter): Use new dump framework.
17575 (check_ic_target): Ditto.
17576 * coverage.c (get_coverage_counts): Ditto.
17577 (coverage_init): Setup new dump framework.
17578
17579 2013-08-29 Richard Biener <rguenther@suse.de>
17580
17581 PR tree-optimization/58246
17582 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17583 handle the dominance check inside a basic-block.
17584
17585 2013-08-29 Richard Biener <rguenther@suse.de>
17586
17587 PR middle-end/57287
17588 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17589 of default defs that appear in abnormal PHI nodes.
17590
17591 2013-08-29 Richard Biener <rguenther@suse.de>
17592
17593 PR tree-optimization/57685
17594 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17595 single-use operands to avoid exponential complexity.
17596
17597 2013-08-28 Dehao Chen <dehao@google.com>
17598
17599 * ipa-inline.c (edge_badness): Fix integer underflow.
17600
17601 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17602
17603 * gtm-builtins.def (_ITM_free): Declare leaf.
17604
17605 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17606
17607 PR target/58067
17608 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17609 (*tls_local_dynamic_base_64_largepic): Likewise.
17610 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17611 Remove predicate from call operand.
17612 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17613 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17614
17615 2013-08-28 Jeff Law <law@redhat.com>
17616
17617 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17618 checks for the number of predecessors and successors allowed.
17619 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17620 which require copying a joiner block if there is a request which
17621 is a subpath that requires no joiner block copying.
17622
17623 2013-08-28 Jan Hubicka <jh@suse.cz>
17624
17625 * lto-streamer-out.c (DFS_write_tree_body): Drop
17626 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17627 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17628 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17629 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17630 Do not read DECL_ERROR_ISSUED.
17631 (unpack_ts_decl_with_vis_value_fields): Do not read
17632 DECL_DEFER_OUTPUT.
17633 (lto_input_ts_binfo_tree_pointers): Do not read
17634 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17635 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17636 write DECL_ERROR_ISSUED..
17637 (pack_ts_decl_with_vis_value_fields): Do not write
17638 DECL_DEFER_OUTPUT.
17639 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17640 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17641 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17642 * tree.h (tree_decl_common): Update comment.
17643 (DECL_ERROR_ISSUED): Remove.
17644
17645 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17646
17647 PR middle-end/58257
17648 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17649
17650 2013-08-28 Jan Hubicka <jh@suse.cz>
17651
17652 * builtins.def (free): Declare leaf.
17653
17654 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17655
17656 * gdbhooks.py: New.
17657 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17658 * configure: Regenerate.
17659
17660 2013-08-27 Martin Jambor <mjambor@suse.cz>
17661
17662 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17663 (ipa_ancestor_jf_data): Likewise.
17664 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17665 (ipa_get_jf_pass_through_type_preserved): New function.
17666 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17667 (ipa_get_jf_ancestor_type_preserved): New function.
17668 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17669 (ipa_get_jf_ancestor_result): Likewise.
17670 (propagate_vals_accross_pass_through): Use
17671 ipa_get_jf_pass_through_result to do all the value mappings.
17672 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17673 type_preserved flag.
17674 (ipa_set_jf_cst_copy): New function.
17675 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17676 (ipa_set_jf_arith_pass_through): Likewise.
17677 (ipa_set_ancestor_jf): Likewise.
17678 (compute_complex_assign_jump_func): Set type_preserved instead of
17679 punting.
17680 (ipa_compute_jump_functions_for_edge): Likewise.
17681 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17682 (update_jump_functions_after_inlining): Update type_preserved.
17683 Explicitely create jump functions when combining one with pass_through.
17684 (ipa_write_jump_function): Stream the type_preserved flags.
17685 (ipa_read_jump_function): Likewise.
17686
17687 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17688 Aldy Hernandez <aldyh@redhat.com>
17689
17690 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17691 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17692 * function.h (struct function): Add has_force_vect_loops and
17693 has_simduid_loops.
17694 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17695 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17696 handle it.
17697 * gimple.def: Update CLAUSES comments.
17698 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17699 (gimple_build_omp_for): Add argument to prototype.
17700 (gimple_omp_for_kind): New.
17701 (gimple_omp_for_set_kind): New.
17702 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17703 GOVD_DATA_SHARE_CLASS.
17704 (enum omp_region_type): Add ORT_SIMD.
17705 (gimple_add_tmp_var): Handle ORT_SIMD.
17706 (gimplify_var_or_parm_decl): Same.
17707 (is_gimple_stmt): Same.
17708 (omp_firstprivatize_variable): Same.
17709 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17710 (omp_notice_variable): Handle ORT_SIMD.
17711 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17712 (omp_check_private): Handle ORT_SIMD.
17713 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17714 OMP_CLAUSE_SAFELEN.
17715 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17716 Handle OMP_CLAUSE_LASTPRIVATE.
17717 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17718 OMP_CLAUSE_SAFELEN.
17719 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17720 (gimplify_expr): Handle OMP_SIMD.
17721 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17722 (expand_GOMP_SIMD_VF): New.
17723 (expand_GOMP_SIMD_LAST_LANE): New.
17724 * internal-fn.def (GOMP_SIMD_LANE): New.
17725 (GOMP_SIMD_VF): New.
17726 (GOMP_SIMD_LAST_LANE): New.
17727 * omp-low.c: Include target.h.
17728 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17729 OMP_CLAUSE_SAFELEN.
17730 (check_omp_nesting_restrictions): Same.
17731 (omp_max_vf): New.
17732 (lower_rec_simd_input_clauses): New.
17733 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17734 OMP_CLAUSE_LINEAR.
17735 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17736 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17737 (expand_omp_build_assign): New.
17738 (expand_omp_for_init_counts): New.
17739 (expand_omp_for_init_vars): New.
17740 (extract_omp_for_update_vars): New.
17741 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17742 and rewrite accordingly.
17743 (expand_omp_simd): New.
17744 (expand_omp_for): Use expand_omp_simd.
17745 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17746 (lower_omp_for): Do not lower the body.
17747 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17748 in their own loops.
17749 * tree-flow.h (find_omp_clause): Remove prototype.
17750 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17751 forcing vectorization of the loop, or if flag_tree_vectorize.
17752 (gate_tree_if_conversion): Similarly.
17753 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17754 gimple_build_omp_for.
17755 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17756 * tree-parloops (create_parallel_loop): Pass kind argument to
17757 gimple_build_omp_for.
17758 * tree-pretty-print.c (dump_omp_clause): Add cases for
17759 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17760 OMP_CLAUSE__SIMDUID_.
17761 (dump_generic_node): Handle OMP_SIMD.
17762 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17763 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17764 unroll OMP_SIMD loops here.
17765 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17766 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17767 loop->safelen.
17768 (vect_analyze_data_refs): Handle simd loops.
17769 * tree-vect-loop.c (vectorizable_live_operation): Handle
17770 IFN_GOMP_SIMD*.
17771 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17772 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17773 (vectorizable_load): Same.
17774 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17775 (struct simduid_to_vf): New.
17776 (simduid_to_vf::hash): New.
17777 (simduid_to-vf::equal): New.
17778 (struct simd_array_to_simduid): New.
17779 (simd_array_to_simduid::hash): New.
17780 (simd_array_to_simduid::equal): New.
17781 (adjust_simduid_builtins): New.
17782 (struct note_simd_array_uses_struct): New.
17783 (note_simd_array_uses_cb): New.
17784 (note_simd_array_uses): New.
17785 (vectorize_loops): Handle simd hints and adjust simd builtins
17786 accordingly.
17787 * tree-vectorizer.h (struct _stmt_vec_info): Add
17788 simd_lane_access_p field.
17789 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17790 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17791 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17792 (omp_clause_code_name): Same.
17793 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17794 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17795 * tree.def (OMP_SIMD): New entry.
17796 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17797 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17798 (OMP_CLAUSE_DECL): Adjust range for new clauses.
17799 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17800 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17801 (OMP_CLAUSE_LINEAR_STEP): New.
17802 (OMP_CLAUSE_SAFELEN_EXPR): New.
17803 (OMP_CLAUSE__SIMDUID__DECL): New.
17804 (find_omp_clause): New prototype.
17805
17806 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
17807
17808 * config/i386/driver-i386.c (host_detect_local_cpu): Update
17809 Haswell processor detection.
17810
17811 2013-08-27 Christian Widmer <shadow@umbrox.de>
17812
17813 PR target/57927
17814 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17815 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
17816 AVX2 capable processors.
17817
17818 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
17819
17820 * config/aarch64/arm_neon.h: Replace all inline asm implementations
17821 of vget_low_* with implementations in terms of other intrinsics.
17822
17823 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
17824
17825 PR middle-end/57219
17826 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17827 values to -1, 0 and 1.
17828
17829 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
17830
17831 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17832 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17833 (<optab><mode>3_insn): Remove.
17834 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17835 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17836 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17837 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17838 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17839 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17840 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17841 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17842 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17843 (ror<mode>3_insn): Likewise.
17844 * config/aarch64/predicates.md (aarch64_simd_register): New.
17845
17846 2013-08-27 Richard Biener <rguenther@suse.de>
17847
17848 PR tree-optimization/57521
17849 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17850 one edge is non-critical.
17851 (find_phi_replacement_condition): Make sure to use a non-critical
17852 edge. Cleanup and remove old bug workarounds.
17853 (bb_postdominates_preds): Remove.
17854 (if_convertible_loop_p_1): Do not compute post-dominators.
17855 (combine_blocks): Do not free post-dominators.
17856 (main_tree_if_conversion): Likewise.
17857 (pass_data_if_conversion): Add TODO_verify_ssa.
17858
17859 2013-08-27 DJ Delorie <dj@redhat.com>
17860
17861 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17862
17863 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
17864
17865 * function.c (assign_parm_find_data_types): Set passed_mode and
17866 nominal_mode to the TYPE_MODE of nominal_type for the built
17867 pointer type in case of the struct-pass-by-reference.
17868
17869 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17870
17871 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17872 (UINT16_TYPE): Change default to "unsigned int".
17873
17874 * config/avr/avr.opt (mfract-convert-truncate): New option.
17875 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17876 is set, round negative fractional integers according to n1169
17877 when converting to integer types.
17878
17879 2013-08-26 Jan Hubicka <jh@suse.cz>
17880
17881 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17882 methods can not be called indirectly when their address is not taken.
17883
17884 2013-08-26 Jan Hubicka <jh@suse.cz>
17885
17886 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17887 ctor_for_folding.
17888
17889 2013-08-26 Jan Hubicka <jh@suse.cz>
17890
17891 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17892 can be unshared.
17893
17894 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17895
17896 * reload.c (find_valid_class): Allow classes that do not include
17897 FIRST_PSEUDO_REGISTER - 1.
17898
17899 2013-08-26 Jan Hubicka <jh@suse.cz>
17900
17901 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17902 fix edge count/frequency when speculation failed; fix type check
17903 for the direct call.
17904
17905 2013-08-26 Jan Hubicka <jh@suse.cz>
17906
17907 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17908
17909 2013-08-26 Jan Hubicka <jh@suse.cz>
17910
17911 * ipa-inline-transform.c (inline_transform): Be ready for basic block
17912 to be changed by edge redirection.
17913
17914 2013-08-26 Jan Hubicka <jh@suse.cz>
17915
17916 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17917 formating; add sanity check.
17918 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17919 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17920 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17921 (resolve_noninline_speculation): Update callee keys, too.
17922
17923 2013-08-26 Jan Hubicka <jh@suse.cz>
17924
17925 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17926 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17927
17928 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17929
17930 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17931 into proper place.
17932
17933 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
17934
17935 * config/i386/i386.c (ix86_debug_options): Remove prototype.
17936 (x86_64_elf_select_section): Ditto.
17937 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17938 arguments.
17939 (ix86_pass_by_reference): Ditto.
17940 (output_set_got): Ditto.
17941 (ix86_unary_operator_ok): Ditto.
17942 (ix86_expand_builtin): Ditto.
17943
17944 2013-08-23 Jan Hubicka <jh@suse.cz>
17945
17946 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17947
17948 2013-08-23 Jan Hubicka <jh@suse.cz>
17949
17950 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17951 (tree_decl_with_vis): Add FINAL field.
17952
17953 2013-08-23 Jeff Law <law@redhat.com>
17954
17955 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17956 the debugging dump when the expression is fully redundant.
17957
17958 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17959
17960 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17961 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17962 * pretty-print.c (pp_formatted_text_data): Likewise.
17963 (pp_write_text_to_stream): Likewise.
17964 (pp_write_text_as_dot_label_to_stream): Likewise.
17965 (pp_append_r): Likewise.
17966 (pp_format): Likewise.
17967 (pp_flush): Likewise.
17968 (pp_clear_output_area): Likewise.
17969 (pp_append_text): Likewise.
17970 (pp_formatted_text): Likewise.
17971 (pp_remaining_character_count_for_line): Likewise.
17972 (pp_newline): Likewise.
17973 (pp_character): Likewise.
17974 (output_buffer::~output_buffer): Define.
17975 (pretty_printer::~pretty_printer): Destruct output buffer.
17976 * pretty-print.h (output_buffer::~output_buffer): Declare.
17977 (pretty_printer::~pretty_printer): Declare virtual.
17978
17979 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
17980
17981 PR other/57324
17982 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17983 HOST_WIDE_INT_M1U): New macros.
17984 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17985 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17986 unsigned -1 for lshift.
17987 * cse.c (cse_insn): Likewise.
17988 * double-int.c (rshift_double, lshift_double): Likewise.
17989 * builtins.c (fold_builtin_bitop): Likewise.
17990 * combine.c (force_to_mode): Likewise.
17991 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17992 * simplify-rtx.c (simplify_const_unary_operation,
17993 simplify_const_binary_operation): Likewise.
17994 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17995 check_va_list_escapes): Likewise.
17996 * rtlanal.c (nonzero_bits1): Likewise.
17997 * expmed.c (expand_smod_pow2): Likewise.
17998 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17999
18000 2013-08-23 Jan Hubicka <jh@suse.cz>
18001
18002 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18003 as having address taken.
18004
18005 2013-08-23 Jan Hubicka <jh@suse.cz>
18006
18007 * ipa-utils.h (method_class_type): Declare.
18008 * ipa-devirt.c (method_class_type): Export.
18009
18010 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18011 do not walk base classes of anonymous types.
18012
18013 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18014
18015 PR rtl-optimization/58220
18016 PR regression/58221
18017 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18018 handle SEQUENCE insns properly.
18019
18020 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18021
18022 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18023 definition.
18024 (pp_newline_and_indent): Likewise.
18025 (pp_separate_with): Likewise.
18026 * pretty-print.c (pp_newline_and_flush): Define.
18027 (pp_newline_and_indent): Likewise.
18028 (pp_separate_with): Likewise.
18029
18030 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18031
18032 PR target/58218
18033 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18034 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18035
18036 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18037
18038 * config/i386/predicates.md (ext_sse_reg_operand): New.
18039 * config/i386/i386.md (*movti_internal): Use
18040 predicate to determine if EVEX is needed.
18041 (*movsi_internal): Ditto.
18042 (*movdf_internal): Ditto.
18043 (*movsf_internal): Ditto.
18044 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18045
18046 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18047
18048 PR tree-optimization/58209
18049 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18050 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18051 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18052 emit POINTER_PLUS_EXPR.
18053 (create_tailcall_accumulator): For pointer result type accumulate in
18054 sizetype type.
18055
18056 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18057
18058 * configure.ac: Add backslashes missing from the last change.
18059 * configure: Regenerate.
18060
18061 2013-08-22 Jan Hubicka <jh@susue.cz>
18062
18063 * ipa.c (function_and_variable_visibility): First remember function
18064 was global and then make it local.
18065
18066 2013-08-22 Julian Brown <julian@codesourcery.com>
18067
18068 * configure.ac: Add aarch64 to list of arches which use "nop" in
18069 debug_line test.
18070 * configure: Regenerate.
18071
18072 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18073
18074 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18075 gnu_libc_has_function.
18076 * config/s390/tpf.h: Likewise.
18077
18078 2013-08-22 Jan Hubicka <jh@susue.cz>
18079
18080 * timevar.c (validate_phases): Add cast.
18081
18082 2013-08-22 Jan Hubicka <jh@susue.cz>
18083
18084 * timevar.c (validate_phases): Use size_t for memory.
18085 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18086
18087 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18088
18089 * pretty-print.h (output_buffer::output_buffer): Declare.
18090 (pretty_printer::pretty_printer): Likewise.
18091 (pp_construct): Remove.
18092 * pretty-print.c (output_buffer::output_buffer): Define.
18093 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18094 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18095 (print_gimple_expr): Likewise.
18096 (print_gimple_seq): Likewise.
18097 (gimple_dump_bb): Likewise.
18098 * sched-vis.c (dump_value_slim): Likewise.
18099 (dump_insn_slim): Likewise.
18100 (dump_rtl_slim): Likewise.
18101 (str_pattern_slim): Likewise.
18102 * tree-mudflap.c (mf_varname_tree): Likewise.
18103 * graph.c (print_graph_cfg): Likewise.
18104 (start_graph_dump): Likewise.
18105 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18106 placement-new.
18107 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18108 pretty printer initialization.
18109 * coretypes.h (diagnostic_context): Remove superflous type alias
18110 declaration.
18111 (pretty_printer): Likewise. Declare directly as a class.
18112 (pretty_print_info): Remove declaration as class.
18113 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18114 and pp_clear_output_area.
18115 (asan_add_global): Likewise.
18116
18117 2013-08-22 Jan Hubicka <jh@suse.cz>
18118
18119 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18120 * ipa-utils.h (update_type_inheritance_graph): Declare.
18121 (possible_polymorphic_call_target_p): Declare.
18122 (possible_polymorphic_call_target_p): New.
18123 * ipa-devirt.c: Update toplevel comments.
18124 (cached_polymorphic_call_targets): Move up.
18125 (odr_type_d): Move ID down.
18126 (polymorphic_type_binfo_p): Update comment.
18127 (odr_hasher::remove): Likewise;
18128 (get_odr_type): Set anonymous_namespace.
18129 (dump_odr_type): Dump it.
18130 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18131 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18132 (record_binfo): Add comment.
18133 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18134 built.
18135 (devirt_node_removal_hook): Do not iCE when cache is freed.
18136 (possible_polymorphic_call_target_p): New predicate.
18137 (update_type_inheritance_graph): New function.
18138
18139 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18141 Sergey Lega <sergey.s.lega@intel.com>
18142 Anna Tikhonova <anna.tikhonova@intel.com>
18143 Ilya Tocar <ilya.tocar@intel.com>
18144 Andrey Turetskiy <andrey.turetskiy@intel.com>
18145 Ilya Verbin <ilya.verbin@intel.com>
18146 Kirill Yukhin <kirill.yukhin@intel.com>
18147 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18148
18149 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18150 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18151 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18152 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18153 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18154 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18155 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18156 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18157 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18158 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18159 OPT_mavx512pf, OPT_mavx512er cases.
18160 * config/i386/constraints.md (v): New constraint.
18161 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18162 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18163 (bit_AVX512CD): New.
18164 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18165 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18166 * config/i386/i386-c.c (ix86_target_macros_internal):
18167 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18168 __AVX512PF__.
18169 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18170 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18171 * config/i386/i386.c (regclass_map, dbx_register_map)
18172 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18173 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18174 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18175 -mavx512pf options.
18176 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18177 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18178 -mavx512pf options. Fix formatting.
18179 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18180 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18181 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18182 -mavx512cd, -mavx512pf options.
18183 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18184 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18185 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18186 ALL_SSE_REGS.
18187 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18188 (ix86_set_reg_reg_cost): Ditto.
18189 (x86_order_regs_for_local_alloc): Ditto.
18190 (MAX_VECT_LEN): Extend to 64-byte.
18191 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18192 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18193 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18194 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18195 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18196 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18197 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18198 (SSE_REG_MODE_P): Support new modes.
18199 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18200 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18201 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18202 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18203 (REG_CLASS_CONTENTS): Add new registers.
18204 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18205 (EXT_REX_SSE_REGNO_P): New.
18206 (HI_REGISTER_NAMES): Add new registers.
18207 * config/i386/i386.md: Define constants for new registers.
18208 (mode): Add new 512-bit modes.
18209 (prefix): Support evex prefix.
18210 (isa): Support avx512f, noavx512f, fma_avx512f.
18211 (ssemodesuffix): Add new 512-bit modes.
18212 (movxi): New.
18213 (*movxi_internal_avx512f): Ditto.
18214 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18215 Support MODE_XI.
18216 (*movsi_internal): Likewise.
18217 (*movdf_internal): Likewise.
18218 (*movsf_internal): Likewise.
18219 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18220 (<code><mode>3): Likewise.
18221 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18222 New.
18223 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18224 with the new constraint "v".
18225 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18226 modes.
18227 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18228 with the new constraint "v".
18229 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18230 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18231 (*<plusminus_insn><mode>3): Likewise.
18232 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18233 (*mul<mode>3): Likewise.
18234 (<sse>_vmmul<mode>3): Likewise.
18235 (<sse>_div<mode>3): Likewise.
18236 (<sse>_vmdiv<mode>3): Likewise.
18237 (<sse>_sqrt<mode>2): Likewise.
18238 (<sse>_vmsqrt<mode>2): Likewise.
18239 (*<code><mode>3_finite): Likewise.
18240 (*<code><mode>3) <smaxmin>: Likewise.
18241 (<sse>_vm<code><mode>3): Likewise.
18242 (*<code><mode>3) <any_logic>: Likewise.
18243 (*fma_fmadd_<mode>): Likewise.
18244 (*fma_fmsub_<mode>): Likewise.
18245 (*fma_fnmadd_<mode>): Likewise.
18246 (*fma_fnmsub_<mode>): Likewise.
18247 (*fma_fmaddsub_<mode>): Likewise.
18248 (*fma_fmsubadd_<mode>): Likewise.
18249 (*fmai_fmadd_<mode>): Likewise.
18250 (*fmai_fmsub_<mode>): Likewise.
18251 (*fmai_fnmadd_<mode>): Likewise.
18252 (*fmai_fnmsub_<mode>): Likewise.
18253 (sse_cvtsi2ss): Likewise.
18254 (sse_cvtsi2ssq): Likewise.
18255 (sse_cvtss2si): Likewise.
18256 (sse_cvtss2si_2): Likewise.
18257 (sse_cvtss2siq): Likewise.
18258 (sse_cvtss2siq_2): Likewise.
18259 (sse_cvttss2si): Likewise.
18260 (sse_cvtss2siq_2): Likewise.
18261 (float<sseintvecmodelower><mode>2): Likewise.
18262 (sse2_cvtsd2si_2): Likewise.
18263 (sse2_cvtsd2siq_2): Likewise.
18264 (*<plusminus_insn><mode>3): Likewise.
18265 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18266 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18267 (ashr<mode>3): Likewise.
18268 (<shift_insn><mode>3): Likewise.
18269 (avx2_<code><mode>3): Likewise.
18270 (*avx2_<code><mode>3): Likewise.
18271 (*andnot<mode>3): Likewise.
18272 (*<code><mode>3) <any_logic>: Likewise.
18273 (abs<mode>2): Likewise.
18274 (avx2_permvar<mode>): Likewise.
18275 (avx2_perm<mode>_1): Likewise.
18276 (*avx_vpermilp<mode>): Likewise.
18277 (avx_vpermilvar<mode>3): Likewise.
18278 (avx2_ashrv<mode>): Likewise.
18279 (avx2_<shift_insn>v<mode>): Likewise.
18280 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18281 -mavx512cd.
18282 * doc/rtl.texi: Document XImode.
18283
18284 2013-08-21 Jeff Law <law@redhat.com>
18285
18286 * tree-flow.h (register_jump_thread): Pass vector of edges
18287 instead of each important edge.
18288 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18289 thread path into a vector and pass that to register_jump_thread.
18290 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18291 passed in edge vector to the current 3-edge form.
18292
18293 Revert:
18294 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18295
18296 * dce.c (fini_dce): Call df_analyze again just in case
18297 delete_unmarked_insns removed anything.
18298
18299 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18300
18301 * reload.h (struct reg_equivs): Rename to ..
18302 (struct reg_equivs_s): .. this.
18303
18304 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18305
18306 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18307
18308 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18309
18310 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18311
18312 2013-08-21 Jeff Law <law@redhat.com>
18313
18314 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18315 simplify assignments too. If the RHS collapses to a singleton
18316 range, then return the value for the range.
18317
18318 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18319
18320 * config/i386/sse.md (V16): Rename to...
18321 (VMOVE): this.
18322 (mov<mode>): Update iterator name.
18323 (*mov<mode>_internal): Ditto.
18324 (push<mode>1): Ditto.
18325 (movmisalign<mode>): Ditto.
18326
18327 2013-08-20 Jan Hubicka <jh@suse.cz>
18328
18329 PR bootstrap/58186
18330 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18331 entry for direct edges.
18332 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18333
18334 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18335
18336 Revert my last two changes, r201865 and r201864:
18337
18338 Revert r201865:
18339 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18340
18341 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18342 instances can own GC refs.
18343
18344 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18345 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18346 (gcc::context::gt_pch_nx): Likewise.
18347 (gcc::context::gt_pch_nx): Likewise.
18348 * ggc.h (gt_ggc_mx <T>): New.
18349 (gt_pch_nx_with_op <T>): New.
18350 (gt_pch_nx <T>): New.
18351 * passes.c (opt_pass::gt_ggc_mx): New.
18352 (opt_pass::gt_pch_nx): New.
18353 (opt_pass::gt_pch_nx_with_op): New.
18354 (pass_manager::gt_ggc_mx): New.
18355 (pass_manager::gt_pch_nx): New.
18356 (pass_manager::gt_pch_nx_with_op): New.
18357 (pass_manager::operator new): Use
18358 ggc_internal_cleared_alloc_stat rather than xcalloc.
18359 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18360 (pass_manager::gt_ggc_mx): New.
18361 (pass_manager::gt_pch_nx): New.
18362 (pass_manager::gt_pch_nx_with_op): New.
18363 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18364 (opt_pass::operator new): New.
18365 (opt_pass::gt_ggc_mx): New.
18366 (opt_pass::gt_pch_nx): New.
18367 (opt_pass::gt_pch_nx_with_op): New.
18368
18369 Revert r201864:
18370 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18371
18372 * Makefile.in (GTFILES): Add context.h.
18373 * context.c (gcc::context::operator new): New.
18374 (gcc::context::gt_ggc_mx): New.
18375 (gcc::context::gt_pch_nx): New.
18376 (gcc::context::gt_pch_nx): New.
18377 * context.h (gcc::context): Add GTY((user)) marking.
18378 (gcc::context::operator new): New.
18379 (gcc::context::gt_ggc_mx): New.
18380 (gcc::context::gt_pch_nx): New.
18381 (gcc::context::gt_pch_nx): New.
18382 (g): Add GTY marking.
18383 (gt_ggc_mx (gcc::context *)): New.
18384 (gt_pch_nx (gcc::context *)): New.
18385 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18386 void *cookie)): New.
18387 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18388
18389 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18390
18391 * dce.c (fini_dce): Call df_analyze again just in case
18392 delete_unmarked_insns removed anything.
18393
18394 2013-08-20 Teresa Johnson <tejohnson@google.com>
18395
18396 PR rtl-optimizations/57451
18397 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18398 from crossing split section boundaries.
18399
18400 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18401
18402 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18403 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18404 with MULTLIB_DEFAULTS.
18405
18406 2013-08-20 Nick Clifton <nickc@redhat.com>
18407
18408 * target.def (narrow_volatile_bitfield): Note that the default
18409 value is false, not !TARGET_STRICT_ALIGN.
18410 * doc/tm.texi: Regenerate.
18411
18412 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18413
18414 Fix LIB_SPEC for systems without libpthread.
18415
18416 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18417 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18418 for Android.
18419 * config/i386/linux-common.h: Likewise.
18420 * config/mips/linux-common.h: Likewise.
18421
18422 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18423
18424 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18425 checks.
18426
18427 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18428
18429 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18430 instances can own GC refs.
18431
18432 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18433 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18434 (gcc::context::gt_pch_nx): Likewise.
18435 (gcc::context::gt_pch_nx): Likewise.
18436 * ggc.h (gt_ggc_mx <T>): New.
18437 (gt_pch_nx_with_op <T>): New.
18438 (gt_pch_nx <T>): New.
18439 * passes.c (opt_pass::gt_ggc_mx): New.
18440 (opt_pass::gt_pch_nx): New.
18441 (opt_pass::gt_pch_nx_with_op): New.
18442 (pass_manager::gt_ggc_mx): New.
18443 (pass_manager::gt_pch_nx): New.
18444 (pass_manager::gt_pch_nx_with_op): New.
18445 (pass_manager::operator new): Use
18446 ggc_internal_cleared_alloc_stat rather than xcalloc.
18447 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18448 (pass_manager::gt_ggc_mx): New.
18449 (pass_manager::gt_pch_nx): New.
18450 (pass_manager::gt_pch_nx_with_op): New.
18451 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18452 (opt_pass::operator new): New.
18453 (opt_pass::gt_ggc_mx): New.
18454 (opt_pass::gt_pch_nx): New.
18455 (opt_pass::gt_pch_nx_with_op): New.
18456
18457 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18458
18459 * Makefile.in (GTFILES): Add context.h.
18460 * context.c (gcc::context::operator new): New.
18461 (gcc::context::gt_ggc_mx): New.
18462 (gcc::context::gt_pch_nx): New.
18463 (gcc::context::gt_pch_nx): New.
18464 * context.h (gcc::context): Add GTY((user)) marking.
18465 (gcc::context::operator new): New.
18466 (gcc::context::gt_ggc_mx): New.
18467 (gcc::context::gt_pch_nx): New.
18468 (gcc::context::gt_pch_nx): New.
18469 (g): Add GTY marking.
18470 (gt_ggc_mx (gcc::context *)): New.
18471 (gt_pch_nx (gcc::context *)): New.
18472 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18473 void *cookie)): New.
18474 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18475
18476 2013-08-20 Alan Modra <amodra@gmail.com>
18477
18478 PR target/57865
18479 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18480 (rs6000_emit_epilogue): Likewise.
18481
18482 2013-08-19 Dehao Chen <dehao@google.com>
18483
18484 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18485
18486 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18487 Jakub Jelinek <jakub@redhat.com>
18488
18489 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18490 (BUILT_IN_FABSD64): Likewise.
18491 (BUILT_IN_FABSD128): Likewise.
18492 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18493 (fold_builtin_1): Likewise.
18494 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18495 destination and source operands.
18496 (*abstd2_fpr): Likewise.
18497 (*nabstd2_fpr): Likewise.
18498
18499 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18500
18501 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18502 JUMP_P and INSN_P.
18503
18504 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18505
18506 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18507 incomplete.
18508
18509 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18510
18511 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18512 * builtins.c (default_libc_has_function): New.
18513 (gnu_libc_has_function): Ditto.
18514 (no_c99_libc_has_function): Ditto.
18515 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18516 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18517 (fold_builtin_sincos): Likewise.
18518 (fold_builtin_cexp): Likewise.
18519 * builtins.def (DEF_C94_BUILTIN): Likewise.
18520 (DEF_C99_BUILTIN): Likewise.
18521 (DEF_C99_C90RES_BUILTIN): Likewise.
18522 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18523 definitions to using this define.
18524 * config/darwin-protos.h (darwin_libc_has_function): New.
18525 * config/darwin.c (darwin_libc_has_function): Ditto.
18526 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18527 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18528 * config/darwin.h: Ditto.
18529 * config/elfos.h: Ditto.
18530 * config/freebsd.h: Ditto.
18531 * config/i386/cygming.h: Ditto.
18532 * config/i386/djgpp.h: Ditto.
18533 * config/i386/i386-interix.h: Ditto.
18534 * config/microblaze/microblaze.h: Ditto.
18535 * config/mmix/mmix.h: Ditto.
18536 * config/gnu-user.h: Ditto.
18537 * config/ia64/hpux.h: Ditto.
18538 * config/pa/pa-hpux.h: Ditto.
18539 * config/pdp11/pdp11.h: Ditto.
18540 * config/picochip/picochip.h: Ditto.
18541 * config/linux.h: Ditto.
18542 * config/netbsd.h: Ditto.
18543 * config/openbsd.h: Ditto.
18544 * config/rs6000/aix43.h: Ditto.
18545 * config/rs6000/aix51.h: Ditto.
18546 * config/rs6000/aix52.h: Ditto.
18547 * config/rs6000/aix53.h: Ditto.
18548 * config/rs6000/aix61.h: Ditto.
18549 * config/rs6000/darwin.h: Ditto.
18550 * config/rs6000/linux.h: Ditto.
18551 * config/rs6000/linux64.h: Ditto.
18552 * config/s390/tpf.h: Ditto.
18553 * config/sol2-10.h: Ditto.
18554 * config/sol2.h: Ditto.
18555 * config/vms/vms.h: Ditto.
18556 * config/vxworks.h: Ditto.
18557 * config/linux-android.c (linux_android_libc_has_function):
18558 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18559 * config/linux-protos.h (linux_android_libc_has_function):
18560 New declaration.
18561 * config/i386/i386.c (ix86_libc_has_function): New.
18562 * config/i386/i386-protos.h
18563 (ix86_libc_has_function): New declaration.
18564 * config/i386/i386.md
18565 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18566 ("isinf<mode>2): Likewise.
18567 * convert.c (convert_to_integer): Using new target hook
18568 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18569 TARGET_C99_FUNCTIONS.
18570 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18571 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18572 * coretypes.h (function_class): New enum for different
18573 classes of functions.
18574 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18575 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18576 (TARGET_HAS_SINCOS): Likewise.
18577 (TARGET_LIBC_HAS_FUNCTION): New.
18578 * doc/tm.texi: Regenerated.
18579 * targhooks.h (default_libc_has_function): New declaration.
18580 (no_c99_libc_has_function): Ditto.
18581 (gnu_libc_has_function): Ditto.
18582 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18583 and TARGET_HAS_SINCOS.
18584
18585 2013-08-18 Jan Hubicka <jh@suse.cz>
18586
18587 * Makeifle-in (ipa-devirt.o): New.
18588 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18589 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18590 (analyze_functions): Look into possible targets of polymorphic call.
18591 * dumpfile.c (dump_files): Add type-inheritance dump.
18592 * dumpfile.h (TDI_inheritance): New.
18593 * ipa-devirt.c: New file.
18594 * ipa-utils.h (odr_type_d): Forward declare.
18595 (odr_type): New type.
18596 (build_type_inheritance_graph): Declare.
18597 (possible_polymorphic_call_targets): Declare and introduce inline
18598 variant when only edge is pased.
18599 (dump_possible_polymorphic_call_targets): Likewise.
18600 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18601 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18602 (types_same_for_odr): ... here.
18603 * tree.h (type_in_anonymous_namespace_p): Declare.
18604
18605 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18606
18607 PR tree-optimization/58006
18608 * tree-parloops.c (take_address_of): Don't ICE if get_name
18609 returns NULL.
18610 (eliminate_local_variables_stmt): Remove clobber stmts.
18611
18612 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18613
18614 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18615 error message is issued for an alias to undefined symbol.
18616
18617 2013-08-18 Jan Hubicka <jh@suse.cz>
18618
18619 * cgraph.c (cgraph_create_indirect_edge): Discover
18620 polymorphic calls and record basic info into indirect_info.
18621 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18622 devirtualization, ignore objc function calls.
18623 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18624 call with no parm index info.
18625 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18626 * tree.c (virtual_method_call_p): New function.
18627 * tree.h (virtual_method_call_p): Declare.
18628
18629 2013-08-16 Jan Hubicka <jh@suse.cz>
18630
18631 PR middle-end/58179
18632 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18633
18634 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18635
18636 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18637 attribute.
18638
18639 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18640
18641 * gengtype.c (type_for_name): Add special-case support for
18642 locating types within the "gcc::" namespace.
18643 (open_base_files): Emit a "using namespace gcc" directive.
18644
18645 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18646
18647 PR target/58160
18648 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18649 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18650
18651 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18652 array instead of each individual operand as a separate argument.
18653 (emit_fusion_gpr_load): Likewise.
18654 (expand_fusion_gpr_load): Add new function declaration.
18655
18656 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18657 signature to have the operands passed as an array, instead of as
18658 separate arguments. Allow ZERO_EXTEND to be in the memory
18659 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18660 depend on the register live/dead flags when peepholes are run.
18661 (expand_fusion_gpr_load): New function to be called from the
18662 peephole2 pass, to change the register that addis sets to be the
18663 target register.
18664 (emit_fusion_gpr_load): Change the calling signature to have the
18665 operands passed as an array, instead of as separate arguments.
18666 Allow ZERO_EXTEND to be in the memory address, and also
18667 SIGN_EXTEND if -mpower8-fusion-sign.
18668
18669 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18670 unspec enumeration.
18671 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18672 adjust the register addis loads up in the peephole2 pass. Do not
18673 depend on the register live/dead state when the peephole pass is done.
18674
18675 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18676
18677 * gengtype.c (create_user_defined_type): Ensure that the kind
18678 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18679 declaration is seen before the GTY((user)) marking.
18680
18681 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18682
18683 PR target/58105
18684 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18685
18686 2013-08-16 Jan Hubicka <jh@suse.cz>
18687
18688 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18689 arugment expected_type.
18690 (gimple_fold_call): Use it.
18691 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18692 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18693 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18694 (try_make_edge_direct_virtual_call): Likewise.
18695 * tree.c (obj_type_ref_class): New.
18696 * tree.h (obj_type_ref_class): Use it.
18697
18698 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18699
18700 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18701 (rtl_slim_pp): Likewise.
18702 (init_rtl_slim_pretty_print): Likewise.
18703 (dump_value_slim): Don't call it. Use local pretty printer.
18704 (dump_insn_slim): Likewise.
18705 (dump_rtl_slim): Likewise.
18706 (str_pattern_slim): Likewise.
18707 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18708 Simplify.
18709
18710 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18711
18712 PR tree-optimization/58164
18713 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18714 walk gimple_goto_dest of GIMPLE_GOTO.
18715
18716 PR tree-optimization/58165
18717 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18718 bi_call must be the last stmt in a bb, don't split_block, instead
18719 use fallthru edge from it and give up if there is none.
18720 Release conds vector when returning early.
18721
18722 2013-08-14 Xinliang David Li <davidxl@google.com>
18723
18724 * config/i386/i386.c (ix86_option_override_internal):
18725 Remove unused variable and field.
18726
18727 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18728
18729 PR target/57949
18730 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18731 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18732 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18733 and Linux, correct BLKmode alignment when 128-bit alignment is
18734 required and compatibility flag is not set.
18735 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18736 for zero-size arguments when compatibility flag is not set.
18737
18738 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18739
18740 PR tree-optimization/58145
18741 * tree-sra.c (build_ref_for_offset): If prev_base has
18742 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18743
18744 2013-08-14 Xinliang David Li <davidxl@google.com>
18745
18746 * config/i386/i386.c (ix86_option_override_internal):
18747 Fix uninitialized variable error.
18748
18749 2013-08-14 Xinliang David Li <davidxl@google.com>
18750
18751 * config/i386/i386.opt: Define two new options.
18752 * config/i386/x86-tune.def: Add arch selector field in macros.
18753 * config/i386/i386.h: Adjust macro definition.
18754 * config/i386/i386.c (ix86_option_override_internal):
18755 Refactor the code.
18756 (parse_mtune_ctrl_str): New function.
18757 (set_ix86_tune_features): New function.
18758 (ix86_function_specific_restore): Call the new helper function.
18759
18760 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
18761
18762 PR rtl-optimization/57662
18763 * sel-sched.c (code_motion_process_successors): When the current insn
18764 is removed after the recursive traversal, break from the loop.
18765 Add comments and debug printouts.
18766
18767 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18768 Alexandre Oliva <aoliva@redhat.com>
18769
18770 PR target/58067
18771 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18772 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18773 there also UNSPEC_PLTOFF.
18774
18775 2013-08-14 Marek Polacek <polacek@redhat.com>
18776
18777 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18778 NUM_CONDITIONS bit positions.
18779
18780 2013-08-13 Cary Coutant <ccoutant@google.com>
18781
18782 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18783 (attr_checksum): Hash vector contents instead of pointer.
18784 (attr_checksum_ordered): Likewise.
18785
18786 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
18787
18788 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18789 when Pmode != word_mode. Add length_address attribute.
18790 (sse3_monitor_<mode>): Merge from sse3_monitor and
18791 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
18792 Pmode != word_mode. Update insn length attribute.
18793 * config/i386/i386.c (ix86_option_override_internal): Update
18794 ix86_gen_monitor selection for merged sse3_monitor insn.
18795
18796 2013-08-13 Julian Brown <julian@codesourcery.com>
18797
18798 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18799 perform invalid legitimization on greater-than-word-size modes for
18800 TARGET_E500_DOUBLE.
18801
18802 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
18803
18804 * ira.c (setup_class_translate_array): Use aclass instead of cl
18805 for classes not fully covered by allocno classes.
18806
18807 2013-08-13 Jakub Jelinek <jakub@redhat.com>
18808
18809 PR tree-optimization/57661
18810 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18811 * tree-inline.c (tree_function_versioning): Initialize it.
18812 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18813 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18814 that is not being copied.
18815
18816 PR sanitizer/56417
18817 * asan.c (instrument_strlen_call): Fix typo in comment.
18818 Use char * type even for the lhs of POINTER_PLUS_EXPR.
18819
18820 2013-08-13 Steve Ellcey <sellcey@mips.com>
18821
18822 * config/mips/mips.md (prefetch): Use lw instead of ld on
18823 loongson in 32bit mode.
18824
18825 2013-08-13 Nick Clifton <nickc@redhat.com>
18826
18827 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18828
18829 2013-08-13 Jan Hubicka <jh@suse.cz>
18830
18831 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18832 introduced edge; fix typo in sanity check.
18833 (cgraph_resolve_speculation): Export; improve diagnostic.
18834 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18835 speculation at type mismatch.
18836 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18837 (cgraph_resolve_speculation): Declare.
18838 (symtab_can_be_discarded): New function.
18839 * value-prof.c (gimple_ic_transform): Remove actual transform code.
18840 * ipa-inline-transform.c (speculation_removed): New global var.
18841 (clone_inlined_nodes): See if speculation can be removed.
18842 (inline_call): If speculations was removed, we growths may not match.
18843 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18844 (speculation_useful_p): New function.
18845 (resolve_noninline_speculation): New function.
18846 (inline_small_functions): Resolve useless speculations.
18847 * ipa-inline.h (speculation_useful_p): Declare
18848 * ipa.c (can_replace_by_local_alias): Simplify.
18849 (ipa_profile): Produce speculative calls in non-lto, too;
18850 add simple cost model; produce local aliases.
18851
18852 2013-08-13 David Malcolm <dmalcolm@redhat.com>
18853
18854 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18855 PASS_MANAGER_H.
18856
18857 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
18858
18859 * config/i386/i386.c (ix86_function_versions): Use error + inform.
18860
18861 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
18862
18863 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18864 iterator instead of X87MODEF.
18865
18866 2013-08-12 Perez Read <netfirewall@gmail.com>
18867
18868 PR target/58132
18869 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
18870 operand 0 for intel asm alternative.
18871 (*movabs<mode>_2): Ditto for operand 1.
18872
18873 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
18874
18875 * config/aarch64/arm_none.h
18876 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18877
18878 2013-08-12 Nick Clifton <nickc@redhat.com>
18879
18880 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18881
18882 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18883
18884 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18885 expand for QI/HImode operand to produce more effictive code for
18886 unsigned char(short) --> float(double) conversion.
18887
18888 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
18889
18890 * doc/invoke.texi: Mention that -ftls-model does not force the final
18891 model.
18892
18893 2013-08-12 Marek Polacek <polacek@redhat.com>
18894 Marc Glisse <marc.glisse@inria.fr>
18895
18896 PR tree-optimization/57980
18897 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18898 when creating -1 constant.
18899
18900 2013-08-10 Jan Hubicka <jh@suse.cz>
18901
18902 Workaround binutils PR14342.
18903 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18904 (gimple_init_edge_profiler): Likewise.
18905 (gimple_gen_ic_func_profiler): Likewise.
18906
18907 2013-08-09 Jan Hubicka <jh@suse.cz>
18908
18909 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18910
18911 2013-08-09 Xinliang David Li <davidxl@google.com>
18912
18913 * config/i386/stringop.def: New file.
18914 * config/i386/stringop.opt: New file.
18915 * config/i386/i386-opts.h: Include stringopt.def.
18916 * config/i386/i386.opt: Include stringopt.opt.
18917 * config/i386/i386.c (ix86_option_override_internal):
18918 Override default size based stringop inline strategies with options.
18919 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18920 New function.
18921
18922 2013-08-09 Jan Hubicka <jh@suse.cz>
18923
18924 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18925
18926 2013-08-09 Jan Hubicka <jh@suse.cz>
18927
18928 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18929 CGRAPH_FREQ_MAX.
18930 (dump_cgraph_node): Dump profile-id.
18931 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18932 and common_target_probability.
18933 * lto-cgraph.c (lto_output_edge): Stream common targets.
18934 (lto_output_node): Stream profile ids.
18935 (input_node): Stream profile ids.
18936 (input_edge): Stream common targets.
18937 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18938 * ipa.c: Include value-prof.h
18939 (ipa_profile_generate_summary): Turn indirect call statement histograms
18940 into common targets.
18941 (ipa_profile): Turn common targets into speculative edges.
18942
18943 2013-08-09 Jan Hubicka <jh@suse.cz>
18944
18945 * cgraph.h (cgraph_node): Add profile_id.
18946 * value-prof.c (cgraph_node_map): Turn into pointer_map.
18947 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18948 (del_node_map): Update.
18949 (find_func_by_funcdef_no): Replace by ...
18950 (find_func_by_profile_id): ... this one.
18951 (gimple_ic_transform): Do not remove useful histograms when
18952 speculation is not done; dump info when indirect call removal
18953 can happen at LTO.
18954 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18955 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18956 (__gcov_indirect_call_profiler_v2): .. this one.
18957 * profile.h (init_node_map): Update.
18958 * coverage.c (coverage_compute_profile_id): New function.
18959 * coverage.h (coverage_compute_profile_id): Declare.
18960 * tree-profile.c (init_ic_make_global_vars): Make
18961 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
18962 (gimple_init_edge_profiler): Update prototype of
18963 __gcov_indirect_call_profiler.
18964 (gimple_gen_ic_func_profiler): Simplify.
18965 (tree_profiling): Use init_node_map
18966
18967 2013-08-09 Jan Hubicka <jh@suse.cz>
18968
18969 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18970 non-speculative refs.
18971 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18972 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18973 (cgraph_set_call_stmt): Likewise.
18974 (cgraph_create_edge_1): Fix release checking compilatoin;
18975 clear lto_stmt_uid.
18976 (cgraph_free_edge): Free indirect info.
18977 (cgraph_turn_edge_to_speculative): New function.
18978 (cgraph_speculative_call_info): New function.
18979 (cgraph_make_edge_direct): Return direct edge; handle speculation.
18980 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18981 (dump_cgraph_node): Dump speculation.
18982 (verify_edge_count_and_frequency): Accept speculative edges.
18983 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18984 (verify_cgraph_node): Handle speculation.
18985 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18986 (cgraph_set_call_stmt): Update prototype.
18987 (cgraph_make_edge_direct): Update prototype.
18988 (cgraph_speculative_call_info): Declare.
18989 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18990 to change; update call of ipa_find_references.
18991 * ipa-ref.c (ipa_record_reference): Fix return value; clear
18992 lto_stmt_uid and speculative flags.
18993 (ipa_dump_references): Dump speculation.
18994 (ipa_clone_references): Clone speculative flag.
18995 (ipa_clone_referring): Likewise.
18996 (ipa_clone_ref): New function.
18997 (ipa_find_reference): Look into lto_stmt_uids
18998 (ipa_clear_stmts_in_references): Do not clear speculative calls.
18999 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19000 (ipa_find_reference): Update declaration.
19001 (ipa_clone_ref): Declare.
19002 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19003 stream speculative flag.
19004 (lto_output_ref): Stream statements uids and speculation.
19005 (input_ref): Likewise.
19006 (input_edge): Stream speuclation.
19007 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19008 (cgraph_set_call_stmt_including_clones): Handle speculation.
19009 * ipa-inline.c (heap_edge_removal_hook): New function.
19010 (inline_small_functions): Register it.
19011 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19012 also initialize refs.
19013 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19014 edge to change.
19015 (try_make_edge_direct_simple_call): Likewise.
19016 (try_make_edge_direct_simple_call): Likewise.
19017 (update_indirect_edges_after_inlining): Likewise.
19018 (remove_described_reference): Look proper lto_stmt_uid.
19019 (propagate_controlled_uses): Likewise.
19020 (propagate_controlled_uses): Liekwise.
19021 * tree-inline.c (copy_bb): Copy speculative edges.
19022 (redirect_all_calls): New function.
19023 (copy_cfg_body): Do redirection after loop info is updated.
19024 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19025
19026 2013-08-09 Jan Hubicka <jh@suse.cz>
19027
19028 * lto-streamer-out.c (output_function): Renumber PHIs.
19029 * lto-streamer-in.c (input_function): Likewise.
19030
19031 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19032
19033 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19034 (get_lane_unsigned): Likewise.
19035 (dup_lane_scalar): Likewise.
19036 (get_lane): enable for VALL.
19037 * config/aarch64/aarch64-simd.md
19038 (aarch64_dup_lane_scalar<mode>): Remove.
19039 (aarch64_get_lane_signed<mode>): Likewise.
19040 (aarch64_get_lane_unsigned<mode>): Likewise.
19041 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19042 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19043 (aarch64_get_lane<mode>): Enable for all vector modes.
19044 (aarch64_get_lanedi): Remove misleading constraints.
19045 * config/aarch64/arm_neon.h
19046 (__aarch64_vget_lane_any): Define.
19047 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19048 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19049 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19050 * config/aarch64/iterators.md (VDQQH): New.
19051 (VDQQHS): Likewise.
19052 (vwcore): Likewise.
19053
19054 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19055
19056 * configure.ac: Add GAS check for LEON instructions on SPARC.
19057 * configure: Regenerate.
19058 * config.in: Likewise.
19059 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19060 sparc*-*-* block.
19061 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19062 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19063 for LEON or LEON3.
19064 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19065 (AS_LEON_FLAG): New macro.
19066 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19067 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19068 Deal with LEON and LEON3 for the memory model.
19069 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19070 (atomic_compare_and_swap<mode>_1): Likewise.
19071 (*atomic_compare_and_swap<mode>_1): Likewise.
19072
19073 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19074
19075 * config/arm/neon.md (vcond): Fix floating-point vector
19076 comparisons against 0.
19077
19078 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19079
19080 * lra-constraints.c (emit_spill_move): Remove assert.
19081 (process_alt_operands): Add more debugging
19082 output. Increase reject for spilling into memory. Decrease
19083 reject for reloading scratch.
19084 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19085
19086 2013-08-08 Steve Ellcey <sellcey@mips.com>
19087
19088 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19089 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19090 micromips incompatible. Add nan2008.
19091 (MULTILIB_DIRNAMES): Add nan2008.
19092 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19093 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19094 and micromips incompatible. Add nan2008.
19095 (MULTILIB_DIRNAMES): Add nan2008.
19096 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19097
19098 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19099
19100 PR rtl-optimization/58079
19101 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19102 simplify_comparison has widened a comparison with an integer.
19103
19104 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19105
19106 * config/arm/neon.md (movmisalign<mode>): Disable when we
19107 don't allow unaligned accesses.
19108 (*movmisalign<mode>_neon_store): Likewise.
19109 (*movmisalign<mode>_neon_load): Likewise.
19110 (*movmisalign<mode>_neon_store): Likewise.
19111 (*movmisalign<mode>_neon_load): Likewise.
19112
19113 2013-08-08 Jan Hubicka <jh@suse.cz>
19114
19115 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19116 (make_pass_rebuild_cgraph_edges): Also clear references.
19117 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19118 * ipa-inline-transform.c (inline_transform): Remove all references
19119 after inlining.
19120 * cgraphunit.c (expand_function): Remove all references after
19121 expansion.
19122 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19123 (ipa_find_reference): Rewrite to iterator.
19124 (remove_stmt_references): Likewise.
19125 (ipa_clear_stmts_in_references): New function.
19126 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19127 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19128 clear references.
19129 * ipa-split.c (split_function): Remove references in split function.
19130
19131 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19132
19133 PR target/57431
19134 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19135 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19136
19137 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19138
19139 PR target/56979
19140 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19141 suggested mode for the assignment isn't compatible with the
19142 registers required.
19143
19144 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19145
19146 PR target/58065
19147 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19148
19149 2013-08-07 Xinliang David Li <davidxl@google.com>
19150
19151 * config/i386/i386.opt: New option -mtune-ctrl=.
19152 * config/i386/x86-tune.def: New file.
19153 * config/i386/i386.h: include x86-tune.def.
19154 * config/i386/i386.c (ix86_option_override_internal):
19155 Parsing -mtune-ctrl= option and set tune features.
19156
19157 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19158
19159 PR other/12081
19160 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19161 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19162 to gen_2arg_fn_t.
19163
19164 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19165
19166 * rtl.h (update_alignments): Declare.
19167 * final.c (grow_label_align): New function extracted from...
19168 (shorten_branches): ...here. Call it.
19169 (update_alignments): New function.
19170 * reorg.c (sibling_labels): New variable.
19171 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19172 the new label along with it onto the sibling_labels vector.
19173 (fill_simple_delay_slots): Adjust call to get_label_before.
19174 (fill_slots_from_thread): Likewise.
19175 (relax_delay_slots): Likewise.
19176 (make_return_insns): Likewise.
19177 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19178
19179 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19180
19181 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19182 document its semantics.
19183 (diagnostic_report_diagnostic): Adjust accordingly.
19184
19185 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19186
19187 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19188 (sparc_option_override): ...and port to new C++ pass API.
19189 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19190
19191 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19192
19193 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19194
19195 2013-08-06 Caroline Tice <cmtice@google.com>
19196
19197 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19198 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19199 * tree-pass.h: Add pass_vtable_verify.
19200 * varasm.c (assemble_variable): Add code to properly set the comdat
19201 section and name for the .vtable_map_vars section.
19202 (assemble_vtyv_preinit_initializer): New function.
19203 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19204 LINK_ONCE flag.
19205 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19206 * vtable-verify.c: New file.
19207 * vtable-verify.h: New file.
19208 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19209 initialiation levels.
19210 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19211 * passes.def: Insert pass_vtable_verify.
19212 * aclocal.m4: Reorder includes.
19213 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19214 -fvtv-counts options.
19215 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19216 as appropriate, if -fvtable-verify=... is used.
19217 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19218 -fvtable-verify=... is used.
19219 * Makefile.in (OBJS): Add vtable-verify.o to list.
19220 (vtable-verify.o): Add new build rule.
19221 (GTFILES): Add vtable-verify.c to list.
19222 * common.opt (fvtable-verify=): New flag.
19223 (vtv_priority): Values for fvtable-verify= flag.
19224 (fvtv-counts): New flag.
19225 (fvtv-debug): New flag.
19226 * tree.h (save_vtable_map_decl): New extern function decl.
19227
19228 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19229
19230 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19231 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19232 (pass_data_rl78_devirt): ...new pass_data instance and...
19233 (make_pass_rl78_devirt): ...new function.
19234 (rl78_asm_file_start): Port pass registration to new C++ API.
19235
19236 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19237
19238 * coretypes.h (rtl_opt_pass): Add.
19239 (gcc::context): Add.
19240 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19241 (epiphany_init): Port to new C++ pass API.
19242 (epiphany_optimize_mode_switching): Likewise.
19243 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19244 (pass_manager::get_pass_mode_switching): New.
19245 (pass_manager::get_pass_peephole2): New.
19246 * mode-switching.c (pass_mode_switching): Add clone method.
19247 * recog.c (pass_peephole2): Add clone method.
19248 (pass_split_all_insns): Add clone method.
19249
19250 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19251
19252 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19253 (mips_option_override): ...here, porting to new C++ API for passes.
19254
19255 2013-08-06 Jan Hubicka <jh@suse.cz>
19256
19257 * cgraph.c (cgraph_get_body): New function based on lto.c
19258 implementation.
19259 * cgraph.h (cgraph_get_body): Declare.
19260 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19261 LTO paths.
19262 * cgraphunit.c (expand_function): Get body prior expanding.
19263 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19264 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19265 really need.
19266 * passes.c (do_per_function_toporder): Get body.
19267 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19268 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19269
19270 2013-08-06 Martin Jambor <mjambor@suse.cz>
19271
19272 PR fortran/57987
19273 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19274 is not re-finalized. Rename second parameter to no_collect.
19275
19276 2013-08-06 Martin Jambor <mjambor@suse.cz>
19277
19278 PR middle-end/58041
19279 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19280 MEM_REF has proper alignment information.
19281
19282 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19283
19284 PR other/12081
19285 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19286 class insn_gen_fn.
19287 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19288 rtx (*) (rtx, ...) with insn_gen_fn.
19289 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19290 insn_gen_fn::stored_funcptr. Add initializer braces.
19291
19292 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19293
19294 Rewrite how instances of passes are cloned to remove assumptions
19295 about their sizes (thus allowing pass subclasses to have
19296 additional data fields, albeit non-GC-managed ones at this point).
19297
19298 * passes.c (make_pass_instance): Now that passes have clone
19299 methods, rewrite this function to eliminate XNEW and memcpy
19300 calls that used hardcoded sizes. Since this function no longer
19301 creates pass instances, rename it to...
19302 (add_pass_instance): ...this. Document the old way that passes were
19303 numbered and flagged, and rework this function to continue using it.
19304 (next_pass_1): Add an initial_pass argument for use by
19305 add_pass_instance.
19306 (position_pass): When adding multiple instances of a pass, use
19307 the pass's clone method, rather than relying on the XNEW/memcpy
19308 within the former make_pass_instance (now add_pass_instance).
19309 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19310 the initial instance of the current pass within the pass manager.
19311
19312 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19313
19314 This is the automated part of the conversion of passes from C
19315 structs to C++ classes.
19316
19317 Patch autogenerated by refactor_passes.py from
19318 https://github.com/davidmalcolm/gcc-refactoring-scripts
19319 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19320
19321 * asan.c (pass_asan): Convert from a global struct to a subclass of
19322 gimple_opt_pass along with...
19323 (pass_data_asan): ...new pass_data instance and...
19324 (make_pass_asan): ...new function.
19325 (pass_asan_O0): Convert from a global struct to a subclass of
19326 gimple_opt_pass along with...
19327 (pass_data_asan_O0): ...new pass_data instance and...
19328 (make_pass_asan_O0): ...new function.
19329 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19330 subclass of rtl_opt_pass along with...
19331 (pass_data_inc_dec): ...new pass_data instance and...
19332 (make_pass_inc_dec): ...new function.
19333 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19334 a subclass of rtl_opt_pass along with...
19335 (pass_data_reorder_blocks): ...new pass_data instance and...
19336 (make_pass_reorder_blocks): ...new function.
19337 (pass_duplicate_computed_gotos): Convert from a global struct to a
19338 subclass of rtl_opt_pass along with...
19339 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19340 (make_pass_duplicate_computed_gotos): ...new function.
19341 (pass_partition_blocks): Convert from a global struct to a subclass of
19342 rtl_opt_pass along with...
19343 (pass_data_partition_blocks): ...new pass_data instance and...
19344 (make_pass_partition_blocks): ...new function.
19345 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19346 struct to a subclass of rtl_opt_pass along with...
19347 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19348 and...
19349 (make_pass_branch_target_load_optimize1): ...new function.
19350 (pass_branch_target_load_optimize2): Convert from a global struct to a
19351 subclass of rtl_opt_pass along with...
19352 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19353 and...
19354 (make_pass_branch_target_load_optimize2): ...new function.
19355 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19356 of rtl_opt_pass along with...
19357 (pass_data_jump): ...new pass_data instance and...
19358 (make_pass_jump): ...new function.
19359 (pass_jump2): Convert from a global struct to a subclass of
19360 rtl_opt_pass along with...
19361 (pass_data_jump2): ...new pass_data instance and...
19362 (make_pass_jump2): ...new function.
19363 * cfgexpand.c (pass_expand): Convert from a global struct to a
19364 subclass of rtl_opt_pass along with...
19365 (pass_data_expand): ...new pass_data instance and...
19366 (make_pass_expand): ...new function.
19367 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19368 of rtl_opt_pass along with...
19369 (pass_data_free_cfg): ...new pass_data instance and...
19370 (make_pass_free_cfg): ...new function.
19371 (pass_into_cfg_layout_mode): Convert from a global struct to a
19372 subclass of rtl_opt_pass along with...
19373 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19374 (make_pass_into_cfg_layout_mode): ...new function.
19375 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19376 subclass of rtl_opt_pass along with...
19377 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19378 (make_pass_outof_cfg_layout_mode): ...new function.
19379 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19380 struct to a subclass of gimple_opt_pass along with...
19381 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19382 (make_pass_build_cgraph_edges): ...new function.
19383 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19384 subclass of gimple_opt_pass along with...
19385 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19386 (make_pass_rebuild_cgraph_edges): ...new function.
19387 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19388 subclass of gimple_opt_pass along with...
19389 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19390 and...
19391 (make_pass_remove_cgraph_callee_edges): ...new function.
19392 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19393 struct to a subclass of rtl_opt_pass along with...
19394 (pass_data_stack_adjustments): ...new pass_data instance and...
19395 (make_pass_stack_adjustments): ...new function.
19396 * combine.c (pass_combine): Convert from a global struct to a subclass
19397 of rtl_opt_pass along with...
19398 (pass_data_combine): ...new pass_data instance and...
19399 (make_pass_combine): ...new function.
19400 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19401 global struct to a subclass of rtl_opt_pass along with...
19402 (pass_data_compare_elim_after_reload): ...new pass_data instance
19403 and...
19404 (make_pass_compare_elim_after_reload): ...new function.
19405 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19406 of rtl_opt_pass along with...
19407 (pass_data_rtl_cprop): ...new pass_data instance and...
19408 (make_pass_rtl_cprop): ...new function.
19409 * cse.c (pass_cse): Convert from a global struct to a subclass of
19410 rtl_opt_pass along with...
19411 (pass_data_cse): ...new pass_data instance and...
19412 (make_pass_cse): ...new function.
19413 (pass_cse2): Convert from a global struct to a subclass of
19414 rtl_opt_pass along with...
19415 (pass_data_cse2): ...new pass_data instance and...
19416 (make_pass_cse2): ...new function.
19417 (pass_cse_after_global_opts): Convert from a global struct to a
19418 subclass of rtl_opt_pass along with...
19419 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19420 (make_pass_cse_after_global_opts): ...new function.
19421 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19422 of rtl_opt_pass along with...
19423 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19424 (make_pass_ud_rtl_dce): ...new function.
19425 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19426 rtl_opt_pass along with...
19427 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19428 (make_pass_fast_rtl_dce): ...new function.
19429 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19430 a subclass of rtl_opt_pass along with...
19431 (pass_data_df_initialize_opt): ...new pass_data instance and...
19432 (make_pass_df_initialize_opt): ...new function.
19433 (pass_df_initialize_no_opt): Convert from a global struct to a
19434 subclass of rtl_opt_pass along with...
19435 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19436 (make_pass_df_initialize_no_opt): ...new function.
19437 (pass_df_finish): Convert from a global struct to a subclass of
19438 rtl_opt_pass along with...
19439 (pass_data_df_finish): ...new pass_data instance and...
19440 (make_pass_df_finish): ...new function.
19441 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19442 rtl_opt_pass along with...
19443 (pass_data_rtl_dse1): ...new pass_data instance and...
19444 (make_pass_rtl_dse1): ...new function.
19445 (pass_rtl_dse2): Convert from a global struct to a subclass of
19446 rtl_opt_pass along with...
19447 (pass_data_rtl_dse2): ...new pass_data instance and...
19448 (make_pass_rtl_dse2): ...new function.
19449 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19450 subclass of rtl_opt_pass along with...
19451 (pass_data_dwarf2_frame): ...new pass_data instance and...
19452 (make_pass_dwarf2_frame): ...new function.
19453 * except.c (pass_set_nothrow_function_flags): Convert from a global
19454 struct to a subclass of rtl_opt_pass along with...
19455 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19456 and...
19457 (make_pass_set_nothrow_function_flags): ...new function.
19458 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19459 subclass of rtl_opt_pass along with...
19460 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19461 and...
19462 (make_pass_convert_to_eh_region_ranges): ...new function.
19463 * final.c (pass_compute_alignments): Convert from a global struct to a
19464 subclass of rtl_opt_pass along with...
19465 (pass_data_compute_alignments): ...new pass_data instance and...
19466 (make_pass_compute_alignments): ...new function.
19467 (pass_final): Convert from a global struct to a subclass of
19468 rtl_opt_pass along with...
19469 (pass_data_final): ...new pass_data instance and...
19470 (make_pass_final): ...new function.
19471 (pass_shorten_branches): Convert from a global struct to a subclass of
19472 rtl_opt_pass along with...
19473 (pass_data_shorten_branches): ...new pass_data instance and...
19474 (make_pass_shorten_branches): ...new function.
19475 (pass_clean_state): Convert from a global struct to a subclass of
19476 rtl_opt_pass along with...
19477 (pass_data_clean_state): ...new pass_data instance and...
19478 (make_pass_clean_state): ...new function.
19479 * function.c (pass_instantiate_virtual_regs): Convert from a global
19480 struct to a subclass of rtl_opt_pass along with...
19481 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19482 (make_pass_instantiate_virtual_regs): ...new function.
19483 (pass_leaf_regs): Convert from a global struct to a subclass of
19484 rtl_opt_pass along with...
19485 (pass_data_leaf_regs): ...new pass_data instance and...
19486 (make_pass_leaf_regs): ...new function.
19487 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19488 subclass of rtl_opt_pass along with...
19489 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19490 and...
19491 (make_pass_thread_prologue_and_epilogue): ...new function.
19492 (pass_match_asm_constraints): Convert from a global struct to a
19493 subclass of rtl_opt_pass along with...
19494 (pass_data_match_asm_constraints): ...new pass_data instance and...
19495 (make_pass_match_asm_constraints): ...new function.
19496 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19497 subclass of rtl_opt_pass along with...
19498 (pass_data_rtl_fwprop): ...new pass_data instance and...
19499 (make_pass_rtl_fwprop): ...new function.
19500 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19501 rtl_opt_pass along with...
19502 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19503 (make_pass_rtl_fwprop_addr): ...new function.
19504 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19505 rtl_opt_pass along with...
19506 (pass_data_rtl_pre): ...new pass_data instance and...
19507 (make_pass_rtl_pre): ...new function.
19508 (pass_rtl_hoist): Convert from a global struct to a subclass of
19509 rtl_opt_pass along with...
19510 (pass_data_rtl_hoist): ...new pass_data instance and...
19511 (make_pass_rtl_hoist): ...new function.
19512 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19513 subclass of gimple_opt_pass along with...
19514 (pass_data_lower_cf): ...new pass_data instance and...
19515 (make_pass_lower_cf): ...new function.
19516 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19517 from a global struct to a subclass of gimple_opt_pass along with...
19518 (pass_data_strength_reduction): ...new pass_data instance and...
19519 (make_pass_strength_reduction): ...new function.
19520 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19521 of rtl_opt_pass along with...
19522 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19523 (make_pass_rtl_ifcvt): ...new function.
19524 (pass_if_after_combine): Convert from a global struct to a subclass of
19525 rtl_opt_pass along with...
19526 (pass_data_if_after_combine): ...new pass_data instance and...
19527 (make_pass_if_after_combine): ...new function.
19528 (pass_if_after_reload): Convert from a global struct to a subclass of
19529 rtl_opt_pass along with...
19530 (pass_data_if_after_reload): ...new pass_data instance and...
19531 (make_pass_if_after_reload): ...new function.
19532 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19533 a subclass of rtl_opt_pass along with...
19534 (pass_data_initialize_regs): ...new pass_data instance and...
19535 (make_pass_initialize_regs): ...new function.
19536 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19537 of ipa_opt_pass_d along with...
19538 (pass_data_ipa_cp): ...new pass_data instance and...
19539 (make_pass_ipa_cp): ...new function.
19540 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19541 global struct to a subclass of gimple_opt_pass along with...
19542 (pass_data_inline_parameters): ...new pass_data instance and...
19543 (make_pass_inline_parameters): ...new function.
19544 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19545 subclass of gimple_opt_pass along with...
19546 (pass_data_early_inline): ...new pass_data instance and...
19547 (make_pass_early_inline): ...new function.
19548 (pass_ipa_inline): Convert from a global struct to a subclass of
19549 ipa_opt_pass_d along with...
19550 (pass_data_ipa_inline): ...new pass_data instance and...
19551 (make_pass_ipa_inline): ...new function.
19552 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19553 struct to a subclass of gimple_opt_pass along with...
19554 (pass_data_local_pure_const): ...new pass_data instance and...
19555 (make_pass_local_pure_const): ...new function.
19556 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19557 ipa_opt_pass_d along with...
19558 (pass_data_ipa_pure_const): ...new pass_data instance and...
19559 (make_pass_ipa_pure_const): ...new function.
19560 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19561 to a subclass of ipa_opt_pass_d along with...
19562 (pass_data_ipa_reference): ...new pass_data instance and...
19563 (make_pass_ipa_reference): ...new function.
19564 * ipa-split.c (pass_split_functions): Convert from a global struct to
19565 a subclass of gimple_opt_pass along with...
19566 (pass_data_split_functions): ...new pass_data instance and...
19567 (make_pass_split_functions): ...new function.
19568 (pass_feedback_split_functions): Convert from a global struct to a
19569 subclass of gimple_opt_pass along with...
19570 (pass_data_feedback_split_functions): ...new pass_data instance and...
19571 (make_pass_feedback_split_functions): ...new function.
19572 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19573 global struct to a subclass of simple_ipa_opt_pass along with...
19574 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19575 instance and...
19576 (make_pass_ipa_function_and_variable_visibility): ...new function.
19577 (pass_ipa_free_inline_summary): Convert from a global struct to a
19578 subclass of simple_ipa_opt_pass along with...
19579 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19580 (make_pass_ipa_free_inline_summary): ...new function.
19581 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19582 subclass of ipa_opt_pass_d along with...
19583 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19584 and...
19585 (make_pass_ipa_whole_program_visibility): ...new function.
19586 (pass_ipa_profile): Convert from a global struct to a subclass of
19587 ipa_opt_pass_d along with...
19588 (pass_data_ipa_profile): ...new pass_data instance and...
19589 (make_pass_ipa_profile): ...new function.
19590 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19591 ipa_opt_pass_d along with...
19592 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19593 (make_pass_ipa_cdtor_merge): ...new function.
19594 * ira.c (pass_ira): Convert from a global struct to a subclass of
19595 rtl_opt_pass along with...
19596 (pass_data_ira): ...new pass_data instance and...
19597 (make_pass_ira): ...new function.
19598 (pass_reload): Convert from a global struct to a subclass of
19599 rtl_opt_pass along with...
19600 (pass_data_reload): ...new pass_data instance and...
19601 (make_pass_reload): ...new function.
19602 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19603 subclass of rtl_opt_pass along with...
19604 (pass_data_cleanup_barriers): ...new pass_data instance and...
19605 (make_pass_cleanup_barriers): ...new function.
19606 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19607 of rtl_opt_pass along with...
19608 (pass_data_loop2): ...new pass_data instance and...
19609 (make_pass_loop2): ...new function.
19610 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19611 rtl_opt_pass along with...
19612 (pass_data_rtl_loop_init): ...new pass_data instance and...
19613 (make_pass_rtl_loop_init): ...new function.
19614 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19615 rtl_opt_pass along with...
19616 (pass_data_rtl_loop_done): ...new pass_data instance and...
19617 (make_pass_rtl_loop_done): ...new function.
19618 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19619 subclass of rtl_opt_pass along with...
19620 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19621 (make_pass_rtl_move_loop_invariants): ...new function.
19622 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19623 rtl_opt_pass along with...
19624 (pass_data_rtl_unswitch): ...new pass_data instance and...
19625 (make_pass_rtl_unswitch): ...new function.
19626 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19627 subclass of rtl_opt_pass along with...
19628 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19629 and...
19630 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19631 (pass_rtl_doloop): Convert from a global struct to a subclass of
19632 rtl_opt_pass along with...
19633 (pass_data_rtl_doloop): ...new pass_data instance and...
19634 (make_pass_rtl_doloop): ...new function.
19635 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19636 a subclass of rtl_opt_pass along with...
19637 (pass_data_lower_subreg): ...new pass_data instance and...
19638 (make_pass_lower_subreg): ...new function.
19639 (pass_lower_subreg2): Convert from a global struct to a subclass of
19640 rtl_opt_pass along with...
19641 (pass_data_lower_subreg2): ...new pass_data instance and...
19642 (make_pass_lower_subreg2): ...new function.
19643 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19644 struct to a subclass of ipa_opt_pass_d along with...
19645 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19646 (make_pass_ipa_lto_gimple_out): ...new function.
19647 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19648 of ipa_opt_pass_d along with...
19649 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19650 (make_pass_ipa_lto_finish_out): ...new function.
19651 * mode-switching.c (pass_mode_switching): Convert from a global struct
19652 to a subclass of rtl_opt_pass along with...
19653 (pass_data_mode_switching): ...new pass_data instance and...
19654 (make_pass_mode_switching): ...new function.
19655 * modulo-sched.c (pass_sms): Convert from a global struct to a
19656 subclass of rtl_opt_pass along with...
19657 (pass_data_sms): ...new pass_data instance and...
19658 (make_pass_sms): ...new function.
19659 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19660 subclass of gimple_opt_pass along with...
19661 (pass_data_expand_omp): ...new pass_data instance and...
19662 (make_pass_expand_omp): ...new function.
19663 (pass_lower_omp): Convert from a global struct to a subclass of
19664 gimple_opt_pass along with...
19665 (pass_data_lower_omp): ...new pass_data instance and...
19666 (make_pass_lower_omp): ...new function.
19667 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19668 of gimple_opt_pass along with...
19669 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19670 (make_pass_diagnose_omp_blocks): ...new function.
19671 * passes.c (pass_early_local_passes): Convert from a global struct to
19672 a subclass of simple_ipa_opt_pass along with...
19673 (pass_data_early_local_passes): ...new pass_data instance and...
19674 (make_pass_early_local_passes): ...new function.
19675 (pass_all_early_optimizations): Convert from a global struct to a
19676 subclass of gimple_opt_pass along with...
19677 (pass_data_all_early_optimizations): ...new pass_data instance and...
19678 (make_pass_all_early_optimizations): ...new function.
19679 (pass_all_optimizations): Convert from a global struct to a subclass
19680 of gimple_opt_pass along with...
19681 (pass_data_all_optimizations): ...new pass_data instance and...
19682 (make_pass_all_optimizations): ...new function.
19683 (pass_all_optimizations_g): Convert from a global struct to a subclass
19684 of gimple_opt_pass along with...
19685 (pass_data_all_optimizations_g): ...new pass_data instance and...
19686 (make_pass_all_optimizations_g): ...new function.
19687 (pass_rest_of_compilation): Convert from a global struct to a subclass
19688 of rtl_opt_pass along with...
19689 (pass_data_rest_of_compilation): ...new pass_data instance and...
19690 (make_pass_rest_of_compilation): ...new function.
19691 (pass_postreload): Convert from a global struct to a subclass of
19692 rtl_opt_pass along with...
19693 (pass_data_postreload): ...new pass_data instance and...
19694 (make_pass_postreload): ...new function.
19695 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19696 subclass of rtl_opt_pass along with...
19697 (pass_data_gcse2): ...new pass_data instance and...
19698 (make_pass_gcse2): ...new function.
19699 * postreload.c (pass_postreload_cse): Convert from a global struct to
19700 a subclass of rtl_opt_pass along with...
19701 (pass_data_postreload_cse): ...new pass_data instance and...
19702 (make_pass_postreload_cse): ...new function.
19703 * predict.c (pass_profile): Convert from a global struct to a subclass
19704 of gimple_opt_pass along with...
19705 (pass_data_profile): ...new pass_data instance and...
19706 (make_pass_profile): ...new function.
19707 (pass_strip_predict_hints): Convert from a global struct to a subclass
19708 of gimple_opt_pass along with...
19709 (pass_data_strip_predict_hints): ...new pass_data instance and...
19710 (make_pass_strip_predict_hints): ...new function.
19711 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19712 of rtl_opt_pass along with...
19713 (pass_data_peephole2): ...new pass_data instance and...
19714 (make_pass_peephole2): ...new function.
19715 (pass_split_all_insns): Convert from a global struct to a subclass of
19716 rtl_opt_pass along with...
19717 (pass_data_split_all_insns): ...new pass_data instance and...
19718 (make_pass_split_all_insns): ...new function.
19719 (pass_split_after_reload): Convert from a global struct to a subclass
19720 of rtl_opt_pass along with...
19721 (pass_data_split_after_reload): ...new pass_data instance and...
19722 (make_pass_split_after_reload): ...new function.
19723 (pass_split_before_regstack): Convert from a global struct to a
19724 subclass of rtl_opt_pass along with...
19725 (pass_data_split_before_regstack): ...new pass_data instance and...
19726 (make_pass_split_before_regstack): ...new function.
19727 (pass_split_before_sched2): Convert from a global struct to a subclass
19728 of rtl_opt_pass along with...
19729 (pass_data_split_before_sched2): ...new pass_data instance and...
19730 (make_pass_split_before_sched2): ...new function.
19731 (pass_split_for_shorten_branches): Convert from a global struct to a
19732 subclass of rtl_opt_pass along with...
19733 (pass_data_split_for_shorten_branches): ...new pass_data instance
19734 and...
19735 (make_pass_split_for_shorten_branches): ...new function.
19736 * ree.c (pass_ree): Convert from a global struct to a subclass of
19737 rtl_opt_pass along with...
19738 (pass_data_ree): ...new pass_data instance and...
19739 (make_pass_ree): ...new function.
19740 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19741 subclass of rtl_opt_pass along with...
19742 (pass_data_stack_regs): ...new pass_data instance and...
19743 (make_pass_stack_regs): ...new function.
19744 (pass_stack_regs_run): Convert from a global struct to a subclass of
19745 rtl_opt_pass along with...
19746 (pass_data_stack_regs_run): ...new pass_data instance and...
19747 (make_pass_stack_regs_run): ...new function.
19748 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19749 subclass of rtl_opt_pass along with...
19750 (pass_data_cprop_hardreg): ...new pass_data instance and...
19751 (make_pass_cprop_hardreg): ...new function.
19752 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19753 subclass of rtl_opt_pass along with...
19754 (pass_data_reginfo_init): ...new pass_data instance and...
19755 (make_pass_reginfo_init): ...new function.
19756 * regmove.c (pass_regmove): Convert from a global struct to a subclass
19757 of rtl_opt_pass along with...
19758 (pass_data_regmove): ...new pass_data instance and...
19759 (make_pass_regmove): ...new function.
19760 * regrename.c (pass_regrename): Convert from a global struct to a
19761 subclass of rtl_opt_pass along with...
19762 (pass_data_regrename): ...new pass_data instance and...
19763 (make_pass_regrename): ...new function.
19764 * reorg.c (pass_delay_slots): Convert from a global struct to a
19765 subclass of rtl_opt_pass along with...
19766 (pass_data_delay_slots): ...new pass_data instance and...
19767 (make_pass_delay_slots): ...new function.
19768 (pass_machine_reorg): Convert from a global struct to a subclass of
19769 rtl_opt_pass along with...
19770 (pass_data_machine_reorg): ...new pass_data instance and...
19771 (make_pass_machine_reorg): ...new function.
19772 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19773 of rtl_opt_pass along with...
19774 (pass_data_sched): ...new pass_data instance and...
19775 (make_pass_sched): ...new function.
19776 (pass_sched2): Convert from a global struct to a subclass of
19777 rtl_opt_pass along with...
19778 (pass_data_sched2): ...new pass_data instance and...
19779 (make_pass_sched2): ...new function.
19780 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19781 to a subclass of rtl_opt_pass along with...
19782 (pass_data_stack_ptr_mod): ...new pass_data instance and...
19783 (make_pass_stack_ptr_mod): ...new function.
19784 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19785 to a subclass of rtl_opt_pass along with...
19786 (pass_data_rtl_store_motion): ...new pass_data instance and...
19787 (make_pass_rtl_store_motion): ...new function.
19788 * tracer.c (pass_tracer): Convert from a global struct to a subclass
19789 of gimple_opt_pass along with...
19790 (pass_data_tracer): ...new pass_data instance and...
19791 (make_pass_tracer): ...new function.
19792 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19793 to a subclass of gimple_opt_pass along with...
19794 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19795 (make_pass_diagnose_tm_blocks): ...new function.
19796 (pass_lower_tm): Convert from a global struct to a subclass of
19797 gimple_opt_pass along with...
19798 (pass_data_lower_tm): ...new pass_data instance and...
19799 (make_pass_lower_tm): ...new function.
19800 (pass_tm_init): Convert from a global struct to a subclass of
19801 gimple_opt_pass along with...
19802 (pass_data_tm_init): ...new pass_data instance and...
19803 (make_pass_tm_init): ...new function.
19804 (pass_tm_mark): Convert from a global struct to a subclass of
19805 gimple_opt_pass along with...
19806 (pass_data_tm_mark): ...new pass_data instance and...
19807 (make_pass_tm_mark): ...new function.
19808 (pass_tm_edges): Convert from a global struct to a subclass of
19809 gimple_opt_pass along with...
19810 (pass_data_tm_edges): ...new pass_data instance and...
19811 (make_pass_tm_edges): ...new function.
19812 (pass_tm_memopt): Convert from a global struct to a subclass of
19813 gimple_opt_pass along with...
19814 (pass_data_tm_memopt): ...new pass_data instance and...
19815 (make_pass_tm_memopt): ...new function.
19816 (pass_ipa_tm): Convert from a global struct to a subclass of
19817 simple_ipa_opt_pass along with...
19818 (pass_data_ipa_tm): ...new pass_data instance and...
19819 (make_pass_ipa_tm): ...new function.
19820 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19821 subclass of gimple_opt_pass along with...
19822 (pass_data_call_cdce): ...new pass_data instance and...
19823 (make_pass_call_cdce): ...new function.
19824 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19825 subclass of gimple_opt_pass along with...
19826 (pass_data_build_cfg): ...new pass_data instance and...
19827 (make_pass_build_cfg): ...new function.
19828 (pass_split_crit_edges): Convert from a global struct to a subclass of
19829 gimple_opt_pass along with...
19830 (pass_data_split_crit_edges): ...new pass_data instance and...
19831 (make_pass_split_crit_edges): ...new function.
19832 (pass_warn_function_return): Convert from a global struct to a
19833 subclass of gimple_opt_pass along with...
19834 (pass_data_warn_function_return): ...new pass_data instance and...
19835 (make_pass_warn_function_return): ...new function.
19836 (pass_warn_function_noreturn): Convert from a global struct to a
19837 subclass of gimple_opt_pass along with...
19838 (pass_data_warn_function_noreturn): ...new pass_data instance and...
19839 (make_pass_warn_function_noreturn): ...new function.
19840 (pass_warn_unused_result): Convert from a global struct to a subclass
19841 of gimple_opt_pass along with...
19842 (pass_data_warn_unused_result): ...new pass_data instance and...
19843 (make_pass_warn_unused_result): ...new function.
19844 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19845 a subclass of gimple_opt_pass along with...
19846 (pass_data_merge_phi): ...new pass_data instance and...
19847 (make_pass_merge_phi): ...new function.
19848 * tree-complex.c (pass_lower_complex): Convert from a global struct to
19849 a subclass of gimple_opt_pass along with...
19850 (pass_data_lower_complex): ...new pass_data instance and...
19851 (make_pass_lower_complex): ...new function.
19852 (pass_lower_complex_O0): Convert from a global struct to a subclass of
19853 gimple_opt_pass along with...
19854 (pass_data_lower_complex_O0): ...new pass_data instance and...
19855 (make_pass_lower_complex_O0): ...new function.
19856 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19857 subclass of gimple_opt_pass along with...
19858 (pass_data_lower_eh): ...new pass_data instance and...
19859 (make_pass_lower_eh): ...new function.
19860 (pass_refactor_eh): Convert from a global struct to a subclass of
19861 gimple_opt_pass along with...
19862 (pass_data_refactor_eh): ...new pass_data instance and...
19863 (make_pass_refactor_eh): ...new function.
19864 (pass_lower_resx): Convert from a global struct to a subclass of
19865 gimple_opt_pass along with...
19866 (pass_data_lower_resx): ...new pass_data instance and...
19867 (make_pass_lower_resx): ...new function.
19868 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19869 of gimple_opt_pass along with...
19870 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19871 (make_pass_lower_eh_dispatch): ...new function.
19872 (pass_cleanup_eh): Convert from a global struct to a subclass of
19873 gimple_opt_pass along with...
19874 (pass_data_cleanup_eh): ...new pass_data instance and...
19875 (make_pass_cleanup_eh): ...new function.
19876 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19877 to a subclass of simple_ipa_opt_pass along with...
19878 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19879 (make_pass_ipa_lower_emutls): ...new function.
19880 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19881 a subclass of gimple_opt_pass along with...
19882 (pass_data_if_conversion): ...new pass_data instance and...
19883 (make_pass_if_conversion): ...new function.
19884 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19885 subclass of gimple_opt_pass along with...
19886 (pass_data_build_ssa): ...new pass_data instance and...
19887 (make_pass_build_ssa): ...new function.
19888 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19889 global struct to a subclass of gimple_opt_pass along with...
19890 (pass_data_loop_distribution): ...new pass_data instance and...
19891 (make_pass_loop_distribution): ...new function.
19892 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19893 subclass of gimple_opt_pass along with...
19894 (pass_data_mudflap_1): ...new pass_data instance and...
19895 (make_pass_mudflap_1): ...new function.
19896 (pass_mudflap_2): Convert from a global struct to a subclass of
19897 gimple_opt_pass along with...
19898 (pass_data_mudflap_2): ...new pass_data instance and...
19899 (make_pass_mudflap_2): ...new function.
19900 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19901 subclass of gimple_opt_pass along with...
19902 (pass_data_mudflap_1): ...new pass_data instance and...
19903 (make_pass_mudflap_1): ...new function.
19904 (pass_mudflap_2): Convert from a global struct to a subclass of
19905 gimple_opt_pass along with...
19906 (pass_data_mudflap_2): ...new pass_data instance and...
19907 (make_pass_mudflap_2): ...new function.
19908 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19909 gimple_opt_pass along with...
19910 (pass_data_nrv): ...new pass_data instance and...
19911 (make_pass_nrv): ...new function.
19912 (pass_return_slot): Convert from a global struct to a subclass of
19913 gimple_opt_pass along with...
19914 (pass_data_return_slot): ...new pass_data instance and...
19915 (make_pass_return_slot): ...new function.
19916 * tree-object-size.c (pass_object_sizes): Convert from a global struct
19917 to a subclass of gimple_opt_pass along with...
19918 (pass_data_object_sizes): ...new pass_data instance and...
19919 (make_pass_object_sizes): ...new function.
19920 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19921 global struct to a subclass of gimple_opt_pass along with...
19922 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19923 and...
19924 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19925 (pass_fixup_cfg): Convert from a global struct to a subclass of
19926 gimple_opt_pass along with...
19927 (pass_data_fixup_cfg): ...new pass_data instance and...
19928 (make_pass_fixup_cfg): ...new function.
19929 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19930 (make_pass_mudflap_1): ...new function.
19931 (pass_mudflap_2): Replace declaration with that of...
19932 (make_pass_mudflap_2): ...new function.
19933 (pass_asan): Replace declaration with that of...
19934 (make_pass_asan): ...new function.
19935 (pass_asan_O0): Replace declaration with that of...
19936 (make_pass_asan_O0): ...new function.
19937 (pass_tsan): Replace declaration with that of...
19938 (make_pass_tsan): ...new function.
19939 (pass_tsan_O0): Replace declaration with that of...
19940 (make_pass_tsan_O0): ...new function.
19941 (pass_lower_cf): Replace declaration with that of...
19942 (make_pass_lower_cf): ...new function.
19943 (pass_refactor_eh): Replace declaration with that of...
19944 (make_pass_refactor_eh): ...new function.
19945 (pass_lower_eh): Replace declaration with that of...
19946 (make_pass_lower_eh): ...new function.
19947 (pass_lower_eh_dispatch): Replace declaration with that of...
19948 (make_pass_lower_eh_dispatch): ...new function.
19949 (pass_lower_resx): Replace declaration with that of...
19950 (make_pass_lower_resx): ...new function.
19951 (pass_build_cfg): Replace declaration with that of...
19952 (make_pass_build_cfg): ...new function.
19953 (pass_early_tree_profile): Replace declaration with that of...
19954 (make_pass_early_tree_profile): ...new function.
19955 (pass_cleanup_eh): Replace declaration with that of...
19956 (make_pass_cleanup_eh): ...new function.
19957 (pass_sra): Replace declaration with that of...
19958 (make_pass_sra): ...new function.
19959 (pass_sra_early): Replace declaration with that of...
19960 (make_pass_sra_early): ...new function.
19961 (pass_early_ipa_sra): Replace declaration with that of...
19962 (make_pass_early_ipa_sra): ...new function.
19963 (pass_tail_recursion): Replace declaration with that of...
19964 (make_pass_tail_recursion): ...new function.
19965 (pass_tail_calls): Replace declaration with that of...
19966 (make_pass_tail_calls): ...new function.
19967 (pass_tree_loop): Replace declaration with that of...
19968 (make_pass_tree_loop): ...new function.
19969 (pass_tree_loop_init): Replace declaration with that of...
19970 (make_pass_tree_loop_init): ...new function.
19971 (pass_lim): Replace declaration with that of...
19972 (make_pass_lim): ...new function.
19973 (pass_tree_unswitch): Replace declaration with that of...
19974 (make_pass_tree_unswitch): ...new function.
19975 (pass_predcom): Replace declaration with that of...
19976 (make_pass_predcom): ...new function.
19977 (pass_iv_canon): Replace declaration with that of...
19978 (make_pass_iv_canon): ...new function.
19979 (pass_scev_cprop): Replace declaration with that of...
19980 (make_pass_scev_cprop): ...new function.
19981 (pass_empty_loop): Replace declaration with that of...
19982 (make_pass_empty_loop): ...new function.
19983 (pass_record_bounds): Replace declaration with that of...
19984 (make_pass_record_bounds): ...new function.
19985 (pass_graphite): Replace declaration with that of...
19986 (make_pass_graphite): ...new function.
19987 (pass_graphite_transforms): Replace declaration with that of...
19988 (make_pass_graphite_transforms): ...new function.
19989 (pass_if_conversion): Replace declaration with that of...
19990 (make_pass_if_conversion): ...new function.
19991 (pass_loop_distribution): Replace declaration with that of...
19992 (make_pass_loop_distribution): ...new function.
19993 (pass_vectorize): Replace declaration with that of...
19994 (make_pass_vectorize): ...new function.
19995 (pass_slp_vectorize): Replace declaration with that of...
19996 (make_pass_slp_vectorize): ...new function.
19997 (pass_complete_unroll): Replace declaration with that of...
19998 (make_pass_complete_unroll): ...new function.
19999 (pass_complete_unrolli): Replace declaration with that of...
20000 (make_pass_complete_unrolli): ...new function.
20001 (pass_parallelize_loops): Replace declaration with that of...
20002 (make_pass_parallelize_loops): ...new function.
20003 (pass_loop_prefetch): Replace declaration with that of...
20004 (make_pass_loop_prefetch): ...new function.
20005 (pass_iv_optimize): Replace declaration with that of...
20006 (make_pass_iv_optimize): ...new function.
20007 (pass_tree_loop_done): Replace declaration with that of...
20008 (make_pass_tree_loop_done): ...new function.
20009 (pass_ch): Replace declaration with that of...
20010 (make_pass_ch): ...new function.
20011 (pass_ccp): Replace declaration with that of...
20012 (make_pass_ccp): ...new function.
20013 (pass_phi_only_cprop): Replace declaration with that of...
20014 (make_pass_phi_only_cprop): ...new function.
20015 (pass_build_ssa): Replace declaration with that of...
20016 (make_pass_build_ssa): ...new function.
20017 (pass_build_alias): Replace declaration with that of...
20018 (make_pass_build_alias): ...new function.
20019 (pass_build_ealias): Replace declaration with that of...
20020 (make_pass_build_ealias): ...new function.
20021 (pass_dominator): Replace declaration with that of...
20022 (make_pass_dominator): ...new function.
20023 (pass_dce): Replace declaration with that of...
20024 (make_pass_dce): ...new function.
20025 (pass_dce_loop): Replace declaration with that of...
20026 (make_pass_dce_loop): ...new function.
20027 (pass_cd_dce): Replace declaration with that of...
20028 (make_pass_cd_dce): ...new function.
20029 (pass_call_cdce): Replace declaration with that of...
20030 (make_pass_call_cdce): ...new function.
20031 (pass_merge_phi): Replace declaration with that of...
20032 (make_pass_merge_phi): ...new function.
20033 (pass_split_crit_edges): Replace declaration with that of...
20034 (make_pass_split_crit_edges): ...new function.
20035 (pass_pre): Replace declaration with that of...
20036 (make_pass_pre): ...new function.
20037 (pass_profile): Replace declaration with that of...
20038 (make_pass_profile): ...new function.
20039 (pass_strip_predict_hints): Replace declaration with that of...
20040 (make_pass_strip_predict_hints): ...new function.
20041 (pass_lower_complex_O0): Replace declaration with that of...
20042 (make_pass_lower_complex_O0): ...new function.
20043 (pass_lower_complex): Replace declaration with that of...
20044 (make_pass_lower_complex): ...new function.
20045 (pass_lower_vector): Replace declaration with that of...
20046 (make_pass_lower_vector): ...new function.
20047 (pass_lower_vector_ssa): Replace declaration with that of...
20048 (make_pass_lower_vector_ssa): ...new function.
20049 (pass_lower_omp): Replace declaration with that of...
20050 (make_pass_lower_omp): ...new function.
20051 (pass_diagnose_omp_blocks): Replace declaration with that of...
20052 (make_pass_diagnose_omp_blocks): ...new function.
20053 (pass_expand_omp): Replace declaration with that of...
20054 (make_pass_expand_omp): ...new function.
20055 (pass_expand_omp_ssa): Replace declaration with that of...
20056 (make_pass_expand_omp_ssa): ...new function.
20057 (pass_object_sizes): Replace declaration with that of...
20058 (make_pass_object_sizes): ...new function.
20059 (pass_strlen): Replace declaration with that of...
20060 (make_pass_strlen): ...new function.
20061 (pass_fold_builtins): Replace declaration with that of...
20062 (make_pass_fold_builtins): ...new function.
20063 (pass_stdarg): Replace declaration with that of...
20064 (make_pass_stdarg): ...new function.
20065 (pass_early_warn_uninitialized): Replace declaration with that of...
20066 (make_pass_early_warn_uninitialized): ...new function.
20067 (pass_late_warn_uninitialized): Replace declaration with that of...
20068 (make_pass_late_warn_uninitialized): ...new function.
20069 (pass_cse_reciprocals): Replace declaration with that of...
20070 (make_pass_cse_reciprocals): ...new function.
20071 (pass_cse_sincos): Replace declaration with that of...
20072 (make_pass_cse_sincos): ...new function.
20073 (pass_optimize_bswap): Replace declaration with that of...
20074 (make_pass_optimize_bswap): ...new function.
20075 (pass_optimize_widening_mul): Replace declaration with that of...
20076 (make_pass_optimize_widening_mul): ...new function.
20077 (pass_warn_function_return): Replace declaration with that of...
20078 (make_pass_warn_function_return): ...new function.
20079 (pass_warn_function_noreturn): Replace declaration with that of...
20080 (make_pass_warn_function_noreturn): ...new function.
20081 (pass_cselim): Replace declaration with that of...
20082 (make_pass_cselim): ...new function.
20083 (pass_phiopt): Replace declaration with that of...
20084 (make_pass_phiopt): ...new function.
20085 (pass_forwprop): Replace declaration with that of...
20086 (make_pass_forwprop): ...new function.
20087 (pass_phiprop): Replace declaration with that of...
20088 (make_pass_phiprop): ...new function.
20089 (pass_tree_ifcombine): Replace declaration with that of...
20090 (make_pass_tree_ifcombine): ...new function.
20091 (pass_dse): Replace declaration with that of...
20092 (make_pass_dse): ...new function.
20093 (pass_nrv): Replace declaration with that of...
20094 (make_pass_nrv): ...new function.
20095 (pass_rename_ssa_copies): Replace declaration with that of...
20096 (make_pass_rename_ssa_copies): ...new function.
20097 (pass_sink_code): Replace declaration with that of...
20098 (make_pass_sink_code): ...new function.
20099 (pass_fre): Replace declaration with that of...
20100 (make_pass_fre): ...new function.
20101 (pass_check_data_deps): Replace declaration with that of...
20102 (make_pass_check_data_deps): ...new function.
20103 (pass_copy_prop): Replace declaration with that of...
20104 (make_pass_copy_prop): ...new function.
20105 (pass_vrp): Replace declaration with that of...
20106 (make_pass_vrp): ...new function.
20107 (pass_uncprop): Replace declaration with that of...
20108 (make_pass_uncprop): ...new function.
20109 (pass_return_slot): Replace declaration with that of...
20110 (make_pass_return_slot): ...new function.
20111 (pass_reassoc): Replace declaration with that of...
20112 (make_pass_reassoc): ...new function.
20113 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20114 (make_pass_rebuild_cgraph_edges): ...new function.
20115 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20116 (make_pass_remove_cgraph_callee_edges): ...new function.
20117 (pass_build_cgraph_edges): Replace declaration with that of...
20118 (make_pass_build_cgraph_edges): ...new function.
20119 (pass_local_pure_const): Replace declaration with that of...
20120 (make_pass_local_pure_const): ...new function.
20121 (pass_tracer): Replace declaration with that of...
20122 (make_pass_tracer): ...new function.
20123 (pass_warn_unused_result): Replace declaration with that of...
20124 (make_pass_warn_unused_result): ...new function.
20125 (pass_diagnose_tm_blocks): Replace declaration with that of...
20126 (make_pass_diagnose_tm_blocks): ...new function.
20127 (pass_lower_tm): Replace declaration with that of...
20128 (make_pass_lower_tm): ...new function.
20129 (pass_tm_init): Replace declaration with that of...
20130 (make_pass_tm_init): ...new function.
20131 (pass_tm_mark): Replace declaration with that of...
20132 (make_pass_tm_mark): ...new function.
20133 (pass_tm_memopt): Replace declaration with that of...
20134 (make_pass_tm_memopt): ...new function.
20135 (pass_tm_edges): Replace declaration with that of...
20136 (make_pass_tm_edges): ...new function.
20137 (pass_split_functions): Replace declaration with that of...
20138 (make_pass_split_functions): ...new function.
20139 (pass_feedback_split_functions): Replace declaration with that of...
20140 (make_pass_feedback_split_functions): ...new function.
20141 (pass_strength_reduction): Replace declaration with that of...
20142 (make_pass_strength_reduction): ...new function.
20143 (pass_ipa_lower_emutls): Replace declaration with that of...
20144 (make_pass_ipa_lower_emutls): ...new function.
20145 (pass_ipa_function_and_variable_visibility): Replace declaration with
20146 that of...
20147 (make_pass_ipa_function_and_variable_visibility): ...new function.
20148 (pass_ipa_tree_profile): Replace declaration with that of...
20149 (make_pass_ipa_tree_profile): ...new function.
20150 (pass_early_local_passes): Replace declaration with that of...
20151 (make_pass_early_local_passes): ...new function.
20152 (pass_ipa_whole_program_visibility): Replace declaration with that
20153 of...
20154 (make_pass_ipa_whole_program_visibility): ...new function.
20155 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20156 (make_pass_ipa_lto_gimple_out): ...new function.
20157 (pass_ipa_increase_alignment): Replace declaration with that of...
20158 (make_pass_ipa_increase_alignment): ...new function.
20159 (pass_ipa_inline): Replace declaration with that of...
20160 (make_pass_ipa_inline): ...new function.
20161 (pass_ipa_free_lang_data): Replace declaration with that of...
20162 (make_pass_ipa_free_lang_data): ...new function.
20163 (pass_ipa_free_inline_summary): Replace declaration with that of...
20164 (make_pass_ipa_free_inline_summary): ...new function.
20165 (pass_ipa_cp): Replace declaration with that of...
20166 (make_pass_ipa_cp): ...new function.
20167 (pass_ipa_reference): Replace declaration with that of...
20168 (make_pass_ipa_reference): ...new function.
20169 (pass_ipa_pure_const): Replace declaration with that of...
20170 (make_pass_ipa_pure_const): ...new function.
20171 (pass_ipa_pta): Replace declaration with that of...
20172 (make_pass_ipa_pta): ...new function.
20173 (pass_ipa_lto_finish_out): Replace declaration with that of...
20174 (make_pass_ipa_lto_finish_out): ...new function.
20175 (pass_ipa_tm): Replace declaration with that of...
20176 (make_pass_ipa_tm): ...new function.
20177 (pass_ipa_profile): Replace declaration with that of...
20178 (make_pass_ipa_profile): ...new function.
20179 (pass_ipa_cdtor_merge): Replace declaration with that of...
20180 (make_pass_ipa_cdtor_merge): ...new function.
20181 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20182 of...
20183 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20184 (pass_init_datastructures): Replace declaration with that of...
20185 (make_pass_init_datastructures): ...new function.
20186 (pass_fixup_cfg): Replace declaration with that of...
20187 (make_pass_fixup_cfg): ...new function.
20188 (pass_expand): Replace declaration with that of...
20189 (make_pass_expand): ...new function.
20190 (pass_instantiate_virtual_regs): Replace declaration with that of...
20191 (make_pass_instantiate_virtual_regs): ...new function.
20192 (pass_rtl_fwprop): Replace declaration with that of...
20193 (make_pass_rtl_fwprop): ...new function.
20194 (pass_rtl_fwprop_addr): Replace declaration with that of...
20195 (make_pass_rtl_fwprop_addr): ...new function.
20196 (pass_jump): Replace declaration with that of...
20197 (make_pass_jump): ...new function.
20198 (pass_jump2): Replace declaration with that of...
20199 (make_pass_jump2): ...new function.
20200 (pass_lower_subreg): Replace declaration with that of...
20201 (make_pass_lower_subreg): ...new function.
20202 (pass_cse): Replace declaration with that of...
20203 (make_pass_cse): ...new function.
20204 (pass_fast_rtl_dce): Replace declaration with that of...
20205 (make_pass_fast_rtl_dce): ...new function.
20206 (pass_ud_rtl_dce): Replace declaration with that of...
20207 (make_pass_ud_rtl_dce): ...new function.
20208 (pass_rtl_dce): Replace declaration with that of...
20209 (make_pass_rtl_dce): ...new function.
20210 (pass_rtl_dse1): Replace declaration with that of...
20211 (make_pass_rtl_dse1): ...new function.
20212 (pass_rtl_dse2): Replace declaration with that of...
20213 (make_pass_rtl_dse2): ...new function.
20214 (pass_rtl_dse3): Replace declaration with that of...
20215 (make_pass_rtl_dse3): ...new function.
20216 (pass_rtl_cprop): Replace declaration with that of...
20217 (make_pass_rtl_cprop): ...new function.
20218 (pass_rtl_pre): Replace declaration with that of...
20219 (make_pass_rtl_pre): ...new function.
20220 (pass_rtl_hoist): Replace declaration with that of...
20221 (make_pass_rtl_hoist): ...new function.
20222 (pass_rtl_store_motion): Replace declaration with that of...
20223 (make_pass_rtl_store_motion): ...new function.
20224 (pass_cse_after_global_opts): Replace declaration with that of...
20225 (make_pass_cse_after_global_opts): ...new function.
20226 (pass_rtl_ifcvt): Replace declaration with that of...
20227 (make_pass_rtl_ifcvt): ...new function.
20228 (pass_into_cfg_layout_mode): Replace declaration with that of...
20229 (make_pass_into_cfg_layout_mode): ...new function.
20230 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20231 (make_pass_outof_cfg_layout_mode): ...new function.
20232 (pass_loop2): Replace declaration with that of...
20233 (make_pass_loop2): ...new function.
20234 (pass_rtl_loop_init): Replace declaration with that of...
20235 (make_pass_rtl_loop_init): ...new function.
20236 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20237 (make_pass_rtl_move_loop_invariants): ...new function.
20238 (pass_rtl_unswitch): Replace declaration with that of...
20239 (make_pass_rtl_unswitch): ...new function.
20240 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20241 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20242 (pass_rtl_doloop): Replace declaration with that of...
20243 (make_pass_rtl_doloop): ...new function.
20244 (pass_rtl_loop_done): Replace declaration with that of...
20245 (make_pass_rtl_loop_done): ...new function.
20246 (pass_web): Replace declaration with that of...
20247 (make_pass_web): ...new function.
20248 (pass_cse2): Replace declaration with that of...
20249 (make_pass_cse2): ...new function.
20250 (pass_df_initialize_opt): Replace declaration with that of...
20251 (make_pass_df_initialize_opt): ...new function.
20252 (pass_df_initialize_no_opt): Replace declaration with that of...
20253 (make_pass_df_initialize_no_opt): ...new function.
20254 (pass_reginfo_init): Replace declaration with that of...
20255 (make_pass_reginfo_init): ...new function.
20256 (pass_inc_dec): Replace declaration with that of...
20257 (make_pass_inc_dec): ...new function.
20258 (pass_stack_ptr_mod): Replace declaration with that of...
20259 (make_pass_stack_ptr_mod): ...new function.
20260 (pass_initialize_regs): Replace declaration with that of...
20261 (make_pass_initialize_regs): ...new function.
20262 (pass_combine): Replace declaration with that of...
20263 (make_pass_combine): ...new function.
20264 (pass_if_after_combine): Replace declaration with that of...
20265 (make_pass_if_after_combine): ...new function.
20266 (pass_ree): Replace declaration with that of...
20267 (make_pass_ree): ...new function.
20268 (pass_partition_blocks): Replace declaration with that of...
20269 (make_pass_partition_blocks): ...new function.
20270 (pass_match_asm_constraints): Replace declaration with that of...
20271 (make_pass_match_asm_constraints): ...new function.
20272 (pass_regmove): Replace declaration with that of...
20273 (make_pass_regmove): ...new function.
20274 (pass_split_all_insns): Replace declaration with that of...
20275 (make_pass_split_all_insns): ...new function.
20276 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20277 (make_pass_fast_rtl_byte_dce): ...new function.
20278 (pass_lower_subreg2): Replace declaration with that of...
20279 (make_pass_lower_subreg2): ...new function.
20280 (pass_mode_switching): Replace declaration with that of...
20281 (make_pass_mode_switching): ...new function.
20282 (pass_sms): Replace declaration with that of...
20283 (make_pass_sms): ...new function.
20284 (pass_sched): Replace declaration with that of...
20285 (make_pass_sched): ...new function.
20286 (pass_ira): Replace declaration with that of...
20287 (make_pass_ira): ...new function.
20288 (pass_reload): Replace declaration with that of...
20289 (make_pass_reload): ...new function.
20290 (pass_clean_state): Replace declaration with that of...
20291 (make_pass_clean_state): ...new function.
20292 (pass_branch_prob): Replace declaration with that of...
20293 (make_pass_branch_prob): ...new function.
20294 (pass_value_profile_transformations): Replace declaration with that
20295 of...
20296 (make_pass_value_profile_transformations): ...new function.
20297 (pass_postreload_cse): Replace declaration with that of...
20298 (make_pass_postreload_cse): ...new function.
20299 (pass_gcse2): Replace declaration with that of...
20300 (make_pass_gcse2): ...new function.
20301 (pass_split_after_reload): Replace declaration with that of...
20302 (make_pass_split_after_reload): ...new function.
20303 (pass_branch_target_load_optimize1): Replace declaration with that
20304 of...
20305 (make_pass_branch_target_load_optimize1): ...new function.
20306 (pass_thread_prologue_and_epilogue): Replace declaration with that
20307 of...
20308 (make_pass_thread_prologue_and_epilogue): ...new function.
20309 (pass_stack_adjustments): Replace declaration with that of...
20310 (make_pass_stack_adjustments): ...new function.
20311 (pass_peephole2): Replace declaration with that of...
20312 (make_pass_peephole2): ...new function.
20313 (pass_if_after_reload): Replace declaration with that of...
20314 (make_pass_if_after_reload): ...new function.
20315 (pass_regrename): Replace declaration with that of...
20316 (make_pass_regrename): ...new function.
20317 (pass_cprop_hardreg): Replace declaration with that of...
20318 (make_pass_cprop_hardreg): ...new function.
20319 (pass_reorder_blocks): Replace declaration with that of...
20320 (make_pass_reorder_blocks): ...new function.
20321 (pass_branch_target_load_optimize2): Replace declaration with that
20322 of...
20323 (make_pass_branch_target_load_optimize2): ...new function.
20324 (pass_leaf_regs): Replace declaration with that of...
20325 (make_pass_leaf_regs): ...new function.
20326 (pass_split_before_sched2): Replace declaration with that of...
20327 (make_pass_split_before_sched2): ...new function.
20328 (pass_compare_elim_after_reload): Replace declaration with that of...
20329 (make_pass_compare_elim_after_reload): ...new function.
20330 (pass_sched2): Replace declaration with that of...
20331 (make_pass_sched2): ...new function.
20332 (pass_stack_regs): Replace declaration with that of...
20333 (make_pass_stack_regs): ...new function.
20334 (pass_stack_regs_run): Replace declaration with that of...
20335 (make_pass_stack_regs_run): ...new function.
20336 (pass_df_finish): Replace declaration with that of...
20337 (make_pass_df_finish): ...new function.
20338 (pass_compute_alignments): Replace declaration with that of...
20339 (make_pass_compute_alignments): ...new function.
20340 (pass_duplicate_computed_gotos): Replace declaration with that of...
20341 (make_pass_duplicate_computed_gotos): ...new function.
20342 (pass_variable_tracking): Replace declaration with that of...
20343 (make_pass_variable_tracking): ...new function.
20344 (pass_free_cfg): Replace declaration with that of...
20345 (make_pass_free_cfg): ...new function.
20346 (pass_machine_reorg): Replace declaration with that of...
20347 (make_pass_machine_reorg): ...new function.
20348 (pass_cleanup_barriers): Replace declaration with that of...
20349 (make_pass_cleanup_barriers): ...new function.
20350 (pass_delay_slots): Replace declaration with that of...
20351 (make_pass_delay_slots): ...new function.
20352 (pass_split_for_shorten_branches): Replace declaration with that of...
20353 (make_pass_split_for_shorten_branches): ...new function.
20354 (pass_split_before_regstack): Replace declaration with that of...
20355 (make_pass_split_before_regstack): ...new function.
20356 (pass_convert_to_eh_region_ranges): Replace declaration with that
20357 of...
20358 (make_pass_convert_to_eh_region_ranges): ...new function.
20359 (pass_shorten_branches): Replace declaration with that of...
20360 (make_pass_shorten_branches): ...new function.
20361 (pass_set_nothrow_function_flags): Replace declaration with that of...
20362 (make_pass_set_nothrow_function_flags): ...new function.
20363 (pass_dwarf2_frame): Replace declaration with that of...
20364 (make_pass_dwarf2_frame): ...new function.
20365 (pass_final): Replace declaration with that of...
20366 (make_pass_final): ...new function.
20367 (pass_rtl_seqabstr): Replace declaration with that of...
20368 (make_pass_rtl_seqabstr): ...new function.
20369 (pass_release_ssa_names): Replace declaration with that of...
20370 (make_pass_release_ssa_names): ...new function.
20371 (pass_early_inline): Replace declaration with that of...
20372 (make_pass_early_inline): ...new function.
20373 (pass_inline_parameters): Replace declaration with that of...
20374 (make_pass_inline_parameters): ...new function.
20375 (pass_update_address_taken): Replace declaration with that of...
20376 (make_pass_update_address_taken): ...new function.
20377 (pass_convert_switch): Replace declaration with that of...
20378 (make_pass_convert_switch): ...new function.
20379 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20380 to a subclass of simple_ipa_opt_pass along with...
20381 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20382 (make_pass_ipa_tree_profile): ...new function.
20383 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20384 subclass of gimple_opt_pass along with...
20385 (pass_data_sra_early): ...new pass_data instance and...
20386 (make_pass_sra_early): ...new function.
20387 (pass_sra): Convert from a global struct to a subclass of
20388 gimple_opt_pass along with...
20389 (pass_data_sra): ...new pass_data instance and...
20390 (make_pass_sra): ...new function.
20391 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20392 gimple_opt_pass along with...
20393 (pass_data_early_ipa_sra): ...new pass_data instance and...
20394 (make_pass_early_ipa_sra): ...new function.
20395 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20396 subclass of gimple_opt_pass along with...
20397 (pass_data_ccp): ...new pass_data instance and...
20398 (make_pass_ccp): ...new function.
20399 (pass_fold_builtins): Convert from a global struct to a subclass of
20400 gimple_opt_pass along with...
20401 (pass_data_fold_builtins): ...new pass_data instance and...
20402 (make_pass_fold_builtins): ...new function.
20403 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20404 subclass of gimple_opt_pass along with...
20405 (pass_data_copy_prop): ...new pass_data instance and...
20406 (make_pass_copy_prop): ...new function.
20407 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20408 global struct to a subclass of gimple_opt_pass along with...
20409 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20410 (make_pass_rename_ssa_copies): ...new function.
20411 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20412 subclass of gimple_opt_pass along with...
20413 (pass_data_dce): ...new pass_data instance and...
20414 (make_pass_dce): ...new function.
20415 (pass_dce_loop): Convert from a global struct to a subclass of
20416 gimple_opt_pass along with...
20417 (pass_data_dce_loop): ...new pass_data instance and...
20418 (make_pass_dce_loop): ...new function.
20419 (pass_cd_dce): Convert from a global struct to a subclass of
20420 gimple_opt_pass along with...
20421 (pass_data_cd_dce): ...new pass_data instance and...
20422 (make_pass_cd_dce): ...new function.
20423 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20424 subclass of gimple_opt_pass along with...
20425 (pass_data_dominator): ...new pass_data instance and...
20426 (make_pass_dominator): ...new function.
20427 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20428 gimple_opt_pass along with...
20429 (pass_data_phi_only_cprop): ...new pass_data instance and...
20430 (make_pass_phi_only_cprop): ...new function.
20431 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20432 subclass of gimple_opt_pass along with...
20433 (pass_data_dse): ...new pass_data instance and...
20434 (make_pass_dse): ...new function.
20435 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20436 a subclass of gimple_opt_pass along with...
20437 (pass_data_forwprop): ...new pass_data instance and...
20438 (make_pass_forwprop): ...new function.
20439 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20440 struct to a subclass of gimple_opt_pass along with...
20441 (pass_data_tree_ifcombine): ...new pass_data instance and...
20442 (make_pass_tree_ifcombine): ...new function.
20443 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20444 subclass of gimple_opt_pass along with...
20445 (pass_data_ch): ...new pass_data instance and...
20446 (make_pass_ch): ...new function.
20447 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20448 subclass of gimple_opt_pass along with...
20449 (pass_data_tree_loop): ...new pass_data instance and...
20450 (make_pass_tree_loop): ...new function.
20451 (pass_tree_loop_init): Convert from a global struct to a subclass of
20452 gimple_opt_pass along with...
20453 (pass_data_tree_loop_init): ...new pass_data instance and...
20454 (make_pass_tree_loop_init): ...new function.
20455 (pass_lim): Convert from a global struct to a subclass of
20456 gimple_opt_pass along with...
20457 (pass_data_lim): ...new pass_data instance and...
20458 (make_pass_lim): ...new function.
20459 (pass_tree_unswitch): Convert from a global struct to a subclass of
20460 gimple_opt_pass along with...
20461 (pass_data_tree_unswitch): ...new pass_data instance and...
20462 (make_pass_tree_unswitch): ...new function.
20463 (pass_predcom): Convert from a global struct to a subclass of
20464 gimple_opt_pass along with...
20465 (pass_data_predcom): ...new pass_data instance and...
20466 (make_pass_predcom): ...new function.
20467 (pass_vectorize): Convert from a global struct to a subclass of
20468 gimple_opt_pass along with...
20469 (pass_data_vectorize): ...new pass_data instance and...
20470 (make_pass_vectorize): ...new function.
20471 (pass_graphite): Convert from a global struct to a subclass of
20472 gimple_opt_pass along with...
20473 (pass_data_graphite): ...new pass_data instance and...
20474 (make_pass_graphite): ...new function.
20475 (pass_graphite_transforms): Convert from a global struct to a subclass
20476 of gimple_opt_pass along with...
20477 (pass_data_graphite_transforms): ...new pass_data instance and...
20478 (make_pass_graphite_transforms): ...new function.
20479 (pass_check_data_deps): Convert from a global struct to a subclass of
20480 gimple_opt_pass along with...
20481 (pass_data_check_data_deps): ...new pass_data instance and...
20482 (make_pass_check_data_deps): ...new function.
20483 (pass_iv_canon): Convert from a global struct to a subclass of
20484 gimple_opt_pass along with...
20485 (pass_data_iv_canon): ...new pass_data instance and...
20486 (make_pass_iv_canon): ...new function.
20487 (pass_scev_cprop): Convert from a global struct to a subclass of
20488 gimple_opt_pass along with...
20489 (pass_data_scev_cprop): ...new pass_data instance and...
20490 (make_pass_scev_cprop): ...new function.
20491 (pass_record_bounds): Convert from a global struct to a subclass of
20492 gimple_opt_pass along with...
20493 (pass_data_record_bounds): ...new pass_data instance and...
20494 (make_pass_record_bounds): ...new function.
20495 (pass_complete_unroll): Convert from a global struct to a subclass of
20496 gimple_opt_pass along with...
20497 (pass_data_complete_unroll): ...new pass_data instance and...
20498 (make_pass_complete_unroll): ...new function.
20499 (pass_complete_unrolli): Convert from a global struct to a subclass of
20500 gimple_opt_pass along with...
20501 (pass_data_complete_unrolli): ...new pass_data instance and...
20502 (make_pass_complete_unrolli): ...new function.
20503 (pass_parallelize_loops): Convert from a global struct to a subclass
20504 of gimple_opt_pass along with...
20505 (pass_data_parallelize_loops): ...new pass_data instance and...
20506 (make_pass_parallelize_loops): ...new function.
20507 (pass_loop_prefetch): Convert from a global struct to a subclass of
20508 gimple_opt_pass along with...
20509 (pass_data_loop_prefetch): ...new pass_data instance and...
20510 (make_pass_loop_prefetch): ...new function.
20511 (pass_iv_optimize): Convert from a global struct to a subclass of
20512 gimple_opt_pass along with...
20513 (pass_data_iv_optimize): ...new pass_data instance and...
20514 (make_pass_iv_optimize): ...new function.
20515 (pass_tree_loop_done): Convert from a global struct to a subclass of
20516 gimple_opt_pass along with...
20517 (pass_data_tree_loop_done): ...new pass_data instance and...
20518 (make_pass_tree_loop_done): ...new function.
20519 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20520 struct to a subclass of gimple_opt_pass along with...
20521 (pass_data_cse_reciprocals): ...new pass_data instance and...
20522 (make_pass_cse_reciprocals): ...new function.
20523 (pass_cse_sincos): Convert from a global struct to a subclass of
20524 gimple_opt_pass along with...
20525 (pass_data_cse_sincos): ...new pass_data instance and...
20526 (make_pass_cse_sincos): ...new function.
20527 (pass_optimize_bswap): Convert from a global struct to a subclass of
20528 gimple_opt_pass along with...
20529 (pass_data_optimize_bswap): ...new pass_data instance and...
20530 (make_pass_optimize_bswap): ...new function.
20531 (pass_optimize_widening_mul): Convert from a global struct to a
20532 subclass of gimple_opt_pass along with...
20533 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20534 (make_pass_optimize_widening_mul): ...new function.
20535 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20536 subclass of gimple_opt_pass along with...
20537 (pass_data_phiopt): ...new pass_data instance and...
20538 (make_pass_phiopt): ...new function.
20539 (pass_cselim): Convert from a global struct to a subclass of
20540 gimple_opt_pass along with...
20541 (pass_data_cselim): ...new pass_data instance and...
20542 (make_pass_cselim): ...new function.
20543 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20544 subclass of gimple_opt_pass along with...
20545 (pass_data_phiprop): ...new pass_data instance and...
20546 (make_pass_phiprop): ...new function.
20547 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20548 subclass of gimple_opt_pass along with...
20549 (pass_data_pre): ...new pass_data instance and...
20550 (make_pass_pre): ...new function.
20551 (pass_fre): Convert from a global struct to a subclass of
20552 gimple_opt_pass along with...
20553 (pass_data_fre): ...new pass_data instance and...
20554 (make_pass_fre): ...new function.
20555 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20556 subclass of gimple_opt_pass along with...
20557 (pass_data_reassoc): ...new pass_data instance and...
20558 (make_pass_reassoc): ...new function.
20559 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20560 subclass of gimple_opt_pass along with...
20561 (pass_data_sink_code): ...new pass_data instance and...
20562 (make_pass_sink_code): ...new function.
20563 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20564 subclass of gimple_opt_pass along with...
20565 (pass_data_strlen): ...new pass_data instance and...
20566 (make_pass_strlen): ...new function.
20567 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20568 struct to a subclass of gimple_opt_pass along with...
20569 (pass_data_build_alias): ...new pass_data instance and...
20570 (make_pass_build_alias): ...new function.
20571 (pass_build_ealias): Convert from a global struct to a subclass of
20572 gimple_opt_pass along with...
20573 (pass_data_build_ealias): ...new pass_data instance and...
20574 (make_pass_build_ealias): ...new function.
20575 (pass_ipa_pta): Convert from a global struct to a subclass of
20576 simple_ipa_opt_pass along with...
20577 (pass_data_ipa_pta): ...new pass_data instance and...
20578 (make_pass_ipa_pta): ...new function.
20579 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20580 subclass of gimple_opt_pass along with...
20581 (pass_data_uncprop): ...new pass_data instance and...
20582 (make_pass_uncprop): ...new function.
20583 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20584 global struct to a subclass of gimple_opt_pass along with...
20585 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20586 (make_pass_late_warn_uninitialized): ...new function.
20587 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20588 to a subclass of gimple_opt_pass along with...
20589 (pass_data_init_datastructures): ...new pass_data instance and...
20590 (make_pass_init_datastructures): ...new function.
20591 (pass_early_warn_uninitialized): Convert from a global struct to a
20592 subclass of gimple_opt_pass along with...
20593 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20594 (make_pass_early_warn_uninitialized): ...new function.
20595 (pass_update_address_taken): Convert from a global struct to a
20596 subclass of gimple_opt_pass along with...
20597 (pass_data_update_address_taken): ...new pass_data instance and...
20598 (make_pass_update_address_taken): ...new function.
20599 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20600 struct to a subclass of gimple_opt_pass along with...
20601 (pass_data_release_ssa_names): ...new pass_data instance and...
20602 (make_pass_release_ssa_names): ...new function.
20603 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20604 subclass of gimple_opt_pass along with...
20605 (pass_data_stdarg): ...new pass_data instance and...
20606 (make_pass_stdarg): ...new function.
20607 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20608 global struct to a subclass of gimple_opt_pass along with...
20609 (pass_data_convert_switch): ...new pass_data instance and...
20610 (make_pass_convert_switch): ...new function.
20611 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20612 to a subclass of gimple_opt_pass along with...
20613 (pass_data_tail_recursion): ...new pass_data instance and...
20614 (make_pass_tail_recursion): ...new function.
20615 (pass_tail_calls): Convert from a global struct to a subclass of
20616 gimple_opt_pass along with...
20617 (pass_data_tail_calls): ...new pass_data instance and...
20618 (make_pass_tail_calls): ...new function.
20619 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20620 struct to a subclass of gimple_opt_pass along with...
20621 (pass_data_lower_vector): ...new pass_data instance and...
20622 (make_pass_lower_vector): ...new function.
20623 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20624 gimple_opt_pass along with...
20625 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20626 (make_pass_lower_vector_ssa): ...new function.
20627 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20628 to a subclass of gimple_opt_pass along with...
20629 (pass_data_slp_vectorize): ...new pass_data instance and...
20630 (make_pass_slp_vectorize): ...new function.
20631 (pass_ipa_increase_alignment): Convert from a global struct to a
20632 subclass of simple_ipa_opt_pass along with...
20633 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20634 (make_pass_ipa_increase_alignment): ...new function.
20635 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20636 gimple_opt_pass along with...
20637 (pass_data_vrp): ...new pass_data instance and...
20638 (make_pass_vrp): ...new function.
20639 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20640 subclass of simple_ipa_opt_pass along with...
20641 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20642 (make_pass_ipa_free_lang_data): ...new function.
20643 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20644 gimple_opt_pass along with...
20645 (pass_data_tsan): ...new pass_data instance and...
20646 (make_pass_tsan): ...new function.
20647 (pass_tsan_O0): Convert from a global struct to a subclass of
20648 gimple_opt_pass along with...
20649 (pass_data_tsan_O0): ...new pass_data instance and...
20650 (make_pass_tsan_O0): ...new function.
20651 * var-tracking.c (pass_variable_tracking): Convert from a global
20652 struct to a subclass of rtl_opt_pass along with...
20653 (pass_data_variable_tracking): ...new pass_data instance and...
20654 (make_pass_variable_tracking): ...new function.
20655 * web.c (pass_web): Convert from a global struct to a subclass of
20656 rtl_opt_pass along with...
20657 (pass_data_web): ...new pass_data instance and...
20658 (make_pass_web): ...new function.
20659 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20660 declaration with that of...
20661 (make_pass_mode_switch_use): ...new function.
20662 (pass_resolve_sw_modes): Replace declaration with that of...
20663 (make_pass_resolve_sw_modes): ...new function.
20664 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20665 from a global struct to a subclass of rtl_opt_pass along with...
20666 (pass_data_mode_switch_use): ...new pass_data instance and...
20667 (make_pass_mode_switch_use): ...new function.
20668 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20669 from a global struct to a subclass of rtl_opt_pass along with...
20670 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20671 (make_pass_resolve_sw_modes): ...new function.
20672 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20673 struct to a subclass of rtl_opt_pass along with...
20674 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20675 (make_pass_insert_vzeroupper): ...new function.
20676 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20677 global struct to a subclass of rtl_opt_pass along with...
20678 (pass_data_work_around_errata): ...new pass_data instance and...
20679 (make_pass_work_around_errata): ...new function.
20680 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20681 struct to a subclass of rtl_opt_pass along with...
20682 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20683 (make_pass_mips_machine_reorg2): ...new function.
20684
20685 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20686
20687 * passes.c (pass_manager::operator new): New.
20688
20689 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20690
20691 Handwritten part of conversion of passes to C++ classes.
20692
20693 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20694 (toplev.o): Add dep on PASS_MANAGER_H.
20695 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20696 of early local pases to reflect this moving from a global to a
20697 member of gcc::pass_manager.
20698 (cgraph_add_new_function): Likewise.
20699 * lto-cgraph.c (lto_output_node): Update for conversion of
20700 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20701 * passes.c (opt_pass::clone): New.
20702 (opt_pass::gate): New.
20703 (opt_pass::execute): New.
20704 (opt_pass::opt_pass): New.
20705 (pass_manager::execute_early_local_passes): New.
20706 (pass_manager::execute_pass_mode_switching): new.
20707 (finish_optimization_passes): Convert to...
20708 (pass_manager::finish_optimization_passes): ...this.
20709 (finish_optimization_passes): Update for conversion of passes to
20710 C++ classes.
20711 (register_dump_files_1): Use has_gate since we cannot portably
20712 check a vtable entry against NULL.
20713 (dump_one_pass): Likewise.
20714 (ipa_write_summaries_2): Likewise.
20715 (ipa_write_optimization_summaries_1): Likewise.
20716 (ipa_read_summaries_1): Likewise.
20717 (ipa_read_optimization_summaries_1): Likewise.
20718 (execute_ipa_stmt_fixups): Likewise.
20719 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20720 pass-creation functions rather than wiring up globals, and
20721 storing the results in fields of pass_manager generated using
20722 pass-instances.def.
20723 (pass_manager::dump_profile_report): Update for conversion of
20724 passes to C++ classes.
20725 (pass_manager::execute_ipa_summary_passes): Likewise.
20726 (execute_one_ipa_transform_pass): Likewise.
20727 (execute_one_pass): Use has_gate and has_execute since we cannot
20728 portably check a vtable entry against NULL.
20729 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20730 (pass_manager): Use pass-instances.def to add fields for the
20731 various pass instances.
20732 * toplev.c (finalize): Update for move of
20733 finish_optimization_passes to a method of gcc::pass_manager.
20734 * toplev.h (finish_optimization_passes): Move to method of class
20735 pass_manager.
20736 * tree-pass.h (struct pass_data): New.
20737 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20738 (opt_pass::gate): Convert to virtual function.
20739 (opt_pass::~opt_pass): New.
20740 (opt_pass::clone): New.
20741 (opt_pass::execute): Convert to virtual function.
20742 (opt_pass::opt_pass): New.
20743 (opt_pass::ctxt_): new.
20744 (gimple_opt_pass): Convert to subclass of opt_pass.
20745 (gimple_opt_pass::gimple_opt_pass): New.
20746 (rtl_opt_pass): Convert to subclass of opt_pass.
20747 (rtl_opt_pass::rtl_opt_pass): New.
20748 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20749 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20750 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20751 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20752 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20753 invocation of pass_mode_switching to reflect this moving from a
20754 global to a member of gcc::pass_manager.
20755 (ix86_option_override): Rework how pass_insert_vzeroupper is
20756 added to the pass_manager to reflect autogenerated changes.
20757 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20758
20759 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
20760
20761 PR rtl-optimization/57708
20762 * recog.c (peep2_find_free_register): Validate all regs in a
20763 multi-reg mode.
20764
20765 2013-08-05 Jan Hubicka <jh@suse.cz>
20766
20767 PR lto/57602
20768 * cgraph.c (verify_cgraph_node): Accept local flags from other
20769 partitions.
20770 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20771 (function_and_variable_visibility): Likewise.
20772 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20773
20774 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20775
20776 * graph.c (init_graph_slim_pretty_print): Remove.
20777 (print_graph_cfg): Do not call it. Use local pretty printer.
20778 (start_graph_dump): Likewise.
20779
20780 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20781
20782 * gimple-pretty-print.c (buffer): Remove.
20783 (initialized): Likewise.
20784 (maybe_init_pretty_print): Likewise.
20785 (print_gimple_stmt): Do not call it. Use non-static local
20786 pretty_printer variable.
20787 (print_gimple_expr): Likewise.
20788 (print_gimple_seq): Likewise.
20789 (gimple_dump_bb): Likewise.
20790
20791 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20792
20793 * asan.c (asan_pp): Remove.
20794 (asan_pp_initialized): Likewise.
20795 (asan_pp_initialize): Likewise.
20796 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
20797 (asan_emit_stack_protection): Tidy. Use local pretty printer.
20798 (asan_add_global): Likewise.
20799
20800 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20801
20802 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
20803 * diagnostic.h (diagnostic_flush_buffer): Adjust.
20804 * pretty-print.c (pp_formatted_text_data): Likewise.
20805 (pp_indent): Rename from pp_base_indent.
20806 (pp_format): Rename from pp_base_format.
20807 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20808 (pp_format_verbatim): Rename from pp_base_format_verbatim.
20809 (pp_flush): Rename from pp_base_flush.
20810 (pp_set_line_maximum_length): Rename from
20811 pp_base_set_line_maximum_length.
20812 (pp_clear_output_area): Rename from pp_base_clear_output_area.
20813 (pp_set_prefix): Rename from pp_base_set_prefix.
20814 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20815 (pp_emit_prefix): Rename from pp_base_emit_prefix.
20816 (pp_append_text): Rename from pp_base_append_text.
20817 (pp_formatted_text): Rename from pp_base_formatted_text.
20818 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20819 (pp_remaining_character_count_for_line): Rename from
20820 pp_base_remaining_character_count_for_line.
20821 (pp_newline): Rename from pp_base_newline.
20822 (pp_character): Rename from pp_base_character.
20823 (pp_string): Rename from pp_base_string.
20824 (pp_maybe_space): Rename from pp_base_maybe_space.
20825 * asan.c (asan_pp_string): Adjust.
20826 (asan_emit_stack_protection): Likewise.
20827 (asan_add_global): Likewise.
20828 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20829 * tree-mudflap.c (mf_varname_tree): Likewise.
20830 * tree-pretty-print.c (pp_tree_identifier): Rename from
20831 pp_base_tree_identifier.
20832 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20833 Declare as function.
20834
20835 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20836
20837 * pretty-print.h (pp_bar_bar): New.
20838 (pp_ampersand_ampersand): Likewise.
20839 (pp_less_equal): Likewise.
20840 (pp_greater_equal): Likewise.
20841 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20842 printer functions instead of pp_string or operators and punctuators.
20843 (dump_gimple_call): Likewise.
20844 (dump_gimple_omp_for): Likewise.
20845 (dump_gimple_transaction): Likewise.
20846 (dump_gimple_phi): Likewise.
20847 (pp_gimple_stmt_1): Likewise.
20848 * sched-vis.c (print_insn): Likewise.
20849 * tree-mudflap.c (mf_varname_tree): Likewise.
20850 * tree-pretty-print.c (dump_block_node): Likewise.
20851 (dump_generic_node): Likewise.
20852
20853 2013-08-02 Jan Hubicka <jh@suse.cz>
20854
20855 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20856 boundaries.
20857 * lto-streamer-out.c (tree_is_indexable): Results decls and
20858 parm decls are not indexable.
20859 (DFS_write_tree_body): Do not follow args and results.
20860 (hash_tree): Likewise.
20861 (output_functions): Rearrange so struct function is needed
20862 only when real body is output; be able to also ouptut abstract
20863 functions; output DECL_ARGUMENTS and DECL_RESULT.
20864 (lto_output): When not in WPA, ale store abstract functions.
20865 (write_symbol): Do not care about RESULT_DECL.
20866 (output_symbol_p): Handle correctly sbtract decls.
20867 * lto-streamer-in.c (input_function): Rearrange so struct
20868 function can be NULL at entry; allow streaming of
20869 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20870 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20871 sanity check during LTO.
20872 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20873 RESULT_DECl and DECL_ARGUMENTS.
20874 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20875 Likewise.
20876
20877 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20878
20879 * pretty-print.h (pp_underscore): New.
20880 (pp_comma): Tidy.
20881 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20882 printer functions instead of pp_character.
20883 (dump_binary_rhs): Likewise.
20884 (dump_ternary_rhs): Likewise.
20885 (dump_gimple_call_args): Likewise.
20886 (pp_points_to_solution): Likewise.
20887 (dump_gimple_call): Likewise.
20888 (dump_gimple_switch): Likewise.
20889 (dump_gimple_cond): Likewise.
20890 (dump_gimple_bind): Likewise.
20891 (dump_gimple_try): Likewise.
20892 (dump_gimple_omp_for): Likewise.
20893 (dump_gimple_omp_continue): Likewise.
20894 (dump_gimple_omp_single): Likewise.
20895 (dump_gimple_omp_sections): Likewise.
20896 (dump_gimple_omp_block): Likewise.
20897 (dump_gimple_omp_critical): Likewise.
20898 (dump_gimple_transaction): Likewise.
20899 (dump_gimple_asm): Likewise.
20900 (dump_gimple_phi): Likewise.
20901 (dump_gimple_omp_parallel): Likewise.
20902 (dump_gimple_omp_task): Likewise.
20903 (dump_gimple_omp_atomic_load): Likewise.
20904 (dump_gimple_omp_atomic_store): Likewise.
20905 (dump_gimple_mem_ops): Likewise.
20906 (pp_gimple_stmt_1): Likewise.
20907 (pp_cfg_jump): Likewise.
20908 (dump_implicit_edges): Likewise.
20909 (gimple_dump_bb_for_graph): Likewise.
20910 * graph.c (draw_cfg_node): Likewise.
20911 * langhooks.c (lhd_print_error_function): Likewise.
20912 * sched-vis.c (print_exp): Likewise.
20913 (print_value): Likewise.
20914 (print_pattern): Likewise.
20915 (print_insn): Likewise.
20916 (rtl_dump_bb_for_graph): Likewise.
20917 * tree-pretty-print.c (dump_function_declaration): Likewise.
20918 (dump_array_domain): Likewise.
20919 (dump_omp_clause): Likewise.
20920 (dump_location): Likewise.
20921 (dump_generic_node): Likewise.
20922 (print_struct_decl): Likewise.
20923 * diagnostic.c (diagnostic_show_locus): Use pp_space.
20924
20925 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20926
20927 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20928 candidate table when replacing a candidate statement.
20929 (replace_rhs_if_not_dup): Likewise.
20930 (replace_one_candidate): Likewise.
20931
20932 2013-08-02 Jan Hubicka <jh@suse.cz>
20933 Martin Liska <marxin.liska@gmail.com>
20934
20935 * cgraphunit.c (add_new_function): Fix logic when adding from
20936 late IPA pass.
20937 (assemble_thunk): Rename to ...
20938 (expand_thunk); .. this one; export; get it working with
20939 general functions; make produced gimple valid.
20940 * cgraph.h (expand_thunk): Declare.
20941
20942 2013-08-02 Jan Hubicka <jh@suse.cz>
20943
20944 * ipa-cp.c (gather_context_independent_values): Use
20945 ipa_get_param_move_cost.
20946 (get_replacement_map): Remove PARAM; move parameter folding
20947 into tree-inline.c
20948 (create_specialized_node): Update.
20949 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20950 assert that we have gimple body; update move_cost.
20951 (count_formal_params): Assert that we have gimple body.
20952 (ipa_dump_param): New function.
20953 (ipa_alloc_node_params): Break out from ...
20954 (ipa_initialize_node_params): ... here.
20955 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20956 (ipa_write_node_info): Stream move costs.
20957 (ipa_read_node_info): Read move costs.
20958 (ipa_update_after_lto_read): Do not recompute node params.
20959 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20960 (ipa_get_param): Check we are not in WPA.
20961 (ipa_get_param_move_cost): New.
20962 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20963 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20964 parm numbers to be present.
20965
20966 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20967
20968 PR rtl-optimization/58048
20969 * lra-constraints.c (process_alt_operands): Don't check asm
20970 operand on register.
20971
20972 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
20973
20974 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20975 the implied StoreLoad barrier for atomic operations if before.
20976
20977 2013-08-02 Jan Hubicka <jh@suse.cz>
20978 Martin Liska <marxin.liska@gmail.com>
20979
20980 * cgraph.c (cgraph_function_body_availability): Do not check
20981 cgraph flags.
20982 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20983 symtab_node_availability): Declare.
20984 * ipa.c (can_replace_by_local_alias): New.
20985 (function_and_variable_visibility): Use it.
20986 * symtab.c (symtab_for_node_and_aliases,
20987 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20988
20989 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20990
20991 PR rtl-optimization/57963
20992 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20993 (lra_constraints): Use them.
20994
20995 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
20996
20997 * config/arm/types.md (define_attr "type"): Add "load_acq"
20998 and "store_rel".
20999 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21000 changes.
21001 (cortex_a53_store1): Likewise.
21002
21003 2013-08-01 Jan Hubicka <jh@suse.cz>
21004
21005 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21006 partitions are not needed.
21007
21008 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21009
21010 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21011 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21012 MAYBE_NON_Q_CLASS_P where appropriate.
21013
21014 2013-08-01 Jan Hubicka <jh@suse.cz>
21015
21016 * cgraph.h (release_function_body): Declare.
21017 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21018 of unused delcarations.
21019
21020 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21021
21022 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21023 RTL form when subtracting a constant.
21024
21025 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21026
21027 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21028 Generate canonical plus rtx with negated immediate instead of minus
21029 where appropriate.
21030 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21031
21032 2013-08-01 Jan Hubicka <jh@suse.cz>
21033
21034 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21035 (cgraph_release_function_body): Likewise.
21036 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21037 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21038 to used_as_abstract_origin.
21039 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21040 symbols used as abstract origins.
21041 * cgraphunit.c (analyze_functions): Update.
21042 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21043 used_as_abstract_origin.
21044 * tree-inline.c (tree_function_versioning): Update
21045 used_as_abstract_origin; be ready for DECL_RESULT and
21046 DECL_ARGUMENTS to be NULL.
21047
21048 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21049 for abstract functions.
21050 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21051 real symbols.
21052
21053 2013-08-01 Jan Hubicka <jh@suse.cz>
21054
21055 * profile.c (compute_value_histograms): Fix thinko.
21056
21057 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21058
21059 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21060 aarch-common-protos.h to extra_headers.
21061 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21062 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21063 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21064
21065 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21066
21067 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21068 Include "../arm/types.md". Define "type" attribute for all patterns.
21069 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21070 attribute changes.
21071
21072 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21073
21074 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21075 to support power8 load fusion.
21076 (fusion_gpr_mem_load): Likewise.
21077
21078 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21079
21080 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21081 declarations for power8 load fusion.
21082 (emit_fusion_gpr_load): Likewise.
21083
21084 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21085 tuning for power8, turn on fusion mode by default. Turn on sign
21086 extending fusion mode if normal fusion mode is on, and we are at
21087 -O2 or -O3.
21088 (fusion_gpr_load_p): New function, return true if we can fuse an
21089 addis instruction with a dependent load to a GPR.
21090 (emit_fusion_gpr_load): Emit the instructions for power8 load
21091 fusion to GPRs.
21092
21093 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21094 (VSX load fusion peepholes): New peepholes to fuse together an
21095 addi instruction with a VSX load instruction.
21096
21097 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21098 peepholes to fuse an addis instruction with a load to a GPR base
21099 register. If we are supporting sign extending fusions, convert
21100 sign extending loads to zero extending loads and add an explicit
21101 sign extension.
21102
21103 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21104
21105 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21106 aarch-common-protos.h to extra_headers.
21107 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21108 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21109 (arm_early_store_addr_dep): Likewise.
21110 (arm_no_early_alu_shift_dep): Likewise.
21111 (arm_no_early_alu_shift_value_dep): Likewise.
21112 (arm_no_early_mul_dep): Likewise.
21113 (arm_no_early_store_addr_dep): Likewise.
21114 (arm_mac_accumulator_is_mul_result): Likewise.
21115 (arm_mac_accumulator_is_result): Likewise.
21116 * config/arm/aarch-common.c: ... here. New file.
21117 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21118 here to ...
21119 (arm_early_store_addr_dep): Likewise.
21120 (arm_no_early_alu_shift_dep): Likewise.
21121 (arm_no_early_alu_shift_value_dep): Likewise.
21122 (arm_no_early_mul_dep): Likewise.
21123 (arm_no_early_store_addr_dep): Likewise.
21124 (arm_mac_accumulator_is_mul_result): Likewise.
21125 (arm_mac_accumulator_is_result): Likewise.
21126 * config/arm/aarch-common-protos.h: ... here. New file.
21127 * config/arm/t-arm (aarch-common.o): Define.
21128
21129 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21130
21131 * config/arm/arm.md: Include new file "types.md".
21132 (define_attr "type"): Move from here to ...
21133 (define_attr "mul32"): Likewise.
21134 (define_attr "mul64"): Likewise.
21135 * config/arm/types.md: ... here. New file.
21136
21137 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21138
21139 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21140 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21141
21142 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21143
21144 * gen-pass-instances.awk: Fix offset of substr().
21145
21146 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21147
21148 * Makefile.in (pass-instances.def): New.
21149 (passes.o): Replace dependency on passes.def with one on
21150 pass-instances.def
21151
21152 * gen-pass-instances.awk: New.
21153
21154 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21155 rather than passes.def, updating local definition of NEXT_PASS
21156 macro to add an extra NUM parameter (currently unused).
21157
21158 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21159
21160 * Makefile.in (PASS_MANAGER_H): New.
21161 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21162 (passes.o): Likewise.
21163 (statistics.o): Likewise.
21164 (cgraphunit.o): Likewise.
21165 (context.o): Depend on PASS_MANAGER_H.
21166
21167 * pass_manager.h: New.
21168
21169 * cgraphunit.c (cgraph_add_new_function): Update for moves
21170 of globals to fields of pass_manager.
21171 (analyze_function): Likewise.
21172 (expand_function): Likewise.
21173 (ipa_passes): Likewise.
21174 (compile): Likewise.
21175
21176 * context.c (context::context): New.
21177 * context.h (context::context): New.
21178 (context::get_passes): New.
21179 (context::passes_): New.
21180
21181 * lto-cgraph.c (input_node): Update for moves of globals to
21182 fields of pass_manager.
21183
21184 * passes.c (all_passes): Remove, in favor of a field of the
21185 same name within the new class pass_manager.
21186 (all_small_ipa_passes): Likewise.
21187 (all_lowering_passes): Likewise.
21188 (all_regular_ipa_passes): Likewise.
21189 (all_late_ipa_passes): Likewise.
21190 (all_lto_gen_passes): Likewise.
21191 (passes_by_id): Likewise.
21192 (passes_by_id_size): Likewise.
21193 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21194 the new class pass_manager.
21195 (set_pass_for_id): Convert to...
21196 (pass_manager::set_pass_for_id): ...method.
21197 (get_pass_for_id): Convert to...
21198 (pass_manager::get_pass_for_id): ...method.
21199 (register_one_dump_file): Move body of implementation into...
21200 (pass_manager::register_one_dump_file): ...here.
21201 (register_dump_files_1): Convert to...
21202 (pass_manager::register_dump_files_1): ...method.
21203 (register_dump_files): Convert to...
21204 (pass_manager::register_dump_files): ...method.
21205 (create_pass_tab): Update for moves of globals to fields of
21206 pass_manager.
21207 (dump_passes): Move body of implementation into...
21208 (pass_manager::dump_passes): ...here.
21209 (register_pass): Move body of implementation into...
21210 (pass_manager::register_pass): ...here.
21211 (init_optimization_passes): Convert into...
21212 (pass_manager::pass_manager): ...constructor for new
21213 pass_manager class, and initialize the pass_lists array.
21214 (check_profile_consistency): Update for moves of globals to
21215 fields of pass_manager.
21216 (dump_profile_report): Move body of implementation into...
21217 (pass_manager::dump_profile_report): ...here.
21218 (ipa_write_summaries_1): Update for moves of pass lists from
21219 being globals to fields of pass_manager.
21220 (ipa_write_optimization_summaries): Likewise.
21221 (ipa_read_summaries): Likewise.
21222 (ipa_read_optimization_summaries): Likewise.
21223 (execute_all_ipa_stmt_fixups): Likewise.
21224
21225 * statistics.c (statistics_fini): Update for moves of globals to
21226 fields of pass_manager.
21227
21228 * toplev.c (general_init): Replace call to
21229 init_optimization_passes with construction of the pass_manager
21230 instance.
21231
21232 * tree-pass.h (all_passes): Remove, in favor of a field of the
21233 same name within the new class pass_manager.
21234 (all_small_ipa_passes): Likewise.
21235 (all_lowering_passes): Likewise.
21236 (all_regular_ipa_passes): Likewise.
21237 (all_lto_gen_passes): Likewise.
21238 (all_late_ipa_passes): Likewise.
21239 (passes_by_id): Likewise.
21240 (passes_by_id_size): Likewise.
21241 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21242 the new class pass_manager.
21243 (get_pass_for_id): Remove.
21244
21245 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21246
21247 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21248 configs.
21249
21250 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21251
21252 * arm.md (mulhi3): New expand pattern.
21253
21254 2013-07-30 Jan Hubicka <jh@suse.cz>
21255 Martin Liska <marxin.liska@gmail.com>
21256
21257 * profile.c (compute_value_histograms): Do not ICE when
21258 there is mismatch only on some counters.
21259
21260 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21261
21262 PR rtl-optimization/57637
21263 * function.c (move_insn_for_shrink_wrap): Also check the
21264 GEN set of the LIVE problem for the liveness analysis
21265 if it exists, otherwise give up.
21266
21267 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21268
21269 PR tree-optimization/57993
21270 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21271 replaced statement in the candidate table.
21272 (phi_add_costs): Return infinite cost when the hidden basis does
21273 not dominate all phis on which the candidate is dependent.
21274 (replace_one_candidate): Record replaced statement in the
21275 candidate table.
21276
21277 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21278
21279 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21280 (ashlv2si3): New expander.
21281 (*ashlv2si3_i): New define_insn_and_split.
21282 * predicates.md (float_operation): Allow patterns with three
21283 basic sub-patterns.
21284
21285 PR rtl-optimization/58021
21286 * mode-switching.c (create_pre_exit): Always split off preceding
21287 insns if we are not at the basic block head.
21288
21289 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21290
21291 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21292 (UCLIBC_DYNAMIC_LINKER): New macro.
21293 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21294 `-mnan=2008'.
21295 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21296 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21297 `-mnan=2008'.
21298 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21299 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21300 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21301 for SF and DF modes. Use ieee_quad_format for TF mode.
21302 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21303 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21304 (mips_option_override): Handle `-mnan=legacy'.
21305 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21306 `-mabs=2008' and `-mnan=2008'.
21307 (OPTION_DEFAULT_SPECS): Add "nan" default.
21308 (ASM_SPEC): Handle `-mnan='.
21309 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21310 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21311 comment accordingly.
21312 (neg<mode>2): Likewise.
21313 * config/mips/mips.opt (mabs, mnan): New options.
21314 * doc/install.texi (Configuration): Document `--with-nan=' option.
21315 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21316 `-mnan=' options.
21317 (MIPS Options): Document them.
21318 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21319 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21320 * configure: Regenerate.
21321 * config.in: Regenerate.
21322
21323 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21324
21325 * config/i386/i386.md (float post-reload splitters): Do not check
21326 for subregs of SSE registers.
21327
21328 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21329 H.J. Lu <hongjiu.lu@intel.com>
21330
21331 PR target/57954
21332 PR target/57988
21333 * config/i386/i386.md (post-reload splitter
21334 to avoid partial SSE reg dependency stalls): New pattern.
21335
21336 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21337
21338 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21339
21340 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21341
21342 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21343 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21344
21345 2013-07-26 Cary Coutant <ccoutant@google.com>
21346
21347 * dwarf2out.c (die_checksum_ordered): Don't include template
21348 instantiations in signature.
21349 (is_template_parameter): New function.
21350 (is_template_instantiation): New function.
21351 (generate_skeleton_bottom_up): Don't include template instantiations
21352 in type unit DIE.
21353 (generate_skeleton): Likewise.
21354 (break_out_comdat_types): Move recursive call to break out nested
21355 types earlier.
21356 (prune_unused_types_mark_generic_parms_dies): Call
21357 is_template_parameter.
21358
21359 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21360
21361 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21362 uses vector registers.
21363 * config/aarch64/iterators.md: Add attributes rtn and vas.
21364
21365 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21366 Richard Earnshaw <richard.earnshaw@arm.com>
21367
21368 * combine.c (simplify_comparison): Re-canonicalize operands
21369 where appropriate.
21370 * config/arm/arm.md (movcond_addsi): New splitter.
21371
21372 2013-07-25 Sterling Augustine <saugustine@google.com>
21373
21374 * dwarf2out.c (size_of_pubnames): Move code to...
21375 (include_pubname_in_output): ...here. New.
21376 (want_pubnames): Rearrange.
21377 (output_pubnames): Call include_pubname_in_output. Move assertion.
21378
21379 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21380
21381 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21382
21383 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21384
21385 PR target/38836
21386 * doc/extend.texi: Remove obsolete builtins. Fix
21387 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21388
21389 2013-07-25 Jan Hubicka <jh@suse.cz>
21390
21391 * cgraph.c (release_function_body): Break out from ...
21392 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21393 and DECL_ARGUMENTS.
21394 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21395 old_tree in the map.
21396 (create_specialized_node): Update.
21397 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21398 into index.
21399 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21400 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21401 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21402 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21403 DECL_RESULT.
21404
21405 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21406
21407 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21408 addsi3_carryin_alt2_<optab>): Correct output template.
21409
21410 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21411
21412 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21413 Adjust for arm_restrict_it.
21414 Remove trailing whitespace.
21415
21416 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21417
21418 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21419 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21420
21421 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21422
21423 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21424
21425 PR rtl-optimization/57960
21426 * lra-constraints.c (process_alt_operands): Use the right mode
21427 when checking strict_low.
21428
21429 2013-07-25 Jan Hubicka <jh@suse.cz>
21430
21431 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21432 * cgraph.c (cgraph_remove_node): Do not release function body
21433 when in cgraph streaming.
21434 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21435 in other partitions are not considered reachable; fix handling of
21436 clones.
21437
21438 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21439
21440 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21441
21442 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21443
21444 PR target/19599
21445 PR target/57731
21446 PR target/57837
21447 * config/arm/arm.md ("*sibcall_insn): Replace use of
21448 Ss with US. Adjust output for v5 and v4t.
21449 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21450
21451 * config/arm/constraints.md ("Ss"): Rename to US.
21452
21453 2013-07-25 Terry Guo <terry.guo@arm.com>
21454
21455 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21456 shift_add/shift_sub0/shift_sub1 RTXs.
21457
21458 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21459 Anton Blanchard <anton@au1.ibm.com>
21460
21461 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21462 (altivec_vpks<VI_char>ss): Likewise.
21463 (altivec_vpks<VI_char>us): Likewise.
21464 (altivec_vpku<VI_char>us): Likewise.
21465 (altivec_vpku<VI_char>um): Likewise.
21466
21467 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21468
21469 Introduce context class.
21470
21471 * Makefile.in (CONTEXT_H): New.
21472 (OBJS): Add context.o.
21473 (toplev.o): Add CONTEXT_H to dependencies.
21474 (context.o): New.
21475
21476 * toplev.c (general_init): Create the singleton gcc::context instance.
21477
21478 * context.c: New.
21479
21480 * context.h: New.
21481
21482 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21483
21484 PR rtl-optimization/57968
21485 * mode-switching.c (create_pre_exit): Allow instructions that
21486 don't set a return register to need a non-exit mode.
21487
21488 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21489 Anton Blanchard <anton@au1.ibm.com>
21490
21491 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21492 operands to vperm for little endian.
21493 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21494 of lvsl to create the control mask for a vperm for little endian.
21495
21496 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21497 Anton Blanchard <anton@au1.ibm.com>
21498
21499 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21500 two operands for little-endian.
21501
21502 2013-07-23 Steve Ellcey <sellcey@mips.com>
21503
21504 * config/mips/mips.c (mips_case_values_threshold): New.
21505 (TARGET_CASE_VALUES_THRESHOLD): Define.
21506
21507 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21508 Anton Blanchard <anton@au1.ibm.com>
21509
21510 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21511 selection of field for vector splat in little endian mode.
21512
21513 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21514
21515 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21516 expanders to rs6000.md.
21517 (ior<mode>3): Likewise.
21518 (and<mode>3): Likewise.
21519 (one_cmpl<mode>2): Likewise.
21520 (nor<mode>3): Likewise.
21521 (andc<mode>3): Likewise.
21522 (eqv<mode>3): Likewise.
21523 (nand<mode>3): Likewise.
21524 (orc<mode>3): Likewise.
21525
21526 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21527 declaration.
21528
21529 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21530 to split multi-word logical operations.
21531 (rs6000_split_logical_di): Likewise.
21532 (rs6000_split_logical): Likewise.
21533
21534 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21535 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21536 and allow TImode operations in 32-bit.
21537 (vsx_and<mode>3_64bit): Likewise.
21538 (vsx_ior<mode>3_32bit): Likewise.
21539 (vsx_ior<mode>3_64bit): Likewise.
21540 (vsx_xor<mode>3_32bit): Likewise.
21541 (vsx_xor<mode>3_64bit): Likewise.
21542 (vsx_one_cmpl<mode>2_32bit): Likewise.
21543 (vsx_one_cmpl<mode>2_64bit): Likewise.
21544 (vsx_nor<mode>3_32bit): Likewise.
21545 (vsx_nor<mode>3_64bit): Likewise.
21546 (vsx_andc<mode>3_32bit): Likewise.
21547 (vsx_andc<mode>3_64bit): Likewise.
21548 (vsx_eqv<mode>3_32bit): Likewise.
21549 (vsx_eqv<mode>3_64bit): Likewise.
21550 (vsx_nand<mode>3_32bit): Likewise.
21551 (vsx_nand<mode>3_64bit): Likewise.
21552 (vsx_orc<mode>3_32bit): Likewise.
21553 (vsx_orc<mode>3_64bit): Likewise.
21554
21555 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21556 logical types in GPRs.
21557
21558 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21559 logical insns to rs6000.md, and allow TImode operations in
21560 32-bit.
21561 (altivec_ior<mode>3): Likewise.
21562 (altivec_xor<mode>3): Likewise.
21563 (altivec_one_cmpl<mode>2): Likewise.
21564 (altivec_nor<mode>3): Likewise.
21565 (altivec_andc<mode>3): Likewise.
21566
21567 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21568 attributes for moving the 128-bit logical operations into
21569 rs6000.md.
21570 (BOOL_REGS_OUTPUT): Likewise.
21571 (BOOL_REGS_OP1): Likewise.
21572 (BOOL_REGS_OP2): Likewise.
21573 (BOOL_REGS_UNARY): Likewise.
21574 (BOOL_REGS_AND_CR0): Likewise.
21575 (one_cmpl<mode>2): Add support for DI logical operations on
21576 32-bit, splitting the operations to 32-bit.
21577 (anddi3): Likewise.
21578 (iordi3): Likewise.
21579 (xordi3): Likewise.
21580 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21581 changes to combine the 32/64-bit code, allow logical operations on
21582 TI mode in 32-bit, and to use similar match_operator patterns like
21583 scalar mode uses. Combine the Altivec and VSX code for logical
21584 operations, and move it here.
21585 (ior<mode>3, 128-bit types): Likewise.
21586 (xor<mode>3, 128-bit types): Likewise.
21587 (one_cmpl<mode>3, 128-bit types): Likewise.
21588 (nor<mode>3, 128-bit types): Likewise.
21589 (andc<mode>3, 128-bit types): Likewise.
21590 (eqv<mode>3, 128-bit types): Likewise.
21591 (nand<mode>3, 128-bit types): Likewise.
21592 (orc<mode>3, 128-bit types): Likewise.
21593 (and<mode>3_internal): Likewise.
21594 (bool<mode>3_internal): Likewise.
21595 (boolc<mode>3_internal1): Likewise.
21596 (boolc<mode>3_internal2): Likewise.
21597 (boolcc<mode>3_internal1): Likewise.
21598 (boolcc<mode>3_internal2): Likewise.
21599 (eqv<mode>3_internal1): Likewise.
21600 (eqv<mode>3_internal2): Likewise.
21601 (one_cmpl1<mode>3_internal): Likewise.
21602
21603 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21604
21605 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21606 Rename flag_stack_usage to flag_stack_usage_info.
21607
21608 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21609
21610 * config/microblaze/sync.md: New file.
21611 * config/microblaze/microblaze.md: Include sync.md
21612 * config/microblaze/microblaze.c: Add print_operand 'y'.
21613 * config/microblaze/constraints.md: Add memory_contraint
21614 'Q' which is a single register.
21615
21616 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21617
21618 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21619
21620 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21621
21622 * reload.c (find_reloads): Exit loop once we find this operand
21623 cannot be reloaded somehow for this alternative.
21624
21625 * reload.c (find_reloads): Exit loop once we find a hard register.
21626
21627 * rtlanal.c (computed_jump_p): Exit loop once we find label
21628 reference is used.
21629
21630 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21631
21632 * cfgloopmanip.c (remove_path): Exit loop after setting
21633 irred_invalidated.
21634
21635 * gensupport.c (subst_dup): Avoid loop if code is not
21636 MATCH_DUP nor MATCH_OP_DUP.
21637
21638 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21639
21640 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21641
21642 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21643
21644 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21645 true for SP_REGNUM if mode == ptr_mode.
21646 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21647 with value R0_REGNUM + 31.
21648
21649 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21650
21651 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21652 pad pointer-typed argument downward.
21653
21654 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21655
21656 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21657 and __ILP32__ when the ILP32 model is in use.
21658
21659 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21660
21661 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21662 (aarch64_load_symref_appropriately): In the case of
21663 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21664 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21665 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21666 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21667 if 'mode' doesn't equal to 'ptr_mode'.
21668 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21669 'vcall_offset'; change to call aarch64_emit_move differently depending
21670 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21671 to calculate the upper bound of 'vcall_offset'.
21672 (aarch64_cannot_force_const_mem): Change to also return true if
21673 mode != ptr_mode.
21674 (aarch64_legitimize_reload_address): In the case of large
21675 displacements, add new local variable 'xmode' and an assertion
21676 based on it; change to use 'xmode' to generate the new rtx and
21677 reload.
21678 (aarch64_asm_trampoline_template): Change to generate the template
21679 differently depending on TARGET_ILP32 or not; change to use
21680 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21681 (aarch64_trampoline_size): Removed.
21682 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21683 and replace immediate literals with it. Change to use 'ptr_mode'
21684 instead of 'DImode' and call convert_memory_address if the mode
21685 of 'fnaddr' doesn't equal to 'ptr_mode'.
21686 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21687 to output symbol.
21688 (aarch64_elf_asm_destructor): Likewise.
21689 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21690 on TARGET_ILP32 instead of aarch64_trampoline_size.
21691 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21692 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21693 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21694 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21695 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21696 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21697 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21698 depending on the value of 'mode'.
21699 (add_losym_<mode>): New.
21700 (ldr_got_small_<mode>): New, based on ldr_got_small.
21701 (ldr_got_small): Remove.
21702 (ldr_got_small_sidi): New.
21703 * config/aarch64/iterators.md (P): New.
21704 (PTR): Change to 'ptr_mode' in the condition.
21705
21706 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21707
21708 * config.gcc (aarch64*-*-*): Support --with-abi.
21709 (aarch64*-*-elf): Support --with-multilib-list.
21710 (aarch64*-*-linux*): Likewise.
21711 (supported_defaults): Add abi to aarch64*-*-*.
21712 * configure.ac: Mention AArch64 for --with-multilib-list.
21713 * configure: Re-generated.
21714 * config/aarch64/biarchilp32.h: New file.
21715 * config/aarch64/biarchlp64.h: New file.
21716 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21717 (ABI_SPEC): Ditto.
21718 (MULTILIB_DEFAULTS): Ditto.
21719 (DRIVER_SELF_SPECS): Ditto.
21720 (ASM_SPEC): Update to also substitute -mabi.
21721 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21722 file whose name depends on -mabi= and -mbig-endian.
21723 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21724 TARGET_ILP32.
21725 (POINTER_SIZE): New define.
21726 (POINTERS_EXTEND_UNSIGNED): Ditto.
21727 (enum aarch64_abi_type): New enumeration tag.
21728 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21729 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21730 (TARGET_ILP32): New define.
21731 * config/aarch64/aarch64.opt (mabi): New.
21732 (aarch64_abi): New.
21733 (ilp32, lp64): New values for -mabi.
21734 * config/aarch64/t-aarch64 (comma): New define.
21735 (MULTILIB_OPTIONS): Ditto.
21736 (MULTILIB_DIRNAMES): Ditto.
21737 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21738 * doc/invoke.texi: Document -mabi for AArch64.
21739
21740 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21741
21742 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21743
21744 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21745 Anton Blanchard <anton@au1.ibm.com>
21746
21747 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21748 endianness when selecting field to splat.
21749
21750 2013-07-22 Eric Christopher <echristo@gmail.com>
21751
21752 * dwarf2out.c (die_odr_checksum): New function to use
21753 CHECKSUM_ macros and ULEB128 for DIE tag.
21754 (generate_type_signature): Use.
21755
21756 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
21757
21758 * config.gcc (sparc*-*-*): Accept leon3 processor.
21759 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21760 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21761 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21762 * config/sparc/sparc.opt (enum processor_type): Add leon3.
21763 (mfix-ut699): Adjust comment.
21764 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21765 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21766 (CPP_CPU_SPEC): Likewise.
21767 (ASM_CPU_SPEC): Likewise.
21768 * config/sparc/sparc.c (leon3_cost): New constant.
21769 (sparc_option_override): Add leon3 support.
21770 (mem_ref): New function.
21771 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21772 (sparc_do_work_around_errata): Look into the instruction in the delay
21773 slot and adjust accordingly. Add fix for the data cache nullify issues
21774 of the UT699. Change insertion position for the NOP.
21775 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21776 (leon3_load): New reservation.
21777 (leon_store): Bump latency to 2.
21778 (grfpu): New automaton.
21779 (grfpu_alu): New unit.
21780 (grfpu_ds): Likewise.
21781 (leon_fp_alu): Adjust.
21782 (leon_fp_mult): Delete.
21783 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21784 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21785 * config/sparc/sparc.md (cpu): Add leon3.
21786 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21787 (swapsi): Likewise.
21788 (atomic_test_and_set): Likewise.
21789 (ldstub): Likewise.
21790
21791 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
21792
21793 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
21794 default for R5900 targets.
21795 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21796 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21797 * config/mips/mips.c (mips_option_override): Report an error for
21798 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
21799 for -march=r5900 -mhard-float.
21800
21801 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21802
21803 * df-problems.c (can_move_insns_across): Exit loop once we
21804 find a non-fixed, non-global register.
21805
21806 * ipa-pure-const.c (propagate_nothrow): Exit loop after
21807 setting can_throw.
21808
21809 * omega.c (omega_eliminate_red): Break after setting red_found.
21810 (omega_problem_has_red_equations): Similarly after setting found.
21811 (omega_query_variable): Similarly after setting coupled.
21812
21813 2013-07-22 Marek Polacek <polacek@redhat.com>
21814
21815 * gimplify.c: Don't include gimple.h twice.
21816
21817 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21818
21819 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21820 instead of TARGET_THUMB1.
21821 (Pz): New constraint.
21822 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21823 encodings.
21824 (compare_negsi_si): Likewise.
21825 (compare_addsi2_op0): Likewise.
21826 (compare_addsi2_op1): Likewise.
21827 (addsi3_carryin_<optab>): Likewise.
21828 (addsi3_carryin_alt2_<optab>): Likewise.
21829 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21830 for arm_restrict_it.
21831 (subsi3_carryin): Likewise.
21832 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21833 (minmax_arithsi): Disable for arm_restrict_it.
21834 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21835 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21836 (satsi_<SAT:code>_shift): Likewise.
21837 (arm_shiftsi3): Add alternative for 16-bit encoding.
21838 (arm32_movhf): Disable for arm_restrict_it.
21839 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21840 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21841
21842 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
21843
21844 * config/arm/arm.md (attribute "insn"): Delete.
21845 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21846 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21847 (not_shiftsi): Update for attribute change.
21848 (not_shiftsi_compare0): Likewise.
21849 (not_shiftsi_compare0_scratch): Likewise.
21850 (arm_one_cmplsi2): Likewise.
21851 (thumb1_one_cmplsi2): Likewise.
21852 (notsi_compare0): Likewise.
21853 (notsi_compare0_scratch): Likewise.
21854 (thumb1_movdi_insn): Likewise.
21855 (arm_movsi_insn): Likewise.
21856 (movhi_insn_arch4): Likewise.
21857 (movhi_bytes): Likewise.
21858 (arm_movqi_insn): Likewise.
21859 (thumb1_movqi_insn): Likewise.
21860 (arm32_movhf): Likewise.
21861 (thumb1_movhf): Likewise.
21862 (arm_movsf_soft_insn): Likewise.
21863 (thumb1_movsf_insn): Likewise.
21864 (thumb_movdf_insn): Likewise.
21865 (movsicc_insn): Likewise.
21866 (movsfcc_soft_insn): Likewise.
21867 (and_scc): Likewise.
21868 (cond_move): Likewise.
21869 (if_move_not): Likewise.
21870 (if_not_move): Likewise.
21871 (if_shift_move): Likewise.
21872 (if_move_shift): Likewise.
21873 (if_shift_shift): Likewise.
21874 (if_not_arith): Likewise.
21875 (if_arith_not): Likewise.
21876 (cond_move_not): Likewise.
21877 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21878 (neon_mov<mode>): Likewise.
21879 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21880 (thumb2_movsi_vfp): Likewise.
21881 (movsf_vfp): Likewise.
21882 (thumb2_movsf_vfp): Likewise.
21883 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21884 change.
21885 (cortexa7_older_only): Likewise.
21886 (cortexa7_younger): Likewise.
21887 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21888 (1020alu_shift_op): Likewise.
21889 (1020alu_shift_reg_op): Likewise.
21890 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21891 (alu_shift_op): Likewise.
21892 (alu_shift_reg_op): Likewise.
21893 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21894 (11_alu_shift_op): Likewise.
21895 (11_alu_shift_reg_op): Likewise.
21896 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21897 (9_alu_shift_reg_op): Likewise.
21898 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21899 change.
21900 (cortex_a15_alu_shift): Likewise.
21901 (cortex_a15_alu_shift_reg): Likewise.
21902 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21903 (cortex_a5_alu_shift): Likewise.
21904 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21905 change.
21906 (cortex_a53_alu_shift): Likewise.
21907 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21908 change.
21909 (cortex_a7_alu_reg): Likewise.
21910 (cortex_a7_alu_shift): Likewise.
21911 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21912 (cortex_a8_alu_shift): Likewise.
21913 (cortex_a8_alu_shift_reg): Likewise.
21914 (cortex_a8_mov): Likewise.
21915 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21916 (cortex_a9_dp_shift): Likewise.
21917 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21918 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21919 (cortex_r4_mov): Likewise.
21920 (cortex_r4_alu_shift): Likewise.
21921 (cortex_r4_alu_shift_reg): Likewise.
21922 * config/arm/fa526.md (526_alu_op): Update for attribute change.
21923 (526_alu_shift_op): Likewise.
21924 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21925 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21926 (626te_alu_shift_op): Likewise.
21927 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21928 (726te_alu_op): Likewise.
21929 (726te_alu_shift_op): Likewise.
21930 (726te_alu_shift_reg_op): Likewise.
21931 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21932 (mp626_alu_shift_op): Likewise.
21933 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21934 (pj4_alu_e1_conds): Likewise.
21935 (pj4_alu): Likewise.
21936 (pj4_alu_conds): Likewise.
21937 (pj4_shift): Likewise.
21938 (pj4_shift_conds): Likewise.
21939 (pj4_alu_shift): Likewise.
21940 (pj4_alu_shift_conds): Likewise.
21941
21942 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21943
21944 * config/arm/predicates.md (shiftable_operator_strict_it):
21945 New predicate.
21946 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21947 Disable cond_exec version for arm_restrict_it.
21948 (thumb2_smaxsi3): Convert to generate cond_exec.
21949 (thumb2_sminsi3): Likewise.
21950 (thumb32_umaxsi3): Likewise.
21951 (thumb2_uminsi3): Likewise.
21952 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21953 (thumb2_neg_abssi2): Likewise.
21954 (thumb2_mov_scc): Add alternative for 16-bit encoding.
21955 (thumb2_movsicc_insn): Adjust alternatives.
21956 (thumb2_mov_negscc): Disable for arm_restrict_it.
21957 (thumb2_mov_negscc_strict_it): New pattern.
21958 (thumb2_mov_notscc_strict_it): New pattern.
21959 (thumb2_mov_notscc): Disable for arm_restrict_it.
21960 (thumb2_ior_scc): Likewise.
21961 (thumb2_ior_scc_strict_it): New pattern.
21962 (thumb2_cond_move): Adjust for arm_restrict_it.
21963 (thumb2_cond_arith): Disable for arm_restrict_it.
21964 (thumb2_cond_arith_strict_it): New pattern.
21965 (thumb2_cond_sub): Adjust for arm_restrict_it.
21966 (thumb2_movcond): Likewise.
21967 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21968 (thumb2_zero_extendhisi2_v6): Likewise.
21969 (thumb2_zero_extendqisi2_v6): Likewise.
21970 (orsi_notsi_si): Likewise.
21971 (orsi_not_shiftsi_si): Likewise.
21972
21973 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
21974
21975 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21976 instruction sequence is 1 byte shorter.
21977
21978 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
21979
21980 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21981 it is not needed after split.
21982
21983 2013-07-20 Iain Sandoe <iain@codesourcery.com>
21984
21985 PR target/51784
21986 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21987 second label for nonlocal goto receivers. Don't output pic base labels
21988 unless we're producing PIC; mark that action unreachable().
21989 (ix86_save_reg): If the function contains a nonlocal label, save the
21990 PIC base reg.
21991 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21992 * config/darwin.c (emitted_pic_label_num): New GTY.
21993 (update_pic_label_number_if_needed): New.
21994 (machopic_output_function_base_name): Adjust for nonlocal receiver
21995 case.
21996 (machopic_should_output_picbase_label): New.
21997 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21998 (nonlocal_goto_receiver): New insn and split.
21999
22000 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22001
22002 * config/aarch64/aarch64-builtins.c
22003 (aarch64_fold_builtin): Fold abs in all modes.
22004 * config/aarch64/aarch64-simd-builtins.def
22005 (abs): Enable for all modes.
22006 * config/aarch64/arm_neon.h
22007 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22008 (vabs_f64): Add missing intrinsic.
22009
22010 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22011
22012 * config/aarch64/arm_neon.h (vabs_s64): New function
22013
22014 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22015
22016 PR target/57516
22017 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22018 * config/avr/avr.md (adjust_len): Add `round'.
22019 * config/avr/avr-protos.h (avr_out_round): New prototype.
22020 (avr_out_plus): Add `out_label' argument.
22021 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22022 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22023 Handle the case where `insn' is just a pattern.
22024 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22025 (avr_out_round): New function.
22026 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22027
22028 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22029
22030 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22031 Add check for flag_stack_usage to handle -fstack-usage support
22032
22033 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22034
22035 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22036 interaction for new Power8 flags and VSX.
22037
22038 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22039
22040 PR middle-end/57698
22041 * tree-inline.c (expand_call_inline): Emit errors during
22042 early_inlining only if optimization is not turned on.
22043
22044 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22045
22046 * passes.def: New.
22047
22048 * passes.c (init_optimization_passes): Move the construction of
22049 the pass hierarchy into a new passes.def file.
22050
22051 * Makefile.in (passes.o): Add dependency on passes.def.
22052
22053 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22054
22055 * passes.c (init_optimization_passes): Introduce macros for
22056 constructing the tree of passes (INSERT_PASSES_AFTER,
22057 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22058 TERMINATE_PASS_LIST).
22059
22060 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22061 Wei Mi <wmi@google.com>
22062
22063 PR rtl-optimization/57878
22064 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22065 top.
22066 (reload_pseudo_compare_func): Check nregs first for reload
22067 pseudos.
22068
22069 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22070
22071 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22072
22073 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22074
22075 * read-rtl.c (validate_const_int): Once an invalid character is
22076 seen, quit the loop.
22077
22078 * gengtype.c (write_roots): Similarly once we find the "deletable"
22079 or "if_marked" option.
22080
22081 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22082
22083 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22084 "xtab" and "sat". Move value "clz" from here to ...
22085 (attriubte "type"): ... here.
22086 (satsi_<SAT:code>): Delete "insn" attribute.
22087 (satsi_<SAT:code>_shift): Likewise.
22088 (arm_zero_extendqisi2addsi): Likewise.
22089 (arm_extendqisi2addsi): Likewise.
22090 (clzsi2): Update for attribute changes.
22091 (rbitsi2): Likewise.
22092 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22093 attribute.
22094 (arm_usatsihi): Likewise.
22095 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22096
22097 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22098
22099 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22100 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22101 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22102 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22103 in alphabetical order.
22104 (attribute "core_cycles"): Update for attribute changes.
22105 (arm_addsi3): Likewise.
22106 (addsi3_compare0): Likewise.
22107 (addsi3_compare0_scratch): Likewise.
22108 (addsi3_compare_op1): Likewise.
22109 (addsi3_compare_op2): Likewise.
22110 (compare_addsi2_op0): Likewise.
22111 (compare_addsi2_op1): Likewise.
22112 (addsi3_carryin_shift_<optab>): Likewise.
22113 (subsi3_carryin_shift): Likewise.
22114 (rsbsi3_carryin_shift): Likewise.
22115 (arm_subsi3_insn): Likewise.
22116 (subsi3_compare0): Likewise.
22117 (subsi3_compare): Likewise.
22118 (arm_andsi3_insn): Likewise.
22119 (thumb1_andsi3_insn): Likewise.
22120 (andsi3_compare0): Likewise.
22121 (andsi3_compare0_scratch): Likewise.
22122 (zeroextractsi_compare0_scratch
22123 (andsi_not_shiftsi_si): Likewise.
22124 (iorsi3_insn): Likewise.
22125 (iorsi3_compare0): Likewise.
22126 (iorsi3_compare0_scratch): Likewise.
22127 (arm_xorsi3): Likewise.
22128 (thumb1_xorsi3_insn): Likewise.
22129 (xorsi3_compare0): Likewise.
22130 (xorsi3_compare0_scratch): Likewise.
22131 (satsi_<SAT:code>_shift): Likewise.
22132 (rrx): Likewise.
22133 (arm_shiftsi3): Likewise.
22134 (shiftsi3_compare0): Likewise.
22135 (not_shiftsi): Likewise.
22136 (not_shiftsi_compare0): Likewise.
22137 (not_shiftsi_compare0_scratch): Likewise.
22138 (arm_one_cmplsi2): Likewise.
22139 (thumb_one_complsi2): Likewise.
22140 (notsi_compare0): Likewise.
22141 (notsi_compare0_scratch): Likewise.
22142 (thumb1_zero_extendhisi2): Likewise.
22143 (arm_zero_extendhisi2): Likewise.
22144 (arm_zero_extendhisi2_v6): Likewise.
22145 (arm_zero_extendhisi2addsi): Likewise.
22146 (thumb1_zero_extendqisi2): Likewise.
22147 (thumb1_zero_extendqisi2_v6): Likewise.
22148 (arm_zero_extendqisi2): Likewise.
22149 (arm_zero_extendqisi2_v6): Likewise.
22150 (arm_zero_extendqisi2addsi): Likewise.
22151 (thumb1_extendhisi2): Likewise.
22152 (arm_extendhisi2): Likewise.
22153 (arm_extendhisi2_v6): Likewise.
22154 (arm_extendqisi): Likewise.
22155 (arm_extendqisi_v6): Likewise.
22156 (arm_extendqisi2addsi): Likewise.
22157 (thumb1_extendqisi2): Likewise.
22158 (thumb1_movdi_insn): Likewise.
22159 (arm_movsi_insn): Likewise.
22160 (movsi_compare0): Likewise.
22161 (movhi_insn_arch4): Likewise.
22162 (movhi_bytes): Likewise.
22163 (arm_movqi_insn): Likewise.
22164 (thumb1_movqi_insn): Likewise.
22165 (arm32_movhf): Likewise.
22166 (thumb1_movhf): Likewise.
22167 (arm_movsf_soft_insn): Likewise.
22168 (thumb1_movsf_insn): Likewise.
22169 (movdf_soft_insn): Likewise.
22170 (thumb_movdf_insn): Likewise.
22171 (arm_cmpsi_insn): Likewise.
22172 (cmpsi_shiftsi): Likewise.
22173 (cmpsi_shiftsi_swp): Likewise.
22174 (arm_cmpsi_negshiftsi_si): Likewise.
22175 (movsicc_insn): Likewise.
22176 (movsfcc_soft_insn): Likewise.
22177 (arith_shiftsi): Likewise.
22178 (arith_shiftsi_compare0
22179 (arith_shiftsi_compare0_scratch
22180 (sub_shiftsi): Likewise.
22181 (sub_shiftsi_compare0
22182 (sub_shiftsi_compare0_scratch
22183 (and_scc): Likewise.
22184 (cond_move): Likewise.
22185 (if_plus_move): Likewise.
22186 (if_move_plus): Likewise.
22187 (if_move_not): Likewise.
22188 (if_not_move): Likewise.
22189 (if_shift_move): Likewise.
22190 (if_move_shift): Likewise.
22191 (if_shift_shift): Likewise.
22192 (if_not_arith): Likewise.
22193 (if_arith_not): Likewise.
22194 (cond_move_not): Likewise.
22195 (thumb1_ashlsi3): Set type attribute.
22196 (thumb1_ashrsi3): Likewise.
22197 (thumb1_lshrsi3): Likewise.
22198 (thumb1_rotrsi3): Likewise.
22199 (shiftsi3_compare0_scratch): Likewise.
22200 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22201 (neon_mov<mode>): Likewise.
22202 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22203 attribute changes.
22204 (thumb2_movsi_insn): Likewise.
22205 (thumb2_cmpsi_neg_shiftsi): Likewise.
22206 (thumb2_extendqisi_v6): Likewise.
22207 (thumb2_zero_extendhisi2_v6): Likewise.
22208 (thumb2_zero_extendqisi2_v6): Likewise.
22209 (thumb2_shiftsi3_short): Likewise.
22210 (thumb2_addsi3_compare0_scratch): Likewise.
22211 (orsi_not_shiftsi_si): Likewise.
22212 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22213 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22214 changes.
22215 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22216 (1020alu_shift_op): Likewise.
22217 (1020alu_shift_reg_op): Likewise.
22218 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22219 (alu_shift_op): Likewise.
22220 (alu_shift_reg_op): Likewise.
22221 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22222 (11_alu_shift_op): Likewise.
22223 (11_alu_shift_reg_op): Likewise.
22224 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22225 (9_alu_shift_reg_op): Likewise.
22226 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22227 changes.
22228 (cortex_a15_alu_shift): Likewise.
22229 (cortex_a15_alu_shift_reg): Likewise.
22230 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22231 changes.
22232 (cortex_a5_alu_shift): Likewise.
22233 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22234 changes.
22235 (cortex_a53_alu_shift): Likewise.
22236 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22237 changes.
22238 (cortex_a7_alu_reg): Likewise.
22239 (cortex_a7_alu_shift): Likewise.
22240 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22241 changes.
22242 (cortex_a8_alu_shift): Likewise.
22243 (cortex_a8_alu_shift_reg): Likewise.
22244 (cortex_a8_mov): Likewise.
22245 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22246 (cortex_a9_dp_shift): Likewise.
22247 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22248 changes.
22249 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22250 changes.
22251 (cortex_r4_mov): Likewise.
22252 (cortex_r4_alu_shift): Likewise.
22253 (cortex_r4_alu_shift_reg): Likewise.
22254 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22255 (526_alu_shift_op): Likewise.
22256 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22257 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22258 (626te_alu_shift_op): Likewise.
22259 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22260 (726te_alu_op): Likewise.
22261 (726te_alu_shift_op): Likewise.
22262 (726te_alu_shift_reg_op): Likewise.
22263 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22264 (mp626_alu_shift_op): Likewise.
22265 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22266 (pj4_alu_e1_conds): Likewise.
22267 (pj4_alu): Likewise.
22268 (pj4_alu_conds): Likewise.
22269 (pj4_shift): Likewise.
22270 (pj4_shift_conds): Likewise.
22271 (pj4_alu_shift): Likewise.
22272 (pj4_alu_shift_conds): Likewise.
22273 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22274 changes.
22275 (cortexa7_older_only): Likewise.
22276 (cortexa7_younger): Likewise.
22277
22278 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22279
22280 * ipa-pure-const.c (generate_summary): Rename to...
22281 (pure_const_generate_summary): ... this.
22282
22283 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22284
22285 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22286
22287 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22288
22289 PR target/57909
22290 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22291 usage in HI mode.
22292
22293 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22294
22295 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22296 enabled without -march=zEC12.
22297 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22298 flags to be set.
22299
22300 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22301
22302 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22303 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22304 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22305 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22306 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22307 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22308 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22309 ISA_HAS_FP4.
22310 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22311 and ISA_HAS_NMADD3_NMSUB3.
22312 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22313 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22314 (nmsub4<mode>, nmsub3<mode>): Likewise.
22315 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22316
22317 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22318
22319 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22320 TARGET_MIPS5400 checking.
22321
22322 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22323 Peter Bergner <bergner@vnet.ibm.com>
22324
22325 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22326 registers in the comment.
22327 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22328 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22329 rather than FIRST_PSEUDO_REGISTERS.
22330
22331 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22332
22333 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22334 enable extra ISA flags with TARGET_HTM.
22335
22336 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22337
22338 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22339 Fix comment typos.
22340
22341 2013-07-15 Cong Hou <congh@google.com>
22342
22343 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22344 in compare function for sorting.
22345
22346 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22347
22348 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22349 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22350 * config/rs6000/rs6000.opt: Add -mhtm option.
22351 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22352 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22353 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22354 __HTM__ if the HTM instructions are available.
22355 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22356 htm_spr_reg_operand): New define_predicates.
22357 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22358 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22359 Include htm.md.
22360 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22361 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22362 HTM builtin functions.
22363 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22364 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22365 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22366 (rs6000_builtin_mask_calculate): Likewise.
22367 (rs6000_option_override_internal): Likewise.
22368 (bdesc_htm): Add new HTM builtin support.
22369 (htm_spr_num): New function.
22370 (htm_spr_regno): Likewise.
22371 (rs6000_htm_spr_icode): Likewise.
22372 (htm_expand_builtin): Likewise.
22373 (htm_init_builtins): Likewise.
22374 (rs6000_expand_builtin): Add support for HTM builtin functions.
22375 (rs6000_init_builtins): Likewise.
22376 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22377 option.
22378 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22379 (TARGET_HTM, MASK_HTM): Define macros.
22380 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22381 (FIXED_REGISTERS): Likewise.
22382 (CALL_USED_REGISTERS): Likewise.
22383 (CALL_REALLY_USED_REGISTERS): Likewise.
22384 (REG_ALLOC_ORDER): Likewise.
22385 (enum reg_class): Likewise.
22386 (REG_CLASS_NAMES): Likewise.
22387 (REG_CLASS_CONTENTS): Likewise.
22388 (REGISTER_NAMES): Likewise.
22389 (ADDITIONAL_REGISTER_NAMES): Likewise.
22390 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22391 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22392 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22393 * config/rs6000/htm.md: New file.
22394 * config/rs6000/htmintrin.h: New file.
22395 * config/rs6000/htmxlintrin.h: New file.
22396
22397 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22398
22399 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22400 Define SYMBOL_TINY_GOT, update comment.
22401 * config/aarch64/aarch64.c
22402 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22403 (aarch64_expand_mov_immediate): Likewise.
22404 (aarch64_print_operand): Likewise.
22405 (aarch64_classify_symbol): Likewise.
22406 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22407 (ldr_got_tiny): Define.
22408
22409 2013-07-13 Tobias Grosser <tobias@grosser.es>
22410
22411 PR tree-optimization/54094
22412 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22413 scheduling dimension for the parallelism check from the polyhedral
22414 information in the AST.
22415 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22416 in 2D + 1 form.
22417
22418 2013-07-13 Jason Merrill <jason@redhat.com>
22419
22420 * print-tree.c (debug_vec_tree): Use debug_raw.
22421 (debug_raw (vec<tree, va_gc> &)): New.
22422 (debug_raw (vec<tree, va_gc> *)): New.
22423 * tree.h: Declare them.
22424
22425 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22426
22427 * ifcvt.c (ifcvt_after_combine): New static variable.
22428 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22429 for size.
22430 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22431 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22432 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22433
22434 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22435
22436 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22437
22438 2013-07-12 Michael Matz <matz@suse.de>
22439
22440 PR middle-end/55771
22441 * convert.c (convert_to_real): Reject non-float inner types.
22442
22443 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22444
22445 * config/aarch64/aarch64-protos.h
22446 (aarch64_simd_immediate_valid_for_move): Remove.
22447 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22448 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22449 cases.
22450 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22451
22452 2013-07-11 Steve Ellcey <sellcey@mips.com>
22453
22454 * config/mips/mips.c (mips_conditional_register_usage): Do not
22455 use t[0-7] registers in MIPS16 mode when optimizing for size.
22456
22457 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22458
22459 * config/i386/i386.c (dispatch_function_versions): Fix array
22460 indexing of function_version_info to match actual_versions.
22461
22462 2013-07-11 Teresa Johnson <tejohnson@google.com>
22463
22464 * vec.h (struct va_gc): Move release out-of-line.
22465 (va_gc::release): Call ggc_free on released vec.
22466
22467 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22468
22469 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22470 Require GOT register as additional operand in UNSPEC.
22471 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22472 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22473 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22474 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22475 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22476 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22477 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22478
22479 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22480
22481 PR target/57631
22482 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22483 name seen by assembler/linker rather if available.
22484
22485 2013-07-11 Andreas Schwab <schwab@suse.de>
22486
22487 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22488
22489 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22490
22491 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22492
22493 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22494
22495 * doc/tm.texi.in: Move hook documentation to ....
22496 * target.def: ... here.
22497
22498 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22499 text on @hook line.
22500 * doc/tm.texi: Regenerate.
22501
22502 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22503
22504 PR c++/57869
22505 * doc/invoke.texi: Document -Wconditionally-supported.
22506
22507 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22508
22509 PR target/57844
22510 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22511 of my_fp.
22512
22513 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22514
22515 PR target/57506
22516 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22517 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22518 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22519 Remove duplicate devices.
22520 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22521 * config/avr/t-multilib: Regenerate.
22522 * config/avr/avr-tables.opt: Regenerate.
22523 * doc/avr-mmcu.texi: Regenerate.
22524
22525 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22526
22527 PR target/56987
22528 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22529
22530 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22531
22532 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22533 the cost of MULT when optimizing for size.
22534
22535 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22536
22537 * config/cr16/cr16-protos.h: Don't include target.h.
22538
22539 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22540
22541 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22542 adjust register size for TDmode and TFmode for VSX registers.
22543
22544 2013-07-08 Kai Tietz <ktietz@redhat.com>
22545
22546 PR target/56892
22547 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22548 hook_bool_const_tree_true.
22549
22550 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22551
22552 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22553 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22554 * config/s390/s390.md: Define FPR*_REGNUM constants.
22555 Fix FPR2_REGNUM constant (18 -> 17).
22556 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22557 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22558 ("trunc<BFP:mode><DFP_ALL:mode>2")
22559 ("trunc<DFP_ALL:mode><BFP:mode>2")
22560 ("*extend<BFP:mode><DFP_ALL:mode>2")
22561 ("*extend<DFP_ALL:mode><BFP:mode>2")
22562 ("extend<BFP:mode><DFP_ALL:mode>2")
22563 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22564 FPR4_REGNUM.
22565
22566 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22567
22568 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22569
22570 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22571
22572 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22573 and cfun_fpr_bit_p to cfun_fpr_save_p.
22574 (s390_frame_area, s390_register_info, s390_frame_info)
22575 (s390_emit_prologue, s390_emit_epilogue)
22576 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22577 register numbers.
22578 * config/s390/s390.h: Define *_REGNUM macros for floating point
22579 register numbers.
22580
22581 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22582
22583 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22584
22585 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22586
22587 PR rtl-optimization/57786
22588 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22589 and break out of the loop when it is set to false.
22590
22591 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22592
22593 PR target/57819
22594 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22595 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22596 (const_int 63)) 0)).
22597 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22598 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22599 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22600
22601 PR rtl-optimization/57829
22602 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22603 mask bits outside of mode are just sign-extension from mode to HWI.
22604
22605 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22606
22607 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22608 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22609 adjust_address instead of change_address to keep info about alignment.
22610 (emit_strmov): Remove.
22611 (emit_memmov): New function.
22612 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22613 (expand_movmem_epilogue): Likewise and return updated rtx for
22614 destination.
22615 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22616 destination and source.
22617 (decide_alignment): Refactor, handle vector_loop.
22618 (ix86_expand_movmem): Likewise.
22619 (ix86_expand_setmem): Likewise.
22620 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22621
22622 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22623
22624 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22625 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22626
22627 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22628
22629 * config/i386/sse.md (sse_movlhps): Change alternative 3
22630 of operand 2 to "m".
22631
22632 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22633
22634 PR target/57807
22635 * config/i386/sse.md (iptr): New mode attribute.
22636 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22637 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22638 (<sse>_vmmul<mode>3): Ditto.
22639 (<sse>_vmdiv<mode>3): Ditto.
22640 (sse_vmrcpv4sf2): Ditto.
22641 (<sse>_vmsqrt<mode>2): Ditto.
22642 (sse_vmrsqrtv4sf2): Ditto.
22643 (<sse>_vm<code><mode>3): Ditto.
22644 (avx_vmcmp<mode>3): Ditto.
22645 (<sse>_vmmaskcmp<mode>3): Ditto.
22646 (<sse>_comi): Ditto.
22647 (<sse>_ucomi): Ditto.
22648 (*xop_vmfrcz_<mode>): Ditto.
22649 (*fmai_fmadd_<mode>): Ditto.
22650 (*fmai_fmsub_<mode>): Ditto.
22651 (*fmai_fnmadd_<mode>): Ditto.
22652 (*fmai_fnmsub_<mode>): Ditto.
22653 (*fma4i_vmfmadd_<mode>): Ditto.
22654 (*fma4i_vmfmsub_<mode>): Ditto.
22655 (*fma4i_vmfnmadd_<mode>): Ditto.
22656 (*fma4i_vmfnmsub_<mode>): Ditto.
22657 (*xop_vmfrcz_<mode>): Ditto.
22658 (sse_cvtps2pi): Ditto.
22659 (sse_cvttps2pi): Ditto.
22660 (sse_cvtss2si): Ditto.
22661 (sse_cvtss2si_2): Ditto.
22662 (sse_cvtss2siq_2): Ditto.
22663 (sse_cvttss2si): Ditto.
22664 (sse_cvttss2siq): Ditto.
22665 (sse_cvtsd2si): Ditto.
22666 (sse_cvtsd2si_2): Ditto.
22667 (sse_cvtsd2siq_2): Ditto.
22668 (sse_cvttsd2si): Ditto.
22669 (sse_cvttsd2siq): Ditto.
22670 (sse_cvtsd2ss): Ditto.
22671 (sse_cvtss2sd): Ditto.
22672 (avx2_pbroadcast<mode>): Ditto.
22673 (avx2_pbroadcast<mode>_1): Ditto.
22674 (*avx_vperm_broadcast_v4sf): Ditto.
22675
22676 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22677 (sse_movlhps): Ditto.
22678 (sse_storehps): Ditto.
22679 (sse_loadhps): Ditto.
22680 (sse_storelps): Ditto.
22681 (sse_loadlps): Ditto.
22682 (*vec_concatv4sf): Ditto.
22683 (*vec_interleave_highv2df): Ditto.
22684 (*vec_interleave_lowv2df): Ditto.
22685 (*vec_extractv2df_1_sse): Ditto.
22686 (*vec_extractv2df_0_sse): Ditto.
22687 (sse2_storelpd): Ditto.
22688 (sse2_loadlpd): Ditto.
22689 (sse2_movsd): Ditto.
22690 (*vec_concatv4si): Ditto.
22691 (vec_concatv2di): Ditto.
22692
22693 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22694 for Intel asm dialect.
22695 (mmx_punpcklwd): Ditto.
22696 (mmx_punpckldq): Ditto.
22697
22698 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22699 for intel assembler dialect.
22700
22701 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22702
22703 PR target/29776
22704 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22705 for BUILT_IN_C{LZ,LRSB}*.
22706 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22707 * tree-vrp.c (extract_range_basic): Handle
22708 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22709 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22710 fall thru to code calling set_value*.
22711 * builtins.c (expand_builtin): Remove *IMAX cases.
22712 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22713 if width is bigger than 2*HWI.
22714
22715 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22716
22717 PR rtl-optimization/55342
22718 * lra-int.h (lra_subreg_reload_pseudos): New.
22719 * lra.c: Add undoing optional reloads to the block diagram.
22720 (lra_subreg_reload_pseudos): New.
22721 (lra_optional_reload_pseudos): Change comments.
22722 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22723 lra_optional_reload_pseudos after undo transformations.
22724 * lra-assigns.c (pseudo_prefix_title): New.
22725 (lra_setup_reg_renumber): Use it.
22726 (spill_for): Ditto. Check subreg reload pseudos too.
22727 (assign_by_spills): Consider subreg reload pseudos too.
22728 * lra-constraints.c (simplify_operand_subreg): Use
22729 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22730 (curr_insn_transform): Recognize and do optional reloads.
22731 (undo_optional_reloads): New.
22732 (lra_undo_inheritance): Call undo_optional_reloads.
22733
22734 2013-07-05 Thomas Quinot <quinot@adacore.com>
22735
22736 * tree-complex.c (expand_complex_operations_1): Fix typo.
22737
22738 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22739
22740 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22741 (tune_params): New member 'const vec_costs'.
22742 * config/aarch64/aarch64.c (generic_vector_cost): New.
22743 (generic_tunings): New member 'generic_vector_cost'.
22744 (aarch64_builtin_vectorization_cost): New.
22745 (aarch64_add_stmt_cost): New.
22746 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22747 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22748
22749 2013-07-03 Jakub Jelinek <jakub@redhat.com>
22750
22751 PR target/57777
22752 * config/i386/predicates.md (vsib_address_operand): Disallow
22753 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22754
22755 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
22756
22757 PR middle-end/55030
22758 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22759 expand_builtin_setjmp_receiver.
22760 (expand_label): Adjust, call expand_builtin_setjmp_receiver
22761 with NULL for the label parameter.
22762 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22763 the frame-pointer. Adjust comments.
22764 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22765 only if LABEL is non-NULL.
22766
22767 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
22768
22769 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22770 (ARM_ABI_AAPCS64): Ditto.
22771 (arm_abi): Ditto.
22772 (ARM_DEFAULT_ABI): Ditto.
22773
22774 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22775
22776 * config/aarch64/aarch64-builtins.c
22777 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22778 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22779 (st1): Likewise.
22780 * config/aarch64/aarch64-simd.md
22781 (aarch64_ld1<VALL:mode>): New.
22782 (aarch64_st1<VALL:mode>): Likewise.
22783 * config/aarch64/arm_neon.h
22784 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22785
22786 2013-07-02 Sriraman Tallam <tmsriram@google.com>
22787
22788 * config/i386/i386.c (gate_insert_vzeroupper): Check if
22789 target ISA is AVX.
22790 (ix86_option_override_internal):Turn on all -mavx target flags by
22791 default as they are dependent on AVX anyway.
22792
22793 2013-07-02 Cary Coutant <ccoutant@google.com>
22794
22795 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22796 deterministic hash.
22797 (loc_checksum_ordered): Likewise.
22798 (hash_loc_operands): Remove inline keyword.
22799
22800 2013-07-02 Jakub Jelinek <jakub@redhat.com>
22801
22802 PR tree-optimization/57741
22803 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22804 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22805 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22806 Allow REAL_CST step_exprs if flag_associative_math.
22807 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22808
22809 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22810
22811 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22812
22813 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22814
22815 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22816
22817 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22818
22819 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22820 encoding.
22821 (iorsi3_insn): Likewise.
22822 (arm_xorsi3): Likewise.
22823
22824 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
22825
22826 * arm.md (attribute "wtype"): Delete. Move attribute values from here
22827 to ...
22828 (attribute "type"): ... here, and prefix with "wmmx_".
22829 (attribute "core_cycles"): Update for attribute changes.
22830 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22831 (tbcstv4hi): Likewise.
22832 (tbcstv2si): Likewise.
22833 (iwmmxt_iordi3): Likewise.
22834 (iwmmxt_xordi3): Likewise.
22835 (iwmmxt_anddi3): Likewise.
22836 (iwmmxt_nanddi3): Likewise.
22837 (iwmmxt_arm_movdi): Likewise.
22838 (iwmmxt_movsi_insn): Likewise.
22839 (mov<mode>_internal): Likewise.
22840 (and<mode>3_iwmmxt): Likewise.
22841 (ior<mode>3_iwmmxt): Likewise.
22842 (xor<mode>3_iwmmxt): Likewise.
22843 (add<mode>3_iwmmxt): Likewise.
22844 (ssaddv8qi3): Likewise.
22845 (ssaddv4hi3): Likewise.
22846 (ssaddv2si3): Likewise.
22847 (usaddv8qi3): Likewise.
22848 (usaddv4hi3): Likewise.
22849 (usaddv2si3): Likewise.
22850 (sub<mode>3_iwmmxt): Likewise.
22851 (sssubv8qi3): Likewise.
22852 (sssubv4hi3): Likewise.
22853 (sssubv2si3): Likewise.
22854 (ussubv8qi3): Likewise.
22855 (ussubv4hi3): Likewise.
22856 (ussubv2si3): Likewise.
22857 (mulv4hi3_iwmmxt): Likewise.
22858 (smulv4hi3_highpart): Likewise.
22859 (umulv4hi3_highpart): Likewise.
22860 (iwmmxt_wmacs): Likewise.
22861 (iwmmxt_wmacsz): Likewise.
22862 (iwmmxt_wmacu): Likewise.
22863 (iwmmxt_wmacuz): Likewise.
22864 (iwmmxt_clrdi): Likewise.
22865 (iwmmxt_clrv8qi): Likewise.
22866 (iwmmxt_clr4hi): Likewise.
22867 (iwmmxt_clr2si): Likewise.
22868 (iwmmxt_uavgrndv8qi3): Likewise.
22869 (iwmmxt_uavgrndv4hi3): Likewise.
22870 (iwmmxt_uavgv8qi3): Likewise.
22871 (iwmmxt_uavgv4hi3): Likewise.
22872 (iwmmxt_tinsrb): Likewise.
22873 (iwmmxt_tinsrh): Likewise.
22874 (iwmmxt_tinsrw): Likewise.
22875 (iwmmxt_textrmub): Likewise.
22876 (iwmmxt_textrmsb): Likewise.
22877 (iwmmxt_textrmuh): Likewise.
22878 (iwmmxt_textrmsh): Likewise.
22879 (iwmmxt_textrmw): Likewise.
22880 (iwmxxt_wshufh): Likewise.
22881 (eqv8qi3): Likewise.
22882 (eqv4hi3): Likewise.
22883 (eqv2si3): Likewise.
22884 (gtuv8qi3): Likewise.
22885 (gtuv4hi3): Likewise.
22886 (gtuv2si3): Likewise.
22887 (gtv8qi3): Likewise.
22888 (gtv4hi3): Likewise.
22889 (gtv2si3): Likewise.
22890 (smax<mode>3_iwmmxt): Likewise.
22891 (umax<mode>3_iwmmxt): Likewise.
22892 (smin<mode>3_iwmmxt): Likewise.
22893 (umin<mode>3_iwmmxt): Likewise.
22894 (iwmmxt_wpackhss): Likewise.
22895 (iwmmxt_wpackwss): Likewise.
22896 (iwmmxt_wpackdss): Likewise.
22897 (iwmmxt_wpackhus): Likewise.
22898 (iwmmxt_wpackwus): Likewise.
22899 (iwmmxt_wpackdus): Likewise.
22900 (iwmmxt_wunpckihb): Likewise.
22901 (iwmmxt_wunpckihh): Likewise.
22902 (iwmmxt_wunpckihw): Likewise.
22903 (iwmmxt_wunpckilb): Likewise.
22904 (iwmmxt_wunpckilh): Likewise.
22905 (iwmmxt_wunpckilw): Likewise.
22906 (iwmmxt_wunpckehub): Likewise.
22907 (iwmmxt_wunpckehuh): Likewise.
22908 (iwmmxt_wunpckehuw): Likewise.
22909 (iwmmxt_wunpckehsb): Likewise.
22910 (iwmmxt_wunpckehsh): Likewise.
22911 (iwmmxt_wunpckehsw): Likewise.
22912 (iwmmxt_wunpckelub): Likewise.
22913 (iwmmxt_wunpckeluh): Likewise.
22914 (iwmmxt_wunpckeluw): Likewise.
22915 (iwmmxt_wunpckelsb): Likewise.
22916 (iwmmxt_wunpckelsh): Likewise.
22917 (iwmmxt_wunpckelsw): Likewise.
22918 (ror<mode>3): Likewise.
22919 (ashr<mode>3_iwmmxt): Likewise.
22920 (lshr<mode>3_iwmmxt): Likewise.
22921 (ashl<mode>3_iwmmxt): Likewise.
22922 (ror<mode>3_di): Likewise.
22923 (ashr<mode>3_di): Likewise.
22924 (lshr<mode>3_di): Likewise.
22925 (ashl<mode>3_di): Likewise.
22926 (iwmmxt_wmadds): Likewise.
22927 (iwmmxt_wmaddu): Likewise.
22928 (iwmmxt_tmia): Likewise.
22929 (iwmmxt_tmiaph): Likewise.
22930 (iwmmxt_tmiabb): Likewise.
22931 (iwmmxt_tmiatb): Likewise.
22932 (iwmmxt_tmiabt): Likewise.
22933 (iwmmxt_tmiatt): Likewise.
22934 (iwmmxt_tmovmskb): Likewise.
22935 (iwmmxt_tmovmskh): Likewise.
22936 (iwmmxt_tmovmskw): Likewise.
22937 (iwmmxt_waccb): Likewise.
22938 (iwmmxt_wacch): Likewise.
22939 (iwmmxt_waccw): Likewise.
22940 (iwmmxt_waligni): Likewise.
22941 (iwmmxt_walignr): Likewise.
22942 (iwmmxt_walignr0): Likewise.
22943 (iwmmxt_walignr1): Likewise.
22944 (iwmmxt_walignr2): Likewise.
22945 (iwmmxt_walignr3): Likewise.
22946 (iwmmxt_wsadb): Likewise.
22947 (iwmmxt_wsadh): Likewise.
22948 (iwmmxt_wsadbz): Likewise.
22949 (iwmmxt_wsadhz): Likewise.
22950 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22951 (iwmmxt_wabsdiffb): Likewise.
22952 (iwmmxt_wabsdiffh): Likewise.
22953 (iwmmxt_wabsdiffw): Likewise.
22954 (iwmmxt_waddsubhx): Likewise
22955 (iwmmxt_wsubaddhx): Likewise.
22956 (addc<mode>3): Likewise.
22957 (iwmmxt_avg4): Likewise.
22958 (iwmmxt_avg4r): Likewise.
22959 (iwmmxt_wmaddsx): Likewise.
22960 (iwmmxt_wmaddux): Likewise.
22961 (iwmmxt_wmaddsn): Likewise.
22962 (iwmmxt_wmaddun): Likewise.
22963 (iwmmxt_wmulwsm): Likewise.
22964 (iwmmxt_wmulwum): Likewise.
22965 (iwmmxt_wmulsmr): Likewise.
22966 (iwmmxt_wmulumr): Likewise.
22967 (iwmmxt_wmulwsmr): Likewise.
22968 (iwmmxt_wmulwumr): Likewise.
22969 (iwmmxt_wmulwl): Likewise.
22970 (iwmmxt_wqmulm): Likewise.
22971 (iwmmxt_wqmulwm): Likewise.
22972 (iwmmxt_wqmulmr): Likewise.
22973 (iwmmxt_wqmulwmr): Likewise.
22974 (iwmmxt_waddbhusm): Likewise.
22975 (iwmmxt_waddbhusl): Likewise.
22976 (iwmmxt_wqmiabb): Likewise.
22977 (iwmmxt_wqmiabt): Likewise.
22978 (iwmmxt_wqmiatb): Likewise.
22979 (iwmmxt_wqmiatt): Likewise.
22980 (iwmmxt_wqmiabbn): Likewise.
22981 (iwmmxt_wqmiabtn): Likewise.
22982 (iwmmxt_wqmiatbn): Likewise.
22983 (iwmmxt_wqmiattn): Likewise.
22984 (iwmmxt_wmiabb): Likewise.
22985 (iwmmxt_wmiabt): Likewise.
22986 (iwmmxt_wmiatb): Likewise.
22987 (iwmmxt_wmiatt): Likewise.
22988 (iwmmxt_wmiabbn): Likewise.
22989 (iwmmxt_wmiabtn): Likewise.
22990 (iwmmxt_wmiatbn): Likewise.
22991 (iwmmxt_wmiattn): Likewise.
22992 (iwmmxt_wmiawbb): Likewise.
22993 (iwmmxt_wmiawbt): Likewise.
22994 (iwmmxt_wmiawtb): Likewise.
22995 (iwmmxt_wmiawtt): Likewise.
22996 (iwmmxt_wmiawbbn): Likewise.
22997 (iwmmxt_wmiawbtn): Likewise.
22998 (iwmmxt_wmiawtbn): Likewise.
22999 (iwmmxt_wmiawttn): Likewise.
23000 (iwmmxt_wmerge): Likewise.
23001 (iwmmxt_tandc<mode>3): Likewise.
23002 (iwmmxt_torc<mode>3): Likewise.
23003 (iwmmxt_torvsc<mode>3): Likewise.
23004 (iwmmxt_textrc<mode>3): Likewise.
23005 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23006 (wmmxt_pack): Likewise.
23007 (wmmxt_mult_c1): Likewise.
23008 (wmmxt_mult_c2): Likewise.
23009 (wmmxt_alu_c1): Likewise.
23010 (wmmxt_alu_c2): Likewise.
23011 (wmmxt_alu_c3): Likewise.
23012 (wmmxt_transfer_c1): Likewise.
23013 (wmmxt_transfer_c2): Likewise.
23014 (wmmxt_transfer_c3): Likewise.
23015 (marvell_f_iwmmxt_wstr): Likewise.
23016 (marvell_f_iwmmxt_wldr): Likewise.
23017
23018 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23019
23020 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23021
23022 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23023
23024 Revert:
23025 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23026 * lra-constraints.c (need_for_split_p): Check call used hard regs
23027 living through calls.
23028
23029 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23030 call used regs for call insn.
23031
23032 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23033
23034 PR target/57736
23035 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23036 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23037
23038 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23039
23040 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23041
23042 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23043
23044 * lra-constraints.c (need_for_split_p): Check call used hard regs
23045 living through calls.
23046
23047 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23048
23049 PR target/57744
23050 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23051 to tie with any other modes. Eliminate Altivec vector mode tests,
23052 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23053 code, to return 0 if testing MODE2 for a condition, if we've
23054 already tested MODE1 for the same condition.
23055
23056 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23057
23058 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23059 layout.
23060
23061 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23062
23063 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23064 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23065
23066 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23067
23068 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23069 Define.
23070 (aarch64_symbolic_constant_p): Remove.
23071 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23072 static. Fix line length and white space.
23073 (aarch64_symbolic_constant_p): Remove.
23074 * config/aarch64/predicates.md (aarch64_valid_symref):
23075 Use aarch64_classify_symbol_expression.
23076
23077 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23078
23079 * config/arm/constraints.md (Ts): New constraint.
23080 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23081 16-bit encodings.
23082 (compare_scc): Use "Ts" constraint for operand 0.
23083 (ior_scc_scc): Likewise.
23084 (and_scc_scc): Likewise.
23085 (and_scc_scc_nodom): Likewise.
23086 (ior_scc_scc_cmp): Likewise for operand 7.
23087 (and_scc_scc_cmp): Likewise.
23088 * config/arm/thumb2.md (thumb2_movsi_insn):
23089 Add alternatives for 16-bit encodings.
23090 (thumb2_movhi_insn): Likewise.
23091 (thumb2_movsicc_insn): Likewise.
23092 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23093 (thumb2_negscc): Use "Ts" constraint.
23094 Move mvn instruction outside cond_exec block.
23095 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23096 for 16-bit encodings.
23097
23098 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23099
23100 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23101 encoding.
23102 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23103 (mulsi3subsi): Likewise.
23104 (mulsidi3adddi): Likewise.
23105 (mulsidi3_v6): Likewise.
23106 (umulsidi3_v6): Likewise.
23107 (umulsidi3adddi_v6): Likewise.
23108 (smulsi3_highpart_v6): Likewise.
23109 (umulsi3_highpart_v6): Likewise.
23110 (mulhisi3tb): Likewise.
23111 (mulhisi3bt): Likewise.
23112 (mulhisi3tt): Likewise.
23113 (maddhisi4): Likewise.
23114 (maddhisi4tb): Likewise.
23115 (maddhisi4tt): Likewise.
23116 (maddhidi4): Likewise.
23117 (maddhidi4tb): Likewise.
23118 (maddhidi4tt): Likewise.
23119 (zeroextractsi_compare0_scratch): Likewise.
23120 (insv_zero): Likewise.
23121 (insv_t2): Likewise.
23122 (anddi_notzesidi_di): Likewise.
23123 (anddi_notsesidi_di): Likewise.
23124 (andsi_notsi_si): Likewise.
23125 (iordi_zesidi_di): Likewise.
23126 (xordi_zesidi_di): Likewise.
23127 (andsi_iorsi3_notsi): Likewise.
23128 (smax_0): Likewise.
23129 (smax_m1): Likewise.
23130 (smin_0): Likewise.
23131 (not_shiftsi): Likewise.
23132 (unaligned_loadsi): Likewise.
23133 (unaligned_loadhis): Likewise.
23134 (unaligned_loadhiu): Likewise.
23135 (unaligned_storesi): Likewise.
23136 (unaligned_storehi): Likewise.
23137 (extv_reg): Likewise.
23138 (extzv_t2): Likewise.
23139 (divsi3): Likewise.
23140 (udivsi3): Likewise.
23141 (arm_zero_extendhisi2addsi): Likewise.
23142 (arm_zero_extendqisi2addsi): Likewise.
23143 (compareqi_eq0): Likewise.
23144 (arm_extendhisi2_v6): Likewise.
23145 (arm_extendqisi2addsi): Likewise.
23146 (arm_movt): Likewise.
23147 (thumb2_ldrd): Likewise.
23148 (thumb2_ldrd_base): Likewise.
23149 (thumb2_ldrd_base_neg): Likewise.
23150 (thumb2_strd): Likewise.
23151 (thumb2_strd_base): Likewise.
23152 (thumb2_strd_base_neg): Likewise.
23153 (arm_negsi2): Add alternative for 16-bit encoding.
23154 (arm_one_cmplsi2): Likewise.
23155
23156 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23157
23158 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23159 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23160 (movdfcc): Likewise.
23161 * config/arm/vfp.md (*thumb2_movsf_vfp):
23162 Disable predication for arm_restrict_it.
23163 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23164 (*thumb2_movdfcc_vfp): Likewise.
23165 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23166 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23167 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23168 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23169 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23170 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23171 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23172 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23173 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23174 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23175 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23176 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23177 Disable predication for arm_restrict_it.
23178
23179 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23180
23181 * config/i386/bmiintrin.h (_bextr_u32): New.
23182 (_bextr_u64): Ditto.
23183
23184 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23185
23186 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23187 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23188 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23189 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23190 * config/mips/n32-elf.h: ...this new file.
23191
23192 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23193
23194 PR target/57224
23195 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23196 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23197
23198 2013-06-27 Catherine Moore <clm@codesourcery.com>
23199
23200 * config/mips/mips-tables.opt: Regenerate.
23201 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23202 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23203 * doc/invoke.texi: Add -m14kc.
23204
23205 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23206
23207 PR target/57623
23208 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23209 constraints of operand 1 and 2.
23210
23211 PR target/57623
23212 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23213 to match RTL canonicalization. Swap predicates and
23214 constraints of operand 1 and 2.
23215
23216 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23217
23218 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23219 Process OP_INOUT regs for splitting too.
23220
23221 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23222
23223 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23224 decl before the loop, initialize to NULL.
23225 (vectorizable_load): Initialize ptr_incr to NULL.
23226
23227 2013-06-27 Martin Jambor <mjambor@suse.cz>
23228
23229 PR lto/57208
23230 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23231 * ipa-ref.c (ipa_maybe_record_reference): New function.
23232 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23233 * ipa-cp.c (create_specialized_node): Record potential references from
23234 aggvals.
23235 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23236
23237 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23238
23239 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23240 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23241 'mode' to force_reg.
23242 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23243 (aarch64_expand_mov_immediate): Likewise.
23244
23245 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23246
23247 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23248 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23249
23250 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23251
23252 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23253 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23254 (struct machine_function): Add tbegin_p.
23255 (s390_canonicalize_comparison): Fold CC mode compares to
23256 conditional jump if possible.
23257 (s390_emit_jump): Return the emitted jump.
23258 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23259 Handle CCRAWmode compares.
23260 (s390_option_override): Default to -mhtm if available.
23261 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23262 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23263 FPRs instead of df_regs_ever_live_p.
23264 (s390_optimize_nonescaping_tx): New function.
23265 (s390_init_frame_layout): Extend clobbered_regs array to cover
23266 FPRs as well.
23267 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23268 (s390_expand_tbegin): New function.
23269 (enum s390_builtin): New enum definition.
23270 (code_for_builtin): New array definition.
23271 (s390_init_builtins): New function.
23272 (s390_expand_builtin): New function.
23273 (TARGET_INIT_BUILTINS): Define.
23274 (TARGET_EXPAND_BUILTIN): Define.
23275 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23276 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23277 (s390_alc_comparison): Likewise.
23278 * config/s390/s390-modes.def: Add CCRAWmode.
23279 * config/s390/s390.h (processor_flags): Add PF_TX.
23280 (TARGET_CPU_HTM): Define macro.
23281 (TARGET_HTM): Define macro.
23282 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23283 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23284 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23285 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23286 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23287 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23288 ("*cc_to_int"): Move up.
23289 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23290 constants other than 0.
23291 ("*ccraw_to_int"): New insn and splitter definition.
23292 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23293 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23294 ("tx_assist"): New expander.
23295 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23296 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23297 * config/s390/s390.opt: Add -mhtm option.
23298 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23299 * config/s390/htmxlintrin.h: New file.
23300 * config/s390/htmintrin.h: New file.
23301 * config/s390/s390intrin.h: New file.
23302 * doc/extend.texi: Document htm builtins.
23303 * config.gcc: Add the new header files to extra_headers.
23304
23305 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23306
23307 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23308 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23309
23310 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23311 Pat Haugen <pthaugen@us.ibm.com>
23312 Peter Bergner <bergner@vnet.ibm.com>
23313
23314 * config/rs6000/power8.md: New.
23315 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23316 setting for power8 entry.
23317 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23318 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23319 test for Power4/Power5 only.
23320 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23321 support.
23322 (force_new_group): Adjust comment.
23323 * config/rs6000/rs6000.md: Include power8.md.
23324
23325 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23326
23327 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23328 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23329 declaration.
23330 (tune_params): Update comment.
23331 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23332 (arm_max_conditional_execute): New function.
23333 (thumb2_final_prescan_insn): Use max_insn_skipped and
23334 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23335
23336 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23337
23338 PR tree-optimization/57705
23339 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23340 SSA_NAME step, provided that it is not defined inside the loop.
23341 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23342 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23343
23344 2013-06-25 Martin Jambor <mjambor@suse.cz>
23345
23346 PR middle-end/57670
23347 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23348 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23349 calls in the dump.
23350 (ipa_note_param_call): Initialize member_ptr flag.
23351 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23352 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23353 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23354 (ipa_read_indirect_edge_info): Likewise.
23355
23356 2013-06-25 Richard Biener <rguenther@suse.de>
23357
23358 PR middle-end/56977
23359 * passes.c (init_optimization_passes): Move pass_fold_builtins
23360 and pass_dce earlier with -Og.
23361
23362 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23363
23364 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23365 <BIT_FIELD_REF>: Remove trailing TAB.
23366 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23367 remove blank line.
23368
23369 2013-06-24 Martin Jambor <mjambor@suse.cz>
23370
23371 PR tree-optimization/57358
23372 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23373 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23374 (ipa_analyze_params_uses): Generate pessimistic info when true.
23375
23376 2013-06-24 Martin Jambor <mjambor@suse.cz>
23377
23378 PR tree-optimization/57539
23379 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23380 global.inlined_to of the new node to it. All callers changed.
23381 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23382 inlining_into, pass it to cgraph_clone_node.
23383 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23384 ipa_free_edge_args_substructures.
23385 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23386 rdesc linked list. Do not assert rdesc edges have inlined caller.
23387 Assert we have found an rdesc in the rdesc list.
23388
23389 2013-06-24 Richard Biener <rguenther@suse.de>
23390
23391 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23392 (pointer_set_lookup): Declare.
23393 (class pointer_map): New template class implementing a
23394 generic pointer to T map.
23395 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23396 pointer_map<T>::contains, pointer_map<T>::insert,
23397 pointer_map<T>::traverse): New functions.
23398 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23399 (pointer_set_lookup): New function.
23400 (pointer_set_contains): Use pointer_set_lookup.
23401 (pointer_set_insert): Likewise.
23402 (insert_aux): Remove.
23403 (struct pointer_map_t): Embed a pointer_set_t.
23404 (pointer_map_create): Adjust.
23405 (pointer_map_destroy): Likewise.
23406 (pointer_map_contains): Likewise.
23407 (pointer_map_insert): Likewise.
23408 (pointer_map_traverse): Likewise.
23409 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23410 pointer_map<unsigned> instead of a pointer_map_t.
23411 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23412 (streamer_tree_cache_lookup): Likewise.
23413 (streamer_tree_cache_create): Likewise.
23414 (streamer_tree_cache_delete): Likewise.
23415 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23416 pointer_map<unsigned> instead of a pointer_map_t.
23417 (lto_init_tree_ref_encoder): Adjust.
23418 (lto_destroy_tree_ref_encoder): Likewise.
23419 * lto-section-out.c (lto_output_decl_index): Likewise.
23420 (lto_record_function_out_decl_state): Likewise.
23421 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23422
23423 2013-06-24 Richard Biener <rguenther@suse.de>
23424
23425 PR tree-optimization/57488
23426 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23427
23428 2013-06-24 Alan Modra <amodra@gmail.com>
23429
23430 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23431 (gen_easy_altivec_constant): Likewise.
23432 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23433 easy_vector_constant_msb): Likewise.
23434
23435 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23436
23437 PR target/57688
23438 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23439 add missing return true.
23440
23441 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23442
23443 PR target/52483
23444 * config/sh/predicates.md (general_extend_operand): Invoke
23445 general_movsrc_operand for memory operands.
23446 (general_movsrc_operand): Allow reg+reg addressing, do not use
23447 general_operand for memory operands.
23448
23449 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23450
23451 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23452 when current target options does not apply.
23453 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23454 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23455 * config/i386/bmiintrin.h: Pass appropriate target
23456 attributes to header.
23457 * config/i386/mmintrin.h: Ditto.
23458 * config/i386/nmmintrin.h: Ditto.
23459 * config/i386/avx2intrin.h: Ditto.
23460 * config/i386/fxsrintrin.h: Ditto.
23461 * config/i386/tbmintrin.h: Ditto.
23462 * config/i386/xsaveintrin.h: Ditto.
23463 * config/i386/f16cintrin.h: Ditto.
23464 * config/i386/xtestintrin.h: Ditto.
23465 * config/i386/xsaveoptintrin.h: Ditto.
23466 * config/i386/bmi2intrin.h: Ditto.
23467 * config/i386/lzcntintrin.h: Ditto.
23468 * config/i386/smmintrin.h: Ditto.
23469 * config/i386/wmmintrin.h: Ditto.
23470 * config/i386/x86intrin.h: Remove all header include guards.
23471 * config/i386/prfchwintrin.h: Ditto.
23472 * config/i386/pmmintrin.h: Ditto.
23473 * config/i386/tmmintrin.h: Ditto.
23474 * config/i386/xmmintrin.h: Ditto.
23475 * config/i386/popcntintrin.h: Ditto.
23476 * config/i386/rdseedintrin.h: Ditto.
23477 * config/i386/ammintrin.h: Ditto.
23478 * config/i386/emmintrin.h: Ditto.
23479 * config/i386/immintrin.h: Remove all header include guards.
23480 * config/i386/fma4intrin.h: Ditto.
23481 * config/i386/lwpintrin.h: Ditto.
23482 * config/i386/xopintrin.h: Ditto.
23483 * config/i386/ia32intrin.h: Ditto.
23484 * config/i386/avxintrin.h: Ditto.
23485 * config/i386/rtmintrin.h: Ditto.
23486 * config/i386/fmaintrin.h: Ditto.
23487 * config/i386/mm3dnow.h: Ditto.
23488
23489 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23490
23491 * common/config/i386/i386-common.c: Handle LZCNT.
23492
23493 2013-06-22 Andi Kleen <ak@linux.intel.com>
23494
23495 * doc/extend.texi: Use __atomic_store_n instead of
23496 __atomic_store in HLE example.
23497
23498 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23499
23500 * config/sh/sh.c: Remove <cstdlib> workaround.
23501
23502 2013-06-21 Andi Kleen <ak@linux.intel.com>
23503
23504 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23505
23506 2013-06-21 Andi Kleen <ak@linux.intel.com>
23507
23508 * doc/extend.texi: Document that __atomic_clear and
23509 __atomic_test_and_set should only be used with bool.
23510
23511 2013-06-20 Jan Hubicka <jh@suse.cz>
23512
23513 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23514 types_same_for_odr.
23515 * tree.c (decls_same_for_odr): New function.
23516 (same_for_edr): New function.
23517 (types_same_for_odr): New function.
23518 (get_binfo_at_offset): Use it.
23519 * tree.h (types_same_for_odr): Declare.
23520
23521 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23522 Jason Merrill <jason@redhat.com>
23523
23524 * system.h: Include <cstdlib> as well as <stdlib.h>.
23525
23526 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23527
23528 PR target/57655
23529 * config/i386/i386.c (construct_container): Report error if
23530 long double is used with disabled x87 float returns.
23531
23532 2013-06-20 Jan Hubicka <jh@suse.cz>
23533
23534 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23535
23536 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23537
23538 PR rtl-optimization/57425
23539 PR rtl-optimization/57569
23540 * alias.c (write_dependence_p): Remove parameters mem_mode and
23541 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23542 Changed all callers.
23543 (canon_anti_dependence): Get comments and semantics in sync.
23544 Add parameter mem_canonicalized. Changed all callers.
23545 * rtl.h (canon_anti_dependence): Update prototype.
23546
23547 2013-06-20 Richard Biener <rguenther@suse.de>
23548
23549 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23550 byte case, inline streamer_read_uchar and defer section
23551 overrun check.
23552
23553 2013-06-20 Richard Biener <rguenther@suse.de>
23554
23555 PR tree-optimization/57584
23556 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23557 SSA names into the expanded expression that take part in
23558 abnormal coalescing.
23559
23560 2013-06-19 Sharad Singhai <singhai@google.com>
23561
23562 * gcov.c (print_usage): Handle new option.
23563 (process_args): Ditto.
23564 (get_gcov_intermediate_filename): New function.
23565 (output_intermediate_file): New function.
23566 (output_gcov_file): New function
23567 (generate_results): Handle new option.
23568 (release_function): Relase demangled name.
23569 (read_graph_file): Handle demangled name.
23570 (output_lines): Ditto.
23571 * doc/gcov.texi: Document gcov intermediate format.
23572
23573 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23574
23575 PR bootstrap/57604
23576 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23577 (lra_emit_add): Use the functions. Add comment about Y as an
23578 address segment.
23579
23580 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23581
23582 PR driver/57652
23583 * collect2.c (collect_atexit): New.
23584 (collect_exit): Delete.
23585 (main): Register collect_atexit with atexit.
23586 (collect_wait): Change collect_exit to exit.
23587 (do_wait): Same.
23588 * collect2.h (collect_exit): Delete.
23589 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23590
23591 2013-06-19 Wei Mi <wmi@google.com>
23592
23593 PR rtl-optimization/57518
23594 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23595 if regno is used in paradoxical subreg.
23596 (update_equiv_regs): Check pdx_subregs[regno] before
23597 set a reg to be equivalent with a mem.
23598
23599 2013-06-19 Matthias Klose <doko@ubuntu.com>
23600
23601 PR driver/57651
23602 * file-find.h (find_a_file): Add a mode parameter.
23603 * file-find.c (find_a_file): Likewise.
23604 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23605 with X_OK for the executables.
23606 * collect2.c (main): Call find_a_file with X_OK.
23607
23608 2013-06-19 Steve Ellcey <sellcey@mips.com>
23609
23610 PR target/56942
23611 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23612 Use NEXT_INSN instead of next_real_insn.
23613
23614 2013-06-19 Jan Hubicka <jh@suse.cz>
23615
23616 * cgraph.h (const_value_known_p): Replace by ...
23617 (ctor_for_folding): .. this one.
23618 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23619 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23620 * expr.c (expand_expr_real_1): Likewise.
23621 (string_constant): Likewise.
23622 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23623 * ipa.c (process_references): Likewise.
23624 (symtab_remove_unreachable_nodes): Likewise.
23625 * ipa-inline-analysis.c (param_change_prob): Likewise.
23626 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23627 (get_base_constructor): Likwise.
23628 * varpool.c (varpool_remove_node): Likewise.
23629 (varpool_remove_initializer): LIkewise.
23630 (dump_varpool_node): LIkwise.
23631 (const_value_known_p): Rewrite to ...
23632 (ctor_for_folding): ... this one.
23633
23634 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23635
23636 PR driver/57651
23637 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23638 PERSONALITY in $PATH derived prefixes.
23639
23640 2013-06-19 Jeff Law <law@redhat.com>
23641
23642 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23643 in comment.
23644
23645 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23646 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23647 booleans.
23648
23649 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23650
23651 * config/arm/vfp.md: Move VFP instruction classification documentation
23652 to ...
23653 * config/arm/arm.md: ... here. Update instruction classification
23654 documentation.
23655
23656 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23657
23658 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23659 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23660 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23661
23662 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23663
23664 PR target/57609
23665 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23666 with NEXT_INSN. Use tablejump_p to check for jump table data
23667 insns.
23668
23669 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23670
23671 PR c++/56544
23672 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23673 that now in C++ the value is correct per the C++ standards.
23674
23675 2013-06-19 Richard Biener <rguenther@suse.de>
23676
23677 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23678 for global context.
23679
23680 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23681
23682 Revert:
23683 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23684
23685 PR target/57609
23686 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23687 with next_active_insn.
23688
23689 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23690
23691 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23692 functions are inlined during failures to flag an error.
23693 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23694 in early inline pass.
23695
23696 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23697
23698 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23699 in comments.
23700
23701 2013-06-18 Julian Brown <julian@codesourcery.com>
23702
23703 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23704 Permit virtual register pre-reload if !strict.
23705 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23706 change.
23707 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23708 prototype.
23709 * config/arm/neon.md (movmisalign<mode>): Use
23710 neon_perm_struct_or_reg_operand instead of
23711 neon_struct_or_register_operand.
23712 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23713 neon_permissive_struct_operand instead of neon_struct_operand.
23714 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23715 neon_vector_mem_operand.
23716 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23717 neon_vector_mem_operand.
23718 (neon_permissive_struct_operand): New.
23719 (neon_struct_or_register_operand): Rename to...
23720 (neon_perm_struct_or_reg_operand): This. Adjust call to
23721 neon_vector_mem_operand.
23722
23723 2013-06-18 Richard Biener <rguenther@suse.de>
23724
23725 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23726 * lto-streamer.h: Include pointer-set.h.
23727 (struct lto_decl_slot): Remove.
23728 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23729 Remove next_index entry.
23730 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23731 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23732 (lto_init_tree_ref_encoder): Adjust.
23733 (lto_destroy_tree_ref_encoder): Likewise.
23734 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23735 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23736 (lto_output_decl_index): Adjust.
23737 (lto_new_out_decl_state): Likewise.
23738 (lto_record_function_out_decl_state): Likewise.
23739 * lto-streamer-out.c (copy_function): Likewise.
23740
23741 2013-06-18 Richard Biener <rguenther@suse.de>
23742
23743 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23744 * cgraphunit.c: Include cfgloop.h.
23745 (init_lowered_empty_function): Initialize the loop tree.
23746 (assemble_thunk): Insert new BBs into loops.
23747
23748 2013-06-18 Richard Biener <rguenther@suse.de>
23749
23750 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23751 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23752 the map from cache entry to cache index optional.
23753 (streamer_tree_cache_replace_tree): Adjust accordingly.
23754 (streamer_tree_cache_append): Likewise.
23755 (streamer_tree_cache_delete): Likewise.
23756 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23757 streamer cache map from cache entry to cache index.
23758 * lto-streamer-out.c (create_output_block): Adjust.
23759
23760 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
23761
23762 * config/arm/arm.md (attribute "insn"): Move multiplication and
23763 division attributes to...
23764 (attribute "type"): ... here. Remove mult.
23765 (attribute "mul32"): New attribute.
23766 (attribute "mul64"): Add umaal.
23767 (*arm_mulsi3): Update attributes.
23768 (*arm_mulsi3_v6): Likewise.
23769 (*thumb_mulsi3): Likewise.
23770 (*thumb_mulsi3_v6): Likewise.
23771 (*mulsi3_compare0): Likewise.
23772 (*mulsi3_compare0_v6): Likewise.
23773 (*mulsi_compare0_scratch): Likewise.
23774 (*mulsi_compare0_scratch_v6): Likewise.
23775 (*mulsi3addsi): Likewise.
23776 (*mulsi3addsi_v6): Likewise.
23777 (*mulsi3addsi_compare0): Likewise.
23778 (*mulsi3addsi_compare0_v6): Likewise.
23779 (*mulsi3addsi_compare0_scratch): Likewise.
23780 (*mulsi3addsi_compare0_scratch_v6): Likewise.
23781 (*mulsi3subsi): Likewise.
23782 (*mulsidi3adddi): Likewise.
23783 (*mulsi3addsi_v6): Likewise.
23784 (*mulsidi3adddi_v6): Likewise.
23785 (*mulsidi3_nov6): Likewise.
23786 (*mulsidi3_v6): Likewise.
23787 (*umulsidi3_nov6): Likewise.
23788 (*umulsidi3_v6): Likewise.
23789 (*umulsidi3adddi): Likewise.
23790 (*umulsidi3adddi_v6): Likewise.
23791 (*smulsi3_highpart_nov6): Likewise.
23792 (*smulsi3_highpart_v6): Likewise.
23793 (*umulsi3_highpart_nov6): Likewise.
23794 (*umulsi3_highpart_v6): Likewise.
23795 (mulhisi3): Likewise.
23796 (*mulhisi3tb): Likewise.
23797 (*mulhisi3bt): Likewise.
23798 (*mulhisi3tt): Likewise.
23799 (maddhisi4): Likewise.
23800 (*maddhisi4tb): Likewise.
23801 (*maddhisi4tt): Likewise.
23802 (maddhidi4): Likewise.
23803 (*maddhidi4tb): Likewise.
23804 (*maddhidi4tt): Likewise.
23805 (divsi3): Likewise.
23806 (udivsi3): Likewise.
23807 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23808 (thumb2_mulsi_short_compare0): Likewise.
23809 (thumb2_mulsi_short_compare0_scratch): Likewise.
23810 * config/arm/arm1020e.md (1020mult1): Update attribute change.
23811 (1020mult2): Likewise.
23812 (1020mult3): Likewise.
23813 (1020mult4): Likewise.
23814 (1020mult5): Likewise.
23815 (1020mult6): Likewise.
23816 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23817 change.
23818 (cortex_a15_mult64): Likewise.
23819 (cortex_a15_sdiv): Likewise.
23820 (cortex_a15_udiv): Likewise.
23821 * config/arm/arm1026ejs.md (mult1): Update attribute change.
23822 (mult2): Likewise.
23823 (mult3): Likewise.
23824 (mult4): Likewise.
23825 (mult5): Likewise.
23826 (mult6): Likewise.
23827 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23828 (pj4_ir_div): Likewise.
23829 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23830 (11_mult2): Likewise.
23831 (11_mult3): Likewise.
23832 (11_mult4): Likewise.
23833 (11_mult5): Likewise.
23834 (11_mult6): Likewise.
23835 (11_mult7): Likewise.
23836 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23837 (cortex_a8_mla): Likewise.
23838 (cortex_a8_mull): Likewise.
23839 (cortex_a8_smulwy): Likewise.
23840 (cortex_a8_smlald): Likewise.
23841 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23842 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23843 (cortex_r4_mul_3): Likewise.
23844 (cortex_r4_mla_4): Likewise.
23845 (cortex_r4_mla_3): Likewise.
23846 (cortex_r4_smlald): Likewise.
23847 (cortex_r4_mull): Likewise.
23848 (cortex_r4_sdiv): Likewise.
23849 (cortex_r4_udiv): Likewise.
23850 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23851 (cortex_a7_idiv): Likewise.
23852 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23853 (9_mult2): Likewise.
23854 (9_mult3): Likewise.
23855 (9_mult4): Likewise.
23856 (9_mult5): Likewise.
23857 (9_mult6): Likewise.
23858 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23859 (cortex_a53_sdiv): Likewise.
23860 (cortex_a53_udiv): Likewise.
23861 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23862 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23863 (mp626_mult2): Likewise.
23864 (mp626_mult3): Likewise.
23865 (mp626_mult4): Likewise.
23866 * config/arm/fa526.md (526_mult1): Update attribute change.
23867 (526_mult2): Likewise.
23868 * config/arm/arm-generic.md (mult): Update attribute change.
23869 (mult_ldsched_strongarm): Likewise.
23870 (mult_ldsched): Likewise.
23871 (multi_cycle): Likewise.
23872 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23873 * config/arm/fa606te.md (606te_mult1): Update attribute change.
23874 (606te_mult2): Likewise.
23875 (606te_mult3): Likewise.
23876 (606te_mult4): Likewise.
23877 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23878 (cortex_a9_mac16): Likewise.
23879 (cortex_a9_multiply): Likewise.
23880 (cortex_a9_mac): Likewise.
23881 (cortex_a9_multiply_long): Likewise.
23882 * config/arm/fa626te.md (626te_mult1): Update attribute change.
23883 (626te_mult2): Likewise.
23884 (626te_mult3): Likewise.
23885 (626te_mult4): Likewise.
23886
23887 2013-06-18 Richard Biener <rguenther@suse.de>
23888
23889 PR lto/57334
23890 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23891
23892 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23893
23894 PR target/57609
23895 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23896 with next_active_insn.
23897
23898 2013-06-18 Alan Modra <amodra@gmail.com>
23899
23900 * config/rs6000/rs6000.h (enum data_align): New.
23901 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23902 (DATA_ABI_ALIGNMENT): Define.
23903 (CONSTANT_ALIGNMENT): Correct comment.
23904 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23905 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23906
23907 2013-06-17 David Malcolm <dmalcolm@redhat.com>
23908
23909 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23910 ATTRIBUTE_UNUSED marking.
23911
23912 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
23913
23914 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23915 alternative and update.
23916 (aarch64_dup_lanedi): Delete.
23917 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23918 * config/aarch64/aarch64-simd-builtins.def: Update.
23919
23920 2013-06-17 Richard Biener <rguenther@suse.de>
23921
23922 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23923 (lto_input_scc): Declare.
23924 (lto_input_tree_1): Likewise.
23925 (struct lto_stats_d): Add num_tree_bodies_output and
23926 num_pickle_refs_output.
23927 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23928 (lto_read_tree_1): Split out from ...
23929 (lto_read_tree): ... this.
23930 (lto_input_scc): New function.
23931 (lto_input_tree_1): Split out from ...
23932 (lto_input_tree): ... this. Handle LTO_tree_scc.
23933 (lto_data_in_create): Create the streamer cache without hashes.
23934 * lto-streamer-out.c (create_output_block): Create the streamer
23935 cache with hashes when not doing WPA.
23936 (lto_write_tree_1): Split out from ...
23937 (lto_write_tree): ... this.
23938 (get_symbol_initial_value): New function.
23939 (lto_output_tree_1): Split out from ...
23940 (lto_output_tree): ... this. Write trees as series of SCCs
23941 using a DFS walk via DFS_write_tree.
23942 (struct sccs, struct scc_entry): New types.
23943 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23944 (DFS_write_tree_body): New function.
23945 (DFS_write_tree): Likewise.
23946 (hash_tree): Likewise.
23947 (scc_entry_compare): Likewise.
23948 (hash_scc): Likewise.
23949 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23950 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23951 TREE_CHAIN as regular reference.
23952 (streamer_read_integer_cst): Remove.
23953 (streamer_get_pickled_tree): Adjust.
23954 * tree-streamer-out.c (streamer_write_chain): Disable streaming
23955 of DECL_EXTERNALs in BLOCK_VARS for now.
23956 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23957 reference.
23958 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23959 Add hash value argument and record that if hashes are recorded
23960 in the cache.
23961 (streamer_tree_cache_insert_1): Adjust.
23962 (streamer_tree_cache_insert): Likewise.
23963 (streamer_tree_cache_insert_at): Rename to ...
23964 (streamer_tree_cache_replace_tree): ... this and adjust.
23965 (streamer_tree_cache_append): Adjust.
23966 (record_common_node): Likewise.
23967 (streamer_tree_cache_create): Add argument whether to
23968 record hash values together with trees.
23969 (streamer_tree_cache_delete): Adjust.
23970 * tree-streamer.h (struct streamer_tree_cache_d): Add
23971 vector of hashes.
23972 (streamer_read_integer_cst): Remove.
23973 (streamer_tree_cache_insert): Adjust.
23974 (streamer_tree_cache_append): Likewise.
23975 (streamer_tree_cache_insert_at): Rename to ...
23976 (streamer_tree_cache_replace_tree): ... this and adjust.
23977 (streamer_tree_cache_create): Add argument whether to record hashes.
23978 (streamer_tree_cache_get): Rename to ...
23979 (streamer_tree_cache_get_tree): ... this.
23980 (streamer_tree_cache_get_hash): New function.
23981 * tree.c (cache_integer_cst): New function.
23982 * tree.h (cache_integer_cst): Declare.
23983 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23984 * lto-symtab.c (lto_varpool_replace_node): Only release
23985 DECL_INITIAL of non-prevailing decls.
23986 * varpool.c (varpool_remove_initializer): Do not release
23987 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23988
23989 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23990
23991 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23992 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23993 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23994 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23995 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23996 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23997 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23998 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23999 instead of TARGET_64BIT.
24000 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24001 Require ISA_HAS_<D>DIV.
24002
24003 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24004
24005 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24006 (mips*-*-linux*): Move default with_llsc setting to where other
24007 defaults are set.
24008 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24009 with_arch block.
24010 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24011 Likewise. Remove default with_tune setting. Move default float
24012 setting to its own block. Handle with_llsc in the same block as above.
24013
24014 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24015
24016 PR rtl-optimization/57425
24017 PR rtl-optimization/57569
24018 * alias.c (write_dependence_p): Add new parameters mem_mode,
24019 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24020 Changed all callers.
24021 (canon_anti_dependence): New function.
24022 * cse.c (check_dependence): Use canon_anti_dependence.
24023 * cselib.c (cselib_invalidate_mem): Likewise.
24024 * rtl.h (canon_anti_dependence): Declare.
24025
24026 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24027
24028 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24029 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24030 ".set mips3" for 64-bit targets.
24031
24032 2013-06-15 Dehao Chen <dehao@google.com>
24033
24034 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24035 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24036 (gimple_check_call_args): Likewise.
24037 * value-prof.c (check_ic_target): Likewise.
24038 * ipa-inline.c (early_inliner): Likewise.
24039 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24040 * cgraph.c (cgraph_create_edge_1): Likewise.
24041 (cgraph_make_edge_direct): Likewise.
24042
24043 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24044
24045 PR target/57615
24046 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24047 rs6000_output_move_128bit to handle emitting quad memory
24048 operations. Set attribute length to 8 bytes.
24049
24050 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24051
24052 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24053 New pattern.
24054 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24055 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24056 (aarch64_<su>mlsl<mode>): Likewise.
24057
24058 2013-06-14 Mike Stump <mikestump@comcast.net>
24059
24060 * Makefile.in (TARGET_H): Add insn-codes.h.
24061
24062 2013-06-14 Alan Modra <amodra@gmail.com>
24063
24064 PR middle-end/57134
24065 PR middle-end/57586
24066 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24067 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24068 bitfield expansion when EXPAND_MEMORY.
24069 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24070
24071 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24072
24073 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24074 test for clearing quad memory on 32-bit later.
24075
24076 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24077
24078 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24079 (fold_negate_expr): Likewise.
24080 (fold_real_zero_addition_p): Handle vectors.
24081 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24082
24083 2013-06-14 Alan Modra <amodra@gmail.com>
24084
24085 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24086
24087 2013-06-13 Jan Hubicka <jh@suse.cz>
24088
24089 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24090 Local comdats are not externally visible.
24091 * symtab.c (dump_symtab_base): Dump externally visible.
24092 (verify_symtab_base): Verify back links in the symtab hash.
24093
24094 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24095
24096 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24097 CONVERT_EXPR as equal nodes.
24098
24099 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24100
24101 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24102
24103 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24104
24105 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24106 Generalize to complex and vector.
24107 * tree.c (build_all_ones_cst): New function.
24108 * tree.h (build_all_ones_cst): Declare it.
24109
24110 2013-06-13 Alan Modra <amodra@gmail.com>
24111
24112 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24113 * config/rs6000/rs6000.md (signbittf2): New insn.
24114 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24115 (abstf2_internal, cmptf_internal2): Likewise.
24116 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24117
24118 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24119 Pat Haugen <pthaugen@us.ibm.com>
24120 Peter Bergner <bergner@vnet.ibm.com>
24121
24122 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24123 power8 byte, half-word, and quad-word atomic instructions.
24124 (emit_store_conditional): Likewise.
24125 (rs6000_expand_atomic_compare_and_swap): Likewise.
24126 (rs6000_expand_atomic_op): Likewise.
24127
24128 * config/rs6000/sync.md (larx): Add new modes for power8.
24129 (stcx): Likewise.
24130 (AINT): New mode iterator to include TImode as well as normal
24131 integer modes on power8.
24132 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24133 that VSX registers are not considered. Use AINT mode iterator
24134 instead of INT1 to allow inclusion of quad word atomic operations
24135 on power8.
24136 (load_locked<mode>): Likewise.
24137 (store_conditional<mode>): Likewise.
24138 (atomic_compare_and_swap<mode>): Likewise.
24139 (atomic_exchange<mode>): Likewise.
24140 (atomic_nand<mode>): Likewise.
24141 (atomic_fetch_<fetchop_name><mode>): Likewise.
24142 (atomic_nand_fetch<mode>): Likewise.
24143 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24144 each type.
24145 (ATOMIC): On power8, add QImode, HImode modes.
24146 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24147 modes that promote to SImode.
24148 (load_lockedti): Convert TImode arguments to PTImode, so that we
24149 get a guaranteed even/odd register pair.
24150 (load_lockedpti): Likewise.
24151 (store_conditionalti): Likewise.
24152 (store_conditionalpti): Likewise.
24153
24154 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24155 atomic load/store instructions.
24156 (HSI): Likewise.
24157
24158 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24159
24160 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24161 loads.
24162 (insn_count): New attribute, with most cases extracted from...
24163 (length): ...here. Redefine most cases in terms of insn_count.
24164 (single_insn): Delete.
24165 (can_delay): Use insn_count to check for single instructions.
24166 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24167 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24168 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24169 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24170 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24171 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24172 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24173 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24174 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24175 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24176 rather than "length".
24177 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24178 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24179 Use "insn_count" rather than "length".
24180 * config/mips/mips-dsp.md
24181 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24182 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24183 length attributes.
24184
24185 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24186
24187 PR tree-optimization/57361
24188 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24189
24190 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24191
24192 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24193 to split.
24194 (aarch64_simd_combine<mode>): New instruction expansion.
24195 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24196 function prototype.
24197 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24198 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24199
24200 2013-06-12 Jan Hubicka <jh@suse.cz>
24201
24202 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24203 decl has when in streaming stage.
24204 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24205 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24206
24207 2013-06-12 Roland Stigge <stigge@antcom.de>
24208
24209 PR target/57578
24210 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24211
24212 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24213
24214 PR tree-optimization/57537
24215 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24216 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24217
24218 2013-06-12 Richard Biener <rguenther@suse.de>
24219
24220 * data-streamer.h (streamer_write_char_stream): CSE
24221 obs->current_pointer.
24222 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24223 streamer_write_char_stream manually and optimize the resulting loop.
24224 (streamer_write_hwi_stream): Likewise.
24225
24226 2013-06-12 Jan Hubicka <jh@suse.cz>
24227
24228 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24229 * cgraph.h (varpool_create_empty_node): Declare.
24230 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24231 duplicated nodes.
24232 * symtab.c (symtab_unregister_node): Be lax about missin entries
24233 in node hash.
24234 (symtab_get_node): Update comment.
24235 * varpool.c (varpool_create_empty_node): Break out from ...
24236 (varpool_node_for_decl): ... here.
24237 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24238
24239 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24240
24241 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24242 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24243 part. Use straight-line flow at the end.
24244 <COMPONENT_REF>: Remove superfluous else.
24245 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24246
24247 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24248
24249 PR target/56564
24250 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24251 target hook even for !TREE_PUBLIC decls. If no resolution info
24252 is available, return false for common and external decls.
24253
24254 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24255
24256 * config/rl78/constraints.md (U): New constraint.
24257 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24258 valloc attribute.
24259
24260 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24261
24262 PR target/57589
24263 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24264 to allow returning address to AT_PLATFORM name.
24265
24266 2013-06-11 Jan Hubicka <jh@suse.cz>
24267
24268 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24269 * cgraph.h (symtab_node_base): Add weakref flag.
24270 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24271 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24272 (output_weakrefs): Use weakref flag.
24273 * fold-const.c (simple_operand_p): Handle WEAK.
24274 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24275 * ipa.c (varpool_externally_visible_p): Drop weakref.
24276 (function_and_variable_visibility): Update comment; fix weakref
24277 sanity checks; do not clear DECL_WEAK on them.
24278 * lto-cgraph.c (lto_output_node): update.
24279 (lto_output_varpool_node): Update.
24280 (input_overwrite_node): Update.
24281 (input_node): Update.
24282 (input_varpool_node): Update.
24283 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24284 (lto_symtab_merge_symbols): Add sanity check.
24285 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24286 * passes.c (rest_of_decl_compilation): Set static flag, too.
24287 * symtab.c (dump_symtab_base): Dump weakref.
24288 (verify_symtab_base): Sanity check weakrefs.
24289 (symtab_make_decl_local): Remove duplicated code.
24290 (symtab_alias_ultimate_target): Simplify.
24291 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24292
24293 2013-06-11 Tom de Vries <tom@codesourcery.com>
24294
24295 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24296 sequence_vect == NULL.
24297
24298 2013-06-11 DJ Delorie <dj@redhat.com>
24299
24300 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24301 (rl78_unwind_word_mode): New.
24302
24303 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24304
24305 * final.c (debug_prefix_maps): Make static.
24306
24307 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24308
24309 * function.c (initial_trampoline): Remove stray copy.
24310
24311 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24312
24313 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24314
24315 2013-06-11 Martin Jambor <mjambor@suse.cz>
24316
24317 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24318 within bounds at the beginning of the function.
24319
24320 2013-06-11 Alan Modra <amodra@gmail.com>
24321
24322 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24323 reporting.
24324 (get_named_section): Don't NULL !DECL_P decl.
24325
24326 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24327
24328 * doc/invoke.texi (core-avx2): Document.
24329 (slm): Likewise.
24330 (atom): Updated with MOVBE.
24331
24332 2013-06-11 Richard Biener <rguenther@suse.de>
24333
24334 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24335
24336 2013-06-11 Anton Blanchard <anton@samba.org>
24337
24338 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24339 correct shift value in little-endian mode.
24340
24341 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24342
24343 PR target/56564
24344 * varasm.c (get_variable_align): Move #endif to the right place.
24345
24346 2013-06-10 Cary Coutant <ccoutant@google.com>
24347
24348 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24349 for hash so that hash table traversal order is deterministic.
24350
24351 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24352 Pat Haugen <pthaugen@us.ibm.com>
24353 Peter Bergner <bergner@vnet.ibm.com>
24354
24355 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24356 of vectors in GPRS if they are direct moves or quad word load or
24357 store moves.
24358
24359 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24360 declaration.
24361 (direct_move_p): Likewise.
24362 (quad_load_store_p): Likewise.
24363
24364 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24365 classes into bins based on the physical register type.
24366 (reg_class_to_reg_type): Likewise.
24367 (IS_STD_REG_TYPE): Likewise.
24368 (IS_FP_VECT_REG_TYPE): Likewise.
24369 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24370 use direct move instructions.
24371 (reload_gpr_vsx): Likewise.
24372 (reload_vsx_gpr): Likewise.
24373 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24374 information that is a simplification of register classes. Also
24375 precalculate direct move reload helpers.
24376 (direct_move_p): New function to return true if the operation can
24377 be done as a direct move instruciton.
24378 (quad_load_store_p): New function to return true if the operation
24379 is a quad memory operation.
24380 (rs6000_legitimize_address): If quad memory, only allow register
24381 indirect for TImode addresses.
24382 (rs6000_legitimate_address_p): Likewise.
24383 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24384 (rs6000_reload_register_type): Likewise.
24385 (register_to_reg_type): Return register type.
24386 (rs6000_secondary_reload_simple_move): New helper function for
24387 secondary reload and secondary memory needed to identify anything
24388 that is a simple move, and does not need reloading.
24389 (rs6000_secondary_reload_direct_move): New helper function for
24390 secondary reload to identify cases that can be done with several
24391 instructions via the direct move instructions.
24392 (rs6000_secondary_reload_move): New helper function for secondary
24393 reload to identify moves between register types that can be done.
24394 (rs6000_secondary_reload): Add support for quad memory operations
24395 and for direct move.
24396 (rs6000_secondary_memory_needed): Likewise.
24397 (rs6000_debug_secondary_memory_needed): Change argument names.
24398 (rs6000_output_move_128bit): New function to return the move to
24399 use for 128-bit moves, including knowing about the various
24400 limitations of quad memory operations.
24401
24402 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24403 memory operations. call rs6000_output_move_128bit for the actual
24404 instruciton(s) to generate.
24405 (vsx_movti_64bit): Likewise.
24406
24407 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24408 (UNSPEC_P8V_MTVSRWZ): Likewise.
24409 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24410 (UNSPEC_P8V_MTVSRD): Likewise.
24411 (UNSPEC_P8V_XXPERMDI): Likewise.
24412 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24413 (UNSPEC_FUSION_GPR): Likewise.
24414 (FMOVE128_GPR): New iterator for direct move.
24415 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24416 (f32_sv): Likewise.
24417 (f32_dm): Likewise.
24418 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24419 loads and direct move instructions.
24420 (zero_extendsidi2_lfiwzx): Likewise.
24421 (extendsidi2_lfiwax): Likewise.
24422 (extendsidi2_nocell): Likewise.
24423 (floatsi<mode>2_lfiwax): Likewise.
24424 (lfiwax): Likewise.
24425 (floatunssi<mode>2_lfiwzx): Likewise.
24426 (lfiwzx): Likewise.
24427 (fix_trunc<mode>_stfiwx): Likewise.
24428 (fixuns_trunc<mode>_stfiwx): Likewise.
24429 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24430 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24431 (parity<mode>2_cmpb): Set length/type attr.
24432 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24433 for 'mr.' to fast_compare.
24434 (bpermd_<mode>): Change type attr to popcnt.
24435 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24436 (p8_mtvsrwz_1): Likewise.
24437 (p8_mtvsrwz_2): Likewise.
24438 (reload_fpr_from_gpr<mode>): Likewise.
24439 (p8_mtvsrd_1): Likewise.
24440 (p8_mtvsrd_2): Likewise.
24441 (p8_xxpermdi_<mode>): Likewise.
24442 (reload_vsx_from_gpr<mode>): Likewise.
24443 (reload_vsx_from_gprsf): Likewise.
24444 (p8_mfvsrd_3_<mode>): LIkewise.
24445 (reload_gpr_from_vsx<mode>): Likewise.
24446 (reload_gpr_from_vsxsf): Likewise.
24447 (p8_mfvsrd_4_disf): Likewise.
24448 (multi-word GPR splits): Do not split direct moves or quad memory
24449 operations.
24450
24451 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24452
24453 * tree-into-ssa.c (interesting_blocks): Make static.
24454
24455 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24456
24457 PR target/56564
24458 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24459 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24460 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24461 (get_variable_align): New function.
24462 (get_variable_section, emit_bss, emit_common,
24463 assemble_variable_contents, place_block_symbol): Use
24464 get_variable_align instead of DECL_ALIGN.
24465 (assemble_noswitch_variable): Add align argument, use it
24466 instead of DECL_ALIGN.
24467 (assemble_variable): Adjust caller. Use get_variable_align
24468 instead of DECL_ALIGN.
24469 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24470 caller.
24471 (DATA_ABI_ALIGNMENT): Define.
24472 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24473 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24474 opt is false, only return the psABI mandated alignment increase.
24475 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24476 (DATA_ABI_ALIGNMENT): ... this.
24477 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24478 (DATA_ABI_ALIGNMENT): ... this.
24479 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24480 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24481 (DATA_ABI_ALIGNMENT): ... this.
24482 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24483 * doc/tm.texi: Regenerated.
24484
24485 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24486
24487 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24488 cmp_code to construct REG_EQUAL note.
24489
24490 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24491
24492 PR target/57568
24493 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24494 that operands[2] doesn't overlap with operands[0].
24495
24496 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24497 Jan Hubicka <jh@suse.cz>
24498
24499 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24500 hack to mark symbols as used.
24501
24502 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24503
24504 PR rtl-optimization/57559
24505 * lra-constraints.c (process_alt_operands): Don't discourage
24506 memory with known offset for offsetable memory constraint.
24507 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24508
24509 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24510
24511 * varasm.c (struct oc_local_state): Reorder fields.
24512 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24513 and adjust accordingly.
24514 (output_constructor): Reorder initialization code and adjust call to
24515 output_constructor_bitfield.
24516
24517 2013-06-07 Jan Hubicka <jh@suse.cz>
24518
24519 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24520
24521 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24522
24523 * tree-object-size.c (unknown): Make const.
24524
24525 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24526
24527 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24528 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24529 for last alternative in the cpu_facility attribute.
24530
24531 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24532
24533 PR target/56315
24534 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24535 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24536 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24537 * config/arm/constraints.md (Dg): New constraint.
24538 * config/arm/neon.md (xordi3_neon): Remove.
24539 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24540 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24541
24542 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24543
24544 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24545 Clean up alternatives.
24546
24547 2013-06-07 Alan Modra <amodra@gmail.com>
24548
24549 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24550 va_list_gpr_size.
24551
24552 2013-06-07 Alan Modra <amodra@gmail.com>
24553
24554 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24555
24556 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24557
24558 * config/arm/constraints.md (Df): New constraint.
24559 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24560 Correct length attribute for last two alternatives.
24561
24562 2013-06-07 Alan Modra <amodra@gmail.com>
24563
24564 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24565 override user -mfp-in-toc.
24566 (offsettable_ok_by_alignment): Consider just the current access
24567 rather than the whole object, unless BLKmode. Handle
24568 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24569 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24570 for -mcmodel=medium.
24571 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24572 override user -mfp-in-toc or -msum-in-toc. Default to
24573 -mno-fp-in-toc for -mcmodel=medium.
24574
24575 2013-06-06 DJ Delorie <dj@redhat.com>
24576
24577 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24578 TARGET_VALID_POINTER_MODE.
24579
24580 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24581 Pat Haugen <pthaugen@us.ibm.com>
24582 Peter Bergner <bergner@vnet.ibm.com>
24583
24584 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24585 Document new power8 builtins.
24586
24587 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24588 condition code register, to allow 128-bit logical operations to be
24589 done in the VSX or GPR registers.
24590 (nor<mode>3): Use the canonical form for nor.
24591 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24592 vclz*, and vpopcnt* vector instructions.
24593 (nand<mode>3): Likewise.
24594 (orc<mode>3): Likewise.
24595 (clz<mode>2): LIkewise.
24596 (popcount<mode>2): Likewise.
24597
24598 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24599 that only the GPRs are recognized.
24600
24601 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24602 support for new power8 builtins.
24603
24604 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24605 builtin functions.
24606 (xscvdpspn): Likewise.
24607 (vclz): Likewise.
24608 (vclzb): Likewise.
24609 (vclzh): Likewise.
24610 (vclzw): Likewise.
24611 (vclzd): Likewise.
24612 (vpopcnt): Likewise.
24613 (vpopcntb): Likewise.
24614 (vpopcnth): Likewise.
24615 (vpopcntw): Likewise.
24616 (vpopcntd): Likewise.
24617 (vgbbd): Likewise.
24618 (vmrgew): Likewise.
24619 (vmrgow): Likewise.
24620 (eqv): Likewise.
24621 (eqv_v16qi3): Likewise.
24622 (eqv_v8hi3): Likewise.
24623 (eqv_v4si3): Likewise.
24624 (eqv_v2di3): Likewise.
24625 (eqv_v4sf3): Likewise.
24626 (eqv_v2df3): Likewise.
24627 (nand): Likewise.
24628 (nand_v16qi3): Likewise.
24629 (nand_v8hi3): Likewise.
24630 (nand_v4si3): Likewise.
24631 (nand_v2di3): Likewise.
24632 (nand_v4sf3): Likewise.
24633 (nand_v2df3): Likewise.
24634 (orc): Likewise.
24635 (orc_v16qi3): Likewise.
24636 (orc_v8hi3): Likewise.
24637 (orc_v4si3): Likewise.
24638 (orc_v2di3): Likewise.
24639 (orc_v4sf3): Likewise.
24640 (orc_v2df3): Likewise.
24641
24642 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24643 allow power8 quad mode in 64-bit.
24644 (rs6000_builtin_vectorized_function): Add support to vectorize
24645 ISA 2.07 count leading zeros, population count builtins.
24646 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24647 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24648 (builtin_function_type): Add vgbbd builtin function which takes an
24649 unsigned argument.
24650 (altivec_expand_vec_perm_const): Add support for new power8 merge
24651 instructions.
24652
24653 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24654 that does not include TImdoe for use with 32-bit.
24655 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24656 instructions.
24657 (UNSPEC_VSX_CVDPSPN): Likewise.
24658 (vsx_xscvdpspn): Likewise.
24659 (vsx_xscvspdpn): Likewise.
24660 (vsx_xscvdpspn_scalar): Likewise.
24661 (vsx_xscvspdpn_directmove): Likewise.
24662 (vsx_and<mode>3): Split logical operations into 32-bit and
24663 64-bit. Add support to do logical operations on TImode as well as
24664 VSX vector types. Allow logical operations to be done in either
24665 VSX registers or in general purpose registers in 64-bit mode. Add
24666 splitters if GPRs were used. For AND, add clobber of CCmode to
24667 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24668 encoding.
24669 (vsx_and<mode>3_32bit): Likewise.
24670 (vsx_and<mode>3_64bit): Likewise.
24671 (vsx_ior<mode>3): Likewise.
24672 (vsx_ior<mode>3_32bit): Likewise.
24673 (vsx_ior<mode>3_64bit): Likewise.
24674 (vsx_xor<mode>3): Likewise.
24675 (vsx_xor<mode>3_32bit): Likewise.
24676 (vsx_xor<mode>3_64bit): Likewise.
24677 (vsx_one_cmpl<mode>2): Likewise.
24678 (vsx_one_cmpl<mode>2_32bit): Likewise.
24679 (vsx_one_cmpl<mode>2_64bit): Likewise.
24680 (vsx_nor<mode>3): Likewise.
24681 (vsx_nor<mode>3_32bit): Likewise.
24682 (vsx_nor<mode>3_64bit): Likewise.
24683 (vsx_andc<mode>3): Likewise.
24684 (vsx_andc<mode>3_32bit): Likewise.
24685 (vsx_andc<mode>3_64bit): Likewise.
24686 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24687 and xxlorc instructions.
24688 (vsx_eqv<mode>3_64bit): Likewise.
24689 (vsx_nand<mode>3_32bit): Likewise.
24690 (vsx_nand<mode>3_64bit): Likewise.
24691 (vsx_orc<mode>3_32bit): Likewise.
24692 (vsx_orc<mode>3_64bit): Likewise.
24693
24694 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24695
24696 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24697 instruction.
24698 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24699 (p8_vmrgow): Likewise.
24700 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24701 GPRs to be split under VSX.
24702 (p8v_clz<mode>2): Add power8 count leading zero support.
24703 (p8v_popcount<mode>2): Add power8 population count support.
24704 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24705 support.
24706
24707 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24708 instruction.
24709
24710 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24711 builtin functions.
24712 (vec_nand): Likewise.
24713 (vec_vclz): Likewise.
24714 (vec_vclzb): Likewise.
24715 (vec_vclzd): Likewise.
24716 (vec_vclzh): Likewise.
24717 (vec_vclzw): Likewise.
24718 (vec_vgbbd): Likewise.
24719 (vec_vmrgew): Likewise.
24720 (vec_vmrgow): Likewise.
24721 (vec_vpopcnt): Likewise.
24722 (vec_vpopcntb): Likewise.
24723 (vec_vpopcntd): Likewise.
24724 (vec_vpopcnth): Likewise.
24725 (vec_vpopcntw): Likewise.
24726
24727 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24728
24729 PR rtl-optimization/57468
24730 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24731 spilled pseudos.
24732
24733 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24734
24735 PR rtl-optimization/57459
24736 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24737 type when setting live regs.
24738
24739 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24740
24741 * config/s390/s390.opt (mlra): New option.
24742 * config/s390/s390.c (s390_decompose_address): Check displacement
24743 for all registers for LRA.
24744 (s390_secondary_reload): Don't used secondary reloads for LRA.
24745 (s390_lra_p): New function.
24746 (TARGET_LRA_P): Define.
24747 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24748 of attribute cpu_facility to zarch for the last alternative.
24749 (*cmpmem_short): Ditto.
24750
24751 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
24752
24753 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24754 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
24755 (arm_expand_prologue): Likewise.
24756
24757 2013-06-06 Teresa Johnson <tejohnson@google.com>
24758
24759 PR c++/53743
24760 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24761 as this is now done by redirect_edge_and_branch_force.
24762 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24763 barriers, and fix interaction with splitting.
24764 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24765 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24766 reflect changes made in the routine.
24767 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24768 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24769 since this is called in cfglayout mode, and replace partition fixup
24770 with assert as that is now done by force_nonfallthru_and_redirect.
24771 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24772 already be marked with region crossing note.
24773 (insert_section_boundary_note): Make non-static, gate on flag
24774 has_bb_partition, rewrite to also check for multiple partitions.
24775 (rest_of_handle_reorder_blocks): Remove call to
24776 insert_section_boundary_note, now done later during free_cfg.
24777 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24778 * bb-reorder.h (insert_section_boundary_note): Declare.
24779 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24780 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24781 invoke insert_section_boundary_note.
24782 (try_redirect_by_replacing_jump): Remove unnecessary
24783 check for region crossing note.
24784 (fixup_partition_crossing): New function.
24785 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24786 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24787 in non-cfglayout mode.
24788 (force_nonfallthru_and_redirect): Fixup partition boundaries,
24789 remove old code that tried to do this. Emit barrier correctly
24790 when we are in cfglayout mode.
24791 (last_bb_in_partition): New function.
24792 (rtl_split_edge): Correctly fixup partition boundaries.
24793 (commit_one_edge_insertion): Remove old code that tried to
24794 fixup region crossing edge since this is now handled in
24795 split_block, and set up insertion point correctly since
24796 block may now end in a jump.
24797 (verify_hot_cold_block_grouping): Guard against checking when not in
24798 linearized RTL mode.
24799 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24800 notes.
24801 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24802 rtl_verify_flow_info, so not called in cfglayout mode.
24803 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24804 (fixup_reorder_chain): Remove old code that attempted to fixup region
24805 crossing note as this is now handled in force_nonfallthru_and_redirect.
24806 (duplicate_insn_chain): Don't duplicate switch section notes.
24807 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24808 note.
24809 * basic-block.h (emit_barrier_after_bb): Declare.
24810
24811 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24812
24813 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24814 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24815 arm_usatsihi): Adjust alternatives for arm_restrict_it.
24816
24817 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24818
24819 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24820 where appropriate.
24821 * config/arm/ldmstm.md: Regenerate.
24822
24823 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24824
24825 * config/arm/sync.md (atomic_loaddi_1):
24826 Disable predication for arm_restrict_it.
24827 (arm_load_exclusive<mode>): Likewise.
24828 (arm_load_exclusivesi): Likewise.
24829 (arm_load_exclusivedi): Likewise.
24830 (arm_load_acquire_exclusive<mode>): Likewise.
24831 (arm_load_acquire_exclusivesi): Likewise.
24832 (arm_load_acquire_exclusivedi): Likewise.
24833 (arm_store_exclusive<mode>): Likewise.
24834 (arm_store_exclusive<mode>): Likewise.
24835 (arm_store_release_exclusivedi): Likewise.
24836 (arm_store_release_exclusive<mode>): Likewise.
24837
24838 2013-06-06 Richard Biener <rguenther@suse.de>
24839
24840 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24841 after LTO_null.
24842 (lto_tag_is_tree_code_p): Adjust.
24843 (lto_tag_is_gimple_code_p): Likewise.
24844 (lto_gimple_code_to_tag): Likewise.
24845 (lto_tag_to_gimple_code): Likewise.
24846 (lto_tree_code_to_tag): Likewise.
24847 (lto_tag_to_tree_code): Likewise.
24848 * data-streamer.h (streamer_write_hwi_in_range): Use
24849 uhwi streaming to stream the normalized range.
24850 (streamer_read_hwi_in_range): Likewise.
24851
24852 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24853
24854 * config/arm/arm.md (enabled_for_depr_it): New attribute.
24855 (predicable_short_it): Likewise.
24856 (predicated): Likewise.
24857 (enabled): Handle above.
24858 (define_cond_exec): Set predicated attribute to yes.
24859
24860 2013-06-05 Mike Stump <mikestump@comcast.net>
24861
24862 * gdbinit.in (__FUNCTION__): Add.
24863
24864 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
24865
24866 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24867 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24868
24869 2013-06-05 Jan Hubicka <jh@suse.cz>
24870
24871 * varasm.c (mark_decl_referenced): Revert the removal until targets
24872 are fixed.
24873
24874 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
24875
24876 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24877 instead of mark_decl_referenced.
24878
24879 2013-06-05 Jan Hubicka <jh@suse.cz>
24880
24881 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24882 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24883 and symtab_used_from_object_file_p.
24884 (cgraph_make_node_local_1): Clear forced_by_abi.
24885 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24886 * cgraph.h (symtab_node_base): Add forced_by_abi.
24887 (decide_is_variable_needed): Remove.
24888 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24889 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24890 (decide_is_symbol_needed): ... this one; handle symbols in general;
24891 always analyze virtuals; honnor forced_by_abi.
24892 (cgraph_finalize_function): Update.
24893 (varpool_finalize_decl): Update.
24894 (symbol_defined_and_needed): Remove.
24895 (analyze_functions): Update.
24896 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24897 output_refs, input_overwrite_node): Handle forced_by_abi.
24898 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24899 (address_taken_from_non_vtable_p): ... this one.
24900 (comdat_can_be_unshared_p_1): New function.
24901 (cgraph_comdat_can_be_unshared_p): Rename to ...
24902 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24903 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24904 (function_and_variable_visibility): Clear forced_by_abi as needed.
24905 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24906 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24907 * symtab.c (dump_symtab_base): Dump forced_by_abi.
24908 * varpool.c (decide_is_variable_needed): Remove.
24909
24910 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24911
24912 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24913 (arm_option_override): Override arm_restrict_it where appropriate.
24914 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24915 * config/arm/arm.opt (mrestrict-it): New command-line option.
24916 * doc/invoke.texi: Document -mrestrict-it.
24917
24918 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24919
24920 * tsan.c (tsan_atomic_table): Make const.
24921
24922 2013-06-05 Richard Biener <rguenther@suse.de>
24923
24924 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24925 index associated with the tree we are supposed to replace.
24926 * tree-streamer-out.c (pack_ts_base_value_fields): Output
24927 TREE_ASM_WRITTEN as zero for everything but SSA names.
24928
24929 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24930
24931 * tree-ssa-structalias.c (call_stmt_vars): Make static.
24932
24933 2013-06-04 Jan Hubicka <jh@suse.cz>
24934
24935 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24936 (input_node, input_varpool_node): Handle correctly external same
24937 body aliases.
24938 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24939 nodes at ltrans stage.
24940
24941 2013-06-04 Jan Hubicka <jh@suse.cz>
24942
24943 * ipa-inline.c (update_caller_keys): Fix availability test.
24944 (update_callee_keys): Likewise.
24945 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24946 to follow ELF standard.
24947
24948 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
24949
24950 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24951 (mips64r5900el-*-elf*): New configurations.
24952 * config/mips/mips-cpus.def (r5900): New processor.
24953 * config/mips/mips-tables.opt: Regenerate.
24954 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24955 (mips_issue_rate): Handle PROCESSOR_R5900.
24956 (mips_reorg_process_insns): Force reorder mode for the R5900.
24957 * config/mips/mips.h (TARGET_MIPS5900): Define.
24958 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24959 TARGET_MIPS5900.
24960 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24961 TARGET_MIPS5900.
24962 * config/mips/mips.md (processor): Add r5900.
24963 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24964
24965 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24966
24967 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24968 into function to generate MOVI instruction.
24969 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24970 (aarch64_preferred_simd_mode): Turn into wrapper.
24971 (aarch64_output_scalar_simd_mov_immediate): New function.
24972 * config/aarch64/aarch64-protos.h: Add prototype for above.
24973
24974 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24975
24976 * config/aarch64/aarch64.c (simd_immediate_info): Remove
24977 element_char member.
24978 (sizetochar): Return signed char.
24979 (aarch64_simd_valid_immediate): Remove elchar and other
24980 unnecessary variables.
24981 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24982 Calculate element_char as required.
24983 * config/aarch64/aarch64-protos.h: Update and move prototype
24984 for aarch64_output_simd_mov_immediate.
24985 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24986 Update arguments.
24987
24988 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24989
24990 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24991 information completed by aarch64_simd_valid_immediate.
24992 (aarch64_legitimate_constant_p): Update arguments.
24993 (aarch64_simd_valid_immediate): Work with struct rather than many
24994 pointers.
24995 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24996 (aarch64_simd_make_constant): Update arguments.
24997 (aarch64_output_simd_mov_immediate): Work with struct rather than
24998 many pointers. Output immediate directly rather than as operand.
24999 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25000 Update prototype.
25001 * config/aarch64/constraints.md (Dn): Update arguments.
25002
25003 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25004
25005 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25006 longer static.
25007 (aarch64_simd_immediate_valid_for_move): Remove.
25008 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25009 (aarch64_simd_make_constant): Update call.
25010 (aarch64_output_simd_mov_immediate): Update call.
25011 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25012 Add prototype.
25013 * config/aarch64/constraints.md (Dn): Update call.
25014
25015 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25016
25017 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25018 return type to bool for prototype.
25019 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25020 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25021 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25022
25023 2013-06-04 Catherine Moore <clm@codesourcery.com>
25024
25025 * config/mips/mips.opt (meva): New.
25026 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25027 (ASM_SPEC): Handle -meva.
25028 * doc/invoke.texi (meva): Document.
25029
25030 2013-06-04 Alan Modra <amodra@gmail.com>
25031
25032 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25033 constant output.
25034
25035 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25036
25037 * rtl.def: Add extra fourth optional field to define_cond_exec.
25038 * gensupport.c (process_one_cond_exec): Process attributes from
25039 define_cond_exec.
25040 * doc/md.texi: Document fourth field in define_cond_exec.
25041
25042 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25043
25044 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25045 out the processing order as in store_bit_field_1.
25046
25047 2013-06-04 Jan Hubicka <jh@suse.cz>
25048
25049 PR middle-end/57500
25050 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25051 non-VAR_DECL node if it does not exist yet.
25052
25053 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25054
25055 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25056 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25057 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25058 target_cpu_default setting.
25059
25060 2013-06-03 Teresa Johnson <tejohnson@google.com>
25061
25062 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25063 default to -fopt-info=optimized instead of all.
25064 * doc/invoke.texi: Ditto.
25065 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25066 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25067 (execute_vect_slp): Emit BB vectorization success under
25068 MSG_OPTIMIZED_LOCATIONS.
25069 * tree-vect-slp.c (vect_slp_transform_bb): Change
25070 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25071 * tree-vect-loop.c (vect_transform_loop): Ditto.
25072
25073 2013-06-03 Jason Merrill <jason@redhat.com>
25074
25075 PR c++/57415
25076 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25077 Use TARGET_EXPR for C++.
25078
25079 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25080
25081 PR rtl-optimization/57268
25082 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25083 if DEBUG_INSN_P (insn).
25084
25085 Reapply
25086 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25087
25088 PR rtl-optimization/57268
25089 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25090 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25091
25092 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25093
25094 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25095 (ix86_avoid_lea_for_addr): Likewise.
25096 (exact_dependency_1): Likewise.
25097 (ix86_adjust_cost): Likewise.
25098 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25099 removed.
25100 (do_reorder_for_imul): Fix typo, formatting and
25101 !reload_completed check removed.
25102 (ix86_sched_reorder): Fix typo and formatting.
25103 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25104 list.
25105
25106 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25107
25108 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25109
25110 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25111
25112 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25113 <STRING_CST>: Likewise.
25114 <VECTOR_CST>: Likewise.
25115
25116 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25117 Mikael Morin <mikael@gcc.gnu.org>
25118
25119 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25120 * config.in: Regenerated.
25121 * configure: Regenerated.
25122
25123 2013-06-01 Jan Hubicka <jh@suse.cz>
25124
25125 PR middle-end/57366
25126 * cgraphunit.c (compile): When weakref is not supported,
25127 set up transparent aliases before final output pass.
25128 * varasm.c (assemble_alias): Do not try to do it here.
25129
25130 2013-06-01 Jan Hubicka <jh@suse.cz>
25131
25132 PR middle-end/57467
25133 * passes.c (for_per_function): Skip unanalyzed functions.
25134
25135 2013-06-01 Jan Hubicka <jh@suse.cz>
25136
25137 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25138 (lto_symtab_merge_symbols_1): ... this one.
25139 (lto_symtab_merge_cgraph_nodes): Rename to ...
25140 (lto_symtab_merge_symbols): ... this one; simplify.
25141 * cgraph.c (same_body_aliases_done): Rename to ...
25142 (cpp_implicit_aliases_done): ... this one.
25143 (cgraph_create_function_alias): Update.
25144 (cgraph_same_body_alias): Update.
25145 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25146 (verify_edge_corresponds_to_fndecl): Simplify.
25147 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25148 (cgraph_node): Remove same_body_alias.
25149 (varpool_node): Remove alias_of and extra_name_alias.
25150 (same_body_aliases_done): Rename to ..
25151 (cpp_implicit_aliases_done): ... this one.
25152 (symtab_alias_ultimate_target): Add default parameter.
25153 (symtab_resolve_alias): New function.
25154 (fixup_same_cpp_alias_visibility): Declare.
25155 (cgraph_function_node): Add default parameter.
25156 (cgraph_node_asm_name): Likewise.
25157 (cgraph_function_or_thunk_node): Add default parameter; do
25158 not ICE when it is NULL.
25159 (varpool_variable_node): Likewise.
25160 * tree-emutls.c (create_emultls_var): Update.
25161 (ipa_lower_emutls): Update.
25162 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25163 (cgraph_reset_node): Reset alias info.
25164 (cgraph_finalize_function): Update.
25165 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25166 (analyze_function): Simplify.
25167 (cgraph_process_same_body_aliases): Simplify.
25168 (analyze_functions): Fixup same body aliases.
25169 (handle_alias_pairs): Simplify.
25170 (assemble_thunk): Update.
25171 (assemble_thunks_and_aliases): Update.
25172 (output_weakrefs): Rewrite.
25173 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25174 (lto_output_varpool_node): Likewise.
25175 (compute_ltrans_boundary): Remve assert.
25176 (get_alias_symbol): New functoin.
25177 (input_node): Rewrite alias handling.
25178 (input_varpool_node): Likewise.
25179 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25180 * ipa.c (process_references): Handle weakrefs correctly.
25181 (symtab_remove_unreachable_nodes): Likewise.
25182 * trans-mem.c (get_cg_data): Update.
25183 (ipa_tm_create_version_alias): Update.
25184 (ipa_tm_execute): Update.
25185 * symtab.c (dump_symtab_base): Dump aliases.
25186 (verify_symtab_base): Verify aliases.
25187 (symtab_node_availability): New function.
25188 (symtab_alias_ultimate_target): Simplify.
25189 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25190 handle all the fixup cases.
25191 (symtab_resolve_alias): New function.
25192 * passes.c (ipa_write_summaries): Handle weakrefs.
25193 * varpool.c (varpool_analyze_node): Simplify.
25194 (assemble_aliases): Update.
25195 (varpool_create_variable_alias): Simplify.
25196 (varpool_extra_name_alias): Simplify.
25197 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25198 (lto_symtab_merge_symbols): ... this one.
25199
25200 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25201
25202 Revert
25203 PR rtl-optimization/57268
25204 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25205 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25206
25207 2013-06-01 Tobias Burnus <burnus@net-b.de>
25208
25209 Partially reverted:
25210 2013-05-31 Tobias Burnus <burnus@net-b.de>
25211
25212 PR middle-end/57073
25213 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25214 further up.
25215
25216 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25217
25218 PR rtl-optimization/57268
25219 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25220 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25221
25222 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25223
25224 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25225 unordered comparison operators when -fno-trapping-math is in effect
25226 on the e500.
25227 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25228 and implement unordered comparison operators properly on the e500.
25229
25230 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25231
25232 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25233 for constant scalar integers.
25234 (simplify_relational_operation_1): Likewise.
25235
25236 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25237
25238 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25239 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25240 Fix comment.
25241
25242 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25243 Igor Zamyatin <igor.zamyatin@intel.com>
25244
25245 Silvermont (SLM) architecture performance tuning.
25246 * config/i386/i386.h (enum ix86_tune_indices): Add
25247 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25248 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25249
25250 * config/i386/i386.c (initial_ix86_tune_features)
25251 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25252 (ix86_lea_outperforms): Handle Silvermont tuning.
25253 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25254 call.
25255 (ix86_use_lea_for_mov): Likewise.
25256 (ix86_avoid_lea_for_addr): Likewise.
25257 (ix86_lea_for_add_ok): Likewise.
25258 (exact_dependency_1): New function.
25259 (exact_store_load_dependency): Likewise.
25260 (ix86_adjust_cost): Handle Silvermont tuning.
25261 (do_reoder_for_imul): Likewise.
25262 (swap_top_of_ready_list): New function.
25263 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25264
25265 * config/i386/i386.md (peepholes that split memory operand in fp
25266 converts): New.
25267
25268 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25269
25270 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25271 Remove un-necessary braces.
25272
25273 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25274
25275 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25276 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25277
25278 2013-05-31 Tobias Burnus <burnus@net-b.de>
25279
25280 PR middle-end/57073
25281 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25282
25283 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25284
25285 PR target/56315
25286 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25287 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25288 * config/arm/neon.md (iordi3_neon): Remove.
25289 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25290 * config/arm/predicates.md (imm_for_neon_logic_operand):
25291 Move to earlier in the file.
25292 (neon_logic_op2): Likewise.
25293 (arm_iordi_operand_neon): New predicate.
25294
25295 2013-05-31 Richard Biener <rguenther@suse.de>
25296
25297 PR tree-optimization/57478
25298 PR tree-optimization/57453
25299 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25300 are life as well.
25301
25302 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25303
25304 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25305 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25306
25307 2013-05-30 Tobias Burnus <burnus@net-b.de>
25308 Thomas Koenig <tkoenig@gcc.gnu.org>
25309
25310 PR middle-end/57073
25311 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25312 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25313
25314 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25315
25316 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25317
25318 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25319
25320 * target.def (register_usage_leveling_p): New hook.
25321 * targhooks.c (default_register_usage_leveling_p): New.
25322 * targhooks.h (default_register_usage_leveling_p): New prototype.
25323 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25324 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25325 * doc/tm.texi: Update.
25326 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25327
25328 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25329
25330 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25331 (*insv_reg<mode>): New define_insn.
25332
25333 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25334
25335 PR rtl-optimization/57439
25336 * postreload.c (move2add_valid_value_p): Check that we have
25337 a zero subreg_regno_offset when accessing the register in
25338 the requested mode.
25339
25340 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25341 Igor Zamyatin <igor.zamyatin@intel.com>
25342
25343 Silvermont (SLM) architecture pipeline model, tuning and
25344 insn selection.
25345 * config.gcc: Add slm config options and target.
25346
25347 * config/i386/slm.md: New.
25348
25349 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25350
25351 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25352 PROCESSOR_SLM.
25353 (ix86_target_macros_internal): Likewise.
25354
25355 * config/i386/i386.c (slm_cost): New cost.
25356 (m_SLM): New macro flag.
25357 (initial_ix86_tune_features): Set m_SLM.
25358 (x86_accumulate_outgoing_args): Likewise.
25359 (x86_arch_always_fancy_math_387): Likewise.
25360 (processor_target_table): Add slm cost.
25361 (cpu_names): Add slm cpu name.
25362 (x86_option_override_internal): Set SLM ISA.
25363 (ix86_issue_rate): New case PROCESSOR_SLM.
25364 (ia32_multipass_dfa_lookahead): Likewise.
25365 (fold_builtin_cpu): Add slm.
25366
25367 * config/i386/i386.h (TARGET_SLM): New target macro.
25368 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25369 (processor_type): Add PROCESSOR_SLM.
25370
25371 * config/i386/i386.md (cpu): Add new value "slm".
25372 (slm.md): Include slm.md.
25373
25374 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25375 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25376
25377 * config/arm/arm-protos.h: Add and update function protos.
25378 * config/arm/arm.c (use_simple_return_p): New added.
25379 (thumb2_expand_return): Check simple_return flag.
25380 * config/arm/arm.md: Add simple_return and conditional simple_return.
25381 * config/arm/iterators.md: Add iterator for return and simple_return.
25382
25383 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25384
25385 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25386 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25387 (arm_emit_vfp_multi_reg_pop): Likewise.
25388 (thumb2_emit_ldrd_pop): Likewise.
25389 (arm_expand_epilogue): Add misc REG_CFA notes.
25390 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25391
25392 2013-05-29 Lawrence Crowl <crowl@google.com>
25393
25394 * config/arm/t-arm: Update for below.
25395
25396 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25397 Change type to hash_table. Update dependent calls and types.
25398
25399 * config/i386/t-cygming: Update for below.
25400
25401 * config/i386/t-interix: Update for below.
25402
25403 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25404 Change type to hash_table. Update dependent calls and types.
25405 (i386_find_on_wrapper_list::wrappers): Likewise.
25406
25407 * config/ia64/t-ia64: Update for below.
25408
25409 * config/ia64/ia64.c (bundle_state_table):
25410 Change type to hash_table. Update dependent calls and types.
25411
25412 * config/mips/mips.c (mips_reorg_process_insns::htab):
25413 Change type to hash_table. Update dependent calls and types.
25414
25415 * config/sol2.c (solaris_comdat_htab):
25416 Change type to hash_table. Update dependent calls and types.
25417
25418 * config/t-sol2: Update for above.
25419
25420 2013-05-29 Teresa Johnson <tejohnson@google.com>
25421
25422 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25423 functions are not yet marked as defined.
25424
25425 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25426 Pat Haugen <pthaugen@us.ibm.com>
25427 Peter Bergner <bergner@vnet.ibm.com>
25428
25429 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25430 instructions.
25431 (VEC_A): Likewise.
25432 (VEC_C): Likewise.
25433 (vrotl<mode>3): Likewise.
25434 (vashl<mode>3): Likewise.
25435 (vlshr<mode>3): Likewise.
25436 (vashr<mode>3): Likewise.
25437
25438 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25439 support for power8 V2DI builtins.
25440
25441 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25442 power8 V2DI builtins.
25443 (vupkhsw): Likewise.
25444 (vupklsw): Likewise.
25445 (vaddudm): Likewise.
25446 (vminsd): Likewise.
25447 (vmaxsd): Likewise.
25448 (vminud): Likewise.
25449 (vmaxud): Likewise.
25450 (vpkudum): Likewise.
25451 (vpksdss): Likewise.
25452 (vpkudus): Likewise.
25453 (vpksdus): Likewise.
25454 (vrld): Likewise.
25455 (vsld): Likewise.
25456 (vsrd): Likewise.
25457 (vsrad): Likewise.
25458 (vsubudm): Likewise.
25459 (vcmpequd): Likewise.
25460 (vcmpgtsd): Likewise.
25461 (vcmpgtud): Likewise.
25462 (vcmpequd_p): Likewise.
25463 (vcmpgtsd_p): Likewise.
25464 (vcmpgtud_p): Likewise.
25465 (vupkhsw): Likewise.
25466 (vupklsw): Likewise.
25467 (vaddudm): Likewise.
25468 (vmaxsd): Likewise.
25469 (vmaxud): Likewise.
25470 (vminsd): Likewise.
25471 (vminud): Likewise.
25472 (vpksdss): Likewise.
25473 (vpksdus): Likewise.
25474 (vpkudum): Likewise.
25475 (vpkudus): Likewise.
25476 (vrld): Likewise.
25477 (vsld): Likewise.
25478 (vsrad): Likewise.
25479 (vsrd): Likewise.
25480 (vsubudm): Likewise.
25481
25482 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25483 support for power8 V2DI instructions.
25484
25485 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25486 power8 V2DI instructions. Combine pack and unpack insns to use an
25487 iterator for each mode. Check whether a particular mode supports
25488 Altivec instructions instead of just checking TARGET_ALTIVEC.
25489 (UNSPEC_VPKUWUM): Likewise.
25490 (UNSPEC_VPKSHSS): Likewise.
25491 (UNSPEC_VPKSWSS): Likewise.
25492 (UNSPEC_VPKUHUS): Likewise.
25493 (UNSPEC_VPKSHUS): Likewise.
25494 (UNSPEC_VPKUWUS): Likewise.
25495 (UNSPEC_VPKSWUS): Likewise.
25496 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25497 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25498 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25499 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25500 (UNSPEC_VUPKHSB): Likewise.
25501 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25502 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25503 (UNSPEC_VUPKHSH): Likewise.
25504 (UNSPEC_VUPKLSB): Likewise.
25505 (UNSPEC_VUPKLSH): Likewise.
25506 (VI2): Likewise.
25507 (VI_char): Likewise.
25508 (VI_scalar): Likewise.
25509 (VI_unit): Likewise.
25510 (VP): Likewise.
25511 (VP_small): Likewise.
25512 (VP_small_lc): Likewise.
25513 (VU_char): Likewise.
25514 (add<mode>3): Likewise.
25515 (altivec_vaddcuw): Likewise.
25516 (altivec_vaddu<VI_char>s): Likewise.
25517 (altivec_vadds<VI_char>s): Likewise.
25518 (sub<mode>3): Likewise.
25519 (altivec_vsubcuw): Likewise.
25520 (altivec_vsubu<VI_char>s): Likewise.
25521 (altivec_vsubs<VI_char>s): Likewise.
25522 (altivec_vavgs<VI_char>): Likewise.
25523 (altivec_vcmpbfp): Likewise.
25524 (altivec_eq<mode>): Likewise.
25525 (altivec_gt<mode>): Likewise.
25526 (altivec_gtu<mode>): Likewise.
25527 (umax<mode>3): Likewise.
25528 (smax<mode>3): Likewise.
25529 (umin<mode>3): Likewise.
25530 (smin<mode>3): Likewise.
25531 (altivec_vpkuhum): Likewise.
25532 (altivec_vpkuwum): Likewise.
25533 (altivec_vpkshss): Likewise.
25534 (altivec_vpkswss): Likewise.
25535 (altivec_vpkuhus): Likewise.
25536 (altivec_vpkshus): Likewise.
25537 (altivec_vpkuwus): Likewise.
25538 (altivec_vpkswus): Likewise.
25539 (altivec_vpks<VI_char>ss): Likewise.
25540 (altivec_vpks<VI_char>us): Likewise.
25541 (altivec_vpku<VI_char>us): Likewise.
25542 (altivec_vpku<VI_char>um): Likewise.
25543 (altivec_vrl<VI_char>): Likewise.
25544 (altivec_vsl<VI_char>): Likewise.
25545 (altivec_vsr<VI_char>): Likewise.
25546 (altivec_vsra<VI_char>): Likewise.
25547 (altivec_vsldoi_<mode>): Likewise.
25548 (altivec_vupkhsb): Likewise.
25549 (altivec_vupkhs<VU_char>): Likewise.
25550 (altivec_vupkls<VU_char>): Likewise.
25551 (altivec_vupkhsh): Likewise.
25552 (altivec_vupklsb): Likewise.
25553 (altivec_vupklsh): Likewise.
25554 (altivec_vcmpequ<VI_char>_p): Likewise.
25555 (altivec_vcmpgts<VI_char>_p): Likewise.
25556 (altivec_vcmpgtu<VI_char>_p): Likewise.
25557 (abs<mode>2): Likewise.
25558 (vec_unpacks_hi_v16qi): Likewise.
25559 (vec_unpacks_hi_v8hi): Likewise.
25560 (vec_unpacks_lo_v16qi): Likewise.
25561 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25562 (vec_unpacks_lo_v8hi): Likewise.
25563 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25564 (vec_pack_trunc_v8h): Likewise.
25565 (vec_pack_trunc_v4si): Likewise.
25566 (vec_pack_trunc_<mode>): Likewise.
25567
25568 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25569 V2DI builtins.
25570 (vec_vmaxsd): Likewise.
25571 (vec_vmaxud): Likewise.
25572 (vec_vminsd): Likewise.
25573 (vec_vminud): Likewise.
25574 (vec_vpksdss): Likewise.
25575 (vec_vpksdus): Likewise.
25576 (vec_vpkudum): Likewise.
25577 (vec_vpkudus): Likewise.
25578 (vec_vrld): Likewise.
25579 (vec_vsld): Likewise.
25580 (vec_vsrad): Likewise.
25581 (vec_vsrd): Likewise.
25582 (vec_vsubudm): Likewise.
25583 (vec_vupkhsw): Likewise.
25584 (vec_vupklsw): Likewise.
25585
25586 2013-05-29 Jan Hubicka <jh@suse.cz>
25587
25588 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25589 flags; reorder rest of fields in more consistent way.
25590 (varpool_node): Remove analyzed, finalized and alias.
25591 (cgraph_ndoe): Likewise.
25592 (symtab_alias_ultimate_target): New function.
25593 (cgraph_function_node): Move offline.
25594 (cgraph_reset_node): Declare.
25595 (cgraph_comdat_can_be_unshared_p): Remove.
25596 (varpool_remove_initializer): Declare.
25597 (varpool_first_defined_variable, varpool_next_defined_variable
25598 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25599 (cgraph_function_with_gimple_body_p): Update.
25600 (varpool_all_refs_explicit_p): Update.
25601 (symtab_alias_target): New function.
25602 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25603 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25604 (cgraph_function_or_thunk_node): Simplify using
25605 symtab_alias_ultimate_target.
25606 (varpool_variable_node): Likewise.
25607 * cgraph.c (cgraph_create_function_alias): Update.
25608 (cgraph_add_thunk): Update.
25609 (cgraph_remove_node): Update.
25610 (dump_cgraph_node): Do not dump removed flags.
25611 (cgraph_function_body_availability): Update.
25612 (cgraph_propagate_frequency): Update.
25613 (verify_cgraph_node): Check sanity of local flag.
25614 (cgraph_function_node): Move here from cgraph.h; revamp for
25615 cgraph_function_or_thunk_node.
25616 * lto-symtab.c (lto_varpool_replace_node): Update.
25617 (lto_symtab_resolve_can_prevail_p): Update.
25618 (lto_symtab_merge_cgraph_nodes): Update.
25619 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25620 propagate_constants_accross_call, devirtualization_time_bonus,
25621 ipcp_propagate_stage): Update.
25622 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25623 * ipa-inline-transform.c (clone_inlined_nodes,
25624 preserve_function_body_p): Update.
25625 * ipa-reference.c (propagate): Update.
25626 (write_node_summary_p): Update.
25627 * toplev.c (wrapup_global_declaration_2): Update.
25628 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25629 (analyze_function) ... this one.
25630 (cgraph_process_new_functions): Update.
25631 (cgraph_reset_node): Export.
25632 (cgraph_finalize_function): Update.
25633 (cgraph_add_new_function): Update.
25634 (process_function_and_variable_attributes): Update.
25635 (varpool_finalize_decl): Update.
25636 (symbol_finalized): Remove.
25637 (symbol_finalized_and_needed): Rename to ...
25638 (symbol_defined_and_needed): ... update.
25639 (cgraph_analyze_functions): Update.
25640 (handle_alias_pairs): Update.
25641 (mark_functions_to_output): Update.
25642 (assemble_thunk): Update.
25643 (output_in_order): Update.
25644 (output_weakrefs): Update.
25645 (finalize_compilation_unit): Update.
25646 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25647 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25648 input_node, input_varpool_node): Update.
25649 * dbxout.c (dbxout_expand_expr): Update.
25650 * cgraphclones.c (cgraph_clone_node): Update.
25651 (cgraph_copy_node_for_versioning): Update.
25652 (cgraph_materialize_clone): Update.
25653 (cgraph_materialize_all_clones): Update.
25654 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25655 propagate_pure_const, propagate_nothrow): Update.
25656 * lto-streamer-out.c (lto_output, write_symbol): Update.
25657 * ipa-utils.c (ipa_reverse_postorder): Update.
25658 * ipa-inline.c (can_inline_edge_p): Update.
25659 (update_caller_keys, ipa_inline): Update.
25660 * dwarf2out.c (reference_to_unused,
25661 premark_types_used_by_global_vars_helper): Update.
25662 * tree-eh.c (tree_could_trap_p): Update.
25663 * ipa-split.c (consider_split, execute_split_functions): Update.
25664 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25665 has_addr_references_p): Update; move ahead in file for better
25666 readability.
25667 (process_references): Simplify.
25668 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25669 bodies are removed.
25670 (cgraph_comdat_can_be_unshared_p): Make static.
25671 (cgraph_externally_visible_p): Update.
25672 (varpool_externally_visible_p): Update.
25673 (function_and_variable_visibility): Update.
25674 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25675 ipa_tm_mark_force_output_node): Update.
25676 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25677 estimate_edge_devirt_benefit, inline_generate_summary,
25678 inline_write_summary): Update.
25679 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25680 * ipa-prop.c (ipa_compute_jump_functions): Update.
25681 (ipa_print_node_params, ipa_prop_read_section,
25682 ipa_update_after_lto_read, read_replacements_section): Update.
25683 * varasm.c (mark_decl_referenced): Update.
25684 (assemble_alias, dump_tm_clone_pairs): Update.
25685 * tree-inline.c (copy_bb): Update.
25686 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25687 Update.
25688 * symtab.c (dump_symtab_base): Print new flags.
25689 (verify_symtab_base): Verify new flags.
25690 (symtab_alias_ultimate_target): New function.
25691 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25692 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25693 Update.
25694 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25695 Update.
25696 * i386.c (ix86_get_function_versions_dispatcher,
25697 ix86_generate_version_dispatcher_body): Update.
25698 (fold_builtin_cpu): Use varpool_add_new_variable.
25699 * varpool.c (varpool_remove_initializer): Break out from ...
25700 (varpool_remove_node): ... this one.
25701 (dump_varpool_node, varpool_node_for_asm,
25702 cgraph_variable_initializer_availability, varpool_analyze_node,
25703 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25704 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25705 Update.
25706
25707 2013-05-29 Jan Hubicka <jh@suse.cz>
25708
25709 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25710
25711 2013-05-29 Easwaran Raman <eraman@google.com>
25712
25713 PR tree-optimization/57442
25714 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25715 when control exits the main loop.
25716
25717 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25718
25719 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25720 and RX600.
25721 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25722 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25723 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25724 option.
25725
25726 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25727
25728 PR tree-optimization/57441
25729 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25730 Don't limit size of incr_vec to number of candidates.
25731
25732 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25733
25734 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25735 and mips16 directories.
25736 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25737 (MULTILIB_DIRNAMES): Ditto.
25738 (MULTILIB_EXCEPTIONS): Add new exceptions.
25739 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25740 (MULTILIB_DIRNAMES): Ditto.
25741 (MULTILIB_EXCEPTIONS): Add new exceptions.
25742
25743 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25744 Marcus Shawcroft <marcus.shawcroft@arm.com>
25745
25746 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25747 SYMBOL_TINY_ABSOLUTE.
25748 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25749 SYMBOL_TINY_ABSOLUTE.
25750 (aarch64_expand_mov_immediate): Likewise.
25751 (aarch64_classify_symbol): Likewise.
25752 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25753 Permit SYMBOL_TINY_ABSOLUTE.
25754 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25755
25756 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25757 Marcus Shawcroft <marcus.shawcroft@arm.com>
25758
25759 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25760 Refactor if/switch. Replace gcc_assert with if.
25761
25762 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25763
25764 * config/i386/i386.c (initial_ix86_tune_features): Enable
25765 FP Reassociation for AMD bdver1 and bdver2.
25766
25767 2013-05-29 Martin Jambor <mjambor@suse.cz>
25768
25769 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25770 and IMAGPART_EXPR do not occur within other handled_components.
25771
25772 2013-05-29 Richard Biener <rguenther@suse.de>
25773
25774 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25775 access on whether the use is in the BB we currently try to
25776 vectorize.
25777 (vect_bb_vectorization_profitable_p): Pass the BB we currently
25778 vectorize to vect_bb_slp_scalar_cost.
25779
25780 2013-05-29 Richard Biener <rguenther@suse.de>
25781
25782 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25783 computing scalar cost offsetted by stmts that are kept live
25784 by scalar uses.
25785 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25786 for computation of scalar cost.
25787
25788 2013-05-28 Steve Ellcey <sellcey@mips.com>
25789
25790 * config/mips/mips-cpus.def (mips32r2): Change processor type.
25791
25792 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25793
25794 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25795 array notation built-in reduction functions.
25796 * doc/passes.texi (Passes): Added documentation about changes done
25797 for Cilk Plus.
25798 * doc/invoke.texi (C Dialect Options): Added documentation about
25799 the -fcilkplus flag.
25800 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25801 (BUILTINS_DEF): Depend on cilkplus.def.
25802 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
25803 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25804 * cilkplus.def: New file.
25805
25806 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
25807
25808 PR rtl-optimization/57439
25809 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25810
25811 2013-05-28 Easwaran Raman <eraman@google.com>
25812
25813 PR tree-optimization/57337
25814 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25815 (find_insert_point): Correctly identify the insertion point
25816 when two statements with the same UID is compared.
25817
25818 2013-05-28 Richard Biener <rguenther@suse.de>
25819
25820 PR tree-optimization/56787
25821 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25822 from the list of data references.
25823 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25824 clobbers.
25825 (vect_analyze_loop_operations): Likewise.
25826 (vect_transform_loop): Remove clobbers.
25827
25828 2013-05-28 Martin Jambor <mjambor@suse.cz>
25829
25830 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25831 and REALPART_EXPRs have scalar type.
25832
25833 2013-05-28 Richard Biener <rguenther@suse.de>
25834
25835 PR tree-optimization/57411
25836 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25837 virtual operands.
25838 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25839 virtual operand propagation.
25840
25841 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25842
25843 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25844 destination register for bmasksi_vis.
25845 (vector_init_bshuffle): Likewise.
25846 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25847
25848 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25849
25850 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25851 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25852 mode if the instruction isn't available in the original mode.
25853 * config/sparc/sparc.opt (mfix-ut699): New option.
25854 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25855 (divdf3): Turn into expander.
25856 (divdf3_nofix): New insn.
25857 (divdf3_fix): Likewise.
25858 (divsf3): Disable if -mfix-ut699.
25859 (sqrtdf2): Turn into expander.
25860 (sqrtdf2_nofix): New insn.
25861 (sqrtdf2_fix): Likewise.
25862 (sqrtsf2): Disable if -mfix-ut699.
25863
25864 2013-05-27 Richard Biener <rguenther@suse.de>
25865
25866 PR middle-end/57412
25867 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25868 block for the new loop.
25869
25870 2013-05-27 Richard Biener <rguenther@suse.de>
25871
25872 PR tree-optimization/57343
25873 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25874 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25875 (number_of_iterations_cond): Do not build the folded tree.
25876
25877 2013-05-27 Richard Biener <rguenther@suse.de>
25878
25879 Revert
25880 PR middle-end/57381
25881 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25882 OEP_CONSTANT_ADDRESS_OF retained.
25883
25884 PR tree-optimization/57417
25885 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25886 for unchanged base.
25887 (set_ssa_val_to): Compare addresses using
25888 get_addr_base_and_unit_offset.
25889
25890 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
25891
25892 PR rtl-optimization/56833
25893 * postreload.c (move2add_record_mode): New function.
25894 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25895 (move2add_use_add2_insn): Use move2add_record_sym_value.
25896 (move2add_use_add3_insn): Likewise.
25897 (reload_cse_move2add): Use move2add_valid_value_p and
25898 move2add_record_mode. Invalidate call-clobbered and REG_INC
25899 affected regs by setting reg_mode to VOIDmode.
25900 (move2add_note_store): Don't pretend the inside of a SUBREG is
25901 the actual destination. Invalidate single/leading registers by
25902 setting reg_mode to VOIDmode.
25903 Use move2add_record_sym_value, move2add_valid_value_p and
25904 move2add_record_mode.
25905
25906 2013-05-27 Richard Biener <rguenther@suse.de>
25907
25908 PR tree-optimization/57396
25909 * tree-affine.c (double_int_constant_multiple_p): Properly
25910 return false for val == 0 and div != 0.
25911
25912 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25913
25914 * config/mips/mips.h: Use #elif in preprocessor conditions.
25915
25916 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25917
25918 PR target/53916
25919 * config/mips/constraints.md (kl): New constraint.
25920 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25921 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
25922 constraint for operand 0. Split after CSE for MIPS16. Emit a move
25923 from LO for MIPS16.
25924 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25925
25926 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25927
25928 PR target/55777
25929 * config/mips/mips.c (mips_can_inline_p): New function.
25930 (TARGET_CAN_INLINE_P): Define.
25931
25932 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
25933
25934 * sched-int.h (ds_t, dw_t): Make unsigned int.
25935 Fix documentation that describes how all the ds_t bits are used.
25936 Reserve the last bit for delayed-branch scheduling.
25937 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25938 (BITS_PER_DEP_WEAK): Fix definition and documentation.
25939 (gen_dep_weak_1): Remove prototype.
25940 * sched-deps.c (get_dep_weak_1): Make static.
25941 * target.def (speculate_insn, needs_block_p, gen_spec_check,
25942 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25943 * doc/tm.texi: Regenerate.
25944 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25945
25946 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
25947
25948 PR debug/56950
25949 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25950
25951 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
25952 Sandra Loosemore <sandra@codesourcery.com>
25953
25954 * config.gcc (powerpc-*): Allow native for with-cpu.
25955
25956 2013-05-24 Jeff Law <law@redhat.com>
25957
25958 PR tree-optimization/57124
25959 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25960 conversion feeding a condition if the range has an overflow
25961 if -fstrict-overflow. Add warnings for when we do make the
25962 transformation.
25963
25964 2013-05-24 Dehao Chen <dehao@google.com>
25965
25966 * tree-cfg.c (locus_discrim_map): Fix the typo.
25967 (locus_discrim_hasher): Likewise.
25968 (locus_discrim_hasher::hash): Likewise.
25969 (locus_discrim_hasher::equal): Likewise.
25970
25971 2013-05-24 Martin Jambor <mjambor@suse.cz>
25972
25973 PR tree-optimization/57294
25974 * cgraph.h (ipa_record_stmt_references): Declare.
25975 * cgraphbuild.c (ipa_record_stmt_references): New function.
25976 (build_cgraph_edges): Use ipa_record_stmt_references.
25977 (rebuild_cgraph_edges): Likewise.
25978 (cgraph_rebuild_references): Likewise.
25979 * ipa-prop.c (ipa_modify_call_arguments): Discard references
25980 associated with the old statement and build references from the
25981 newly built statements.
25982 * ipa-ref.c (ipa_remove_stmt_references): New function.
25983 * ipa-ref.h (ipa_remove_stmt_references): Declare.
25984
25985 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
25986
25987 * lra-constraints.c (emit_spill_move): Use smaller mode for
25988 mem-mem moves.
25989 (check_and_process_move): Consider mem-reg moves for secondary
25990 too.
25991 (curr_insn_transform): Don't lose insns emitted before for
25992 secondary memory moves.
25993 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
25994 reg set up in the current insn.
25995
25996 2013-05-24 Dehao Chen <dehao@google.com>
25997
25998 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25999 hash function.
26000 (locus_descrim_hasher::equal): Likewise.
26001 (build_gimple_cfg): New discriminator assignment algorithm.
26002 (make_edges): Likewise.
26003 (next_discriminator_for_locus): Likewise.
26004 (same_line_p): Likewise.
26005 (assign_discriminators): Likewise.
26006 (make_cond_expr_edges): Likewise.
26007 (make_gimple_switch_edges): Likewise.
26008 (make_goto_expr_edges): Likewise.
26009 (make_gimple_asm_edges): Likewise.
26010
26011 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26012
26013 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26014 X format specifier to only display bottom 16 bits.
26015 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26016 immediate to match for operand 2, since it will be masked.
26017
26018 2013-05-24 Richard Biener <rguenther@suse.de>
26019
26020 PR tree-optimization/57287
26021 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26022 all SSA names that occur in abnormal PHIs.
26023
26024 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26025
26026 PR tree-ssa/57385
26027 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26028 that index is not negative.
26029
26030 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26031
26032 PR rtl-optimization/55177
26033 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26034 (simplify_byte_swapping_operation): New.
26035 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26036 (simplify_relational_operation_1): Deal with BSWAP.
26037
26038 2013-05-23 Richard Henderson <rth@redhat.com>
26039
26040 PR target/56742
26041 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26042 (ix86_reorg): Call it.
26043
26044 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26045
26046 PR target/57379
26047 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26048 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26049 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26050
26051 2013-05-23 Christian Bruel <christian.bruel@st.com>
26052
26053 PR debug/57351
26054 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26055
26056 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26057 Marcus Shawcroft <marcus.shawcroft@arm.com>
26058
26059 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26060 * config/aarch64/constraints.md (Usa): Remove.
26061 * doc/md.texi (AArch64 Usa): Remove.
26062
26063 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26064 Marcus Shawcroft <marcus.shawcroft@arm.com>
26065
26066 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26067 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26068 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26069 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26070
26071 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26072
26073 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26074 instruction (AdvSIMD).
26075 * config/aarch64/aarch64-builtins.c
26076 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26077 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26078
26079 2013-05-23 Martin Jambor <mjambor@suse.cz>
26080
26081 PR middle-end/57347
26082 * tree.h (contains_bitfld_component_ref_p): Declare.
26083 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26084 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26085 caller.
26086 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26087 not access a bit-field. Assert all final offsets are byte-aligned.
26088
26089 2013-05-23 Richard Biener <rguenther@suse.de>
26090
26091 PR tree-optimization/57380
26092 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26093 least one invariant or re-used load.
26094 * passes.c (init_optimization_passes): Move pass_phiprop before
26095 pass_forwprop.
26096
26097 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26098
26099 * config/aarch64/aarch64-simd.md
26100 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26101
26102 2013-05-23 Richard Biener <rguenther@suse.de>
26103
26104 PR middle-end/57381
26105 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26106 OEP_CONSTANT_ADDRESS_OF retained.
26107
26108 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26109
26110 PR middle-end/57344
26111 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26112 don't lower unit. Handle unit not being always BITS_PER_WORD.
26113
26114 2013-05-23 Richard Biener <rguenther@suse.de>
26115
26116 PR rtl-optimization/57341
26117 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26118 instead of true_dependence.
26119
26120 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26121
26122 * bb-reorder.c (branch_threshold): Make const.
26123 (exec_threshold): Ditto.
26124
26125 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26126 Pat Haugen <pthaugen@us.ibm.com>
26127 Peter Bergner <bergner@vnet.ibm.com>
26128
26129 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26130 documentation for the power8 crypto builtins.
26131
26132 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26133
26134 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26135 macros for defining power8 builtin functions.
26136 (BU_P8V_AV_2): Likewise.
26137 (BU_P8V_AV_P): Likewise.
26138 (BU_P8V_VSX_1): Likewise.
26139 (BU_P8V_OVERLOAD_1): Likewise.
26140 (BU_P8V_OVERLOAD_2): Likewise.
26141 (BU_CRYPTO_1): Likewise.
26142 (BU_CRYPTO_2): Likewise.
26143 (BU_CRYPTO_3): Likewise.
26144 (BU_CRYPTO_OVERLOAD_1): Likewise.
26145 (BU_CRYPTO_OVERLOAD_2): Likewise.
26146 (XSCVSPDP): Fix typo, point to the correct instruction.
26147 (VCIPHER): Add power8 crypto builtins.
26148 (VCIPHERLAST): Likewise.
26149 (VNCIPHER): Likewise.
26150 (VNCIPHERLAST): Likewise.
26151 (VPMSUMB): Likewise.
26152 (VPMSUMH): Likewise.
26153 (VPMSUMW): Likewise.
26154 (VPERMXOR_V2DI): Likewise.
26155 (VPERMXOR_V4SI: Likewise.
26156 (VPERMXOR_V8HI: Likewise.
26157 (VPERMXOR_V16QI: Likewise.
26158 (VSHASIGMAW): Likewise.
26159 (VSHASIGMAD): Likewise.
26160 (VPMSUM): Likewise.
26161 (VPERMXOR): Likewise.
26162 (VSHASIGMA): Likewise.
26163
26164 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26165 __CRYPTO__ if the crypto instructions are available.
26166 (altivec_overloaded_builtins): Add support for overloaded power8
26167 builtins.
26168
26169 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26170 support for power8 crypto builtins.
26171 (builtin_function_type): Likewise.
26172 (altivec_init_builtins): Add support for builtins that take vector
26173 long long (V2DI) arguments.
26174
26175 * config/rs6000/crypto.md: New file, define power8 crypto
26176 instructions.
26177
26178 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26179 Pat Haugen <pthaugen@us.ibm.com>
26180 Peter Bergner <bergner@vnet.ibm.com>
26181
26182 * doc/invoke.texi (Option Summary): Add power8 options.
26183 (RS/6000 and PowerPC Options): Likewise.
26184
26185 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26186 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26187 wm, wn, wr documentation.
26188
26189 * config/rs6000/constraints.md (wm): New constraint for VSX
26190 registers if direct move instructions are enabled.
26191 (wn): New constraint for no registers.
26192 (wq): New constraint for quad word even GPR registers.
26193 (wr): New constraint if 64-bit instructions are enabled.
26194 (wv): New constraint if power8 vector instructions are enabled.
26195 (wQ): New constraint for quad word memory locations.
26196
26197 * config/rs6000/predicates.md (const_0_to_15_operand): New
26198 constraint for 0..15 for crypto instructions.
26199 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26200 as GPR and floating point registers.
26201 (int_reg_operand): New predicate to match only GPR registers.
26202 (base_reg_operand): New predicate to match base registers.
26203 (quad_int_reg_operand): New predicate to match even GPR registers
26204 for quad memory operations.
26205 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26206 operations in both GPR and VSX registers.
26207 (quad_memory_operand): New predicate for quad memory operations.
26208 (reg_or_indexed_operand): New predicate for direct move support.
26209
26210 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26211 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26212 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26213 (POWERPC_MASKS): Add power8 options.
26214 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26215 various options.
26216
26217 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26218 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26219
26220 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26221 (-mpower8-fusion): New power8 options.
26222 (-mpower8-fusion-sign): Likewise.
26223 (-mpower8-vector): Likewise.
26224 (-mcrypto): Likewise.
26225 (-mdirect-move): Likewise.
26226 (-mquad-memory): Likewise.
26227
26228 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26229 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26230 registers.
26231 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26232 (rs6000_debug_vector_unit): Add p8_vector.
26233 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26234 definitions. Also print fusion state.
26235 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26236 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26237 (rs6000_option_override_internal): Add support for power8.
26238 (rs6000_common_init_builtins): Add debugging for skipped builtins
26239 if -mdebug=builtin.
26240 (rs6000_adjust_cost): Add power8 support.
26241 (rs6000_issue_rate): Likewise.
26242 (insn_must_be_first_in_group): Likewise.
26243 (insn_must_be_last_in_group): Likewise.
26244 (force_new_group): Likewise.
26245 (rs6000_register_move_cost): Likewise.
26246 (rs6000_opt_masks): Likewise.
26247
26248 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26249 power8 capable assembler, default to power7 options.
26250 (TARGET_DIRECT_MOVE): Likewise.
26251 (TARGET_CRYPTO): Likewise.
26252 (TARGET_P8_VECTOR): Likewise.
26253 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26254 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26255 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26256 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26257 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26258 (TARGET_XSCVDPSPN): Likewise.
26259 (TARGET_XSCVSPDPN): Likewsie.
26260 (TARGET_SYNC_HI_QI): Likewise.
26261 (TARGET_SYNC_TI): Likewise.
26262 (MASK_CRYPTO): Likewise.
26263 (MASK_DIRECT_MOVE): Likewise.
26264 (MASK_P8_FUSION): Likewise.
26265 (MASK_P8_VECTOR): Likewise.
26266 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26267 temporary used by some of the direct move instructions to get two FP
26268 temporary registers does not force creation of a stack frame.
26269 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26270 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26271 that any VSX registers are tieable, even if they are also an
26272 Altivec vector mode.
26273 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26274 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26275 (RS6000_BTM_CRYPTO): Likewise.
26276 (RS6000_BTM_COMMON): Likewise.
26277
26278 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26279 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26280 (enum rs6000_vector): Add power8 vector support.
26281
26282 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26283
26284 PR target/19599
26285 PR target/57340
26286 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26287 (any_sibcall_could_use_r3): this and handle indirect calls.
26288 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26289
26290 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26291
26292 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26293
26294 2013-05-22 Richard Biener <rguenther@suse.de>
26295
26296 PR middle-end/57349
26297 * profile.c (branch_prob): Do not split blocks that are
26298 abnormally receiving from ECF_RETURNS_TWICE functions.
26299
26300 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26301
26302 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26303 address mode. Move pointer mode initialization to the same place.
26304
26305 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26306
26307 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26308 while it has any effect.
26309
26310 2013-05-21 Easwaran Raman <eraman@google.com>
26311
26312 PR tree-optimization/57322
26313 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26314 UID of the statement added to the BB to be 1.
26315
26316 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26317
26318 PR tree-optimization/57331
26319 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26320 of conversion from pointer type to integral type with integer.
26321
26322 2013-05-21 Martin Jambor <mjambor@suse.cz>
26323
26324 PR lto/57289
26325 * ipa-prop.c (ipa_read_node_info): Process param_used and
26326 controlled_uses in the same order as when writing.
26327
26328 2013-05-21 Magnus Granberg <baldrick@free.fr>
26329
26330 PR plugins/56754
26331 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26332
26333 2013-05-21 Richard Biener <rguenther@suse.de>
26334
26335 PR tree-optimization/57318
26336 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26337 estimate stmts with side-effects as likely eliminated.
26338
26339 2013-05-21 Richard Biener <rguenther@suse.de>
26340
26341 PR tree-optimization/57330
26342 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26343 preserve the call stmts fntype.
26344
26345 2013-05-21 Richard Biener <rguenther@suse.de>
26346
26347 PR tree-optimization/57303
26348 * tree-ssa-sink.c (statement_sink_location): Improve killing
26349 stmt detection and properly handle self-assignments.
26350
26351 2013-05-21 Christian Bruel <christian.bruel@st.com>
26352
26353 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26354 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26355 registers. Set register size out of the PARALLEL loop.
26356
26357 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26358
26359 PR target/56547
26360 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26361 (*fmasf4, *fmasf4_media): New insns.
26362
26363 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26364
26365 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26366 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26367 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26368 (mips_idiv_insns): Update the comments to say that the returned
26369 instruction counts are in units of BASE_INSN_LENGTH.
26370 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26371 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26372 using 2 rather than 4 as the length of indirect MIPS16 and
26373 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26374 length of a NOP. Don't divide MIPS16 lengths by 2.
26375 (mips16_split_long_branches): Assume a branch is long if the
26376 length is greater than 4 rather than 8.
26377 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26378 rather than multiplying them by 2. Multiply instruction counts
26379 by BASE_INSN_LENGTH rather than 4.
26380 (*jump_mips16, tls_get_tp_mips16_<mode>)
26381 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26382
26383 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26384
26385 * config/mips/mips.md (extended_mips16): Remove branch case.
26386 (length): Remove duplicated extended_mips16 test.
26387
26388 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26389
26390 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26391
26392 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26393
26394 * recog.h (Recog_data): Rename to...
26395 (recog_data_d): ...this.
26396 (recog_data): Update accordingly.
26397 * recog.c (recog_data): Likewise.
26398 * reload.c (save_recog_data): Likewise.
26399 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26400 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26401
26402 2013-05-17 Julian Brown <julian@codesourcery.com>
26403
26404 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26405 found in a REG_EQUAL note, invalidate it.
26406
26407 2013-05-17 Easwaran Raman <eraman@google.com>
26408
26409 * tree-ssa-reassoc.c (find_insert_point): New function.
26410 (insert_stmt_after): Likewise.
26411 (get_def_stmt): Likewise.
26412 (ensure_ops_are_available): Likewise.
26413 (not_dominated_by): Likewise.
26414 (rewrite_expr_tree): Do not move statements beyond what is
26415 necessary. Remove call to swap_ops_for_binary_stmt...
26416 (reassociate_bb): ... and move it here.
26417 (build_and_add_sum): Assign UIDs for new statements.
26418 (linearize_expr): Likewise.
26419 (do_reassoc): Renumber gimple statement UIDs.
26420
26421 2013-05-17 Jan Hubicka <jh@suse.cz>
26422
26423 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26424 weakrefs.
26425 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26426 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26427 weakrefs.
26428 (output_weakrefs): Update.
26429
26430 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26431 Martin Jambor <mjambor@suse.cz>
26432
26433 PR middle-end/57276
26434 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26435 value that corresponds to the given aggval is found in values vector.
26436
26437 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26438
26439 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26440 sse, sse2, sse3, ssse3 and sse4a flags to options.
26441
26442 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26443
26444 * gengtype-state.c: (s_expr_writer): New class, to handle
26445 prettifying of output layout of s-expressions.
26446 (state_writer): New class, to write out gtype.state.
26447 (state_written_type_count): Move this variable into member data of
26448 state_writer.
26449 (s_expr_writer::s_expr_writer): New code: constructor for new class
26450 (state_writer::state_writer(): ditto
26451 (s_expr_writer::write_new_line): New function
26452 (s_expr_writer::write_any_indent): ditto
26453 (s_expr_writer::begin_s_expr): ditto
26454 (s_expr_writer::end_s_expr): ditto
26455 (write_state_fileloc): convert to method of state_writer...
26456 (state_writer:: write_state_fileloc): ...and use methods of
26457 s_expr_writer to write indentation into the gtype.state output file
26458 to visually represent the hierarchical structure of the list
26459 structures
26460 (write_state_fields): ditto, renaming to...
26461 (state_writer::write_state_fields)
26462 (write_state_a_string): ditto, renaming to...
26463 (state_writer::write_state_a_string)
26464 (write_state_string_option): ditto, renaming to...
26465 (state_writer::write_state_string_option)
26466 (write_state_type_option): ditto, renaming to...
26467 (state_writer::write_state_type_option)
26468 (write_state_nested_option): ditto, renaming to...
26469 (state_writer::write_state_nested_option)
26470 (write_state_option): ditto, renaming to...
26471 (state_writer::write_state_option)
26472 (write_state_options): ditto, renaming to...
26473 (state_writer::write_state_options)
26474 (write_state_lang_bitmap): ditto, renaming to...
26475 (state_writer::write_state_lang_bitmap)
26476 (write_state_version): ditto, renaming to...
26477 (state_writer::write_state_version)
26478 (write_state_scalar_type): ditto, renaming to...
26479 (state_writer::write_state_scalar_type)
26480 (write_state_string_type): ditto, renaming to...
26481 (state_writer::write_state_string_type)
26482 (write_state_undefined_type): ditto, renaming to...
26483 (state_writer::write_state_undefined_type)
26484 (write_state_struct_union_type): ditto, renaming to...
26485 (state_writer::write_state_struct_union_type)
26486 (write_state_struct_type): ditto, renaming to...
26487 (state_writer::write_state_struct_type)
26488 (write_state_user_struct_type): ditto, renaming to...
26489 (state_writer::write_state_user_struct_type)
26490 (write_state_lang_struct_type): ditto, renaming to...
26491 (state_writer::write_state_lang_struct_type)
26492 (write_state_param_struct_type): ditto, renaming to...
26493 (state_writer::write_state_param_struct_type)
26494 (write_state_pointer_type): ditto, renaming to...
26495 (state_writer::write_state_pointer_type)
26496 (write_state_array_type): ditto, renaming to...
26497 (state_writer::write_state_array_type)
26498 (write_state_gc_used): ditto, renaming to...
26499 (state_writer::write_state_gc_used)
26500 (write_state_common_type_content): ditto, renaming to...
26501 (state_writer::write_state_common_type_content)
26502 (write_state_type): ditto, renaming to...
26503 (state_writer::write_state_type)
26504 (write_state_pair_list): ditto, renaming to...
26505 (state_writer::write_state_pair_list)
26506 (write_state_pair): ditto, renaming to...
26507 (state_writer::write_state_pair)
26508 (write_state_typedefs): ditto, renaming to...
26509 (state_writer::write_state_typedefs)
26510 (write_state_structures): ditto, renaming to...
26511 (state_writer::write_state_structures)
26512 (write_state_param_structs): ditto, renaming to...
26513 (state_writer::write_state_param_structs)
26514 (write_state_variables): ditto, renaming to...
26515 (state_writer::write_state_variables)
26516 (write_state_srcdir): ditto, renaming to...
26517 (state_writer::write_state_srcdir)
26518 (write_state_files_list): ditto, renaming to...
26519 (state_writer::write_state_files_list)
26520 (write_state_languages): ditto, renaming to...
26521 (state_writer::write_state_languages)
26522 (write_state): create a state_writer instance and use it when
26523 writing out the state file
26524
26525 2013-05-17 Mike Stump <mikestump@comcast.net>
26526
26527 PR rtl-optimization/57304
26528 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26529 accessing DF_REF_REAL_LOC.
26530
26531 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26532
26533 PR rtl-optimization/57281
26534 PR rtl-optimization/57300
26535 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26536 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26537 what the other splitter did if the registers are dead.
26538
26539 2013-05-17 Richard Biener <rguenther@suse.de>
26540
26541 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26542 MEM_REF offsets.
26543
26544 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26545
26546 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26547 linking.
26548
26549 2013-05-17 Marek Polacek <polacek@redhat.com>
26550
26551 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26552 length when doing non-zero store of storing '\0' to '\0'.
26553
26554 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26555
26556 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26557 vect_external_def oprnd1 with loop_vinfo, try to emit
26558 optional cast, negation and and stmts on the loop preheader
26559 edge instead of into the pattern def seq.
26560
26561 PR tree-optimization/57051
26562 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26563 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26564
26565 2013-05-16 Nick Clifton <nickc@redhat.com>
26566
26567 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26568 (rl78_is_naked_func): New function.
26569 (rl78_expand_prologue): Skip prologue generation for naked functions.
26570 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26571 * doc/extend.texi (naked): Add RL78 to the list of processors
26572 that supports this attribute.
26573
26574 2013-05-16 Jeff Law <law@redhat.com>
26575
26576 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26577
26578 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26579
26580 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26581 cache parameters using detect_caches_amd also for CYRIX,
26582 NSC and TM2 signatures.
26583
26584 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26585 Dzianis Kahanovich <mahatma@eu.by>
26586
26587 PR target/45359
26588 PR target/46396
26589 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26590 VIA/Centaur processors and determine their cache parameters
26591 using detect_caches_amd.
26592
26593 2013-05-16 Teresa Johnson <tejohnson@google.com>
26594
26595 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26596 (rtl_verify_edges): New function.
26597 (rtl_verify_bb_insns): Ditto.
26598 (rtl_verify_bb_pointers): Ditto.
26599 (rtl_verify_bb_insn_chain): Ditto.
26600 (rtl_verify_fallthru): Ditto.
26601 (rtl_verify_bb_layout): Ditto.
26602 (rtl_verify_flow_info_1): Outline checks into new functions.
26603 (rtl_verify_flow_info): Ditto.
26604
26605 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26606
26607 * cfghooks.c (copy_bbs): Add update_dominance argument.
26608 * cfghooks.h (copy_bbs): Update prototype.
26609 * tree-cfg.c (gimple_duplicate_sese_region):
26610 Add update_dominance argument.
26611 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26612 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26613 gimple_duplicate_sese_region call.
26614 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26615 Update copy_bbs call.
26616 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26617 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26618
26619 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26620
26621 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26622 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26623 vect_recog_rotate_pattern.
26624 (vect_recog_rotate_pattern): New function.
26625
26626 2013-05-16 Jason Merrill <jason@redhat.com>
26627
26628 * Makefile.in (LLINKER): New variable.
26629 (mostlyclean): Remove link mutex.
26630 * configure.ac: Handle --enable-link-mutex.
26631 * lock-and-run.sh: New script.
26632
26633 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26634
26635 PR target/19599
26636 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26637 for NULL decl.
26638
26639 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26640
26641 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26642
26643 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26644
26645 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26646 * config/arm/arm.c (next_consecutive_mem): New function.
26647 (gen_movmem_ldrd_strd): Likewise.
26648 * config/arm/arm.md (movmemqi): Update condition and code.
26649 (unaligned_loaddi, unaligned_storedi): New patterns.
26650
26651 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26652
26653 * config.gcc: Obsolete *-*-solaris2.9*.
26654 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26655
26656 2013-05-16 Richard Biener <rguenther@suse.de>
26657
26658 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26659 earlier, after GRAPHITE transforms and IV canonicalization.
26660
26661 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26662
26663 * omp-low.c (extract_omp_for_data): For collapsed loops,
26664 if at least one of the loops is known at compile time to
26665 iterate zero times, set count to 0.
26666 (expand_omp_regimplify_p): New function.
26667 (expand_omp_for_generic): For collapsed loops, if at least
26668 one of the loops isn't known to iterate at least once,
26669 add runtime check with setting count to 0.
26670 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26671 For unsigned types if it isn't known at compile time that
26672 the loop will iterate at least once, add runtime check to bypass
26673 the whole loop if initial condition isn't true.
26674
26675 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26676
26677 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26678
26679 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26680
26681 PR middle-end/57286
26682 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26683 transformations to avoid an infinite loop.
26684
26685 2013-05-16 Marek Polacek <polacek@redhat.com>
26686
26687 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26688
26689 2013-05-15 Leif Ekblad <leif@rdos.net>
26690
26691 * config/i386/i386.c (ix86_decompose_address): Use
26692 DEFAULT_TLS_SEG_REG to access TLS segment register.
26693 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26694 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26695 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26696
26697 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26698
26699 PR target/57260
26700 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26701 sibling calls to functions that would normally be lazily bound,
26702 unless $gp is call-clobbered.
26703
26704 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26705
26706 * config/i386/i386.c (ix86_option_override_internal): Update
26707 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26708 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26709 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26710 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26711 of TARGET_3DNOW.
26712 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26713
26714 2013-05-15 Andreas Schwab <schwab@suse.de>
26715
26716 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26717 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26718 third operand.
26719
26720 2013-05-15 Teresa Johnson <tejohnson@google.com>
26721
26722 * loop-unroll.c (report_unroll_peel): Check decision before
26723 emitting unroll/peel message.
26724
26725 2013-05-15 Teresa Johnson <tejohnson@google.com>
26726
26727 * function.h (has_bb_partition): New rtl_data flag.
26728 (bb_reorder_complete): Ditto.
26729 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26730 instead of flag_reorder_blocks_and_partition.
26731 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26732 with some enhancements.
26733 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26734 * bb-reorder.c (connect_traces): Check for has_bb_partition
26735 instead of flag_reorder_blocks_and_partition.
26736 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26737 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26738 verify_hot_cold_block_grouping.
26739 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26740
26741 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26742
26743 PR target/19599
26744 * config/arm/predicates.md (call_insn_operand): New predicate.
26745 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26746 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26747 if insn is not a tail call.
26748 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26749 registers.
26750 * config/arm/arm.h (enum reg_class): New caller save register class.
26751 (REG_CLASS_NAMES): Likewise.
26752 (REG_CLASS_CONTENTS): Likewise.
26753 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26754 without decls.
26755
26756 2013-05-15 Richard Biener <rguenther@suse.de>
26757
26758 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26759 of MSG_OPTIMIZED_LOCATIONS.
26760 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26761 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26762 message.
26763 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26764 of MSG_OPTIMIZED_LOCATIONS.
26765 (execute_vect_slp): Likewise.
26766 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26767 (vect_create_cond_for_alias_checks): Likewise.
26768 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26769 (vect_recog_widen_mult_pattern): Likewise.
26770 (vect_recog_widen_sum_pattern): Likewise.
26771 (vect_recog_over_widening_pattern): Likewise.
26772 (vect_recog_widen_shift_pattern): Likewise.
26773 (vect_recog_vector_vector_shift_pattern): Likewise.
26774 (vect_recog_divmod_pattern): Likewise.
26775 (vect_recog_mixed_size_cond_pattern): Likewise.
26776 (vect_recog_bool_pattern): Likewise.
26777 (vect_pattern_recog_1): Likewise.
26778
26779 2013-05-15 Martin Jambor <mjambor@suse.cz>
26780
26781 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26782 non-functions to builtin_unreachable.
26783 * ipa-inline-transform.c (inline_call): Do not assert estimates were
26784 correct when new direct edges were discovered.
26785
26786 2013-05-15 Martin Jambor <mjambor@suse.cz>
26787
26788 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26789 header, print symbol order instead of node uid, print more information
26790 about indirect edge targets.
26791 (ipa_make_edge_direct_to_target): Print symbol order instead of node
26792 uids.
26793 (ipa_make_edge_direct_to_target): Likewise.
26794 (remove_described_reference): Likewise.
26795 (propagate_controlled_uses): Likewise.
26796 (ipa_print_node_params): Also print symbol order.
26797 (ipcp_transform_function): Print symbol order instead of node uids.
26798 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26799 (cgraph_get_create_real_symbol_node): Likewise.
26800 * ipa-cp.c (print_lattice): Likewise.
26801 (print_all_lattices): Likewise.
26802 (determine_versionability): Likewise.
26803 (initialize_node_lattices): Likewise.
26804 (estimate_local_effects): Likewise.
26805 (update_profiling_info): Likewise.
26806 (create_specialized_node): Likewise.
26807 (perhaps_add_new_callers): Likewise.
26808 (decide_about_value): Likewise.
26809 (decide_whether_version_node): Likewise.
26810 (identify_dead_nodes): Likewise.
26811 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26812 (dump_inline_summary): Likewise.
26813 (estimate_node_size_and_time): Likewise.
26814 (inline_analyze_function): Likewise.
26815 * ipa-inline.c (report_inline_failed_reason): Likewise.
26816 (want_early_inline_function_p): Likewise.
26817 (edge_badness): Likewise.
26818 (update_edge_key): Likewise.
26819 (inline_small_functions): Likewise. Add dumping of order to two other
26820 dumps.
26821 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26822 instead of node uids.
26823 (propagate_pure_const): Likewise.
26824 (propagate_pure_const): Likewise.
26825 * ipa-utils.c (dump_cgraph_node_set): Likewise.
26826 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26827 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26828 of node uids.
26829 * tree-pretty-print.c (dump_function_header): Likewise.
26830 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26831 Print symbol order instead of node uids.
26832
26833 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26834
26835 * config/s390/s390.c (s390_register_move_cost): Don't impose the
26836 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26837
26838 2013-05-15 Richard Biener <rguenther@suse.de>
26839
26840 PR tree-optimization/57275
26841 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26842 return value for fail to do runtime alias checks for gather loads.
26843
26844 2013-05-15 Jan Hubicka <jh@suse.cz>
26845
26846 PR lto/57038
26847 PR lto/47375
26848 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26849 weakrefs are not external.
26850 (lto_symtab_merge_decls): Fix thinko when dealing with
26851 non-lto_symtab decls.
26852 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26853 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26854 * varpool.c (dump_varpool_node): Dump more flags.
26855
26856 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26857
26858 * config/i386/i386.c (processor_alias_table): Add instruction
26859 FSGSBASE for AMD bdver3 architecture.
26860
26861 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26862
26863 * tree.c (warn_deprecated_use): Print file:line using locus color.
26864 * diagnostic.c (diagnostic_report_current_module): Print file:line
26865 and file:line:column using locus color.
26866
26867 2013-05-14 Mike Stump <mikestump@comcast.net>
26868
26869 * gdbinit.in: Add __null.
26870
26871 2013-05-14 Mike Stump <mikestump@comcast.net>
26872
26873 * recog.h: Rename struct recog_data to Recog_data.
26874 * recog.c: Likewise.
26875 * reload.c (can_reload_into): Likewise.
26876 * config/picochip/picochip.c: Likewise.
26877
26878 2013-05-14 Mike Stump <mikestump@comcast.net>
26879
26880 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26881
26882 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
26883
26884 * resource.h (struct resources): Remove unch_memory member.
26885 (CLEAR_RESOURCE): Don't clear unch_memory.
26886 * resource.c (mark_referenced_resources): Don't set it.
26887 (mark_set_resources): Likewise.
26888 (mark_target_live_regs): Don't clear it.
26889 (init_resource_info): Likewise.
26890 * reorg.c (resource_conflicts_p): Don't compare it.
26891 (redundant_insn): Don't set it.
26892
26893 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26894 Remove prototypes.
26895 * emit-rtl.c (next_label): Remove unused function.
26896 (skip_consecutive_labels, link_cc0_insns): Move to ...
26897 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26898 only place where these functions are used, and make them static.
26899
26900 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26901
26902 * fold-const.c (fold_negate_expr): Handle vectors.
26903 (fold_truth_not_expr): Make it static.
26904 (fold_invert_truthvalue): New static function.
26905 (invert_truthvalue_loc): Handle vectors. Do not call
26906 fold_truth_not_expr directly.
26907 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26908 <TRUTH_NOT_EXPR>: Do not cast to boolean.
26909 (fold_comparison): Handle vector constants.
26910 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26911 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26912 * tree.h (fold_truth_not_expr): Remove declaration.
26913
26914 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
26915
26916 * config/aarch64/aarch64-simd.md
26917 (aarch64_vcond_internal<mode>): Rename to...
26918 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26919 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26920 float modes. Clarify all iterator modes.
26921 (vcond<mode><mode>): Use new name for vcond expanders.
26922 (vcond<v_cmp_result><mode>): Likewise.
26923 (vcondu<mode><mode>: Likewise.
26924 * config/aarch64/iterators.md (VDQF_COND): New.
26925
26926 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26927
26928 PR bootstrap/57266
26929 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26930 variable for the shift amount. Check that we shift by non-negative
26931 amounts.
26932
26933 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
26934
26935 PR target/42017
26936 * config/arm/arm.h (EPILOGUE_USES): Only return true
26937 for LR_REGNUM after epilogue_completed.
26938
26939 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
26940
26941 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26942 is error_mark_node.
26943
26944 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26945
26946 PR target/57261
26947 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26948 and Solaris 11+/x86 with gld.
26949 * configure: Regenerate.
26950
26951 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26952
26953 * expmed.c (expand_shift_1): Canonicalize rotates by
26954 constant bitsize / 2 to bitsize - 1.
26955 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26956 case ROTATERT>: Likewise.
26957
26958 Revert:
26959 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26960
26961 * config/i386/i386.md (rotateinv): New code attr.
26962 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26963 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26964 roll $31, %eax, etc.
26965
26966 2013-05-14 Richard Biener <rguenther@suse.de>
26967
26968 PR middle-end/57235
26969 * tree-eh.c (sink_clobbers): Give up for successors with
26970 multiple predecessors and no virtual uses.
26971
26972 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
26973
26974 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26975 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26976
26977 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26978
26979 PR middle-end/57251
26980 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26981 the case when both op0 and op1 have VOIDmode.
26982
26983 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26984
26985 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26986 in multiply-accumulate mode.
26987
26988 2013-05-13 Guozhi Wei <carrot@google.com>
26989
26990 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26991
26992 2013-05-13 Kai Tietz <ktietz@redhat.com>
26993
26994 PR target/56975
26995 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26996 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26997 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26998 * config/i386/i386.c (ix86_option_override_internal): Likewise.
26999 (ix86_expand_prologue): Likewise.
27000 (ix86_expand_split_stack_prologue): Likewise.
27001 (legitimate_pic_address_disp_p): Likewise.
27002 (legitimize_pic_address): Likewise.
27003 (legitimize_tls_address): Likewise.
27004 (legitimize_pe_coff_symbol): Likewise.
27005 (output_pic_addr_const): Likewise.
27006 (construct_plt_address): Likewise.
27007 (ix86_expand_call): Likewise.
27008 (x86_output_mi_thunk): Likewise.
27009 (x86_function_profiler): Likewise.
27010
27011 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27012
27013 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27014 similar switch cases.
27015 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27016 (aarch64_simd_mov_to_<mode>low): Delete.
27017 (aarch64_simd_mov_to_<mode>high): Delete.
27018 (move_lo_quad_<mode>): Add w<-r alternative.
27019 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27020 (aarch64_simd_mov_from_*): Update type attribute.
27021 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27022 statement.
27023
27024 2013-05-13 Jan Hubicka <jh@suse.cz>
27025
27026 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27027 * config/i386/i386.c (ix86_compute_frame_layout,
27028 ix86_expand_epilogue, emit_i387_cw_initialization,
27029 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27030 ix86_local_alignment): Fix use of size/speed predicates.
27031
27032 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27033
27034 PR tree-optimization/45216
27035 PR tree-optimization/57157
27036 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27037 the (-Y) & (B - 1) variant if OP is |.
27038 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27039 return shifted. Use (-op1) & (prec - 1) as other_amount
27040 instead of prec - op1.
27041
27042 2013-05-13 Martin Jambor <mjambor@suse.cz>
27043
27044 PR middle-end/42371
27045 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27046 (ipa_constant_data): New type.
27047 (ipa_jump_func): Use ipa_constant_data to hold information about
27048 constant jump functions.
27049 (ipa_get_jf_constant): Adjust to jump function type changes.
27050 (ipa_get_jf_constant_rdesc): New function.
27051 (ipa_param_descriptor): New field controlled_uses.
27052 (ipa_get_controlled_uses): New function.
27053 (ipa_set_controlled_uses): Likewise.
27054 * ipa-ref.h (ipa_find_reference): Declare.
27055 * ipa-prop.c (ipa_cst_ref_desc): New type.
27056 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27057 changes.
27058 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27059 New parameter cs. Adjust all callers.
27060 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27061 (remove_described_reference): New function.
27062 (jfunc_rdesc_usable): Likewise.
27063 (try_make_edge_direct_simple_call): Decrement controlled use count,
27064 attempt to remove reference if it hits zero.
27065 (combine_controlled_uses_counters): New function.
27066 (propagate_controlled_uses): Likewise.
27067 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27068 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27069 (ipa_print_node_params): Print described use counter.
27070 (ipa_write_jump_function): Adjust to jump function type changes.
27071 (ipa_read_jump_function): New parameter CS, pass it to
27072 ipa_set_jf_constant. Adjust caller.
27073 (ipa_write_node_info): Stream controlled use count
27074 (ipa_read_node_info): Likewise.
27075 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27076 asserting.
27077 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27078 count. Remove cloning-added reference if it reaches zero.
27079 * ipa-ref.c (ipa_find_reference): New function.
27080
27081 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27082
27083 * config/i386/i386.c (processor_target_table): Modified default
27084 alignment values for AMD BD and BT architectures.
27085
27086 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27087
27088 * tree-vect-generic.c (uniform_vector_p): Move ...
27089 * tree.c (uniform_vector_p): ... here.
27090 * tree.h (uniform_vector_p): Declare it.
27091 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27092 into a scalar.
27093
27094 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27095
27096 PR tree-optimization/57230
27097 * tree-ssa-strlen.c (handle_char_store): Record length for
27098 array store from STRING_CST.
27099
27100 PR tree-optimization/57230
27101 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27102 check.
27103
27104 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27105
27106 * config/epiphany/epiphany.c (epiphany_init): Check size of
27107 NUM_MODES_FOR_MODE_SWITCHING.
27108 (epiphany_expand_prologue):
27109 Remove CONFIG_REGNUM initial value handling code.
27110 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27111 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27112 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27113 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27114 Don't return 1 for FP_MODE_NONE.
27115 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27116 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27117 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27118 * config/epiphany/epiphany.md (save_config): New pattern.
27119
27120 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27121
27122 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27123
27124 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27125
27126 * config/i386/i386.md (memory): Handle sseishft1.
27127 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27128 (*vec_extractv2di_1): Ditto.
27129
27130 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27131
27132 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27133 saved registers.
27134
27135 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27136
27137 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27138 Add mthumb/march=armv7-a multilib.
27139 Add mthumb/march=armv7-r multilib.
27140 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27141
27142 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27143
27144 * config/v850/t-rtems: Add more multilibs.
27145
27146 2013-05-10 Richard Biener <rguenther@suse.de>
27147
27148 PR tree-optimization/57214
27149 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27150 not propagate from SSA names that occur in abnormal PHI nodes.
27151
27152 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27153
27154 * stor-layout.c (element_precision): New function.
27155 * machmode.h (element_precision): Declare it.
27156 * tree.c (build_minus_one_cst): New function.
27157 (element_precision): Likewise.
27158 * tree.h (build_minus_one_cst): Declare new function.
27159 (element_precision): Likewise.
27160 * fold-const.c (operand_equal_p): Use element_precision.
27161 (fold_binary_loc): Handle vector types.
27162 * convert.c (convert_to_integer): Use element_precision.
27163 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27164 separately.
27165
27166 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27167
27168 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27169 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27170 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27171 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27172 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27173 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27174 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27175 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27176 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27177 (Uuw8): New constraints.
27178 (Usb4): Move into alphabetical order.
27179 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27180 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27181 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27182 previously unnamed patterns.
27183 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27184 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27185 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27186 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27187 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27188 of specific lengths.
27189
27190 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27191
27192 * config/i386/i386.md (rotateinv): New code attr.
27193 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27194 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27195 roll $31, %eax, etc.
27196
27197 PR tree-optimization/45216
27198 PR tree-optimization/57157
27199 * tree-ssa-forwprop.c (simplify_rotate): New function.
27200 (ssa_forward_propagate_and_combine): Call it.
27201
27202 2013-05-10 Richard Biener <rguenther@suse.de>
27203
27204 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27205 disable peeling when we version for aliasing.
27206 (vector_alignment_reachable_p): Honor explicit user alignment.
27207 (vect_supportable_dr_alignment): Likewise.
27208 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27209 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27210 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27211 then peeling to arrange for the cost-model check to come first.
27212
27213 2013-05-10 Alan Modra <amodra@gmail.com>
27214
27215 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27216 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27217 * configure: Regenerate.
27218
27219 2013-05-10 Alan Modra <amodra@gmail.com>
27220
27221 PR target/55033
27222 * varasm.c (default_elf_select_section): Move !DECL_P check..
27223 (get_named_section): ..to here before calling get_section_name.
27224 Adjust assertion.
27225 (default_section_type_flags): Add DECL_P check.
27226 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27227 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27228
27229 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27230
27231 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27232 When using gen_stack_adjust_str with a register offset, add a
27233 REG_FRAME_RELATED_EXPR note.
27234
27235 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27236
27237 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27238 (*vec_extractv4si_zext_mem): Ditto.
27239 (*vec_extractv2di): Add 0->x and x->x alternatives.
27240 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27241 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27242
27243 2013-05-09 Jason Merrill <jason@redhat.com>
27244
27245 N3639 C++1y VLA support
27246 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27247 DECL_VALUE_EXPR.
27248
27249 * tree.c (build_constructor_va): New.
27250 * tree.h: Declare it.
27251
27252 2013-05-09 Martin Jambor <mjambor@suse.cz>
27253
27254 PR lto/57084
27255 * gimple-fold.c (canonicalize_constructor_val): Call
27256 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27257
27258 2013-05-09 Jan Hubicka <jh@suse.cz>
27259 Richard Biener <rguenther@suse.de>
27260
27261 PR lto/54095
27262 * symtab.c (symtab_make_decl_local): Do not add private names.
27263
27264 2013-05-09 Jan Hubicka <jh@suse.cz>
27265
27266 PR lto/54095
27267 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27268 (unlink_from_assembler_name_hash): Likewise.
27269 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27270 symtab_unregister_node, symtab_initialize_asm_name_hash,
27271 change_decl_assembler_name): Update.
27272
27273 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27274
27275 * config/aarch64/aarch64.md: New movtf split.
27276 (*movtf_aarch64): Update.
27277 (aarch64_movdi_tilow): Handle TF modes and rename to
27278 aarch64_movdi_<mode>low.
27279 (aarch64_movdi_tihigh): Handle TF modes and rename to
27280 aarch64_movdi_<mode>high
27281 (aarch64_movtihigh_di): Handle TF modes and rename to
27282 aarch64_mov<mode>high_di
27283 (aarch64_movtilow_di): Handle TF modes and rename to
27284 aarch64_mov<mode>low_di
27285 (aarch64_movtilow_tilow): Remove spurious whitespace.
27286 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27287 splits.
27288 (aarch64_print_operand): Update.
27289
27290 2013-05-09 Alan Modra <amodra@gmail.com>
27291
27292 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27293 powerpc64le.
27294 * configure: Regenerate.
27295
27296 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27297
27298 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27299 splitter preparation statements.
27300 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27301 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27302 adjust_address_nv.
27303
27304 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27305
27306 * gimple-ssa-strength-reduction.c (count_candidates): Change
27307 return value to int.
27308 (analyze_candidates_and_replace): Change type of length to int.
27309
27310 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27311
27312 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27313 (*vec_extract<mode>): Use VI12_128 mode iterator.
27314 (*vec_extract<mode>_mem): Ditto.
27315 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27316 attribute.
27317
27318 2013-05-08 Diego Novillo <dnovillo@google.com>
27319
27320 PR bootstrap/54659
27321
27322 Revert:
27323 2012-08-17 Diego Novillo <dnovillo@google.com>
27324
27325 PR bootstrap/54281
27326 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27327 * config.in: Regenerate.
27328 * configure: Regenerate.
27329 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27330
27331 2013-05-08 Jan Hubicka <jh@suse.cz>
27332
27333 PR lto/54095
27334 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27335 * cgraph.h (symtab_node_base): Add unique_name.
27336 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27337 input_overwrite_node, input_varpool_node): Stream unique_name.
27338 * cgraphclones.c (cgraph_create_virtual_clone,
27339 cgraph_function_versioning): Set unique_name.
27340 * ipa.c (function_and_variable_visibility): Set unique_name.
27341
27342 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27343
27344 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27345 (alloc_cand_and_find_basis): Restrict conditional candidate
27346 processing to CAND_MULTs.
27347
27348 2013-05-08 Jan Hubicka <jh@suse.cz>
27349
27350 PR lto/54095
27351 lto-symtab.c (lto_symtab_symbol_p): New function.
27352 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27353 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27354 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27355 Skip static symbols.
27356
27357 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27358
27359 PR tree-optimization/57200
27360 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27361 Only call inform if the preceding warning_at returns true.
27362
27363 2013-05-07 Han Shen <shenhan@google.com>
27364
27365 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27366 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27367 * common.opt (fstack-protector-strong): New option.
27368 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27369 * doc/invoke.texi (Optimization Options): Document
27370 "-fstack-protector-strong".
27371 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27372
27373 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27374
27375 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27376
27377 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27378
27379 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27380 it is not lhs of the insn.
27381 (setup_reg_equiv): Remove insn having equiv memory which it is not
27382 lhs of the insn.
27383 * lra-constraints.c (process_address): Try to improve generation
27384 code for address base + disp.
27385 (lra_constraints): Make correct the code for checking insn setting
27386 up backward equivalence. Remove insn only if it is in the init
27387 insn list.
27388 * lra-eliminations.c (update_reg_eliminate): Change return value.
27389 (lra_eliminate): Use the result.
27390
27391 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27392
27393 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27394 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27395 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27396 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27397 register target operands.
27398 (*vec_extractv8hi_sse2): New pattern.
27399 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27400 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27401 (*vec_extract<mode>_mem): New insn and split pattern.
27402
27403 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27404
27405 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27406 (TARGET_ASAN_SHADOW_OFFSET): Define.
27407 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27408 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27409
27410 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27411
27412 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27413 (incr_vec_index): Return -1 if increment not found.
27414 (create_add_on_incoming_edge): Assert if increment not found.
27415 (record_increment): Limit number of increments recorded.
27416 (all_phi_incrs_profitable): Return false if an increment not found.
27417 (replace_profitable_candidates): Don't process increments that were
27418 not recorded.
27419 (analyze_candidates_and_replace): Limit size of incr_vec.
27420
27421 2013-05-07 Richard Biener <rguenther@suse.de>
27422
27423 * calls.c (special_function_p): setjmp-like functions are leaf.
27424 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27425 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27426
27427 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27428
27429 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27430 (aarch64_simd_mov<mode>): New expander.
27431 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27432 (aarch64_simd_mov_to_<mode>high): Likewise.
27433 (aarch64_simd_mov_from_<mode>low): Likewise.
27434 (aarch64_simd_mov_from_<mode>high): Likewise.
27435 (aarch64_dup_lane<mode>): Update.
27436 (aarch64_dup_lanedi): New instruction pattern.
27437 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27438 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27439
27440 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27441
27442 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27443 (replace_mult_candidate): Remove unnecessary argument; remove
27444 unnecessary parameter from call to introduce_cast_before_cand.
27445 (replace_unconditional_candidate): Remove unnecessary parameter
27446 from call to replace_mult_candidate.
27447 (replace_conditional_candidate): Likewise.
27448 (insert_initializers): Use make_temp_ssa_name.
27449 (introduce_cast_before_cand): Remove unnecessary argument; use
27450 make_temp_ssa_name.
27451 (replace_one_candidate): Remove unnecessary argument; remove
27452 unnecessary parameter from calls to introduce_cast_before_cand.
27453 (replace_profitable_candidates): Remove unnecessary parameters
27454 from calls to replace_one_candidate.
27455
27456 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27457
27458 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27459 phi def as possibly hiding a basis for a CAND_ADD whose operands
27460 have been commuted in the analysis.
27461 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27462
27463 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27464
27465 * config/aarch64/aarch64.md
27466 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27467 shift value between 0-4.
27468
27469 2013-05-07 Richard Biener <rguenther@suse.de>
27470
27471 * double-int.h (rshift): New overload.
27472 * double-int.c (rshift): New function.
27473 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27474 (create_reference_ops_from_ref): Remove.
27475 (vn_reference_insert): Use shared ops for constructing the
27476 reference and copy it.
27477
27478 2013-05-07 Richard Biener <rguenther@suse.de>
27479
27480 PR middle-end/57190
27481 * tree-eh.c (sink_clobbers): Properly propagate
27482 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27483
27484 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27485
27486 PR tree-optimization/57149
27487 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27488 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27489 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27490 uninit_undefined_value_p instead of ssa_undefined_value_p.
27491
27492 PR debug/57184
27493 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27494 for modifier == EXPAND_INITIALIZER.
27495
27496 2013-05-07 Anton Blanchard <anton@samba.org>
27497
27498 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27499 for powerpc64 little endian.
27500 * configure: Regenerate.
27501
27502 2013-05-06 Graham Stott <grahams@btinternet.com>
27503
27504 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27505 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27506 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27507 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27508
27509 2013-05-06 Graham Stott <grahams@btinternet.com>
27510
27511 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27512 codes which allow non-lvalues.
27513
27514 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27515
27516 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27517 components are all 1s.
27518 (integer_minus_onep): New function.
27519 * tree.h (integer_minus_onep): Declare it.
27520 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27521 integer_minus_onep instead of integer_all_onesp.
27522
27523 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27524
27525 PR target/52933
27526 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27527 variations of these patterns.
27528
27529 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27530
27531 * config/i386/i386.md (isa): Add x64_sse4 member.
27532 (enabled): Handle x64_sse4.
27533 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27534 instruction for 64bit SSE4_1 targets. Update insn attributes.
27535 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27536 instruction for SSE4_1 targets. Update insn attributes.
27537 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27538 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27539 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27540 const_1 selector.
27541 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27542 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27543 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27544
27545 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27546
27547 PR target/57108
27548 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27549
27550 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27551
27552 * final.c (do_assembler_dialects): Don't handle curly braces and
27553 vertical bar escaped by % as dialect delimiters.
27554 (output_asm_insn): Print curly braces and vertical bar if escaped
27555 by % and ASSEMBLER_DIALECT defined.
27556 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27557 * doc/tm.texi: Regenerated.
27558
27559 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27560
27561 * config/mips/mips.c: Include tree-pass.h.
27562 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27563 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27564 (pass_mips_machine_reorg2): New machine specific pass.
27565 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27566 (mips_option_override): Register the new pass.
27567 * rtl.h (cleanup_barriers): Remove prototype.
27568 (dbr_schedule): Likewise.
27569 * jump.c (cleanup_barriers): Make static.
27570 * reorg.c (dbr_schedule): Likewise.
27571
27572 2013-05-06 Richard Biener <rguenther@suse.de>
27573
27574 PR tree-optimization/57185
27575 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27576 SSA names properly.
27577
27578 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27579
27580 PR target/57106
27581 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27582 between "first_arg" and "insn", not "last" and "insn".
27583
27584 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27585
27586 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27587 (find_candidates_in_block): Re-enable slsr_process_phi.
27588 (create_phi_basis): Fix double counting of candidate adjustment.
27589
27590 2013-05-06 Richard Biener <rguenther@suse.de>
27591
27592 PR middle-end/57147
27593 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27594 the edge is also fallthru, preserve it and just clear the
27595 abnormal flag.
27596 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27597 also complex, preserve that and just clear the fallthru flag.
27598 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27599 update virtual operands.
27600
27601 2013-05-06 Alan Modra <amodra@gmail.com>
27602
27603 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27604 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27605 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27606 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27607 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27608 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27609
27610 2013-05-06 Alan Modra <amodra@gmail.com>
27611
27612 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27613 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27614 (DEFAULT_ASM_ENDIAN): Define.
27615 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27616 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27617 Update -K PIC clause from sysv4.h.
27618 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27619 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27620
27621 2013-05-06 Alan Modra <amodra@gmail.com>
27622
27623 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27624 twice for little-endian.
27625 (ashrdi3_no_power, ashrdi3): Support little-endian.
27626
27627 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27628
27629 PR target/55303
27630 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27631 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27632 related expanders.
27633 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27634 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27635 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27636 New predicates.
27637
27638 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27639 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27640
27641 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27642 * config/pa/pa.opt: Make mbig-switch a no-op.
27643 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27644 (CASE_VECTOR_MODE): Always return SImode.
27645 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27646 for the !TARGET_BIG_SWITCH case.
27647 * config/pa/pa-linux.h: Likewise.
27648 * config/pa/pa-openbsd.h: Likewise.
27649 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27650 * config/pa/pa.md (short_jump): Remove define_insn.
27651 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27652 (casesi0): Remove define_insn.
27653 (type): Remove btable_branch.
27654 (pa_combine_type): Likewise.
27655 (in_nullified_branch_delay): Likewise.
27656 (in_call_delay): Likewise.
27657 (define_delay): Likewise.
27658 (define_insn_reservation "Z3"): Likewise.
27659 (define_insn_reservation "Z4"): Likewise.
27660 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27661 (pa_adjust_insn_length): Remove adjustment for btable branches.
27662 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27663 and mno-big-switch
27664
27665 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27666
27667 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27668 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27669 Add m->r,x alternatives.
27670 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27671 splitters using SWI48x mode iterator.
27672 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27673 TARGET_64BIT. Add m->x alternative.
27674 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27675 Add o->x alternative. Enable for TARGET_SSE.
27676 (sse_storeq): Remove expander.
27677 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27678 with memory input operand.
27679 (*vec_extractv2di_1 splitter): New.
27680 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27681 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27682
27683 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27684
27685 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27686 (INT_LOWPART): Delete.
27687 (extract_MB): Adjust.
27688 (extract_ME): Adjust.
27689 (print_operand): Adjust.
27690
27691 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27692
27693 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27694 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27695 (reg_or_logical_cint_operand, easy_fp_constant,
27696 logical_const_operand): Delete "CONST_DOUBLE" case.
27697 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27698 "HOST_BITS_PER_WIDE_INT == 64" test.
27699 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27700 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27701 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27702 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27703 test.
27704 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27705 CONST_DOUBLE DImode/VOIDmode case.
27706 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27707 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27708 CONST_DOUBLE VOIDmode case.
27709 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27710 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27711 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27712 Delete CONST_DOUBLE case.
27713 (splitters for mov FMOVE64 const_double): Delete
27714 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27715 "HOST_BITS_PER_WIDE_INT >= 64" test.
27716 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27717 case.
27718 (mov DI const_double): Delete.
27719
27720 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27721
27722 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27723 on op shows all bits zero in mode of a lowpart subreg, return zero.
27724
27725 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27726
27727 PR target/57150
27728 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27729 to save TFmode registers and DImode to save TImode registers for
27730 caller save operations.
27731 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27732 mark being partially clobbered since they only use the first
27733 double word.
27734
27735 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27736 and TDmode only use the upper 64-bits of each VSX register.
27737
27738 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27739
27740 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27741 (find_candidates_in_block): Disable slsr_process_phi.
27742
27743 2013-05-03 Guozhi Wei <carrot@google.com>
27744
27745 * coverage.c (coverage_obj_init): Move the construction of gcov
27746 constructor to ...
27747 (build_init_ctor): ... here.
27748
27749 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27750
27751 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27752 (slsr_cand_d): Redefine def_phi.
27753 (stride_status, phi_adjust_status, count_phis_status): New enums.
27754 (find_phi_def): New.
27755 (find_basis_for_base_expr): New.
27756 (find_basis_for_candidate): Handle hidden bases.
27757 (alloc_cand_and_find_basis): Handle phi candidates.
27758 (slsr_process_phi): New.
27759 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27760 (create_mul_imm_cand): Likewise.
27761 (create_add_ssa_cand): Exclude phi base candidates.
27762 (create_add_imm_cand): Likewise.
27763 (slsr_process_cast): Likewise.
27764 (slsr_process_copy): Likewise.
27765 (find_candidates_in_block): Handle phi candidates.
27766 (dump_candidate): Likewise.
27767 (unconditional_cands): Delete.
27768 (unconditional_cands_with_known_stride_p): Delete.
27769 (phi_dependent_cand_p): New.
27770 (cand_increment): Handle phi-dependent candidates.
27771 (replace_dependent): Delete.
27772 (replace_mult_candidate): New.
27773 (replace_unconditional_candidate): New.
27774 (incr_vec_index): Move to avoid forward reference.
27775 (create_add_on_incoming_edge): New.
27776 (create_phi_basis): New.
27777 (replace_dependents): Delete.
27778 (replace_conditional_candidate): New.
27779 (phi_add_costs): New.
27780 (replace_uncond_cands_and_profitable_phis): New.
27781 (record_increment): Handle phi adjustments.
27782 (record_phi_increments): New.
27783 (record_increments): Handle phi adjustments.
27784 (phi_incr_cost): New.
27785 (lowest_cost_path): Handle phis.
27786 (total_savings): Likewise.
27787 (analyze_increments): Likewise.
27788 (ncd_with_phi): New.
27789 (ncd_of_cand_and_phis): New.
27790 (nearest_common_dominator_for_cands): Handle phi increments.
27791 (all_phi_incrs_profitable): New.
27792 (replace_profitable_candidates): Handle phi-dependent candidates.
27793 (analyze_candidates_and_replace): Likewise.
27794
27795 2013-05-03 Teresa Johnson <tejohnson@google.com>
27796
27797 PR bootstrap/57154
27798 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27799 do not exceed REG_BR_PROB_BASE.
27800
27801 2013-05-03 Jeff Law <law@redhat.com>
27802
27803 PR tree-optimization/57144
27804 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27805 operand of the condition will bit into the new type when eliminating
27806 a cast feeding a condition.
27807
27808 2013-05-03 Jakub Jelinek <jakub@redhat.com>
27809
27810 PR rtl-optimization/57130
27811 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27812 of COMPARE as in_code to the recursive call if needed.
27813
27814 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
27815
27816 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27817 (enabled): Handle new members.
27818 * config/i386/sse.md (*vec_concatv2si): Merge from
27819 *vec_concatv2si_sse2 and vec_concatv2si_sse.
27820 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27821
27822 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
27823
27824 PR tree-optimization/57027
27825 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27826 for fnms opportunity, check we got the prerequisite kind
27827 of tree / gimple before using accessor functions.
27828
27829 2013-05-03 Richard Biener <rguenther@suse.de>
27830
27831 * double-int.h (lshift): New overload without precision
27832 and arith argument.
27833 (operator *=, operator +=, operator -=): Move ...
27834 * double-int.c (operator *=, operator +=, operator -=): ... here
27835 and implement more efficiently.
27836 (mul_double_with_sign): Remove.
27837 (lshift_double): Adjust to take unsinged shift argument, push
27838 dispatching code to callers.
27839 (mul_double_wide_with_sign): Add early out for callers that
27840 are not interested in high parts or overflow.
27841 (lshift): New function.
27842 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27843 dispatch code here.
27844 (lrotate, rrotate): Use logical shifts.
27845 * expr.c (get_inner_reference): Use lshift.
27846 * fixed-value.c (do_fixed_divide): Likewise.
27847 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27848 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27849 (indirect_refs_may_alias_p): Likewise.
27850 (stmt_kills_ref_p_1): Likewise.
27851
27852 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27853
27854 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27855
27856 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27857
27858 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27859 scalar form of FABD instruction.
27860
27861 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
27862
27863 * lra-constraints.c (process_alt_operands): Add checking alt
27864 number to choose the best alternative.
27865
27866 2013-05-02 Richard Biener <rguenther@suse.de>
27867
27868 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27869 bitmap and its handling.
27870 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27871
27872 2013-05-02 Richard Biener <rguenther@suse.de>
27873
27874 PR middle-end/57140
27875 * tree-inline.c (copy_loops): Properly handle removed loops.
27876 (copy_cfg_body): Mark destination loops for fixup if source
27877 loops needed fixup.
27878
27879 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
27880
27881 PR target/56732
27882 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27883 generating simple_return for naked functions.
27884
27885 2013-05-02 Martin Jambor <mjambor@suse.cz>
27886
27887 PR middle-end/56988
27888 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27889 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27890 flags match.
27891 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27892 ipa_agg_replacement_value structures.
27893 (known_aggs_to_agg_replacement_list): Likewise.
27894 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27895 (read_agg_replacement_chain): Likewise.
27896 (ipcp_transform_function): Also check that by_ref flags match.
27897
27898 2013-05-02 Richard Biener <rguenther@suse.de>
27899
27900 * graphds.h (struct graph): Add obstack member.
27901 * graphds.c (new_graph): Initialize obstack and allocate
27902 vertices from it.
27903 (add_edge): Allocate edge from the obstack.
27904 (free_graph): Free the obstack instead of all edges and vertices.
27905
27906 2013-05-02 Teresa Johnson <tejohnson@google.com>
27907
27908 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27909 divides.
27910 * cfg.c (update_bb_profile_for_threading): Ditto.
27911 * tree-inline.c (copy_bb): Ditto.
27912 (copy_edges_for_bb): Ditto.
27913 (initialize_cfun): Ditto.
27914 (copy_cfg_body): Ditto.
27915 (expand_call_inline): Ditto.
27916 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27917 (estimate_node_size_and_time): Ditto.
27918 (inline_merge_summary): Ditto.
27919 * cgraphclones.c (cgraph_clone_edge): Ditto.
27920 (cgraph_clone_node): Ditto.
27921 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27922 (compute_trg_info): Ditto.
27923
27924 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27925
27926 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27927 S reg when fp attribute set.
27928 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27929
27930 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27931
27932 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27933 New pattern.
27934 (*and_one_cmplsi3_compare0_uxtw): Likewise.
27935 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27936 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27937
27938 2013-05-02 Richard Biener <rguenther@suse.de>
27939
27940 * tree-scalar-evolution.c (scev_info_hasher): Remove.
27941 (struct instantiate_cache_entry): New type.
27942 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27943 (struct instantiate_cache_type): New type.
27944 (set_instantiated_value, get_instantiated_value): Remove.
27945 (get_instantiated_value_entry): New function.
27946 (instantiate_scev_name): Use the new cache and adjust.
27947 (instantiate_scev_poly): Adjust.
27948 (instantiate_scev_binary): Likewise.
27949 (instantiate_array_ref): Likewise.
27950 (instantiate_scev_convert): Likewise.
27951 (instantiate_scev_not): Likewise.
27952 (instantiate_scev_3): Likewise.
27953 (instantiate_scev_2): Likewise.
27954 (instantiate_scev_r): Likewise.
27955 (instantiate_scev): Likewise.
27956 (resolve_mixers): Likewise.
27957
27958 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
27959
27960 PR target/57091
27961 * lra-constraints.c (best_small_class_operands_num): Remove.
27962 (process_alt_operands): Remove small_class_operands_num. Take
27963 small classes operands into losers and only if the operand is not
27964 matched. Modify debugging output.
27965 (curr_insn_transform): Remove best_small_class_operands_num.
27966 Print insn name.
27967
27968 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27969
27970 * config/aarch64/aarch64-builtins.c
27971 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27972 * config/aarch64/aarch64-simd-builtins.def
27973 (reduc_splus_): Add new modes.
27974 (reduc_uplus_): New.
27975 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27976 (reduc_uplus_v4sf): Likewise.
27977 (reduc_splus_v4sf): Likewise.
27978 (aarch64_addv<mode>): Likewise.
27979 (reduc_uplus_<mode>): Likewise.
27980 (reduc_splus_<mode>): Likewise.
27981 (aarch64_addvv2di): Likewise.
27982 (reduc_uplus_v2di): Likewise.
27983 (reduc_splus_v2di): Likewise.
27984 (aarch64_addvv2si): Likewise.
27985 (reduc_uplus_v2si): Likewise.
27986 (reduc_splus_v2si): Likewise.
27987 (reduc_<sur>plus_<mode>): New.
27988 (reduc_<sur>plus_v2di): Likewise.
27989 (reduc_<sur>plus_v2si): Likewise.
27990 (reduc_<sur>plus_v4sf): Likewise.
27991 (aarch64_addpv4sf): Likewise.
27992 * config/aarch64/arm_neon.h
27993 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27994 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27995 add UNSPEC_SADDV, UNSPEC_UADDV.
27996 (SUADDV): New.
27997 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27998
27999 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28000
28001 * config/aarch64/arm_neon.h
28002 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28003
28004 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28005
28006 * config/aarch64/aarch64-builtins
28007 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28008
28009 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28010
28011 * config/aarch64/aarch64-simd-builtins.def
28012 (reduc_smax_): New.
28013 (reduc_smin_): Likewise.
28014 (reduc_umax_): Likewise.
28015 (reduc_umin_): Likewise.
28016 (reduc_smax_nan_): Likewise.
28017 (reduc_smin_nan_): Likewise.
28018 (fmax): Remove.
28019 (fmin): Likewise.
28020 (smax): Update for V2SF, V4SF and V2DF modes.
28021 (smin): Likewise.
28022 (smax_nan): New.
28023 (smin_nan): Likewise.
28024 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28025 (<su><maxmin><mode>3): ...This, refactor.
28026 (s<maxmin><mode>3): New.
28027 (<maxmin_uns><mode>3): Likewise.
28028 (reduc_<maxmin_uns>_<mode>): Refactor.
28029 (reduc_<maxmin_uns>_v4sf): Likewise.
28030 (reduc_<maxmin_uns>_v2si): Likewise.
28031 (aarch64_<fmaxmin><mode>: Remove.
28032 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28033 new builtin names.
28034 (vmin<q>_f<32,64>): Likewise.
28035 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28036 (FMAXMIN): New.
28037 (su): Add mappings for smax, smin, umax, umin.
28038 (maxmin): New.
28039 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28040 (FMAXMIN): Rename as...
28041 (FMAXMIN_UNS): ...This.
28042 (maxminv): Remove.
28043 (fmaxminv): Likewise.
28044 (fmaxmin): Likewise.
28045 (maxmin_uns): New.
28046 (maxmin_uns_op): Likewise.
28047
28048 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28049
28050 * config/aarch64/arm_neon.h
28051 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28052 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28053 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28054
28055 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28056
28057 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28058 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28059
28060 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28061
28062 * config/aarch64/aarch64-simd.md
28063 (vcond<mode>_internal): Handle special cases for constant masks.
28064 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28065 (vcondu<mode><mode>): Likewise.
28066 (vcond<v_cmp_result><mode>): New.
28067
28068 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28069
28070 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28071 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28072 * config/aarch64/aarch64-simd-builtins.def
28073 (cmeq): Update to BUILTIN_VALLDI.
28074 (cmgt): Likewise.
28075 (cmge): Likewise.
28076 (cmle): Likewise.
28077 (cmlt): Likewise.
28078 * config/aarch64/arm_neon.h
28079 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28080 to builtins or C as appropriate.
28081
28082 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28083
28084 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28085 (cmgeu): ...This.
28086 (cmhi): Rename to...
28087 (cmgtu): ...This.
28088 * config/aarch64/aarch64-simd.md
28089 (simd_mode): Add SF.
28090 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28091 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28092 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28093 (cstore<mode>_neg): ...This.
28094 * config/aarch64/iterators.md
28095 (VALLF): new.
28096 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28097 (COMPARISONS): New.
28098 (UCOMPARISONS): Likewise.
28099 (optab): Add missing comparisons.
28100 (n_optab): New.
28101 (cmp_1): Likewise.
28102 (cmp_2): Likewise.
28103 (CMP): Likewise.
28104 (cmp): Remove.
28105 (VCMP_S): Likewise.
28106 (VCMP_U): Likewise.
28107 (V_cmp_result): Add DF, SF modes.
28108 (v_cmp_result): Likewise.
28109 (v): Likewise.
28110 (vmtype): Likewise.
28111 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28112
28113 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28114
28115 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28116 define_insn to define_insn_and_split.
28117 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28118 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28119 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28120 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28121 (thumb2_negscc): Likewise.
28122
28123 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28124
28125 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28126
28127 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28128
28129 * config/arm/thumb2.md: Remove trailing whitespaces.
28130
28131 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28132
28133 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28134 Use gen_int_mode rather than GEN_INT.
28135
28136 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28137
28138 * value-prof.c (stream_in_histogram_value): Remove the strayed
28139 debug_gimple_stmt.
28140
28141 2013-04-30 Richard Biener <rguenther@suse.de>
28142
28143 PR middle-end/57122
28144 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28145
28146 2013-04-30 Richard Biener <rguenther@suse.de>
28147
28148 PR middle-end/57107
28149 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28150
28151 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28152
28153 PR rtl-optimization/56957
28154 PR rtl-optimization/57105
28155 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28156 variable. Use just INSN_UID for determining whether an insn
28157 should be only disconnected from the insn stream.
28158 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28159
28160 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28161
28162 PR tree-optimization/57104
28163 * tsan.c (instrument_expr): Don't instrument accesses to
28164 DECL_HARD_REGISTER VAR_DECLs.
28165
28166 2013-04-30 Richard Biener <rguenther@suse.de>
28167
28168 * function.h (loops_for_fn): New inline function.
28169 (set_loops_for_fn): Likewise.
28170 * cfgloop.h (place_new_loop): Add struct function parameter.
28171 (get_loop): Likewise.
28172 (get_loops): Likewise.
28173 (number_of_loops): Likewise.
28174 (fel_next): Adjust.
28175 (fel_init): Likewise.
28176 * cfg.c (get_loop_copy): Adjust.
28177 * cfgloop.c (flow_loops_dump): Likewise.
28178 (record_loop_exits): Likewise.
28179 (verify_loop_structure): Likewise.
28180 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28181 (estimate_reg_pressure_cost): Likewise.
28182 (mark_loop_exit_edges): Likewise.
28183 * cfgloopmanip.c (place_new_loop): Likewise.
28184 (add_loop): Likewise.
28185 (duplicate_loop): Likewise.
28186 * graph.c (draw_cfg_nodes): Likewise.
28187 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28188 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28189 (extract_affine_chrec): Likewise.
28190 (build_scop_iteration_domain): Likewise.
28191 * graphite.c (graphite_initialize): Likewise.
28192 * ira-build.c (create_loop_tree_nodes): Likewise.
28193 (more_one_region_p): Likewise.
28194 (rebuild_regno_allocno_maps): Likewise.
28195 (mark_loops_for_removal): Likewise.
28196 (mark_all_loops_for_removal): Likewise.
28197 (remove_unnecessary_regions): Likewise.
28198 (ira_build): Likewise.
28199 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28200 * loop-init.c (fix_loop_structure): Likewise.
28201 (gate_rtl_move_loop_invariants): Likewise.
28202 (gate_rtl_unswitch): Likewise.
28203 (gate_rtl_unroll_and_peel_loops): Likewise.
28204 (rtl_doloop): Likewise.
28205 * lto-streamer-in.c (input_cfg): Likewise.
28206 * lto-streamer-out.c (output_cfg): Likewise.
28207 * modulo-sched.c (sms_schedule): Likewise.
28208 * predict.c (tree_estimate_probability): Likewise.
28209 (tree_estimate_probability_driver): Likewise.
28210 (estimate_loops): Likewise.
28211 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28212 (move_sese_region_to_fn): Likewise.
28213 (debug_loop_num): Likewise.
28214 * tree-chrec.c (chrec_evaluate): Likewise.
28215 (hide_evolution_in_other_loops_than_loop): Likewise.
28216 (chrec_component_in_loop_num): Likewise.
28217 (reset_evolution_in_loop): Likewise.
28218 (evolution_function_is_invariant_rec_p): Likewise.
28219 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28220 * tree-inline.c (copy_loops): Likewise.
28221 (copy_cfg_body): Likewise.
28222 (tree_function_versioning): Likewise.
28223 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28224 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28225 Likewise.
28226 (add_to_evolution_1): Likewise.
28227 (scev_const_prop): Likewise.
28228 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28229 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28230 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28231 (tree_ssa_lim_initialize): Likewise.
28232 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28233 (verify_loop_closed_ssa): Likewise.
28234 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28235 (tree_ssa_loop_im): Likewise.
28236 (tree_ssa_loop_unswitch): Likewise.
28237 (tree_vectorize): Likewise.
28238 (check_data_deps): Likewise.
28239 (tree_ssa_loop_ivcanon): Likewise.
28240 (tree_ssa_loop_bounds): Likewise.
28241 (tree_complete_unroll): Likewise.
28242 (tree_complete_unroll_inner): Likewise.
28243 (tree_parallelize_loops): Likewise.
28244 (tree_ssa_loop_prefetch): Likewise.
28245 (tree_ssa_loop_ivopts): Likewise.
28246 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28247 * tree-vectorizer.c (vectorize_loops): Likewise.
28248
28249 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28250
28251 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28252 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28253 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28254 with EABI_LINK_SPEC.
28255
28256 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28257
28258 PR target/44578
28259 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28260 alternative.
28261
28262 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28263
28264 PR target/57097
28265 * lra-constraints.c (process_alt_operands): Discourage a bit more
28266 using memory for pseudos. Print cost dump for alternatives.
28267 Modify cost values for conflicts with early clobbers.
28268 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28269
28270 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28271
28272 PR target/57098
28273 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28274
28275 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28276
28277 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28278 from/to S register.
28279 (movdi_aarch64): Support LDR/STR from/to D register.
28280
28281 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28282
28283 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28284 or higher by default.
28285
28286 2013-04-29 Richard Biener <rguenther@suse.de>
28287
28288 PR middle-end/57075
28289 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28290 even if not adding abnormal edges for calls that can make
28291 abnormal gotos.
28292
28293 2013-04-29 Richard Biener <rguenther@suse.de>
28294
28295 PR middle-end/57103
28296 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28297 TREE_BLOCK.
28298 (move_stmt_r): Remove redundant checking.
28299
28300 2013-04-29 Teresa Johnson <tejohnson@google.com>
28301
28302 PR bootstrap/57077
28303 * basic-block.h (apply_scale): New function.
28304 (apply_probability): Use apply_scale.
28305 * gimple-streamer-in.c (input_bb): Ditto.
28306 * lto-streamer-in.c (input_cfg): Ditto.
28307 * lto-cgraph.c (merge_profile_summaries): Ditto.
28308 * tree-optimize.c (execute_fixup_cfg): Ditto.
28309 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28310 (copy_edges_for_bb): Ditto.
28311 (copy_cfg_body): Ditto.
28312
28313 2013-04-29 Tom de Vries <tom@codesourcery.com>
28314
28315 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28316 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28317 (tail_merge_optimize): Handle current_loops == NULL.
28318
28319 2013-04-26 Jeff Law <law@redhat.com>
28320
28321 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28322 (simplify_cond_using_ranges): Generalize code to simplify
28323 COND_EXPRs where one argument is a constant and the other
28324 is an SSA_NAME created by an integral type conversion.
28325
28326 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28327
28328 * config/arm/arm.md (store_minmaxsi): Use only when
28329 optimize_insn_for_size_p.
28330
28331 2013-04-29 Christian Bruel <christian.bruel@st.com>
28332
28333 PR target/57108
28334 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28335
28336 2013-04-29 Richard Biener <rguenther@suse.de>
28337
28338 PR middle-end/57089
28339 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28340 loop tree make sure to schedule a fixup for the child as well.
28341 (expand_omp_for_generic): Properly add loops.
28342 (expand_omp_for_static_nochunk): Likewise.
28343 (expand_omp_for_static_chunk): Likewise.
28344 (expand_omp_for): For the degenerate case fixup loops.
28345 (expand_omp_sections): Fix default bb placement in loops.
28346 (expand_omp_atomic_pipeline): Properly add loops.
28347
28348 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28349
28350 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28351
28352 2013-04-29 Tom de Vries <tom@codesourcery.com>
28353
28354 * tree-ssa-tail-merge.c: Update header comment.
28355
28356 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28357
28358 * config/aarch64/arm_neon.h
28359 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28360 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28361 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28362 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28363 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28364 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28365 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28366 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28367
28368 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28369
28370 * config/aarch64/aarch64-simd.md
28371 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28372 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28373 fix_trunc, fixuns_trunc.
28374 (ftrunc<VDQF:mode>2): New.
28375 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28376 (fix_trunc_optab): New.
28377
28378 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28379
28380 * config/aarch64/aarch64-builtins.c
28381 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28382 iceilf, lround, iroundf.
28383
28384 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28385
28386 PR target/54349
28387 * config/i386/i386.h (enum ix86_tune_indices)
28388 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28389 New, split from X86_TUNE_INTER_UNIT_MOVES.
28390 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28391 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28392 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28393 (TARGET_INTER_UNIT_MOVES): Remove.
28394 * config/i386/i386.c (initial_ix86_tune_features): Update.
28395 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28396 (ix86_expand_convert_uns_didf_sse): Use
28397 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28398 (ix86_expand_vector_init_one_nonzero): Ditto.
28399 (ix86_expand_vector_init_interleave): Ditto.
28400 (inline_secondary_memory_needed): Return true for moves from SSE class
28401 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28402 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28403 * config/i386/constraints.md (Yi, Ym): Depend on
28404 TARGET_INTER_UNIT_MOVES_TO_VEC.
28405 (Yj, Yn): New constraints.
28406 * config/i386/i386.md (*movdi_internal): Change constraints of
28407 operand 1 from Yi to Yj and from Ym to Yn.
28408 (*movsi_internal): Ditto.
28409 (*movdf_internal): Ditto.
28410 (*movsf_internal): Ditto.
28411 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28412 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28413 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28414 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28415 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28416 * config/i386/sse.md (movdi_to_sse): Ditto.
28417 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28418 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28419 TARGET_INTER_UNIT_MOVES.
28420 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28421 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28422 instead of TARGET_INTER_UNIT_MOVES.
28423 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28424 operand 1 from Yi to Yj and from Ym to Yn.
28425
28426 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28427
28428 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28429 (float_truncate_hi_): Likewise.
28430 (float_extend_lo_): Likewise.
28431 (float_truncate_lo_): Likewise.
28432 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28433 (aarch64_float_extend_lo_v2df): Likewise.
28434 (vec_unpacks_hi_v4sf): Likewise.
28435 (aarch64_float_truncate_lo_v2sf): Likewise.
28436 (aarch64_float_truncate_hi_v4sf): Likewise.
28437 (vec_pack_trunc_v2df): Likewise.
28438 (vec_pack_trunc_df): Likewise.
28439
28440 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28441
28442 * config/aarch64/aarch64-builtins.c
28443 (aarch64_fold_builtin): Fold float conversions.
28444 * config/aarch64/aarch64-simd-builtins.def
28445 (floatv2si, floatv4si, floatv2di): New.
28446 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28447 * config/aarch64/aarch64-simd.md
28448 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28449 * config/aarch64/iterators.md (FLOATUORS): New.
28450 (optab): Add float, floatuns.
28451 (su_optab): Likewise.
28452
28453 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28454
28455 * config/aarch64/aarch64-builtins.c
28456 (aarch64_builtin_vectorized_function): Use new names for
28457 fcvt builtins.
28458 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28459 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28460 (fcvtzu): Split as...
28461 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28462 (fcvtas): Split as...
28463 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28464 (fcvtau): Split as...
28465 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28466 (fcvtps): Split as...
28467 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28468 (fcvtpu): Split as...
28469 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28470 (fcvtms): Split as...
28471 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28472 (fcvtmu): Split as...
28473 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28474 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28475 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28476 (lfrintnusf, lfrintnudf): Likewise.
28477 * config/aarch64/aarch64-simd.md
28478 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28479 define_insn.
28480 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28481 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28482 (fcvt_pattern): Likewise.
28483
28484 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28485
28486 * config/aarch64/aarch64-simd.md
28487 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28488 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28489
28490 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28491
28492 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28493 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28494 (vrnd<a,m,n,p>_f32): Implement using builtins.
28495 (vrnd<i,x><q>_f<32, 64>): New.
28496
28497 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28498
28499 * config/aarch64/aarch64-builtins.c
28500 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28501 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28502 (frintz): Rename to...
28503 (btrunc): ...this.
28504 (frintp): Rename to...
28505 (ceil): ...this.
28506 (frintm): Rename to...
28507 (floor): ...this.
28508 (frinti): Rename to...
28509 (nearbyint): ...this.
28510 (frintx): Rename to...
28511 (rint): ...this.
28512 (frinta): Rename to...
28513 (round): ...this.
28514 * config/aarch64/aarch64-simd.md
28515 (aarch64_frint<frint_suffix><mode>): Delete.
28516 (<frint_pattern><mode>2): Convert to insn.
28517 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28518 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28519 (frint_pattern): Likewise.
28520 (frint_suffix): Likewise.
28521
28522 2013-04-29 Richard Biener <rguenther@suse.de>
28523
28524 PR tree-optimization/57081
28525 * loop-init.c: Include tree-flow.h.
28526 (loop_optimizer_finalize): Free number of iteration estimates.
28527 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28528
28529 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28530
28531 PR tree-optimization/57083
28532 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28533 non-singleton shift count range, zero extend low_bound for uns case.
28534
28535 * config/i386/predicates.md (general_vector_operand): New predicate.
28536 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28537 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28538 if they aren't nonimmediate operands. If their original values
28539 satisfy const_vector_equal_evenodd_p, don't shift them.
28540 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28541 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28542 if not nonimmediate_operand.
28543 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28544 instead of register_operand.
28545 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28546
28547 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28548
28549 * stor-layout.c (finalize_size_functions): Allocate a structure and
28550 reset cfun before dumping the functions.
28551
28552 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28553
28554 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28555
28556 PR target/56866
28557 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28558 use xop_pmacsdqh if uns_p.
28559 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28560 the immediate rotate count.
28561
28562 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28563
28564 * rtl.h (struct rtx_def): Add comment for field jump.
28565 (LRA_SUBREG_P): New macro.
28566 * recog.c (register_operand): Check LRA_SUBREG_P.
28567 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28568 stack frame.
28569 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28570 (lra_final_code_change): Skip subreg change for operators.
28571 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28572 if there are no operand changes.
28573 * lra-constraints.c (curr_insn_set): New.
28574 (match_reload): Set LRA_SUBREG_P.
28575 (emit_spill_move): Ditto.
28576 (check_and_process_move): Use curr_insn_set. Process only single
28577 set insns. Don't initialize sec_mem_p and change_p.
28578 (simplify_operand_subreg): Use LRA_SUBREG_P.
28579 (reg_in_class_p): New function.
28580 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28581 of #ifdef. Add code to remove cycling.
28582 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28583 non-null disp. Reload inner instead of disp when base and index
28584 are null. Try to put lo_sum into register.
28585 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28586 (check_and_process_move): Move code for move cost check to
28587 simple_move_p. Remove equiv_substitution.
28588 (simple_move_p): New function.
28589 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28590 curr_insn_set. Call check_and_process_move only for single set
28591 insns. Use the new function. Move call of check_and_process_move
28592 after operand equiv substitution and address process.
28593
28594 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28595
28596 PR go/57045
28597 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28598 with nonlocal goto receivers or returns twice calls, ignore
28599 unininitialized values from abnormal edges to nl goto receiver
28600 or returns twice call.
28601
28602 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28603
28604 PR tree-optimization/57051
28605 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28606 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28607 bitsize.
28608
28609 2013-04-26 Richard Biener <rguenther@suse.de>
28610
28611 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28612 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28613 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28614 (fixup_loop_arrays_after_move): New function.
28615 (move_sese_region_to_fn): Properly outline the loop tree parts
28616 of the SESE region.
28617
28618 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28619
28620 * config/i386/i386.md (type, unit): Fix long lines.
28621
28622 2013-04-26 Richard Biener <rguenther@suse.de>
28623
28624 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28625 (lto-streamer-out.o): Likewise.
28626 * cfgloop.c (init_loops_structure): Export, add struct function
28627 argument and adjust.
28628 (flow_loops_find): Adjust.
28629 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28630 (init_loops_structure): Declare.
28631 * lto-streamer-in.c: Include cfgloop.h.
28632 (input_cfg): Input the loop tree.
28633 * lto-streamer-out.c: Include cfgloop.h.
28634 (output_cfg): Output the loop tree.
28635 (output_struct_function_base): Do not drop PROP_loops.
28636
28637 2013-03-26 Richard Biener <rguenther@suse.de>
28638
28639 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28640 (pass_build_cfg): Provide PROP_loops.
28641 (move_sese_region_to_fn): Remove loops that are outlined into fn
28642 for now.
28643 * tree-inline.c: Include cfgloop.h.
28644 (initialize_cfun): Do not drop PROP_loops.
28645 (copy_loops): New function.
28646 (copy_cfg_body): Copy loop structure.
28647 (tree_function_versioning): Initialize destination loop tree.
28648 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28649 (pass_parallelize_loops): Do IL verification.
28650 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28651 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28652 the CFG make sure we fixup loops as well.
28653 * tree-ssa-tail-merge.c: Include cfgloop.h.
28654 (replace_block_by): When merging loop latches mark loops for fixup.
28655 * lto-streamer-out.c (output_struct_function_base): Drop
28656 PROP_loops for now.
28657 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28658 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28659 * ipa-split.c: Include cfgloop.h.
28660 (split_function): Add the new return block to the loop tree root.
28661 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28662 whether we have removed the forwarder block.
28663 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28664 * cfgloop.h (place_new_loop): Declare.
28665 * cfgloopmanip.c (place_new_loop): Export.
28666 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28667 (tree-switch-conversion.o): Likewise.
28668 (tree-complex.o): Likewise.
28669 (tree-inline.o): Likewise.
28670 (tree-ssa-tailmerge.o): Likewise.
28671 (ipa-split.o): Likewise.
28672 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28673 (tree-ssa-copy.o): Likewise.
28674 * tree-switch-conversion.c: Include cfgloop.h
28675 (process_switch): If we emit a bit-test cascade, schedule loops
28676 for fixup.
28677 * tree-complex.c: Include cfgloop.h.
28678 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28679 * asan.c: Include cfgloop.h.
28680 (create_cond_insert_point): Properly add new basic-blocks to
28681 loops, schedule loop fixup.
28682 * cfgloop.c (verify_loop_structure): Check that looks are not
28683 marked for fixup.
28684 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28685 to loops.
28686 (expand_omp_for_generic): Likewise.
28687 (expand_omp_sections): Likewise.
28688 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28689 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28690 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28691 is initialized, not when loops are present.
28692 * tree-parloops.c (parallelize_loops): Remove checking here.
28693 * passes.c (init_optimization_passes): Schedule a copy-propagation
28694 pass before complete unrolling of inner loops.
28695
28696 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28697
28698 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28699 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28700 (colorize_init): Add argument to _WIN32 version.
28701 * toplev.c: Include diagnostic-color.h.
28702 (process_options): Default to -fdiagnostics-color=auto if
28703 GCC_COLORS env var is in the environment.
28704 * common.opt (fdiagnostics-color=): Add Var and Init.
28705 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28706 env var is in the environment, the default is auto rather than never.
28707
28708 * diagnostic.h (file_name_as_prefix): Add context argument.
28709 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28710 the string as locus.
28711 * langhooks.c (lhd_print_error_function): Adjust caller.
28712
28713 2013-04-25 Lawrence Crowl <crowl@google.com>
28714
28715 * var-tracking.c (shared_hash_def::htab):
28716 Change type to hash_table. Update dependent calls and types.
28717
28718 2013-04-25 Lawrence Crowl <crowl@google.com>
28719
28720 * Makefile.in: Update as needed below.
28721
28722 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28723 Move declaration to after the type's method definitons.
28724
28725 * attribs.c (htab_t scoped_attributes::attribute_hash):
28726 Change type to hash_table. Update dependent calls and types.
28727
28728 * bitmap.c (htab_t bitmap_desc_hash):
28729 Change type to hash_table. Update dependent calls and types.
28730
28731 * cselib.c (htab_t cselib_hash_table):
28732 Change type to hash_table. Update dependent calls and types.
28733
28734 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28735 (hash_string_slot_node): Move implementation into lto-streamer.h
28736 struct string_slot_hasher.
28737 (eq_string_slot_node): Likewise.
28738
28739 * data-streamer-out.c: Update output_block::string_hash_table
28740 dependent calls and types.
28741
28742 * dwarf2cfi.c (htab_t trace_index):
28743 Change type to hash_table. Update dependent calls and types.
28744
28745 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28746 Change type to hash_table. Update dependent calls and types.
28747 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28748 (htab_t optimize_external_refs::map): Likewise.
28749 (htab_t output_comp_unit::extern_map): Likewise.
28750 (htab_t output_comdat_type_unit::extern_map): Likewise.
28751 (htab_t output_macinfo::macinfo_htab): Likewise.
28752 (htab_t optimize_location_lists::htab): Likewise.
28753 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28754
28755 * except.c (htab_t ehspec_hash_type):
28756 Change type to hash_table. Update dependent calls and types.
28757 (assign_filter_values::ttypes): Likewise.
28758 (assign_filter_values::ehspec): Likewise.
28759 (sjlj_assign_call_site_values::ar_hash): Likewise.
28760 (convert_to_eh_region_ranges::ar_hash): Likewise.
28761
28762 * gcse.c (htab_t pre_ldst_table):
28763 Change type to hash_table. Update dependent calls and types.
28764
28765 * ggc-common.c (htab_t saving_htab):
28766 Change type to hash_table. Update dependent calls and types.
28767 (htab_t loc_hash): Likewise.
28768 (htab_t ptr_hash): Likewise.
28769 (call_count): Rename ggc_call_count.
28770 (call_alloc): Rename ggc_call_alloc.
28771 (loc_descriptor): Rename make_loc_descriptor.
28772 (add_statistics): Rename ggc_add_statistics.
28773
28774 * ggc-common.c (saving_htab):
28775 Change type to hash_table. Update dependent calls and types.
28776
28777 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28778 (push_gimplify_context): Likewise.
28779 (pop_gimplify_context): Likewise.
28780 (struct gimple_temp_hash_elt): Added.
28781 (struct gimplify_hasher): Likewise.
28782 (struct gimplify_ctx.temp_htab):
28783 Change type to hash_table. Update dependent calls and types.
28784
28785 * gimple-fold.c: Include gimplify-ctx.h.
28786
28787 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28788 Change type to hash_table. Update dependent calls and types.
28789 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28790 avoid potential global name collision.
28791
28792 * gimplify.c: Include gimplify-ctx.h.
28793 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28794 (htab_t gimplify_ctx::temp_htab):
28795 Update dependent calls and types for new type hash_table.
28796 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28797 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28798
28799 * gimplify-ctx.h: New.
28800 (struct gimple_temp_hash_elt): Move from gimplify.c.
28801 (class gimplify_hasher): New.
28802 (struct gimplify_ctx): Move from gimple.h.
28803 (htab_t gimplify_ctx::temp_htab):
28804 Change type to hash_table. Update dependent calls and types.
28805
28806 * graphite-clast-to-gimple.c: Include graphite-htab.h.
28807 (htab_t ivs_params::newivs_index):
28808 Change type to hash_table. Update dependent calls and types.
28809 (htab_t ivs_params::params_index): Likewise.
28810 (htab_t print_generated_program::params_index): Likewise.
28811 (htab_t gloog::newivs_index): Likewise.
28812 (htab_t gloog::params_index): Likewise.
28813
28814 * graphite.c: Include graphite-htab.h.
28815 4htab_t graphite_transform_loops::bb_pbb_mapping):
28816 Change type to hash_table. Update dependent calls and types.
28817
28818 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28819 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28820 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28821
28822 * graphite-dependences.c: Include graphite-htab.h.
28823 (loop_is_parallel_p): Change hash table type of parameter.
28824
28825 * graphite-htab.h: New.
28826 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28827 (extern find_pbb_via_hash): Move from graphite-poly.h.
28828 (extern loop_is_parallel_p): Move from graphite-poly.h.
28829 (extern get_loop_body_pbbs): Move from graphite-poly.h.
28830
28831 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28832 (extern loop_is_parallel_p): Move to graphite-htab.h.
28833 (extern get_loop_body_pbbs): Move to graphite-htab.h.
28834
28835 * haifa-sched.c (htab_t delay_htab):
28836 Change type to hash_table. Update dependent calls and types.
28837 (htab_t delay_htab_i2): Likewise.
28838
28839 * ira-color.c (htab_t allocno_hard_regs_htab):
28840 Change type to hash_table. Update dependent calls and types.
28841
28842 * ira-costs.c (htab_t cost_classes_htab):
28843 Change type to hash_table. Update dependent calls and types.
28844
28845 * loop-invariant.c (htab_t merge_identical_invariants::eq):
28846 Change type to hash_table. Update dependent calls and types.
28847
28848 * loop-iv.c (htab_t bivs):
28849 Change type to hash_table. Update dependent calls and types.
28850
28851 * loop-unroll.c (htab_t opt_info::insns_to_split):
28852 Change type to hash_table. Update dependent calls and types.
28853 (htab_t opt_info::insns_with_var_to_expand): Likewise.
28854
28855 * lto-streamer.h (struct string_slot): Move from data-streamer.h
28856 (struct string_slot_hasher): New.
28857 (htab_t output_block::string_hash_table):
28858 Change type to hash_table. Update dependent calls and types.
28859
28860 * lto-streamer-in.c (freeing_string_slot_hasher): New.
28861 (htab_t file_name_hash_table):
28862 Change type to hash_table. Update dependent calls and types.
28863
28864 * lto-streamer-out.c: Update output_block::string_hash_table dependent
28865 calls and types.
28866
28867 * lto-streamer.c (htab_t tree_htab):
28868 Change type to hash_table. Update dependent calls and types.
28869
28870 * omp-low.c: Include gimplify-ctx.h.
28871
28872 * passes.c (htab_t name_to_pass_map):
28873 Change type to hash_table. Update dependent calls and types.
28874 (pass_traverse): Rename to passes_pass_traverse.
28875
28876 * plugin.c (htab_t event_tab):
28877 Change type to hash_table. Update dependent calls and types.
28878
28879 * postreload-gcse.c (htab_t expr_table):
28880 Change type to hash_table. Update dependent calls and types.
28881 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28882
28883 * sese.c (debug_rename_map_1): Make extern.
28884 (htab_t copy_bb_and_scalar_dependences::rename_map):
28885 Change type to hash_table. Update dependent calls and types.
28886
28887 * sese.h (extern debug_rename_map): Move to .c file.
28888
28889 * store-motion.c (htab_t store_motion_mems_table):
28890 Change type to hash_table. Update dependent calls and types.
28891
28892 * trans-mem.c (htab_t tm_new_mem_hash):
28893 Change type to hash_table. Update dependent calls and types.
28894
28895 * tree-browser.c (htab_t TB_up_ht):
28896 Change type to hash_table. Update dependent calls and types.
28897
28898 * tree-cfg.c (htab_t discriminator_per_locus):
28899 Change type to hash_table. Update dependent calls and types.
28900
28901 * tree-complex.c: Include tree-hasher.h
28902 (htab_t complex_variable_components):
28903 Change type to hash_table. Update dependent calls and types.
28904
28905 * tree-eh.c (htab_t finally_tree):
28906 Change type to hash_table. Update dependent calls and types.
28907
28908 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28909 struct int_tree_hasher.
28910 (extern int_tree_map_eq): Likewise.
28911 (uid_decl_map_hash): Removed.
28912 (extern decl_tree_map_eq): Likewise.
28913
28914 * tree-hasher.h: New.
28915 (struct int_tree_hasher): New.
28916 (typedef int_tree_htab_type): New.
28917
28918 * tree-inline.c: Include gimplify-ctx.h.
28919
28920 * tree-mudflap.c: Include gimplify-ctx.h.
28921
28922 * tree-parloops.c: Include tree-hasher.h.
28923 (htab_t eliminate_local_variables_stmt::decl_address):
28924 Change type to hash_table. Update dependent calls and types.
28925 (htab_t separate_decls_in_region::decl_copies): Likewise.
28926
28927 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28928 Change type to hash_table. Update dependent calls and types.
28929
28930 * tree-sra.c (candidates):
28931 Change type to hash_table. Update dependent calls and types.
28932
28933 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28934 in tree-flow.h.
28935 (int_tree_map_hash): Likewise.
28936
28937 * tree-ssa-dom.c (htab_t avail_exprs):
28938 Change type to hash_table. Update dependent calls and types.
28939
28940 * tree-ssa-live.c (var_map_base_init::tree_to_index):
28941 Change type to hash_table. Update dependent calls and types.
28942
28943 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28944 Change type to hash_table. Update dependent calls and types.
28945
28946 * tree-ssa-phiopt.c (seen_ssa_names):
28947 Change type to hash_table. Update dependent calls and types.
28948
28949 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28950 Change type to hash_table. Update dependent calls and types.
28951
28952 * tree-ssa-uncprop.c (equiv):
28953 Change type to hash_table. Update dependent calls and types.
28954
28955 2013-04-25 Jakub Jelinek <jakub@redhat.com>
28956
28957 PR rtl-optimization/57003
28958 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28959 call note_stores with kill_clobbered_value callback again after
28960 killing regs_invalidated_by_call.
28961
28962 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28963
28964 * config/aarch64/aarch64-simd.md
28965 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28966 (aarch64_simd_bsl<mode>): Likewise.
28967 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28968
28969 2013-04-25 Marek Polacek <polacek@redhat.com>
28970
28971 PR tree-optimization/57066
28972 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28973
28974 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28975
28976 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28977
28978 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28979
28980 * config/aarch64/aarch64-builtins.c
28981 (aarch64_fold_builtin): New.
28982 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28983 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28984 * config/aarch64/aarch64-simd-builtins.def (abs): New.
28985 * config/aarch64/arm_neon.h
28986 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28987
28988 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28989 Tejas Belagod <tejas.belagod@arm.com>
28990
28991 * config/aarch64/aarch64-builtins.c
28992 (aarch64_gimple_fold_builtin): New.
28993 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28994 * config/aarch64/aarch64-simd-builtins.def (addv): New.
28995 * config/aarch64/aarch64-simd.md (addpv4sf): New.
28996 (addvv4sf): Update.
28997 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28998
28999 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29000
29001 * config/aarch64/aarch64.md
29002 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29003
29004 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29005
29006 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29007 (*ngcsi_uxtw): New pattern.
29008
29009 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29010 Julian Brown <julian@codesourcery.com>
29011
29012 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29013 (TB_DREG): Add T_V4HF.
29014 (v4hf_UP): New macro.
29015 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29016 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29017 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29018 built-ins.
29019 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29020 (arm_vector_mode_supported_p): Handle V4HF.
29021 (arm_mangle_map): Handle V4HFmode.
29022 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29023 * config/arm/arm_neon_builtins.def: Add entries for
29024 vcvtv4hfv4sf, vcvtv4sfv4hf.
29025 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29026 (neon_vcvtv4hfv4sf): Likewise.
29027 * config/arm/neon-gen.ml: Handle half-precision floating point
29028 features.
29029 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29030 * config/arm/arm_neon.h: Regenerate.
29031 * config/arm/neon.ml (type elts): Add F16.
29032 (type vectype): Add T_float16x4, T_floatHF.
29033 (type vecmode): Add V4HF.
29034 (type features): Add Requires_FP_bit feature.
29035 (elt_width): Handle F16.
29036 (elt_class): Likewise.
29037 (elt_of_class_width): Likewise.
29038 (mode_of_elt): Refactor.
29039 (type_for_elt): Handle F16, fix error messages.
29040 (vectype_size): Handle T_float16x4.
29041 (vcvt_sh): New function.
29042 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29043 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29044 (string_of_mode): Handle V4HF.
29045 * doc/arm-neon-intrinsics.texi: Regenerate.
29046
29047 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29048
29049 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29050 format specifier in 'X' case.
29051
29052 2013-04-25 Alan Modra <amodra@gmail.com>
29053
29054 PR target/57052
29055 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29056 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29057 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29058 Repeat for many other rotate/shift and mask patterns using subregs.
29059 Name lshiftrt insns.
29060 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29061 on WORDS_BIG_ENDIAN.
29062
29063 2013-04-25 Alan Modra <amodra@gmail.com>
29064
29065 * config.gcc: Support little-endian powerpc-linux targets.
29066 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29067 (LINK_OS_LINUX_SPEC): Define.
29068 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29069 Preserve MASK_LITTLE_ENDIAN.
29070 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29071 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29072 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29073 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29074 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29075 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29076 Correct fp word order for little-endian. Don't shift toc entries
29077 smaller than a word for little-endian.
29078 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29079 (bswapdi2 splits): Correct low-part subreg for little-endian.
29080 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29081 low/high where such is correct only for be.
29082 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29083 little-endian for -mcall-aixdesc.
29084
29085 2013-04-25 Alan Modra <amodra@gmail.com>
29086
29087 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29088 replace_equiv_address_nv.
29089
29090 2013-04-25 Alan Modra <amodra@gmail.com>
29091
29092 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29093
29094 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29095
29096 Revert:
29097 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29098 * rtl.h (struct rtx_def): ...
29099
29100 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29101
29102 PR rtl-optimizations/57046
29103 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29104 for multi-reg splits.
29105
29106 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29107
29108 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29109
29110 2013-04-24 Sterling Augustine <saugustine@google.com>
29111
29112 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29113 (comp_dir_string, debug_str_dwo_section): New.
29114 (DEBUG_STR_DWO_SECTION): Rename to ...
29115 (DEBUG_DWO_STR_SECTION): ... this.
29116 (DEBUG_NORM_STR_SECTION): Delete.
29117 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29118 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29119 (find_AT_string): Move most logic to ...
29120 (find_AT_string_in_table): ... here. New.
29121 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29122 add_skeleton_AT_string. Delete logic.
29123 (output_skeleton_debug_sections): Remove call to
29124 add_top_level_skeleton_die_attrs.
29125 (add_comp_dir_attribute): Move logic to comp_dir_string.
29126 (dwarf2out_init): Initialize debug_str_dwo_section.
29127 (output_indirect_string): Call find_string_form.
29128 (output_indirect_strings): Rewrite.
29129 (prune_unused_types): Empty skeleton_debug_str_hash.
29130 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29131 (dwarf2out_finish): Call output_indirect_strings.
29132
29133 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29134
29135 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29136
29137 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29138
29139 * rtl.h (struct rtx_def): Add comment for field jump.
29140 (LRA_SUBREG_P): New macro.
29141 * recog.c (register_operand): Check LRA_SUBREG_P.
29142 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29143 stack frame.
29144 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29145 (lra_final_code_change): Skip subreg change for operators.
29146 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29147 if there are no operand changes.
29148 * lra-constraints.c (curr_insn_set): New.
29149 (match_reload): Set LRA_SUBREG_P.
29150 (emit_spill_move): Ditto.
29151 (check_and_process_move): Use curr_insn_set. Process only single
29152 set insns. Don't initialize sec_mem_p and change_p.
29153 (simplify_operand_subreg): Use LRA_SUBREG_P.
29154 (reg_in_class_p): New function.
29155 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29156 of #ifdef. Add code to remove cycling.
29157 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29158 non-null disp. Reload inner instead of disp when base and index
29159 are null. Try to put lo_sum into register.
29160 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29161 (check_and_process_move): Move code for move cost check to
29162 simple_move_p. Remove equiv_substitution.
29163 (simple_move_p): New function.
29164 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29165 curr_insn_set. Call check_and_process_move only for single set
29166 insns. Use the new function. Move call of check_and_process_move
29167 after operand equiv substitution and address process.
29168
29169 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29170
29171 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29172 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29173 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29174
29175 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29176
29177 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29178
29179 2013-04-24 Marek Polacek <polacek@redhat.com>
29180
29181 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29182 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29183 (select_loops_exit_conditions): Likewise.
29184 (number_of_iterations_for_all_loops): Likewise.
29185 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29186 (scev_analysis): Likewise.
29187
29188 2013-04-02 Catherine Moore <clm@codesourcery.com>
29189 Chao-ying Fu <fu@mips.com>
29190
29191 * config/mips/micromips.md (jraddiusp): New pattern.
29192 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29193 instruction if possible.
29194
29195 2013-04-24 Alan Modra <amodra@gmail.com>
29196
29197 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29198
29199 2013-04-24 Julian Brown <julian@codesourcery.com>
29200 Chung-Lin Tang <cltang@codesourcery.com>
29201
29202 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29203 dependency behavior in enumeration type DIE generation. Add TODO note
29204 to comments about future DW_FORM_sdata/udata re-work of related code.
29205
29206 2013-04-23 Lawrence Crowl <crowl@google.com>
29207
29208 * Makefile.in: Update as needed below.
29209
29210 * hash-table.h (class hash_table):
29211 Correct many methods with parameter types compare_type to the correct
29212 value_type. (Correct code was unlikely to notice the change.)
29213 (hash_table::elements_with_deleted) New.
29214 (class hashtable::iterator): New.
29215 (hashtable::begin()): New.
29216 (hashtable::end()): New.
29217 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29218
29219 * statistics.c (statistics_hashes):
29220 Change type to hash_table. Update dependent calls and types.
29221
29222 * tree-into-ssa.c (var_infos):
29223 Change type to hash_table. Update dependent calls and types.
29224
29225 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29226 Change type to hash_table. Update dependent calls and types.
29227
29228 * tree-ssa-loop-im.c (struct mem_ref.refs):
29229 Change type to hash_table. Update dependent calls and types.
29230
29231 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29232 Change type to hash_table. Update dependent calls and types.
29233
29234 * tree-ssa-sccvn.c (vn_tables_s::nary):
29235 Change type to hash_table. Update dependent calls and types.
29236 (vn_tables_s::phis): Likewise.
29237 (vn_tables_s::references): Likewise.
29238
29239 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29240 (vn_reference_eq): Update parameter and return types.
29241
29242 * tree-ssa-structalias.c (pointer_equiv_class_table):
29243 Change type to hash_table. Update dependent calls and types.
29244 (location_equiv_class_table): Likewise.
29245
29246 * tree-vect-data-refs.c: Consequential changes for making
29247 peeling a hash_table.
29248
29249 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29250 (destroy_loop_vec_info): Dependent hash_table update.
29251
29252 * tree-vectorizer.h (peeling_htab):
29253 Change type to hash_table. Update dependent calls and types.
29254
29255 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29256
29257 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29258 to check the register content is equal or not.
29259 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29260 to assign register content record.
29261 * lra-eliminations.c (update_reg_eliminate): Use
29262 lra_update_reg_val_offset to update register content offset.
29263 * lra-int.h (struct lra_reg): Add offset member.
29264 (lra_reg_val_equal_p): New static inline function.
29265 (lra_update_reg_val_offset): New static inline function.
29266 (lra_assign_reg_val): New static inline function.
29267 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29268 to assign register content record.
29269 (initialize_lra_reg_info_element): Initial offset to zero.
29270
29271 2013-04-23 Catherine Moore <clm@codesourcery.com>
29272
29273 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29274 operands. Record compression.
29275
29276 2013-04-23 Xinliang David Li <davidxl@google.com>
29277
29278 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29279
29280 2013-04-23 Richard Biener <rguenther@suse.de>
29281
29282 PR middle-end/57036
29283 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29284 parameter, only add abnormal goto edges from the copied body
29285 if the call could perform abnormal gotos.
29286 (copy_cfg_body): Adjust.
29287
29288 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29289
29290 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29291
29292 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29293
29294 * coretypes.h (gimple_stmt_iterator): Add struct to make
29295 compatible with C.
29296
29297 2013-04-23 Richard Biener <rguenther@suse.de>
29298
29299 PR tree-optimization/57026
29300 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29301 from SSA names occuring in abnormal PHI nodes.
29302
29303 2013-04-22 Andi Kleen <ak@linux.intel.com>
29304
29305 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29306
29307 2013-04-22 Andi Kleen <ak@linux.intel.com>
29308
29309 * lto/lto.c (print_lto_report_1): Declare early.
29310 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29311
29312 2013-04-22 Andi Kleen <ak@linux.intel.com>
29313
29314 * common.opt (-flto-report-wpa): Add.
29315 * doc/invoke.texi (-flto-report-wpa): Add.
29316 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29317 (lto_main): dito.
29318
29319 2013-04-22 Xinliang David Li <davidxl@google.com>
29320
29321 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29322 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29323 * Makefile.in: New dependency
29324
29325 David Daney <ddaney.cavm@gmail.com>
29326
29327 * configure.ac (gcc_cv_as_micromips_support): Use the
29328 --fatal-warnings option.
29329 * configure: Regenerate.
29330
29331 2013-04-22 Marek Polacek <polacek@redhat.com>
29332
29333 PR sanitizer/56990
29334 * tsan.c (instrument_expr): Don't instrument expression
29335 in case its size is zero.
29336
29337 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29338
29339 PR target/57032
29340 Revert:
29341 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29342
29343 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29344
29345 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29346
29347 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29348 (gimple_stmt_iterator): New typedef.
29349 * gimple.h (gimple_stmt_iterator): Rename to...
29350 (gimple_stmt_iterator_d): ... This.
29351 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29352 trees be valid for GIMPLE and GENERIC.
29353 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29354 * gimple-fold.c (gimple_fold_call): Call target hook
29355 gimple_fold_builtin.
29356 * hooks.c (hook_bool_gsiptr_false): New.
29357 * hooks.h (hook_bool_gsiptr_false): New.
29358 * target.def (fold_stmt): New.
29359 * doc/tm.texi: Regenerate.
29360
29361 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29362
29363 PR target/57018
29364 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29365 a set sp if no stack realignment.
29366
29367 2013-04-22 Nick Clifton <nickc@redhat.com>
29368
29369 * config.gcc (tilegx-linux): Extend extra_objs rather than
29370 overwriting it.
29371 (tilepro-linux): Likewise.
29372
29373 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29374
29375 * config/aarch64/aarch64-builtins.c
29376 (CF): Remove.
29377 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29378 (VAR<1-12>): Add MAP parameter.
29379 (BUILTIN_*): Likewise.
29380 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29381 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29382 (aarch64_ushl_n<mode>): Likewise.
29383 (aarch64_sshr_n<mode>): Likewise.
29384 (aarch64_ushr_n<mode>): Likewise.
29385 (aarch64_<maxmin><mode>): Likewise.
29386 (aarch64_sqrt<mode>): Likewise.
29387 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29388 (vshr<q>_n_*): Likewise.
29389
29390 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29391
29392 * config/aarch64/aarch64-builtins.c
29393 (aarch64_simd_builtin_type_mode): Handle SF types.
29394 (sf_UP): Define.
29395 (BUILTIN_GPF): Define.
29396 (aarch64_init_simd_builtins): Handle SF types.
29397 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29398 (frecps): Likewise.
29399 (frecpx): Likewise.
29400 * config/aarch64/aarch64-simd.md
29401 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29402 (aarch64_frecpe<mode>): New.
29403 (aarch64_frecps<mode>): Likewise.
29404 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29405 (v8type): Add frecp<esx>.
29406 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29407 (aarch64_frecps<mode>): Likewise.
29408 * config/aarch64/iterators.md (FRECP): New.
29409 (frecp_suffix): Likewise.
29410 * config/aarch64/arm_neon.h
29411 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29412
29413 2013-04-22 Christian Bruel <christian.bruel@st.com>
29414
29415 PR target/56995
29416 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29417 (REG_CLASS_NAMES): Idem.
29418 (REG_CLASS_CONTENTS): Idem.
29419 (REGCLASS_HAS_FP_REG): Idem.
29420 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29421 (sh_conditional_register_usage): Idem.
29422
29423 2013-04-21 Jeff Law <law@redhat.com>
29424
29425 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29426 (ssa_forward_propagate_and_combine): Use it.
29427
29428 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29429
29430 * lra.c: Update the flow chart diagram.
29431
29432 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29433
29434 PR rtl-optimization/56847
29435 * lra-constraints.c (process_alt_operands): Discourage alternative
29436 with non-matche doffsettable memory constraint fro memory with
29437 known offset.
29438
29439 2013-04-19 Richard Biener <rguenther@suse.de>
29440
29441 PR tree-optimization/56982
29442 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29443 function.
29444 * gimplify.c (gimplify_call_expr): Notice special calls.
29445 (gimplify_modify_expr): Likewise.
29446 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29447 abnormal control flow receivers.
29448 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29449 in the same way as cfun->has_nonlocal_labels.
29450 (gimple_purge_dead_abnormal_call_edges): Likewise.
29451 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29452 receivers start a basic-block.
29453
29454 2013-04-19 Richard Biener <rguenther@suse.de>
29455
29456 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29457 member ...
29458 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29459 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29460 (SLP_TREE_LOAD_PERMUTATION): Add.
29461 (vect_transform_slp_perm_load): Adjust prototype.
29462 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29463 (vect_free_slp_instance): Likewise.
29464 (vect_create_new_slp_node): Likewise.
29465 (vect_supported_slp_permutation_p): Remove.
29466 (vect_slp_rearrange_stmts): Adjust.
29467 (vect_supported_load_permutation_p): Likewise. Inline
29468 vect_supported_slp_permutation_p here.
29469 (vect_analyze_slp_instance): Compute load permutations per
29470 slp node instead of per instance.
29471 (vect_get_slp_defs): Adjust.
29472 (vect_transform_slp_perm_load): Likewise.
29473 (vect_schedule_slp_instance): Remove redundant code.
29474 (vect_schedule_slp): Remove hack for PR56270, add it ...
29475 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29476 CSE loads for SLP. Adjust.
29477
29478 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29479
29480 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29481 spelling in two comments.
29482
29483 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29484
29485 PR target/56797
29486 * config/arm/arm.c (load_multiple_sequence): Require SP
29487 as base register for loads if SP is in the register list.
29488
29489 2013-04-19 Martin Jambor <mjambor@suse.cz>
29490
29491 PR tree-optimization/56718
29492 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29493 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29494 and made public. Adjusted all callers.
29495 (ipa_intraprocedural_devirtualization): New function.
29496 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29497 (ipa_intraprocedural_devirtualization): Likewise.
29498 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29499
29500 2013-04-19 Richard Biener <rguenther@suse.de>
29501
29502 PR tree-optimization/57000
29503 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29504
29505 2013-04-19 Terry Guo <terry.guo@arm.com>
29506
29507 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29508 Replace with ...
29509 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29510 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29511 (cortex_m4_fmacs): Use new reservations.
29512 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29513
29514 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29515
29516 PR rtl-optimization/56999
29517 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29518 related code.
29519 (lra_coalesce): Remove split_origin_bitmap and related code.
29520 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29521 ranges if necessary.
29522
29523 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29524
29525 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29526 New array.
29527 (ix86_expand_call): Remove clobbered_registers array and use
29528 x86_64_ms_sysv_extra_clobbered_registers instead.
29529 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29530 Declare here.
29531 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29532 predicate.
29533 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29534 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29535 (*call_value_rex64_ms_sysv): Ditto.
29536
29537 2013-04-18 Cary Coutant <ccoutant@google.com>
29538
29539 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29540 parent instead of die_mark.
29541
29542 2013-04-18 Diego Novillo <dnovillo@google.com>
29543
29544 * gimple.c (create_gimple_tmp): New.
29545 (get_expr_type): New.
29546 (build_assign): New.
29547 (build_type_cast): New.
29548 * gimple.h (enum ssa_mode): Define.
29549 (gimple_seq_set_location): New.
29550 * asan.c (build_check_stmt): Change some gimple_build_* calls
29551 to use build_assign and build_type_cast.
29552
29553 2013-04-18 Richard Biener <rguenther@suse.de>
29554
29555 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29556 handle negative step. Remove redundant checks.
29557 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29558 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29559 for negative step and grouped loads fail to vectorize.
29560
29561 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29562
29563 * emit-rtl.c (reset_insn_used_flags): New function.
29564 (reset_all_used_flags): Use it.
29565 (verify_insn_sharing): New function.
29566 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29567
29568 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29569
29570 PR tree-optimization/56984
29571 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29572 and (x >> M) >= N don't register any assertion if N << M is the
29573 minimum value.
29574
29575 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29576
29577 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29578 do not delete_insn insns that have not yet been emitted, only
29579 unlink them with remove_insn.
29580 * df-scan.c (df_insn_delete): Revert r197492.
29581
29582 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29583
29584 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29585 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29586
29587 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29588
29589 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29590 define_insn_and_split.
29591 (and_scc,ior_scc,negscc): Likewise.
29592 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29593
29594 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29595
29596 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29597 can benefit from using a sequence of LDRD instructions in epilogue
29598 instead of a single LDM instruction.
29599
29600 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29601
29602 PR 45688
29603 * doc/extend.texi: Fix typo.
29604
29605 2013-04-17 Richard Biener <rguenther@suse.de>
29606
29607 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29608 (vect_build_slp_tree): ... here.
29609 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29610 match. Remove special-casing of mismatched complex loads.
29611 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29612 re-try the match with swapped commutative operands.
29613 (vect_supported_load_permutation_p): Remove special-casing of
29614 mismatched complex loads.
29615 (vect_analyze_slp_instance): Adjust.
29616
29617 2013-04-17 Richard Biener <rguenther@suse.de>
29618
29619 PR rtl-optimization/56921
29620 * cfgloop.h (struct loop): Add simple_loop_desc member.
29621 (struct niter_desc): Mark with GTY(()).
29622 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29623 * loop-iv.c (get_simple_loop_desc): Likewise.
29624 (free_simple_loop_desc): Likewise.
29625
29626 Revert
29627 2013-04-16 Richard Biener <rguenther@suse.de>
29628
29629 PR rtl-optimization/56921
29630 * loop-init.c (pass_rtl_move_loop_invariants): Add
29631 TODO_do_not_ggc_collect to todo_flags_finish.
29632 (pass_rtl_unswitch): Same.
29633 (pass_rtl_unroll_and_peel_loops): Same.
29634 (pass_rtl_doloop): Same.
29635
29636 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29637
29638 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29639 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29640 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29641 references.
29642 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29643 * tree-streamer.c (record_common_node): Adjust reference in comment.
29644
29645 2013-04-17 Terry Guo <terry.guo@arm.com>
29646
29647 * config/arm/cortex-m4.md: Add a new bypass.
29648
29649 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29650
29651 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29652 New pattern.
29653 (*subs_<optab><mode>_multp2): New pattern.
29654 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29655 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29656
29657 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29658
29659 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29660 (*subs_mul_imm_<mode>): New pattern.
29661
29662 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29663
29664 PR target/56948
29665 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29666 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29667 (vsx_movti_32bit): Change j->wa to O->wa.
29668
29669 2013-04-16 Richard Biener <rguenther@suse.de>
29670
29671 PR rtl-optimization/56921
29672 * loop-init.c (pass_rtl_move_loop_invariants): Add
29673 TODO_do_not_ggc_collect to todo_flags_finish.
29674 (pass_rtl_unswitch): Same.
29675 (pass_rtl_unroll_and_peel_loops): Same.
29676 (pass_rtl_doloop): Same.
29677
29678 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29679
29680 * config/arm/arm.c (emit_multi_reg_push): New declaration
29681 for an existing function.
29682 (arm_emit_strd_push): New function.
29683 (arm_expand_prologue): Used here.
29684 (arm_emit_ldrd_pop): New function.
29685 (arm_expand_epilogue): Used here.
29686 (arm_get_frame_offsets): Update condition.
29687 (arm_emit_multi_reg_pop): Add a special case for load of a single
29688 register with writeback.
29689
29690 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29691
29692 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29693 description.
29694
29695 2013-04-16 Richard Biener <rguenther@suse.de>
29696
29697 PR tree-optimization/56756
29698 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29699 (first_mem_ref_loc): New.
29700 (execute_sm): Place the load temporarily before a previous
29701 access instead of in the latch edge to ensure its SSA dependencies
29702 are defined at points dominating the load.
29703
29704 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29705
29706 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29707 correct fix by moving header and footer insn to the footer of
29708 the merged basic block. Clear BB_END of the merged-away block.
29709
29710 PR middle-end/43631
29711 * emit-rtl.c (make_note_raw): New function.
29712 (link_insn_into_chain): New static inline function.
29713 (add_insn): Use it.
29714 (add_insn_before, add_insn_after): Factor insn chain linking code...
29715 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29716 using link_insn_into_chain.
29717 (note_outside_basic_block_p): New helper function for emit_note_after
29718 and emit_note_before.
29719 (emit_note_after): Use nobb variant of add_insn_after if the note
29720 should not be contained in a basic block.
29721 (emit_note_before): Use nobb variant of add_insn_before if the note
29722 should not be contained in a basic block.
29723 (emit_note_copy): Use make_note_raw.
29724 (emit_note): Likewise.
29725 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29726 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29727 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29728 the moved barrier the tail of the basic block it follows.
29729 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29730
29731 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29732
29733 PR tree-optimization/56962
29734 * gimple-ssa-strength-reduction.c (record_increment): Only set
29735 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29736 either rhs1 or rhs2 is equal to c->base_expr.
29737
29738 2013-04-15 Richard Biener <rguenther@suse.de>
29739
29740 PR tree-optimization/56933
29741 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29742 member.
29743 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29744 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29745 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29746 dependence check ...
29747 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29748 ... here.
29749 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29750 GROUP_READ_WRITE_DEPENDENCE.
29751
29752 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29753
29754 * emit-rtl.c (reset_all_used_flags): New function.
29755 (verify_rtl_sharing): Call reset_all_used_flags before and after
29756 performing the checks.
29757
29758 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29759
29760 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29761 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29762 * config/arm/constraints.md (De): New constraint.
29763 * config/arm/neon.md (anddi3_neon): Delete.
29764 (neon_vand<mode>): Expand to standard anddi3 pattern.
29765 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29766 Move earlier in the file.
29767 (neon_inv_logic_op2): Likewise.
29768 (arm_anddi_operand_neon): New predicate.
29769
29770 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29771
29772 * configure.ac (gcc_cv_ld_as_needed): Set
29773 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29774 Use -z ignore, -z record on *-*-solaris2*.
29775 (HAVE_LD_AS_NEEDED): Update comment.
29776 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29777 * configure: Regenerate.
29778 * config.in: Regenerate.
29779 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29780 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29781 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29782 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29783 equivalents. Fix markup.
29784 * doc/tm.texi: Regenerate.
29785
29786 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
29787
29788 * config/i386/i386.opt: New option mstack-protector-guard=.
29789 * config/i386/i386-opts.h: Add enum stack_protector_guard.
29790 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29791 TARGET_SSP_TLS_GUARD.
29792 * config/i386/i386.c (ix86_option_override_internal): Set
29793 ix86_stack_protector_guard.
29794 * config/i386/i386.md (stack_protect_set): Enable for
29795 TARGET_SSP_TLS_GUARD only.
29796 (stack_protect_set_<mode>): Ditto.
29797 (stack_protect_test): Ditto.
29798 (stack_protect_test_<mode>): Ditto.
29799 * doc/invoke.texi (i386 Option): Document.
29800
29801 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
29802
29803 PR target/56890
29804 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29805 (S_MODES): Set H_MODE bit.
29806 (SF_MODES): Set only S_MODE and SF_MODE bits.
29807 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29808 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29809 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29810 <MODE_FLOAT>: Likewise.
29811
29812 2013-04-15 Joey Ye <joey.ye@arm.com>
29813
29814 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29815
29816 2013-04-15 Joey Ye <joey.ye@arm.com>
29817
29818 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29819 for real far jump.
29820 (thumb_far_jump_used_p): Count instruction size and set
29821 far_jump_used.
29822
29823 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
29824
29825 * reorg.c (fill_simple_delay_slots): Reindent block of code.
29826 * resource.c (mark_target_live_regs): Reformat conditional block.
29827
29828 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29829
29830 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29831 notes, they are emitted only just before final.
29832 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29833
29834 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29835
29836 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29837 * cfgrtl.c (delete_insn): Call it here instead.
29838 * lra-spills.c (lra_final_code_change): Use delete_insn.
29839 * haifa-sched.c (sched_remove_insn): Likewise.
29840 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29841 returning to the nop pool.
29842 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29843 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
29844
29845 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29846
29847 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29848 * doc/tm.texi: Regenerated.
29849
29850 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
29851
29852 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29853 QImode checks.
29854
29855 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29856
29857 * df-core.c (df_find_def): Compare register numbers.
29858 (df_find_use): Likewise.
29859
29860 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
29861
29862 PR target/56903
29863 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29864 lra_in_progress for return.
29865
29866 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29867
29868 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29869 define_insn into define_insn_and_split and emit movsicc patterns.
29870
29871 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29872
29873 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29874
29875 2013-04-12 Richard Biener <rguenther@suse.de>
29876
29877 * tree-pass.h (TODO_do_not_ggc_collect): New.
29878 * passes.c (execute_one_ipa_transform_pass): Honor
29879 TODO_do_not_ggc_collect.
29880 (execute_one_pass): Likewise.
29881
29882 Revert
29883 2013-04-10 Richard Biener <rguenther@suse.de>
29884
29885 * passes.c (init_optimization_passes): Remove reload pass.
29886 * ira.c (do_reload): Merge into ...
29887 (ira): ... this.
29888 (rest_of_handle_reload): Remove.
29889 (pass_reload): Likewise.
29890 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29891 of reload for vzeroupper pass placement.
29892
29893 2013-04-12 Jakub Jelinek <jakub@redhat.com>
29894
29895 PR tree-optimization/56918
29896 PR tree-optimization/56920
29897 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29898 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
29899 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
29900 use wide_mul_with_sign method.
29901
29902 2013-04-12 Richard Biener <rguenther@suse.de>
29903
29904 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29905 not be considered a gimple constant.
29906
29907 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
29908
29909 * fold-const.c (const_binop): Handle vector shifts by a scalar.
29910 (fold_binary_loc): Call const_binop also for mixed vector-scalar
29911 operations.
29912
29913 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
29914 Jakub Jelinek <jakub@redhat.com>
29915
29916 * opts.c: Include diagnostic-color.h.
29917 (common_handle_option): Handle OPT_fdiagnostics_color_.
29918 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29919 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29920 (diagnostic-color.o): New.
29921 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29922 (diagnostic_color_rule): New enum.
29923 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29924 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29925 the location string.
29926 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29927 either NULL, or color kind.
29928 * diagnostic-color.c: New file.
29929 * diagnostic-color.h: New file.
29930 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29931 arguments.
29932 * doc/invoke.texi (-fdiagnostics-color): Document.
29933 * pretty-print.h (pp_show_color): Define.
29934 (struct pretty_print_info): Add show_color field.
29935 * diagnostic.c: Include diagnostic-color.h.
29936 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29937 macros. Colorize error:, warning: etc. strings and also the location
29938 string.
29939 (diagnostic_show_locus): Colorize the caret line.
29940 * pretty-print.c: Include diagnostic-color.h.
29941 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
29942 inside of %< %> quotes or quoted through q format modifier.
29943
29944 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29945
29946 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29947
29948 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29949
29950 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29951 code in CC_NZ mode.
29952 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29953 pattern.
29954
29955 2013-04-11 Marek Polacek <polacek@redhat.com>
29956
29957 PR tree-optimization/48184
29958 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29959
29960 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
29961
29962 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29963 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29964 (skip_simple_arithmetic): Tidy up.
29965 * tree.h (skip_simple_constant_arithmetic): Declare.
29966
29967 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29968
29969 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29970
29971 2013-04-11 Richard Biener <rguenther@suse.de>
29972
29973 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29974 generate vector constants.
29975
29976 2013-04-11 Richard Biener <rguenther@suse.de>
29977
29978 PR tree-optimization/56878
29979 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29980 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29981 New function.
29982 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29983 Prefer to align the DR with the most invariant base address.
29984
29985 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29986
29987 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29988 comment.
29989
29990 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
29991
29992 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29993 floating-point vector comparisons against 0.
29994
29995 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29996
29997 PR tree-optimization/56899
29998 * fold-const.c (extract_muldiv_1): Apply distributive law
29999 only if TYPE_OVERFLOW_WRAPS (ctype).
30000
30001 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30002
30003 PR target/56124
30004 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30005 loading has side effect.
30006
30007 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30008
30009 * config/sparc/sparc.c: Include tree-pass.h.
30010 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30011 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30012 head of file. Change return type. Split off gate function.
30013 (sparc_gate_work_around_errata): New function.
30014 (pass_work_around_errata): New pass definition.
30015 (insert_pass_work_around_errata) New pass insert definition to
30016 insert pass_work_around_errata just after delayed-branch scheduling.
30017 (sparc_option_override): Insert the pass.
30018 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30019
30020 2013-04-10 David S. Miller <davem@davemloft.net>
30021
30022 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30023 or -mcpu=hypersparc.
30024
30025 * target.def (cstore_mode): New hook.
30026 * target.h: Include insn-codes.h
30027 * targhooks.c: Likewise.
30028 (default_cstore_mode): New function.
30029 * targhooks.h: Declare it.
30030 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30031 * doc/tm.texi: Rebuild.
30032 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30033 target hook, rather than inspecting the insn_data.
30034 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30035 (TARGET_CSTORE_MODE): Redefine.
30036 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30037 result patterns.
30038 * config/sparc/predicates.md (cstore_result_operand): New special
30039 predicate.
30040 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30041 Use it for operand 0.
30042 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30043 (*snesi_special): Likewise.
30044 (*snesi_zero): Likewise.
30045 (*seqsi_zero): Likewise.
30046 (*sltu_insn): Likewise.
30047 (*sgeu_insn): Likewise.
30048 (*seqdi_special): Make operand 0 and comparison operation be of
30049 DImode.
30050 (*snedi_special): Likewise.
30051 (*snedi_special_vis3): Likewise.
30052 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30053 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30054 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30055 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30056 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30057 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30058 (*sltu_extend_sp64): Likewise.
30059 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30060 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30061 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30062 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30063 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30064
30065 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30066
30067 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30068 (aarch64_start_file): Use the new function.
30069
30070 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30071 Jason Merrill <jason@redhat.com>
30072
30073 * common.opt: Add -gdwarf.
30074 * opts.c (common_handle_option): Handle it.
30075 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30076
30077 2013-04-10 Richard Biener <rguenther@suse.de>
30078
30079 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30080 (execute_one_ipa_transform_pass): But unconditionally here.
30081 (execute_one_pass): And here.
30082 (init_optimization_passes): Remove reload pass.
30083 * tree-pass.h (TODO_ggc_collect): Remove.
30084 (pass_reload): Likewise.
30085 * ira.c (do_reload): Merge into ...
30086 (ira): ... this.
30087 (rest_of_handle_reload): Remove.
30088 (pass_reload): Likewise.
30089 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30090 of reload for vzeroupper pass placement.
30091 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30092 and todo_flags_finish of all passes.
30093
30094 2013-04-10 Richard Biener <rguenther@suse.de>
30095
30096 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30097 first_const_oprnd field, rename first_def_type to first_op_type.
30098 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30099 (vect_get_and_check_slp_defs): Always use the type of the
30100 operand. Allow mixed vect_external_def, vect_constant_def types.
30101 (vect_get_constant_vectors): Handle mixed vect_external_def,
30102 vect_constant_def types.
30103
30104 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30105
30106 PR tree-optimization/55524
30107 * tree-ssa-math-opts.c
30108 (convert_mult_to_fma): Don't use an fms construct
30109 when we don't have an fms operation, but fnma, and it looks
30110 likely that we'll be able to use the latter.
30111
30112 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30113
30114 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30115 function.
30116 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30117 inline fail caused by overwritable functions.
30118
30119 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30120
30121 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30122 unnecessary bits in the constant power of two case.
30123
30124 2013-04-10 Richard Biener <rguenther@suse.de>
30125
30126 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30127 broken code swapping operands.
30128 (vect_build_slp_tree): Do not compute load permutations here.
30129 (vect_analyze_slp_instance): Compute load permutations here,
30130 after building the SLP tree.
30131
30132 2013-04-09 Christian Bruel <christian.bruel@st.com>
30133
30134 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30135 of next/prev_real_insn.
30136
30137 2013-04-09 Jan Hubicka <jh@suse.cz>
30138
30139 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30140 Drop aliased parameter.
30141 (function_and_variable_visibility): Do not handle alias pairs.
30142 * cgraph.c (varpool_externally_visible_p): Update prototype.
30143 * varpool.c (varpool_add_new_variable): Update.
30144
30145 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30146
30147 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30148
30149 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30150
30151 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30152
30153 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30154
30155 2013-04-09 Marek Polacek <polacek@redhat.com>
30156
30157 PR tree-optimization/48762
30158 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30159
30160 2013-04-09 Richard Biener <rguenther@suse.de>
30161
30162 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30163 dealing with cost.
30164 (vect_build_slp_tree): Likewise.
30165 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30166 calculating the cost of a SLP instance.
30167 (vect_analyze_slp_instance): Use it from here, after building
30168 the SLP tree.
30169
30170 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30171
30172 PR middle-end/56883
30173 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30174 expand_omp_for_static_chunk): Use simple_p = true in
30175 force_gimple_operand_gsi calls when assigning to addressable decls.
30176
30177 2013-04-09 Jeff Law <law@redhat.com>
30178
30179 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30180 when the boolean was created by converting a wider object which
30181 had a boolean range.
30182
30183 2013-04-09 Richard Biener <rguenther@suse.de>
30184
30185 * tree-vectorizer.h (slp_void_p): Remove.
30186 (slp_tree): Typedef before _slp_tree declaration.
30187 (struct _slp_tree): Use a vector of slp_tree as children.
30188 (vect_get_place_in_interleaving_chain): Remove.
30189 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30190 Move ...
30191 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30192 and make static.
30193 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30194 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30195 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30196 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30197 Use slp_node instead of slp_void_p and adjust.
30198
30199 2013-04-09 Richard Biener <rguenther@suse.de>
30200
30201 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30202 work that is not necessary.
30203
30204 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30205
30206 PR tree-optimization/56854
30207 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30208 forward into clobber stmts if it would change MEM_REF lhs into
30209 non-MEM_REF.
30210
30211 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30212
30213 * tree.c (type_hash_lookup, type_hash_add): Make static.
30214 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30215
30216 2013-04-09 Richard Biener <rguenther@suse.de>
30217
30218 * tree.h (unsave_expr_now): Remove.
30219 * tree-inline.c (mark_local_for_remap_r): Remove.
30220 (unsave_expr_1): Likewise.
30221 (unsave_r): Likewise.
30222 (unsave_expr_now): Likewise.
30223 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30224 (propagate_tree_value): Likewise.
30225
30226 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30227
30228 * doc/rtl.texi (sequence): Rewrite documentation to match the
30229 current use of SEQUENCE rtl objects.
30230 * rtl.def (SEQUENCE): Likewise.
30231
30232 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30233 Update documentation.
30234 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30235 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30236
30237 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30238
30239 2013-04-08 Teresa Johnson <tejohnson@google.com>
30240
30241 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30242 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30243 methods.
30244 (estimate_edge_size_and_time): Add comment to suggest using rounding
30245 methods.
30246 (estimate_node_size_and_time): Ditto.
30247 (remap_edge_change_prob): Use helper rounding divide methods.
30248 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30249 (gimple_mod_pow2_value_transform): Ditto.
30250 (gimple_mod_subtract_transform): Ditto.
30251 (gimple_ic_transform): Ditto.
30252 (gimple_stringops_transform): Ditto.
30253 * stmt.c (conditional_probability): Ditto.
30254 (emit_case_dispatch_table): Ditto.
30255 * lto-cgraph.c (merge_profile_summaries): Ditto.
30256 * tree-optimize.c (execute_fixup_cfg): Ditto.
30257 * cfgcleanup.c (try_forward_edges): Ditto.
30258 * cfgloopmanip.c (scale_loop_profile): Ditto.
30259 (loopify): Ditto.
30260 (duplicate_loop_to_header_edge): Ditto.
30261 (lv_adjust_loop_entry_edge): Ditto.
30262 * tree-vect-loop.c (vect_transform_loop): Ditto.
30263 * profile.c (compute_branch_probabilities): Ditto.
30264 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30265 * lto-streamer-in.c (input_cfg): Ditto.
30266 * gimple-streamer-in.c (input_bb): Ditto.
30267 * ipa-cp.c (update_profiling_info): Ditto.
30268 (update_specialized_profile): Ditto.
30269 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30270 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30271 rounding methods.
30272 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30273 (compute_trg_info): Ditto.
30274 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30275 (purge_dead_edges): Ditto.
30276 * loop-unswitch.c (unswitch_loop): Ditto.
30277 * cgraphclones.c (cgraph_clone_edge): Ditto.
30278 (cgraph_clone_node): Ditto.
30279 * tree-inline.c (copy_bb): Ditto.
30280 (copy_edges_for_bb): Ditto.
30281 (initialize_cfun): Ditto.
30282 (copy_cfg_body): Ditto.
30283 (expand_call_inline): Ditto.
30284
30285 2013-04-08 Kai Tietz <ktietz@redhat.com>
30286
30287 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30288 TARGET_CYGWIN64 by TARGET_64BIT.
30289
30290 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30291
30292 * config/epiphany/epiphany.md (GPR_1): New constant.
30293 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30294 * config/epiphany/epiphany.c (gen_compare_reg):
30295 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30296 is already in place.
30297 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30298 Don't require being called during rtl expansion; If y operlaps r0,
30299 return 0.
30300 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30301 (epiphany_expand_epilogue): Likewise.
30302
30303 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30304 Don't use CC_FPmode for ORDERED / UNORDERED.
30305 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30306
30307 * config/epiphany/constraints.md (CnL): New constraint.
30308 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30309 * config/epiphany/predicates.md (add_operand): Allow 1024.
30310
30311 * config/epiphany/epiphany.md (logical_op): New code iterator.
30312 (op_mnc): New code attribute.
30313 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30314 (mov_f+1, mov_f+2): New peephole2 patterns.
30315
30316 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30317 (cstoresi4): Also allow re-use of zero result when doing a NE
30318 comparison to a non-zero operand.
30319 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30320
30321 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30322 Use gen_addsi3_i / gen_subsi3_i.
30323
30324 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30325
30326 PR c++/34949
30327 PR c++/50243
30328 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30329 contain anything but clobbers, at most one __builtin_stack_restore,
30330 optionally debug stmts and final resx, and if it has at least one
30331 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30332 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30333 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30334 which isn't defaut definition, remove them.
30335 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30336 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30337 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30338 with MEM_REF LHS with SSA_NAME address.
30339
30340 2013-04-08 Jeff Law <law@redhat.com>
30341
30342 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30343
30344 2013-04-08 Richard Biener <rguenther@suse.de>
30345
30346 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30347 extra newline.
30348 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30349 determined vector type.
30350 (vect_analyze_data_refs): Likewise.
30351 (vect_get_new_vect_var): Adjust.
30352 (vect_create_destination_var): Preserve SSA name versions.
30353 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30354 not dump anything here.
30355
30356 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30357
30358 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30359 Add member lr_slot_known.
30360 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30361 if necessary.
30362 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30363 Remove code that sets lr_slot_offset according to what a previous
30364 version of epiphany_emit_save_restore used to do.
30365 (epiphany_emit_save_restore): When doing an lr save or restore,
30366 set/verify lr_slot_known and lr_slot_offset.
30367
30368 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30369
30370 PR target/54338
30371 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30372 in ALL_REGS.
30373
30374 2013-04-08 Richard Biener <rguenther@suse.de>
30375
30376 * alias.c (find_base_term): Fix thinko in previous change.
30377
30378 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30379
30380 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30381 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30382 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30383 if possible to compute val.
30384 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30385 For QImode integers don't require anything about precision. Use
30386 const_with_all_bytes_same to find out if the constant doesn't have
30387 repeated bytes in it.
30388
30389 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30390
30391 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30392 within mode size.
30393
30394 2013-04-08 Marek Polacek <polacek@redhat.com>
30395
30396 PR rtl-optimization/48182
30397 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30398 value to 1.
30399
30400 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30401
30402 PR target/55487
30403 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30404 nuses, make sure we have a label.
30405
30406 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30407
30408 PR target/56843
30409 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30410 (rs6000_emit_swdiv_low_precision): Remove.
30411 (rs6000_emit_swdiv): Rewrite to handle between one and four
30412 iterations of Newton-Raphson generally; modify required number of
30413 iterations for some cases.
30414 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30415
30416 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30417
30418 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30419 set-but-unused variable.
30420
30421 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30422 basic blocks of released function bodies garbage-collectable.
30423
30424 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30425 (struct rtl_opt_pass): Add TODO_df_finish.
30426
30427 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30428
30429 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30430
30431 * config/arm/constraints.md (q): New constraint.
30432 * config/arm/ldrdstrd.md: New file.
30433 * config/arm/arm.md (ldrdstrd.md) New include.
30434 (arm_movdi): Use "q" instead of "r" constraint
30435 for double-word memory access.
30436 (movdf_soft_insn): Likewise.
30437 * config/arm/vfp.md (movdi_vfp): Likewise.
30438 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30439 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30440 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30441 (mem_ok_for_ldrd_strd): Likewise.
30442 (output_move_double): Update assertion.
30443
30444 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30445
30446 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30447
30448 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30449
30450 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30451 define_insn_and_split.
30452 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30453
30454 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30455
30456 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30457 define_insn_and_split.
30458 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30459 (shiftsi3_compare): New pattern.
30460 (rrx): New pattern.
30461 * config/arm/unspecs.md (UNSPEC_RRX): New.
30462
30463 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30464
30465 * config/arm/arm.md (negdi_extendsidi): New pattern.
30466 (negdi_zero_extendsidi): Likewise.
30467
30468 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30469
30470 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30471 define_insn_and_split.
30472 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30473 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30474
30475 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30476
30477 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30478 define_insn_and_split.
30479 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30480 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30481
30482 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30483
30484 * config/arm/arm.md (subsi3_carryin): New pattern.
30485 (subsi3_carryin_const): Likewise.
30486 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30487 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30488
30489 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30490
30491 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30492
30493 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30494
30495 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30496 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30497
30498 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30499
30500 * config/arm/arm.c (arm_expand_builtin): Change fcode
30501 type to unsigned int.
30502
30503 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30504
30505 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30506
30507 2013-04-04 Ian Lance Taylor <iant@google.com>
30508
30509 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30510 language standard.
30511
30512 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30513
30514 PR middle-end/56729
30515 * df-scan.c (df_insn_delete): Disable failing assert.
30516
30517 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30518
30519 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30520 New function prototype.
30521 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30522 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30523 (arm_builtin_vectorized_function): New function.
30524
30525 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30526
30527 * config/arm/arm_neon_builtins.def: New file.
30528 * config/arm/arm.c (neon_builtin_data): Move contents to
30529 arm_neon_builtins.def.
30530 (enum arm_builtins): Include neon builtin definitions.
30531 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30532 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30533
30534 2013-04-04 Marek Polacek <polacek@redhat.com>
30535
30536 PR tree-optimization/48186
30537 * predict.c (maybe_hot_frequency_p): Return false if
30538 HOT_BB_FREQUENCY_FRACTION is 0.
30539 (cgraph_maybe_hot_edge_p): Likewise.
30540
30541 2013-04-04 Richard Biener <rguenther@suse.de>
30542
30543 PR tree-optimization/56826
30544 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30545 more accurately.
30546
30547 2013-04-04 Richard Biener <rguenther@suse.de>
30548
30549 PR tree-optimization/56213
30550 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30551 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30552
30553 2013-04-04 Richard Biener <rguenther@suse.de>
30554
30555 PR tree-optimization/56837
30556 * tree-loop-distribution.c (classify_partition): For non-zero
30557 values require that the value has the same precision as its
30558 mode to be useful as memset value.
30559
30560 2013-04-03 Nick Clifton <nickc@redhat.com>
30561
30562 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30563 (fmssf4): Use fmsf.s on E3V5 architectures.
30564 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30565 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30566
30567 2013-04-03 Jeff Law <law@redhat.com>
30568
30569 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30570 (lra-eliminations.o): Likewise.
30571
30572 2013-04-03 Teresa Johnson <tejohnson@google.com>
30573
30574 * gcov-io.c (compute_working_sets): Moved most of body of old
30575 compute_working_sets here from profile.c.
30576 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30577 (gcov_working_set_t): Moved typedef here from basic-block.h
30578 (compute_working_set): Declare.
30579 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30580 (get_working_sets): Renamed from compute_working_set,
30581 replace most of body with call to new compute_working_sets.
30582 (get_exec_counts): Replace call to compute_working_sets
30583 to get_working_sets.
30584 * profile.h (get_working_sets): Renamed from compute_working_set.
30585 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30586 to get_working_sets.
30587 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30588 * gcov-dump.c (dump_working_sets): New function.
30589
30590 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30591
30592 * hwint.c (sext_hwi, zext_hwi): New functions.
30593 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30594 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30595 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30596 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30597 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30598 (sext_hwi, zext_hwi): New functions.
30599
30600 2013-04-03 Jeff Law <law@redhat.com>
30601
30602 PR tree-optimization/56799
30603 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30604 back test for widening conversion erroneously dropped in prior change.
30605
30606 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30607
30608 PR target/56809
30609 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30610 instead of next_real_insn.
30611
30612 2013-04-03 Marek Polacek <polacek@redhat.com>
30613
30614 PR sanitizer/55702
30615 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30616
30617 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30618
30619 PR target/56809
30620 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30621 next_real_insn.
30622 (thumb1_output_casesi): Likewise.
30623 (thumb2_output_casesi): Likewise.
30624
30625 2013-04-03 Richard Biener <rguenther@suse.de>
30626
30627 PR tree-optimization/56817
30628 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30629 Split out ...
30630 (tree_unroll_loops_completely_1): ... new function to manually
30631 walk the loop tree, properly defering outer loops of unrolled
30632 loops to later iterations.
30633
30634 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30635
30636 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30637 (vectorizable_load): Likewise.
30638 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30639 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30640
30641 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30642
30643 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30644 BIT_FIELD_REF.
30645
30646 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30647
30648 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30649
30650 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30651
30652 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30653
30654 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30655
30656 PR tree-optimization/56790
30657 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30658 folding.
30659
30660 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30661
30662 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30663 Handle VEC_MERGE.
30664 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30665 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30666 equal arguments.
30667
30668 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30669
30670 PR c/19449
30671 * tree.h (force_folding_builtin_constant_p): New decl.
30672 * builtins.c (force_folding_builtin_constant_p): New variable.
30673 (fold_builtin_constant_p): Fold immediately also if
30674 force_folding_builtin_constant_p.
30675
30676 2013-04-03 Richard Biener <rguenther@suse.de>
30677
30678 PR tree-optimization/56812
30679 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30680 DRs of the same interleaving chain are independent.
30681
30682 2013-04-02 Jason Merrill <jason@redhat.com>
30683
30684 * gdbinit.in (pbb): Use debug fn.
30685
30686 2013-04-02 Lawrence Crowl <crowl@google.com>
30687
30688 * sese.h (struct ivtype_map_elt_s): Remove unused.
30689 (extern debug_ivtype_map): Remove unused.
30690 (extern eq_ivtype_map_elts): Remove unused.
30691 * sese.c (debug_ivtype_map): Removed unused.
30692 (debug_ivtype_map_1): Removed unused.
30693 (debug_ivtype_elt): Remove unused.
30694 (eq_ivtype_map_elts): Remove unused.
30695
30696 2013-04-02 Kai Tietz <ktietz@redhat.com>
30697
30698 PR target/52790
30699 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30700 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30701 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30702 function.
30703 (legitimize_pe_coff_symbol): Likewise.
30704 (is_imported_p): New helper-function.
30705 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30706 for Windows x64 targets.
30707 (ix86_expand_prologue): Optimize for pe-coff targets.
30708 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30709 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30710 medium/large code-model.
30711 (legitimize_pic_address): Likewise.
30712 (legitimize_tls_address): Likewise.
30713 (ix86_expand_call): Likewise.
30714 (x86_output_mi_thunk): Likewise.
30715 (get_dllimport_decl): Add new beimport argument.
30716 (construct_plt_address): Don't assert for x64 pe-coff targets.
30717 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30718 targets.
30719 (SYMBOL_FLAG_STUBVAR): New macro.
30720 (SYMBOL_REF_STUBVAR_P): Likewise.
30721 * config/i386/winnt.c (stub_list): New structure.
30722 (stub_head): New local variable.
30723 (i386_pe_record_stub): New function.
30724 (i386_pe_file_end): Emit refptr-stubs.
30725
30726 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30727
30728 PR rtl-optimization/56745
30729 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30730 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30731
30732 PR c++/34949
30733 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30734 and both of them are MEM_REFs, just compare first argument for
30735 equality and attempt to deal even with differing offsets.
30736
30737 PR c++/34949
30738 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30739 of gimple_clobber_p to be MEM_REF.
30740 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30741 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30742 after gimplification.
30743 * asan.c (get_mem_ref_of_assignment): Don't instrument
30744 gimple_clobber_p stmts.
30745 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30746 gimple_clobber_p stmt if they have MEM_REF lhs and
30747 are dead because of another gimple_clobber_p stmt.
30748 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30749 gimple_clobber_p stmts like debug stmts.
30750 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30751 that refer to unused VAR_DECLs or uninitialized values.
30752 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30753 gimple_clobber_p stmts if they refer to removed parameters.
30754 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30755 formatting.
30756
30757 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
30758
30759 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30760 using SWI48 mode attribute.
30761
30762 2013-04-02 Wei Mi <wmi@google.com>
30763
30764 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30765 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30766 *<rotate_insn><mode>3_mask in i386.md.
30767
30768 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
30769
30770 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30771
30772 2013-04-02 Richard Biener <rguenther@suse.de>
30773
30774 PR tree-optimization/56778
30775 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30776 Runtime alias tests are not supported for gather loads.
30777 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30778 stmts referenced from SSA operands before updating SSA form.
30779
30780 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
30781 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30782
30783 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30784 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30785 * config/arm/cortex-a53.md: New file.
30786 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30787 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30788 * config/arm/arm.c (arm_issue_rate): Likewise.
30789 * config/arm/arm-tune.md: Regenerate
30790 * config/arm/arm-tables.opt: Regenerate.
30791 * config/arm/arm-cores.def: Add cortex-a53.
30792
30793 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
30794
30795 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30796 non-static link.
30797
30798 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30799
30800 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30801 scalar load/store operations using B/H registers.
30802 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30803
30804 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30805
30806 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30807 scalar move.
30808 * config/aarch64/aarch64.c
30809 (aarch64_simd_scalar_immediate_valid_for_move): New.
30810 * config/aarch64/aarch64-protos.h
30811 (aarch64_simd_scalar_immediate_valid_for_move): New.
30812 * config/aarch64/constraints.md (Dh, Dq): New.
30813 * config/aarch64/iterators.md (hq): New.
30814
30815 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
30816
30817 * reorg.c (get_branch_condition): Deal with conditional returns.
30818 (fill_simple_delay_slots): Remove dead code dealing with jumps.
30819
30820 2013-04-01 Wei Mi <wmi@google.com>
30821
30822 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30823 Truncate operand 2 using %b asm operand modifier.
30824 (*<shift_insn><mode>3_mask): Ditto.
30825 (*<rotate_insn><mode>3_mask): Ditto.
30826
30827 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
30828
30829 PR middle-end/56798
30830 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30831
30832 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
30833
30834 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30835 of next_real_insn.
30836 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30837
30838 2013-03-30 Lawrence Crowl <crowl@google.com>
30839
30840 * dse.c (clear_alias_sets): Remove never set.
30841 (disqualified_clear_alias_sets): Remove never set.
30842 (clear_alias_mode_pool): Remove never set.
30843 (dse_step0): Remove condition that is never true.
30844 (canon_address): Remove condition that is never true.
30845 (dse_step7): Remove condition that is never true.
30846 (rest_of_handle_dse): Remove condition that is never true.
30847 (rest_of_handle_dse::did_global): Remove never read from above.
30848 (dse_step2_spill): Remove never called from above.
30849 (dse_step5_spill): Remove never called from above.
30850
30851 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
30852
30853 * doc/md.texi (Standard Names) <casesi>: Update documentation for
30854 JUMP_TABLE_DATA changes.
30855 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30856 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30857 (Insns) <jump_table_data>: New entry.
30858 * doc/tm.texi: Regenerate.
30859
30860 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30861
30862 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30863 for table jump at the end of a basic block using tablejump_p.
30864 * targhooks.c (default_invalid_within_doloop): Likewise.
30865 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30866 target hook implementation that is identical to the default hook.
30867 (rs6000_invalid_within_doloop): Remove.
30868
30869 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30870 unused variable from tablejump_p call.
30871
30872 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30873 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30874 (INSN_DELETED_P): Likewise.
30875 (emit_jump_table_data): New prototype.
30876 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30877 after 4th as unused.
30878 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30879 * sched-vis.c (print_insn): Likewise.
30880 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30881 insn for compatibility with back ends that use next_active_insn to
30882 identify jump table data.
30883 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30884 (remove_insn): Likewise.
30885 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30886 to be emitted.
30887 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30888 (emit_jump_table_data): New function.
30889
30890 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30891 basic block, a JUMP_TABLE_DATA never is.
30892 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30893 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30894 off from code handling real insns.
30895 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30896 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30897 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30898 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30899 is not a NONDEBUG_INSN_P.
30900 * ira-costs.c (scan_one_insn): Likewise.
30901 * jump.c (mark_all_labels): Likewise.
30902 (mark_jump_label_1): Likewise.
30903 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30904 * lra.c (get_insn_freq): Expect all insns reaching here to be in
30905 a basic block.
30906 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30907 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30908 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30909 JUMP_TABLE_DATA_P insns.
30910 (calculate_elim_costs_all_insns): Likewise.
30911 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30912 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30913 (delete_output_reload): Code style fixups.
30914 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30915 insn flags on this non-insn.
30916 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30917 as scheduling barriers, for pre-change compatibility.
30918 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30919 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30920
30921 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30922 redundant JUMP_TABLE_DATA_P test.
30923 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30924 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30925 (frv_for_each_packet): Likewise.
30926 * config/i386/i386.c (min_insn_size): Likewise.
30927 (ix86_avoid_jump_mispredicts): Likewise.
30928 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30929 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30930 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30931 (mips16_insn_length): Robustify.
30932 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30933 (mips16_split_long_branches): Likewise.
30934 * config/pa/pa.c (pa_combine_instructions): Likewise.
30935 * config/rs6000/rs6000.c (get_next_active_insn): Treat
30936 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30937 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30938 as contributing to pool range lengths.
30939 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30940 Remove redundant JUMP_TABLE_DATA_P test.
30941 (sh_loop_align): Likewise.
30942 (split_branches): Likewise.
30943 (sh_insn_length_adjustment): Likewise.
30944 * config/spu/spu.c (get_branch_target): Likewise.
30945
30946 2013-03-29 Jan Hubicka <jh@suse.cz>
30947
30948 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30949 gcov streaming; stream hot bb threshold to ltrans.
30950 * predict.c (get_hot_bb_threshold): Break out from ....
30951 (maybe_hot_count_p): ... here.
30952 (set_hot_bb_threshold): New function.
30953 * lto-section-in.c (lto_section_name): Add profile.
30954 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30955 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30956 and data-streamer.h
30957 (histogram_entry): New structure.
30958 (histogram, histogram_pool): New global vars.
30959 (histogram_hash): New structure.
30960 (histogram_hash::hash): New method.
30961 (histogram_hash::equal): Likewise.
30962 (account_time_size): New function.
30963 (cmp_counts): New function.
30964 (dump_histogram): New function.
30965 (ipa_profile_generate_summary): New function.
30966 (ipa_profile_write_summary): New function.
30967 (ipa_profile_read_summary): New function.
30968 (ipa_profile): Decide on threshold.
30969 (pass_ipa_profile): Add ipa_profile_write_summary and
30970 ipa_profile_read_summary.
30971 * Makefile.in (ipa.o): Update dependencies.
30972 * lto-streamer.h (LTO_section_ipa_profile): New section.
30973
30974 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
30975
30976 * tree.h (VAR_P): New.
30977
30978 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
30979
30980 PR lto/56777
30981 * doc/invoke.texi ([-fwhole-program]): Fix typo.
30982
30983 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
30984
30985 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30986 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30987 (control_flow_insn_p): Likewise.
30988 * cfgrtl.c (duplicate_insn_chain): Likewise.
30989 * final.c (get_attr_length_1): Likewise.
30990 (shorten_branches): Likewise.
30991 (final_scan_insn): Likewise.
30992 * function.c (instantiate_virtual_regs): Likewise.
30993 * gcse.c (insert_insn_end_basic_block): Likewise.
30994 * ira-costs.c (scan_one_insn): Likewise.
30995 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30996 * lra.c (check_rtl): Likewise.
30997 * reload1.c (elimination_costs_in_insn): Likewise.
30998 * reorg.c (follow_jumps): Likewise.
30999
31000 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31001 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31002 (thumb_far_jump_used_p): Likewise.
31003 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31004 (workaround_speculation): Likewise.
31005 (add_sched_insns_for_speculation): Likewise.
31006 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31007 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31008 (frv_for_each_packet): Likewise.
31009 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31010 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31011 (final_emit_insn_group_barriers): Likewise.
31012 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31013 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31014 (mips16_insn_length): Likewise.
31015 * config/pa/pa.c (pa_reorg): Likewise.
31016 (pa_combine_instructions): Likewise.
31017 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31018 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31019 (sh_reorg): Likewise.
31020 (split_branches): Likewise.
31021 * config/spu/spu.c (get_branch_target): Likewise.
31022
31023 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31024 JUMP_TABLE_DATA_P.
31025
31026 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31027
31028 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31029 Fix declaration name.
31030
31031 2013-03-28 Lawrence Crowl <crowl@google.com>
31032
31033 * graphds.h (struct graph.indicies): Remove unused.
31034 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31035 (SCOP_ORIGINAL_PDDRS): Remove unused.
31036 * sese.h (extern insert_loop_close_phis): Removed unused.
31037 (extern insert_guard_phis): Removed unused.
31038 (extern ivtype_map_elt_info): Removed unused.
31039 (new_ivtype_map_elt): Removed unused.
31040 * sese.c (ivtype_map_elt_info): Removed unused.
31041
31042 2013-03-28 Lawrence Crowl <crowl@google.com>
31043
31044 * Makefile.in: Add several missing include dependences.
31045 (DUMPFILE_H): New.
31046 (test-dump.o): New. This object is not added to any executable,
31047 but is present for ad-hoc testing.
31048 * bitmap.c
31049 (debug (const bitmap_head_def &)): New.
31050 (debug (const bitmap_head_def *)): New.
31051 * bitmap.h
31052 (extern debug (const bitmap_head_def &)): New.
31053 (extern debug (const bitmap_head_def *)): New.
31054 * cfg.c
31055 (debug (edge_def &)): New.
31056 (debug (edge_def *)): New.
31057 * cfghooks.c
31058 (debug (basic_block_def &)): New.
31059 (debug (basic_block_def *)): New.
31060 * dumpfile.h
31061 (dump_node (const_tree, int, FILE *)): Correct source file.
31062 * dwarf2out.c
31063 (debug (die_struct &)): New.
31064 (debug (die_struct *)): New.
31065 * dwarf2out.h
31066 (extern debug (die_struct &)): New.
31067 (extern debug (die_struct *)): New.
31068 * gimple-pretty-print.c
31069 (debug (gimple_statement_d &)): New.
31070 (debug (gimple_statement_d *)): New.
31071 * gimple-pretty-print.h
31072 (extern debug (gimple_statement_d &)): New.
31073 (extern debug (gimple_statement_d *)): New.
31074 * ira-build.c
31075 (debug (ira_allocno_copy &)): New.
31076 (debug (ira_allocno_copy *)): New.
31077 (debug (ira_allocno &)): New.
31078 (debug (ira_allocno *)): New.
31079 * ira-int.h
31080 (extern debug (ira_allocno_copy &)): New.
31081 (extern debug (ira_allocno_copy *)): New.
31082 (extern debug (ira_allocno &)): New.
31083 (extern debug (ira_allocno *)): New.
31084 * ira-lives.c
31085 (debug (live_range &)): New.
31086 (debug (live_range *)): New.
31087 * lra-int.h
31088 (debug (lra_live_range &)): New.
31089 (debug (lra_live_range *)): New.
31090 * lra-lives.c
31091 (debug (lra_live_range &)): New.
31092 (debug (lra_live_range *)): New.
31093 * omega.c
31094 (debug (omega_pb_d &)): New.
31095 (debug (omega_pb_d *)): New.
31096 * omega.h
31097 (extern debug (omega_pb_d &)): New.
31098 (extern debug (omega_pb_d *)): New.
31099 * print-rtl.c
31100 (debug (const rtx_def &)): New.
31101 (debug (const rtx_def *)): New.
31102 * print-tree.c
31103 (debug_tree (tree): Move within file.
31104 (debug_raw (const tree_node &)): New.
31105 (debug_raw (const tree_node *)): New.
31106 (dump_tree_via_hooks (const tree_node *, int)): New.
31107 (debug (const tree_node &)): New.
31108 (debug (const tree_node *)): New.
31109 (debug_verbose (const tree_node &)): New.
31110 (debug_verbose (const tree_node *)): New.
31111 (debug_head (const tree_node &)): New.
31112 (debug_head (const tree_node *)): New.
31113 (debug_body (const tree_node &)): New.
31114 (debug_body (const tree_node *)): New.
31115 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31116 (debug (vec<tree, va_gc> &)): New.
31117 (debug (vec<tree, va_gc> *)): New.
31118 * rtl.h
31119 (extern debug (const rtx_def &)): New.
31120 (extern debug (const rtx_def *)): New.
31121 * sbitmap.c
31122 (debug_raw (simple_bitmap_def &)): New.
31123 (debug_raw (simple_bitmap_def *)): New.
31124 (debug (simple_bitmap_def &)): New.
31125 (debug (simple_bitmap_def *)): New.
31126 * sbitmap.h
31127 (extern debug (simple_bitmap_def &)): New.
31128 (extern debug (simple_bitmap_def *)): New.
31129 (extern debug_raw (simple_bitmap_def &)): New.
31130 (extern debug_raw (simple_bitmap_def *)): New.
31131 * sel-sched-dump.c
31132 (debug (vinsn_def &)): New.
31133 (debug (vinsn_def *)): New.
31134 (debug_verbose (vinsn_def &)): New.
31135 (debug_verbose (vinsn_def *)): New.
31136 (debug (expr_def &)): New.
31137 (debug (expr_def *)): New.
31138 (debug_verbose (expr_def &)): New.
31139 (debug_verbose (expr_def *)): New.
31140 (debug (vec<rtx> &)): New.
31141 (debug (vec<rtx> *)): New.
31142 * sel-sched-dump.h
31143 (extern debug (vinsn_def &)): New.
31144 (extern debug (vinsn_def *)): New.
31145 (extern debug_verbose (vinsn_def &)): New.
31146 (extern debug_verbose (vinsn_def *)): New.
31147 (extern debug (expr_def &)): New.
31148 (extern debug (expr_def *)): New.
31149 (extern debug_verbose (expr_def &)): New.
31150 (extern debug_verbose (expr_def *)): New.
31151 (extern debug (vec<rtx> &)): New.
31152 (extern debug (vec<rtx> *)): New.
31153 * sel-sched-ir.h
31154 (_list_iter_cond_expr): Make inline instead of static.
31155 * sreal.c
31156 (debug (sreal &)): New.
31157 (debug (sreal *)): New.
31158 * sreal.h
31159 (extern debug (sreal &)): New.
31160 (extern debug (sreal *)): New.
31161 * tree.h
31162 (extern debug_raw (const tree_node &)): New.
31163 (extern debug_raw (const tree_node *)): New.
31164 (extern debug (const tree_node &)): New.
31165 (extern debug (const tree_node *)): New.
31166 (extern debug_verbose (const tree_node &)): New.
31167 (extern debug_verbose (const tree_node *)): New.
31168 (extern debug_head (const tree_node &)): New.
31169 (extern debug_head (const tree_node *)): New.
31170 (extern debug_body (const tree_node &)): New.
31171 (extern debug_body (const tree_node *)): New.
31172 (extern debug (vec<tree, va_gc> &)): New.
31173 (extern debug (vec<tree, va_gc> *)): New.
31174 * tree-cfg.c
31175 (debug (struct loop &)): New.
31176 (debug (struct loop *)): New.
31177 (debug_verbose (struct loop &)): New.
31178 (debug_verbose (struct loop *)): New.
31179 * tree-dump.c: Add header dependence.
31180 * tree-flow.h
31181 (extern debug (struct loop &)): New.
31182 (extern debug (struct loop *)): New.
31183 (extern debug_verbose (struct loop &)): New.
31184 (extern debug_verbose (struct loop *)): New.
31185 * tree-data-ref.c
31186 (debug (data_reference &)): New.
31187 (debug (data_reference *)): New.
31188 (debug (vec<data_reference_p> &)): New.
31189 (debug (vec<data_reference_p> *)): New.
31190 (debug (vec<ddr_p> &)): New.
31191 (debug (vec<ddr_p> *)): New.
31192 * tree-data-ref.h
31193 (extern debug (data_reference &)): New.
31194 (extern debug (data_reference *)): New.
31195 (extern debug (vec<data_reference_p> &)): New.
31196 (extern debug (vec<data_reference_p> *)): New.
31197 (extern debug (vec<ddr_p> &)): New.
31198 (extern debug (vec<ddr_p> *)): New.
31199 * tree-ssa-alias.c
31200 (debug (pt_solution &)): New.
31201 (debug (pt_solution *)): New.
31202 * tree-ssa-alias.h
31203 (extern debug (pt_solution &)): New.
31204 (extern debug (pt_solution *)): New.
31205 * tree-ssa-alias.c
31206 (debug (_var_map &)): New.
31207 (debug (_var_map *)): New.
31208 (debug (tree_live_info_d &)): New.
31209 (debug (tree_live_info_d *)): New.
31210 * tree-ssa-alias.h
31211 (extern debug (_var_map &)): New.
31212 (extern debug (_var_map *)): New.
31213 (extern debug (tree_live_info_d &)): New.
31214 (extern debug (tree_live_info_d *)): New.
31215
31216 2013-03-28 Jan Hubicka <jh@suse.cz>
31217
31218 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31219
31220 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31221
31222 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31223 record only when desired or required.
31224
31225 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31226
31227 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31228 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31229
31230 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31231
31232 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31233 (*andsi3_compare0_uxtw): New pattern.
31234 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31235 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31236
31237 2013-03-28 Jan Hubicka <jh@suse.cz>
31238
31239 * data-streamer-in.c (streamer_read_gcov_count): New function.
31240 * gimple-streamer-out.c: Include value-prof.h.
31241 (output_gimple_stmt): Output histogram.
31242 (output_bb): Use streamer_write_gcov_count.
31243 * value-prof.c: Include data-streamer.h
31244 (dump_histogram_value): Add HIST_TYPE_MAX.
31245 (stream_out_histogram_value): New function.
31246 (stream_in_histogram_value): New function.
31247 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31248 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31249 * data-streamer-out.c (streamer_write_gcov_count): New function.
31250 (streamer_write_gcov_count_stream): New function.
31251 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31252 (lto_output_node): Likewise.
31253 (input_node, input_edge): Likewise.
31254 * lto-streamer-out.c (output_cfg): Update streaming.
31255 * lto-streamer-in.c (input_cfg): Likewise.
31256 * data-streamer.h (streamer_write_gcov_count,
31257 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31258 * gimple-streamer-in.c: Include value-prof.h
31259 (input_gimple_stmt): Input histograms.
31260 (input_bb): Update profile streaming.
31261
31262 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31263
31264 * genmodes.c (emit_max_int): New function.
31265 (emit_insn_modes_h): Added call to emit_max_function.
31266 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31267 Added doc.
31268 * machmode.def: Fixed comment.
31269
31270 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31271
31272 * combine.c (try_combine): Removed useless assert.
31273 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31274
31275 2013-03-28 Marek Polacek <polacek@redhat.com>
31276 Richard Biener <rguenther@suse.de>
31277
31278 PR tree-optimization/56695
31279 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31280 build signed result of a vector comparison.
31281 * tree-cfg.c (verify_gimple_comparison): Check that a result
31282 of a vector comparison has signed type.
31283
31284 2013-03-28 Richard Biener <rguenther@suse.de>
31285
31286 PR tree-optimization/37021
31287 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31288 do not restrict gaps between groups.
31289 * tree-vect-stmts.c (vectorizable_load): Properly account for
31290 a gap between groups.
31291
31292 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31293
31294 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31295 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31296 is not enabled.
31297
31298 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31299
31300 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31301 * doc/extend.texi (Named Address Spaces): Ditto.
31302 (Variable Attributes): Ditto.
31303
31304 2013-03-27 Kai Tietz <ktietz@redhat.com>
31305
31306 * config.build: Add support for cygwin x64 target.
31307 * config.gcc: Likewise.
31308 * config.host: Likewise.
31309 * configure.ac: Likewise
31310 * configure: Regenerated.
31311
31312 2013-03-27 Kai Tietz <ktietz@redhat.com>
31313
31314 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31315 * config/i386/t-cygwin-w64: New file.
31316 * config/i386/cygwin-w64.h: New file.
31317 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31318 and add support for x64-cygwin target.
31319 (CPP_SPEC): Likewise.
31320 (CXX_WRAP_SPEC_LIST): Undefine before define.
31321 (LIBGCJ_SONAME): Use 15 as version.
31322
31323 2013-03-27 Richard Biener <rguenther@suse.de>
31324
31325 PR tree-optimization/56716
31326 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31327 dumping for ref nodes.
31328
31329 2013-03-27 Martin Jambor <mjambor@suse.cz>
31330
31331 PR tree-optimization/55334
31332 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31333 restricted pointers to arrays.
31334
31335 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31336
31337 * Makefile.in (.SUFFIXES): Add .cc.
31338 (.c.o): Apply same recipe for implicit rule .cc.o.
31339
31340 2013-03-27 Richard Biener <rguenther@suse.de>
31341
31342 PR tree-optimization/37021
31343 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31344 REALPART/IMAGPART_EXPRs around the supported refs.
31345 * tree-ssa-structalias.c (find_func_aliases): Assume that
31346 floating-point values are not used to transfer pointers.
31347
31348 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31349
31350 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31351 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31352 * doc/tm.texi: Regenerate.
31353 * targhooks.h (default_has_ifunc_p): New.
31354 * targhooks.c (default_has_ifunc_p): Ditto.
31355 * config/linux-protos.h: New file.
31356 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31357 hook for linux which disables support of indirect functions in android.
31358 * config/linux-android.c: New file.
31359 * config/t-linux-android.c: Ditto.
31360 * config.gcc: Added new object file linux-android.o.
31361 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31362 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31363 * varasm.c (do_assemble_alias): Likewise.
31364 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31365 doesn't support indirect functions.
31366 * configure: Regenerate.
31367
31368 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31369
31370 PR target/56102
31371 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31372 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31373 mult-word mode.
31374
31375 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31376
31377 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31378
31379 2013-03-27 Terry Guo <terry.guo@arm.com>
31380
31381 * config/arm/arm-cores.def: Added core cortex-r7.
31382 * config/arm/arm-tune.md: Regenerated.
31383 * config/arm/arm-tables.opt: Regenerated.
31384 * doc/invoke.texi: Added entry for core cortex-r7.
31385
31386 2013-03-27 Walter Lee <walt@tilera.com>
31387
31388 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31389 double-decrement of next_scratch_regno.
31390
31391 2013-03-27 Walter Lee <walt@tilera.com>
31392
31393 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31394 input operands.
31395 (insn_v1mulus): Ditto.
31396 (insn_v2muls): Ditto.
31397
31398 2013-03-27 Walter Lee <walt@tilera.com>
31399
31400 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31401 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31402
31403 2013-03-27 Walter Lee <walt@tilera.com>
31404
31405 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31406 (*sibcall_value): Ditto.
31407
31408 2013-03-27 Walter Lee <walt@tilera.com>
31409
31410 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31411 (insn_mnz_v8qi): ... this ...
31412 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31413 vector equivalent.
31414 (insn_v<n>mnz): Replaced by ...
31415 (insn_v1mnz): ... this ...
31416 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31417 equivalent.
31418 (insn_mz_<mode>): Replaced by ...
31419 (insn_mz_v8qi): ... this ...
31420 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31421 vector equivalent.
31422 (insn_v<n>mz): Replaced by ...
31423 (insn_v1mz): ... this ...
31424 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31425 equivalent.
31426
31427 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31428
31429 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31430
31431 2013-03-26 Roland McGrath <mcgrathr@google.com>
31432
31433 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31434 than fprintf with a non-constant, non-format string.
31435
31436 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31437
31438 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31439 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31440 operand 0 predicate.
31441 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31442 attribute. Use general_x64nomem_operand as operand 1 predicate.
31443 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31444 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31445 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31446 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31447 (mov<mode>_insv_1): Remove expander. Merge insn with
31448 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31449 Use general_x64nomem_operand as operand 1 predicate.
31450 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31451 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31452 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31453 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31454 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31455 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31456 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31457 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31458 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31459 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31460 (general_x64nomem_operand): Ditto.
31461
31462 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31463
31464 * config/rtems.opt: Add -pthread option.
31465
31466 2013-03-26 Richard Biener <rguenther@suse.de>
31467
31468 * alias.c (find_base_term): Avoid redundant and not used recursion.
31469 (base_alias_check): Get the initial base term from the caller.
31470 (true_dependence_1): Compute and pass base terms to base_alias_check.
31471 (write_dependence_p): Likewise.
31472 (may_alias_p): Likewise.
31473
31474 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31475
31476 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31477 PC-relative load in SI modes and above only.
31478
31479 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31480
31481 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31482 * config/arm/iwmmxt.md (WCGR0): Update.
31483 (WCGR1, WCGR2, WCGR3): Likewise.
31484
31485 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31486
31487 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31488 Use x64 and nox64 isa attributes.
31489
31490 2013-03-26 Richard Biener <rguenther@suse.de>
31491
31492 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31493 alignment computations and rely on get_object_alignment_1
31494 for the !TYPE_P case.
31495 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31496
31497 2013-03-26 Walter Lee <walt@tilera.com>
31498
31499 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31500 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31501
31502 2013-03-25 Jeff Law <law@redhat.com>
31503
31504 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31505 check for INTEGRAL_TYPE_P that was missing due to checking in
31506 wrong version of prior patch.
31507
31508 2013-03-25 Walter Lee <walt@tilera.com>
31509
31510 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31511 TILEGX_INSN_SHUFFLEBYTES1.
31512 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31513 shufflebytes1.
31514 (tilegx_builtins): Ditto.
31515 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31516
31517 2013-03-25 Walter Lee <walt@tilera.com>
31518
31519 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31520 (floatunssisf2): New pattern.
31521 (floatsidf2): New pattern.
31522 (floatunssidf2): New pattern.
31523
31524 2013-03-25 Walter Lee <walt@tilera.com>
31525
31526 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31527 tests for constraint J, K, N, P.
31528
31529 2013-03-25 Walter Lee <walt@tilera.com>
31530
31531 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31532 Use indirect/pcrel encoding.
31533 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31534 Ditto.
31535
31536 2013-03-25 Steve Ellcey <sellcey@mips.com>
31537
31538 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31539 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31540 * config/mips/mips.c (mips_option_override): Set IMADD default.
31541 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31542 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31543 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31544 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31545 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31546
31547 2013-03-25 Jeff Law <law@redhat.com>
31548
31549 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31550 slightly to avoid creating and folding useless trees. Simplify
31551 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31552
31553 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31554
31555 * config/i386/i386.md (*zero_extendsidi2): Merge with
31556 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31557 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31558 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31559 targets. Clarify comment.
31560
31561 2013-03-25 Martin Jambor <mjambor@suse.cz>
31562
31563 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31564 pass-through jump functions differently.
31565 (ipa_read_jump_function): Likewise. Also use setter functions to set
31566 up jump functions.
31567
31568 2013-03-25 Martin Jambor <mjambor@suse.cz>
31569
31570 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31571 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31572 process it.
31573 (ipa_get_indirect_edge_target): New function.
31574 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31575 ipa_get_indirect_edge_target. Update all callers.
31576 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31577 ipa_get_indirect_edge_target_1 instead of calling
31578 ipa_get_indirect_edge_target.
31579 (create_specialized_node): Pass aggvlas to
31580 ipcp_discover_new_direct_edges.
31581
31582 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31583
31584 * config/arm/arm.md (f_sels, f_seld): New types.
31585 (*cmov<mode>): New pattern.
31586 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31587 predicate.
31588
31589 2013-03-25 Kai Tietz <ktietz@redhat.com>
31590
31591 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31592 POSIX-printf for mingw-hosted builds.
31593
31594 2013-03-25 Richard Biener <rguenther@suse.de>
31595
31596 PR middle-end/56694
31597 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31598 must-not-throw stmt location.
31599
31600 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31601
31602 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31603 Emit load-acquire versions when acq is true.
31604 (arm_emit_store_exclusive): Add rel parameter.
31605 Emit store-release versions when rel is true.
31606 (arm_split_compare_and_swap): Use acquire-release instructions
31607 instead.
31608 of barriers when appropriate.
31609 (arm_split_atomic_op): Likewise.
31610 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31611 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31612 (VUNSPEC_SLX): Likewise.
31613 (VUNSPEC_LDA): Likewise.
31614 (VUNSPEC_STL): Likewise.
31615 * config/arm/sync.md (atomic_load<mode>): New pattern.
31616 (atomic_store<mode>): Likewise.
31617 (arm_load_acquire_exclusive<mode>): Likewise.
31618 (arm_load_acquire_exclusivesi): Likewise.
31619 (arm_load_acquire_exclusivedi): Likewise.
31620 (arm_store_release_exclusive<mode>): Likewise.
31621
31622 2013-03-25 Catherine Moore <clm@codesourcery.com>
31623
31624 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31625 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31626 * config/mip/predicates.md (lwsp_swsp_operand,
31627 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31628 sb16_operand, db4_operand, db7_operand, ib3_operand,
31629 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31630 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31631 andi16_operand): New predicates.
31632 * config/mips/mips.md (compression): New attribute.
31633 (enabled): New attribute.
31634 (length): Consider compression in computing length.
31635 (shift_compression): New code attribute.
31636 (*add<mode>3): New operands. Record compression.
31637 (sub<mode>3): Likewise.
31638 (one_cmpl<mode>2): Likewise.
31639 (*and<mode>3): Likewise.
31640 (*ior<mode>3): Likewise.
31641 (unnamed pattern for xor): Likewise.
31642 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31643 (*<optab><mode>3): Likewise.
31644 (*mov<mode>_internal: Likewise.
31645 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31646 (mips_unsigned_immediate_p): New.
31647 (umips_lwsp_swsp_address_p): New.
31648 (m16_based_address_p): New.
31649 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31650 (mips_unsigned_immediate_p): New prototype.
31651 (lwsp_swsp_address_p): New prototype.
31652 (m16_based_address_p): New prototype.
31653 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31654 (mips_signed_immediate_p): New function.
31655 (m16_based_address_p): New function.
31656 (lwsp_swsp_address_p): New function.
31657 (mips_print_operand_punctuation): Recognize short delay slot insns
31658 for microMIPS.add<mode>3"
31659
31660 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31661
31662 PR target/56720
31663 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31664 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31665
31666 2013-03-25 Richard Biener <rguenther@suse.de>
31667
31668 PR tree-optimization/56689
31669 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31670 any edge.
31671
31672 2013-03-25 Richard Biener <rguenther@suse.de>
31673
31674 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31675 of bitmap.
31676 (memory_references): Likewise.
31677 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31678 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31679 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31680 (gather_mem_refs_in_loops): Fold into ...
31681 (analyze_memory_references): ... this. Move initialization
31682 to tree_ssa_lim_initialize.
31683 (fill_always_executed_in): Rename to ...
31684 (fill_always_executed_in_1): ... this.
31685 (fill_always_executed_in): Move contains_call computation to
31686 this new function from ...
31687 (tree_ssa_lim_initialize): ... here.
31688 (tree_ssa_lim): Call fill_always_executed_in.
31689
31690 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31691
31692 * postreload.c (reload_combine): Fix code detecting returns.
31693
31694 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31695
31696 * function.c (emit_use_return_register_into_block): On cc0 targets,
31697 do not emit the sequence between cc0 setter and user.
31698
31699 2013-03-25 Kai Tietz <ktietz@redhat.com>
31700
31701 * config/i386/predicates.md (local_symbolic_operand): Interpret
31702 dll-imported symbols as none-local.
31703
31704 2013-03-25 Richard Biener <rguenther@suse.de>
31705
31706 * tree-ssa-loop-im.c (struct depend): Remove.
31707 (struct lim_aux_data): Make depends a vec of gimples.
31708 (free_lim_aux_data): Adjust.
31709 (add_dependency): Likewise.
31710 (set_level): Likewise.
31711
31712 2013-03-25 Richard Biener <rguenther@suse.de>
31713
31714 PR middle-end/56434
31715 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31716 the pointer returned by calls with ECF_MALLOC set.
31717
31718 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31719
31720 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31721
31722 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31723
31724 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31725 using MMXMODE mode iterator.
31726 (*move<mode>_internal): Merge with *movv2sf_internal and
31727 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31728
31729 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31730
31731 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31732 (record_last_mem_set_info): Likewise.
31733
31734 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31735 of XNEWVEC followed by memset.
31736 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31737
31738 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31739
31740 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31741 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31742 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31743 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31744 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31745 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31746 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31747 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31748 BARRIER_P instead of GET_CODE.
31749
31750 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31751
31752 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31753 inaccuracy in the probing code.
31754
31755 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31756 (ctrapdi4): Likewise.
31757
31758 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31759
31760 * calls.c (expand_call): Add missing guard to code handling return
31761 of non-BLKmode structures in MSB.
31762 * function.c (expand_function_end): Likewise.
31763
31764 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31765
31766 * combine.c (try_combine): Adjust comment. Do not add the set of
31767 insn #0 if the destination indirectly is set or dies in insn #2.
31768 Tidy up code to distribute a new note.
31769
31770 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31771
31772 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31773 also for alternatives 16 and 17.
31774
31775 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31776
31777 * config/i386/sse.md (*mov<mode>_internal): Merge with
31778 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
31779 Emit insn template depending on type attribute. Use
31780 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31781 movd instead of movq mnemonic for interunit moves. Rewrite mode
31782 attribute calculation. Remove unit attribute calculation.
31783 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31784 Set prefix_data16 attribute for DImode ssemov types.
31785 Use Ym instead of y for SSE-MMX conversion alternatives.
31786 Reorder operand constraints.
31787
31788 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
31789
31790 * df.h (df_insn_delete): Adjust prototype.
31791 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31792 and let it decide whether mark the basic block dirty.
31793 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31794 * df-scan.c (df_insn_info_delete): New helper function, split
31795 off from df_insn_delete.
31796 (df_scan_free_bb_info): Use it.
31797 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31798 Likewise.
31799 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
31800 that the insn is actually an insn and it has a non-NULL basic block.
31801 Do not mark basic block dirty if only deleting a DEBUG_INSN.
31802
31803 2013-03-22 Richard Biener <rguenther@suse.de>
31804
31805 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31806 dep_ref members.
31807 (mem_ref_alloc): Do not allocate them.
31808 (refs_independent_p): Do not query or maintain a cache.
31809
31810 2013-03-22 Richard Biener <rguenther@suse.de>
31811
31812 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31813 (gather_mem_refs_in_loops): Do not compute it.
31814 (analyze_memory_references): Do not allocate it.
31815 (tree_ssa_lim_finalize): Do not free it.
31816 (for_all_locs_in_loop): Do not query all_refs_in_loop.
31817
31818 2013-03-22 Richard Biener <rguenther@suse.de>
31819
31820 * is-a.h (as_a): Use gcc_checking_assert.
31821
31822 2013-03-22 Ian Bolton <ian.bolton@arm.com>
31823
31824 * config/aarch64/aarch64.c (aarch64_print_operand): New
31825 format specifier for printing a constant in hex.
31826 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31827 format specifier for printing second operand.
31828
31829 2013-03-22 Richard Biener <rguenther@suse.de>
31830
31831 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31832 bitmaps.
31833 (gather_mem_refs_in_loops): Perform store accumulation here.
31834 (create_vop_ref_mapping_loop): Remove.
31835 (create_vop_ref_mapping): Likewise.
31836 (analyze_memory_references): Initialize refs_stored_in_loop.
31837 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31838 (record_indep_loop): Remove.
31839 (record_dep_loop): New function.
31840 (ref_indep_loop_p_1): Adjust to only walk over references
31841 in the loop, not its subloops.
31842 (ref_indep_loop_p): Rename to ...
31843 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31844 maintaining a more fine-grained cache.
31845 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31846 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31847
31848 2013-03-22 Richard Biener <rguenther@suse.de>
31849
31850 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31851 (struct mem_ref): Make accesses_in_loop a vec of a vec of
31852 aggregate mem_ref_loc.
31853 (free_mem_ref_locs): Inline into ...
31854 (memref_free): ... this and adjust.
31855 (mem_ref_alloc): Adjust.
31856 (mem_ref_locs_alloc): Remove.
31857 (record_mem_ref_loc): Adjust.
31858 (get_all_locs_in_loop): Rewrite into ...
31859 (for_all_locs_in_loop): ... this iterator.
31860 (rewrite_mem_ref_loc): New functor.
31861 (rewrite_mem_refs): Use for_all_locs_in_loop.
31862 (sm_set_flag_if_changed): New functor.
31863 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31864 (ref_always_accessed): New functor.
31865 (ref_always_accessed_p): Use for_all_locs_in_loop.
31866
31867 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31868
31869 * tree-pass.h (PROP_gimple_lvec): New.
31870 * passes.c (dump_properties): Handle PROP_gimple_lvec.
31871 (init_optimization_passes): Move pass_lower_vector.
31872 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31873 PROP_gimple_lvec.
31874 (pass_lower_vector): Provide PROP_gimple_lvec.
31875 (pass_lower_vector_ssa): Likewise.
31876 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31877
31878 2013-03-21 Mark Wielaard <mjw@redhat.com>
31879
31880 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31881
31882 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31883
31884 * config/i386/i386.md (*movdi_internal): Disparage slightly
31885 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
31886 conversion alternatives.
31887
31888 2013-03-21 Jakub Jelinek <jakub@redhat.com>
31889
31890 PR middle-end/48087
31891 * diagnostic.def (DK_WERROR): New kind.
31892 * diagnostic.h (werrorcount): Define.
31893 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31894 promoted to DK_ERROR, increment DK_WERROR counter instead of
31895 DK_ERROR counter.
31896 * toplev.c (toplev_main): Call print_ignored_options even if
31897 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
31898 even if just werrorcount is non-zero.
31899
31900 PR debug/55608
31901 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31902 on failure.
31903 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31904 (string_cst_pool_decl): New function.
31905 (optimize_one_addr_into_implicit_ptr): New function.
31906 (resolve_addr_in_expr): Optimize DWARF location expression
31907 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31908 which doesn't live in memory, but has DW_AT_location or
31909 DW_AT_const_value, or refers to a string literal, into
31910 DW_OP_GNU_implicit_pointer.
31911 (optimize_location_into_implicit_ptr): New function.
31912 (resolve_addr): If removing DW_AT_location of a variable because
31913 it was DW_OP_addr of address of the variable, but the variable doesn't
31914 live in memory, try to emit const value attribute for the initializer.
31915
31916 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31917
31918 * tree.h (VECTOR_TYPE_P): New macro.
31919 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31920 TYPE_MODE): Use it.
31921 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31922 VEC_COND_EXPR cannot be lvalues.
31923 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31924
31925 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31926
31927 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31928 Restrict the transformation to equal modes.
31929
31930 2013-03-21 Richard Biener <rguenther@suse.de>
31931
31932 PR tree-optimization/39326
31933 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31934 (MEM_ANALYZABLE): Adjust.
31935 (record_mem_ref_loc): Move bitmap ops ...
31936 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
31937 unanalyzable refs, do not record locations for it.
31938 (analyze_memory_references): Allocate ref zero as shared
31939 unanalyzable ref.
31940 (refs_independent_p): Do not test for unanalyzed mems here.
31941 (ref_indep_loop_p_1): Special-case disambiguation against
31942 the unanalyzed ref.
31943 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31944
31945 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
31946
31947 * config/arm/arm-protos.h (tune_params): Add
31948 prefer_neon_for_64bits field.
31949 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31950 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31951 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31952 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31953 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31954 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31955 (arm_option_override): Handle -mneon-for-64bits new option.
31956 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31957 (prefer_neon_for_64bits): Declare new variable.
31958 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31959 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31960 (arch_enabled): Handle new arch types. Remove support for onlya8
31961 and nota8.
31962 (one_cmpldi2): Use new arch names.
31963 (zero_extend<mode>di2, extend<mode>di2): Ditto.
31964 * config/arm/arm.opt (mneon-for-64bits): Add option.
31965 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31966 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31967 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31968 of onlya8.
31969 * doc/invoke.texi (-mneon-for-64bits): Document.
31970
31971 2013-03-21 Richard Biener <rguenther@suse.de>
31972
31973 PR tree-optimization/39326
31974 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31975 (sort_bbs_in_loop_postorder_cmp): New function.
31976 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31977
31978 2013-03-21 Richard Biener <rguenther@suse.de>
31979
31980 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31981 (vect_insert_into_interleaving_chain): Likewise.
31982 (vect_drs_dependent_in_basic_block): Inline ...
31983 (vect_slp_analyze_data_ref_dependence): ... here. New function,
31984 split out from ...
31985 (vect_analyze_data_ref_dependence): ... here. Simplify.
31986 (vect_check_interleaving): Simplify.
31987 (vect_analyze_data_ref_dependences): Likewise. Split out ...
31988 (vect_slp_analyze_data_ref_dependences): ... this new function.
31989 (dr_group_sort_cmp): New function.
31990 (vect_analyze_data_ref_accesses): Compute data-reference groups
31991 here instead of in vect_analyze_data_ref_dependence. Use
31992 a more efficient algorithm.
31993 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31994 vect_slp_analyze_data_ref_dependences. Call
31995 vect_analyze_data_ref_accesses earlier.
31996 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31997 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31998 (vect_slp_analyze_data_ref_dependences): New prototype.
31999
32000 2013-03-21 Richard Biener <rguenther@suse.de>
32001
32002 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32003 ref is stored in the loop.
32004 (find_refs_for_sm): Walk only over all stores.
32005 (store_motion_loop): Allocate from lim_bitmap_obstack.
32006 (store_motion): Likewise.
32007
32008 2013-03-21 Richard Biener <rguenther@suse.de>
32009
32010 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32011 Update virtual SSA form.
32012
32013 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32014
32015 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32016 * configure: Regenerate.
32017 * config.in: Regenerate.
32018 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32019 if !HAVE_LD_EH_FRAME_CIEV3.
32020
32021 2013-03-21 Richard Biener <rguenther@suse.de>
32022
32023 * tree-cfg.c (verify_expr_no_block): New function.
32024 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32025 nor DECL_VALUE_EXPR have locations with associated blocks.
32026 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32027 (clear_unused_block_pointer): Remove code dealing with
32028 blocks in DECL_DEBUG_EXPR locations.
32029
32030 2013-03-21 Richard Biener <rguenther@suse.de>
32031
32032 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32033 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32034 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32035 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32036 instead of DECL_DEBUG_EXPR_IS_FROM.
32037 * gimplify.c (gimplify_modify_expr): Likewise.
32038 * tree-cfg.c (verify_expr_location_1): Likewise.
32039 * tree-complex.c (create_one_component_var): Likewise.
32040 * tree-sra.c (create_access_replacement): Likewise.
32041 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32042 (clear_unused_block_pointer): Likewise.
32043 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32044 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32045 * var-tracking.c (var_debug_decl): Likewise.
32046 (track_expr_p): Likewise.
32047 * tree-inline.c (add_local_variables): Likewise. Set
32048 DECL_HAS_DEBUG_EXPR_P after copying it.
32049 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32050 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32051
32052 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32053
32054 PR bootstrap/56656
32055 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32056 * configure: Regenerate.
32057 * config.in: Regenerate.
32058 * config/i386/i386.md (*movdf_internal): Use
32059 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32060 movd instead of movq mnemonic for interunit moves.
32061 (*movdi_internal): Ditto.
32062
32063 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32064
32065 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32066 (abd<mode>_3): New pattern.
32067 (aba<mode>_3): New pattern.
32068 (fabd<mode>_3): New pattern.
32069
32070 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32071
32072 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32073 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32074 occurrence of REGISTER_PREFIX as its empty string.
32075
32076 2013-03-20 Jeff Law <law@redhat.com>
32077
32078 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32079 addititional equivalences for equality comparisons between an SSA_NAME
32080 and a constant where the SSA_NAME was set from a widening conversion.
32081
32082 2013-03-20 Walter Lee <walt@tilera.com>
32083
32084 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32085
32086 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32087
32088 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32089 depending on type attribute.
32090 (*movti_internal): Ditto.
32091 (*movtf_internal): Ditto.
32092 (*movxf_internal): Ditto.
32093 (*movdf_internal): Ditto.
32094 (*movsf_internal): Ditto.
32095
32096 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32097
32098 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32099 maybe_vex for sselog1 and ssemov types.
32100 (*movdi_internal): Reorder operand constraints.
32101 (*movsi_internal): Ditto. Set prefix attribute to
32102 maybe_vex for sselog1 and ssemov types.
32103 (*movtf_internal): Set prefix attribute to maybe_vex
32104 for sselog1 and ssemov types.
32105 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32106 DImode ssemov types. Reorder operand constraints.
32107 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32108 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32109 attribute for SImode ssemov types. Reorder operand constraints.
32110
32111 2013-03-20 Martin Jambor <mjambor@suse.cz>
32112
32113 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32114 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32115
32116 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32117
32118 * config/rs6000/predicates.md (indexed_address, update_address_mem
32119 update_indexed_address_mem): New predicates.
32120 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32121 attribute for load/store instructions.
32122 * config/rs6000/dfp.md (movsd_store): Likewise.
32123 (movsd_load): Likewise.
32124 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32125 (unnamed HI->DI extend define_insn): Likewise.
32126 (unnamed SI->DI extend define_insn): Likewise.
32127 (unnamed QI->SI extend define_insn): Likewise.
32128 (unnamed QI->HI extend define_insn): Likewise.
32129 (unnamed HI->SI extend define_insn): Likewise.
32130 (unnamed HI->SI extend define_insn): Likewise.
32131 (extendsfdf2_fpr): Likewise.
32132 (movsi_internal1): Likewise.
32133 (movsi_internal1_single): Likewise.
32134 (movhi_internal): Likewise.
32135 (movqi_internal): Likewise.
32136 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32137 attribute for load/store instructions.
32138 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32139 instructions.
32140 (mov<mode>_softfloat): Likewise.
32141 (mov<mode>_hardfloat32): Likewise.
32142 (mov<mode>_hardfloat64): Likewise.
32143 (mov<mode>_softfloat64): Likewise.
32144 (movdi_internal32): Likewise.
32145 (movdi_internal64): Likewise.
32146 (probe_stack_<mode>): Likewise.
32147
32148 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32149
32150 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32151 floating point, and decimal floating point to reload iterator.
32152
32153 * config/rs6000/constraints.md (wl constraint): New constraints to
32154 return FLOAT_REGS if certain options are used to reduce the number
32155 of separate patterns that exist in the file.
32156 (wx constraint): Likewise.
32157 (wz constraint): Likewise.
32158
32159 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32160 -mdebug=reg, print wg, wl, wx, and wz constraints.
32161 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32162 Initialize the reload functions for 64-bit binary/decimal floating
32163 point types.
32164 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32165 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32166 create the buffer on the stack to overcome not having a 32-bit
32167 load and store.
32168 (rs6000_emit_move): Likewise.
32169 (rs6000_secondary_memory_needed_rtx): Likewise.
32170 (rs6000_alloc_sdmode_stack_slot): Likewise.
32171 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32172 via xxlxor, just like DFmode 0.0.
32173
32174 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32175 define as 1 if we are running on a power7 or newer.
32176 (enum r6000_reg_class_enum): Add new constraints.
32177
32178 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32179 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32180 with other moves by using conditional constraits (wg). Use LFIWZX
32181 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32182 (movsd splitter): Likewise.
32183 (movsd_hardfloat): Likewise.
32184 (movsd_softfloat): Likewise.
32185
32186 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32187 binary and decimal floating point moves.
32188 (fmove_ok): New attributes to combine binary and decimal floating
32189 point moves, and to combine power6x (mfpgpr) moves along normal
32190 floating moves.
32191 (real_value_to_target): Likewise.
32192 (f32_lr): Likewise.
32193 (f32_lm): Likewise.
32194 (f32_li): Likewise.
32195 (f32_sr): Likewise.
32196 (f32_sm): Likewise.
32197 (f32_si): Likewise.
32198 (movsf): Combine binary and decimal floating point moves. Combine
32199 power6x (mfpgpr) moves with other moves by using conditional
32200 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32201 (mov<mode> for SFmode/SDmode); Likewise.
32202 (SFmode/SDmode splitters): Likewise.
32203 (movsf_hardfloat): Likewise.
32204 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32205 (movsf_softfloat): Likewise.
32206 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32207
32208 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32209 wx and wz constraints.
32210
32211 * config/rs6000/constraints.md (wg constraint): New constraint to
32212 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32213
32214 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32215 constraint.
32216
32217 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32218 -mdebug=reg, print wg, wl, wx, and wz constraints.
32219 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32220 Initialize the reload functions for 64-bit binary/decimal floating
32221 point types.
32222 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32223 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32224 create the buffer on the stack to overcome not having a 32-bit
32225 load and store.
32226 (rs6000_emit_move): Likewise.
32227 (rs6000_secondary_memory_needed_rtx): Likewise.
32228 (rs6000_alloc_sdmode_stack_slot): Likewise.
32229 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32230 via xxlxor, just like DFmode 0.0.
32231
32232 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32233 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32234 with other moves by using conditional constraits (wg). Use LFIWZX
32235 and STFIWX for loading SDmode on power7.
32236 (movdd splitters): Likewise.
32237 (movdd_hardfloat32): Likewise.
32238 (movdd_softfloat32): Likewise.
32239 (movdd_hardfloat64_mfpgpr): Likewise.
32240 (movdd_hardfloat64): Likewise.
32241 (movdd_softfloat64): Likewise.
32242
32243 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32244 64-bit binary and decimal floating point moves.
32245 (FMOVE64X): Likewise.
32246 (movdf): Combine 64-bit binary and decimal floating point moves.
32247 Combine power6x (mfpgpr) moves with other moves by using
32248 conditional constraits (wg).
32249 (mov<mode> for DFmode/DDmode): Likewise.
32250 (DFmode/DDmode splitters): Likewise.
32251 (movdf_hardfloat32): Likewise.
32252 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32253 (movdf_softfloat32): Likewise.
32254 (movdf_hardfloat64_mfpgpr): Likewise.
32255 (movdf_hardfloat64): Likewise.
32256 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32257 (movdf_softfloat64): Likewise.
32258 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32259 (reload_<mode>_load): Move to later in the file so they aren't in
32260 the middle of the floating point move insns.
32261 (reload_<mode>_store): Likewise.
32262
32263 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32264 constraint.
32265
32266 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32267 constraint if -mdebug=reg.
32268 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32269 Enable using dd reload support if needed.
32270
32271 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32272 binary and decimal floating point moves in rs6000.md.
32273 (movtd_internal): Likewise.
32274
32275 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32276 decimal floating point moves.
32277 (movtf): Likewise.
32278 (movtf_internal): Likewise.
32279 (mov<mode>_internal, TDmode/TFmode): Likewise.
32280 (movtf_softfloat): Likewise.
32281 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32282
32283 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32284 movdi_internal64, using wg constraint for move direct operations.
32285 (movdi_internal64): Likewise.
32286
32287 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32288 MODES_TIEABLE_P for selected modes. Print the numerical value of
32289 the various virtual registers. Use GPR/FPR first/last values,
32290 instead of hard coding the register numbers. Print which modes
32291 have reload functions registered.
32292 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32293 settings before/after setting cpu, target and subtarget settings.
32294 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32295 and for secondary reload failures in rs6000_secondary_reload_inner.
32296 (rs6000_secondary_reload_fail): Likewise.
32297 (rs6000_secondary_reload_inner): Likewise.
32298
32299 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32300 macros for first/last GPR and FPR registers.
32301 (LAST_GPR_REGNO): Likewise.
32302 (FIRST_FPR_REGNO): Likewise.
32303 (LAST_FPR_REGNO): Likewise.
32304
32305 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32306 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32307 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32308 (vcond<mode><mode>): Likewise.
32309 (vcondu<mode><mode>): Likewise.
32310 (vector_gtu<mode>): Likewise.
32311 (vector_gte<mode>): Likewise.
32312 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32313 to prevent the compiler from converting DImode operations to TImode.
32314 (ior<mode>3): Likewise.
32315 (and<mode>3): Likewise.
32316 (one_cmpl<mode>2): Likewise.
32317 (nor<mode>3): Likewise.
32318 (andc<mode>3): Likewise.
32319
32320 * config/rs6000/constraints.md (wt constraint): New constraint
32321 that returns VSX_REGS if TImode is allowed in VSX registers.
32322
32323 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32324 constant under VSX.
32325
32326 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32327 similar to TImode, but it is restricted to being in the GPRs.
32328
32329 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32330 TImode to occupy a single VSX register.
32331
32332 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32333 -mvsx-timode for power7/power8.
32334 (power7 cpu): Likewise.
32335 (power8 cpu): Likewise.
32336
32337 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32338 sure that TFmode/TDmode take up two registers if they are ever
32339 allowed in the upper VSX registers.
32340 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32341 registers.
32342 (rs6000_init_hard_regno_mode_ok): Likewise.
32343 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32344 constraint. Print if LRA is turned on.
32345 (rs6000_option_override_internal): Give an error if -mvsx-timode
32346 and VSX is not enabled.
32347 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32348 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32349 to reg+offset addressing. Use PTImode when checking offset
32350 addresses for validity.
32351 (reg_offset_addressing_ok_p): Likewise.
32352 (rs6000_legitimate_offset_address_p): Likewise.
32353 (rs6000_legitimize_address): Likewise.
32354 (rs6000_legitimize_reload_address): Likewise.
32355 (rs6000_legitimate_address_p): Likewise.
32356 (rs6000_eliminate_indexed_memrefs): Likewise.
32357 (rs6000_emit_move): Likewise.
32358 (rs6000_secondary_reload): Likewise.
32359 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32360 reloads to fpr registers to continue to use reg+offset addressing,
32361 but 64-bit reloads to altivec registers need reg+reg addressing.
32362 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32363 it. Treat LO_SUM like a PLUS operation.
32364 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32365 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32366 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32367 registers to share a register with a smaller sized type, since VSX
32368 puts scalars in the upper 64-bits.
32369 (print_operand): Add support for PTImode.
32370 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32371 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32372 registers, but don't have arithmetic support.
32373 (rs6000_memory_move_cost): Add test for VSX.
32374 (rs6000_opt_masks): Add -mvsx-timode.
32375
32376 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32377 for TImode.
32378 (VSs): Likewise.
32379 (VSr): Use wt constraint for TImode.
32380 (VSv): Drop TImode support.
32381 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32382 (vsx_movti_64bit): Likewise.
32383 (vsx_movti_32bit): Likewise.
32384 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32385 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32386 one '?' on the appropriate output constraint. Do not allow TImode
32387 logical operations on 32-bit systems.
32388 (vsx_ior<mode>3): Likewise.
32389 (vsx_xor<mode>3): Likewise.
32390 (vsx_one_cmpl<mode>2): Likewise.
32391 (vsx_nor<mode>3): Likewise.
32392 (vsx_andc<mode>3): Likewise.
32393 (vsx_concat_<mode>): Likewise.
32394 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32395
32396 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32397 OPTION_MASK_VSX_TIMODE.
32398 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32399 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32400
32401 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32402 (TI2 iterator): New iterator for TImode, PTImode.
32403 (wd mode attribute): Add values for vector types.
32404 (movti_string): Replace TI move operations with operations for TImode
32405 and PTImode. Add support for TImode being allowed in VSX registers.
32406 (mov<mode>_string, TImode/PTImode): Likewise.
32407 (movti_ppc64): Likewise.
32408 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32409 (TI mode splitters): Likewise.
32410
32411 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32412 constraint.
32413
32414 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32415
32416 PR tree-optimization/56355
32417 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32418 Also handle integers with undefined overflow.
32419
32420 2013-03-20 Catherine Moore <clm@codesourcery.com>
32421 Maciej W. Rozycki <macro@codesourcery.com>
32422 Tom de Vries <tom@codesourcery.com>
32423 Nathan Sidwell <nathan@codesourcery.com>
32424 Iain Sandoe <iain@codesourcery.com>
32425 Nathan Froyd <froydnj@codesourcery.com>
32426 Chao-ying Fu <fu@mips.com>
32427
32428 * doc/extend.texi: (micromips, nomicromips, nocompression):
32429 Document new function attributes.
32430 * doc/invoke.texi (minterlink-compressed, mmicromips,
32431 m14k, m14ke, m14kec): Document new options.
32432 (minterlink-mips16): Update documentation.
32433 * doc/md.texi (ZC, ZD): Document new constraints.
32434 * configure.ac (gcc_cv_as_micromips): Check if linker
32435 supports the .set micromips directive.
32436 * configure: Regenerate.
32437 * config.in: Regenerate.
32438 * config/mips/mips-tables.opt: Regenerate.
32439 * config/mips/micromips.md: New file.
32440 * constraints.md (ZC, ZD): New constraints.
32441 * config/mips/predicates.md (movep_src_register): New predicate.
32442 (movep_src_operand): New predicate.
32443 (non_volatile_mem_operand): New predicate.
32444 * config/mips/mips.md (multimem): New type.
32445 (length): Differentiate between 17-bit and 18-bit branch offsets.
32446 (MOVEP1, MOVEP2): New mode iterator.
32447 (mov_<load>l): Use ZC constraint.
32448 (mov_<load>r): Likewise.
32449 (mov_<store>l): Likewise.
32450 (mov_<store>r): Likewise.
32451 (*branch_equality<mode>_inverted): Add microMIPS support.
32452 (*branch_equality<mode>): Likewise.
32453 (*jump_absolute): Likewise.
32454 (indirect_jump_<mode>): Likewise.
32455 (tablejump_<mode>): Likewise.
32456 (<optab>_internal): Likewise.
32457 (sibcall_internal): Likewise.
32458 (sibcall_value_internal): Likewise.
32459 (prefetch): Use constraint ZD.
32460 * config/mips/mips.opt (minterlink-compressed): New option.
32461 (minterlink-mips16): Now an alias for minterlink-compressed.
32462 (mmicromips): New option.
32463 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32464 (compare_and_swap_12): Likewise.
32465 (sync_add<mode>): Likewise.
32466 (sync_<optab>_12): Likewise.
32467 (sync_old_<optab>_12): Likewise.
32468 (sync_new_<optab>_12): Likewise.
32469 (sync_nand_12): Likewise.
32470 (sync_old_nand_12): Likewise.
32471 (sync_new_nand_12): Likewise.
32472 (sync_sub<mode>): Likewise.
32473 (sync_old_add<mode>): Likewise.
32474 (sync_old_sub<mode>): Likewise.
32475 (sync_new_add<mode>): Likewise.
32476 (sync_new_sub<mode>): Likewise.
32477 (sync_<optab><mode>): Likewise.
32478 (sync_old_<optab><mode>): Likewise.
32479 (sync_new_<optab><mode>): Likewise.
32480 (sync_nand<mode>): Likewise.
32481 (sync_old_nand<mode>): Likewise.
32482 (sync_new_nand<mode>): Likewise.
32483 (sync_lock_test_and_set<mode>): Likewise.
32484 (test_and_set_12): Likewise.
32485 (atomic_compare_and_swap<mode>): Likewise.
32486 (atomic_exchange<mode>_llsc): Likewise.
32487 (atomic_fetch_add<mode>_llsc): Likewise.
32488 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32489 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32490 (umips_save_restore_pattern_p): Likewise.
32491 (umips_load_store_pair_p): Likewise.
32492 (umips_output_load_store_pair): Likewise.
32493 (umips_movep_target_p): Likewise.
32494 (umips_12bit_offset_address_p): Likewise.
32495 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32496 (mips_base_mips16): Rename this...
32497 (mips_base_compression_flags): ...to this. Update all uses.
32498 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32499 (mips_mips16_decl_p): Delete.
32500 (mips_nomips16_decl_p): Delete.
32501 (mips_get_compress_on_flags): New function.
32502 (mips_get_compress_off_flags): New function.
32503 (mips_get_compress_mode): New function.
32504 (mips_get_compress_on_name): New function.
32505 (mips_get_compress_off_name): New function.
32506 (mips_insert_attributes): Support multiple compression types.
32507 (mips_merge_decl_attributes): Likewise.
32508 (umips_12bit_offset_address_p): New function.
32509 (mips_start_function_definition): Emit .set micromips directive.
32510 (mips_call_may_need_jalx_p): New function.
32511 (mips_function_ok_for_sibcall): Add microMIPS support.
32512 (mips_print_operand_punctuation): Support short delay slots and
32513 compact jumps.
32514 (umips_swm_mask, umips_swm_encoding): New.
32515 (umips_build_save_restore): New function.
32516 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32517 (was_mips16_p): Remove.
32518 (old_compression_mode): New.
32519 (mips_set_compression_mode): New function.
32520 (mips_set_current_function): Add microMIPS support.
32521 (mips_option_override): Likewise.
32522 (umips_save_restore_pattern_p): New function.
32523 (umips_output_save_restore): New function.
32524 (umips_load_store_pair_p_1): New function.
32525 (umips_load_store_pair_p): New function.
32526 (umips_output_load_store_pair_1): New function.
32527 (umips_output_load_store_pair): New function.
32528 (umips_movep_target_p) New function.
32529 (mips_prepare_pch_save): Add microMIPS support.
32530 * config/mips/mips.h (TARGET_COMPRESSION): New.
32531 (TARGET_CPU_CPP_BUILTINS): Update macro
32532 to use new compression flags and to support microMIPS.
32533 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32534 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32535 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32536 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32537 (ASM_SPEC): Support mmicromips and mno-micromips.
32538 (M16STORE_REG_P): New macro.
32539 (MIPS_CALL): Support TARGET_MICROMIPS.
32540 (MICROMIPS_J): New macro.
32541 (mips_base_mips16): Rename this...
32542 (mips_base_compression_flags): ...to this.
32543 (UMIPS_12BIT_OFFSET_P): New macro.
32544 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32545 (MULTILIB_DIRNAMES): Likewise.
32546 2013-03-20 Richard Biener <rguenther@suse.de>
32547
32548 PR tree-optimization/56661
32549 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32550 the result does not have to be distinct.
32551
32552 2013-03-20 Richard Biener <rguenther@suse.de>
32553
32554 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32555 remap_gimple_op_r.
32556
32557 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32558 Steven Bosscher <steven@gcc.gnu.org>
32559
32560 PR rtl-optimization/56605
32561 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32562
32563 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32564
32565 PR bootstrap/56656
32566 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32567 that require movd instead of movq.
32568
32569 2013-03-20 Richard Biener <rguenther@suse.de>
32570
32571 * tree-ssa-structalias.c (struct variable_info): Add pointer
32572 to the first field of an aggregate with sub-vars. Make
32573 this and the pointer to the next subfield its ID.
32574 (vi_next): New function.
32575 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32576 storedanything_id, integer_id): Increment by one.
32577 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32578 get_call_clobber_vi): Adjust.
32579 (solution_set_expand): Simplify and speedup.
32580 (solution_set_add): Inline into ...
32581 (set_union_with_increment): ... this. Adjust accordingly.
32582 (do_sd_constraint): Likewise.
32583 (do_ds_constraint): Likewise.
32584 (do_complex_constraint): Simplify.
32585 (build_pred_graph): Adjust.
32586 (solve_graph): Likewise. Simplify and speedup.
32587 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32588 get_constraint_for_component_ref, get_constraint_for_1,
32589 first_vi_for_offset, first_or_preceding_vi_for_offset,
32590 create_function_info_for, create_variable_info_for_1,
32591 create_variable_info_for, intra_create_variable_infos): Adjust.
32592 (init_base_vars): Push NULL for ID zero.
32593 (compute_points_to_sets): Adjust.
32594
32595 2013-03-20 Richard Biener <rguenther@suse.de>
32596
32597 * cfgloop.c (verify_loop_structure): Streamline and avoid
32598 ICEing on corrupt loop tree.
32599 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32600 loop tree.
32601
32602 2013-03-20 Richard Biener <rguenther@suse.de>
32603
32604 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32605 check whether an SSA update is needed.
32606
32607 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32608
32609 * config/mips/constraints.md (T): Rename to...
32610 (Yf): ...this.
32611 (U): Rename to...
32612 (Yd): ...this.
32613 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32614 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32615
32616 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32617
32618 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32619 (*subsi3_carryin_uxtw): Likewise.
32620
32621 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32622
32623 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32624 (*rorsi3_insn_uxtw): Likewise.
32625
32626 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32627
32628 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32629 (*extrsi5_insn_uxtw): Likewise.
32630
32631 2013-03-19 Richard Biener <rguenther@suse.de>
32632
32633 PR tree-optimization/56273
32634 * passes.c (init_optimization_passes): Move second VRP after DOM.
32635
32636 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32637
32638 * config/i386/i386.md (*movti_internal): Merge from
32639 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32640 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32641 nox64 isa attributes.
32642
32643 2013-03-18 Richard Biener <rguenther@suse.de>
32644
32645 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32646 (unite): Likewise.
32647 (merge_node_constraints): Likewise.
32648 (build_succ_graph): Likewise.
32649 (valid_graph_edge): Inline into single caller.
32650 (unify_nodes): Likewise. Use bitmap_set_bit return value
32651 and cache varinfo.
32652 (scc_visit): Fix formatting and variable use.
32653 (do_sd_constraint): Use gcc_checking_assert.
32654 (do_ds_constraint): Likewise.
32655 (do_complex_constraint): Likewise.
32656 (condense_visit): Likewise. Cleanup.
32657 (dump_pred_graph): New function.
32658 (perform_var_substitution): Dump the pred-graph before
32659 variable substitution.
32660 (find_equivalent_node): Use gcc_checking_assert.
32661 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32662
32663 2013-03-18 Richard Biener <rguenther@suse.de>
32664
32665 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32666 Remove cond_expr_stmt_list argument and do not gimplify the
32667 built expression.
32668 (vect_loop_versioning): Adjust.
32669 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32670 Cleanup to use less temporaries.
32671 (vect_create_data_ref_ptr): Cleanup.
32672
32673 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32674
32675 PR tree-optimization/56635
32676 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32677 require types_compatible_p types.
32678
32679 2013-03-18 Nick Clifton <nickc@redhat.com>
32680
32681 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32682 spurious backslash.
32683
32684 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32685 Add missing line to comment describing function.
32686
32687 2013-03-18 Richard Biener <rguenther@suse.de>
32688
32689 PR tree-optimization/56210
32690 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32691 Handle string / character search functions.
32692 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32693
32694 2013-03-18 Richard Biener <rguenther@suse.de>
32695
32696 PR middle-end/56483
32697 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32698 and implement properly.
32699 * gimple.h (gimple_cond_single_var_p): Remove.
32700
32701 2013-03-18 Richard Biener <rguenther@suse.de>
32702
32703 * tree-data-ref.h (find_data_references_in_loop): Declare.
32704 * tree-data-ref.c (get_references_in_stmt): Use a stack
32705 vector pre-allocated in the callers.
32706 (find_data_references_in_stmt): Adjust.
32707 (graphite_find_data_references_in_stmt): Likewise.
32708 (create_rdg_vertices): Likewise.
32709 (find_data_references_in_loop): Export.
32710 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32711 Compute dependences here...
32712 (vect_analyze_data_refs): ...not here. When we encounter
32713 a non-vectorizable data reference in basic-block vectorization
32714 truncate the data reference vector. Do not bother to
32715 fixup data-dependence information for gather loads.
32716 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32717 of data references, as reported.
32718
32719 2013-03-18 Richard Biener <rguenther@suse.de>
32720
32721 PR tree-optimization/3713
32722 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32723 has_constants and expr.
32724 (stmt_has_constants): Properly valueize SSA names when deciding
32725 whether the stmt has constants.
32726
32727 2013-03-18 Richard Biener <rguenther@suse.de>
32728
32729 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32730 whole function when there is nothing to do.
32731 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32732 * tree-vectorizer.c (vectorize_loops): Update virtual and
32733 loop-closed SSA once.
32734 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32735
32736 2013-03-18 Richard Biener <rguenther@suse.de>
32737
32738 PR middle-end/56113
32739 * domwalk.c (bb_postorder): New global static.
32740 (cmp_bb_postorder): New function.
32741 (walk_dominator_tree): Replace scheme imposing an order for
32742 visiting dominator sons by one sorting them at the time they
32743 are pushed on the stack.
32744
32745 2013-03-18 Richard Biener <rguenther@suse.de>
32746
32747 PR tree-optimization/39326
32748 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32749 (struct mem_ref): Replace mem member with ao_ref typed member.
32750 (MEM_ANALYZABLE): Adjust.
32751 (memref_eq): Likewise.
32752 (mem_ref_alloc): Likewise.
32753 (gather_mem_refs_stmt): Likewise.
32754 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32755 (execute_sm_if_changed_flag_set): Adjust.
32756 (execute_sm): Likewise.
32757 (ref_always_accessed_p): Likewise.
32758 (refs_independent_p): Likewise.
32759 (can_sm_ref_p): Likewise.
32760
32761 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32762
32763 PR c/56566
32764 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32765 return 1 even for !unsignedp.
32766
32767 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32768
32769 * config/i386/i386.md (isa): Add x64 and nox64.
32770 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32771 (*pushtf): Enable *roF alternative for x64 isa only.
32772 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
32773 mode attribute of integer alternatives to DImode for TARGET_64BIT.
32774 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
32775 (*movtf_internal): Merge from *movtf_internal_rex64 and
32776 *movtf_internal_sse. Use x64 and nox64 isa attributes.
32777 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
32778 nox64 isa attributes.
32779 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
32780 nox64 isa attributes.
32781 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32782
32783 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32784
32785 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32786
32787 2013-03-17 Jakub Jelinek <jakub@redhat.com>
32788
32789 PR target/56640
32790 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32791 class names. Remove trailing comma after "ALL_REGS".
32792
32793 2013-03-16 Jan Hubicka <jh@suse.cz>
32794
32795 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32796 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32797 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32798 of cgraph_get_create_node.
32799 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32800
32801 2013-03-16 Jason Merrill <jason@redhat.com>
32802
32803 PR debug/49090
32804 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32805 with DW_AT_default_value.
32806
32807 2013-03-16 Jakub Jelinek <jakub@redhat.com>
32808
32809 * BASE-VER: Set to 4.9.0.
32810
32811 2013-03-14 Andi Kleen <ak@linux.intel.com>
32812
32813 PR target/56619
32814 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32815 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32816 Document _x* TSX intrinsics.
32817
32818 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32819 David Holsgrove <david.holsgrove@xilinx.com>
32820
32821 * configure.ac: Add MicroBlaze TLS support detection.
32822 * configure: Regenerate.
32823 * config/microblaze/microblaze-protos.h
32824 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32825 symbol_mentioned_p, label_mentioned_p): Add prototypes.
32826 * config/microblaze/microblaze.c (microblaze_address_type): Add
32827 ADDRESS_TLS and tls_reloc address types.
32828 (microblaze_address_info): Add tls_reloc.
32829 (TARGET_HAVE_TLS): Define.
32830 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32831 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32832 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32833 load_tls_operand, microblaze_call_tls_get_addr,
32834 microblaze_legitimize_tls_address): New functions.
32835 (microblaze_classify_unspec): Handle UNSPEC_TLS.
32836 (get_base_reg): Use microblaze_tls_symbol_p.
32837 (microblaze_classify_address): Handle TLS.
32838 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32839 label_mentioned_p and microblaze_tls_referenced_p.
32840 (microblaze_legitimize_address): Handle TLS.
32841 (microblaze_address_insns): Handle ADDRESS_TLS.
32842 (pic_address_needs_scratch): Handle TLS.
32843 (print_operand_address): Handle TLS.
32844 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32845 (microblaze_expand_move): Handle TLS.
32846 (microblaze_legitimate_constant_p): Check
32847 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32848 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32849 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32850 (PIC_OFFSET_TABLE_REGNUM): Set.
32851 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32852 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32853 (addsi3, movsi_internal2, movdf_internal): Update constraints
32854 * config/microblaze/predicates.md (arith_plus_operand): Define
32855 (move_operand): Redefine as move_src_operand,
32856 check microblaze_tls_referenced_p.
32857
32858 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32859
32860 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32861 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32862
32863 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32864
32865 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32866 CC mode for AND.
32867
32868 2013-03-14 Jakub Jelinek <jakub@redhat.com>
32869
32870 PR tree-optimization/53265
32871 * common.opt (Waggressive-loop-optimizations): New option.
32872 * tree-ssa-loop-niter.c: Include tree-pass.h.
32873 (do_warn_aggressive_loop_optimizations): New function.
32874 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
32875 if number_of_latch_executions returned constant.
32876 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32877 early. If number_of_latch_executions returned constant, set
32878 nb_iterations_upper_bound back to it.
32879 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32880 field.
32881 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32882 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32883
32884 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32885 (MULTILIB_OSDIRNAMES): Set.
32886 * genmultilib: If defaultosdirname doesn't start with :: , set
32887 defaultosdirname2 instead, clear it and emit two . multilib_raw
32888 entries instead of just one.
32889
32890 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
32891
32892 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32893 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32894 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32895 (SUBTARGET_OVERRIDE_OPTIONS): New.
32896
32897 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
32898
32899 PR target/49880
32900 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32901 (musermode): Convert to Var(TARGET_USERMODE).
32902 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32903 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32904 * config/sh/sh.c (sh_option_override): Use
32905 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32906 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32907 condition.
32908 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32909 TARGET_SH4.
32910 (udivsi3_i4_single, divsi3_i4_single): Use
32911 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32912
32913 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
32914
32915 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32916 default setting.
32917
32918 2013-03-13 Richard Biener <rguenther@suse.de>
32919
32920 PR tree-optimization/56608
32921 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32922 calls when vectorizing basic-blocks.
32923
32924 2013-03-13 Jakub Jelinek <jakub@redhat.com>
32925
32926 PR plugins/45078
32927 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32928 tm_file.
32929
32930 2013-03-12 Jakub Jelinek <jakub@redhat.com>
32931
32932 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32933
32934 2013-03-11 Jan Hubicka <jh@suse.cz>
32935
32936 PR lto/56557
32937 * lto-streamer-out.c (output_symbol_p): Skip references from
32938 constructors of external variables.
32939
32940 2013-03-11 Jan Hubicka <jh@suse.cz>
32941
32942 PR middle-end/56571
32943 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32944 from pseudos.
32945 * emit-rtl.c (verify_rtx_sharing): Likewise.
32946 (copy_insn_1): Likewise.
32947 * rtl.c (copy_rtx): Likewise.
32948
32949 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
32950
32951 PR target/56591
32952 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32953 output_operand_lossage message.
32954
32955 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
32956
32957 PR target/56470
32958 * arm.c (shift_op): Validate RTL pattern on the fly.
32959 (arm_print_operand, case 'S'): Don't use shift_operator to validate
32960 the RTL.
32961
32962 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32963
32964 PR target/56347
32965 * config/pa/pa.md (call_value): Check for calls to powf and direct to
32966 new call patterns that clobber %fr12.
32967 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32968 split and postreload patterns.
32969 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32970 registers %fr12 and %fr12R as call used.
32971
32972 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
32973
32974 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32975 (canon_address, record_store, replace_read, check_mem_read_rtx,
32976 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32977 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32978 rest_of_handle_dse): Likewise.
32979
32980 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
32981
32982 PR middle-end/56524
32983 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32984 Add base_optabs.
32985 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32986 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32987 (save_optabs_if_changed): Replace with...
32988 (init_tree_optimization_optabs): ...this.
32989 * optabs.c (save_optabs_if_changed): Rename to...
32990 (init_tree_optimization_optabs): ...this. Take the optimization node
32991 as argument. Do nothing if the base optabs are already correct.
32992 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32993 to recompute optabs.
32994 * function.h (function): Remove optabs field.
32995 * function.c (invoke_set_current_function_hook): Call
32996 init_tree_optimization_optabs. Use the result to initialize
32997 this_fn_optabs.
32998
32999 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33000
33001 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33002 if GTMA_HAS_NO_INSTRUMENTATION.
33003 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33004 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33005 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33006 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33007 GTMA_HAS_NO_INSTRUMENTATION.
33008
33009 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33010
33011 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33012 libasan_preinit.o.
33013
33014 2013-03-08 Marek Polacek <polacek@redhat.com>
33015 Jakub Jelinek <jakub@redhat.com>
33016
33017 PR tree-optimization/56478
33018 * predict.c (is_comparison_with_loop_invariant_p): Change the
33019 type of loop_step to tree.
33020 (predict_loops): Adjust.
33021 (predict_iv_comparison): Perform the computations on double_ints.
33022
33023 2013-03-08 Richard Biener <rguenther@suse.de>
33024
33025 PR tree-optimization/56570
33026 * tree-cfg.c (verify_expr_location_1): Verify locations for
33027 DECL_DEBUG_EXPR.
33028 * tree-sra.c (create_access_replacement): Strip locations
33029 from DECL_DEBUG_EXPRs.
33030
33031 2013-03-08 Richard Biener <rguenther@suse.de>
33032
33033 * tree-inline.c (expand_call_inline): Do not associate
33034 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33035 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33036
33037 2013-03-08 Richard Biener <rguenther@suse.de>
33038
33039 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33040 or block changes with -Og. Fix for location / block encoding
33041 changes and PHI arguments with locations.
33042
33043 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33044
33045 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33046 for all counters.
33047 (struct output_info): Likewise.
33048 (register_overhead): Remove bad gcc_assert.
33049 (bitmap_find_bit): If there is only a single bitmap element, do not
33050 count a miss as a search.
33051 (print_statistics): Update for counter type changes.
33052 (dump_bitmap_statistics): Likewise. Print headers such that they
33053 are properly lined up with the printed counters.
33054
33055 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33056
33057 PR tree-optimization/56559
33058 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33059 check that it has only a single use.
33060
33061 2013-03-07 Richard Biener <rguenther@suse.de>
33062
33063 * doc/invoke.texi (fwhole-program): Discourage use in combination
33064 with -flto.
33065
33066 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33067
33068 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33069
33070 PR tree-optimization/56539
33071 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33072 instead of GSI_CONTINUE_LINKING as last argument to
33073 force_gimple_operand_gsi. Adjust function comment.
33074
33075 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33076 aarch64-cores.def.
33077
33078 PR middle-end/56548
33079 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33080 promoted mode, convert the result back to the original mode.
33081
33082 2013-03-06 Richard Biener <rguenther@suse.de>
33083
33084 PR middle-end/56294
33085 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33086 (insert_updated_phi_nodes_compare_uids): New function.
33087 (update_ssa): Sort symbols_to_rename after UID before
33088 traversing it to insert PHI nodes.
33089
33090 2013-03-06 Richard Biener <rguenther@suse.de>
33091
33092 PR middle-end/50494
33093 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33094 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33095
33096 Revert
33097 2013-02-13 Richard Biener <rguenther@suse.de>
33098
33099 PR lto/50494
33100 * varasm.c (output_constant_def_1): Get the decl representing
33101 the constant as argument.
33102 (output_constant_def): Wrap output_constant_def_1.
33103 (make_decl_rtl): Use output_constant_def_1 with the decl
33104 representing the constant.
33105 (build_constant_desc): Optionally re-use a decl already
33106 representing the constant.
33107 (tree_output_constant_def): Adjust.
33108
33109 2013-03-06 Joey Ye <joey.ye@arm.com>
33110
33111 PR lto/50293
33112 * gcc.c (convert_white_space): New function.
33113 (main): Handles white space in function name.
33114
33115 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33116
33117 PR target/56529
33118 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33119 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33120 to SH_DIV_CALL_TABLE for TARGET_SH2.
33121 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33122 list.
33123 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33124 call-table options.
33125
33126 2013-03-05 Sterling Augustine <saugustine@google.com>
33127 Cary Coutant <ccoutant@google.com>
33128
33129 PR debug/55364
33130 * dwarf2out.c (resolve_addr): Don't call
33131 remove_loc_list_addr_table_entries a second time for the same
33132 expression.
33133
33134 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33135
33136 PR debug/56510
33137 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33138 (avoid_complex_debug_insns): New function.
33139 (expand_debug_locations): Call it.
33140
33141 PR rtl-optimization/56484
33142 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33143 lifetimes of hard registers on small register class machines.
33144
33145 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33146
33147 * config/microblaze/microblaze-protos.h: Rename
33148 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33149 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33150 fast_interrupt.
33151 (microblaze_fast_interrupt_function_p): New function.
33152 (microblaze_is_interrupt_handler): Rename to
33153 microblaze_is_interrupt_variant and add fast_interrupt check.
33154 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33155 (save_restore_insns): Likewise.
33156 (compute_frame_size): Likewise.
33157 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33158 (microblaze_globalize_label): Likewise.
33159 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33160 * config/microblaze/microblaze.md: Use wrapper
33161 microblaze_is_interrupt_variant.
33162
33163 2013-03-05 Kai Tietz <ktietz@redhat.com>
33164
33165 * sdbout.c (sdbout_one_type): Switch to current function's section
33166 supporting cold/hot.
33167
33168 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33169
33170 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33171 -mxl-reorder.
33172
33173 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33174
33175 PR middle-end/56461
33176 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33177 if VALGRIND_GET_VBITS is defined, temporarily make object
33178 memory all defined, and restore previous valgrind addressability
33179 and definability afterwards. Free this_object at the end.
33180
33181 PR middle-end/56461
33182 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33183 right before calling lra_create_live_ranges, also call it
33184 when clearing live_p. Only call lra_clear_live_ranges
33185 at the end if live_p.
33186
33187 PR middle-end/56461
33188 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33189
33190 2013-03-05 Richard Biener <rguenther@suse.de>
33191
33192 PR tree-optimization/56521
33193 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33194 value-id.
33195
33196 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33197
33198 PR c++/55135
33199 * except.h (remove_unreachable_eh_regions): New prototype.
33200 * except.c (remove_eh_handler_splicer): New function, split out
33201 of remove_eh_handler.
33202 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33203 warning about running it on many EH regions one at a time.
33204 (remove_unreachable_eh_regions_worker): New function, walk the
33205 EH tree in depth-first order and remove non-marked regions.
33206 (remove_unreachable_eh_regions): New function.
33207 * tree-eh.c (mark_reachable_handlers): New function, split out
33208 from remove_unreachable_handlers.
33209 (remove_unreachable_handlers): Use mark_reachable_handlers and
33210 remove_unreachable_eh_regions.
33211 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33212 and remove_unreachable_eh_regions.
33213
33214 2013-03-05 Richard Biener <rguenther@suse.de>
33215
33216 PR middle-end/56525
33217 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33218 not freeing them until the end.
33219
33220 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33221
33222 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33223
33224 2013-03-05 Richard Biener <rguenther@suse.de>
33225
33226 PR tree-optimization/56270
33227 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33228 of loads after scheduling an SLP instance.
33229
33230 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33231
33232 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33233 tic6x.exp.
33234 (check_gcc_parallelize): Run guality.exp as a separate job from
33235 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33236 struct-layout-1.exp with stackalign.exp.
33237
33238 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33239
33240 PR middle-end/56461
33241 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33242 load_index sbitmap even if some bit in it isn't set.
33243
33244 PR middle-end/56461
33245 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33246 (discover_iteration_bound_by_body_walk): Change queues to
33247 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33248 spelling in comment. Call safe_push on queues[bound_index] directly.
33249 Release queues[queue_index] in every iteration unconditionally.
33250 Release bounds vector.
33251
33252 PR middle-end/56461
33253 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33254 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33255 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33256 inner_phis vector.
33257
33258 2013-03-05 Richard Biener <rguenther@suse.de>
33259
33260 PR lto/56515
33261 * tree-inline.c (remap_blocks_to_null): New function.
33262 (expand_call_inline): When expanding a call stmt without
33263 an associated block inline remap all callee blocks to NULL.
33264
33265 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33266
33267 PR rtl-optimization/56494
33268 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33269 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33270 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33271
33272 PR middle-end/56461
33273 * sel-sched-ir.c (free_sched_pools): Release
33274 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33275 if succs_info_pool.max_top isn't -1.
33276
33277 PR bootstrap/56509
33278 * opts.c (opts_obstack, opts_concat): Moved to...
33279 * opts-common.c (opts_obstack, opts_concat): ... here.
33280
33281 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33282
33283 PR middle-end/56461
33284 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33285
33286 2013-03-04 Martin Jambor <mjambor@suse.cz>
33287
33288 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33289 all appropriate places.
33290
33291 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33292
33293 PR tree-optimization/56424
33294 * ipa-split.c (split_function): Do not set the RSO flag if result is
33295 not by reference and its type is a register type.
33296
33297 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33298
33299 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33300 (microblaze_legitimate_pic_operand): Likewise
33301 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33302 new function microblaze_legitimate_pic_operand
33303 * config/microblaze/microblaze-protos.h
33304 (microblaze_legitimate_pic_operand): Declare.
33305
33306 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33307
33308 * config/microblaze/predicates.md (call_insn_simple_operand):
33309 New predicate for supported rtx code types.
33310 * config/microblaze/microblaze.md (call_internal1): Use
33311 call_insn_simple_operand predicate.
33312
33313 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33314
33315 PR middle-end/56461
33316 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33317 partitions.ordered_remove.
33318
33319 PR middle-end/56461
33320 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33321 vec_oprnds0.create (1) for modifier == NONE.
33322
33323 PR middle-end/56461
33324 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33325 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33326 vec_oprnds1 right before pushing anything to it for
33327 scalar_shift_arg.
33328
33329 PR middle-end/56461
33330 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33331 set nbbs to 0 instead of having separate code path.
33332 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33333 instead of false as last argument if returning NULL.
33334
33335 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33336
33337 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33338 the attribute is now called "target" instead of "option".
33339 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33340 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33341 attribute/pragma name for TARGET_OPTION_VALID_P and
33342 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33343 * doc/tm.texi: Regenerated.
33344
33345 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33346
33347 * config/microblaze/microblaze.c:
33348 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33349 * config/microblaze/microblaze.h: Add -mxl-reorder to
33350 DRIVER_SELF_SPECS.
33351 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33352 instructions emitted if TARGET_REORDER.
33353 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33354 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33355 separately.
33356
33357 2013-03-01 Xinliang David Li <davidxl@google.com>
33358
33359 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33360 walk length.
33361
33362 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33363
33364 PR middle-end/56461
33365 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33366 vector even when returning true. Fix up function comment formatting.
33367
33368 PR middle-end/56461
33369 * ira-build.c (ira_loop_nodes_count): New variable.
33370 (create_loop_tree_nodes): Initialize it.
33371 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33372
33373 PR middle-end/56461
33374 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33375 method on dr_chain and result_chain.
33376 * tree-vect-stmts.c (vectorizable_store): Only call
33377 result_chain.create if j == 0.
33378
33379 PR middle-end/56461
33380 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33381 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33382 before overwriting it.
33383
33384 2013-03-01 Tobias Burnus <burnus@net-b.de>
33385
33386 * doc/extended.texi (C Extensions): Change order in @menu
33387 to match @node.
33388 (Other MIPS Built-in Functions): Move last MIPS entry before
33389 "picoChip Built-in Functions".
33390 (SH Built-in Functions): Move after RX Built-in Functions.
33391 * doc/gcc.texi (Introduction): Change order in @menu
33392 to match @node.
33393 * doc/md.texi (Constraints): Ditto.
33394 * gty.texi (Type Information): Ditto.
33395 (User-provided marking routines for template types): Make
33396 subsection.
33397 * doc/invoke.texi (AArch64 Options): Move before
33398 "Adapteva Epiphany Options".
33399
33400 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33401 Jakub Jelinek <jakub@redhat.com>
33402
33403 PR sanitizer/56454
33404 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33405 no_address_safety_analysis attribute.
33406 * doc/extend.texi (no_address_safety_attribute): Rename to
33407 no_sanitize_address attribute, mention no_address_safety_analysis
33408 attribute as deprecated alias.
33409
33410 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33411
33412 PR middle-end/56461
33413 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33414 type to vec<vec<tree> > *.
33415 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33416 to be vec<tree> instead of vec<tree> *, set vec_defs
33417 to vNULL and call vec_defs.create (number_of_vects), adjust other
33418 uses of vec_defs.
33419 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33420 vectorizable_condition): Adjust vect_get_slp_defs callers.
33421
33422 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33423
33424 * config/aarch64/aarch64.c
33425 (aarch64_float_const_representable): Remove unused variable.
33426
33427 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33428
33429 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33430
33431 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33432
33433 * config/aarch64/aarch64-builtins.c
33434 (aarch64_init_simd_builtins): Make static.
33435
33436 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33437
33438 * config/aarch64/aarch64.c
33439 (aarch64_simd_make_constant): Make static.
33440
33441 2013-02-28 Martin Jambor <mjambor@suse.cz>
33442
33443 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33444 with no initialization to the RHS of debug statements.
33445
33446 2013-02-28 Martin Jambor <mjambor@suse.cz>
33447
33448 PR tree-optimization/56294
33449 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33450 Adjust dumping.
33451 (get_access_replacement): Do not call create_access_replacement.
33452 Assert a replacement exists.
33453 (get_repl_default_def_ssa_name): Create the replacement declaration
33454 itself.
33455
33456 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33457
33458 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33459 final_end_function.
33460
33461 2013-02-28 Marek Polacek <polacek@redhat.com>
33462
33463 PR rtl-optimization/56466
33464 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33465 if we're changing a loop.
33466 (peel_loops_completely): Likewise.
33467
33468 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33469
33470 PR c++/55813
33471 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33472
33473 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33474
33475 PR target/56445
33476 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33477 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33478 INTX_FTYPE_FX, FX_FTYPE_INTX.
33479 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33480
33481 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33482
33483 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33484 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33485 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33486 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33487 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33488 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33489 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33490 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33491 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33492 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33493 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33494 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33495 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33496 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33497 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33498 (avrxmega6): Increase max flash segments from 5 to 6.
33499 * config/avr/t-multilib: Regenerate.
33500 * config/avr/avr-tables.opt: Regenerate.
33501 * doc/avr-mmcu.texi: Regenerate.
33502
33503 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33504
33505 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33506 (avr_device_to_arch): Rename to avr_device_to_ld.
33507 (avr_device_to_as): New prototype.
33508 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33509 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33510 * config/avr/driver-avr.c (avr_device_to_as): New.
33511 (avr_device_to_arch): Rename to avr_device_to_ld.
33512
33513 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33514
33515 PR middle-end/56461
33516 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33517 method on dr_chain and result_chain.
33518
33519 PR middle-end/56461
33520 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33521 pointer_set_destroy on not_executed_last_iteration.
33522
33523 PR middle-end/56461
33524 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33525
33526 PR middle-end/56461
33527 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33528 FOR_EACH_DEFINED_FUNCTION when freeing state.
33529
33530 PR middle-end/56461
33531 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33532 pool_free.
33533 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33534 overwriting it.
33535
33536 PR middle-end/56461
33537 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33538 known_aggs[i].items and release known_aggs vector.
33539
33540 PR middle-end/56461
33541 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33542
33543 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33544
33545 * config/microblaze/microblaze.c (microblaze_emit_compare):
33546 Use xor for EQ/NE comparisions.
33547 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33548 (cbranchsf4): Adjust operator to comparison_operator.
33549
33550 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33551
33552 PR middle-end/56461
33553 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33554 vector.
33555 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33556 vec_safe_push, always update *slot.
33557 (redirect_edge_var_map_clear): Use vec_free.
33558 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33559 (free_var_map_entry): Use vec_free.
33560 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33561 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33562
33563 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33564
33565 PR middle-end/45472
33566 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33567 when the may_trap_p bit of the exprs being merged differs.
33568 Reorder tests for speculativeness in the logical and operator.
33569
33570 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33571
33572 * incpath.c (add_standard_paths): Use reconcat instead of concat
33573 where appropriate and avoid leaking memory.
33574
33575 * opts.h: Include obstack.h.
33576 (opts_concat): New prototype.
33577 (opts_obstack): New declaration.
33578 * opts.c (opts_concat): New function.
33579 (opts_obstack): New variable.
33580 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33581 (finish_options): Use opts_concat instead of concat
33582 and XOBNEWVEC instead of XNEWVEC.
33583 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33584 generate_option): Likewise.
33585 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33586 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33587
33588 PR target/56455
33589 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33590 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33591
33592 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33593
33594 PR middle-end/56461
33595 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33596
33597 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33598
33599 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33600 (arm_block_move_unaligned_straight): Likewise.
33601 (arm_adjust_block_mem): Likewise.
33602
33603 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33604
33605 PR target/48901
33606 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33607 temp, cond and label.
33608 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33609
33610 PR target/52500
33611 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33612 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33613
33614 PR target/52501
33615 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33616 of prologue/epilogue functions.
33617
33618 PR target/52550
33619 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33620 Remove unused variable cfa_offset.
33621 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33622
33623 PR target/54639
33624 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33625 type promotion to unsigned.
33626
33627 PR target/54640
33628 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33629 for HOST_WIDE_INT of 32 bit / same size as int.
33630 (arm_block_move_unaligned_straight): Likewise.
33631 (arm_adjust_block_mem): Likewise.
33632
33633 PR target/54662
33634 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33635 ALL_CFLAGS.
33636
33637 2013-02-26 Marek Polacek <polacek@redhat.com>
33638
33639 PR tree-optimization/56426
33640 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33641
33642 2013-02-26 Richard Biener <rguenther@suse.de>
33643
33644 PR target/56444
33645 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33646 unused variable loops.
33647
33648 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33649
33650 PR tree-optimization/56448
33651 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33652 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33653 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33654 later operands of the references, or even first operand for
33655 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33656
33657 PR tree-optimization/56443
33658 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33659 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33660 to type_for_mode langhook.
33661
33662 2013-02-25 Matt Turner <mattst88@gmail.com>
33663
33664 * doc/invoke.texi: Document r4700.
33665
33666 2013-02-25 Richard Biener <rguenther@suse.de>
33667
33668 PR tree-optimization/56175
33669 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33670 split out from ...
33671 (simplify_bitwise_binary): ... here. Also guard the conversion
33672 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33673
33674 2013-02-25 Catherine Moore <clm@codesourcery.com>
33675
33676 Revert:
33677 2013-02-24 Catherine Moore <clm@codesourcery.com>
33678 Maciej W. Rozycki <macro@codesourcery.com>
33679 Tom de Vries <tom@codesourcery.com>
33680 Nathan Sidwell <nathan@codesourcery.com>
33681 Iain Sandoe <iain@codesourcery.com>
33682 Nathan Froyd <froydnj@codesourcery.com>
33683 Chao-ying Fu <fu@mips.com>
33684
33685 * doc/extend.texi: (micromips, nomicromips, nocompression):
33686 Document new function attributes.
33687 * doc/invoke.texi (minterlink-compressed, mmicromips,
33688 m14k, m14ke, m14kec): Document new options.
33689 (minterlink-mips16): Update documentation.
33690 * doc/md.texi (ZC, ZD): Document new constraints.
33691 * configure.ac (gcc_cv_as_micromips): Check if linker
33692 supports the .set micromips directive.
33693 * configure: Regenerate.
33694 * config.in: Regenerate.
33695 * config/mips/mips-tables.opt: Regenerate.
33696 * config/mips/micromips.md: New file.
33697 * constraints.md (ZC, AD): New constraints.
33698 * config/mips/predicates.md (movep_src_register): New predicate.
33699 (movep_src_operand): New predicate.
33700 (non_volatile_mem_operand): New predicate.
33701 * config/mips/mips.md (multimem): New type.
33702 (length): Differentiate between 17-bit and 18-bit branch offsets.
33703 (MOVEP1, MOVEP2): New mode iterator.
33704 (mov_<load>l): Use ZC constraint.
33705 (mov_<load>r): Likewise.
33706 (mov_<store>l): Likewise.
33707 (mov_<store>r): Likewise.
33708 (*branch_equality<mode>_inverted): Add microMIPS support.
33709 (*branch_equality<mode>): Likewise.
33710 (*jump_absolute): Likewise.
33711 (indirect_jump_<mode>): Likewise.
33712 (tablejump_<mode>): Likewise.
33713 (<optab>_internal): Likewise.
33714 (sibcall_internal): Likewise.
33715 (sibcall_value_internal): Likewise.
33716 (prefetch): Use constraint ZD.
33717 * config/mips/mips.opt (minterlink-compressed): New option.
33718 (minterlink-mips16): Now an alias for minterlink-compressed.
33719 (mmicromips): New option.
33720 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33721 (compare_and_swap_12): Likewise.
33722 (sync_add<mode>): Likewise.
33723 (sync_<optab>_12): Likewise.
33724 (sync_old_<optab>_12): Likewise.
33725 (sync_new_<optab>_12): Likewise.
33726 (sync_nand_12): Likewise.
33727 (sync_old_nand_12): Likewise.
33728 (sync_new_nand_12): Likewise.
33729 (sync_sub<mode>): Likewise.
33730 (sync_old_add<mode>): Likewise.
33731 (sync_old_sub<mode>): Likewise.
33732 (sync_new_add<mode>): Likewise.
33733 (sync_new_sub<mode>): Likewise.
33734 (sync_<optab><mode>): Likewise.
33735 (sync_old_<optab><mode>): Likewise.
33736 (sync_new_<optab><mode>): Likewise.
33737 (sync_nand<mode>): Likewise.
33738 (sync_old_nand<mode>): Likewise.
33739 (sync_new_nand<mode>): Likewise.
33740 (sync_lock_test_and_set<mode>): Likewise.
33741 (test_and_set_12): Likewise.
33742 (atomic_compare_and_swap<mode>): Likewise.
33743 (atomic_exchange<mode>_llsc): Likewise.
33744 (atomic_fetch_add<mode>_llsc): Likewise.
33745 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33746 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33747 (umips_save_restore_pattern_p): Likewise.
33748 (umips_load_store_pair_p): Likewise.
33749 (umips_output_load_store_pair): Likewise.
33750 (umips_movep_target_p): Likewise.
33751 (umips_12bit_offset_address_p): Likewise.
33752 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33753 (mips_base_mips16): Rename this...
33754 (mips_base_compression_flags): ...to this. Update all uses.
33755 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33756 (mips_mips16_decl_p): Delete.
33757 (mips_nomips16_decl_p): Delete.
33758 (mips_get_compress_on_flags): New function.
33759 (mips_get_compress_off_flags): New function.
33760 (mips_get_compress_mode): New function.
33761 (mips_get_compress_on_name): New function.
33762 (mips_get_compress_off_name): New function.
33763 (mips_insert_attributes): Support multiple compression types.
33764 (mips_merge_decl_attributes): Likewise.
33765 (umips_12bit_offset_address_p): New function.
33766 (mips_start_function_definition): Emit .set micromips directive.
33767 (mips_call_may_need_jalx_p): New function.
33768 (mips_function_ok_for_sibcall): Add microMIPS support.
33769 (mips_print_operand_punctuation): Support short delay slots and
33770 compact jumps.
33771 (umips_swm_mask, umips_swm_encoding): New.
33772 (umips_build_save_restore): New function.
33773 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33774 (was_mips16_p): Remove.
33775 (old_compression_mode): New.
33776 (mips_set_compression_mode): New function.
33777 (mips_set_current_function): Add microMIPS support.
33778 (mips_option_override): Likewise.
33779 (umips_save_restore_pattern_p): New function.
33780 (umips_output_save_restore): New function.
33781 (umips_load_store_pair_p_1): New function.
33782 (umips_load_store_pair_p): New function.
33783 (umips_output_load_store_pair_1): New function.
33784 (umips_output_load_store_pair): New function.
33785 (umips_movep_target_p) New function.
33786 (mips_prepare_pch_save): Add microMIPS support.
33787 * config/mips/mips.h (TARGET_COMPRESSION): New.
33788 (TARGET_CPU_CPP_BUILTINS): Update macro
33789 to use new compression flags and to support microMIPS.
33790 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33791 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33792 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33793 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33794 (ASM_SPEC): Support mmicromips and mno-micromips.
33795 (M16STORE_REG_P): New macro.
33796 (MIPS_CALL): Support TARGET_MICROMIPS.
33797 (MICROMIPS_J): New macro.
33798 (mips_base_mips16): Rename this...
33799 (mips_base_compression_flags): ...to this.
33800 (UMIPS_12BIT_OFFSET_P): New macro.
33801 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33802 (MULTILIB_DIRNAMES): Likewise.
33803
33804 2013-02-25 Tom de Vries <tom@codesourcery.com>
33805
33806 PR rtl-optimization/56131
33807 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33808 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33809 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33810
33811 2013-02-25 Tobias Burnus <burnus@net-b.de>
33812
33813 * doc/invoke.texi (-fsanitize=): Move from optimization
33814 to debugging options.
33815
33816 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33817
33818 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33819
33820 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33821 Alexander Monakov <amonakov@ispras.ru>
33822
33823 PR middle-end/56077
33824 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33825 flush pending lists also on non-jumps. Adjust comment.
33826
33827 2013-02-24 Catherine Moore <clm@codesourcery.com>
33828 Maciej W. Rozycki <macro@codesourcery.com>
33829 Tom de Vries <tom@codesourcery.com>
33830 Nathan Sidwell <nathan@codesourcery.com>
33831 Iain Sandoe <iain@codesourcery.com>
33832 Nathan Froyd <froydnj@codesourcery.com>
33833 Chao-ying Fu <fu@mips.com>
33834
33835 * doc/extend.texi: (micromips, nomicromips, nocompression):
33836 Document new function attributes.
33837 * doc/invoke.texi (minterlink-compressed, mmicromips,
33838 m14k, m14ke, m14kec): Document new options.
33839 (minterlink-mips16): Update documentation.
33840 * doc/md.texi (ZC, ZD): Document new constraints.
33841 * configure.ac (gcc_cv_as_micromips): Check if linker
33842 supports the .set micromips directive.
33843 * configure: Regenerate.
33844 * config.in: Regenerate.
33845 * config/mips/mips-tables.opt: Regenerate.
33846 * config/mips/micromips.md: New file.
33847 * constraints.md (ZC, AD): New constraints.
33848 * config/mips/predicates.md (movep_src_register): New predicate.
33849 (movep_src_operand): New predicate.
33850 (non_volatile_mem_operand): New predicate.
33851 * config/mips/mips.md (multimem): New type.
33852 (length): Differentiate between 17-bit and 18-bit branch offsets.
33853 (MOVEP1, MOVEP2): New mode iterator.
33854 (mov_<load>l): Use ZC constraint.
33855 (mov_<load>r): Likewise.
33856 (mov_<store>l): Likewise.
33857 (mov_<store>r): Likewise.
33858 (*branch_equality<mode>_inverted): Add microMIPS support.
33859 (*branch_equality<mode>): Likewise.
33860 (*jump_absolute): Likewise.
33861 (indirect_jump_<mode>): Likewise.
33862 (tablejump_<mode>): Likewise.
33863 (<optab>_internal): Likewise.
33864 (sibcall_internal): Likewise.
33865 (sibcall_value_internal): Likewise.
33866 (prefetch): Use constraint ZD.
33867 * config/mips/mips.opt (minterlink-compressed): New option.
33868 (minterlink-mips16): Now an alias for minterlink-compressed.
33869 (mmicromips): New option.
33870 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33871 (compare_and_swap_12): Likewise.
33872 (sync_add<mode>): Likewise.
33873 (sync_<optab>_12): Likewise.
33874 (sync_old_<optab>_12): Likewise.
33875 (sync_new_<optab>_12): Likewise.
33876 (sync_nand_12): Likewise.
33877 (sync_old_nand_12): Likewise.
33878 (sync_new_nand_12): Likewise.
33879 (sync_sub<mode>): Likewise.
33880 (sync_old_add<mode>): Likewise.
33881 (sync_old_sub<mode>): Likewise.
33882 (sync_new_add<mode>): Likewise.
33883 (sync_new_sub<mode>): Likewise.
33884 (sync_<optab><mode>): Likewise.
33885 (sync_old_<optab><mode>): Likewise.
33886 (sync_new_<optab><mode>): Likewise.
33887 (sync_nand<mode>): Likewise.
33888 (sync_old_nand<mode>): Likewise.
33889 (sync_new_nand<mode>): Likewise.
33890 (sync_lock_test_and_set<mode>): Likewise.
33891 (test_and_set_12): Likewise.
33892 (atomic_compare_and_swap<mode>): Likewise.
33893 (atomic_exchange<mode>_llsc): Likewise.
33894 (atomic_fetch_add<mode>_llsc): Likewise.
33895 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33896 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33897 (umips_save_restore_pattern_p): Likewise.
33898 (umips_load_store_pair_p): Likewise.
33899 (umips_output_load_store_pair): Likewise.
33900 (umips_movep_target_p): Likewise.
33901 (umips_12bit_offset_address_p): Likewise.
33902 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33903 (mips_base_mips16): Rename this...
33904 (mips_base_compression_flags): ...to this. Update all uses.
33905 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33906 (mips_mips16_decl_p): Delete.
33907 (mips_nomips16_decl_p): Delete.
33908 (mips_get_compress_on_flags): New function.
33909 (mips_get_compress_off_flags): New function.
33910 (mips_get_compress_mode): New function.
33911 (mips_get_compress_on_name): New function.
33912 (mips_get_compress_off_name): New function.
33913 (mips_insert_attributes): Support multiple compression types.
33914 (mips_merge_decl_attributes): Likewise.
33915 (umips_12bit_offset_address_p): New function.
33916 (mips_start_function_definition): Emit .set micromips directive.
33917 (mips_call_may_need_jalx_p): New function.
33918 (mips_function_ok_for_sibcall): Add microMIPS support.
33919 (mips_print_operand_punctuation): Support short delay slots and
33920 compact jumps.
33921 (umips_swm_mask, umips_swm_encoding): New.
33922 (umips_build_save_restore): New function.
33923 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33924 (was_mips16_p): Remove.
33925 (old_compression_mode): New.
33926 (mips_set_compression_mode): New function.
33927 (mips_set_current_function): Add microMIPS support.
33928 (mips_option_override): Likewise.
33929 (umips_save_restore_pattern_p): New function.
33930 (umips_output_save_restore): New function.
33931 (umips_load_store_pair_p_1): New function.
33932 (umips_load_store_pair_p): New function.
33933 (umips_output_load_store_pair_1): New function.
33934 (umips_output_load_store_pair): New function.
33935 (umips_movep_target_p) New function.
33936 (mips_prepare_pch_save): Add microMIPS support.
33937 * config/mips/mips.h (TARGET_COMPRESSION): New.
33938 (TARGET_CPU_CPP_BUILTINS): Update macro
33939 to use new compression flags and to support microMIPS.
33940 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33941 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33942 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33943 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33944 (ASM_SPEC): Support mmicromips and mno-micromips.
33945 (M16STORE_REG_P): New macro.
33946 (MIPS_CALL): Support TARGET_MICROMIPS.
33947 (MICROMIPS_J): New macro.
33948 (mips_base_mips16): Rename this...
33949 (mips_base_compression_flags): ...to this.
33950 (UMIPS_12BIT_OFFSET_P): New macro.
33951 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33952 (MULTILIB_DIRNAMES): Likewise.
33953
33954 2013-02-24 Jakub Jelinek <jakub@redhat.com>
33955
33956 PR target/52555
33957 * target-globals.c (save_target_globals): For init_reg_sets and
33958 target_reinit remporarily set this_fn_optabs to this_target_optabs.
33959
33960 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
33961
33962 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33963 * config/aarch64/t-aarch64
33964 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33965
33966 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
33967
33968 PR inline-asm/56148
33969 * lra-constraints.c (process_alt_operands): Reload operand
33970 conflicting with earlier clobber only if no more other conflicting
33971 operands.
33972
33973 2013-02-22 Jakub Jelinek <jakub@redhat.com>
33974
33975 PR sanitizer/56393
33976 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33977 if not linking a shared library.
33978
33979 2013-02-22 Seth LaForge <sethml@google.com>
33980
33981 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33982
33983 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
33984
33985 * config/arm/arm.md (split for extendsidi): Update condition.
33986 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33987 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33988 (qhs_zextenddi_cstr): Likewise.
33989
33990 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33991
33992 PR middle-end/56420
33993 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33994 avoid signed wrapping.
33995 (expand_mult): Handle properly multiplication by
33996 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
33997 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
33998 in the compiler if coeff is HOST_WIDE_INT_MIN.
33999 (expand_divmod): Don't make ext_op1 static, change it's type to
34000 uhwi. Avoid undefined behavior in -INTVAL (op1).
34001
34002 PR rtl-optimization/50339
34003 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34004 field.
34005 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34006 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34007 into splitting_ashiftrt field.
34008 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34009 ASHIFTRT.
34010 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34011 choices.
34012
34013 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34014
34015 PR middle-end/56108
34016 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34017 are sure to go irrevocable.
34018
34019 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34020
34021 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34022 scalars are valid operands.
34023
34024 2013-02-21 Martin Jambor <mjambor@suse.cz>
34025
34026 PR tree-optimization/56310
34027 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34028 only matching indices and non-negative final offsets.
34029 (intersect_aggregates_with_edge): Pass src_idx to
34030 agg_replacements_to_vector. Pass src_idx insstead of index to
34031 intersect_with_agg_replacements.
34032
34033 2013-02-21 Martin Jambor <mjambor@suse.cz>
34034
34035 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34036 instead of hard-wired defaults.
34037
34038 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34039
34040 * doc/invoke.texi (MIPS Options): Update documentation of the
34041 floating-point multiply-accumulate instruction restrictions.
34042
34043 2013-02-21 Kostya Serebryany <kcc@google.com>
34044
34045 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34046 asan_shadow_offset on x86_64 linux.
34047
34048 2013-02-21 Richard Biener <rguenther@suse.de>
34049
34050 PR tree-optimization/56415
34051 Revert
34052 2013-02-11 Richard Biener <rguenther@suse.de>
34053
34054 PR tree-optimization/56273
34055 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34056 first VRP run.
34057
34058 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34059
34060 PR bootstrap/56258
34061 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34062 instead of @itemx.
34063
34064 PR inline-asm/56405
34065 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34066 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34067
34068 2013-02-20 Jan Hubicka <jh@suse.cz>
34069
34070 PR tree-optimization/56265
34071 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34072 when target is referenced for first time.
34073
34074 2013-02-20 Richard Biener <rguenther@suse.de>
34075
34076 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34077 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34078 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34079 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34080 not return anything.
34081 (rename_ssa_copies): Do not remove unused locals.
34082 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34083 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34084 * passes.c (execute_function_todo): Do not schedule unused locals
34085 removal if cleanup_tree_cfg did something.
34086 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34087 about the number of removed locals.
34088
34089 2013-02-20 Richard Biener <rguenther@suse.de>
34090
34091 PR tree-optimization/56398
34092 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34093
34094 2013-02-20 Martin Jambor <mjambor@suse.cz>
34095
34096 PR tree-optimization/55334
34097 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34098 restricted pointers to arrays.
34099
34100 2013-02-20 Richard Biener <rguenther@suse.de>
34101 Jakub Jelinek <jakub@redhat.com>
34102
34103 PR tree-optimization/56396
34104 * tree-ssa-ccp.c (n_const_val): New static variable.
34105 (get_value): Return NULL for SSA names we don't have a lattice
34106 entry for.
34107 (ccp_initialize): Initialize n_const_val.
34108 * tree-ssa-copy.c (n_copy_of): New static variable.
34109 (init_copy_prop): Initialize n_copy_of.
34110 (get_value): Return NULL_TREE for SSA names we don't have a
34111 lattice entry for.
34112
34113 2013-02-20 Martin Jambor <mjambor@suse.cz>
34114
34115 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34116
34117 2013-02-20 Richard Biener <rguenther@suse.de>
34118
34119 * genpreds.c (write_lookup_constraint): Do not compare first
34120 letter of the constraint again.
34121
34122 2013-02-20 Richard Biener <rguenther@suse.de>
34123
34124 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34125 and ceil_log2.
34126 (get_use_iv_cost): Terminate hashtable walk when coming across
34127 an empty entry.
34128
34129 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34130
34131 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34132 reassociation for avx2 targets.
34133
34134 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34135
34136 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34137 Add version check for v8.10.a to enable microblaze_has_clz
34138 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34139 version and TARGET_PATTERN_COMPARE check
34140 * config/microblaze/microblaze.md: New clzsi2 instruction
34141
34142 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34143
34144 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34145 function before branching.
34146
34147 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34148
34149 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34150 DUMP_INSN_RTX_UID.
34151 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34152
34153 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34154
34155 PR middle-end/55889
34156 * sel-sched.c: Include ira.h.
34157 (implicit_clobber_conflict_p): New function.
34158 (moveup_expr): Use it.
34159 * Makefile.in (sel-sched.o): Depend on ira.h.
34160
34161 2013-02-19 Richard Biener <rguenther@suse.de>
34162
34163 PR tree-optimization/56384
34164 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34165 (vn_hash_type): Split out from ...
34166 (vn_hash_constant_with_type): ... here.
34167 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34168 (vn_phi_eq): Compare types from vn_phi_s structure.
34169 (vn_phi_lookup): Populate vn_phi_s type.
34170 (vn_phi_insert): Likewise.
34171
34172 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34173
34174 PR tree-optimization/56350
34175 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34176 if haven't found reduction or nested cycle operand, rather than
34177 asserting we must find it.
34178
34179 PR tree-optimization/56381
34180 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34181 to fold_build3.
34182
34183 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34184 Jakub Jelinek <jakub@redhat.com>
34185
34186 PR target/52555
34187 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34188 (swap_optab_enable): Same.
34189 (init_all_optabs): Use argument instead of global.
34190 * tree.h (struct tree_optimization_option): New field target_optabs.
34191 * expr.h (init_all_optabs): Add argument to prototype.
34192 (TREE_OPTIMIZATION_OPTABS): New.
34193 (save_optabs_if_changed): Protoize.
34194 * optabs.h: Declare this_fn_optabs.
34195 * optabs.c (save_optabs_if_changed): New.
34196 Declare this_fn_optabs.
34197 (init_optabs): Add argument to init_all_optabs() call.
34198 * function.c (invoke_set_current_function_hook): Handle per
34199 function optabs.
34200 * function.h (struct function): New field optabs.
34201 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34202 optimization_current_node has changed.
34203 * target-globals.h (save_target_globals_default_opts): Protoize.
34204 * target-globals.c (save_target_globals_default_opts): New.
34205
34206 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34207
34208 PR target/56347
34209 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34210 registers %fr12 and %fr12R as call used.
34211
34212 PR target/56214
34213 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34214 and HImode, require all displacements to be an integer multiple of
34215 their mode size.
34216 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34217 only allow QImode and HImode when reload is in progress and strict is
34218 true. Likewise for symbolic addresses. Use base14_operand to check
34219 displacements in REG+BASE addresses.
34220
34221 2013-02-18 Richard Biener <rguenther@suse.de>
34222
34223 PR tree-optimization/56366
34224 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34225 handle sign-conversion of outer-loop initial induction value.
34226
34227 2013-02-18 Richard Biener <rguenther@suse.de>
34228
34229 PR middle-end/56349
34230 * cfghooks.c (merge_blocks): If we merge a latch into another
34231 block adjust references to it.
34232 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34233 (verify_loop_structure): Verify that a recorded latch is in fact
34234 a latch.
34235
34236 2013-02-18 Richard Biener <rguenther@suse.de>
34237
34238 PR tree-optimization/56321
34239 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34240 order SSA name release and virtual operand unlinking.
34241
34242 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34243
34244 * config/microblaze/microblaze.md (save_stack_block): Define.
34245 (restore_stack_block): Likewise.
34246
34247 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34248
34249 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34250 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34251 * config/microblaze/microblaze.c (microblaze_option_override):
34252 Bail out early for PIC modes when target does not support PIC.
34253
34254 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34255
34256 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34257 Replace with a microblaze version.
34258 (microblaze_trampoline_init): Adapt for microblaze.
34259 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34260 microblaze.
34261
34262 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34263 Dodji Seketeli <dodji@redhat.com>
34264
34265 PR asan/56330
34266 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34267 (instrument_mem_region_access): Do not forget to always put
34268 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34269 0) statement, even for cases where either 'base' or 'base + len'
34270 are not instrumented -- because they have been previously
34271 instrumented. Simplify the logic by putting all the statements
34272 instrument 'base + len' inside a sequence, and then insert that
34273 sequence right before the current insertion point. Then, to
34274 instrument 'base + len', just get an iterator on that statement.
34275 And do not forget to update the pointer to iterator the function
34276 received as argument.
34277
34278 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34279
34280 PR rtl-optimization/56348
34281 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34282
34283 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34284
34285 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34286 (clean_graph_dump_file): Pass base to start_graph_dump.
34287
34288 2013-02-14 Richard Henderson <rth@redhat.com>
34289
34290 PR target/55941
34291 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34292
34293 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34294
34295 * collect2-aix.h: Define F_LOADONLY.
34296
34297 2013-02-14 Richard Biener <rguenther@suse.de>
34298
34299 PR lto/50494
34300 * varasm.c (output_constant_def_1): Get the decl representing
34301 the constant as argument.
34302 (output_constant_def): Wrap output_constant_def_1.
34303 (make_decl_rtl): Use output_constant_def_1 with the decl
34304 representing the constant.
34305 (build_constant_desc): Optionally re-use a decl already
34306 representing the constant.
34307 (tree_output_constant_def): Adjust.
34308
34309 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34310
34311 Fix an asan crash
34312 * asan.c (instrument_builtin_call): Really put the length of the
34313 second source argument into src1_len.
34314
34315 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34316
34317 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34318 argument. If it is false, don't create edge from then_bb to
34319 fallthru_bb.
34320 (insert_if_then_before_iter): Pass true to it.
34321 (build_check_stmt): Pass false to it.
34322 (transform_statements): Flush hash table only on extended basic
34323 block boundaries, rather than at the beginning of every bb.
34324 Don't flush hash table on nonfreeing_call_p calls.
34325 * tree-flow.h (nonfreeing_call_p): New prototype.
34326 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34327
34328 2013-02-13 David S. Miller <davem@davemloft.net>
34329
34330 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34331
34332 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34333
34334 PR target/56184
34335 * ira.c (max_regno_before_ira): Move from ...
34336 (ira): ... here.
34337 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34338 vec_safe_length.
34339
34340 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34341
34342 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34343
34344 2013-02-13 Richard Biener <rguenther@suse.de>
34345
34346 PR lto/56295
34347 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34348 globals in MEM_REFs.
34349
34350 2013-02-13 Richard Biener <rguenther@suse.de>
34351
34352 * loop-init.c (loop_optimizer_init): Clear loop state when
34353 re-initializing preserved loops.
34354 * loop-unswitch.c (unswitch_single_loop): Return whether
34355 we unswitched the loop. Do not verify loop state here.
34356 (unswitch_loops): When we unswitched a loop discover new loops.
34357
34358 2013-02-13 Kostya Serebryany <kcc@google.com>
34359
34360 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34361 on x86_64 linux.
34362 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34363
34364 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34365
34366 Avoid instrumenting duplicated memory access in the same basic block
34367 * Makefile.in (asan.o): Add new dependency on hash-table.h
34368 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34369 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34370 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34371 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34372 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34373 (get_mem_ref_of_assignment): New functions.
34374 (get_mem_refs_of_builtin_call): Extract from
34375 instrument_builtin_call and tweak a little bit to make it fit with
34376 the new signature.
34377 (instrument_builtin_call): Use the new
34378 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34379 of is_gimple_builtin_call.
34380 (instrument_derefs, instrument_mem_region_access): Insert the
34381 instrumented memory reference into the hash table.
34382 (maybe_instrument_assignment): Renamed instrument_assignment into
34383 this, and change it to advance the iterator when instrumentation
34384 actually happened and return true in that case. This makes it
34385 homogeneous with maybe_instrument_assignment, and thus give a
34386 chance to callers to be more 'regular'.
34387 (transform_statements): Clear the memory reference hash table
34388 whenever we enter a new BB, when we cross a function call, or when
34389 we are done transforming statements. Use
34390 maybe_instrument_assignment instead of instrumentation. No more
34391 need to special case maybe_instrument_assignment and advance the
34392 iterator after calling it; it's now handled just like
34393 maybe_instrument_call. Update comment.
34394
34395 2013-02-13 Richard Biener <rguenther@suse.de>
34396
34397 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34398 Fix loop discovery code.
34399
34400 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34401
34402 PR inline-asm/56148
34403 * lra-constraints.c (process_alt_operands): Match early clobber
34404 operand with itself. Check conflicts with earlyclobber only if
34405 the operand is not reloaded. Prefer to reload conflicting operand
34406 if earlyclobber and matching operands are the same.
34407
34408 2013-02-12 Richard Biener <rguenther@suse.de>
34409
34410 PR lto/56297
34411 * lto-streamer-out.c (write_symbol): Do not output symbols
34412 for hard register variables.
34413
34414 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34415
34416 PR target/54222
34417 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34418 (umulsidi3_insn, mulsidi3_insn): New insns.
34419
34420 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34421
34422 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34423 (struct tune_params): Add vec_costs field.
34424 * config/arm/arm.c (arm_builtin_vectorization_cost)
34425 (arm_add_stmt_cost): New functions.
34426 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34427 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34428 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34429 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34430 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34431 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34432 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34433
34434 2013-02-12 Richard Biener <rguenther@suse.de>
34435
34436 PR lto/56295
34437 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34438 decls again if possible.
34439
34440 2013-02-12 Richard Biener <rguenther@suse.de>
34441
34442 PR middle-end/56288
34443 * tree-ssa.c (verify_ssa_name): Fix check, move
34444 SSA_NAME_IN_FREE_LIST check up.
34445
34446 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34447 Steven Bosscher <steven@gcc.gnu.org>
34448
34449 PR rtl-optimization/56151
34450 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34451 equal to op0 or op1, and last_insn pattern is CODE operation
34452 with MEM dest and one of the operands matches that MEM.
34453
34454 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34455
34456 * doc/extend.texi: Document Function Multiversioning and "default"
34457 parameter string to target attribute.
34458 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34459 target attribute parameter is "default".
34460 (ix86_compare_version_priority): Remove checks for target attribute.
34461 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34462 Remove check for target attribute equal to NULL. Add assert.
34463 (ix86_generate_version_dispatcher_body): Change error to sorry.
34464
34465 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34466 Jack Howarth <howarth@bromo.med.uc.edu>
34467 Patrick Marlier <patrick.marlier@gmail.com>
34468
34469 PR libitm/55693
34470 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34471 define ENDFILE_SPEC as TM_DESTRUCTOR.
34472 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34473
34474 2013-02-11 Alexander Potapenko <glider@google.com>
34475 Jack Howarth <howarth@bromo.med.uc.edu>
34476 Jakub Jelinek <jakub@redhat.com>
34477
34478 PR sanitizer/55617
34479 * config/darwin.c (cdtor_record): Rename ctor_record.
34480 (sort_cdtor_records): Rename sort_ctor_records.
34481 (finalize_dtors): New routine to sort destructors by
34482 priority before use in assemble_integer.
34483 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34484
34485 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34486
34487 PR rtl-optimization/56275
34488 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34489 offset is non-negative and less than cmode size before
34490 calling simplify_subreg.
34491
34492 2013-02-11 Richard Biener <rguenther@suse.de>
34493
34494 PR tree-optimization/56264
34495 * cfgloop.h (fix_loop_structure): Adjust prototype.
34496 * loop-init.c (fix_loop_structure): Return the number of
34497 newly discovered loops.
34498 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34499 are discovered, do a full loop-closed SSA rewrite.
34500
34501 2013-02-11 Richard Biener <rguenther@suse.de>
34502
34503 PR tree-optimization/56273
34504 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34505 first VRP run.
34506 (check_array_ref): Fix missing newline in dumps.
34507 (search_for_addr_array): Likewise.
34508
34509 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34510
34511 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34512
34513 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34514
34515 PR target/56256
34516 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34517
34518 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34519
34520 PR rtl-optimization/56246
34521 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34522 reload pseudo.
34523 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34524 constraints are satisfied.
34525
34526 2013-02-08 Jeff Law <law@redhat.com>
34527
34528 PR debug/53948
34529 * emit-rtl.c (reg_is_parm_p): New function.
34530 * regs.h (reg_is_parm_p): New prototype.
34531 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34532 callee-clobbered registers.
34533
34534 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34535
34536 PR target/56043
34537 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34538 If there is no implicit builtin declaration, just return NULL.
34539
34540 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34541
34542 * config/i386/sse.md (FMAMODEM): New mode iterator.
34543 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34544 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34545
34546 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34547
34548 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34549 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34550 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34551
34552 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34553
34554 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34555 (microblaze*-*-elf): Likewise.
34556 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34557 LINK_SPEC.
34558 * config/microblaze/microblaze-c.c: Add builtin defines for
34559 _LITTLE_ENDIAN and _BIG_ENDIAN.
34560 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34561 add to TARGET_DEFAULT flags.
34562 Expand ASM_SPEC and LINK_SPEC.
34563 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34564 * config/microblaze/microblaze.md: Update extendsidi2 and
34565 movdi_internal instructions to use low-order / high-order reg
34566 print_operands.
34567 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34568 options and inversemask / mask of LITTLE_ENDIAN.
34569 * config/microblaze/t-microblaze: Expand multilib options to
34570 include mlittle-endian (le) and update exceptions patterns.
34571
34572 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34573
34574 PR rtl-optimization/56195
34575 * lra-constraints.c (get_reload_reg): Don't reuse regs
34576 if they have smaller mode than requested, if they have
34577 wider mode than requested, try to return a SUBREG.
34578
34579 PR tree-optimization/56250
34580 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34581 if type is unsigned and code isn't MULT_EXPR.
34582
34583 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34584
34585 PR tree-optimization/56064
34586 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34587 bits according to mode.
34588 * fixed-value.h (fixed_from_double_int)
34589 (const_fixed_from_double_int): Adjust comments.
34590
34591 2013-02-08 Richard Biener <rguenther@suse.de>
34592
34593 PR lto/56231
34594 * lto-streamer.h (struct data_in): Remove current_file, current_line
34595 and current_col members.
34596 * lto-streamer-out.c (lto_output_location): Stream changed bits
34597 en-block for efficiency.
34598 * lto-streamer-in.c (clear_line_info): Remove.
34599 (lto_input_location): Cache current file, line and column
34600 globally via local statics. Read changed bits en-block.
34601 (input_function): Do not call clear_line_info.
34602 (lto_read_body): Likewise.
34603 (lto_input_toplevel_asms): Likewise.
34604
34605 2013-02-08 Michael Matz <matz@suse.de>
34606
34607 PR tree-optimization/52448
34608 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34609 (nt_call_phase): New static.
34610 (add_or_mark_expr): Only mark accesses with newer phase than any
34611 call seen.
34612 (nonfreeing_call_p): New.
34613 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34614 (nt_fini_block): Keep blocks marked as visited.
34615 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34616
34617 2013-02-08 Richard Biener <rguenther@suse.de>
34618
34619 * ira.c (ira): Free broken dominator information.
34620
34621 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34622
34623 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34624
34625 2013-02-08 Marek Polacek <polacek@redhat.com>
34626
34627 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34628
34629 2013-02-08 Richard Biener <rguenther@suse.de>
34630
34631 PR middle-end/56181
34632 * cfgloop.h (flow_loops_find): Adjust.
34633 (bb_loop_header_p): Declare.
34634 * cfgloop.c (bb_loop_header_p): New function split out from ...
34635 (flow_loops_find): ... here. Adjust function signature,
34636 support incremental loop structure update.
34637 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34638 * cfgloopmanip.c (fix_loop_structure): Move ...
34639 * loop-init.c (fix_loop_structure): ... here.
34640 (apply_loop_flags): Split out from ...
34641 (loop_optimizer_init): ... here.
34642 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34643 in incremental mode, only remove dead loops here.
34644
34645 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34646
34647 PR target/54222
34648 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34649 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34650 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34651 (*round<mode>3.libgcc): New insns for fixed-modes.
34652 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34653 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34654 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34655 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34656 implementations. Define to __builtin_avr_absFX,
34657 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34658 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34659 __builtin_avr_countlsFX, respectively.
34660 * config/avr/avr-c.c (target.h): Include it.
34661 (enum avr_builtin_id): New enum.
34662 (avr_resolve_overloaded_builtin): New static function.
34663 (avr_register_target_pragmas): Use it to set
34664 targetm.resolve_overloaded_builtin.
34665 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34666 tree nodes used by DEF_BUILTIN.
34667 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34668 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34669 <AVR_BUILTIN_xxBITS>: Same.
34670
34671 2013-02-08 Richard Biener <rguenther@suse.de>
34672
34673 * cfgloop.c (verify_loop_structure): Properly handle
34674 a loop exiting to another loop header.
34675 * ira-int.h (ira_loops): Remove.
34676 * ira.c (ira_loops): Remove.
34677 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34678 (do_reload): Use loop_optimizer_finalize.
34679 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34680 number_of_loops to access the loop tree.
34681 (more_one_region_p): Likewise.
34682 (finish_loop_tree_nodes): Likewise.
34683 (rebuild_regno_allocno_maps): Likewise.
34684 (mark_loops_for_removal): Likewise.
34685 (mark_all_loops_for_removal): Likewise.
34686 (remove_unnecessary_regions): Likewise.
34687 (ira_build): Likewise.
34688 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34689
34690 2013-02-08 Richard Biener <rguenther@suse.de>
34691
34692 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34693 * ipa-pure-const.c (analyze_function): Avoid calling
34694 mark_irreducible_loops twice.
34695 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34696
34697 2013-02-07 David S. Miller <davem@davemloft.net>
34698
34699 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34700 on 'reg'.
34701 * var-tracking.c (vt_add_function_parameter): Test the presence of
34702 HAVE_window_save properly and do not remap argument registers when
34703 we have a leaf function.
34704
34705 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34706
34707 PR bootstrap/56227
34708 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34709 instead of "ll".
34710 * config/i386/i386.c (ix86_print_operand): Ditto.
34711
34712 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34713
34714 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34715
34716 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34717
34718 PR rtl-optimization/56225
34719 * lra-constraints.c (process_alt_operands): Check that reload hard
34720 reg can hold value for strict_low_part.
34721
34722 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34723
34724 PR debug/56154
34725 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34726 dwarf2out_end_function.
34727 (in_first_function_p, maybe_at_text_label_p,
34728 first_loclabel_num_not_at_text_label): New variables.
34729 (dwarf2out_var_location): In the first function find out
34730 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34731 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34732 functions.
34733
34734 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34735
34736 PR rtl-optimization/56178
34737 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34738 SUBREG of a register. Tidy up related block of code.
34739 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34740 note if the source is a register or a SUBREG of a register.
34741
34742 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34743
34744 PR target/56228
34745 * config/rs6000/rs6000.md (ptrm): New mode attr.
34746 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34747 call_value_indirect_aix<pttrsize>,
34748 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34749 m in constraints.
34750
34751 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34752
34753 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34754 if -bnortl. Convert to strcmp and strncmp.
34755
34756 2013-02-07 Alan Modra <amodra@gmail.com>
34757
34758 PR target/54009
34759 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34760 addresses won't wrap when offsetting.
34761 (rs6000_secondary_reload): Provide secondary reloads needed for
34762 wrapping LO_SUM addresses.
34763
34764 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
34765
34766 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34767 MACH, just __MACH__.
34768
34769 2013-02-06 Richard Biener <rguenther@suse.de>
34770
34771 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34772 instead of calling fix_loop_structure.
34773
34774 2013-02-06 Jakub Jelinek <jakub@redhat.com>
34775
34776 PR middle-end/56217
34777 * omp-low.c (use_pointer_for_field): Return false if
34778 lower_send_shared_vars doesn't generate any copy-out code.
34779
34780 2013-02-06 Tom de Vries <tom@codesourcery.com>
34781
34782 PR rtl-optimization/56131
34783 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34784 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
34785 of the label is NULL. Add comment.
34786
34787 2013-02-05 Jakub Jelinek <jakub@redhat.com>
34788
34789 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34790
34791 PR sanitizer/55374
34792 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34793 (STATIC_LIBTSAN_LIBS): Likewise.
34794 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34795 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34796 is defined, don't add anything else beyond that.
34797 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34798 (LINK_COMMAND_SPEC): Use them.
34799
34800 PR tree-optimization/56205
34801 * tree-stdarg.c (check_all_va_list_escapes): Return true if
34802 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34803 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34804
34805 2013-02-05 Richard Biener <rguenther@suse.de>
34806
34807 PR tree-optimization/53342
34808 PR tree-optimization/53185
34809 * tree-vectorizer.h (vect_check_strided_load): Remove.
34810 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34811 not disallow peeling for vectorized strided loads.
34812 (vect_check_strided_load): Make static and simplify.
34813 (vect_analyze_data_refs): Adjust.
34814 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34815 correctly when vectorizing strided loads.
34816
34817 2013-02-05 Richard Biener <rguenther@suse.de>
34818
34819 * doc/install.texi: Refer to ISL, not PPL.
34820
34821 2013-02-05 Jan Hubicka <jh@suse.cz>
34822
34823 PR tree-optimization/55789
34824 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34825
34826 2013-02-05 Jan Hubicka <jh@suse.cz>
34827
34828 PR tree-optimization/55789
34829 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34830 the dead call anyway.
34831
34832 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
34833
34834 PR sanitizer/55374
34835 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34836
34837 2013-02-04 Alexander Potapenko <glider@google.com>
34838 Jack Howarth <howarth@bromo.med.uc.edu>
34839 Jakub Jelinek <jakub@redhat.com>
34840
34841 PR sanitizer/55617
34842 * config/darwin.c (sort_ctor_records): Stabilized qsort
34843 on constructor priority by using original position.
34844 (finalize_ctors): New routine to sort constructors by
34845 priority before use in assemble_integer.
34846 (machopic_asm_out_constructor): Use finalize_ctors if needed.
34847
34848 2013-02-04 Jakub Jelinek <jakub@redhat.com>
34849
34850 PR libstdc++/54314
34851 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34852 about visibility on artificial decls.
34853 * config/sol2.c (solaris_assemble_visibility): Likewise.
34854
34855 2013-02-04 Kai Tietz <ktietz@redhat.com>
34856
34857 PR target/56186
34858 * config/i386/i386.c (function_value_ms_64): Add additional valtype
34859 argument and improve checking of return-argument types for 16-byte
34860 modes.
34861 (ix86_function_value_1): Add additional valtype argument on call
34862 of function_value_64.
34863 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34864 handling infunction_value_64 function.
34865
34866 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34867
34868 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34869
34870 2013-02-04 Richard Biener <rguenther@suse.de>
34871
34872 PR tree-optimization/56188
34873 * tree-ssa-structalias.c (label_visit): Consider case with
34874 initially non-empty points-to set.
34875 (perform_var_substitution): Dump node mapping and clean up.
34876
34877 2013-02-04 Richard Guenther <rguenther@suse.de>
34878
34879 PR lto/56168
34880 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34881 node prevail as last resort.
34882 (lto_symtab_merge_decls): Remove guard on LTRANS here.
34883 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34884
34885 2013-02-04 Richard Biener <rguenther@suse.de>
34886
34887 PR tree-optimization/56113
34888 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34889 Merge into ...
34890 (equiv_class_lookup_or_add): ... this.
34891 (label_visit): Adjust and fix error in previous patch.
34892 (perform_var_substitution): Adjust.
34893
34894 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34895
34896 * config/sh/divtab.c: Fix formatting and comments throughout the file.
34897 * config/sh/sh4-300.md: Likewise.
34898 * config/sh/sh4a.md: Likewise.
34899 * config/sh/constraints.md: Likewise.
34900 * config/sh/sh.md: Likewise.
34901 * config/sh/netbsd-elf.h: Likewise.
34902 * config/sh/predicates.md: Likewise.
34903 * config/sh/sh-protos.h: Likewise.
34904 * config/sh/ushmedia.h: Likewise.
34905 * config/sh/linux.h: Likewise.
34906 * config/sh/sh.c: Likewise.
34907 * config/sh/superh.h: Likewise.
34908 * config/sh/elf.h: Likewise.
34909 * config/sh/sh4.md: Likewise.
34910 * config/sh/sh.h: Likewise.
34911
34912 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34913
34914 * config/pa/constraints.md: Adjust unused letters. Change "T"
34915 constraint to match_test floating_point_store_memory_operand().
34916 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34917 (base14_operand): New.
34918 (floating_point_store_memory_operand): New.
34919 (integer_store_memory_operand): Revise to use base14_operand and
34920 reg_plus_base_memory_operand.
34921 (move_dest_operand): Allow symbolic_memory_operands.
34922 (symbolic_memory_operand): Check for LO_SOM.
34923 (symbolic_operand): Change default case to break.
34924 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34925 CONST_DOUBLE values to be reloaded by putting them into memory when
34926 the destination is a floating point register.
34927 (movdf): Remove code to handle CONST_DOUBLE.
34928 (movsf): Likewise.
34929 (reload_indf_r1): New.
34930 (reload_insf_r1): New.
34931 Consistently use "Q" and "T" constraints with integer and floating
34932 point move instructions, respectively.
34933 (movdi): Remove FAIL.
34934 Change predicate for source operand unamed DImode move from
34935 general_operand to move_src_operand.
34936 (umulsidi3): Change predicate for destination operand to
34937 register_operand.
34938 Likewise for similar unamed patterns.
34939 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34940 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34941 (hppa_legitimize_address): Simplify mask calculation.
34942 (pa_emit_move_sequence): Revised handling of secondary reloads from
34943 REG+D addresses for floating point loads and stores. Directly handle
34944 loading CONST0_RTX (mode) to a floating point register.
34945 (pa_secondary_reload): Handle reloading DF and SFmode constant values
34946 to floating point registers. Don't restrict secondary reloads to
34947 floating point registers to integer modes. Revise some comments and
34948 cleanup some code.
34949 (TARGET_LEGITIMATE_ADDRESS_P): Define.
34950 (pa_legitimate_address_p): New.
34951 (pa_legitimize_reload_address): New.
34952 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34953 (STRICT_REG_OK_FOR_BASE_P): New.
34954 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
34955 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34956
34957 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
34958 Andrew Dixie <andrewd@gentrack.com>
34959
34960 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34961 flag set.
34962
34963 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
34964
34965 * expmed.c (extract_bit_field_1): Pass the full width of the
34966 structure to get_best_reg_extraction_insn.
34967
34968 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34969
34970 PR target/54601
34971 * configure.ac (use_cxa_atexit): Add AIX.
34972 * configure: Regenerate.
34973
34974 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34975
34976 2013-02-01 Jakub Jelinek <jakub@redhat.com>
34977
34978 PR debug/54793
34979 * final.c (need_profile_function): New variable.
34980 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34981 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34982 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34983 notes, targetm.asm_out.function_prologue doesn't emit anything,
34984 HAVE_prologue and profiler should be emitted before prologue,
34985 set need_profile_function instead of emitting it.
34986 (final_scan_insn): If need_profile_function, emit
34987 profile_function on the first NOTE_INSN_BASIC_BLOCK or
34988 NOTE_INSN_FUNCTION_BEG note.
34989
34990 2013-02-01 Richard Henderson <rth@redhat.com>
34991
34992 * config/rs6000/rs6000.md (smulditi3): New.
34993 (umulditi3): New.
34994
34995 * config/alpha/alpha.md (umulditi3): New.
34996
34997 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34998
34999 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35000 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35001
35002 2013-02-01 Richard Biener <rguenther@suse.de>
35003
35004 PR tree-optimization/56113
35005 * tree-ssa-structalias.c (label_visit): Reduce work for
35006 single-predecessor nodes.
35007
35008 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35009
35010 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35011 range isn't testing for zero.
35012
35013 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35014
35015 PR middle-end/56113
35016 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35017
35018 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35019 Nick Clifton <nickc@redhat.com>
35020
35021 * config/v850/constraints.md (Q): Define as a memory constraint.
35022 * config/v850/predicates.md (label_ref_operand): New predicate.
35023 (e3v5_shift_operand): New predicate.
35024 (ior_operator): New predicate.
35025 * config/v850/t-v850: Add e3v5 multilib.
35026 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35027 (v850_gen_movdi): Prototype.
35028 * config/v850/v850.c: Add support for e3v5 architecture.
35029 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35030 TARGET_V850E_UP.
35031 (construct_save_jarl): Add e3v5 long JARL support.
35032 (v850_adjust_insn_length): New function. Adjust length of call
35033 insns when using e3v5 instructions.
35034 (v850_gen_movdi): New function: Generate instructions to move a
35035 DImode value.
35036 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35037 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35038 (TARGET_USE_FPU): Enable for e3v5.
35039 (CONST_OK_FOR_W): New macro.
35040 (ADJUST_INSN_LENGTH): Define.
35041 * config/v850/v850.md (UNSPEC_LOOP): Define.
35042 (attr cpu): Add v850e3v5.
35043 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35044 (movdi): New pattern.
35045 (movdi_internal): New pattern.
35046 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35047 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35048 (cstoresf4): Likewise.
35049 (cstoredf4): Likewise.
35050 (insv): New pattern.
35051 (rotlso3_a): New pattern.
35052 (rotlsi3_b): New pattern
35053 (rotlsi3_v850e3v5): New pattern.
35054 (doloop_begin): New pattern.
35055 (fix_loop_counter): New pattern.
35056 (doloop_end): New pattern.
35057 (branch_normal): Add e3v5 long branch support.
35058 (branch_invert): Likewise.
35059 (branch_z_normal): Likewise.
35060 (branch_z_invert): Likewise.
35061 (branch_nz_normal): Likewise.
35062 (branch_nz_invert): Likewise.
35063 (call_internal_short): Add e3v5 register-indirect JARL support.
35064 (call_internal_long): Likewise.
35065 (call_value_internal_short): Likewise.
35066 (call_value_internal_long): Likewise.
35067 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35068 (mloop): New option.
35069 * config.gcc: Add support for configuring v840e3v5 target.
35070 * doc/invoke.texi: Document new v850 specific command line options.
35071
35072 2013-01-31 Paul Koning <ni1d@arrl.net>
35073
35074 PR debug/55059
35075 PR debug/54508
35076 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35077 children if parent is a class.
35078 (prune_unused_types_prune): Don't add DW_AT_declaration.
35079
35080 2013-01-31 Richard Biener <rguenther@suse.de>
35081
35082 PR tree-optimization/56157
35083 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35084 match up operand with SLP child.
35085
35086 2013-01-31 Jason Merrill <jason@redhat.com>
35087
35088 PR debug/54410
35089 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35090 parameters the first time.
35091 (gen_scheduled_generic_parms_dies): Check completeness here.
35092
35093 2013-01-31 Richard Biener <rguenther@suse.de>
35094
35095 PR middle-end/53073
35096 * common.opt (faggressive-loop-optimizations): New flag,
35097 enabled by default.
35098 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35099 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35100 infer_loop_bounds_from_undefined by it.
35101
35102 2013-01-31 Richard Biener <rguenther@suse.de>
35103
35104 PR tree-optimization/56150
35105 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35106 visit virtual operands.
35107 (find_uses_to_rename_bb): Likewise.
35108
35109 2013-01-31 Richard Biener <rguenther@suse.de>
35110
35111 PR tree-optimization/56150
35112 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35113 mixed store non-store stmts.
35114
35115 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35116
35117 PR sanitizer/55374
35118 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35119 LIBASAN_EARLY_SPEC is defined.
35120 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35121 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35122 before %o.
35123 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35124
35125 PR c++/55742
35126 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35127 invalid args instead of ICEing on it.
35128 (ix86_valid_target_attribute_tree): Return error_mark_node if
35129 ix86_valid_target_attribute_inner_p failed.
35130 (ix86_valid_target_attribute_p): Return false only if
35131 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35132 target("default") attribute.
35133 (sorted_attr_string): Change argument from const char * to tree,
35134 merge in all target attribute arguments rather than just one.
35135 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35136 instead of free. Avoid using strcat.
35137 (ix86_mangle_function_version_assembler_name): Mangle
35138 target("default") as if no target attribute is present. Adjust
35139 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35140 instead of xmalloc and XDELETEVEC instead of free.
35141 (ix86_function_versions): Don't return true if one of the decls
35142 doesn't have target attribute. If they don't and one of the decls
35143 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35144 sorted_attr_string caller. Use XDELETEVEC instead of free.
35145 (ix86_supports_function_versions): Remove.
35146 (make_name): Fix up formatting.
35147 (make_dispatcher_decl): Remove resolver_name and its initialization.
35148 Avoid leaking memory.
35149 (is_function_default_version): Return true if there is
35150 target("default") attribute rather than no target attribute at all.
35151 (make_resolver_func): Avoid leaking memory.
35152 (ix86_generate_version_dispatcher_body): Likewise.
35153 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35154 * target.def (supports_function_versions): Remove.
35155 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35156 * doc/tm.texi: Regenerated.
35157
35158 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35159
35160 PR rtl-optimization/56144
35161 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35162 for values with side effects.
35163
35164 2013-01-30 Richard Biener <rguenther@suse.de>
35165
35166 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35167 (sparseset_pop): Likewise.
35168 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35169 to be able to use quick_push in the worker loop.
35170
35171 2013-01-30 Marek Polacek <polacek@redhat.com>
35172
35173 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35174
35175 2013-01-30 Richard Biener <rguenther@suse.de>
35176
35177 PR lto/56147
35178 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35179
35180 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35181
35182 PR tree-optimization/56064
35183 * fixed-value.c (fixed_from_double_int): New function.
35184 * fixed-value.h (fixed_from_double_int): New prototype.
35185 (const_fixed_from_double_int): New static inline function.
35186 * fold-const.c (native_interpret_fixed): New static function.
35187 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35188 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35189 (native_encode_fixed): New static function.
35190 (native_encode_expr) <FIXED_CST>: Use it.
35191 (native_interpret_int): Move double_int worker code to...
35192 * double-int.c (double_int::from_buffer): ...this new static method.
35193 * double-int.h (double_int::from_buffer): Prototype it.
35194
35195 2013-01-30 Richard Biener <rguenther@suse.de>
35196
35197 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35198 New pointer-map and obstack.
35199 (init_alias_vars): Allocate pointer-map and obstack.
35200 (delete_points_to_sets): Free them.
35201 (find_what_var_points_to): Cache result.
35202 (find_what_p_points_to): Adjust for changed interface of
35203 find_what_var_points_to.
35204 (compute_points_to_sets): Likewise.
35205 (ipa_pta_execute): Likewise.
35206
35207 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35208
35209 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35210 * configure: Regenerate.
35211 * config.in: Regenerate.
35212 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35213 #nobits/#progbits if supported.
35214
35215 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35216
35217 PR target/56121
35218 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35219 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35220 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35221
35222 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35223
35224 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35225 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35226
35227 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35228
35229 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35230 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35231
35232 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35233
35234 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35235 declaration.
35236 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35237 * config/arm/cortex-a7.md: New bypasses using
35238 arm_mac_accumulator_is_result.
35239
35240 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35241
35242 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35243 (cortex_a7_neon_mla): Likewise.
35244 (cortex_a7_fpfmad): New reservation.
35245 (cortex_a7_fpmacs): Use ffmas and update required units.
35246 (cortex_a7_fpmuld): Update required units and latency.
35247 (cortex_a7_fpmacd): Likewise.
35248 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35249 (cortex_a7_neon). Likewise.
35250 (bypass) Update participating units.
35251
35252 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35253
35254 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35255 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35256 from fmac to ffma.
35257 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35258 (vfp_fmul): Use ffmad.
35259 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35260 (cortex_r4_fmacd): Use ffmad.
35261 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35262 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35263 (cortex_a9_fmacd): Use ffmad.
35264 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35265 (cortex_a8_vfp_macd): Use ffmad.
35266 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35267 (cortex_a5_fpmacd): Use ffmad.
35268 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35269 (cortex_a15_vfp_macd): Use ffmad.
35270 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35271
35272 2013-01-29 Jason Merrill <jason@redhat.com>
35273
35274 PR libstdc++/54314
35275 * varasm.c (default_assemble_visibility): Don't warn about
35276 visibility on artificial decls.
35277
35278 2013-01-29 Richard Biener <rguenther@suse.de>
35279
35280 PR tree-optimization/56113
35281 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35282 the bitmap leader.
35283 (label_visit): Free duplicate bitmaps and record the leader instead.
35284 (perform_var_substitution): Adjust.
35285
35286 2013-01-29 Richard Biener <rguenther@suse.de>
35287
35288 PR tree-optimization/55270
35289 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35290 the CFG, schedule loops for fixup.
35291
35292 2013-01-29 Nick Clifton <nickc@redhat.com>
35293
35294 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35295 SP_REG.
35296
35297 2013-01-28 Leif Ekblad <leif@rdos.net>
35298
35299 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35300 * config/i386/i386.h (TARGET_RDOS): New macro.
35301 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35302 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35303 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35304 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35305 DEFAULT_LARGE_SECTION_THRESHOLD.
35306 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35307 * config/i386/rdos.h: New file.
35308 * config/i386/rdos64.h: New file.
35309
35310 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35311
35312 PR other/54814
35313 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35314 TEST_HARD_REG_BIT.
35315
35316 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35317
35318 PR rtl-optimization/56117
35319 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35320 call cselib_lookup_from_insn on the MEM before calling
35321 add_insn_mem_dependence.
35322
35323 2013-01-28 Richard Biener <rguenther@suse.de>
35324
35325 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35326 to a stmt that didn't have one.
35327 (copy_phis_for_bb): Likewise for PHI arguments.
35328 (copy_debug_stmt): Likewise for debug stmts.
35329
35330 2013-01-28 Richard Biener <rguenther@suse.de>
35331
35332 PR tree-optimization/56034
35333 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35334 (partition_builtin_p): Adjust.
35335 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35336 it is the last partition.
35337 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35338 up the vertex for the definition.
35339 (classify_partition): Classify whether a partition is a
35340 PKIND_REDUCTION, thus has uses outside of the loop.
35341 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35342 Merge all PKIND_REDUCTION partitions into the last partition.
35343 (tree_loop_distribution): Seed partitions from reductions as well.
35344
35345 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35346
35347 PR tree-optimization/56125
35348 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35349 pow(x,c) into sqrt(x) * powi(x, n/2) or
35350 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35351 optimizing for size.
35352 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35353 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35354 integer.
35355
35356 PR tree-optimization/56094
35357 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35358 to UNKNOWN_LOCATION while gimplifying expr.
35359
35360 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35361
35362 PR target/56114
35363 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35364 operand 0 in movabs insn template for -masm=intel asm alternative.
35365 (*movabs<mode>_2): Ditto for operand 1.
35366
35367 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35368
35369 PR target/54663
35370 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35371 of microblaze-c.o
35372
35373 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35374
35375 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35376 tm_file.
35377
35378 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35379
35380 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35381 Undef to avoid warning.
35382
35383 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35384
35385 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35386 * configure: Regenerate.
35387
35388 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35389
35390 PR tree-optimization/56098
35391 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35392 for stmts with volatile ops.
35393 (cond_store_replacement): Don't optimize if assign has volatile ops.
35394 (cond_if_else_store_replacement_1): Don't optimize if either
35395 then_assign or else_assign have volatile ops.
35396 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35397 volatile ops.
35398
35399 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35400
35401 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35402
35403 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35404
35405 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35406 missing ':' in asm example.
35407
35408 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35409
35410 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35411 entries into lane and laneq entries.
35412 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35413 Remove AdvSIMD scalar modes.
35414 (aarch64_sq<r>dmulh_laneq<mode>): New.
35415 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35416 modes.
35417 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35418 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35419 * config/aarch64/iterators.md (VCOND): New.
35420 (VCONQ): New.
35421
35422 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35423
35424 PR target/54222
35425 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35426 Add NULL LIBNAME argument to existing definitions.
35427 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35428 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35429 * config/avr/avr.c (DEF_BUILTIN): Same.
35430 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35431 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35432 implementation is available (DECL_ASSEMBLER_NAME is set).
35433 (avr_fold_absfx): New static function.
35434 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35435 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35436 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35437 AVR_BUILTIN_ABSLLK.
35438 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35439 (abshk, absk, abslk, absllk): Provide as static inline functions.
35440
35441 2013-01-25 Marek Polacek <polacek@redhat.com>
35442
35443 PR tree-optimization/56035
35444 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35445
35446 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35447
35448 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35449 (*movtf_internal_rex64): Add (!o,C) alternative
35450 (*movxf_internal_rex64): Ditto.
35451 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35452
35453 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35454
35455 * doc/invoke.texi: fix typo.
35456 * doc/objc.texi: fix typo.
35457
35458 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35459
35460 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35461 for the first two alternatives.
35462
35463 2013-01-24 Diego Novillo <dnovillo@google.com>
35464
35465 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35466 (ggc-zone.o): Remove.
35467 * configure.ac: Remove option --with-gc.
35468 * configure: Re-generate.
35469 * doc/install.texi: Remove documentation for --with-gc.
35470 * gengtype.c (write_enum_defn): Remove. Update all users.
35471 (write_Types_process_field): Remove generation of gt_e_* argument.
35472 (output_type_enum): Remove. Update all users.
35473 (write_enum_defn): Remove. Update all users.
35474 (enum alloc_zone): Remove. Update all users.
35475 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35476 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35477 Update all callers.
35478 (struct ptr_data): Remove field TYPE. Update all users.
35479 (gt_pch_note_object): Remove argument TYPE. Update all users.
35480 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35481 Update all users.
35482 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35483 (struct alloc_zone): Remove.
35484 (ggc_internal_alloc_zone_stat): Remove.
35485 (ggc_internal_cleared_alloc_zone_stat): Remove.
35486 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35487 (ggc_pch_count_object): Remove last argument. Update all users.
35488 (ggc_pch_alloc_object): Remove last argument. Update all users.
35489 (struct alloc_zone): Remove.
35490 * ggc-zone.c: Remove.
35491 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35492 (struct alloc_zone): Remove.
35493 (ggc_alloc_typed_stat): Remove.
35494 (ggc_alloc_typed): Remove.
35495 (ggc_splay_alloc): Remove first argument.
35496 (rtl_zone): Remove. Update all users.
35497 (tree_zone): Remove. Update all users.
35498 (tree_id_zone): Remove. Update all users.
35499 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35500 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35501 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35502 * tree-ssanames.c: Remove references to zone allocator in comments.
35503
35504 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35505
35506 * config/avr/avr.c (avr_out_fract): Make register numbers that
35507 might be outside of source operand signed.
35508
35509 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35510
35511 * config/i386/constraints.md (Yf): New constraint.
35512 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35513 of f constraint to conditionaly disable x87 register preferences.
35514 (*movdf_internal): Ditto.
35515 (*movsf_internal): Ditto.
35516
35517 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35518
35519 PR inline-asm/55934
35520 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35521 that have operands with impossible constraints.
35522 Add a FIXME for a speed-up opportunity.
35523 * lra-constraints.c (process_alt_operands): Verify that a class
35524 selected from constraints on asms is valid for the operand mode.
35525 (curr_insn_transform): Remove incorrect comment.
35526
35527 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35528
35529 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35530 TOC operand is a valid symbol ref in the constant pool.
35531
35532 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35533
35534 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35535
35536 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35537
35538 PR target/54222
35539 * config/avr/stdfix.h: New file.
35540 * t-avr (stdfix-gcc.h): New rule to build it.
35541 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35542
35543 2013-01-23 Kostya Serebryany <kcc@google.com>
35544
35545 * config/darwin.h: remove dependency on
35546 CoreFoundation (asan on Mac OS).
35547
35548 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35549
35550 PR target/49069
35551 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35552 instead of cmpdi_operand for first comparison operand.
35553 Don't assert that comparison operands aren't both constants.
35554
35555 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35556
35557 * doc/install.texi (Downloading the Source): Update references to
35558 downloading separate components.
35559
35560 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35561
35562 * doc/extend.texi (__int128): Improve grammar.
35563
35564 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35565
35566 PR target/56028
35567 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35568 alternative to (o,r).
35569 (*movdi_internal_rex64): Remove (!o,n) alternative.
35570 (DImode immediate->memory splitter): Remove.
35571 (DImode immediate->memory peephole2): Remove.
35572 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35573 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35574 alternative to (!o,*r).
35575 (*movtf_internal_sse): New pattern.
35576 (*movxf_internal_rex64): New pattern.
35577 (*movxf_internal): Disable for TARGET_64BIT.
35578 (*movdf_internal_rex64): Remove (!o,F) alternative.
35579
35580 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35581
35582 PR middle-end/56074
35583 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35584 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35585 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35586 stmt locations where LOCATION_LOCUS of the stmt location is
35587 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35588
35589 PR target/55686
35590 * config/i386/i386.md (UNSPEC_STOS): New.
35591 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35592 *strsetqi_1): Add UNSPEC_STOS.
35593
35594 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35595
35596 PR c++/56067
35597 * doc/invoke.texi: Remove left over -Wsynth example.
35598
35599 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35600
35601 PR tree-optimization/56051
35602 * fold-const.c (fold_binary_loc): Don't fold
35603 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35604 a narrowing conversion, or widening conversion from signed
35605 to unsigned.
35606
35607 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35608
35609 PR rtl-optimization/56023
35610 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35611 dependent on debug instruction.
35612
35613 2013-01-21 Martin Jambor <mjambor@suse.cz>
35614
35615 PR middle-end/56022
35616 * function.c (allocate_struct_function): Call
35617 invoke_set_current_function_hook earlier.
35618
35619 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35620
35621 * reload1.c (init_reload): Only initialize reload_obstack
35622 during the first call.
35623
35624 2013-01-21 Marek Polacek <polacek@redhat.com>
35625
35626 * cfgloop.c (verify_loop_structure): Fix up grammar.
35627
35628 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35629
35630 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35631 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35632
35633 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35634
35635 PR target/56058
35636 * config/arm/marvell-pj4.md: Update copyright year.
35637 Fix up use of alu to alu_reg and simple_alu_imm.
35638
35639 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35640
35641 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35642
35643 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35644
35645 PR target/55433
35646 * lra-constraints.c (curr_insn_transform): Don't reuse original
35647 insn for secondary memory move when memory mode should be different.
35648
35649 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35650
35651 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35652 atomic_storedi_1): New patterns.
35653
35654 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35655
35656 btver2 pipeline descriptions.
35657 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35658 descriptions.
35659 * config/i386/i386.md (btver2_decode): New type attributes.
35660 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35661 type attributes.
35662 * config/i386/btver2.md: New file describing btver2 pipelines.
35663
35664 2013-01-19 Andrew Pinski <apinski@cavium.com>
35665
35666 PR tree-optimization/52631
35667 * tree-ssa-sccvn (visit_use): Before looking up the original
35668 statement, try looking up the simplified expression.
35669
35670 2013-01-19 Anthony Green <green@moxielogic.com>
35671
35672 * config/moxie/moxie.c (moxie_expand_prologue): Set
35673 current_function_static_stack_size.
35674
35675 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35676
35677 PR tree-optimization/56029
35678 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35679 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35680
35681 2013-01-18 Sharad Singhai <singhai@google.com>
35682
35683 PR tree-optimization/55995
35684 * dumpfile.c (dump_loc): Print location only if available.
35685 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35686
35687 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35688
35689 PR target/55433
35690 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35691 secondary memory move.
35692 (inherit_reload_reg): Use rclass instead of cl for
35693 check_secondary_memory_needed_p.
35694
35695 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35696
35697 PR middle-end/56015
35698 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35699 the case where writing real complex part of target modifies op1.
35700
35701 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35702
35703 * config/aarch64/aarch64-simd.md
35704 (aarch64_vcond_internal<mode>): Handle unordered cases.
35705 * config/aarch64/iterators.md (v_cmp_result): New.
35706
35707 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35708 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35709
35710 * config/arm/marvell-pj4.md: New file.
35711 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35712 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35713 (generic_vfp): Likewise.
35714 * config/arm/arm-cores.def: Add marvell-pj4.
35715 * config/arm/arm-tune.md: Regenerate.
35716 * config/arm/arm-tables.opt: Regenerate.
35717 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35718 * doc/invoke.texi: Document marvell-pj4.
35719
35720 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35721
35722 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35723
35724 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35725
35726 PR debug/54114
35727 PR debug/54402
35728 PR debug/49888
35729 * var-tracking.c (negative_power_of_two_p): New.
35730 (global_get_addr_cache, local_get_addr_cache): New.
35731 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35732 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35733 heading comment.
35734 (vt_stack_offset_p): Remove.
35735 (vt_canon_true_dep): Always canonicalize loc's address.
35736 (clobber_overlapping_mems): Make sure we have a MEM.
35737 (local_get_addr_clear_given_value): New.
35738 (val_reset): Clear local cached entries.
35739 (compute_bb_dataflow): Create and release the local cache.
35740 Disable duplicate MEMs clobbering.
35741 (emit_notes_in_bb): Clobber MEMs likewise.
35742 (vt_emit_notes): Create and release the local cache.
35743 (vt_initialize, vt_finalize): Create and release the global
35744 cache, respectively.
35745 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35746
35747 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35748
35749 PR libmudflap/53359
35750 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35751 not found in the symtab.
35752
35753 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35754
35755 PR debug/56006
35756 PR rtl-optimization/55547
35757 PR rtl-optimization/53827
35758 PR debug/53671
35759 PR debug/49888
35760 * alias.c (offset_overlap_p): New, factored out of...
35761 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
35762 the conservative special case for symbolic constants. Don't
35763 adjust zero sizes on alignment.
35764
35765 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
35766
35767 PR rtl-optimization/52573
35768 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35769 REG_UNUSED for the same register.
35770
35771 2013-01-17 Richard Biener <rguenther@suse.de>
35772 Marek Polacek <polacek@redhat.com>
35773
35774 PR rtl-optimization/55833
35775 * loop-unswitch.c (unswitch_loops): Move loop verification...
35776 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
35777 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35778 Set it to true when we're removing a loop from hierarchy tree in
35779 an irreducible region.
35780 (fix_bb_placements): Adjust caller.
35781 (fix_loop_placements): Likewise.
35782
35783 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
35784
35785 * config/avr/builtins.def (DEF_BUILTIN): Factor out
35786 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35787 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35788 Remove ID. Adjust comments.
35789 * config/avr/avr-c.c (avr_builtin_name): Remove.
35790 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35791 * config/avr/avr.c (avr_tolower): New static function.
35792 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
35793 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35794 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35795 default expansion.
35796
35797 2013-01-17 Jan Hubicka <jh@suse.cz>
35798
35799 PR tree-optimization/55273
35800 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35801
35802 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
35803
35804 PR target/55981
35805 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35806 store through atomic_store<mode>_1.
35807 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35808
35809 2013-01-17 Martin Jambor <mjambor@suse.cz>
35810
35811 PR tree-optimizations/55264
35812 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35813 for virtual methods.
35814 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35815 virtual methods before inlining is over.
35816 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35817 virtual functions.
35818 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35819 non-virtual.
35820
35821 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
35822
35823 PR rtl-optimization/56005
35824 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35825 pending reads for prefetch.
35826
35827 2013-01-16 Ian Bolton <ian.bolton@arm.com>
35828
35829 * config/aarch64/aarch64.md
35830 (*cstoresi_neg_uxtw): New pattern.
35831 (*cmovsi_insn_uxtw): New pattern.
35832 (*<optab>si3_uxtw): New pattern.
35833 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35834 (*<optab>si3_insn_uxtw): New pattern.
35835 (*bswapsi2_uxtw): New pattern.
35836
35837 2013-01-16 Richard Biener <rguenther@suse.de>
35838
35839 * tree-inline.c (tree_function_versioning): Remove set but
35840 never used variable.
35841
35842 2013-01-16 Richard Biener <rguenther@suse.de>
35843
35844 PR tree-optimization/55964
35845 * tree-flow.h (rename_variables_in_loop): Remove.
35846 (rename_variables_in_bb): Likewise.
35847 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35848 (copy_loop_before): Adjust and delete update-ssa status.
35849 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35850 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
35851 (rename_variables_in_loop): Remove.
35852 (slpeel_update_phis_for_duplicate_loop): Likewise.
35853 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35854 use available cfg machinery instead of duplicating it.
35855 Update PHI nodes and perform poor-mans SSA update here.
35856 (slpeel_tree_peel_loop_to_edge): Adjust.
35857
35858 2013-01-16 Richard Biener <rguenther@suse.de>
35859
35860 PR tree-optimization/54767
35861 PR tree-optimization/53465
35862 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35863 (vrp_visit_phi_node): For PHI arguments coming via backedges
35864 drop all symbolical range information.
35865 (execute_vrp): Compute backedges.
35866
35867 2013-01-16 Richard Biener <rguenther@suse.de>
35868
35869 * doc/install.texi: Update CLooG and ISL requirements to
35870 0.18.0 and 0.11.1.
35871
35872 2013-01-16 Christian Bruel <christian.bruel@st.com>
35873
35874 PR target/55301
35875 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35876 (broken_move): Handle UNSPECV_SP_SWITCH_B.
35877 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35878
35879 2013-01-16 DJ Delorie <dj@redhat.com>
35880
35881 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35882 (UNSPECV_SP_SWITCH_E): New.
35883 (sp_switch_1): Change to an unspec.
35884 (sp_switch_2): Change to an unspec. Don't use post-inc when we
35885 replace $r15.
35886
35887 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
35888
35889 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35890 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35891 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35892 (expand_mem_thread_fence): Ditto.
35893 (expand_mem_signal_fence): Ditto.
35894 (expand_atomic_load): Ditto.
35895 (expand_atomic_store): Ditto.
35896
35897 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
35898
35899 PR rtl-optimization/55547
35900 PR rtl-optimization/53827
35901 PR debug/53671
35902 PR debug/49888
35903 * alias.c (memrefs_conflict_p): Set sizes to negative after
35904 AND adjustments.
35905
35906 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35907
35908 PR target/55940
35909 * function.c (thread_prologue_and_epilogue_insns): Always
35910 add crtl->drap_reg to set_up_by_prologue.set, even if
35911 stack_realign_drap is false.
35912
35913 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35914
35915 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35916 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35917 *call): Fix indention.
35918
35919 2013-01-15 Tom de Vries <tom@codesourcery.com>
35920
35921 PR target/55876
35922 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35923 Update comment.
35924
35925 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
35926
35927 PR rtl-optimization/55153
35928 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35929
35930 2013-01-15 Martin Jambor <mjambor@suse.cz>
35931
35932 PR tree-optimization/55920
35933 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35934 accesses as grp_to_be_debug_replaced.
35935
35936 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35937
35938 PR tree-optimization/55920
35939 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35940 there is non-useless type conversion needed from debug rhs to lhs,
35941 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35942
35943 2013-01-15 Joseph Myers <joseph@codesourcery.com>
35944 Mikael Pettersson <mikpe@it.uu.se>
35945
35946 PR target/43961
35947 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35948 Thumb.
35949 (ASM_OUTPUT_CASE_LABEL): Remove.
35950 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35951 * final.c (shorten_branches): Update alignment of labels before
35952 jump tables if CASE_VECTOR_SHORTEN_MODE.
35953
35954 2013-01-15 Richard Biener <rguenther@suse.de>
35955
35956 PR bootstrap/55961
35957 * system.h: Do not include gmp.h for building host tools.
35958
35959 2013-01-15 Richard Biener <rguenther@suse.de>
35960
35961 PR middle-end/55882
35962 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35963 account for bitpos when computing alignment.
35964
35965 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
35966
35967 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35968 (ix86_target_macros_internal): Likewise.
35969
35970 * config/i386/i386.c (m_CORE2I7): Removed.
35971 (m_CORE_HASWELL): New macro.
35972 (m_CORE_ALL): Likewise.
35973 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35974 (initial_ix86_arch_features): Likewise.
35975 (processor_target_table): Initializations for Core avx2.
35976 (cpu_names): New names "core-avx2".
35977 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35978 PROCESSOR_CORE_HASWELL.
35979 (ix86_issue_rate): New case.
35980 (ia32_multipass_dfa_lookahead): Likewise.
35981 (ix86_sched_init_global): Likewise.
35982
35983 * config/i386/i386.h (TARGET_HASWELL): New macro.
35984 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35985 (processor_type): New PROCESSOR_HASWELL.
35986
35987 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35988
35989 PR tree-optimization/55955
35990 * tree-vect-loop.c (vectorizable_reduction): Give up early on
35991 *SHIFT_EXPR and *ROTATE_EXPR codes.
35992
35993 PR tree-optimization/48766
35994 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35995 -ftrapv disable -fwrapv.
35996
35997 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35998
35999 PR target/55974
36000 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36001 etc. to 1 and not to __flash.
36002 Use LL suffix for __INT24_MAX__ with -mint8.
36003 Use ULL suffix for __UINT24_MAX__ with -mint8.
36004
36005 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36006
36007 * config/avr/avr-arch.h
36008 (struct base_arch_s): Use typedef avr_arch_t instead.
36009 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36010 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36011 * config/avr/avr.c: Same.
36012 * config/avr/avr-devices.c: Same.
36013 * config/avr/driver-avr.c: Same.
36014 * config/avr/gen-avr-mmcu-texi.c: Same.
36015 * config/avr/avr-mcus.def: Adjust comment.
36016
36017 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36018
36019 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36020 * config/aarch64/iterators.md (VALLDI): New.
36021
36022 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36023 Andi Kleen <ak@linux.intel.com>
36024
36025 PR target/55948
36026 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36027 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36028 memmodel flag.
36029
36030 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36031
36032 * config/avr/avr-stdint.h: Remove trailing blanks.
36033 * config/avr/avr-log.h: Same.
36034 * config/avr/avr-arch.h: Same.
36035 * config/avr/avr-devices.c: Same.
36036 * config/avr/avr-dimode.md: Same.
36037 * config/avr/predicates.md: Same.
36038 * config/avr/avr-c.c: Same. And fix typo.
36039
36040 * config/avr/avr-protos.h: Same. And:
36041 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36042 (init_cumulative_args): Rename to avr_init_cumulative_args.
36043 (expand_prologue): Rename to avr_expand_prologue.
36044 (expand_epilogue): Rename to avr_expand_epilogue.
36045 (adjust_insn_length): Rename to avr_adjust_insn_length.
36046 (notice_update_cc): Rename to avr_notice_update_cc.
36047 (final_prescan_insn): Rename to avr_final_prescan_insn.
36048 * config/avr/avr.c: Same.
36049 * config/avr/avr.h: Same.
36050 * config/avr/avr.md: Remove trailing blanks.
36051 (prologue): Use avr_expand_prologue.
36052 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36053
36054 2013-01-14 Richard Biener <rguenther@suse.de>
36055
36056 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36057 verify_location, collect_subblocks): New functions.
36058 (verify_gimple_in_cfg): Verify that locations only reference
36059 BLOCKs in the functions BLOCK tree.
36060
36061 2013-01-14 Richard Biener <rguenther@suse.de>
36062
36063 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36064 PHI argument.
36065 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36066 unshare reference.
36067 (insert_out_of_ssa_copy_on_edge): Likewise.
36068 (rewrite_close_phi_out_of_ssa): Likewise.
36069 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36070 debug expressions.
36071 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36072 propagated constants.
36073 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36074 can not be shared.
36075
36076 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36077
36078 * config/avr/avr-modes.def: Add GPL copyright notice.
36079
36080 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36081
36082 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36083 MEMMODEL_MASK to determine memory model.
36084 (atomic_store<mode>): Ditto from operands[2].
36085 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36086
36087 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36088
36089 PR fortran/55935
36090 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36091 (fold_gimple_assign): Don't call unshare_expr here.
36092 (fold_ctor_reference): Call unshare_expr.
36093
36094 2013-01-13 Terry Guo <terry.guo@arm.com>
36095
36096 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36097 * doc/fragments.texi: Document MULTILIB_REUSE.
36098 * gcc.c (multilib_reuse): New internal spec.
36099 (set_multilib_dir): Also search multilib from multilib_reuse.
36100 * genmultilib (tmpmultilib3): Refactor code.
36101 (tmpmultilib4): Ditto.
36102 (multilib_reuse): New multilib argument.
36103
36104 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36105
36106 * Makefile.in: Update copyright.
36107
36108 2013-01-12 Tom de Vries <tom@codesourcery.com>
36109
36110 PR middle-end/55890
36111 * calls.c (expand_call): Check if arg_nr is valid.
36112
36113 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36114
36115 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36116 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36117 documentation. Add missing '__' in front of
36118 __builtin_ia32_packssdw256.
36119
36120 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36121
36122 PR target/55719
36123 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36124 NO_REGS for larl operands.
36125 (s390_reload_larl_operand): Use s390_load_address instead of
36126 emit_move_insn.
36127
36128 2013-01-11 Richard Biener <rguenther@suse.de>
36129
36130 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36131 (verify_node_sharing): ... here.
36132 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36133
36134 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36135
36136 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36137 Substitute TREECHECKING.
36138 * configure: Regenerate.
36139 * Makefile.in (TREECHECKING): New.
36140
36141 2013-01-11 Richard Guenther <rguenther@suse.de>
36142
36143 PR tree-optimization/44061
36144 * tree-vrp.c (extract_range_basic): Compute zero as
36145 value-range for __builtin_constant_p of function parameters.
36146
36147 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36148
36149 Update copyright years.
36150
36151 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36152
36153 PR rtl-optimization/55672
36154 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36155 const to be eliminable.
36156
36157 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36158
36159 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36160 * configure: Regenerate.
36161
36162 2013-01-10 Richard Biener <rguenther@suse.de>
36163
36164 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36165
36166 2013-01-10 Richard Biener <rguenther@suse.de>
36167
36168 PR bootstrap/55792
36169 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36170 locations for virtual PHI arguments.
36171 (rewrite_update_phi_arguments): Likewise.
36172
36173 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36174
36175 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36176 on to assembler.
36177
36178 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36179
36180 PR tree-optimization/55921
36181 * tree-complex.c (expand_complex_asm): New function.
36182 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36183
36184 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36185
36186 PR target/55718
36187 * config/s390/s390.c (s390_symref_operand_p)
36188 (s390_loadrelative_operand_p): Merge the two functions.
36189 (s390_check_qrst_address, print_operand_address): Add parameters
36190 to s390_loadrelative_operand_p invokation.
36191 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36192 (s390_reload_larl_operand, s390_secondary_reload): Use
36193 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36194 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36195
36196 2013-01-09 Mike Stump <mikestump@comcast.net>
36197
36198 * dse.c (record_store): Remove unnecessary assert.
36199
36200 2013-01-09 Jan Hubicka <jh@suse.cz>
36201
36202 PR tree-optimization/55569
36203 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36204 * cfgloop.h (scale_loop_profile): Likewise.
36205
36206 2013-01-09 Jan Hubicka <jh@suse.cz>
36207
36208 PR lto/45375
36209 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36210 functions.
36211 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36212
36213 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36214
36215 PR middle-end/55114
36216 * expr.h (maybe_emit_group_store): Declare.
36217 * expr.c (maybe_emit_group_store): New function.
36218 * builtins.c (expand_builtin_int_roundingfn): Call it.
36219 (expand_builtin_int_roundingfn_2): Likewise.
36220
36221 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36222
36223 PR rtl-optimization/55829
36224 * lra-constraints.c (match_reload): Add code for absent output.
36225 (curr_insn_transform): Add code for reloads of matched inputs
36226 without output.
36227
36228 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36229
36230 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36231 attribute of movddup insn to DF.
36232 (*vec_interleave_lowv2df): Ditto.
36233 (vec_dupv2df): Ditto.
36234
36235 2013-01-09 Jan Hubicka <jh@suse.cz>
36236
36237 PR tree-optimiation/55875
36238 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36239 EVERY_ITERATION parameter.
36240 (number_of_iterations_exit): Check if exit is executed every iteration.
36241 (idx_infer_loop_bounds): Similarly here.
36242 (n_of_executions_at_most): Simplify
36243 to only test for cases where statement is dominated by the
36244 particular bound; handle correctly the "postdominance" test.
36245 (scev_probably_wraps_p): Use max loop iterations info
36246 as a global bound first.
36247
36248 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36249 Nick Clifton <nickc@redhat.com>
36250
36251 * config/v850/v850.md (cbranchsf4): New pattern.
36252 (cstoresf4): New pattern.
36253 (cbranchdf4): New pattern.
36254 (cstoredf4): New pattern.
36255 (movsicc): Disallow floating point comparisons.
36256 (cmpsf_le_insn): Fix order of operators.
36257 (cmpsf_lt_insn): Likewise.
36258 (cmpsf_eq_insn): Likewise.
36259 (cmpdf_le_insn): Likewise.
36260 (cmpdf_lt_insn): Likewise.
36261 (cmpdf_eq_insn): Likewise.
36262 (cmpsf_ge_insn): Use LE comparison.
36263 (cmpdf_ge_insn): Likewise.
36264 (cmpsf_gt_insn): Use LT comparison.
36265 (cmpdf_gt_insn): Likewise.
36266 (cmpsf_ne_insn): Delete pattern.
36267 (cmpdf_ne_insn): Delete pattern.
36268 * config/v850/v850.c (v850_gen_float_compare): Use
36269 gen_cmpdf_eq_insn for NE comparison.
36270 (v850_float_z_comparison_operator)
36271 (v850_float_nz_comparison_operator): Move from here ...
36272 * config/v850/predicates.md: ... to here. Move GT and GE
36273 comparisons into v850_float_z_comparison_operator.
36274 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36275 Delete prototype.
36276 (v850_float_nz_comparison_operator): Likewise.
36277
36278 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36279
36280 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36281 with calls to gen_insvsi/gen_insvdi.
36282
36283 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36284
36285 * config/i386/i386.c (initial_ix86_tune_features): Set up
36286 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36287
36288 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36289 Jakub Jelinek <jakub@redhat.com>
36290
36291 PR tree-optimization/48189
36292 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36293 If nitercst is 0, don't predict the exit edge.
36294
36295 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36296
36297 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36298 in asm_fprintf with reg_names.
36299 (aarch64_print_operand_address): Likewise.
36300 (aarch64_return_addr): Likewise.
36301 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36302
36303 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36304
36305 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36306 (INT_U6_BITS): Likewise.
36307 * config/pa/predicates.md (uint6_operand): New predicate.
36308 (shift5_operand, shift6_operand): Likewise.
36309 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36310 arith32_operand.
36311 (lshrdi3): Use shift6_operand.
36312 (shrpsi4, shrpdi4): New insn patterns.
36313 (extzv): Delete expander.
36314 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36315 predicates in unamed zero extract patterns. Tighten common constraint.
36316 (extv): Delete expander.
36317 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36318 predicates in unamed sign extract patterns. Tighten common constraint.
36319 (insv): Delete expander.
36320 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36321 predicates in unamed insert patterns. Tighten common constraint.
36322 Change uint32_operand predicate to uint6_operand predicate in unamed
36323 DImode pattern to insert constant values of type 1...1xxxx.
36324
36325 2013-01-04 Jan Hubicka <jh@suse.cz>
36326
36327 PR tree-optimization/55823
36328 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36329 issue.
36330
36331 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36332 Uros Bizjak <ubizjak@gmail.com>
36333
36334 PR rtl-optimization/55845
36335 * df-problems.c (can_move_insns_across): Stop scanning at
36336 volatile_insn_p source instruction or give up if
36337 across_from .. across_to range contains any volatile_insn_p
36338 instructions.
36339
36340 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36341
36342 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36343 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36344 Declare.
36345 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36346 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36347
36348 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36349
36350 PR fortran/55341
36351 * asan.c (asan_clear_shadow): New function.
36352 (asan_emit_stack_protection): Use it.
36353
36354 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36355
36356 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36357 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36358 with tab instead of space.
36359
36360 2013-01-08 Nick Clifton <nickc@redhat.com>
36361
36362 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36363 register bank 0 at the start of an interrupt handler.
36364 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36365 MDBH registers.
36366
36367 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36368
36369 * config/aarch64/aarch64-simd.md
36370 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36371 (aarch64_simd_bsl): Likewise.
36372 (aarch64_vcond_internal<mode>): Likewise.
36373 (vcond<mode><mode>): Likewise.
36374 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36375 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36376
36377 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36378
36379 * config/aarch64/aarch64-builtins.c
36380 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36381
36382 2013-01-08 Martin Jambor <mjambor@suse.cz>
36383
36384 PR debug/55579
36385 * tree-sra.c (analyze_access_subtree): Return true also after
36386 potentially creating a debug-only replacement.
36387
36388 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36389
36390 PR middle-end/55890
36391 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36392
36393 PR tree-optimization/54120
36394 * tree-vrp.c (range_fits_type_p): Don't allow
36395 src_precision < precision from signed vr to unsigned_p
36396 if vr->min or vr->max is negative.
36397 (simplify_float_conversion_using_ranges): Test can_float_p
36398 against CODE_FOR_nothing.
36399
36400 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36401 Richard Biener <rguenther@suse.de>
36402
36403 PR middle-end/55851
36404 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36405 types instead of just INTEGER_TYPE types.
36406
36407 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36408
36409 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36410 TF_SIZE): Define.
36411
36412 2013-01-07 Steve Ellcey <sellcey@mips.com>
36413
36414 PR target/42661
36415 * config/mips/mips.opt: Change mad to mmad to match documentation.
36416
36417 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36418
36419 PR target/55897
36420 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36421 .progmemx.data now.
36422
36423 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36424
36425 PR target/55897
36426 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36427 (avr_addrspace_t): Add .section_name field.
36428 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36429 array size.
36430 (avr_addrspace): Same. Initialize .section_name. Remove last
36431 NULL entry. Put __memx into .progmemx.data.
36432 (progmem_section_prefix): Remove.
36433 (avr_asm_init_sections): No need to initialize progmem_section.
36434 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36435 section name prefix.
36436 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36437 retrieve the progmem section.
36438 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36439 boundary to run over avr_addrspace[].
36440 (avr_register_target_pragmas): Ditto.
36441
36442 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36443
36444 * varasm.c (output_constant_def_contents): For asan_protect_global
36445 protected strings, adjust DECL_ALIGN if needed, before testing for
36446 anchored symbols.
36447 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36448 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36449 normal decls.
36450 (output_object_block): For asan protected decls, emit asan padding
36451 after their contents.
36452 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36453 (asan_finish_file): Test it here instead.
36454
36455 2013-01-07 Nick Clifton <nickc@redhat.com>
36456 Matthias Klose <doko@debian.org>
36457 Doug Kwan <dougkwan@google.com>
36458 H.J. Lu <hongjiu.lu@intel.com>
36459
36460 PR driver/55470
36461 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36462
36463 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36464
36465 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36466
36467 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36468
36469 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36470
36471 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36472
36473 PR target/54461
36474 * doc/install.texi (Cross-Compiler-Specific Options): Document
36475 --with-avrlibc.
36476
36477 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36478
36479 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36480 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36481 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36482 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36483 vqmovun_high_s64): Fix source operand number and update copyright.
36484
36485 2013-01-07 Richard Biener <rguenther@suse.de>
36486
36487 PR middle-end/55890
36488 * gimple.h (gimple_call_builtin_p): New overload.
36489 * gimple.c (validate_call): New function.
36490 (gimple_call_builtin_p): Likewise.
36491 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36492 Use gimple_call_builtin_p.
36493 (find_func_clobbers): Likewise.
36494 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36495 (strlen_optimize_stmt): Likewise.
36496
36497 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36498
36499 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36500 (vld1q_dup_*): Likewise.
36501 (vld1_*): Likewise.
36502 (vld1q_*): Likewise.
36503 (vld1_lane_*): Likewise.
36504 (vld1q_lane_*): Likewise.
36505
36506 2013-01-07 Richard Biener <rguenther@suse.de>
36507
36508 * lto-streamer.h (LTO_minor_version): Bump to 2.
36509
36510 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36511
36512 * config/aarch64/aarch64-protos.h
36513 (aarch64_const_double_zero_rtx_p): Rename to...
36514 (aarch64_float_const_zero_rtx_p): ...this.
36515 (aarch64_float_const_representable_p): New.
36516 (aarch64_output_simd_mov_immediate): Likewise.
36517 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36518 move immediate case.
36519 * config/aarch64/aarch64.c
36520 (aarch64_const_double_zero_rtx_p): Rename to...
36521 (aarch64_float_const_zero_rtx_p): ...this.
36522 (aarch64_print_operand): Allow printing of new constants.
36523 (aarch64_valid_floating_const): New.
36524 (aarch64_legitimate_constant_p): Check for valid floating-point
36525 constants.
36526 (aarch64_simd_valid_immediate): Likewise.
36527 (aarch64_vect_float_const_representable_p): New.
36528 (aarch64_float_const_representable_p): Likewise.
36529 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36530 (aarch64_output_simd_mov_immediate): New.
36531 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36532 (*movdf_aarch64): Likewise.
36533 * config/aarch64/constraints.md (Ufc): New.
36534 (Y): call aarch64_float_const_zero_rtx.
36535 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36536
36537 2013-01-07 Richard Biener <rguenther@suse.de>
36538
36539 PR tree-optimization/55888
36540 PR tree-optimization/55862
36541 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36542 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36543 not if it is contained therein.
36544
36545 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36546
36547 * config/avr/t-avr: Typo.
36548
36549 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36550
36551 PR55243
36552 * config/avr/t-avr: Don't automatically rebuild
36553 $(srcdir)/config/avr/t-multilib
36554 $(srcdir)/config/avr/avr-tables.opt
36555 $(srcdir)/doc/avr-mmcu.texi
36556 (avr-mcus): New phony target to build them on request.
36557 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36558 * avr/avr-mcus.def: Adjust comments.
36559
36560 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36561
36562 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36563
36564 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36565
36566 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36567
36568 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36569
36570 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36571
36572 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36573
36574 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36575 to generate profiling.
36576 * config/rs6000/aix64.h (LIB_SPEC): Same.
36577
36578 2013-01-04 Andrew Pinski <apinski@cavium.com>
36579
36580 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36581 New function.
36582 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36583
36584 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36585
36586 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36587 unconditionally.
36588 (ix86_expand_move): Ditto.
36589 (ix86_zero_extend_to_Pmode): Ditto.
36590 (ix86_expand_call): Ditto.
36591 (ix86_expand_special_args_builtin): Ditto.
36592 (ix86_expand_builtin): Ditto.
36593
36594 2013-01-04 Richard Biener <rguenther@suse.de>
36595
36596 PR tree-optimization/55862
36597 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36598 translating them through PHI nodes.
36599
36600 2013-01-04 Martin Jambor <mjambor@suse.cz>
36601
36602 PR tree-optimization/55755
36603 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36604 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36605
36606 2013-01-04 Marek Polacek <polacek@redhat.com>
36607
36608 PR middle-end/55859
36609 * opts.c (default_options_optimization): Clarify error message.
36610
36611 2013-01-04 Richard Biener <rguenther@suse.de>
36612
36613 PR middle-end/55863
36614 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36615 reassociation.
36616
36617 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36618
36619 PR target/53789
36620 * config/pa/pa.md (movsi): Revert previous change.
36621 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36622 references.
36623
36624 2013-01-03 Richard Henderson <rth@redhat.com>
36625
36626 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36627 after eliminating TLS symbols.
36628
36629 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36630
36631 PR bootstrap/50167
36632 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36633 * graphite-poly.c (debug_gmp_value): Likewise.
36634
36635 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36636
36637 PR target/55712
36638 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36639 selected code model, define __code_mode_small__, __code_model_medium__,
36640 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36641 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36642 xchg temporary register with %k. Declare temporary register as
36643 early clobbered.
36644 [__x86_64__]: For medium and large code models, preserve %rbx register.
36645
36646 2013-01-03 Richard Biener <rguenther@suse.de>
36647
36648 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36649 (dump_subscript): Adjust.
36650 (finalize_ddr_dependent): Do not dump redundant info.
36651 (analyze_siv_subscript): Adjust.
36652 (subscript_dependence_tester): Likewise.
36653 (compute_affine_dependence): Likewise.
36654
36655 2013-01-03 Richard Biener <rguenther@suse.de>
36656
36657 Revert
36658 2013-01-03 Richard Biener <rguenther@suse.de>
36659
36660 PR tree-optimization/55857
36661 * tree-vect-stmts.c (vectorizable_load): Do not setup
36662 re-alignment for invariant loads.
36663
36664 2013-01-02 Richard Biener <rguenther@suse.de>
36665
36666 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36667 invariant load do not generate a vector load from the scalar location.
36668
36669 2013-01-03 Richard Biener <rguenther@suse.de>
36670
36671 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36672 for not vectorizing.
36673 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36674 not build INDIRECT_REFs, call get_name once only.
36675 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36676 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36677
36678 2013-01-03 Richard Biener <rguenther@suse.de>
36679
36680 PR tree-optimization/55857
36681 * tree-vect-stmts.c (vectorizable_load): Do not setup
36682 re-alignment for invariant loads.
36683
36684 2013-01-03 Richard Biener <rguenther@suse.de>
36685
36686 PR lto/55848
36687 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36688 prefer a built-in decl.
36689
36690 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36691
36692 * gcc.c (process_command): Update copyright notice dates.
36693 * gcov.c (print_version): Likewise.
36694 * gcov-dump.c (print_version): Likewise.
36695
36696 PR rtl-optimization/55838
36697 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36698 iv0.step, iv1.step and step.
36699
36700 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36701 Marc Glisse <marc.glisse@inria.fr>
36702
36703 PR tree-optimization/55832
36704 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36705 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36706 integer_{one,zero}_node.
36707
36708 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36709
36710 PR debug/54402
36711 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36712 * var-tracking.c (reverse_op): Don't add reverse ops to
36713 VALUEs that have already
36714 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36715
36716 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36717
36718 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36719
36720 2013-01-02 Teresa Johnson <tejohnson@google.com>
36721
36722 * dumpfile.c (dump_loc): Print filename with location.
36723 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36724 new location_t parameter to emit complete unroll message with
36725 new dump framework.
36726 (canonicalize_loop_induction_variables): Compute loops location
36727 and pass to try_unroll_loop_completely.
36728 * loop-unroll.c (report_unroll_peel): New function.
36729 (peel_loops_completely): Use new dump format with location
36730 for main dumpfile message, and invoke report_unroll_peel on success.
36731 (decide_unrolling_and_peeling): Ditto.
36732 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36733 by report_unroll_peel.
36734 (decide_peel_completely): Ditto.
36735 (decide_unroll_constant_iterations): Ditto.
36736 (decide_unroll_runtime_iterations): Ditto.
36737 (decide_peel_simple): Ditto.
36738 (decide_unroll_stupid): Ditto.
36739 * cfgloop.c (get_loop_location): New function.
36740 * cfgloop.h (get_loop_location): Declare.
36741
36742 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36743
36744 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36745 NULL.
36746
36747 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36748
36749 PR middle-end/55198
36750 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36751 BLKmode objects when EXPAND_MEMORY is specified.
36752
36753 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36754
36755 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36756 in loop predicate.
36757 (fold_builtin_cpu): Do not share cpu model decls across statements.
36758
36759 2013-01-02 Jason Merrill <jason@redhat.com>
36760
36761 PR c++/55804
36762 * tree.c (build_array_type_1): Revert earlier change.
36763
36764 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
36765
36766 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36767 "cortex-a57".
36768 * config/aarch64/aarch64-tune.md: Re-generate.
36769
36770 2013-01-02 Richard Biener <rguenther@suse.de>
36771
36772 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36773 invariant load do not generate a vector load from the scalar location.
36774
36775 2013-01-02 Richard Biener <rguenther@suse.de>
36776
36777 PR bootstrap/55784
36778 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36779 * configure: Regenerate.
36780
36781 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36782
36783 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36784 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36785 (expand_builtin_int_roundingfn_2): Keep the original target around
36786 for the fallback case.
36787
36788 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36789
36790 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36791 to be clear for sign changes.
36792
36793 2013-01-01 Jan Hubicka <jh@suse.cz>
36794
36795 * ipa-inline-analysis.c: Fix formatting.
36796
36797 2013-01-01 Jakub Jelinek <jakub@redhat.com>
36798
36799 PR tree-optimization/55831
36800 * tree-vect-loop.c (get_initial_def_for_induction): Use
36801 gsi_after_labels instead of gsi_start_bb.
36802 \f
36803 Copyright (C) 2013 Free Software Foundation, Inc.
36804
36805 Copying and distribution of this file, with or without modification,
36806 are permitted in any medium without royalty provided the copyright
36807 notice and this notice are preserved.