1 2011-06-27 Tristan Gingold <gingold@adacore.com>
4 * config/vms/vms-protos.h: New file.
5 * config/vms/vms-crtlmap.map: New file.
6 * config/vms/vms.c: New file.
7 * config/vms/make-crtlmap.awk: New file.
8 * config/vms/vms-crtl.h: File removed.
9 * config/vms/vms-crtl-64.h: File removed.
10 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11 * config/alpha/vms64.h: Do not include vms-crtl-64.h
12 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
13 clear some builtins on VMS. Calls vms_patch_builtins.
14 (avms_asm_output_external): Remove.
15 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
16 (struct crtl_name_spec): Remove
17 (DO_CTRL_NAMES): Remove.
18 * config/ia64/vms.h (struct crtl_name_spec): Remove
19 (DO_CTRL_NAMES): Remove.
20 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
21 clear some builtins on VMS. Calls vms_patch_builtins.
22 (ia64_asm_output_external): Remove DO_CRTL_NAME.
23 * config/ia64/vms64.h: Do not include vms-crtl-64.h
24 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
27 2011-06-27 Tristan Gingold <gingold@adacore.com>
29 * config/alpha/alpha.c (alpha_end_function): Always generate .end
32 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
34 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
35 the function receives nonlocal gotos.
37 2011-06-27 Richard Guenther <rguenther@suse.de>
39 PR tree-optimization/49536
40 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
41 For non-scalar inner types use a scalar type according to
42 the scalar inner mode.
44 2011-06-27 Richard Guenther <rguenther@suse.de>
46 PR tree-optimization/49365
47 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
49 2011-06-27 Richard Guenther <rguenther@suse.de>
51 PR tree-optimization/49169
52 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
53 the alignment of function decls.
55 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
58 * config/darwin.c (darwin_mergeable_string_section): Place string
59 constants in '.cstring' rather than '.const' when CF/NSStrings are
62 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
64 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
65 (emit_save_register_window): Likewise.
66 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
67 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
68 Swap back %o7/%i7 in register naming.
70 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
73 * config/darwin.c (darwin_override_options): Improve warning when
74 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
75 is given with fpie/fPIE.
76 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
77 * config/darwin9.h (PIE_SPEC): New.
79 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
81 * timevar.c (timevar_print): Increase width for display of timevar
84 2011-06-24 Jakub Jelinek <jakub@redhat.com>
87 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
88 instead of TYPE_CHAIN for chain_next for types.
90 2011-06-24 Richard Henderson <rth@redhat.com>
92 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
93 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
94 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
95 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
96 (sparc_flat_expand_prologue): Emit individual instructions
97 instead of one of the above.
99 2011-06-24 Easwaran Raman <eraman@google.com>
101 PR rtl-optimization/49429
103 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
104 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
105 used to copy y into x.
106 * calls.c (initialize_argument_information): Mark
107 an argument addressable if it is passed by invisible reference.
108 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
109 if it is passed by reference.
111 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
113 PR rtl-optimization/49504
114 * rtlanal.c (nonzero_bits1): Properly handle addition or
115 subtraction of a pointer in Pmode if pointers extend unsigned.
116 (num_sign_bit_copies1): Likewise.
118 2011-06-24 Martin Jambor <mjambor@suse.cz>
120 PR tree-optimizations/49516
121 * tree-sra.c (sra_modify_assign): Choose the safe path for
122 aggregate copies if we also did scalar replacements.
124 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
127 * config/arm/predicates.md (add_operator): New.
128 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
131 2011-06-24 Andi Kleen <ak@linux.intel.com>
133 * tree-sra.c (type_internals_preclude_sra_p): Add msg
134 parameter. Split up ifs and report reason in *msg.
136 (find_var_candiate): Add msg variable.
137 Split up ifs and report reason to reject.
138 (find_param_candidates): Add msg variable.
139 Pass msg to type_internals_preclude_sra_p.
141 2011-06-23 Jeff Law <law@redhat.com>
144 * reload.h (reload): Change to return a bool.
145 * ira.c (ira): If requested by reload, run a fast DCE pass after
146 reload has completed. Fix comment typo.
147 * reload1.c (need_dce): New file scoped static.
148 (reload): Set reload_completed here. Return whether or not a DCE
149 pass after reload is needed.
150 (delete_dead_insn): Set need_dce as needed.
153 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
154 to detect threading through joiner block. If there was already
155 an edge to the new target, then do not change the PHI nodes.
157 2011-06-23 Jakub Jelinek <jakub@redhat.com>
159 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
160 get_pointer_alignment to see if base isn't sufficiently aligned.
162 2011-06-23 Jan Hubicka <jh@suse.cz>
164 PR tree-optimize/49373
165 * tree-pass.h (all_late_ipa_passes): Declare.
166 * cgraphunit.c (init_lowered_empty_function): Fix properties.
167 (cgraph_optimize): Execute late passes; remove unreachable funcions after
169 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
170 * passes.c (all_late_ipa_passes): Declare.
171 (dump_passes, register_pass): Handle late ipa passes.
172 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
173 at beggining of all_passes.
174 (apply_ipa_transforms): New function.
175 (execute_one_pass): When doing simple ipa pass, apply all transforms.
177 2011-06-23 Joseph Myers <joseph@codesourcery.com>
179 * params.c: Include common/common-target.h. Don't include tm.h.
180 (lang_independent_params): Move from toplev.c.
181 (global_init_params): New.
182 * params.h (global_init_params): Declare.
183 * target.def (default_params): Move to common-target.def.
184 * toplev.c (lang_independent_options): Remove.
185 (lang_independent_params): Move to params.c.
186 (general_init): Use global_init_params.
187 * common/common-target.def (option_default_params): Move from
189 * common/config/ia64/ia64-common.c: Include params.h.
190 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
192 * common/config/rs6000/rs6000-common.c: Include params.h.
193 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
195 * common/config/sh/sh-common.c: Include params.h.
196 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
198 * common/config/spu/spu-common.c: Include params.h.
199 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
201 * config/ia64/ia64.c (ia64_option_default_params,
202 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
203 * config/rs6000/rs6000.c (rs6000_option_default_params,
204 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
205 * config/sh/sh.c (sh_option_default_params,
206 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
207 * config/spu/spu.c (spu_option_default_params,
208 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
209 * Makefile.in (OBJS): Remove params.o.
210 (OBJS-libcommon-target): Add params.o.
211 (params.o, $(common_out_object_file)): Update dependencies.
212 * doc/tm.texi: Regenerate.
214 2011-06-23 Alan Modra <amodra@gmail.com>
217 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
218 invocation for 2011-06-09 changes.
220 2011-06-22 Jakub Jelinek <jakub@redhat.com>
223 * omp-low.c (expand_omp_for_static_nochunk): Only
224 use n ceil/ nthreads size for the first
225 n % nthreads threads in the team instead of
226 all threads except for the last few ones which
227 get less work or none at all.
230 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
233 2011-06-22 Richard Guenther <rguenther@suse.de>
235 PR tree-optimization/49493
236 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
237 Refer to the alias target of variables.
238 (associate_varinfo_to_alias_1): Remove.
239 (ipa_pta_execute): Do not associate aliases with anything.
240 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
241 (cgraph_function_node): Likewise.
242 (cgraph_function_or_thunk_node): Likewise.
243 (varpool_variable_node): Likewise.
245 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
247 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
249 * config.gcc (arm*-*-linux*): Default to gnu tls.
250 (arm*-*-*): Add --with-tls option.
251 (all_defaults): Add 'tls'.
253 2011-06-22 Richard Henderson <rth@redhat.com>
255 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
256 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
257 (dwarf2out_frame_debug_cfa_window_save): Rename from
258 dwarf2out_window_save; make static.
259 * tree.h (dwarf2out_window_save): Don't declare.
261 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
262 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
263 (emit_save_register_window): Rename from gen_save_register_window;
264 emit the insn and add REG_CFA_* notes.
265 (sparc_expand_prologue): Update to match.
266 * config/sparc/sparc.md (save_register_window_1): Simplify from
267 save_register_window<P:mode>.
269 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
272 * config/i386/i386.md (*lea_general_2): Always allow SImode.
273 (*lea_general_2_zext): Likewise.
274 (imul to lea peepholes): Use const359_operand and check
275 TARGET_PARTIAL_REG_STALL.
277 * config/i386/predicates.md (const359_operand): New.
279 2011-06-22 Michael Matz <matz@suse.de>
281 * cgraphunit.c (assemble_thunk): Use correct return type.
283 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
284 Dmitry Melnik <dm@ispras.ru>
286 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
287 (neon_output_shift_immediate): Ditto.
288 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
290 (neon_output_shift_immediate): Ditto.
291 * config/arm/neon.md (vashl<mode>3): Modified constraint.
292 (vashr<mode>3_imm): New insn pattern.
293 (vlshr<mode>3_imm): Ditto.
294 (vashr<mode>3): Modified constraint.
295 (vlshr<mode>3): Ditto.
296 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
298 (imm_for_neon_rshift_operand): Ditto.
299 (imm_lshift_or_reg_neon): Ditto.
300 (imm_rshift_or_reg_neon): Ditto.
302 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
304 2011-06-22 Jakub Jelinek <jakub@redhat.com>
306 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
307 builtin calls even if likelyvalue is not CONSTANT.
308 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
309 Return get_value_for_expr of first operand
310 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
311 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
312 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
313 their non-checking counterparts.
314 (call_may_clobber_ref_p_1): Likewise.
315 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
316 like their non-checking counterparts.
317 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
318 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
319 like their non-checking counterparts.
320 (find_func_clobbers): Likewise.
321 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
322 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
324 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
325 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
326 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
327 of base type reference as argument.
328 (resolve_addr_in_expr): Likewise. Fix keep computation.
329 (convert_descriptor_to_signed): Renamed to...
330 (convert_descriptor_to_mode): ... this. For wider types convert
331 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
333 (typed_binop): New function.
334 (scompare_loc_descriptor, ucompare_loc_descriptor,
335 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
336 default to unsigned type instead of signed.
339 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
340 (gimple_build_debug_source_bind_stat): New prototype.
341 (gimple_build_debug_source_bind): Define.
342 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
343 gimple_debug_source_bind_get_value,
344 gimple_debug_source_bind_get_value_ptr,
345 gimple_debug_source_bind_set_var,
346 gimple_debug_source_bind_set_value): New inlines.
347 * gimple.c (gimple_build_debug_source_bind_stat): New function.
348 * gimple-pretty-print.c (dump_gimple_debug): Handle
349 GIMPLE_DEBUG_SOURCE_BIND.
350 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
351 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
352 * tree-parloops.c (eliminate_local_variables,
353 separate_decls_in_region): Likewise.
354 (separate_decls_in_region_debug): Renamed from
355 separate_decls_in_region_debug_bind. Handle
356 gimple_debug_source_bind_p.
357 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
359 (DECL_HAS_DEBUG_ARGS_P): Define.
360 (struct tree_function_decl): Add has_debug_args_flag field.
361 * tree.c (debug_args_for_decl): New variable.
362 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
363 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
364 (rewrite_debug_stmt_uses): New function.
365 (rewrite_stmt): Use it to rewrite debug stmt uses.
366 * rtl.def (DEBUG_PARAMETER_REF): New.
367 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
368 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
370 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
371 * print-rtl.c (print_rtx): Likewise.
372 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
373 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
374 debug stmts in the first bb.
375 * tree-inline.c (remap_ssa_name): If remapping default def
376 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
377 a source bind debug stmt.
378 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
379 (maybe_move_debug_stmts_to_successors): Likewise.
380 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
381 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
382 debug args vector from old_decl to new_decl.
383 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
384 or modified parameters, add debug bind stmts before call
385 setting DEBUG_EXPR_DECL which is remembered in debug args
387 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
388 on DECL_DEBUG_EXPRs from debug args vector.
389 (expand_debug_source_expr): New function.
390 (expand_debug_locations): Use it for source bind insns.
391 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
392 * var-tracking.c (prepare_call_arguments): Add debug args
393 to call_arguments if any.
394 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
395 output_loc_operands, output_loc_operands_raw,
396 resolve_addr_in_expr, compare_loc_operands): Handle
397 DW_OP_GNU_parameter_ref.
398 (get_ref_die_offset, parameter_ref_descriptor): New functions.
399 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
400 (gen_subprogram_die): Handle parameters identified by
403 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
405 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
406 * doc/install.texi (Configuration): Document --with-tls.
407 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
408 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
409 (arm_tls_descseq_addr): New.
410 (legitimize_tls_address): Add tlsdesc support.
411 (arm_cannot_copy_insn_p): Check for tlscall.
412 (arm_emit_tls_decoration): Likewise.
413 * config/arm/arm.h (TARGET_GNU2_TLS): New.
414 (OPTION_DEFAULT_SPECS): Add with-tls support.
415 * config/arm/arm.md (R1_REGNUM): Define.
417 * config/arm/arm.opt (tls_type): New enumeration type and values.
418 (mtls-dialect): New switch.
419 * config/arm/arm-opts.h (enum tls_type): New.
421 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
423 * attribs.c (register_attribute): Added assert to check that all
424 attribute specs are registered with a name that is not empty and
425 does not start with '_'.
426 (decl_attributes): Avoid the lookup of the "naked" attribute spec
427 if the function has no attributes.
428 * tree.c (is_attribute_with_length_p): Removed.
429 (is_attribute_p): Removed.
430 (private_is_attribute_p): New.
431 (private_lookup_attribute): New.
432 (lookup_attribute): Removed.
433 (lookup_ident_attribute): New.
434 (remove_attribute): Require the first argument to be in the form
435 'text', not '__text__'. Updated asserts.
436 (merge_attributes): Use lookup_ident_attributes instead of
438 (merge_dllimport_decl_attributes): Use remove_attribute.
439 (attribute_list_contained): Likewise.
440 (attribute_list_equal): Immediately return 1 if the arguments are
442 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
443 'int'. Require the first argument to be in the form 'text', not
444 '__text__'. Require the second argument to be an identifier.
445 (lookup_attribute): Made inline. Require the first argument to be
446 in the form 'text', not '__text__'.
447 (private_is_attribute_p, private_lookup_attribute): New.
450 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
452 * builtins.c: Add sync_ or SYNC__ to builtin names.
453 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
454 * omp-low.c: Add sync_ or SYNC__ to builtin names.
456 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
459 * config/avr/avr.md (extzv): New expander.
461 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
462 * config/avr/constraints.md (C04): New constraint.
463 * doc/md.texi (Machine Constraints): Document it.
465 2011-06-21 Jakub Jelinek <jakub@redhat.com>
468 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
469 unsignedp argument instead of 1 for clrsb_optab.
470 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
471 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
472 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
473 * optabs.c (widen_leading): Call widen_operand and expand_unop
474 with 0 as unsignedp argument instead of 1 for clrsb_optab.
475 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
477 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
479 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
481 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
483 * gensupport.c (add_define_attr): New static function.
484 (is_predicable): Allow multi-alternative lists for the "predicable"
486 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
487 (process_one_cond_exec): Call alter_attrs_for_insn.
488 * doc/md.texi (Defining Attributes): Mention some standard names.
489 (Conditional Execution): Update documentation for "predicable".
491 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
492 __builtin_clrsbll): Document.
493 * doc/rtl.texi (clrsb): New entry.
494 * optabs.c (widen_leading): Renamed from widen_clz. New argument
495 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
496 (expand_unop): Handle clrsb_optab.
497 (init_optabs): Initialize it.
498 * optabs.h (enum optab_index): New entry OTI_clrsb.
499 (clrsb_optab): Define.
500 * genopinit.c (optabs): Add an entry for it.
501 * builtins.c (expand_builtin): Handle clrsb builtin functions.
502 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
503 BUILT_IN_CLRSBLL): New.
504 * rtl.def (CLRSB): New code.
505 * dwarf2out.c (mem_loc_descriptor): Handle it.
506 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
507 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
509 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
510 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
511 (__ctzDI2): Move declaration.
512 * config/bfin/bfin.md (clrsbsi2): New expander.
513 (signbitssi2): Use the CLRSB rtx.
514 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
515 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
517 2011-06-21 Richard Guenther <rguenther@suse.de>
519 * ipa-inline-transform.c (inline_transform): Fix previous change.
521 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
523 PR tree-optimization/49478
524 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
525 with constant operand.
527 2011-06-21 Richard Guenther <rguenther@suse.de>
529 * ipa-inline-transform.c (inline_transform): Fix typo.
531 2011-06-21 Richard Guenther <rguenther@suse.de>
533 PR tree-optimization/49483
534 * tree-vect-stmts.c (vectorizable_assignment): Also handle
535 VIEW_CONVERT_EXPR conversions.
537 2011-06-21 Joseph Myers <joseph@codesourcery.com>
539 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
540 * config/avr/avr-tables.opt: New file (generated).
541 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
542 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
544 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
545 (avr_option_override): Don't process -mmcu= argument here. Set
546 avr_current_device using avr_mcu_index.
547 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
548 * config/avr/avr.opt (mmcu=): Use Enum.
549 * config/avr/t-avr (avr-devices.o): Update dependencies.
550 ($(srcdir)/config/avr/avr-tables.opt): New.
551 * target.def (help): Remove.
552 * doc/tm.texi.in (TARGET_HELP): Remove.
553 * doc/tm.texi: Regenerate.
554 * opts.c: Don't include target.h.
555 (common_handle_option): Don't call targetm.help.
556 * system.h (TARGET_HELP): Poison.
557 * Makefile.in (opts.o): Update dependencies.
559 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
561 * config/usegld.h: New file.
562 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
563 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
564 (LIB_SPEC): Likewise. Search /lib.
565 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
566 (RDYNAMIC_SPEC): Handle GNU ld.
567 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
569 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
570 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
571 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
572 (STACK_CHECK_STATIC_BUILTIN): Define.
573 * config/sol2.opt (compat-bsd): Remove.
574 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
575 * config/sol2-bi.h: New file.
576 * config/sol2-gld.h: Remove.
577 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
578 (NO_DBX_BNSYM_ENSYM): Remove.
579 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
580 (STACK_CHECK_STATIC_BUILTIN): Remove.
581 Test USE_GLD instead of TARGET_GNU_LD.
582 * config/i386/sol2-10.h: Rename to ...
583 * config/i386/sol2-bi.h .. this.
584 (SUBTARGET_EXTRA_SPECS): Redefine.
585 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
586 (MULTILIB_DEFAULTS): Remove.
587 (DEFAULT_ARCH32_P): Define.
588 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
589 (ARCH64_SUBDIR): Define.
590 Test USE_GLD instead of TARGET_GNU_LD.
591 (I386_EMULATION): Rename to ...
592 (ARCH32_EMULATION): ... this.
593 (X86_64_EMULATION): Rename to ...
594 (ARCH64_EMULATION): ... this.
595 (TARGET_LD_EMULATION): Remove.
596 (LINK_ARCH_SPEC): Remove.
597 * config/i386/sol2-gas.h: Remove.
598 * config/i386/t-sol2-10: Rename to ...
599 * config/i386/t-sol2-64: ... this.
600 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
601 (AS_SPARC64_FLAG): Define.
602 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
603 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
604 depending on TARGET_CPU_DEFAULT.
605 (CPP_CPU_SPEC): Redefine.
606 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
607 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
608 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
609 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
610 ASM_ARCH_DEFAULT_SPEC): Redefine.
611 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
612 LINK_ARCH_DEFAULT_SPEC.
613 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
614 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
615 (ARCH64_SUBDIR): Define.
616 (LINK_ARCH64_SPEC): Redefine.
617 (CC1_SPEC): Redefine.
618 (OPTION_DEFAULT_SPECS): Redefine.
619 (MULTILIB_DEFAULTS): Define.
620 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
621 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
622 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
623 (NO_DBX_BNSYM_ENSYM): Remove.
624 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
625 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
626 (TARGET_ASM_NAMED_SECTION): Likewise.
627 (STACK_CHECK_STATIC_BUILTIN): Remove.
628 * config/sparc/sol2-bi.h: Remove.
629 * config/sparc/sol2-gas-bi.h: Remove.
630 * config/sparc/sol2-gas.h: Remove.
631 * config/sparc/sol2-gld-bi.h: Remove.
632 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
634 (*-*-solaris2*): ... here.
636 2011-06-21 Christian Bruel <christian.bruel@st.com>
639 * ipa-inline.c (can_inline_edge_p): Check
640 !DECL_DISREGARD_INLINE_LIMITS.
642 2011-06-21 Christian Bruel <christian.bruel@st.com>
645 * cgraphunit.c (process_function_and_variable_attributes): warn when
646 always_inline functions that are not inline.
647 * ipa-inline-transform.c (inline_transform): Always call
649 * tree-inline.c (tree_inlinable_function_p): Use error instead
651 (expand_call_inline): Likewise.
653 2011-06-21 Jakub Jelinek <jakub@redhat.com>
655 * Makefile.in (dg_target_exps): Set.
656 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
657 instead of 7, try to divide it more evenly.
659 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
662 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
663 (avx256_split_unaligned_store): New definition.
664 (ix86_option_override_internal): Enable avx256 unaligned load/store
665 splitting only when avx256_split_unaligned_load/store is set.
667 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
669 * regrename.c (scan_rtx_reg): Handle the case where we write to an
670 open chain in a smaller mode without failing the entire block.
672 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
675 * combine.c (cant_combine_insn_p): Don't check zero/sign
676 extended hard registers.
678 2011-06-21 Alan Modra <amodra@gmail.com>
680 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
681 CONST high part large-toc address.
682 (rs6000_tls_referenced_p): Make static.
683 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
685 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
688 * combine.c (cant_combine_insn_p): Check zero/sign extended
691 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
694 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
695 one of the operands is a register.
697 2011-06-20 Kai Tietz <ktietz@redhat.com>
699 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
700 operations in combination with binary and.
702 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
704 * regrename.c (do_replace): Don't update notes.
706 2011-06-20 Alan Modra <amodra@gmail.com>
708 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
709 of toc-relative address in CONST.
710 (rs6000_delegitimize_address): Recognize changed address.
711 (rs6000_legitimize_reload_address): Likewise.
712 (rs6000_emit_move): Don't force these constants to memory.
713 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
714 toc-relative address in CONST.
715 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
716 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
718 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
720 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
721 (count_trailing_zeros): Likewise.
723 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
726 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
727 .init_array can be used with .ctors on targets.
728 * configure: Regenerated.
730 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
732 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
733 if the element type is volatile.
735 2011-06-18 Jan Hubicka <jh@suse.cz>
737 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
739 (lto_symtab_resolve_can_prevail_p): Likewise.
740 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
741 * cgraphbuild.c (record_reference): Remove extra body alias code.
742 (mark_load): Likewise.
743 (mark_store): Likewise.
744 * cgraph.h (varpool_node): Remove extra_name filed;
745 add alias_of and extraname_alias.
746 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
747 (varpool_alias_aliased_node): New inline function.
748 (varpool_variable_node): New function.
749 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
750 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
751 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
752 (input_varpool_node): Likewise.
753 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
754 (varpool_externally_visible_p): Remove extra body alias code.
755 (function_and_variable_visibility): Likewise.
756 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
757 (ipa_pta_execute): Use it.
758 * varpool.c (varpool_remove_node): Remove extra name alias code.
759 (varpool_mark_needed_node): Likewise.
760 (varpool_analyze_pending_decls): Analyze aliases.
761 (assemble_aliases): New functoin.
762 (varpool_assemble_decl): Use it.
763 (varpool_create_variable_alias): New function.
764 (varpool_extra_name_alias): Rewrite.
765 (varpool_for_node_and_aliases): New function.
767 2011-06-18 Jakub Jelinek <jakub@redhat.com>
770 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
771 last_arg_constant and last argument doesn't match its predicate,
772 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
773 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
774 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
775 spelling of error message.
776 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
777 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
778 const_0_to_255_operand instead of const_int_operand.
781 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
783 * config/i386/sse.md (blendbits): Remove mode attribute.
784 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
785 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
786 Check integer value of operand 3 in insn constraint.
788 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
790 PR rtl-optimization/48542
791 * reload.c (find_equiv_reg): Stop looking when finding a
793 * reload1.c (reload_as_needed): Invalidate all reload
794 registers when crossing a setjmp-type call.
796 2011-06-16 Jeff Law <law@redhat.com>
798 * tree-ssa-threadupdate.c (struct redirection_data): New field
800 (THREAD_TARGET2): Define.
801 (redirection_data_eq): Also check that the intermediate edge is equal.
802 (lookup_redirection_data): Drop useless argument. Extract the
803 outgoing_edge and intermediate edge from E. Callers updated.
804 (copy_phi_args, update_destination_phis): New functions.
805 (fix_duplicate_block_edges): Likewise.
806 (create_edge_and_update_destination_phis): Duplicate all the edges
807 hung off e->aux. Use copy_phi_args.
808 (create_duplicates): Use fix_duplicate_block_edges.
809 (fixup_template_block): Likewise.
810 (redirect_edges): If necessary, redirect the joiner block's incoming
811 edge to the duplicate of the joiner block.
812 (thread_block): Don't muck up loops when threading through a joiner
814 (thread_through_loop_header): Handle threading through a joiner block.
815 (mark_threaded_blocks, register_jump_thread): Likewise.
816 * tree-flow.h (register_jump_thread): Add new argument. Callers
818 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
819 (thread_across_edge): Handle threading through a joiner block.
821 2011-06-16 Martin Jambor <mjambor@suse.cz>
823 PR tree-optimization/49343
824 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
825 calculate offset, provide 2nd operand for the new COMPONENT_REF.
827 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
829 * config/darwin-protos.h (machopic_select_rtx_section): Move to
830 inside RTX_CODE ifdef.
832 2011-06-16 Tom de Vries <tom@codesourcery.com>
835 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
836 Disallow NULL pointer for pointer arithmetic.
838 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
842 2011-06-10 Wei Guozhi <carrot@google.com>
845 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
846 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
847 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
849 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
851 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
852 (arm_legitimate_ldrd_p): New prototype.
853 (arm_output_ldrd): New prototype.
854 * config/arm/arm.c (arm_check_ldrd_operands): New function.
855 (arm_legitimate_ldrd_p): New function.
856 (arm_output_ldrd): New function.
858 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
861 * doc/tm.texi.in: Update Copyright date.
862 * doc/tm.texi: Regenerate.
863 * targhooks.c (default_setup_incoming_varargs): Replace
864 CUMULATIVE_ARGS* argument type with cumulative_args_t.
865 (default_pretend_outgoing_varargs_named): Likewise.
866 (hook_pass_by_reference_must_pass_in_stack): Likewise.
867 (hook_callee_copies_named): Likewise.
868 (default_function_arg_advance): Likewise.
869 (default_function_arg): Likewise.
870 (default_function_incoming_arg): Likewise.
871 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
872 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
873 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
874 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
875 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
876 * targhooks.h (default_setup_incoming_varargs): Likewise.
877 (default_pretend_outgoing_varargs_named): Likewise.
878 (hook_pass_by_reference_must_pass_in_stack): Likewise.
879 (hook_callee_copies_named): Likewise.
880 (default_function_arg_advance): Likewise.
881 (default_function_arg): Likewise.
882 (default_function_incoming_arg): Likewise.
883 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
884 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
885 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
886 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
887 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
888 * target.def (pass_by_reference): Likewise.
889 (setup_incoming_varargs, strict_argument_naming): Likewise.
890 (pretend_outgoing_varargs_named, callee_copies): Likewise.
891 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
892 (function_incoming_arg): Likewise.
893 * target.h: Don't include "tm.h" .
894 (cumulative_args_t): New typedef.
895 [GCC_TM_H] (get_cumulative_args): New static inline function.
896 [GCC_TM_H] (pack_cumulative_args): Likewise.
897 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
898 argument type with cumulative_args_t.
899 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
900 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
901 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
902 (frv_arg_partial_bytes, frv_function_arg): Likewise.
903 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
904 (frv_function_arg_1): Likewise.
905 * config/s390/s390.c (s390_pass_by_reference): Likewise.
906 (s390_function_arg_advance, s390_function_arg): Likewise.
907 * config/m32c/m32c.c (m32c_function_arg): Likewise.
908 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
909 (m32c_strict_argument_naming): Likewise.
910 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
911 (spu_function_arg_advance): Likewise.
912 (spu_setup_incoming_varargs): Likewise. Make static.
913 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
915 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
916 CUMULATIVE_ARGS* argument type with cumulative_args_t.
917 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
918 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
919 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
920 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
921 (mep_pass_by_reference, mep_function_arg): Likewise.
922 (mep_function_arg_advance): Likewise.
923 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
924 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
925 (m32r_function_arg, m32r_function_arg_advance): Likewise.
926 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
927 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
928 (ix86_function_arg, ix86_pass_by_reference): Likewise.
929 (ix86_setup_incoming_varargs): Likewise.
930 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
931 (sh_strict_argument_naming): Likewise.
932 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
933 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
934 (sh_function_arg_advance, sh_function_arg): Likewise.
935 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
936 (pdp11_function_arg_advance): Likewise.
937 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
939 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
940 * config/avr/avr.c (avr_function_arg): Likewise.
941 (avr_function_arg_advance): Likewise.
942 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
943 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
944 (xtensa_function_arg_1): Likewise.
945 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
947 (xstormy16_function_arg): Likewise.
948 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
949 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
950 (fr30_function_arg_advance): Likewise.
951 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
952 (lm32_function_arg, lm32_function_arg_advance): Likewise.
953 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
954 (moxie_function_arg, moxie_function_arg_advance): Likewise.
955 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
956 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
957 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
958 (cris_function_arg, cris_function_incoming_arg): Likewise.
959 (cris_function_arg_advance, cris_function_arg_1): Likewise.
960 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
961 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
962 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
963 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
964 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
965 (mn10300_arg_partial_bytes): Likewise.
966 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
967 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
968 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
969 (ia64_function_arg_1): Likewise.
970 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
971 (m68k_function_arg): Likewise.
972 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
973 (rs6000_function_arg, setup_incoming_varargs): Likewise.
974 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
975 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
976 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
977 (picochip_arg_advance): Likewise.
978 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
979 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
980 (mcore_function_arg_advance): Likewise.
981 * config/score/score.c (score_pass_by_reference): Likewise.
982 (score_function_arg_advance): Likewise.
983 (score_arg_partial_bytes): Likewise. Make static.
984 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
985 * config/arm/arm.c (arm_arg_partial_bytes): Replace
986 CUMULATIVE_ARGS* argument type with cumulative_args_t.
987 (arm_function_arg, arm_function_arg_advance): Likewise.
988 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
989 * config/pa/pa.c (pa_pass_by_reference): Likewise.
990 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
991 (pa_function_arg): Likewise.
992 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
993 (mips_function_arg, mips_function_arg_advance): Likewise.
994 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
995 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
996 * config/vax/vax.c (vax_function_arg): Likewise.
997 (vax_function_arg_advance): Likewise.
998 * config/h8300/h8300.c (h8300_function_arg): Likewise.
999 (h8300_function_arg_advance): Likewise.
1000 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1001 (v850_strict_argument_naming, v850_function_arg): Likewise.
1002 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1003 (v850_setup_incoming_varargs): Likewise.
1004 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1005 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1006 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1007 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1009 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1010 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1011 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1012 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1013 * calls.c (emit_call_1): Change type of args_so_far to
1014 cumulative_args_t. Changed all callers.
1015 (initialize_argument_information): Likewise.
1016 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1017 * dse.c (get_call_args): Likewise.
1018 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1019 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1020 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1021 New member args_so_far_v. Changed all users.
1022 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1023 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1024 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1025 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1026 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1027 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1029 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1030 m32r_pass_by_reference.
1032 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1034 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1035 argument to be a VEC of statements.
1036 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1037 assert that pattern statements have to have their vector type set.
1038 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1039 Change the first argument to be a VEC of statements. Update
1041 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1042 (vect_handle_widen_mult_by_const): New function.
1043 (vect_recog_widen_mult_pattern): Change the first argument to be a
1044 VEC of statements. Update documentation. Check that the constant is
1045 INTEGER_CST. Support multiplication by a constant that fits an
1046 intermediate type - call vect_handle_widen_mult_by_const.
1047 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1048 call. Handle additional pattern statements if necessary.
1050 2011-06-16 Nick Clifton <nickc@redhat.com>
1053 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1054 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1055 md_file, extra_modes, out_file and extra_options are these are all
1056 deduced from cpu_type.
1058 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1060 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1061 truncation mask to 63.
1063 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1067 * longlong.h: Add AVR support:
1068 (count_leading_zeros): New macro.
1069 (count_trailing_zeros): New macro.
1070 (COUNT_LEADING_ZEROS_0): New macro.
1071 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1072 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1073 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1074 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1075 (LIB2FUNCS_EXCLUDE): Add _clz.
1076 * config/avr/libgcc.S (XCALL): Move up in file.
1077 (XJMP): New C Macro.
1078 (DEFUN): New asm macro.
1079 (ENDF): New asm macro.
1080 (__ffssi2): New function.
1081 (__ffshi2): New function.
1082 (__loop_ffsqi2): New function.
1083 (__ctzsi2): New function.
1084 (__ctzhi2): New function.
1085 (__clzdi2): New function.
1086 (__clzsi2): New function.
1087 (__clzhi2): New function.
1088 (__paritydi2): New function.
1089 (__paritysi2): New function.
1090 (__parityhi2): New function.
1091 (__parityqi2): New function.
1092 (__popcounthi2): New function.
1093 (__popcountsi2): New function.
1094 (__popcountdi2): New function.
1095 (__popcountqi2): New function.
1096 (__bswapsi2): New function.
1097 (__bswapdi2): New function.
1098 (__ashldi3): New function.
1099 (__ashrdi3): New function.
1100 (__lshrdi3): New function.
1101 Fix suspicous lines.
1103 2011-06-16 Richard Guenther <rguenther@suse.de>
1105 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1107 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1109 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1110 equality compares against zero for the lower bit.
1112 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1114 PR tree-optimization/49419
1115 * tree-vrp.c (execute_vrp): Call init_range_assertions
1116 before estimate_numbers_of_iterations, call
1117 free_number_of_iterations_estimates before calling
1118 remove_range_assertions.
1120 2011-06-16 Revital Eres <revital.eres@linaro.org>
1122 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1123 (struct partial_schedule): Add rows_length field.
1124 (verify_partial_schedule): Check rows_length.
1125 (ps_insert_empty_row): Handle rows_length.
1126 (create_partial_schedule): Likewise.
1127 (free_partial_schedule): Likewise.
1128 (reset_partial_schedule): Likewise.
1129 (create_ps_insn): Remove rest_count argument.
1130 (remove_node_from_ps): Update rows_length.
1131 (add_node_to_ps): Update rows_length and call create_ps_insn
1132 without passing row_rest_count.
1133 (rotate_partial_schedule): Update rows_length.
1135 2011-06-16 Revital Eres <revital.eres@linaro.org>
1137 * ddg.c (add_intra_loop_mem_dep): New function.
1138 (build_intra_loop_deps): Call it.
1140 2011-06-13 Jeff Law <law@redhat.com>
1142 * df-problems.c (df_lr_local_compute): Manually CSE
1143 PIC_OFFSET_TABLE_REGNUM.
1144 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1145 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1147 2011-06-13 Jan Hubicka <jh@suse.cz>
1149 * cgraphunit.c (handle_alias_pairs): New function.
1150 (cgraph_finalize_compilation_unit): Use it.
1151 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1152 as externally visible.
1154 2011-06-15 Richard Guenther <rguenther@suse.de>
1156 * expr.c (expand_expr_real_2): Reduce all integral types to
1158 (expand_expr_real_1): Likewise.
1160 2011-06-15 Martin Jambor <mjambor@suse.cz>
1162 PR tree-optimization/48613
1163 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1164 ipa_node_params_vector is NULL.
1166 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1169 * dwarf2out.c (dw_loc_list_node): Add force field.
1170 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1171 location in the list, even if it is modified before first real insn.
1172 (output_loc_list): Emit empty ranges with force flag set.
1173 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1175 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1178 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1179 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1180 above a fence. Update comments.
1181 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1182 placed just above it. Do not allow NULL place_to_insert.
1184 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1186 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1187 (slpeel_tree_peel_loop_to_edge): Don't call
1188 remove_dead_stmts_from_loop.
1189 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1190 remove irrelevant pattern statements. For irrelevant statements
1191 check if it is the last statement of a detected pattern, use
1192 corresponding pattern statement instead.
1193 (destroy_loop_vec_info): No need to remove pattern statements,
1194 only free stmt_vec_info.
1195 (vect_transform_loop): For irrelevant statements check if it is
1196 the last statement of a detected pattern, use corresponding
1197 pattern statement instead.
1198 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1199 pattern statements. Set basic block for the new statement.
1200 (vect_pattern_recog): Update documentation.
1201 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1202 operands of pattern statements.
1203 (vectorizable_call): Fix printing. In case of a pattern statement
1204 use the lhs of the original statement when creating a dummy
1205 statement to replace the original call.
1206 (vect_analyze_stmt): For irrelevant statements check if it is
1207 the last statement of a detected pattern, use corresponding
1208 pattern statement instead.
1209 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1210 statements use gsi of the original statement.
1212 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1214 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1215 common/common-target-def.h.
1216 * target.def (default_target_flags, handle_option,
1217 supports_split_stack, optimization_table, init_struct,
1218 except_unwind_info, unwind_tables_default, have_named_sections):
1219 Move to common/common-target.def.
1220 * target.h (enum opt_levels, struct default_options): Move to
1221 common/common-target.h.
1222 * targhooks.c (default_except_unwind_info,
1223 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1224 default_target_handle_option, empty_optimization_table): Move to
1225 common/common-targhooks.c.
1226 * targhooks.h (default_except_unwind_info,
1227 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1228 default_target_handle_option, empty_optimization_table): Move to
1229 common/common-targhooks.h.
1230 * common/common-target-def.h: Include common/common-targhooks.h.
1231 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1233 * common/common-target.def (handle_option, option_init_struct,
1234 option_optimization_table, default_target_flags,
1235 except_unwind_info, supports_split_stack, unwind_tables_default,
1236 have_named_sections): Move from target.def.
1237 (HOOK_PREFIX): Undefine at end of file.
1238 * common/common-target.h: Include input.h.
1239 (enum opt_levels, struct default_options): Move from target.h.
1240 * common/common-targhooks.c, common/common-targhooks.h: New.
1241 * config.gcc (target_has_targetm_common): Default to yes.
1242 (moxie*): Set target_has_targetm_common=no.
1243 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1244 * doc/tm.texi: Regenerate.
1245 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1246 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1247 (GCC_OBJS): Remove vec.o.
1248 (OBJS): Remove hooks.o and vec.o.
1249 (OBJS-libcommon-target): Add vec.o, hooks.o and
1250 common/common-targhooks.o.
1251 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1252 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1253 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1254 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1255 Update dependencies.
1256 (common/common-targhooks.o): New.
1257 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1258 * common/config/pa/pa-common.c: Include more headers. Take
1259 copyright dates from pa.c.
1260 (pa_option_optimization_table, pa_handle_option,
1261 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1262 TARGET_HANDLE_OPTION): Move from pa.c.
1263 * common/config/alpha/alpha-common.c,
1264 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1265 common/config/bfin/bfin-common.c,
1266 common/config/cris/cris-common.c,
1267 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1268 common/config/h8300/h8300-common.c,
1269 common/config/i386/i386-common.c,
1270 common/config/ia64/ia64-common.c,
1271 common/config/iq2000/iq2000-common.c,
1272 common/config/lm32/lm32-common.c,
1273 common/config/m32c/m32c-common.c,
1274 common/config/m32r/m32r-common.c,
1275 common/config/m68k/m68k-common.c,
1276 common/config/mcore/mcore-common.c,
1277 common/config/mep/mep-common.c,
1278 common/config/microblaze/microblaze-common.c,
1279 common/config/mips/mips-common.c,
1280 common/config/mmix/mmix-common.c,
1281 common/config/mn10300/mn10300-common.c,
1282 common/config/pdp11/pdp11-common.c,
1283 common/config/picochip/picochip-common.c,
1284 common/config/rs6000/rs6000-common.c,
1285 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1286 common/config/score/score-common.c, common/config/sh/sh-common.c,
1287 common/config/sparc/sparc-common.c,
1288 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1289 common/config/vax/vax-common.c,
1290 common/config/xstormy16/xstormy16-common.c,
1291 common/config/xtensa/xtensa-common.c: New.
1292 * config/alpha/alpha.c: Include common/common-target.h.
1293 (alpha_option_optimization_table, alpha_handle_option,
1294 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1295 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1296 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1297 * config/arm/arm.c (arm_option_optimization_table,
1298 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1299 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1301 * config/avr/avr.c (avr_option_optimization_table,
1302 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1304 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1305 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1306 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1307 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1308 * config/cris/cris.c (cris_option_optimization_table,
1309 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1310 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1312 * config/fr30/fr30.c (fr30_option_optimization_table,
1313 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1315 * config/frv/frv.c (frv_option_optimization_table,
1316 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1317 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1318 * config/h8300/h8300.c (h8300_option_optimization_table,
1319 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1320 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1321 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1322 * config/i386/i386.c: Include common/common-target.h.
1323 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1324 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1325 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1326 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1327 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1328 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1329 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1330 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1331 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1332 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1333 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1334 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1335 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1336 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1337 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1338 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1339 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1340 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1341 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1342 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1343 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1344 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1345 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1346 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1347 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1348 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1349 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1350 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1351 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1352 ix86_option_optimization_table, ix86_option_init_struct,
1353 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1354 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1355 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1357 * config/i386/t-i386 (i386.o): Update dependencies.
1358 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1359 * config/ia64/ia64.c (ia64_option_optimization_table,
1360 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1361 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1362 ia64_handle_option): Move to ia64-common.c.
1363 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1364 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1365 * config/lm32/lm32.c (lm32_option_optimization_table,
1366 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1368 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1370 * config/m32r/m32r.c (m32r_option_optimization_table,
1371 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1372 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1373 m32r_handle_option): Move to m32r-common.c.
1374 (m32r_memory_move_cost): Remove comment referring to
1375 TARGET_HANDLE_OPTION.
1376 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1377 Move to m68k-common.c.
1378 * config/mcore/mcore.c (mcore_option_optimization_table,
1379 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1380 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1381 * config/mep/mep.c (mep_option_optimization_table,
1382 mep_handle_option, TARGET_HANDLE_OPTION,
1383 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1384 Move to mep-common.c.
1385 * config/microblaze/microblaze.c
1386 (microblaze_option_optimization_table,
1387 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1388 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1389 * config/mips/mips.c (mips_handle_option,
1390 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1391 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1393 * config/mmix/mmix.c (mmix_option_optimization_table,
1394 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1395 Move to mmix-common.c.
1396 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1397 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1398 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1399 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1400 * config/pa/pa.c: Include common/common-target.h.
1401 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1402 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1403 pa_handle_option): Move to pa-common.c.
1404 (pa_option_override): Use targetm_common.except_unwind_info.
1405 (pa_asm_output_mi_thunk, pa_function_section): Use
1406 targetm_common.have_named_sections.
1407 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1408 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1409 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1410 pdp11_handle_option, pdp11_option_init_struct): Move to
1412 * config/picochip/picochip.c (picochip_option_optimization_table,
1413 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1414 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1415 * config/rs6000/rs6000.c: Include common/common-target.h.
1416 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1417 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1418 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1419 rs6000_handle_option): Move to rs6000-common.c.
1420 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1421 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1422 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1423 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1424 * config/s390/s390.c (processor_flags_table,
1425 s390_option_optimization_table, s390_option_init_struct,
1426 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1427 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1428 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1429 * config/s390/s390.h (processor_flags_table): Declare.
1430 * config/score/score.c (score_option_optimization_table,
1431 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1432 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1433 score_handle_option): Move to score-common.c.
1434 * config/sh/sh.c (sh_option_optimization_table,
1435 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1436 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1437 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1438 * config/sparc/sparc.c: Include common/common-target.h.
1439 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1440 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1441 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1442 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1443 spu_option_init_struct): Move to spu-common.c.
1444 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1445 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1446 * config/v850/v850.c (small_memory_physical_max,
1447 v850_handle_memory_optionn v850_handle_option,
1448 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1449 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1451 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1452 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1453 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1454 Move to xtensa-common.c.
1455 * cfglayout.c: Include common/common-target.h.
1456 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1457 * cfgrtl.c: Include common/common-target.h.
1458 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1459 targetm_common.have_named_sections.
1460 * dbxout.c: Include common/common-target.h.
1461 (dbxout_function_end): Use targetm_common.have_named_sections.
1462 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1463 targetm_common.except_unwind_info.
1464 * dwarf2out.c: Include common/common-target.h.
1465 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1466 dwarf2out_begin_prologue, dwarf2out_frame_init,
1467 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1468 targetm_common.except_unwind_info.
1469 * except.c: Include common/common-target.h.
1470 (init_eh, finish_eh_generation,
1471 output_one_function_exception_table): Use
1472 targetm_common.except_unwind_info.
1473 (switch_to_exception_section): Use targetm_common.have_named_sections.
1474 * explow.c: Include common/common-target.h.
1475 * expr.c: Include common/common-target.h.
1476 (build_personality_function): Use targetm_common.except_unwind_info.
1477 * function.c: Include common/common-target.h.
1478 (expand_function_end): Use targetm_common.except_unwind_info.
1479 * haifa-sched.c: Include common/common-target.h.
1480 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1481 * lto-opts.c: Include common/common-target.h instead of target.h.
1482 (lto_reissue_options): Use targetm_common.handle_option.
1483 * opts.c: Include common/common-target.h.
1484 (target_handle_option): Use targetm_common.handle_option.
1485 (init_options_struct): Update comment referring to
1486 targetm.target_option.optimization. Use
1487 targetm_common.default_target_flags,
1488 targetm_common.unwind_tables_default and
1489 targetm_common.option_init_struct.
1490 (default_options_optimization): Use
1491 targetm_common.option_optimization_table.
1492 (finish_options): Use targetm_common.except_unwind_info,
1493 targetm_common.unwind_tables_default,
1494 targetm_common.have_named_sections and
1495 targetm_common.supports_split_stack.
1496 * toplev.c: Include common/common-target.h.
1497 (process_options): Use targetm_common.have_named_sections.
1498 * tree-tailcall.c: Include common/common-target.h.
1499 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1500 * tree.c: Include common/common-target.h.
1501 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1502 * varasm.c: Include common/common-target.h.
1503 (resolve_unique_section, hot_function_section,
1504 default_function_section): Use targetm_common.have_named_sections.
1506 2011-06-14 Easwaran Raman <eraman@google.com>
1508 PR rtl-optimization/44194
1509 * dse.c: Include tree-flow.h
1510 (insn_info): Add new field non_frame_wild_read.
1511 (group_info): Add new fields escaped_n and escaped_p.
1512 (kill_on_calls): New variable.
1513 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1514 (dse_step0): Initialize kill_on_calls.
1515 (can_escape): New function.
1516 (set_usage_bits): Add additional parameter; record information
1517 about escaped locations.
1518 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1519 (dse_step2_nospill): Set kill_on_calls based on
1520 group->escaped_n and group->escaped_n.
1521 (add_wild_read): Refactor into...
1522 (reset_active_stores): ... New function, and
1523 (free_read_records): ... New function.
1524 (add_non_frame_wild_read): New function.
1525 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1526 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1527 (dse_step5_nospill): Call scan_reads_nospill for instructions
1528 marked as non_frame_wild_read.
1529 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1531 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1533 * common/common-target-def.h, common/common-target.def,
1534 common/common-target.h, common/config/default-common.c,
1535 common/config/pa/pa-common.c: New files.
1536 * Makefile.in (common_out_file, common_out_object_file,
1537 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1538 (OBJS-libcommon-target): Include $(common_out_object_file).
1539 (prefix.o): Update dependencies.
1540 ($(common_out_object_file), common/common-target-hooks-def.h,
1541 s-common-target-hooks-def-h): New.
1542 (s-tm-texi): Also check timestamp on common-target.def.
1543 (build/genhooks.o): Update dependencies.
1544 * config.gcc (common_out_file, target_has_targetm_common): Define.
1545 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1546 TARGET_ALWAYS_STRIP_DOTDOT.
1547 * configure.ac (common_out_object_file): Define.
1548 (common_out_file, common_out_object_file): Substitute.
1549 (common): Create directory.
1550 * configure: Regenerate.
1551 * doc/tm.texi.in (targetm_common): Document.
1552 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1553 * doc/tm.texi: Regenerate.
1554 * genhooks.c (hook_array): Also include common/common-target.def.
1555 * prefix.c (tm.h): Don't include.
1556 (common/common-target.h): Include.
1557 (ALWAYS_STRIP_DOTDOT): Don't define.
1558 (update_path): Use targetm_common.always_strip_dotdot instead of
1559 ALWAYS_STRIP_DOTDOT.
1560 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1562 2011-06-14 David Li <davidxl@google.com>
1564 * passes.c (execute_function_todo): Remove TODO_dump_func.
1565 (execute_one_pass): Remove TODO_dump_func.
1566 (execute_function_dump): New function.
1567 * tree-vrp.c: Remove TODO_dump_func.
1568 * regrename.c: Remove TODO_dump_func.
1569 * fwprop.c: Remove TODO_dump_func.
1570 * tree-into-ssa.c: Remove TODO_dump_func.
1571 * tree-complex.c: Remove TODO_dump_func.
1572 * tracer.c: Remove TODO_dump_func.
1573 * tree-loop-distribution.c: Remove TODO_dump_func.
1574 * postreload-gcse.c: Remove TODO_dump_func.
1575 * postreload.c: Remove TODO_dump_func.
1576 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1577 * tree-tailcall.c: Remove TODO_dump_func.
1578 * ipa-cp.c: Remove TODO_dump_func.
1579 * final.c: Remove TODO_dump_func.
1580 * tree-emutls.c: Remove TODO_dump_func.
1581 * omp-low.c: Remove TODO_dump_func.
1582 * tree-ssa-dse.c: Remove TODO_dump_func.
1583 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1584 * auto-inc-dec.c: Remove TODO_dump_func.
1585 * reorg.c: Remove TODO_dump_func.
1586 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1587 * tree-ssa-ccp.c: Remove TODO_dump_func.
1588 * compare-elim.c: Remove TODO_dump_func.
1589 * mode-switching.c: Remove TODO_dump_func.
1590 * modulo-sched.c: Remove TODO_dump_func.
1591 * tree-call-cdce.c: Remove TODO_dump_func.
1592 * cse.c: Remove TODO_dump_func.
1593 * web.c: Remove TODO_dump_func.
1594 * tree-stdarg.c: Remove TODO_dump_func.
1595 * lto-streamer-out.c: Remove TODO_dump_func.
1596 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1597 * tree-ssa-dom.c: Remove TODO_dump_func.
1598 * tree-nrv.c: Remove TODO_dump_func.
1599 * loop-init.c: Remove TODO_dump_func.
1600 * gimple-low.c: Remove TODO_dump_func.
1601 * ipa-inline.c: Remove TODO_dump_func.
1602 * tree-ssa-sink.c: Remove TODO_dump_func.
1603 * jump.c: Remove TODO_dump_func.
1604 * ifcvt.c: Remove TODO_dump_func.
1605 * tree-ssa-loop.c: Remove TODO_dump_func.
1606 * recog.c: Remove TODO_dump_func.
1607 * dse.c: Remove TODO_dump_func.
1608 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1609 * matrix-reorg.c: Remove TODO_dump_func.
1610 * tree-eh.c: Remove TODO_dump_func.
1611 * regmove.c: Remove TODO_dump_func.
1612 * function.c: Remove TODO_dump_func.
1613 * tree-vectorizer.c: Remove TODO_dump_func.
1614 * ipa-split.c: Remove TODO_dump_func.
1615 * gcse.c: Remove TODO_dump_func.
1616 * tree-if-conv.c: Remove TODO_dump_func.
1617 * init-regs.c: Remove TODO_dump_func.
1618 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1619 * implicit-zee.c: Remove TODO_dump_func.
1620 * lower-subreg.c: Remove TODO_dump_func.
1621 * bt-load.c: Remove TODO_dump_func.
1622 * tree-dfa.c: Remove TODO_dump_func.
1623 * except.c: Remove TODO_dump_func.
1624 * emit-rtl.c: Remove TODO_dump_func.
1625 * store-motion.c: Remove TODO_dump_func.
1626 * cfgexpand.c: Remove TODO_dump_func.
1627 * tree-cfgcleanup.c: Remove TODO_dump_func.
1628 * cfgcleanup.c: Remove TODO_dump_func.
1629 * tree-ssa-pre.c: Remove TODO_dump_func.
1630 * tree-sra.c: Remove TODO_dump_func.
1631 * tree-mudflap.c: Remove TODO_dump_func.
1632 * tree-ssa-copy.c: Remove TODO_dump_func.
1633 * cfglayout.c: Remove TODO_dump_func.
1634 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1635 * tree-ssa-dce.c: Remove TODO_dump_func.
1636 * ira.c: Remove TODO_dump_func.
1637 * tree-ssa.c: Remove TODO_dump_func.
1638 * integrate.c: Remove TODO_dump_func.
1639 * tree-optimize.c: Remove TODO_dump_func.
1640 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1641 * tree-object-size.c: Remove TODO_dump_func.
1642 * combine.c: Remove TODO_dump_func.
1643 * bb-reorder.c: Remove TODO_dump_func.
1644 * cprop.c: Remove TODO_dump_func.
1645 * var-tracking.c: Remove TODO_dump_func.
1646 * tree-profile.c: Remove TODO_dump_func.
1647 * tree-vect-generic.c: Remove TODO_dump_func.
1648 * reg-stack.c: Remove TODO_dump_func.
1649 * sched-rgn.c: Remove TODO_dump_func.
1650 * tree-ssa-structalias.c: Remove TODO_dump_func.
1651 * tree-switch-conversion.c: Remove TODO_dump_func.
1652 * tree-cfg.c: Remove TODO_dump_func.
1653 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1654 * combine-stack-adj.c: Remove TODO_dump_func.
1655 * dce.c: Remove TODO_dump_func.
1656 * tree-ssanames.c: Remove TODO_dump_func.
1657 * regcprop.c: Remove TODO_dump_func.
1659 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1662 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1663 and properly handle result not in Pmode.
1665 2011-06-14 Robert Millan <rmh@gnu.org>
1667 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1668 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1671 * config/i386/kfreebsd-gnu64.h: New file.
1672 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1673 with `i386/kfreebsd-gnu64.h'.
1675 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1676 (GNU_USER_LINK_EMULATION64): New macros.
1677 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1678 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1679 of hardcoding `elf_i386' and `elf_x86_64'.
1681 2011-06-14 Nick Clifton <nickc@redhat.com>
1684 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1687 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1689 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1692 * tree.h (DECL_NONSHAREABLE): Define.
1693 (struct tree_decl_common): Change decl_common_unused to
1694 decl_nonshareable_flag.
1695 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1696 Ignore vars with DECL_NONSHAREABLE bit set.
1697 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1698 on stores to automatic aggregate vars.
1700 PR rtl-optimization/49390
1702 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1704 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1707 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1708 Tom de Vries <tom@codesourcery.com>
1711 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1712 Document changed semantics.
1713 (max_stmt_executions, max_stmt_executions_int): Declare.
1714 * tree-data-ref.c (estimated_loop_iterations)
1715 (estimated_loop_iterations_int): Move functions...
1716 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1717 (estimated_loop_iterations_int): here.
1718 (record_estimate): Change nb_iterations_upper_bound and
1719 nb_iterations_estimate semantics.
1720 (max_stmt_executions, max_stmt_executions_int): New function.
1721 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1722 (max_stmt_executions_tree): this.
1723 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1724 estimated_loop_iterations_tree.
1725 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1726 max_stmt_executions_int instead of estimated_loop_iterations_int.
1727 * predict.c (predict_loops): Idem.
1728 * tree-parloops.c (parallelize_loops): Idem.
1729 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1730 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1731 (init_omega_for_ddr_1): Idem.
1732 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1733 (loop_prefetch_arrays): Idem
1734 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1735 max_stmt_executions instead of estimated_loop_iterations.
1736 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1737 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1738 instead of nb_iterations_upper_bound.
1740 2011-06-13 Jan Hubicka <jh@suse.cz>
1742 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1744 2011-06-14 Richard Henderson <rth@redhat.com>
1747 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1748 (based_loc_descr): Assert it's true.
1749 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1750 aborting immediately.
1752 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1753 Mingfeng Wu <mingfeng@faraday-tech.com>
1755 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1757 2011-06-13 Jan Hubicka <jh@suse.cz>
1759 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1761 2011-06-13 Jan Hubicka <jh@suse.cz>
1763 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1764 similarly to DECL_COMDAT.
1765 * cgraphunit.c (cgraph_analyze_function): Likewise.
1766 * ipa.c (function_and_variable_visibility): Likewise.
1768 2011-06-13 Jan Hubicka <jh@suse.cz>
1770 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1771 BINFO_VIRTUALS when streaming for ltrans unit.
1773 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1775 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1776 (movdi_internal64): Same.
1778 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1781 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1782 a set of similar patterns, where the MATCH_OPERAND for the function
1783 argument is replaced with individual references to hardware registers.
1784 (save_fpregs_<mode>): Ditto
1785 (restore_gpregs_<mode>): Ditto
1786 (return_and_restore_gpregs_<mode>): Ditto
1787 (return_and_restore_fpregs_<mode>): Ditto
1788 (return_and_restore_fpregs_aix_<mode>): Ditto
1790 2011-06-13 Jan Hubicka <jh@suse.cz>
1792 * ipa-utils.c (postorder_stack): New structure.
1793 (ipa_reverse_postorder): Handle aliases.
1795 2011-06-13 Jan Hubicka <jh@suse.cz>
1797 * ipa-inline.c (reset_edge_caches): Walk aliases.
1798 (update_caller_keys): Do not test inlinability of aliases.
1799 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1800 (do_estimate_growth): Fix typo.
1802 2011-06-13 Jan Hubicka <jh@suse.cz>
1804 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1805 (can_remove_node_now_p): ... here; handle same comdat groups.
1806 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1807 (inline_call): Update use of can_remove_node_now_p.
1809 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1811 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1812 condition to disallow non-identical memory locations.
1813 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1814 preference to bit manipulation instructions.
1816 2011-06-13 Jan Hubicka <jh@suse.cz>
1818 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1819 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1820 (nonremovable_p): New function.
1821 (cgraph_can_remove_if_no_direct_calls_p): New function.
1822 (used_from_object_file_p): New functoin.
1823 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1824 references from aliases.
1825 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1826 * ipa-inline.c (check_caller_edge): New function.
1827 (want_inline_function_called_once_p): Use it; accept aliases called
1829 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1831 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1834 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1835 correctly for the case with Quad vectors.
1837 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1838 Ira Rosen <ira.rosen@linaro.org>
1840 PR tree-optimization/49352
1841 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1842 all, make sure loop_use_stmt after the loop is a def stmt of a used
1843 SSA_NAME that is the only one defined inside of the loop. Don't
1844 check for COND_EXPR and GIMPLE_BINARY_RHS.
1845 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1846 check_reduction is true.
1848 2011-06-11 Jan Hubicka <jh@suse.cz>
1851 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1853 2011-06-11 Jan Hubicka <jh@suse.cz>
1856 * ipa-inline-transform.c: Include tree-pass.h
1857 (inline_transform): Set TODO_update_ssa_only_virtuals.
1858 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1860 2011-06-11 Jan Hubicka <jh@suse.cz>
1863 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1866 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1868 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1869 Take number of iterations to peel into account for equally frequent
1870 misalignment values.
1872 2011-06-11 Jan Hubicka <jh@suse.cz>
1874 * lto-streamer-out.c (produce_symtab): Stream out the newly
1875 represented aliases.
1877 2011-06-11 Jan Hubicka <jh@suse.cz>
1879 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
1881 (ipa_update_after_lto_read): Likewise.
1882 (ipa_write_node_info): Do not sream call_with_var_arguments.
1883 (ipa_read_node_info): Likewise.
1885 2011-06-11 Jan Hubicka <jh@suse.cz>
1887 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1889 2011-06-11 Jan Hubicka <jh@suse.cz>
1891 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1892 (lto_symtab_resolve_can_prevail_p): Likewise.
1893 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1894 * cgraph.c (same_body_aliases_done): New global var.
1895 (cgraph_same_body_alias_1): Rename to ...
1896 (cgraph_create_function_alias): ... this one; reorg to new
1898 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1899 record references when asked to.
1900 (cgraph_add_thunk): Fix formating.
1901 (cgraph_get_node): Kill same body alias code.
1902 (cgraph_node_for_asm): Likewise.
1903 (cgraph_remove_same_body_alias): Remove.
1904 (cgraph_remove_node): Kill same body alias code.
1905 (cgraph_mark_address_taken_node): Mark also the aliased function
1906 as having address taken.
1907 (dump_cgraph_node): Dump same body aliases.
1908 (cgraph_for_node_thunks_and_aliases): Update for new alias
1910 (cgraph_for_node_and_aliases): Likewise.
1911 * cgraph.h (same_body): Kll pointer.
1912 (same_body_alias): Update comment.
1913 (same_body_aliases_done): Declare.
1914 (cgraph_remove_same_body_alias): Remove declaration.
1915 (cgraph_create_function_alias): Declare.
1916 (cgraph_process_same_body_aliases): Declare.
1917 (cgraph_function_with_gimple_body_p): Check for alias.
1918 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1919 (cgraph_alias_aliased_node): New function.
1920 (cgraph_function_node): Update for new aliases.
1921 (cgraph_function_or_thunk_node): Likewise.
1922 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1923 (inline_call): Remove dead aliases.
1924 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1925 name hack for same body aliases.
1926 (clone_of_p): Look through aliases.
1927 (verify_cgraph_node): Verify aliases.
1928 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1929 (cgraph_process_same_body_aliases): New function.
1930 (process_function_and_variable_attributes): Disable weakref warning on
1932 (cgraph_analyze_functions): Handle aliases.
1933 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1934 (assemble_thunks): Rename to ...
1935 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1936 (cgraph_expand_function): Remove alias output code.
1937 (cgraph_output_in_order): Skip aliases.
1938 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1939 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1940 (ipa_record_reference): Do not assert on alias references.
1941 (ipa_ref_has_aliases_p): New function.
1942 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1943 (ipa_ref_has_aliases_p): Declare.
1944 * lto-cgraph.c (lto_output_node): Handle aliases.
1945 (input_node): Likewise.
1946 * lto-streamer-out.c (lto_output): Skip aliases.
1947 (produce_symtab): Kill same_body_alias code.
1948 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1949 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1950 * ipa-inline.c (update_caller_keys): Walk aliases.
1951 (inline_small_functions): Fix thinko in previous patch.
1952 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1953 (function_and_variable_visibility): Do not walk same body aliases.
1954 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1955 (ipa_pta_execute): Use it.
1957 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1959 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1960 (*vec_dupv2df): Rename from vec_dupv2df.
1961 (vec_dupv2df): New expander.
1963 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1965 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1967 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1969 * config/i386/i386.md: Use default value in "isa" attribute.
1970 * config/i386/sse.md: Ditto.
1971 * config/i386/mmx.md: Ditto.
1973 2011-06-10 Wei Guozhi <carrot@google.com>
1976 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1977 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1978 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1980 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1982 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1983 (arm_legitimate_ldrd_p): New prototype.
1984 (arm_output_ldrd): New prototype.
1985 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1986 (arm_legitimate_ldrd_p): New function.
1987 (arm_output_ldrd): New function.
1989 2011-06-10 David Li <davidxl@google.com>
1991 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1992 * passes.c (passr_eq): New function.
1993 (create_pass_tab): New function.
1994 (pass_traverse): New function.
1995 (dump_one_pass): New function.
1996 (dump_pass_list): New function.
1997 (dump_passes): New function.
1999 2011-06-10 Jan Hubicka <jh@suse.cz>
2001 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2002 setting the nothrow flag.
2003 * ipa-reference.c (propagate): Skip aliases.
2004 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2005 (propagate_nothrow): Skip aliases; do not update cgraph.
2006 (local_pure_const): Do not update cgraph.
2007 * tree-profile.c (tree_profiling): Do fixup_cfg.
2009 2011-06-10 Jan Hubicka <jh@suse.cz>
2011 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2012 (cgraph_local_node_p): ... here; handle aliases.
2013 (has_addr_references_p): Break out from ...;
2014 (cgraph_remove_unreachable_nodes) ... here.
2016 2011-06-10 Jan Hubicka <jh@suse.cz>
2018 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2019 * common.opt (flag_inline_functions_called_once): Do not
2022 2011-06-10 Jan Hubicka <jh@suse.cz>
2024 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2025 (ipcp_initialize_node_lattices): Do not deal with aliases;
2026 Do not try to propagate through thunks.
2027 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2029 2011-06-10 Jan Hubicka <jh@suse.cz>
2031 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2033 (ipa_read_node_info): Likewise.
2035 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2038 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2039 (build_and_insert_call): Likewise.
2040 (build_and_insert_ref): New.
2041 (gimple_expand_builtin_pow): Minor cleanup.
2042 (gimple_expand_builtin_cabs): New.
2043 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2045 2011-06-10 Jan Hubicka <jh@suse.cz>
2047 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2048 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2049 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2050 (ipcp_propagate_stage): Skip aliases when propagating.
2051 (ipcp_need_redirect_p): Skip aliases.
2052 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2053 collect_callers_of_node.
2054 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2056 (ipa_compute_jump_functions): Look through aliases.
2058 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2060 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2062 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2064 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2066 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2068 2011-06-10 Jan Hubicka <jh@suse.cz>
2070 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2071 Update call of gimple_get_virt_method_for_binfo.
2072 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2073 refuse_thunks parameter.
2074 (gimple_fold_call): Update.
2075 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2077 2011-06-10 Jan Hubicka <jh@suse.cz>
2079 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2080 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2081 worker for cgraph_for_node_and_aliases.
2082 (convert_callers_for_node): Break out from ...
2083 (convert_callers): ... here.
2084 (modify_function): Use collect_callers_of_node.
2085 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2087 2011-06-10 Richard Guenther <rguenther@suse.de>
2089 PR tree-optimization/49361
2090 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2091 when not already in gimple form.
2093 2011-06-10 Richard Guenther <rguenther@suse.de>
2096 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2097 FOR_EACH_PHI_OR_STMT_USE.
2099 2011-06-10 Jan Hubicka <jh@suse.cz>
2101 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2102 (clone_inlined_nodes): ... here.
2103 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2104 to real destination prior inlining.
2105 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2106 can_early_inline_edge_p, want_early_inline_function_p,
2107 want_early_inline_function_p, want_inline_small_function_p,
2108 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2109 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2110 add_new_edges_to_heap, inline_small_functions, flatten_function,
2111 inline_always_inline_functions, early_inline_small_functions): Use
2112 cgraph_function_or_thunk_node.
2113 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2114 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2115 (do_estimate_edge_growth_1): Break out from ...
2116 (do_estimate_growth) ... here; walk aliases.
2117 (inline_generate_summary): Skip aliases.
2119 2011-06-10 Richard Guenther <rguenther@suse.de>
2121 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2122 forward when combining, visit inserted stmts when a stmt was changed.
2124 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2126 * tree.h (error_operand_p): Add.
2127 * dbxout.c (dbxout_type_fields): Use the latter.
2128 * c-decl.c (add_stmt): Likewise.
2129 * gimplify.c (omp_add_variable, omp_notice_variable,
2130 gimplify_scan_omp_clauses): Likewise.
2132 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2134 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2135 when a value is actually passed in regs.
2137 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2138 Laurent Rougé <laurent.rouge@menta.fr>
2140 * doc/invoke.texi (SPARC options): Add -mflat.
2141 * config/sparc/sparc.opt: Likewise.
2142 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2143 (sparc_flat_expand_prologue): Declare.
2144 (sparc_flat_expand_epilogue): Likewise.
2145 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2146 (CPP_ENDIAN_SPEC): Replace with...
2147 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2148 (CPP_SPEC): Adjust to above change.
2149 (EXTRA_SPECS): Likewise.
2150 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2151 (INCOMING_REGNO): Likewise.
2152 (OUTGOING_REGNO): Likewise.
2153 (LOCAL_REGNO): Likewise.
2154 (SETUP_FRAME_ADDRESSES): Likewise.
2155 (FIXED_REGISTERS): Set 0 for %fp.
2156 (CALL_USED_REGISTERS): Likewise.
2157 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2158 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2159 (RETURN_ADDR_REGNUM): Define.
2160 (RETURN_ADDR_RTX): Use it.
2161 (INCOMING_RETURN_ADDR_REGNUM): Define.
2162 (INCOMING_RETURN_ADDR_RTX): Use it.
2163 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2164 (EH_RETURN_REGNUM): Define.
2165 (EH_RETURN_STACKADJ_RTX): Use it.
2166 (EH_RETURN_HANDLER_RTX): Delete.
2167 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2168 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2170 (struct machine_function): Add frame_size, apparent_frame_size,
2171 frame_base_reg, frame_base_offset, n_global_fp_regs and
2172 save_local_in_regs_p fields.
2173 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2174 sparc_frame_base_offset, sparc_n_global_fp_regs,
2175 sparc_save_local_in_regs_p): New macros.
2176 (sparc_option_override): Error out if -fcall-saved-REG is specified
2178 (eligible_for_restore_insn): Fix formatting.
2179 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2180 (eligible_for_sibcall_delay): Likewise.
2181 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2182 (sparc_legitimate_address_p): Adjust to above change.
2183 (save_global_or_fp_reg_p): New predicate.
2184 (return_addr_reg_needed_p): Likewise.
2185 (save_local_or_in_reg_p): Likewise.
2186 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2187 (SORR_SAVE, SORR_RESTORE): Delete.
2188 (sorr_pred_t): New typedef.
2189 (sorr_act_t): New enum.
2190 (save_or_restore_regs): Rename to...
2191 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2192 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2193 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2194 mechanism. Add CFI information for double-word saves in 32-bit mode.
2195 (emit_adjust_base_to_offset): New function extracted from...
2196 (emit_save_or_restore_regs): ...this. Rename the rest to...
2197 (emit_save_or_restore_regs_global_fp_regs): ...this.
2198 (emit_save_or_restore_regs_local_in_regs): New function.
2199 (gen_create_flat_frame_[123]): New functions.
2200 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2201 (sparc_flat_expand_prologue): New function.
2202 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2203 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2204 (sparc_flat_expand_epilogue): New function.
2205 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2206 (output_return): Likewise.
2207 (output_sibcall): Likewise.
2208 (sparc_output_mi_thunk): Likewise.
2209 (sparc_frame_pointer_required): Likewise.
2210 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2211 function optimization.
2212 * config/sparc/sparc.md (flat): New attribute.
2213 (prologue): Add TARGET_FLAT handling.
2214 (save_register_window): Disable if TARGET_FLAT.
2215 (create_flat_frame_[123]): New patterns.
2216 (epilogue): Add TARGET_FLAT handling.
2217 (sibcall_epilogue): Likewise.
2218 (eh_return): New expander.
2219 (eh_return_internal): New insn and splitter.
2220 (return_internal): Add TARGET_FLAT handling.
2221 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2222 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2223 (nonlocal_goto): Add TARGET_FLAT handling.
2224 * config/sparc/t-elf: Add -mflat multilib.
2225 * config/sparc/t-leon: Likewise.
2227 2011-06-10 Jan Hubicka <jh@suse.cz>
2229 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2230 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2231 (self_recursive_p): Use cgraph_function_node.
2232 (propagate_pure_const): Likewise.
2233 (propagate_nothrow): Likewise.
2234 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2235 cgraph_function_node.
2236 (propagate_bits): Likewise.
2237 (propagate): Likewise.
2239 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2240 Richard Earnshaw <rearnsha@arm.com>
2242 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2243 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2244 (*thumb2_movdi_vfp): Delete.
2245 (*arm_movdi_vfp_cortexa8): Delete.
2246 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2247 (*movdi_vfp_cortexa8): Likewise.
2249 2011-06-10 Richard Guenther <rguenther@suse.de>
2251 * stor-layout.c (initialize_sizetypes): Give names to all
2254 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2256 PR tree-optimization/49318
2257 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2258 irrelevant pattern statements.
2260 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2262 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2265 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2268 2011-06-09 Jan Hubicka <jh@suse.cz>
2270 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2271 do not recompute reachable flag.
2272 (cgraph_finalize_function, cgraph_analyze_functions): Set
2273 redefined_extern_inline here.
2275 2011-06-09 Jan Hubicka <jh@suse.cz>
2277 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2278 (cgraph_only_called_directly_p): ... this one; bring offline.
2279 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2280 varpool_used_from_object_file_p): Drop names from the declaratoin.
2281 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2282 collect_callers_of_node): New.
2283 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2284 (cgraph_edge_recursive_p): Use cgraph_function_node.
2285 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2286 (cgraph_node_cannot_be_local_p_1): Break out from ...
2287 (cgraph_node_can_be_local_p): ... here; walk aliases.
2288 (cgraph_for_node_thunks_and_aliases): New function.
2289 (cgraph_for_node_and_aliases): New function.
2290 (cgraph_make_node_local_1): Break out from ...
2291 (cgraph_make_node_local) ... here; use
2292 cgraph_for_node_thunks_and_aliases.
2293 (cgraph_set_nothrow_flag_1): Break out from ...
2294 (cgraph_set_nothrow_flag) ... here;
2295 use cgraph_for_node_thunks_and_aliases.
2296 (cgraph_set_const_flag_1): Break out from ...
2297 (cgraph_set_const_flag) ... here;
2298 use cgraph_for_node_thunks_and_aliases.
2299 (cgraph_set_pure_flag_1): Break out from ...
2300 (cgraph_set_pure_flag) ... here;
2301 use cgraph_for_node_thunks_and_aliases.
2302 (cgraph_propagate_frequency_1): Break out from ...
2303 (cgraph_propagate_frequency) ... here; use
2304 cgraph_for_node_thunks_and_aliases.
2305 (cgraph_used_from_object_file_p): Do not care about aliases.
2306 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2308 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2310 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2312 PR rtl-optimization/49154
2313 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2314 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2315 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2316 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2317 * config/cris/cris.h (cris_register_move_cost): Remove
2318 !TARGET_V32 code. Tweak comments.
2320 2011-06-09 Jan Hubicka <jh@suse.cz>
2322 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2325 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2327 PR rtl-optimization/49154
2328 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2329 is a matching slot in the hashtable, assign it to classes_ptr.
2331 PR rtl-optimization/49154
2332 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2334 * doc/tm.texi: Regenerate.
2336 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2339 * config/sh/sh.md (UNSPEC_CHKADD): New.
2340 (chk_guard_add): New define_insn_and_split.
2341 (symGOT_load): Use chk_guard_add instead of blockage.
2343 2011-06-09 Kai Tietz <ktietz@redhat.com>
2345 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2347 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2349 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2351 2011-06-09 Wei Guozhi <carrot@google.com>
2354 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2355 (peephole2 for conditional move): Generate 16 bit instructions.
2357 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2359 * config/i386/i386.md (*movdi_internal_rex64): Merge
2360 alternatives 6 and 8.
2362 2011-06-09 David Li <davidxl@google.com>
2364 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2365 * passes.c (passr_eq): New function.
2366 (create_pass_tab): New function.
2367 (pass_traverse): New function.
2368 (dump_one_pass): New function.
2369 (dump_pass_list): New function.
2370 (dump_passes): New function.
2372 2011-06-09 David Li <davidxl@google.com>
2374 * tree-complex.c (tree_lower_complex): Gate cleanup.
2375 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2376 (execute_optimize_stdarg): Ditto.
2377 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2378 (execute_cleanup_eh_1): Ditto.
2379 (execute_cleanup_eh): Ditto.
2380 * gcse.c (gate_rtl_pre): Ditto.
2381 (execute_rtl_pre): Ditto.
2382 * except.c (finish_eh_generation): Ditto.
2383 (convert_to_eh_region_ranges): Ditto.
2384 * cprop.c (one_cprop_pass): Ditto.
2386 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2389 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2390 in all basic blocks.
2392 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2394 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2395 (HAVE_ENABLE_EXECUTE_STACK): Define.
2396 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2397 (HAVE_ENABLE_EXECUTE_STACK): Define.
2398 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2399 (HAVE_ENABLE_EXECUTE_STACK): Define.
2400 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2401 (ENABLE_EXECUTE_STACK): Remove.
2402 (HAVE_ENABLE_EXECUTE_STACK): Define.
2403 [IN_LIBGCC2]: Don't include <windows.h>.
2404 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2405 (HAVE_ENABLE_EXECUTE_STACK): Define.
2406 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2407 (HAVE_ENABLE_EXECUTE_STACK): Define.
2408 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2409 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2410 (HAVE_ENABLE_EXECUTE_STACK): Define.
2411 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2412 (HAVE_ENABLE_EXECUTE_STACK): Define.
2413 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2414 (HAVE_ENABLE_EXECUTE_STACK): Define.
2415 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2416 (HAVE_ENABLE_EXECUTE_STACK): Define.
2417 * config/alpha/alpha.c (alpha_trampoline_init): Test
2418 HAVE_ENABLE_EXECUTE_STACK.
2419 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2420 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2421 (sparc64_initialize_trampoline): Likewise.
2422 * libgcc2.c [L_enable_execute_stack]: Remove.
2423 * system.h (ENABLE_EXECUTE_STACK): Poison.
2424 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2425 * doc/tm.texi: Regenerate.
2426 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2428 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2431 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2432 variable. After resetting and rescanning insn continue with previous
2435 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2437 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2438 (gcc_cv_ld_hidden): Likewise.
2439 * configure: Regenerate.
2440 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2441 (ix86_stack_protect_fail): Mark unused.
2442 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2443 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2444 [TARGET_MACHO]: Don't define.
2445 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2446 (TARGET_STACK_PROTECT_FAIL): Likewise.
2447 (rs6000_stack_protect_fail): Mark unused.
2448 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2449 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2451 2011-06-08 Andi Kleen <ak@linux.intel.com>
2453 * varasm.c (get_section): Print location of other conflict
2454 for section conflicts.
2456 2011-06-08 Andi Kleen <ak@linux.intel.com>
2458 * config/i386/driver-i386.c (host_detect_local_cpu):
2459 Add model 0x2d Intel CPU.
2461 2011-06-08 Andi Kleen <ak@linux.intel.com>
2463 * reginfo.c (global_regs_decl): Add.
2464 (globalize_reg): Add decl parameter. Compute location. Pass location
2465 to warnings and add inform. Store decl in global_regs_decl.
2466 * rtl.h (globalize_reg): Update prototype.
2467 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2469 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2471 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2473 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2476 * config/sh/predicates.md (general_movsrc_operand): Check
2477 mode for memory with indexed address for QI and HImode.
2478 (general_movdst_operand): Likewise.
2480 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2482 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2484 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2486 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2487 (num_ssa_operands): Likewise.
2488 (op_iter_init_phiuse): Forward-declare.
2489 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2491 2011-06-08 Nick Clifton <nickc@redhat.com>
2493 * doc/invoke.texi (ARM Options): Update description of
2496 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2498 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2499 unknown Intel family 0x6 CPUs.
2501 2011-06-08 Martin Jambor <mjambor@suse.cz>
2503 * tree-sra.c (mark_rw_status): Removed.
2504 (analyze_access_subtree): New parameter parent instead of
2505 mark_read and mark_write, propagate from that.
2507 2011-06-08 Julian Brown <julian@codesourcery.com>
2509 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2510 for double-precision helper functions in hard-float mode if only
2511 single-precision arithmetic is supported in hardware.
2513 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2515 PR rtl-optimization/49303
2516 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2517 code_motion_path_driver returned 0 or 1.
2518 (sel_region_finish): Clear h_d_i_d.
2520 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2522 * config/sh/sh.c (prepare_move_operands): Set pic register
2523 appropriately for global and local dynamic tls models even
2524 if flag_pic is unset.
2526 2011-06-07 Jason Merrill <jason@redhat.com>
2528 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2530 2011-06-07 Xinliang David Li <davidxl@google.com>
2531 * passes.c (enable_disable_pass): Handle assembler name.
2532 (is_pass_explicitly_enabled_or_disabled): Ditto.
2534 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2536 PR tree-optimization/48497
2537 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2539 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2541 PR tree-optimization/46728
2542 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2543 to use gimple_val_nonnegative_real_p.
2544 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2545 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2547 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2549 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2551 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2553 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2556 2011-06-07 Richard Guenther <rguenther@suse.de>
2558 * stor-layout.c (initialize_sizetypes): Initialize all
2559 sizetypes based on target definitions.
2560 (set_sizetype): Remove.
2561 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2562 * tree.h (set_sizetype): Remove.
2564 2011-06-07 Nick Clifton <nickc@redhat.com>
2566 * config.gcc: Unify V850 architecture options and add support for
2567 newer V850 architectures.
2568 * config/v850/t-v850e: Delete.
2570 2011-06-07 Richard Guenther <rguenther@suse.de>
2572 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2573 Call set_sizetype from here.
2575 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2577 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2578 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2580 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2581 Andrew Stubbs <ams@codesourcery.com>
2583 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2585 * doc/md.texi (Canonicalization of Instructions): Document widening
2586 multiply canonicalization.
2588 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2590 PR gcov-profile/49299
2591 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2593 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2595 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2597 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2598 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2599 vect_recog_pow_pattern): Likewise.
2600 (vect_pattern_recog_1): Remove declaration.
2601 (widened_name_p): Remove declaration. Add new argument to specify
2602 whether to check that both types are either signed or unsigned.
2603 (vect_recog_widen_mult_pattern): Update documentation. Handle
2604 unsigned patterns and multiplication by constants.
2605 (vect_pattern_recog_1): Update vect_recog_func references. Use
2606 statement information from the statement returned from pattern
2607 detection functions.
2608 (vect_pattern_recog): Update vect_recog_func reference.
2609 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2610 multiplication by a constant use the type of the other operand.
2612 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2614 PR rtl-optimization/49145
2615 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2617 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2620 * dwarf2out.c (native_encode_initializer): Decrement count in each
2624 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2628 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2629 if stmt folded into nothing.
2630 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2631 a bb folded into nothing, just update cgraph edges and move to next bb.
2632 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2633 to be NULL. Don't compute count and frequency if new_call is NULL.
2635 2011-06-04 Diego Novillo <dnovillo@google.com>
2637 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2638 (cgraph.o): Likewise.
2639 (cgraphunit.o): Likewise.
2640 * cgraphunit.c: Include lto-streamer.h
2641 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2643 * lto-streamer-in.c (unpack_value_fields): Call
2644 streamer_hooks.unpack_value_fields if set.
2645 (lto_materialize_tree): For unhandled nodes, first try to
2646 call lto_streamer_hooks.alloc_tree, if it exists.
2647 (lto_input_ts_decl_common_tree_pointers): Move reading of
2648 DECL_INITIAL to lto_streamer_read_tree.
2649 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2650 (lto_streamer_read_tree): New.
2651 (lto_reader_init): Rename from lto_init_reader.
2652 Move initialization code to lto/lto.c.
2653 * lto-streamer-out.c (pack_value_fields): Call
2654 streamer_hooks.pack_value_fields if set.
2655 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2656 call streamer_hooks.indexable_with_decls_p before giving up.
2657 (lto_output_ts_decl_common_tree_pointers): Move handling
2658 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2659 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2660 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2661 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2662 (lto_streamer_write_tree): New.
2663 (lto_output): Call lto_streamer_init directly.
2664 (lto_writer_init): Remove.
2665 * lto-streamer.c (streamer_hooks): New.
2666 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2667 instead of lto_preload_common_nodes.
2668 (lto_is_streamable): Move from lto-streamer.h
2669 (lto_streamer_hooks_init): New.
2670 (streamer_hooks): New.
2671 (streamer_hooks_init): New.
2672 * lto-streamer.h (struct output_block): Forward declare.
2673 (struct lto_input_block): Likewise.
2674 (struct data_in): Likewise.
2675 (struct bitpack_d): Likewise.
2676 (struct streamer_hooks): Declare.
2677 (streamer_hooks): Declare.
2678 (lto_streamer_hooks_init): Declare.
2679 (lto_streamer_write_tree): Declare.
2680 (lto_streamer_read_tree): Declare.
2681 (streamer_hooks_init): Declare.
2682 (lto_is_streamable): Move to lto-streamer.c
2684 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2686 * longlong.h (smul_ppmm): The resulting register pair contains the
2687 higher order word first.
2689 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2691 PR tree-optimization/46728
2692 * builtins.c (powi_table): Remove.
2693 (powi_lookup_cost): Remove.
2694 (powi_cost): Remove.
2695 (expand_powi_1): Remove.
2696 (expand_powi): Remove.
2697 (expand_builtin_pow_root): Remove.
2698 (expand_builtin_pow): Remove.
2699 (expand_builtin_powi): Eliminate handling of constant exponent.
2700 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2702 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2704 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2706 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2708 * dce.c (reset_unmarked_insns_debug_uses): New.
2709 (delete_unmarked_insns): Skip debug insns.
2710 (prescan_insns_for_dce): Likewise.
2711 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2712 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2713 active reg can be found.
2714 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2715 (convert_regs_1): Use it.
2717 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2719 * tree-pretty-print.c (dump_function_header): Add flags.
2720 Don't dump decl_uid with nouid.
2721 * tree-pretty-print.h (dump_function_header): Adjust.
2722 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2723 * passes.c (pass_init_dump_file): Pass dump_flags on.
2724 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2726 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2729 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2731 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2733 PR tree-optimization/49243
2734 * calls.c (setjmp_call_p): Also check if fndecl has the
2735 returns_twice attribute.
2737 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2739 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2742 2011-06-06 Richard Henderson <rth@redhat.com>
2743 Georg-Johann Lay <avr@gjlay.de>
2746 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2748 * config/avr/avr.md ("insv"): New insn expander.
2749 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2750 "*insv.not.io", "*insv.reg"): New insns.
2752 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2755 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2756 to nonimmediate_operand from memory_operand for the operand that is to
2757 be forced to memory by the expander. Lose the constraints.
2759 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2761 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2762 EH return when delayed branches are disabled.
2764 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2766 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2767 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2769 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2770 Simplify MODE_V1DF and MODE_V2SF handling.
2771 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2772 Simplify MODE_SF handling.
2774 2011-06-04 Jan Hubicka <jh@suse.cz>
2776 PR tree-optimization/48893
2777 PR tree-optimization/49091
2778 PR tree-optimization/49179
2779 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2782 2011-06-04 Jan Hubicka <jh@suse.cz>
2785 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2788 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2790 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2792 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2795 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2796 to be strictly smaller than 1 << shiftcount.
2798 2011-06-04 Jan Hubicka <jh@suse.cz>
2800 PR tree-optimize/48929
2801 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2804 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2807 * calls.c (emit_call_1): Prefer the __builtin declaration of
2810 2011-06-03 Diego Novillo <dnovillo@google.com>
2812 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2813 (lto_input_tree_pointers): Likewise.
2814 * lto-streamer-out.c (pack_value_fields): Likewise.
2815 (lto_output_tree_pointers): Likewise.
2816 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2817 and OPTIMIZATION_NODE.
2819 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2821 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2822 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2823 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2824 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2825 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2826 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2827 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2828 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2829 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2830 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2831 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2832 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2833 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2834 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2835 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2836 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2837 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2838 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2839 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2840 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2841 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2842 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2843 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2844 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2845 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2846 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2847 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2848 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2849 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2850 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2851 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2852 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2853 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2854 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2855 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2856 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2857 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2858 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2859 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2860 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2861 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2862 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2863 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2864 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2865 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2866 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2867 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2868 * system.h (MD_UNWIND_SUPPORT): Poison.
2869 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2870 * doc/tm.texi: Regenerate.
2871 * unwind-dw2.c: Include md-unwind-support.h instead of
2873 * config/ia64/unwind-ia64.c: Likewise.
2874 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2876 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2878 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2880 2011-06-03 Richard Henderson <rth@redhat.com>
2881 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2883 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2884 (sigill_hdlr): Correct insn, insn size.
2885 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2887 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2889 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2891 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2892 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2893 * config/mips/t-iris: Remove.
2894 * config/mips/t-irix6: New file.
2895 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2897 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2899 * Makefile.in (LIB2ADDEHDEP): Remove.
2900 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2901 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2902 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2903 * config/t-darwin (LIB2ADDEHDEP): Remove.
2904 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2905 * config/t-linux (LIB2ADDEHDEP): Remove.
2907 2011-06-03 Diego Novillo <dnovillo@google.com>
2909 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2910 (lto_register_var_decl_in_symtab): Likewise.
2911 (lto_register_function_decl_in_symtab): Likewise.
2912 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2913 logic to uniquify_nodes.
2915 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2917 * config/alpha/t-osf5: Remove.
2918 * config/alpha/t-osf-pthread: Remove.
2919 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2920 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2922 2011-06-03 Julian Brown <julian@codesourcery.com>
2924 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2925 (strongarm1110): Use strongarm tuning.
2926 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2927 * config/arm/arm.c (arm_strongarm_tune): New.
2928 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2929 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2930 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2931 setting, using previous defaults or 1 for Cortex-A5.
2932 (arm_option_override): Set max_insns_skipped from current tuning.
2934 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2936 * doc/install.texi (Options specification): Document --with-specs.
2938 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2940 * config/arm/neon.md (orndi3_neon): Actually split it.
2942 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2944 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2945 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2947 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2950 * target.def (delay_sched2, delay_vartrack): New.
2951 * doc/tm.texi.in: Update.
2952 * doc/tm.texi: Rebuild.
2953 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2954 * var-tracking.c (gate_handle_var_tracking): Likewise.
2955 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2956 (bfin_flag_var_tracking): Drop.
2957 (output_file_start): Don't save and override flag_var_tracking.
2958 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2959 (bfin_reorg): Test original variables.
2960 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2961 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2962 (ia64_flag_var_tracking): Drop.
2963 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2964 (ia64_file_start): Don't save and override flag_var_tracking.
2965 (ia64_override_options_after_change): Ditto
2966 flag_schedule_insns_after_reload.
2967 (ia64_reorg): Test original variables.
2968 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2969 (picochip_flag_var_tracking): Drop.
2970 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2971 (picochip_option_override): Don't save and override
2972 flag_schedule_insns_after_reload.
2973 (picochip_asm_file_start): Ditto flag_var_tracking.
2974 (picochip_reorg): Test original variables.
2975 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2976 (TARGET_DELAY_VARTRACK): Define.
2977 (spu_var_tracking): New.
2978 (spu_machine_dependent_reorg): Call it.
2979 (asm_file_start): Don't save and override flag_var_tracking.
2981 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2984 * config/sh/predicates.md (general_movsrc_operand): Return 0
2985 for memory and memory subreg of which address is an invalid
2986 indexed address for QI and HImode.
2987 (general_movdst_operand): Likewise.
2989 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2991 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2992 edges only, when there is a non-local label in the function.
2993 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2995 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2997 * config/i386/constraints.md (Y3): New register constraint.
2998 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2999 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3000 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3001 *sse2_interleave_lowv2df.
3003 2011-06-02 Julian Brown <julian@codesourcery.com>
3005 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3006 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3007 (arm_cortex_a5_tune): New.
3009 2011-06-02 Julian Brown <julian@codesourcery.com>
3011 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3012 * config/arm/arm.c (arm_default_branch_cost): New.
3013 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3014 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3015 (arm_fa726_tune): Set branch_cost field using
3016 arm_default_branch_cost.
3017 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3018 current_tune structure.
3019 * dojump.c (tm_p.h): Include file.
3021 2011-06-02 Julian Brown <julian@codesourcery.com>
3023 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3025 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3026 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3027 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3029 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3030 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3031 (arm_fa726te_tune): Add prefer_constant_pool setting.
3032 (arm_v6t2_tune, arm_cortex_tune): New.
3033 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3034 prefer_constant_pool setting.
3036 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3038 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3040 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3041 (*movdf_internal) <case 6,7,8>: Ditto.
3043 * config/i386/constraints.md (Y4): New register constraint.
3044 * config/i386/sse.md (vec_set<mode>_0): Merge with
3045 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3046 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3047 *vec_extractv2di_1_sse.
3048 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3049 and *vec_concatv2di_rex64_sse.
3051 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3054 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3055 of cgraph_local_info for null before attempting to use it.
3057 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3059 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3060 (current_function_dynamic_alloc_count): Delete.
3061 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3062 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3063 (expand_builtin_update_setjmp_buf): Remove dead code.
3064 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3065 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3067 * function.c (instantiate_virtual_regs): Likewise.
3068 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3069 for a block with a single abnormal incoming edge.
3070 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3071 (SETJMP_VIA_SAVE_AREA): Delete.
3072 * config/sparc/sparc-protos.h (load_got_register): Declare.
3073 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3074 (load_got_register): Make global.
3075 (sparc_frame_pointer_required): Add 'static'.
3076 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3077 (sparc_builtin_setjmp_frame_value): New function.
3078 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3079 (save_stack_nonlocal): New expander.
3080 (restore_stack_nonlocal): Likewise.
3081 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3082 (nonlocal_goto_internal): New insn.
3083 (goto_handler_and_restore): Delete.
3084 (builtin_setjmp_setup): Likewise.
3085 (do_builtin_setjmp_setup): Likewise.
3087 (builtin_setjmp_receiver): New expander.
3089 2011-06-01 David Li <davidxl@google.com>
3092 * tree-pretty-print.c (dump_function_header): Format cleanup.
3094 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3097 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3098 needed when original operands are used for msw_skip comparison.
3100 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3103 * var-tracking.c (add_uses, add_stores): Don't call
3104 cselib_subst_to_values on ENTRY_VALUE.
3106 2011-06-01 Diego Novillo <dnovillo@google.com>
3108 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3109 output_record_start with LTO_null instead of output_zero.
3110 (lto_output_ts_binfo_tree_pointers): Likewise.
3111 (lto_output_tree): Likewise.
3112 (output_eh_try_list): Likewise.
3113 (output_eh_region): Likewise.
3114 (output_eh_lp): Likewise.
3115 (output_eh_regions): Likewise.
3116 (output_bb): Likewise.
3117 (output_function): Likewise.
3118 (output_unreferenced_globals): Likewise.
3119 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3120 instead of NUM_TREE_CODES.
3121 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3122 (lto_output_int_in_range): Change << to >> when shifting VAL.
3124 2011-06-01 Diego Novillo <dnovillo@google.com>
3126 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3127 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3129 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3132 * optabs.h (valid_multiword_target_p): Declare.
3133 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3134 doing multi-word operations.
3135 * optabs.c (expand_binop): Likewise.
3136 (expand_doubleword_bswap): Likewise.
3137 (expand_absneg_bit): Likewise.
3138 (expand_unop): Likewise.
3139 (expand_copysign_bit): Likewise.
3140 (multiword_target_p): New function.
3142 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3144 PR rtl-optimization/48830
3145 PR rtl-optimization/48808
3146 PR rtl-optimization/48792
3147 * reload.c (push_reload): Check contains_reg_of_mode.
3148 * reload1.c (strip_paradoxical_subreg): New function.
3149 (gen_reload_chain_without_interm_reg_p): Use it to handle
3150 paradoxical subregs.
3151 (emit_output_reload_insns, gen_reload): Likewise.
3153 2011-06-01 David Li <davidxl@google.com>
3155 * predict.c : Change pass name
3158 * tree-profile.c: Ditto.
3161 2011-06-01 David Li <davidxl@google.com>
3163 * tree-pretty-print.c (dump_function_header): New function.
3164 * final.c (rest_of_clean_state): Use header dumper.
3165 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3166 * passes.c (pass_init_dump_file): Use header dumper.
3168 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3170 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3171 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3172 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3174 (mem_loc_descriptor): Use them.
3176 * var-tracking.c (create_entry_value): New function.
3177 (vt_add_function_parameter): Use it.
3179 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3181 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3182 Include <signal.h>, <ucontext.h>.
3183 (sigill_caught): Define.
3184 (sigill_hdlr): New function.
3185 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3186 insns can be executed.
3187 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3188 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3190 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3192 * config/t-slibgcc-darwin: Move to ...
3193 * config/t-slibgcc-dummy: ... this. Clarify comments.
3194 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3195 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3196 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3197 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3198 Remove i386/t-crtstuff from tmake_file.
3199 (i[34567]86-*-solaris2*): Remove t-svr4,
3200 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3202 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3203 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3204 sparc/t-crtfm from tmake_file.
3205 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3206 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3208 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3209 * config/i386/t-nwld (SHLIB_LINK): Remove.
3210 * config/i386/t-rtems-i386: Rename to ...
3211 * config/i386/t-rtems: ... this.
3212 ($(T)crti.o, $(T)crtn.o): Remove.
3213 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3214 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3215 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3216 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3217 EXTRA_MULTILIB_PARTS): Remove.
3218 * config/sparc/t-sol2-64: Likewise.
3219 * config/sparc/t-sol2: Remove.
3220 * config/sparc/t-crtin: Remove.
3221 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3222 * config/i386/gmon-sol2.c: Remove.
3223 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3224 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3225 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3226 * config/i386/sol2-gc1.asm: Remove.
3227 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3228 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3229 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3230 * config/t-slibgcc-sld: Remove.
3232 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3234 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3235 base_type_for_mode with op_mode instead of mode.
3237 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3239 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3241 * config/arm/arm-tune.md: Regenerate.
3242 * config/arm/arm-tables.opt: Regenerate.
3243 * config/arm/arm.c (FL_DIV): Rename...
3244 (FL_THUMB_DIV): ... to this.
3245 (FL_ARM_DIV): Define.
3246 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3247 (arm_arch_hwdiv): Remove.
3248 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3249 (arm_issue_rate): Add cortexr5.
3250 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3251 __ARM_ARCH_EXT_IDIV__.
3252 (TARGET_IDIV): Define.
3253 (arm_arch_hwdiv): Remove.
3254 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3255 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3256 (divsi3, udivsi3): New patterns.
3257 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3258 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3260 2011-06-01 Martin Jambor <mjambor@suse.cz>
3262 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3263 * ipa-utils.c (searchc): Set scc_no.
3265 2011-06-01 Martin Jambor <mjambor@suse.cz>
3267 * ipa-utils.c (searchc_env): New field allow_overwritable.
3268 (searchc): do not ignore edges to overwritable nodes if indicated
3269 by env->allow_overwritable.
3270 (ipa_reduced_postorder): Set env.allow_overwritable.
3272 2011-06-01 Richard Guenther <rguenther@suse.de>
3274 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3276 * lto-streamer.c (lto_record_common_node): Take node pointer,
3277 do not register types.
3278 (lto_preload_common_nodes): Explicitly skip preloading nodes
3279 that differ between frontends.
3281 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3283 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3286 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3288 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3289 parameter value for dump. Dump cost on outermost call only.
3290 (rs6000_memory_move_cost): Dump cost on outermost call only.
3292 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3294 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3295 DW_OP_GNU_convert ops.
3297 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3298 cselib_preserve_constants.
3299 (cselib_lookup_1): If cselib_preserve_constants,
3300 a new VALUE is being created for REG and there is a VALUE for the
3301 same register in wider mode, add another loc with lowpart SUBREG of
3303 (cselib_subst_to_values): Handle ENTRY_VALUE.
3304 * var-tracking.c (replace_expr_with_values): Return NULL for
3306 * dwarf2out.c (convert_descriptor_to_signed): New function.
3307 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3308 instead of two shifts.
3309 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3310 the right mode if needed.
3311 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3312 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3313 convert_descriptor_to_signed.
3314 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3315 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3318 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3320 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3322 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3323 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3324 (SWI248x): New mode iterator, rename from X87MODEI.
3325 (X87MODEI): Remove mode iterator.
3326 (X87MODEI12): Ditto.
3327 (SSEMODEI24): Ditto.
3329 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3331 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3332 * doc/invoke.texi: Document max-vartrack-expr-depth.
3333 * var-tracking.c (EXPR_DEPTH): New.
3334 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3336 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3338 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3339 * config/i386/sse.md: Add n to negated FMA pattern names.
3341 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3343 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3345 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3347 * gengtype-state.c (read_state_params_structs): Initialize previous.
3349 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3351 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3352 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3354 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3356 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3357 registers. Penalize F*r->o alternative to prevent partial memory
3358 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3359 CONST_DOUBLE immediates when optimizing function for size. Do not move
3360 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3361 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3362 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3363 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3365 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3367 (fp_register_operand splitters): Use fp_register_operand
3368 constraint. Do not use FP_REG_P in insn condition.
3369 (any_fp_register_operand splitters): Use any_fp_register_operand
3370 constraint. Do not use ANY_FP_REG_P in insn condition.
3372 2011-05-31 Jan Hubicka <jh@suse.cz>
3374 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3375 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3376 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3377 (lto_output_edge): Use output_enum and var_len_unsigned.
3378 (lto_output_varpool_node): Likewise.
3379 (input_overwrite_node): Do not take resolution parameter;
3380 extract it from a bitpack.
3381 (input_node): Do not read resolution; use input_enum and
3383 (input_varpool_node): Likewise.
3384 (input_edge): Likewise.
3385 (input_cgraph_1): Likewise.
3387 2011-05-31 Richard Guenther <rguenther@suse.de>
3389 * gimple.c (gimple_register_canonical_type): Do not register
3390 any types via gimple_register_type.
3392 2011-05-31 Jan Hubicka <jh@suse.cz>
3394 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3397 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3399 PR rtl-optimization/49235
3400 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3401 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3403 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3405 PR tree-optimization/49093
3406 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3409 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3412 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3413 for concrete functions containing the code of cloned functions.
3415 2011-05-31 Richard Guenther <rguenther@suse.de>
3417 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3419 (forward_propagate_into_comparison_1): ... this.
3420 (forward_propagate_comparison): Rename to ...
3421 (forward_propagate_into_comparison): ... this. Split out
3422 real forward propagation code to ...
3423 (forward_propagate_comparison): ... this.
3424 (forward_propagate_into_gimple_cond): Remove looping.
3425 (forward_propagate_into_cond): Likewise.
3426 (simplify_not_neg_expr): Return whether we have done something.
3427 (simplify_gimple_switch): Likewise.
3428 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3429 (ssa_forward_propagate_and_combine): ... this. Re-structure
3430 to do a forward forward-propagation walk on BBs and a backward
3431 stmt combining walk on BBs. Consistently re-scan changed statements.
3432 (pass_forwprop): Adjust.
3434 2011-05-30 Ian Lance Taylor <iant@google.com>
3436 * godump.c (go_format_type): Correct length of name added to
3437 obstack for anonymous field.
3439 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3442 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3443 part of the second operand is 0.
3445 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3447 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3448 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3449 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3450 (*movdf_internal_rex64): Do not penalize F->r alternative.
3451 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3452 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3453 when optimizing function for size. Do not move CONST_DOUBLEs
3454 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3455 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3456 SUBREGs. Do not check for MEM_P operands in the insn condition,
3457 check for ANY_FP_REGNO_P instead.
3458 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3459 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3461 * config/i386/i386.c (ix86_option_override_internal): Do not
3462 set TARGET_INTEGER_DFMODE_MOVES here.
3464 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3467 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3469 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3471 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3472 DW_TAG_rvalue_reference_type even for
3473 -gdwarf-4 -fno-debug-types-section.
3475 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3477 PR tree-optimization/46728
3478 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3479 (build_and_insert_binop): New.
3480 (gimple_expand_builtin_pow): Reorder args for
3481 build_and_insert_call; use build_and_insert_binop; add more
3482 optimizations for fractional exponents.
3484 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3489 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3491 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3493 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3494 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3495 TS_BASE instead of TS_COMMON.
3496 * varasm.c (assemble_name): Remove assert.
3498 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3500 * config.gcc: Keep obselete list sorted.
3502 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3503 Eric Botcazou <ebotcazou@adacore.com>
3505 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3506 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3507 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3508 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3509 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3511 2011-05-30 Richard Guenther <rguenther@suse.de>
3513 * gimple.c (gimple_types_compatible_p_1): Compare record
3514 and union type members properly.
3516 2011-05-30 Richard Guenther <rguenther@suse.de>
3518 PR tree-optimization/49210
3519 * ipa-split.c (split_function): Care for the case where the call
3520 result is not trivially convertible to the result holding variable.
3522 2011-05-30 Richard Guenther <rguenther@suse.de>
3524 PR tree-optimization/49218
3525 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3528 2011-05-30 Richard Guenther <rguenther@suse.de>
3530 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3531 New function split out from ...
3532 (forward_propagate_into_gimple_cond): ... here. Adjust.
3533 (forward_propagate_into_cond): Likewise.
3534 (forward_propagate_comparison): Also propagate into
3535 comparisons on assignment RHS. Change return value to
3536 behave similar to forward_propagate_into_cond.
3537 (tree_ssa_forward_propagate_single_use_vars): Handle
3538 strict-overflow warnings properly for forward_propagate_comparison.
3540 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3542 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3544 * configure: Regenerate.
3546 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3548 PR tree-optimization/49199
3549 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3550 non-reduction operands are either defined in the loop or by induction.
3552 2011-05-29 Xinliang David Li <davidxl@google.com>
3554 * opts-global.c (handle_common_deferred_options): Handle new options.
3555 * passes.c (register_one_dump_file): Call register_pass_name.
3556 (execute_one_pass): Check explicit enable/disable flag.
3557 (passr_hash): New function.
3559 (register_pass_name): Ditto.
3560 (get_pass_by_name): Ditto.
3563 (enable_pass): Ditto.
3564 (disable_pass): Ditto.
3565 (is_pass_explicitly_enabled_or_disabled): Ditto.
3567 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3569 * config/i386/i386.md (*movoi_internal_avx): Use
3570 standard_sse_constant_opcode for alternative 0.
3571 (*movti_internal_sse): Ditto.
3572 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3574 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3576 (*movsi_internal): Ditto.
3577 (*movdi_internal): Ditto. Add ssecvt type moves.
3579 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3582 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3584 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3586 PR rtl-optimization/49095
3587 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3588 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3590 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3593 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3594 recurse_p argument. Only follow register copies if it is set,
3595 and prevent mips_find_pic_call_symbol from recursing.
3596 (mips_find_pic_call_symbol): Add a recurse_p argument.
3597 Pass it to mips_pic_call_symbol_from_set.
3598 (mips_annotate_pic_calls): Update accordingly.
3600 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3602 * emit-rtl.c (try_split): Use a loop to search for
3603 NOTE_INSN_CALL_ARG_LOCATIONs.
3605 2011-05-29 Richard Guenther <rguenther@suse.de>
3607 PR tree-optimization/49217
3608 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3610 2011-05-28 Jan Hubicka <jh@suse.cz>
3612 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3614 (string_slot_free): Remove
3615 (create_output_block): Initialize obstack.
3616 (destroy_output_block): Free obstack.
3617 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3618 the string unless it needs to be added into the hash.
3619 (lto_output_string_with_length): Add persistent attribute;
3620 handle NULL strings.
3621 (lto_output_string): Add PERSISTENT parameter.
3622 (output_string_cst, output_identifier): Simplify.
3623 (lto_output_location_bitpack): Update.
3624 (lto_output_builtin_tree): Update.
3625 * lto-streamer.h (struct output_block): Add obstack.
3626 (lto_output_string, lto_output_string_with_length): Remove
3627 declarations; functions are static now.
3629 2011-05-28 Jan Hubicka <jh@suse.cz>
3631 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3632 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3633 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3634 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3635 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3636 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3637 unpack_ts_decl_with_vis_value_fields,
3638 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3639 lto_get_builtin_tree): Use enum and variable length i/o.
3640 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3641 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3643 (bp_pack_enum, bp_unpack_enum): New macros.
3645 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3647 * genrecog.c: Remove redundant forward declarations.
3649 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3651 * config.gcc: Deprecate mips*-*-openbsd*.
3653 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3656 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3659 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3662 * gengtype.c (vec_prefix_type): New function.
3663 (note_def_vec): Use vec_prefix_type and change the length
3664 attribute to be based on the prefix.
3665 * vec.c: Include coretypes.h before vec.h.
3666 (struct vec_prefix): Remove.
3667 (vec_gc_p_reserve): Change the offsetof to sizeof.
3668 (vec_gc_p_reserve_exact): Likewise.
3669 (vec_heap_p_reserve): Likewise.
3670 (vec_heap_p_reserve_exact): Likewise.
3671 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3672 (vec_stack_p_reserve): Change the offsetof to sizeof.
3673 (vec_stack_p_reserve_exact): Likewise.
3674 * vec.h (struct vec_prefix): New struct definition.
3675 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3676 (VEC_T_GTY(T,B)): Likewise.
3677 (DEF_VEC_FUNC_P(T)): Use prefix field.
3678 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3679 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3681 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3683 PR tree-optimization/46728
3684 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3685 (powi_as_mults): Add gimple_set_location.
3686 (build_and_insert_call): New.
3687 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3688 0.5, 0.25, 0.75, 1./3., or 1./6.
3690 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3692 * doc/contrib.texi: Update copyright years.
3693 (Contributors): Add Zdenek Sojka.
3695 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3697 * c-decl.c (c_push_function_context): Copy the current statement
3699 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3700 (finish_struct): Call building_stmt_list_p instead of checking
3702 * c-parser.c (c_parser_postfix_expression): Likewise.
3703 * c-typeck.c (c_end_compound_stmt): Likewise.
3704 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3705 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3706 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3707 (free_stmt_list): Likewise.
3708 * tree.h (struct tree_statement_list): Include typed_tree instead
3710 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3711 as TS_TYPED instead of TS_COMMON.
3713 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3714 Uros Bizjak <ubizjak@gmail.com>
3716 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3717 (HAVE_AS_IX86_TLSGDPTL): Define.
3718 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3719 (HAVE_AS_IX86_TLSLDMPLT): Define.
3720 * configure: Regenerate.
3721 * config.in: Regenerate.
3722 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3723 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3724 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3725 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3726 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3728 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3730 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3732 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3734 (INSN_COND, INSN_REVERSE_COND): New macros.
3735 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3737 (sched_get_condition_with_rev): Cache the results, and look them up
3739 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3740 are clobbered by the current insn.
3741 * target.def (exposed_pipline): New sched data hook.
3742 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3743 * doc/tm.texi: Regenerate.
3745 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3747 PR tree-optimization/49170
3748 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3751 2011-05-27 Richard Guenther <rguenther@suse.de>
3754 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3757 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3759 * haifa-sched.c (sched_scan_info): Remove.
3760 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3762 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3764 (sched_scan): Remove.
3765 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3766 static. All callers changed.
3767 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3768 static. All callers changed.
3769 (sched_init_luids): Remove all arguments except the first. All
3770 callers changed. Don't use sched_scan.
3771 (haifa_init_h_i_d): Likewise.
3772 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3773 manually rather than using sched_init_luids. Likewise with
3774 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3775 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3776 rather than sched_init_luids with NULL args.
3777 * sel-sched-ir.c (new_insns): Remove variable.
3778 (sched_scan): New static function, previously in haifa-sched.c. Remove
3779 all arguments but the first two; all callers changed.
3780 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3781 rather than sched_init_luids.
3782 (sel_init_bbs): Remove second argument. All callers changed.
3783 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3784 with NULL arguments.
3785 (create_insn_rtx_from_pattern): Likewise.
3786 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3787 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3788 (sched_init_insn_luid, sched_extend_luids): Declare.
3789 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3792 2011-05-27 Richard Guenther <rguenther@suse.de>
3795 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3796 A CMP B ? (T) true : (T) false for non-integral types T again.
3798 2011-05-27 Jan Hubicka <jh@suse.cz>
3800 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3801 so 0 means NULL string.
3802 (lto_output_string_with_length): ... here.
3803 (lto_output_string, output_string_cst, output_identifier): Update
3804 handling of NULL strings.
3805 (lto_output_location_bitpack): New function.
3806 (lto_output_location): Use it.
3807 (lto_output_tree_ref): Use output_record_start.
3808 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3810 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3812 (input_string_internal): ... here;
3813 (input_string_cst, input_identifier, lto_input_string): Update handling
3815 (lto_input_location_bitpack): New function
3816 (lto_input_location): Use it.
3817 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3819 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3820 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3821 (bp_pack_value): Sanity check the value range.
3822 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3824 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3827 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3829 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3830 call_arg_location instructions down the floor.
3832 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3834 PR rtl-optimization/49154
3835 * ira.c (setup_pressure_classes): Process class without sublcasses
3836 as a candidate for pressure classes.
3838 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3840 PR rtl-optimization/48575
3841 * genrecog.c (position_type): New enum.
3842 (position): New structure.
3843 (decision): Use position structure instead of a string.
3844 (root_pos, peep2_insn_pos_list): New variables.
3845 (next_position, compare_positions): New functions.
3846 (new_decision): Use position structures instead of strings.
3847 (maybe_both_true): Likewise.
3848 (change_state): Likewise.
3849 (write_tree): Likewise.
3850 (make_insn_sequence): Likewise.
3852 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3854 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3855 TS_BASE instead of TS_COMMON.
3856 (find_decls_types_r): Check for TS_TYPED structure before looking at
3858 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3860 (BLOCK_CHAIN): Use new chain field.
3862 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3864 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3865 moves expensive on Power7 also.
3867 2011-05-26 Richard Guenther <rguenther@suse.de>
3869 * fold-const.c (fold_unary_loc): Remove bogus code.
3871 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3873 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3875 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3876 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3877 TS_BASE instead of TS_COMMON.
3878 * varasm.c (assemble_name): Remove assert.
3880 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3882 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3884 * libgcc-std.ver: Delete file.
3886 2011-05-26 Richard Guenther <rguenther@suse.de>
3888 PR tree-optimization/48702
3889 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3890 only when we know the base address is within bounds.
3891 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3892 assume the base address of TARGET_MEM_REFs is in bounds.
3894 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3897 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3898 declaration in TARGET_SOLARIS.
3900 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3902 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3903 The instruction is then expanded explicitly.
3904 (supported_compare): Callable instruction.
3905 (compare): Likewise.
3907 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3910 * gimplify.c (shortcut_cond_r): Don't special case
3911 COND_EXPRs if they have void type on one of their arms.
3913 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3915 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3916 to reduce duplication, and to achieve a slightly more logical order
3919 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3921 PR tree-optimization/49161
3922 * tree-vrp.c (struct case_info): New type.
3923 (compare_case_labels): Sort case_info structs instead of
3924 trees, and not primarily by CASE_LABEL uids but by
3925 label_for_block indexes.
3926 (find_switch_asserts): Put case labels into struct case_info
3927 array instead of TREE_VEC, adjust sorting, compare label_for_block
3928 values instead of CASE_LABELs.
3930 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3932 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3933 ("orndi3_neon"): Likewise.
3934 ("bic<mode>3_neon"): Likewise.
3936 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3938 PR tree-optimization/49038
3939 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3940 Ensure at least one epilogue iteration if required by data
3942 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3943 to mark loops that require peeling for gaps.
3944 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3945 (vect_get_known_peeling_cost): Take peeling for gaps into
3947 (vect_transform_loop): Generate epilogue if required by data
3949 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3950 loop as requiring an epilogue if there are gaps in the end of
3953 2011-05-25 Ian Lance Taylor <iant@google.com>
3955 * godump.c (go_format_type): Output the first field with a usable
3958 2011-05-25 Ian Lance Taylor <iant@google.com>
3960 * godump.c (go_format_type): Check for invalid type names, pointer
3961 target types, and struct field types.
3963 2011-05-25 Jason Merrill <jason@redhat.com>
3965 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3967 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3969 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3971 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3973 * config/i386/i386.md (*movqi_extv_1)): Put back
3974 "register_operand" check in "type" calculation.
3975 (*movqi_extzv_2): Likewise.
3977 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3979 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3981 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3984 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3985 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3986 __divxc3, __divtc3): Wrap definitions in #ifndef.
3988 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3991 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3992 "register_operand" check and replace q_regs_operand with
3993 QIreg_operand in "type" calculation.
3994 (*movqi_extv_1): Likewise.
3995 (*movqi_extzv_2_rex64): Likewise.
3996 (*movqi_extzv_2): Likewise.
3998 * config/i386/predicates.md (QIreg_operand): New.
4000 2011-05-25 Richard Guenther <rguenther@suse.de>
4002 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4003 type-based offset disambiguation, streamline MEM_REF and
4004 TARGET_MEM_REF handling.
4006 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4008 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4009 (bdesc_special_args): Add pause intrinsic.
4011 * config/i386/i386.md (UNSPEC_PAUSE): New.
4014 * config/i386/ia32intrin.h (__pause): Likewise.
4016 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4019 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4021 PR tree-optimization/46728
4022 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4023 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4025 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4027 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4028 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4029 instead of TS_COMMON.
4031 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4033 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4034 LIBGCC2_GNU_PREFIX is defined.
4036 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4037 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4038 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4039 __clz_tab): Define using __N.
4040 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4041 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4042 * target.def (libfunc_gnu_prefix): New hook.
4043 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4044 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4045 * doc/tm.texi: Regenerate.
4046 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4047 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4049 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4050 (init_optabs): Likewise for the bswap libfuncs.
4051 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4053 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4054 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4055 * libgcc-std.ver: Remove.
4056 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4057 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4059 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4060 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4061 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4062 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4063 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4064 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4065 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4066 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4067 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4068 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4070 2011-05-25 Jan Hubicka <jh@suse.cz>
4072 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4073 (lto_output_tree): Use output_record_start.
4074 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4075 (lto_get_pickled_tree): Use input_record_start.
4076 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4077 (lto_value_range_error): New function.
4078 * lto-streamer.h (lto_value_range_error): Declare.
4079 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4080 (lto_output_enum, lto_input_enum): New macros.
4082 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4084 * common.opt (flag_stack_usage_info): New variable.
4085 (-Wstack-usage): New option.
4086 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4087 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4088 <OPT_fstack_usage>: Likewise.
4089 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4090 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4091 of flag_stack_usage.
4092 (emit_library_call_value_1): Likewise.
4093 * explow.c (allocate_dynamic_stack_space): Likewise.
4094 * function.c (instantiate_virtual_regs ): Likewise.
4095 (prepare_function_start): Likewise.
4096 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4097 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4098 * config/arm/arm.c (arm_expand_prologue): Likewise.
4099 (thumb1_expand_prologue): Likewise.
4100 * config/avr/avr.c (expand_prologue): Likewise.
4101 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4102 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4103 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4104 * config/mips/mips.c (mips_expand_prologue): Likewise.
4105 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4106 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4107 * config/s390/s390.c (s390_emit_prologue): Likewise.
4108 * config/sh/sh.c (sh_expand_prologue): Likewise.
4109 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4110 * config/spu/spu.c (spu_expand_prologue): Likewise.
4112 2011-05-25 Richard Guenther <rguenther@suse.de>
4114 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4115 (gimple_canonical_types_compatible_p): Likewise.
4117 2011-05-25 Jan Hubicka <jh@suse.cz>
4120 * ipa.c (function_and_variable_visibility): Only add to same
4121 comdat group list if DECL_ONE_ONLY.
4123 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4125 PR rtl-optimization/49014
4126 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4128 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4131 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4133 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4135 PR rtl-optimization/48757
4136 * ira-build.c (loop_with_eh_edge_p): Rename to
4137 loop_with_complex_edge_p, check edges on complexity, make function
4139 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4142 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4144 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4145 force flag_ira_share_save_slots to 0.
4147 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4149 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4150 (vt_initialize): Set PROLOGUE_BB unconditionally.
4151 Add block comment about CFA_BASE_RTX machinery.
4152 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4153 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4155 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4158 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4159 parsing of syntax error in ObjC instance variable lists. In
4160 particular, avoid an infinite loop if there is a stray ']'.
4161 Updated error message.
4163 2011-05-24 Ian Lance Taylor <iant@google.com>
4165 * godump.c (go_define): Don't accept a string immediately after
4168 2011-05-24 Ian Lance Taylor <iant@google.com>
4170 * godump.c (struct godump_container): Add invalid_hash field.
4171 (go_format_type): Return false if type is found in invalid_hash.
4172 (go_output_typedef): Add invalid type to invalid_hash.
4173 (go_finish): Create and delete invalid_hash.
4175 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4177 PR tree-optimization/46728
4178 * tree-ssa-math-opts.c (powi_table): New.
4179 (powi_lookup_cost): New.
4181 (powi_as_mults_1): New.
4182 (powi_as_mults): New.
4183 (gimple_expand_builtin_powi): New.
4184 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4185 (gate_cse_sincos): Remove sincos/cexp restriction.
4187 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4190 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4192 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4193 * mips-tdump.c: Likewise.
4195 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4198 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4199 add -mno-XXX. Handle FMA.
4201 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4203 PR rtl-optimization/48633
4204 * ira-build.c (loop_with_eh_edge_p): New function.
4205 (mark_loops_for_removal): Use it.
4207 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4209 PR rtl-optimization/48971
4210 * ira.c (setup_pressure_classes): Don't check register move cost
4211 for classes with one registers. Don't add pressure class if there
4212 is a pressure class with the same available hard registers.
4213 Check contains_reg_of_mode. Fix a typo in collecting
4214 temp_hard_regset. Ignore hard registers not belonging to a class.
4216 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4219 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4221 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4222 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4224 PR gcov-profile/48845
4225 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4227 2011-05-24 Richard Guenther <rguenther@suse.de>
4229 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4230 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4231 (gimple_types_compatible_p_1): Adjust.
4232 (iterative_hash_canonical_type): Do not bother about complete vs.
4234 (gimple_canonical_types_compatible_p): Likewise.
4236 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4238 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4240 2011-05-24 Richard Guenther <rguenther@suse.de>
4243 * gimple.c (gimple_register_canonical_type): Revert
4245 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4246 does not for a tree for the case where it matters. Cache
4247 pointer-type alias-sets.
4249 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4251 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4252 (OBJS): Remove options.o, opts-common.o and prefix.o.
4253 (OBJS-libcommon-target): New.
4254 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4255 (BACKEND): Include libcommon-target.a.
4256 (MOSTLYCLEANFILES): Include libcommon-target.a.
4257 (libcommon-target.a): New.
4258 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4261 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4263 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4264 parts of output shared with the driver.
4265 * optc-gen.awk: Don't generate parts of output not shared with the
4267 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4268 * doc/options.texi (SourcerInclude): Mention options-save.c.
4269 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4270 (OBJS): Add options-save.o.
4271 (options-save.c, options-save.o): New.
4272 (options.o): Update dependencies.
4273 (gcc-options.o): Remove.
4274 (mostlyclean): Remove options-save.c.
4276 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4279 * dbxout.c: Include cgraph.h.
4280 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4281 and without value expr, return NULL if no varpool node exists for
4282 it or if it is not needed.
4283 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4286 * c-decl.c (start_decl): Convert expr to void_type_node.
4288 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4290 PR rtl-optimization/48826
4291 * emit-rtl.c (try_split): When splitting a call that is followed
4292 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4294 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4296 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4297 parameters passed in memory prefer using DECL_INCOMING_RTL over
4298 the pseudos it will be copied into.
4300 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4303 * config/i386/i386.c (ix86_option_override_internal): Save the
4304 initial options after checking vzeroupper.
4306 2011-05-23 David Li <davidxl@google.com>
4308 PR tree-optimization/48988
4309 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4310 Initialize has_valid_pred for each pred chain.
4312 2011-05-23 Richard Guenther <rguenther@suse.de>
4314 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4315 (iterative_hash_gimple_type): Always hash type names.
4317 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4319 * c-typeck.c (build_function_call_vec): Tweak call to
4320 check_function_arguments.
4322 2011-05-23 Richard Guenther <rguenther@suse.de>
4324 PR tree-optimization/49115
4325 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4326 is not necessarily carried out, do not claim it kills the ref.
4327 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4329 2011-05-23 Richard Guenther <rguenther@suse.de>
4332 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4333 what pointer types we accept for folding.
4335 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4337 * gthr-gnat.c: Remove.
4338 * gthr-gnat.h: Remove.
4339 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4340 * config/t-freebsd (LIB2ADDEH): Likewise.
4341 * config/t-linux (LIB2ADDEH): Likewise.
4342 * config/t-sol2 (LIB2ADDEH): Likewise.
4343 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4344 * configure.ac (target_thread_file): Remove gnat handling.
4345 * configure: Regenerate.
4346 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4348 2011-05-23 Tristan Gingold <gingold@adacore.com>
4349 Eric Botcazou <ebotcazou@adacore.com>
4351 * gcov.c (create_file_names): If no object directory is specified,
4352 keep the directory of the file.
4354 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4356 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4357 * configure: Regenerate.
4359 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4362 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4363 failed and the comparison has a single bit signed type, use
4364 constm1_rtx instead of const1_rtx for true value.
4365 (do_store_flag): If ops->type is single bit signed type, disable
4366 signel bit test optimization and pass -1 instead of 1 as last
4367 parameter to emit_store_flag_force.
4369 2011-05-23 Tom de Vries <tom@codesourcery.com>
4372 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4374 (infer_loop_bounds_from_undefined): Use new function.
4376 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4378 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4379 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4380 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4382 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4384 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4386 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4387 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4390 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4392 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4394 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4396 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4397 UNSPEC_MOVE_PIC pattern.
4399 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4401 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4402 (sparc-*-rtems*): Likewise.
4403 (sparc64-*-elf*): Likewise.
4404 (sparc64-*-rtems*): Likewise.
4405 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4406 * config/sparc/t-crtin: New file.
4407 * config/sparc/t-sol2 (crti.o): Delete rule.
4409 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4410 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4411 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4412 (ENDFILE_SPEC): Add crtn.o.
4414 2011-05-22 Tom de Vries <tom@codesourcery.com>
4417 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4418 CODE_CONTAINS_STRUCT (TS_COMMON).
4420 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4423 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4424 only after deciding which mode to use.
4426 2011-05-22 Tom de Vries <tom@codesourcery.com>
4429 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4430 for call to get_shiftadd_cost.
4432 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4435 * config/i386/cpuid.h (bit_MMXEXT): New define.
4437 2011-05-22 Nick Clifton <nickc@redhat.com>
4439 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4440 initialisation of non-existant args[2] element. Use args[] array
4441 not arg[] array to pass arguments to build_function_type_list.
4443 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4445 PR tree-optimization/49087
4446 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4448 2011-05-21 Jason Merrill <jason@redhat.com>
4451 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4452 static storage duration.
4454 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4456 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4459 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4461 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4462 false if there are call-saved registers here...
4463 (sparc_can_use_return_insn_p): ...but here instead.
4464 (save_or_restore_regs): Fix thinko.
4465 (sparc_expand_prologue): Use current_function_is_leaf.
4466 (sparc_frame_pointer_required): Likewise.
4468 2011-05-21 Nick Clifton <nickc@redhat.com>
4471 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4473 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4475 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4476 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4478 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4480 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4481 * optc-gen.awk: Move common code to opt-read.awk.
4482 * opth-gen.awk: Likewise.
4483 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4485 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4487 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4489 2011-05-20 Tom de Vries <tom@codesourcery.com>
4492 * tree-ssa-loop-ivopts.c: Include expmed.h.
4493 (get_shiftadd_cost): New function.
4494 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4496 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4499 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4500 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4502 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4504 * Makefile.in: Update comment referring to $(OBJS-common).
4506 2011-05-20 Ian Lance Taylor <iant@google.com>
4508 * godump.c (go_output_typedef): Put enum constants in the macro
4509 hash table to avoid duplicate Go const definitions.
4511 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4513 * Makefile.in (LIBDEPS): Add libcommon.a.
4515 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4516 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4517 pretty-print.o and version.o.
4518 (OBJS-libcommon): New.
4519 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4520 (BACKEND): Add libcommon.a.
4521 (MOSTLYCLEANFILES): Likewise.
4523 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4524 (cpp$(exeext)): Likewise.
4525 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4526 pretty-print.o and input.o.
4527 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4528 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4530 (mips-tfile): Don't explicitly use version.o.
4531 (mips-tdump): Likewise.
4532 (gcov.o): Depend on $(DIAGNOSTIC_H).
4533 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4534 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4535 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4536 * gcov-dump.c: Include intl.h and diagnostic.h.
4537 (main): Initialize diagnostics.
4538 * gcov.c: Include diagnostic.h.
4540 (main): Initialize diagnostics.
4541 * lto-wrapper.c: Include diagnostic.h.
4542 (main): Initialize diagnostics.
4544 2011-05-20 Michael Matz <matz@suse.de>
4546 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4548 2011-05-20 Michael Matz <matz@suse.de>
4549 Richard Guenther <rguenther@suse.de>
4551 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4552 use lto_streamer_cache_append directly instead of returning a VEC.
4553 (preload_common_node): Remove.
4554 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4556 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4558 2011-05-20 Richard Guenther <rguenther@suse.de>
4560 PR tree-optimization/49079
4561 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4562 MEM_REFs correctly for the trailing array access detection.
4563 Special case constants the same way as decls for overall size
4566 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4568 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4571 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4573 PR tree-optimization/49073
4574 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4575 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4576 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4578 2011-05-20 Richard Guenther <rguenther@suse.de>
4581 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4582 of pointer types the same way the middle-end does.
4584 2011-05-20 Richard Guenther <rguenther@suse.de>
4586 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4587 or pointer-to chains. Delay all fixup to uniquify_nodes.
4589 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4591 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4592 (fma4_fmaddsub): Likewise
4594 2011-05-19 Jan Hubicka <jh@suse.cz>
4596 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4597 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4598 (type_pair_cache): New static var.
4599 (lookup_type_pair): Use fixed sized custom hash; make inline.
4600 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4601 calls of lookup_type_pair.
4602 (print_gimple_types_stats): Remove cache stats.
4603 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4606 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4608 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4609 when TARGET_RDRND is active.
4610 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4611 Generate dummy SImode target register when target is NULL.
4613 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4615 * config/arm/arm-fpus.def: New.
4616 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4618 * config/arm/arm-tables.opt: Regenerate.
4619 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4620 (arm_option_override): Don't decode FPU name to string here.
4621 * config/arm/arm.opt (mfpu=): Use Enum.
4622 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4623 Update dependencies.
4625 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4627 * collect2.c: Include diagnostic.h.
4628 (fatal_perror, fatal, error, fancy_abort): Remove.
4629 (main): Set progname. Call xmalloc_set_program_name and
4630 diagnostic_initialize.
4631 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4632 scan_libraries, resolve_lib_name): Call fatal_error instead of
4633 fatal and fatal_perror.
4634 * collect2.h (error, fatal, fatal_perror): Don't declare.
4635 * tlink.c: Include diagnostic-core.h.
4636 (recompile_files): Call fatal_error instead of fatal_perror.
4637 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4638 pretty-print.o and input.o.
4639 (collect2.o, tlink.o): Update dependencies.
4641 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4643 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4645 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4648 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4649 COMDAT group syntax, both SPARC and x86 variants.
4650 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4651 * configure: Regenerate.
4652 * config/sol2.h (TARGET_SOLARIS): Define.
4653 (PUSHSECTION_FORMAT): Remove.
4654 (SECTION_NAME_FORMAT): Define.
4655 * config/sol2.c: Include hashtab.h.
4656 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4657 expansion, using SECTION_NAME_FORMAT.
4658 (solaris_comdat_htab): New variable.
4659 (struct comdat_entry): Define.
4660 (comdat_hash): New function.
4661 (comdat_eq): New function.
4662 (solaris_elf_asm_comdat_section): New function.
4663 (solaris_define_comdat_signature): New function.
4664 (solaris_code_end): New function.
4665 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4666 (solaris_code_end): Declare.
4667 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4668 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4670 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4671 Remove ATTRIBUTE_UNUSED.
4672 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4673 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4674 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4675 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4676 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4677 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4678 (PUSHSECTION_FORMAT): Remove.
4679 (SECTION_NAME_FORMAT): Redefine.
4681 2011-05-19 Kai Tietz <ktietz@redhat.com>
4683 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4684 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4685 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4687 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4688 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4690 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4692 2011-05-19 Richard Guenther <rguenther@suse.de>
4695 * tree-object-size.c (addr_object_size): If the pointed-to
4696 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4698 2011-05-19 Richard Guenther <rguenther@suse.de>
4700 * gimple.c (gimple_types_compatible_p_1): Compare names of
4701 the types themselves.
4702 (iterative_hash_gimple_type): And hash them that way.
4703 (gimple_register_type_1): If we register a main variant properly
4704 initialize the leader to ourselves.
4706 2011-05-19 Tom de Vries <tom@codesourcery.com>
4709 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4710 get_loop_invariant_expr_id.
4711 (get_loop_invariant_expr_id): Use get_expr_id.
4712 (parm_decl_cost): New function.
4713 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4714 Improve bound cost estimation. Use different inv_expr_id for elim and
4717 2011-05-19 Tom de Vries <tom@codesourcery.com>
4720 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4721 cost_base.cost == 0.
4723 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4726 * config/i386/sse.md
4727 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4730 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4732 PR tree-optimization/49039
4733 * tree-vrp.c (extract_range_from_binary_expr): For
4734 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4735 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4737 2011-05-18 Tom de Vries <tom@codesourcery.com>
4740 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4742 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4744 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4745 (*tls_global_dynamic_64): Ditto.
4746 (*tls_local_dynamic_base_32_gnu): Ditto.
4747 (*tls_local_dynamic_base_64): Ditto.
4748 (tls_initial_exec_64_sun): Ditto.
4750 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4752 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4753 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4755 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4756 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4757 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4758 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4759 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4760 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4761 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4763 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4765 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4766 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4767 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4768 target_thread_pointer, arm_structure_size_boundary, struct
4769 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4770 struct abi_name, arm_all_abis): Remove.
4771 (arm_option_override) Don't process most enumerated option values here.
4772 Don't process target_fpe_name here. Work with integer not string for
4773 structure size boundary; use separate diagnostics for each case.
4774 * config/arm/arm.h (enum float_abi_type, enum
4775 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4777 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4778 arm_structure_size_boundary): Remove.
4779 * config/arm/arm.opt (mabi=): Use Enum and Init.
4780 (arm_abi_type): New Enum and EnumValue entries.
4781 (mfloat-abi=): Use Enum and Init.
4782 (float_abi_type): New Enum and EnumValue entries.
4783 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4784 (mfp16-format=): Use Enum and Init.
4785 (arm_fp16_format_type): New Enum and EnumValue entries.
4786 (mstructure-size-boundary=): Use UInteger and Init.
4787 (mtp=): Use Enum and Init.
4788 (arm_tp_type): New Enum and EnumValue entries.
4790 2011-05-18 Richard Guenther <rguenther@suse.de>
4792 PR tree-optimization/49018
4793 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4794 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4795 gimple_has_side_effects.
4797 2011-05-18 Richard Guenther <rguenther@suse.de>
4799 * gimple.c (gimple_register_type_1): New function, split out from ...
4800 (gimple_register_type): ... here. Avoid infinite recursion.
4802 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4804 PR tree-optimization/41881
4805 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4806 reduction_chains along with a macro for its access.
4807 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4808 (destroy_loop_vec_info): Free reduction chains.
4809 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4810 (vect_is_slp_reduction): New function.
4811 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4812 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4813 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4814 definition types for reduction chains.
4815 (vect_supported_load_permutation_p): Don't allow permutations for
4817 (vect_analyze_slp_instance): Support reduction chains.
4818 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4819 (vect_get_constant_vectors): Handle reduction chains.
4820 (vect_schedule_slp_instance): Mark the first statement of the
4821 reduction chain as reduction.
4823 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4825 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4826 names for group elements access.
4827 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4828 reduction chains as well. Remove data reference and interleaving
4829 related words from the fields names.
4830 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4832 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4833 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4834 vect_update_interleaving_chain, vect_same_range_drs,
4835 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4836 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4837 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4838 vect_analyze_group_access, vect_analyze_data_ref_access,
4839 vect_create_data_ref_ptr, vect_transform_strided_load,
4840 vect_record_strided_load_vectors): Likewise.
4841 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4842 vect_model_load_cost, vectorizable_store, vectorizable_load,
4843 vect_remove_stores, new_stmt_vec_info): Likewise.
4844 * tree-vect-slp.c (vect_build_slp_tree,
4845 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4847 2011-05-18 Richard Guenther <rguenther@suse.de>
4850 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4851 operand verification.
4852 (verify_gimple_assign_binary): Likewise.
4853 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4854 to non-1-precision BOOLEAN_TYPEs.
4856 2011-05-18 Tom de Vries <tom@codesourcery.com>
4859 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4861 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4863 PR tree-optimization/49000
4864 * tree-ssa.c (execute_update_addresses_taken): Call
4865 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4866 be rewritten and decl has been marked for renaming, reset
4869 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4871 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4872 enum_opts_set when testing if attributes have set -mfpmath=.
4874 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4876 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4878 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4880 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4882 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4883 id.transform_lang_insert_block with NULL.
4885 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4887 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4888 (output_fp_compare): Change args 3 and 4 to bool.
4889 (ix86_expand_call): Change arg 6 to bool.
4890 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4891 (ix86_attr_length_vex_default): Change arg 3 to bool.
4892 * config/i386/i386.md: Update all uses.
4893 * config/i386/i386.c: Ditto.
4894 (ix86_flags_dependent): Change return type to bool.
4896 2011-05-17 Richard Guenther <rguenther@suse.de>
4898 * gimple.c (type_hash_pair_compare): Fix comparison.
4900 2011-05-17 Richard Guenther <rguenther@suse.de>
4902 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4903 case some more, fix final hash value of the non-singleton case.
4905 2011-05-17 Richard Guenther <rguenther@suse.de>
4909 2011-05-16 Richard Guenther <rguenther@suse.de>
4911 * gimple.c (gimple_types_compatible_p_1): Use names of the
4912 type itself, not its main variant.
4913 (iterative_hash_gimple_type): Likewise.
4915 2011-05-17 Richard Guenther <rguenther@suse.de>
4917 * gimple.c (gimple_register_canonical_type): Use the main-variant
4918 leader for computing the canonical type.
4920 2011-05-17 Nick Clifton <nickc@redhat.com>
4922 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4925 * config/rx/rx.md: Add peephole to remove redundant extensions
4927 (bitset_in_memory): Use rx_restricted_mem_operand.
4928 (bitinvert_in_memory): Likewise.
4929 (bitclr_in_memory): Likewise.
4931 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4932 Nick Clifton <nickc@redhat.com>
4934 * config/rx/rx.md: Add peepholes to match a register move followed
4935 by a comparison of the moved register. Replace these with an
4936 addition of zero that does both actions in one instruction.
4938 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4941 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4942 predicate to allow CONST_INT.
4943 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4945 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4947 * opts-common.c (opt_enum_arg_to_value): New.
4948 * opts.h (opt_enum_arg_to_value): Declare.
4949 * config/i386/i386.opt (fpmath): Remove.
4950 (mfpmath=): Use Enum, Init and Save.
4951 (fpmath_unit): New Enum and EnumValue entries.
4952 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4953 name for function fpmath state.
4954 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4955 * config/i386/i386.c: Include diagnostic.h.
4956 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4957 (ix86_target_string): Take enum fpmath_unit value instead of string.
4958 (ix86_debug_options): Update call to ix86_target_string.
4959 (ix86_option_override_internal): Don't process fpmath strings here.
4960 (x86_function_specific_save, ix86_function_specific_restore):
4961 Don't handle fpmath state specially.
4962 (ix86_function_specific_print): Pass fpmath state to
4963 ix86_target_string instead of printing in this function.
4964 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4965 Handle enum attributes.
4966 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4967 (ix86_valid_target_attribute_tree): Update option_strings
4968 handling. Handle fpmath as enum option.
4969 (ix86_can_inline_p): Update field names for function fpmath state.
4970 (ix86_expand_builtin): Update call to ix86_target_string.
4971 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4972 (ix86_fpmath): Remove.
4973 * config/i386/t-i386 (i386.o): Update dependencies.
4975 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4977 PR preprocessor/48677
4978 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4979 from decoded_options[0], not from itself.
4981 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4983 * config/i386/constraints.md (z): New constraint.
4984 * config/i386/i386.c (c): New mode attribute.
4985 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4986 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4987 constraint for operand 0.
4988 (*call_vzeroupper): Ditto.
4989 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4990 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4991 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4992 Use "lzm" constraint for operand 0.
4993 (*call_pop_vzeroupper): Ditto.
4994 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4995 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4996 constraint for operand 0.
4997 (*sibcall_vzeroupper): Ditto.
4998 (*sibcall_rex64_ms_sysv): Ditto.
4999 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5000 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5001 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5002 (*sibcall_pop_vzeroupper): Ditto.
5003 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5004 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5005 mode iterator. Use "<c>zm" constraint for operand 1.
5006 (*call_value_vzeroupper): Ditto.
5007 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5009 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5010 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5011 *call_value_pop_1. Use "lzm" constraint for operand 1.
5012 (*call_value_pop_vzeroupper): Ditto.
5013 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5014 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5015 mode iterator. Use "Uz" constraint for operand 1.
5016 (*sibcall_value_vzeroupper): Ditto.
5017 (*sibcall_value_rex64_ms_sysv): Ditto.
5018 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5019 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5020 constraint for operand 1.
5021 (*sibcall_value_pop_vzeroupper): Ditto.
5022 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5023 and "z" constraint for operand 2.
5024 (*tls_global_dynamic_32_gnu): Ditto.
5025 (*tls_local_dynamic_base_32_gnu): Ditto.
5026 (*tls_local_dynamic_base_64): Ditto.
5027 (*tls_local_dynamic_32_once): Ditto.
5028 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5030 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5032 2011-05-16 Richard Guenther <rguenther@suse.de>
5034 * gimple.c (gimple_types_compatible_p_1): Use names of the
5035 type itself, not its main variant.
5036 (iterative_hash_gimple_type): Likewise.
5038 2011-05-16 Richard Guenther <rguenther@suse.de>
5040 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5041 always visit pointer target and function result and argument types.
5043 2011-05-16 Jason Merrill <jason@redhat.com>
5046 * tree-inline.c (copy_statement_list): Put back recursion.
5048 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5052 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5053 * config/avr/avr.md ("*ior<mode>qi.byte0",
5054 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5056 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5059 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5060 register is needed for a function argument.
5062 2011-05-16 Richard Guenther <rguenther@suse.de>
5064 * gimple.c (struct type_hash_pair): New type.
5065 (type_hash_pair_compare): New function.
5066 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5068 2011-05-16 Revital Eres <revital.eres@linaro.org>
5070 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5072 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5074 * config/i386/i386.md (floating point move splitters): Fix
5075 usage of standard_80387_constant_p.
5076 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5078 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5080 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5082 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5084 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5085 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5086 (tree_ssa_lim_finalize): Likewise.
5088 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5090 * config/i386/constraint.md (Yd, Yx): New register constraints.
5091 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5092 Yd conditional register constraint.
5093 (*movtf_internal): Use standard_sse_constant_opcode.
5094 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5095 Yx conditional register constraint.
5096 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5097 Yd conditional register constraint. Use standard_sse_constant_p to
5098 check for valid SSE constants and call standard_sse_constant_opcode to
5100 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5101 constants and call standard_sse_constant_opcode to output SSE insn.
5102 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5103 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5104 optimize_size is set.
5105 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5107 2011-05-14 Tobias Burnus <burnus@net-b.de>
5109 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5111 2011-05-13 Martin Jambor <mjambor@suse.cz>
5113 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5114 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5115 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5116 (evaluate_conditions_for_ipcp_clone): Removed.
5117 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5118 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5119 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5121 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5123 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5124 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5125 lieu of MAY_HAVE_DEBUG_STMTS.
5126 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5127 debug statements if !MAY_HAVE_DEBUG_STMTS.
5129 2011-05-13 Martin Thuresson <martint@google.com>
5131 PR gcov-profile/47793
5132 * libgcov.c (gcov_exit): Support relative profile paths.
5133 * doc/invoke.texi (-fprofile-dir): Update for above change.
5135 2011-05-13 Richard Guenther <rguenther@suse.de>
5137 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5138 type-pair caching, do not compare hashes.
5140 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5143 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5144 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5146 2011-05-13 Kai Tietz <ktietz@redhat.com>
5148 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5149 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5150 compatible type for TRUTH_NOT_EXPR.
5152 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5154 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5155 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5156 can_create_pseudo_p ().
5158 2011-05-13 Richard Guenther <rguenther@suse.de>
5161 * gimple.c (iterative_hash_gimple_type): Revert change in
5162 pointer target and function result and argument hashing.
5164 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5166 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5167 (*movxf_internal_nointeger): Ditto.
5168 (*movdf_internal_rex64): Ditto.
5169 (*movdf_internal): Ditto.
5170 (*movdf_internal_nointeger): Ditto.
5171 (*movsf_internal): Ditto.
5172 (sincos splitters): Use can_create_pseudo ().
5174 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5176 * config/i386/i386-opts.h: New.
5177 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5178 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5179 ix86_section_threshold): Remove.
5180 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5181 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5183 (ix86_option_override_internal): Don't decode strings for options
5184 other than -march=, -mtune= and -mfpmath=. Don't allow for
5185 __attribute__ uses in remaining diagnostics for options with
5186 string arguments. Don't check for integer arguments being negative.
5187 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5188 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5189 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5190 ix86_branch_cost, ix86_section_threshold): Remove.
5191 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5193 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5195 (masm=): Use Enum and Init.
5196 (asm_dialect): New Enum and EnumValue entries.
5197 (mbranch-cost=): Use UInteger.
5198 (mlarge-data-threshold=): Use UInteger and Init.
5199 (mcmodel=): Use Enum and Init.
5200 (cmodel): New Enum and EnumValue entries.
5201 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5202 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5203 mregparm=): Use UInteger.
5204 (mstringop-strategy=): Use Enum and Init.
5205 (stringop_alg): New Enum and EnumValue entries.
5206 (mtls-dialect=): Use Enum and Init.
5207 (tls_dialect): New Enum and EnumValue entries.
5208 (mabi=): Use Enum and Init.
5209 (calling_abi): New Enum and EnumValue entries.
5210 (mveclibabi=): Use Enum and Init.
5211 (ix86_veclibabi): New Enum and EnumValue entries.
5213 2011-05-13 Nick Clifton <nickc@redhat.com>
5215 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5216 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5218 2011-05-13 Kai Tietz <ktietz@redhat.com>
5221 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5222 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5223 (gimple_boolify): Check for cast for boolean_type_node instead for
5226 2011-05-13 Richard Guenther <rguenther@suse.de>
5228 PR tree-optimization/48172
5229 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5230 multiplying by number of iterations for equal step.
5231 (vect_create_cond_for_alias_checks): Likewise.
5233 2011-05-13 Andreas Schwab <schwab@redhat.com>
5235 * configure.ac: Use AS_HELP_STRING throughout.
5236 * configure: Regenerate.
5238 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5240 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5241 (ix86_emit_restore_regs_using_mov): Likewise.
5242 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5244 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5246 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5247 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5248 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5249 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5250 RTX_OK_FOR_OLO10_P): ...here.
5251 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5254 2011-05-12 Kai Tietz <ktietz@redhat.com>
5256 * gimplify.c (gimple_boolify): Re-boolify expression
5257 arguments even if expression type is of kind BOOLEAN_TYPE.
5258 (gimplify_boolean_expr): Removed.
5259 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5260 and XOR. Additional take care that we keep expression's type.
5261 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5262 of TRUTH_AND|OR|XOR_EXPR.
5264 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5266 PR tree-optimization/48975
5267 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5268 on all bbs here and free and clear ifc_bbs at the end.
5270 2011-05-12 Richard Guenther <rguenther@suse.de>
5272 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5273 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5274 until after simple checks.
5275 (gimple_types_compatible_p): Likewise.
5276 (iterative_hash_gimple_type): Always hash pointer targets
5277 and function return and argument types.
5278 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5279 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5280 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5281 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5282 completely in the simple compare section.
5283 (gimple_register_canonical_type): Query the cache again after
5286 2011-05-12 Richard Guenther <rguenther@suse.de>
5288 PR tree-optimization/48172
5289 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5290 the number of iterations from the segment size calculation.
5291 (vect_create_cond_for_alias_checks): Adjust.
5293 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5296 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5297 if validate_subreg fails.
5299 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5301 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5302 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5305 2011-05-12 DJ Delorie <dj@redhat.com>
5307 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5308 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5309 created builtin into rx_builtins array.
5310 (rx_builtin_decl): New function.
5311 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5313 2011-05-12 DJ Delorie <dj@redhat.com>
5314 Nick Clifton <nickc@redhat.com>
5316 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5317 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5318 (rx_is_legitimate_address): Add pre-decrement and post-increment
5319 addressing in HImode and QImode. Fix test for out of range
5321 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5322 (rx_align_for_label): Test label before extracting its usage count.
5323 (rx_adjust_insn_lengths): Fix selection of insn codes.
5324 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5326 2011-05-11 Jason Merrill <jason@redhat.com>
5328 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5330 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5332 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5333 reindent the subsequent block.
5335 2011-05-11 Satoru Takabayashi <satorux@google.com>
5336 Paul Pluzhnikov <ppluzhnikov@google.com>
5338 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5339 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5340 * config.in: Add LINKER_HASH_STYLE.
5341 * configure.ac: Add --with-linker-hash-style.
5342 * configure: Regenerate.
5344 2011-05-11 Richard Guenther <rguenther@suse.de>
5347 * gimple.c (iterative_hash_canonical_type): Fix typo.
5349 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5351 * config/i386/i386.c (legitimize_tls_address)
5352 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5353 expanders directly for TARGET_GNU2_TLS. Determine pic and
5354 __tls_get_addr symbol reference here. Update call to
5355 gen_tls_global_dynamic_{32,64} for added arguments.
5356 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5357 expanders directly for TARGET_GNU2_TLS. Determine
5358 __tls_get_addr symbol reference here. Update call to
5359 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5360 unique UNSPEC REG_EQUIV to libcall block.
5361 (ix86_tls_get_addr): Declare static.
5362 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5363 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5364 Do not determine pic and __tls_get_addr symbol reference here. Do not
5365 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5366 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5367 (tls_global_dynamic_64): Add operand 2. Do not determine
5368 __tls_get_addr symbol reference here. Do not call
5369 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5370 (tls_local_dynamic_base64): Ditto for operand 1.
5372 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5374 * function.c (expand_function_start): Initialize stack_check_probe_note
5375 only if the generic stack checking mechanism is used.
5377 2011-05-11 Richard Guenther <rguenther@suse.de>
5379 PR tree-optimization/15256
5380 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5381 (A & B) | C, combine (A op CST1) op CST2.
5382 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5383 visit assigns that have uses.
5385 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5387 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5388 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5389 (unpack_ts_type_common_value_fields): ...this. Update comment.
5390 (unpack_value_fields): Adjust for renaming.
5391 (lto_input_ts_type_tree_pointers): Split into...
5392 (lto_input_ts_type_common_tree_pointer): ...this and...
5393 (lto_input_ts_type_non_common_tree_pointers): ...this.
5394 (lto_input_tree_pointers): Adjust for above split.
5395 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5396 (pack_ts_type_common_value_fields): ...this. Update comment.
5397 (lto_output_ts_type_tree_pointers): Split into...
5398 (lto_output_ts_type_common_tree_pointers): ...this and...
5399 (lto_output_ts_type_non_common_tree_pointers): ...this.
5400 (lto_output_tree_pointers): Adjust for above split.
5401 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5402 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5403 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5404 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5406 (struct tree_type): Split into...
5407 (struct tree_type_common: ...this and...
5408 (struct tree_type_with_lang_specific): ...this and...
5409 (struct tree_type_non_common): ...this. Adjust accessor macros
5411 (TYPE_VALUES_RAW): Define.
5412 (union tree_node): Update for above changes.
5413 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5415 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5416 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5417 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5418 * treestructu.def (TS_TYPE): Remove.
5419 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5422 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5425 * tree-ssa.c (reset_debug_uses): New function.
5426 * tree-flow.h (reset_debug_uses): New prototype.
5427 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5428 * tree-loop-distribution.c (generate_loops_for_partition): Call
5429 reset_debug_uses on the stmts that will be removed. Keep around
5430 all debug stmts, don't count them as bits in partition bitmap.
5431 (generate_builtin): Don't count debug stmts or labels as bits in
5434 2011-05-11 Richard Guenther <rguenther@suse.de>
5436 * gimple.c (gimple_type_hash_1): Merge with ...
5437 (gimple_type_hash): ... this.
5438 (gtc_visit): Remove mode parameter and simplify accordingly.
5439 (gimple_types_compatible_p_1): Likewise.
5440 (gimple_types_compatible_p): Likewise.
5441 (iterative_hash_gimple_type): Likewise.
5443 (gimple_type_eq): Adjust.
5445 2011-05-11 Revital Eres <revital.eres@linaro.org>
5447 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5448 enters the branch create an anti edge in the opposite direction
5449 to prevent the creation of reg-moves.
5450 * modulo-sched.c: Adjust comment to reflect the fact we are
5451 scheduling closing branch.
5452 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5453 (stage_count): New field in struct partial_schedule.
5454 (calculate_stage_count): New function.
5455 (normalize_sched_times): Rename to reset_sched_times and handle
5456 incrementing the sched time of the nodes by a constant value
5457 passed as parameter.
5458 (duplicate_insns_of_cycles): Skip closing branch.
5459 (sms_schedule_by_order): Schedule closing branch.
5460 (ps_insn_find_column): Handle closing branch.
5461 (sms_schedule): Call reset_sched_times and adjust the code to
5462 support scheduling of the closing branch.
5463 (ps_insert_empty_row): Update calls to normalize_sched_times
5464 and rotate_partial_schedule functions.
5466 2011-05-11 Richard Guenther <rguenther@suse.de>
5469 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5471 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5473 * opts.c (finish_options): Move warning settings from process_options.
5474 * toplev.c (process_options): Move warning settings to finish_options.
5476 2011-05-11 Richard Guenther <rguenther@suse.de>
5478 PR tree-optimization/18041
5479 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5480 (simplify_bitwise_binary): ... this. Handle operand conversions
5481 by applying them to the result instead.
5482 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5484 2011-05-11 Richard Guenther <rguenther@suse.de>
5486 * gimple.c (gimple_canonical_types_compatible_p): Split out
5487 from gimple_types_compatible_p and friends. Do not recurse
5488 to pointed-to types.
5489 (gimple_canonical_type_eq): Use it.
5490 (iterative_hash_canonical_type): Split out from
5491 iterative_hash_gimple_type and friends. Do not recurse
5492 to pointed-to types.
5493 (gimple_canonical_type_hash): Use it, allocate the hash here.
5495 2011-05-11 Revital Eres <revital.eres@linaro.org>
5497 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5500 2011-05-11 Revital Eres <revital.eres@linaro.org>
5502 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5503 instead of PREV_INSN.
5505 2011-05-11 Revital Eres <revital.eres@linaro.org>
5507 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5508 * loop-doloop.c (doloop_condition_get): Likewise.
5509 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5511 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5513 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5515 * tree.def (CASE_LABEL_EXPR): Add an operand.
5516 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5518 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5520 * c-decl.c (c_override_global_bindings_to_false): Remove.
5521 (global_bindings_p): Don't check
5522 c_override_global_bindings_to_false.
5523 * c-tree.h (c_override_global_bindings_to_false): Remove.
5524 * c-typeck.c (composite_type): Don't set
5525 c_override_global_bindings_to_false.
5527 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5529 PR target/48857, 48495
5530 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5532 (VSX_MOVE_MODE): Ditto.
5533 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5534 VSX vector types. Add V2DImode.
5535 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5536 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5537 (MODES_TIEABLE_P): Ditto.
5539 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5540 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5542 (init_cumulative_args): Ditto.
5543 (rs6000_function_arg_boundary): Ditto.
5544 (rs6000_function_arg_advance_1): Ditto.
5545 (rs6000_function_arg): Ditto.
5546 (rs6000_function_ok_for_sibcall): Ditto.
5547 (emit_frame_save): Ditto.
5548 (rs6000_function_value): Ditto.
5549 (rs6000_libcall_value): Ditto.
5551 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5553 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5554 i386/darwin-lib.h to $libgcc_tm_file.
5555 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5557 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5559 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5561 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5563 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5564 * config/rs6000/rs6000-tables.opt: New file (generated).
5565 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5566 rs6000/rs6000-tables.opt to extra_options.
5567 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5568 * config/rs6000/rs6000.c (rs6000_select): Remove.
5569 (processor_target_table): Move contents to rs6000-cpus.def.
5570 (darwin_rs6000_override_options): Check
5571 global_options_set.x_rs6000_cpu_index instead of
5572 rs6000_select[1].string.
5573 (rs6000_option_override_internal): Likewise.
5574 (rs6000_handle_option): Don't assert that global structures are in
5575 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5576 (rs6000_default_cpu): New variable.
5577 (rs6000_file_start): Set it instead of local default_cpu. Check
5578 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5579 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5580 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5581 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5582 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5583 rs6000_select): Remove.
5584 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5586 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5587 * config/rs6000/t-rs6000
5588 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5589 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5590 global_options_set.x_rs6000_cpu_index instead of
5591 rs6000_select[1].string.
5592 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5593 global_options_set.x_rs6000_cpu_index instead of
5594 rs6000_select[1].string.
5596 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5598 * config.gcc (libgcc_tm_file): Define instead of including files
5599 from ../../libgcc/config/ in tm_file.
5600 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5601 * configure: Regenerate.
5602 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5603 libgcc_tm.h, cs-libgcc_tm.h): New.
5604 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5605 (clean): Remove libgcc_tm.h.
5606 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5607 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5608 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5610 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5613 * config/avr/avr.c (avr_ret_register): Return unsigned int
5615 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5616 it to avr_libcall_value.
5617 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5619 (avr_expand_binop_builtin): Ditto.
5620 (avr_expand_unop_builtin): Ditto.
5622 2011-05-10 DJ Delorie <dj@redhat.com>
5624 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5625 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5626 * config/rx/rx.c (rx_align_for_label): Add label and
5627 uses_threshold parameters. Do not align when the label is not
5629 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5631 2011-05-10 Richard Guenther <rguenther@suse.de>
5633 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5634 a series of conversions and apply foldings similar to what
5636 (tree_ssa_forward_propagate_single_use_vars): Call it.
5638 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5640 PR tree-optimization/48611
5641 PR tree-optimization/48794
5642 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5643 referenced from RESX or EH_DISPATCH arguments.
5646 * dfp.c (decimal_to_decnumber): Handle conversion from
5647 dconst{1,2,m1,half}.
5649 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5651 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5652 for !flag_prefer_avx128.
5653 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5655 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5657 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5658 (fold_ternary_loc): Use expr_location_or.
5660 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5663 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5664 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5665 Pmode and mem_mode is not VOIDmode.
5667 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5669 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5670 TYPE_QUAL_RESTRICT): Convert to enum.
5672 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5674 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5675 (const_pow2_1_to_8_operand): Ditto.
5676 (const_pow2_1_to_128_operand): Ditto.
5677 (const_pow2_1_to_32768_operand): Ditto.
5678 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5679 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5680 in insn constraint to check integer value of operand 3.
5681 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5683 (PINSR_MODE): New mode iterator.
5684 (sse2p4_1): New mode attribute.
5685 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5686 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5687 iterator. Use const_int_operand instead of
5688 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5689 exact_log2 in insn constraint to check integer value of operand 3.
5691 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5693 * config/i386/sse.md (blendbits): Remove mode attribute.
5694 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5695 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5696 Check integer value of operand 3 in insn constraint.
5698 2011-05-09 Richard Guenther <rguenther@suse.de>
5700 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5702 (lto_symtab_merge): Likewise. Do not register types here.
5703 (lto_symtab_merge_decls_2): Likewise.
5704 (lto_symtab_merge_decls_1): Likewise.
5705 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5706 * gimple.c (enum gtc_mode): Declare.
5707 (gimple_types_compatible_p): Make static.
5709 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5711 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5712 temporary register to match Pmode.
5714 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5716 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5717 and *vec_concatv4si_1_avx.
5719 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5721 PR rtl-optimization/48927
5722 * ira-conflicts.c (commutative_constraint_p): Use
5723 recog_data.alternative_enabled_p to disable alternatives where
5724 "enabled" attribute is false.
5725 (get_dup_num): Ditto.
5726 * ira-lives.c (single_reg_class): Ditto.
5727 (ira_implicitly_set_insn_hard_regs): Ditto.
5729 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5731 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5732 (dataflow_set_preserve_mem_locs): Likewise.
5734 2011-05-09 Philipp Thomas <pth@suse.de>
5736 * config/mep/mep.c (mep_validate_vliw): Syntax description
5737 should not be translated.
5739 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5741 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5742 * config/mips/mips-tables.opt: New file (generated).
5743 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5744 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5745 MIPS_ARCH_OPTION_NATIVE): Define.
5746 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5748 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5749 mips_parse_cpu): Remove.
5750 (mips_cpu_info_from_opt, mips_default_arch): New.
5751 (mips_handle_option): Don't assert that global structures are in
5752 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5753 (mips_option_override): Use new variables and functions to set
5754 state of these options. Use strcmp to check for individual CPU names.
5755 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5757 * config/mips/mips.opt (march=): Use ToLower and Enum.
5758 (mips): Use ToLower, Enum and Var.
5759 (mtune=): Use ToLower and Enum.
5760 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5762 2011-05-08 Jan Hubicka <jh@suse.cz>
5764 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5765 Arrange type pairs to be UID ordered.
5766 (gimple_lookup_type_leader): Make inline.
5768 2011-05-09 Nick Clifton <nickc@redhat.com>
5771 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5775 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5778 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5780 * combine.c (simplify_comparison): Abstract out parts into...
5781 (simplify_compare_const): ... new function.
5782 (try_combine): Generalize parallel arithmetic/compare combining
5783 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5785 2011-05-08 Jan Hubicka <jh@suse.cz>
5787 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5788 (cgraph_create_virtual_clone): Call hooks once virtual clone
5790 * cgraph.h (cgraph_clone_node): Update prototype.
5791 * ipa-cp.c (ipcp_estimate_growth): Use
5792 estimate_ipcp_clone_size_and_time.
5793 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5794 * lto-cgraph.c (input_node): Update.
5795 * ipa-inline.c (recursive_inlining): Update.
5796 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5797 (evaluate_conditions_for_known_args): Break out from ...
5798 (evaluate_conditions_for_edge): ... here.
5799 (evaluate_conditions_for_ipcp_clone): New function.
5800 (inline_node_duplication_hook): Update clone summary based
5802 (estimate_callee_size_and_time): Rename to ...
5803 (estimate_node_size_and_time): take NODE instead of EDGE;
5804 take POSSIBLE_TRUTHS as argument.
5805 (estimate_callee_size_and_time): Update.
5806 (estimate_ipcp_clone_size_and_time): New function.
5807 (do_estimate_edge_time): Update.
5809 2011-05-08 Richard Guenther <rguenther@suse.de>
5813 * expmed.c (expand_shift_1): Compute adjusted constant shift
5816 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5818 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5820 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5822 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5824 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5826 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5828 2011-05-07 Jan Hubicka <jh@suse.cz>
5830 * ipa-inline-transform.c (inline_call): Account when program size
5832 * ipa-inline.c (relative_time_benefit): New function.
5833 (edge_badness): Reorganize to be power 2 based; fix thinko when
5834 computing badness for negative growth; update comments to match
5835 reality; better dumps.
5837 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5839 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5840 type to bool and adjust comment.
5841 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5842 (fold_mathfn_compare): Remove calls to global_bindings_p.
5843 (fold_inf_compare): Likewise.
5844 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5845 * c-tree.h (global_bindings_p): Adjust prototype.
5846 * c-decl.c (global_bindings_p): Return bool and simplify.
5848 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5850 PR tree-optimization/48837
5851 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5852 when accumulator transformation is performed.
5854 2011-05-06 Jan Hubicka <jh@suse.cz>
5856 * i386.h (ix86_tune_indices): Add
5857 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5858 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5859 * i386.c (initial_ix86_tune_features): Add
5860 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5861 (software_prefetching_beneficial_p): Remove predicate.
5862 (ix86_option_override_internal): Use new macro.
5864 2011-05-06 Jan Hubicka <jh@suse.cz>
5866 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5868 2011-05-06 Jan Hubicka <jh@suse.cz>
5870 * cgraph.c (cgraph_add_thunk): Create real function node instead
5871 of alias node; finalize it and mark needed/reachale; arrange visibility
5872 to be right and add it into the corresponding same comdat group list.
5873 (dump_cgraph_node): Dump thunks.
5874 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5875 cgraph_function_with_gimple_body_p,
5876 cgraph_first_function_with_gimple_body,
5877 cgraph_next_function_with_gimple_body): New functions.
5878 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5880 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5881 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5882 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5883 devirtualization when optimizing.
5884 (verify_cgraph_node): Verify thunks.
5885 (cgraph_analyze_function): Analyze thunks.
5886 (cgraph_mark_functions_to_output): Output thunks only in combination
5887 with function they are assigned to.
5888 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5889 alias into normal node.
5890 (assemble_thunks): New functoin.
5891 (cgraph_expand_function): Use it.
5892 * lto-cgraph.c (lto_output_node): Stream thunks.
5893 (input_overwrite_node): Stream in thunks.
5894 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5895 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5896 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5897 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5898 (inline_analyze_function): Do not care about thunk jump functions.
5899 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5900 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5901 cgraph_function_with_gimple_body_p.
5902 * passes.c (do_per_function_toporder): Use
5903 cgraph_function_with_gimple_body_p.
5904 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5905 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5906 (function_called_by_processed_nodes_p): Likewise.
5908 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5910 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5911 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5913 (mabi=): Replace with separate entries for mabi=altivec,
5914 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5915 mabi=ieeelongdouble and mabi=ibmlongdouble.
5916 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5917 check for -mabi=spe without SPE ABI support here.
5918 (rs6000_handle_option): Replace OPT_mabi_ handling with
5919 OPT_mabi_altivec and OPT_mabi_spe handling.
5921 2011-05-06 Cary Coutant <ccoutant@google.com>
5923 * dwarf2out.c (contains_subprogram_definition): New function.
5924 (should_move_die_to_comdat): Call it.
5926 2011-05-06 Jeff Law <law@redhat.com>
5928 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5929 remove_ctrl_stmt_and_useless_edges.
5930 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5931 (fixup_template_block, thread_single_edge): Likewise.
5932 (mark_threaded_blocks): Use THREAD_TARGET.
5934 2011-05-06 Alan Modra <amodra@gmail.com>
5937 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5938 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5940 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5942 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5943 constraint modifier to "r".
5945 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5947 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5948 fall through for OPT_mcmodel_.
5950 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5952 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5954 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5956 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5959 * config/arm/arm.opt (marm): Document it.
5960 (mthumb): Reject negative variant.
5962 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5965 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5966 Fix typo in "ccvt" variable name.
5968 2011-05-06 Tristan Gingold <gingold@adacore.com>
5971 * config/vms/vms-ar.c (main): Remove cwd variable.
5973 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5976 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5978 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5980 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5981 * gimplify.c (gimplify_switch_expr): Likewise.
5982 * omp-low.c (expand_omp_sections): Likewise.
5983 * tree-eh.c (lower_try_finally_switch): Likewise.
5984 (lower_eh_dispatch): Likewise.
5985 * tree.h (build_case_label): Declare.
5986 * tree.c (build_case_label): Define.
5988 2011-05-05 Jason Merrill <jason@redhat.com>
5991 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5992 (copy_statement_list): Don't recurse.
5993 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5996 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5998 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5999 through from -mfpu= handling.
6000 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6002 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6004 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6007 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6009 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6011 (hppa[12]*-*-hpux11*): Ditto.
6012 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6013 * config/ia64/hpux-unix2003.h: New.
6014 * config/pa/pa-hpux1131.opt: New.
6015 * config/pa/pa-hpux1131.h: New.
6016 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6017 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6018 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6020 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6023 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6024 instead of mode as 3rd argument to recursive call.
6025 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6026 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6028 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6029 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6030 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6031 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6033 2011-05-05 Julian Brown <julian@codesourcery.com>
6035 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6036 parenthesis in D-register case.
6038 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6040 * opt-functions.awk (var_type_struct): Handle Enum options.
6041 * optc-gen.awk: Don't check range of variables of character type.
6042 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6043 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6044 rs6000_sdata_name, rs6000_explicit_options): Remove.
6045 (rs6000_option_override_internal): Check for -malign-power here.
6046 Use global_options_set instead of rs6000_explicit_options.
6047 (rs6000_parse_fpu_option): Remove.
6048 (rs6000_handle_option): Access variables via opts and opts_set
6049 pointers. Use error_at and warning_at. Add fall-through
6050 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6051 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6052 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6053 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6054 here. Don't use rs6000_parse_fpu_option.
6055 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6056 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6057 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6059 (mspe): Use Var and Save.
6060 (mtraceback=): Use Enum and Var.
6061 (rs6000_traceback_type): New Enum and EnumValue entries.
6062 (mfloat-gprs=): Use Enum, Var and Save.
6063 (rs6000_float_gprs): New Enum and EnumValue entries.
6064 (mlong-double-): use Var and Save.
6065 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6066 (malign-): Use Enum and Var.
6067 (rs6000_alignment_flags): New Enum and EnumValue entries.
6069 (fpu_type_t): New Enum and EnumValue entries.
6070 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6071 global_options_set instead of rs6000_explicit_options.
6072 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6073 global_options_set instead of rs6000_explicit_options.
6074 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6075 global_options_set instead of rs6000_explicit_options.
6076 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6077 global_options_set instead of rs6000_explicit_options.
6078 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6079 global_options_set instead of rs6000_explicit_options.
6080 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6081 global_options_set instead of rs6000_explicit_options.
6082 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6084 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6085 global_options_set instead of rs6000_explicit_options.
6086 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6087 (rs6000_cmodel): New Enum and EnumValue entries.
6088 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6089 global_options_set instead of rs6000_explicit_options.
6090 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6091 (mtls-size=): Use Enum and Var.
6092 (rs6000_tls_size): New Enum and EnumValue entries.
6094 2011-05-05 Michael Matz <matz@suse.de>
6096 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6097 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6098 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6099 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6100 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6101 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6102 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6103 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6104 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6105 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6106 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6107 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6108 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6109 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6110 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6111 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6113 2011-05-05 Richard Guenther <rguenther@suse.de>
6115 * expmed.c (expand_variable_shift): Rename to ...
6116 (expand_shift_1): ... this. Take an expanded shift amount.
6117 For rotates recurse directly not building trees for the shift amount.
6118 (expand_variable_shift): Wrap around expand_shift_1.
6119 (expand_shift): Adjust.
6121 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6123 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6125 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6127 * tree.h (get_pending_sizes): Remove prototype.
6128 (put_pending_size): Likewise.
6129 (put_pending_sizes): Likewise.
6130 * stor-layout.c (pending_sizes): Delete.
6131 (get_pending_sizes): Likewise.
6132 (put_pending_size): Likewise.
6133 (put_pending_sizes): Likewise.
6134 (variable_size): Do not call put_pending_size and tidy up.
6135 * function.h (struct function): Remove dont_save_pending_sizes_p.
6136 * lto-streamer-in.c (input_function): Do not stream it.
6137 * lto-streamer-out.c (output_function): Likewise.
6138 * tree-inline.c (initialize_cfun): Do not copy it.
6139 * c-decl.c (store_parm_decls): Do not set it.
6140 * omp-low.c (create_task_copyfn): Likewise.
6141 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6143 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6145 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6147 (*movdf_internal): Ditto.
6148 (*movdf_internal_nointeger): Ditto.
6149 (*movsf_internal): Ditto.
6151 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6153 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6154 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6155 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6156 (c_variable_size): Remove.
6157 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6158 call put_pending_sizes.
6159 (get_parm_info): Add parameter expr. Use it to set
6160 arg_info->pending_sizes.
6161 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6163 * c-parser.c (c_parser_parms_declarator): Update call to
6164 c_parser_parms_list_declarator.
6165 (c_parser_parms_list_declarator): Take parameter expr. Update
6166 call to push_parm_decl. Update recursive call. Don't call
6167 get_pending_sizes. Update calls to get_parm_info.
6168 (c_parser_objc_method_definition): Update calls to
6169 c_parser_objc_method_decl and objc_start_method_definition.
6170 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6171 (c_parser_objc_method_decl): Add parameter expr. Update call to
6173 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6174 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6175 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6177 2011-05-05 Michael Hope <michael.hope@linaro.org>
6180 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6183 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6185 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6186 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6187 (spu_output_mi_thunk): New function.
6189 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6191 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6192 targetm.asm_out.print_operand.
6193 * config/sol2.c: Include target.h.
6195 2011-05-04 Jan Hubicka <jh@suse.cz>
6197 * ipa-inline.c (reset_edge_caches): New function.
6198 (update_caller_keys): Add check_inlinablity_for; do not
6199 reset edge caches; remove now unnecesary loop.
6200 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6201 (update_all_callee_keys): Likewise.
6202 (inline_small_functions): Sanity check cache; update code
6205 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6207 PR rtl-optimization/47612
6208 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6209 as the last insn of the sequence to be moved.
6211 2011-05-04 Tobias Burnus <burnus@net-b.de>
6214 * doc/invoke.texi (Ofast): Document that it
6215 enables Fortran's -fno-protect-parens.
6217 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6219 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6221 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6223 * stor-layout.c (variable_size): Do not issue errors.
6225 2011-05-04 Richard Guenther <rguenther@suse.de>
6227 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6228 for array-ref indices.
6229 (tree_coverage_counter_addr): Likewise.
6230 (build_fn_info_type): Use size_int for index types.
6231 (build_gcov_info): Likewise.
6233 2011-05-04 Richard Guenther <rguenther@suse.de>
6235 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6237 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6238 for constructor indices.
6239 (push_init_level): Likewise.
6241 2011-05-04 Richard Guenther <rguenther@suse.de>
6243 * explow.c (promote_mode): Move variable declarations before code.
6245 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6247 * tree.h (build_function_type_array): Declare.
6248 (build_varargs_function_type_array): Declare.
6249 (build_function_type_vec, build_varargs_function_type_vec): Define.
6250 * tree.c (build_function_type_array_1): New function.
6251 (build_function_type_array): New function.
6252 (build_varargs_function_type_array): New function.
6254 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6256 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6257 before setting STMT_VINFO_TYPE.
6259 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6261 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6262 instead of spu_pass_by_reference.
6264 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6266 * calls.c (emit_library_call_value_1): Invoke
6267 promote_function_mode hook on libcall arguments.
6268 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6269 argument being NULL.
6270 * targhooks.c (default_promote_function_mode): Lisewise.
6271 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6272 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6274 * doc/tm.texi: Document that TYPE argument might be NULL.
6276 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6278 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6280 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6283 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6285 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6287 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6288 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6290 * mips-tfile.c: ... here.
6291 Don't include coretypes.h, tm.h, filenames.h.
6292 (saber_stop): Remove definition and all calls.
6293 [__SABER__]: Remove.
6294 (__LINE__): Remove default.
6295 (Size_t, Ptrdiff_t): Remove definitions.
6296 Replace by size_t, ptrdiff_t.
6297 [!MIPS_DEBUGGING_INFO]: Remove.
6298 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6299 (progname): Add const.
6301 Replace all uses by static.
6302 (ALIGN_SYMTABLE_OFFSET): Remove default.
6303 * mips-tdump.c: Don't include coretypes.h, tm.h.
6304 Remove !MIPS_IS_STAB guard.
6305 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6306 $(TM_H), filenames.h dependencies.
6307 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6309 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6312 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6313 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6315 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6318 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6319 account and save/restore RETS.
6320 (PROFILE_BEFORE_PROLOGUE): Define.
6321 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6322 the push insn to use predecrement.
6324 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6327 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6329 2011-05-04 Nick Clifton <nickc@redhat.com>
6331 * config/mn10300/mn10300.c: Include cfgloop.h.
6333 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6334 Lcc or a FLcc insn into the instruction stream.
6335 (mn10300_block_contains_call): New function. Returns true if the
6336 given basic block contains a CALL insn.
6337 (mn10300_loop_contains_call_insn): New function. Returns true if
6338 the given loop contains a CALL insn.
6339 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6340 to use the SETLB and Lcc or FLcc insns.
6341 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6342 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6343 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6344 disable the SETLB optimization.
6345 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6346 __SETLB__ or __NO_SETLB__.
6347 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6348 (movsf_internal): Handle MDR register.
6349 (cmpsi): Make visible.
6350 (setlb): New pattern.
6352 (FLcc): New pattern.
6354 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6357 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6358 for reg<->xmm moves.
6359 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6360 (vec_concatv2di_rex64_sse): Ditto.
6361 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6362 (*vec_extractv2di_1_rex64): Ditto.
6365 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6367 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6369 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6371 2011-05-04 Richard Guenther <rguenther@suse.de>
6373 * tree.h (int_const_binop): Remove notrunc argument.
6374 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6375 create integer constants that are properly truncated.
6376 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6377 (const_binop): Remove zero notrunc argument to int_const_binop.
6378 (size_binop_loc): Likewise.
6379 (fold_div_compare): Likewise.
6380 (maybe_canonicalize_comparison_1): Likewise.
6381 (fold_comparison): Likewise.
6382 (fold_binary_loc): Likewise.
6383 (multiple_of_p): Likewise.
6384 * expr.c (store_constructor): Likewise.
6385 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6386 (maybe_fold_stmt_addition): Likewise.
6387 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6388 * stor-layout.c (layout_type): Likewise.
6389 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6390 * tree-sra.c (build_ref_for_offset): Likewise.
6391 (build_user_friendly_ref_for_offset): Likewise.
6392 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6393 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6394 * tree-ssa-loop-niter.c (inverse): Likewise.
6395 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6396 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6397 * tree-switch-conversion.c (check_range): Likewise.
6398 (build_constructors): Likewise.
6399 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6400 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6401 (extract_range_from_assert): Likewise.
6402 (vrp_int_const_binop): Likewise.
6403 (extract_range_from_binary_expr): Likewise.
6404 (extract_range_from_unary_expr): Likewise.
6405 (check_array_ref): Likewise.
6406 (find_case_label_range): Likewise.
6407 (simplify_div_or_mod_using_ranges): Likewise.
6408 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6409 comparing case labels for merging.
6411 2011-05-03 Mark Wielaard <mjw@redhat.com>
6413 * dwarf2out.c (debug_str_hash_forced): Removed.
6414 (gen_label_for_indirect_string): Removed.
6415 (get_debug_string_label): Removed.
6416 (AT_string_form): Generate label directly.
6417 (output_indirect_string): Test indirect_string_node for
6418 DW_FORM_strp instead of checking label and refcount.
6419 (prune_indirect_string): Removed.
6420 (prune_unused_types): Don't check debug_str_hash_forced or
6421 call prune_indirect_string.
6423 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6426 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6428 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6432 * combine.c (try_combine): Skip debug insns at m_split tests.
6434 2011-04-26 Mark Wielaard <mjw@redhat.com>
6437 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6438 when info_section_emitted.
6440 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6442 * config/mips/mips-opts.h: New.
6443 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6445 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6446 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6447 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6449 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6451 (mips_abi, mips_code_readable): Don't declare.
6452 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6453 (mabi=): Use Enum and Var.
6454 (mips_abi): New Enum and EnumValue entries.
6455 (mcode-readable=): Use Enum and Var.
6456 (mips_code_readable_setting): New Enum and EnumValue entries.
6457 (mr10k-cache-barrier=): Use Enum and Var.
6458 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6460 2011-05-03 Jan Hubicka <jh@suse.cz>
6462 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6463 replace hash by pointer map.
6464 (cgraph_node_set_element_def, cgraph_node_set_element,
6465 const_cgraph_node_set_element, varpool_node_set_element_def,
6466 varpool_node_set_element, const_varpool_node_set_element): Remove.
6467 (free_cgraph_node_set, free_varpool_node_set): New function.
6468 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6469 * tree-emutls.c: Free varpool node set.
6470 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6471 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6472 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6473 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6474 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6475 Move here from ipa.c; implement using pointer_map
6476 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6477 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6478 debug_cgraph_node_set, varpool_node_set_new,
6479 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6480 dump_varpool_node_set, debug_varpool_node_set):
6481 Move to ipa-uitls.c.
6482 * passes.c (ipa_write_summaries): Update.
6484 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6486 From Mike Frysinger:
6487 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6488 bf542/bf544/bf547/bf548/bf549.
6490 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6492 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6494 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6497 * config/bfin/bfin.md (MOVCC): New mode_macro.
6498 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6499 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6500 comments from generated assembly.
6502 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6505 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6506 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6507 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6508 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6509 * config/bfin/lib1funcs.asm (___muldi3): New function.
6511 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6513 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6514 build_function_type_list instead of build_function_type.
6515 Rearrange initialization of `args' to do so.
6517 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6519 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6520 instead of build_function_type.
6522 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6524 * config/rs6000/rs6000.c (spe_init_builtins): Call
6525 build_function_type_list instead of build_function_type.
6526 (paired_init_builtins, altivec_init_builtins): Likewise.
6527 (builtin_function_type): Likewise.
6529 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6531 * config/sh/sh.c (sh_media_init_builtins): Call
6532 build_function_type_list instead of build_function_type.
6534 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6536 * config/sparc/sparc.c (sparc_file_end): Call
6537 build_function_type_list instead of build_function_type.
6539 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6541 * config/alpha/alpha.c (alpha_init_builtins): Call
6542 build_function_type_list instead of build_function_type.
6544 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6546 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6547 build_function_type_list instead of build_function_type.
6549 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6551 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6552 build_function_type_list instead of build_function_type.
6553 Delete `endlink' variable.
6555 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6557 * config/avr/avr.c (avr_init_builtins): Call
6558 build_function_type_list instead of build_function_type.
6560 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6562 * config/picochip/picochip.c (picochip_init_builtins): Call
6563 build_function_type_list instead of build_function_type.
6564 Delete `endlink' variable.
6566 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6568 * config/bfin/bfin.c (bfin_init_builtins): Call
6569 build_function_type_list instead of build_function_type.
6571 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6574 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6575 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6577 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6580 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6581 libbffastfp overrides libgcc when -mfast-fp.
6583 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6585 Originally from Bernd Schmidt
6586 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6587 * config/bfin/bfin.c (override_options): Test it and error if
6590 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6592 Originally From Bernd Schmidt
6593 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6596 2011-05-03 Jeff Law <law@redhat.com>
6598 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6599 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6600 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6601 than accessing AUX field directly. Free the AUX field before
6603 (thread_block, thread_through_loop_header): Likewise.
6604 (thread_single_edge, mark_threaded_blocks): Likewise.
6605 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6606 (register_jump_thread): Do not attempt to thread to a NULL edge.
6608 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6610 * function.c (init_function_start): Call decide_function_section.
6611 * varasm.c (decide_function_section): New function.
6612 (assemble_start_function): When not using
6613 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6614 or first_function_block_is_cold.
6615 * rtl.h (decide_function_section): Declare.
6617 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6618 Jakub Jelinek <jakub@redhat.com>
6621 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6622 only succeed if req_mode is the same as set_mode.
6624 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6626 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6627 * genemit.c (gen_exp): Handle RETURN.
6628 * emit-rtl.c (verify_rtx_sharing): Likewise.
6629 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6630 * rtl.c (copy_rtx): RETURN is shared.
6631 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6633 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6634 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6635 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6636 * config/cris/cris.c (cris_expand_return): Likewise.
6637 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6638 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6639 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6640 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6641 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6643 * config/v850/v850.c (expand_epilogue): Likewise.
6644 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6645 * config/arm/arm.md (epilogue): Likewise.
6646 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6647 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6648 variable to ret_reg.
6650 2011-05-03 Richard Guenther <rguenther@suse.de>
6653 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6654 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6655 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6657 2011-05-03 Richard Guenther <rguenther@suse.de>
6659 * c-decl.c (grokdeclarator): Instead of looking at
6660 TREE_OVERFLOW check if the constant fits in the index type.
6662 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6664 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6665 (vec_store_lanes<mode><mode>): Likewise.
6667 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6669 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6670 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6671 convert_optab_index values.
6672 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6673 * genopinit.c (optabs): Initialize the new optabs.
6674 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6675 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6676 (expand_STORE_LANES): New functions.
6677 * tree.h (build_array_type_nelts): Declare.
6678 * tree.c (build_array_type_nelts): New function.
6679 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6680 (vect_model_load_cost): Likewise.
6681 (vect_store_lanes_supported, vect_load_lanes_supported)
6682 (vect_record_strided_load_vectors): Declare.
6683 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6684 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6685 (vect_transform_strided_load): Split out statement recording into...
6686 (vect_record_strided_load_vectors): ...this new function.
6687 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6688 (write_vector_array, create_array_ref): New functions.
6689 (vect_model_store_cost): Add store_lanes_p argument.
6690 (vect_model_load_cost): Add load_lanes_p argument.
6691 (vectorizable_store): Try to use store-lanes functions for
6693 (vectorizable_load): Likewise load-lanes and loads.
6694 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6695 to vect_model_store_cost.
6696 (vect_build_slp_tree): Likewise vect_model_load_cost.
6698 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6700 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6701 * hooks.c (hook_bool_mode_uhwi_false): New function.
6702 * target.def (array_mode_supported_p): New hook.
6703 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6704 * doc/tm.texi: Regenerate.
6705 * stor-layout.c (mode_for_array): New function.
6706 (layout_type): Use it.
6707 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6708 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6710 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6713 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6714 for -fstack-check if the size to allocate is negative.
6716 2011-05-02 Lawrence Crowl <crowl@google.com>
6718 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6719 (timevar_cond_start): New for starting a timer only when it is not
6721 (timevar_cond_stop): New for stopping a timer when it was not already
6724 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6725 (timevar_cond_start): New as above.
6726 (timevar_cond_stop): New as above.
6728 * timevar.def: Add start/stop timers for compiler phases,
6729 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6730 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6731 and TV_PHASE_FINALIZE.
6732 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6733 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6734 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6735 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6736 Make unused TV_OVERLOAD into a start/stop timer.
6738 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6739 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6740 to indicate that they are start/stop timers.
6742 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6743 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6744 Move initialization to do_compile.
6745 (do_compile): Add initialization from above.
6746 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6748 * c-decl.c (c_write_global_declarations): Add start/stop of
6749 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6751 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6752 or TV_PARSE_INLINE, as appropriate.
6753 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6754 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6756 2011-05-02 Jason Merrill <jason@redhat.com>
6759 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6761 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6764 * c-decl.c (finish_decl): Only create a composite if the types are
6767 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6769 * config/fr30/fr30-protos.h (Mmode): Don't define.
6770 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6771 definition where used.
6772 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6773 define. Expand definitions where used.
6774 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6775 Expand definitions where used.
6776 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6777 rx_function_arg, rx_function_arg_advance,
6778 rx_function_arg_boundary): Expand definitions of those macros.
6779 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6780 definition where used.
6782 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6784 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6786 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6787 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6788 with *movv2sf_internal_rex64_avx.
6789 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6790 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6791 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6792 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6793 "vex" in "prefix" attribute calculation.
6794 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6796 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6799 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6800 inputs match the output.
6802 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6805 * config/m68k/m68k.c (m68k_expand_prologue): Set
6806 current_function_static_stack_size.
6808 2011-05-02 Jan Hubicka <jh@suse.cz>
6810 * lto-streamer.c (lto_streamer_cache_insert_1,
6811 lto_streamer_cache_lookup, lto_streamer_cache_create,
6812 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6813 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6815 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6817 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6818 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6819 config/m68k/t-opts: New files.
6820 * config/m68k/m68k-tables.opt: New file (generated).
6821 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6822 extra_options and m68k/t-opts to tmake_file.
6823 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6824 (all_isas): Initialize using m68k-isas.def.
6825 (all_microarchs): Initialize using m68k-microarchs.def.
6826 (m68k_find_selection): Remove.
6827 (m68k_handle_option): Don't assert that global structures are in
6828 use. Use error_at. Access variables via opts pointer. Don't
6829 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6830 directly for -m68020-40 and -m68020-60.
6831 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6832 m68k_tune_entry here.
6833 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6835 (m68k_library_id_string): Remove declaration.
6836 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6837 (m68k_library_id_string): New Variable.
6838 (march=, mcpu=, mtune=): Use Enum and Var.
6840 2011-05-02 Richard Guenther <rguenther@suse.de>
6842 * varasm.c (output_constructor_regular_field): Compute zero-based
6843 index with double-ints. Make sure to ICE instead of producing
6845 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6846 in asserts. Properly use a signed type.
6848 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6850 * config/i386/sse.md (V): New mode iterator.
6851 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6853 (V_256): Rename from AVX256MODE.
6854 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6855 condition to all users.
6857 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6858 condition to all users.
6859 (VF_128): Make V4SF mode unconditional.
6860 (VF_256): Rename from AVX256MODEF2P.
6861 (VI4F_128): Rename from SSEMODE4S.
6862 (VI8F_128): Rename from SSEMODE2D.
6863 (VI4F_256): Rename from AVX256MODE8P.
6864 (VI8F_256): Rename from AVX256MODE4P.
6865 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6866 (ssescalarmodesuffix): Remove SF and DF modes.
6867 (SSEMODE124): Remove.
6868 (SSEMODE1248): Ditto.
6869 (SSEMODEF2P): Ditto.
6870 (AVXMODEF2P): Ditto.
6871 (AVXMODEFDP): Ditto.
6872 (AVXMODEFSP): Ditto.
6873 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6875 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6877 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6878 xop_pcmov_<mode>256. Use V mode iterator.
6880 Adjust RTX patterns globally for renamed mode attributes.
6882 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6884 * haifa-sched.c (sched_emit_insn): Emit insn before first
6885 non-scheduled insn. Inform back-end about new insn. Add
6886 new insn to scheduled_insns list.
6888 2011-05-02 Richard Guenther <rguenther@suse.de>
6890 PR tree-optimization/48822
6891 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6892 (process_scc): Indicate which iteration we start.
6894 2011-05-02 Jan Hubicka <jh@suse.cz>
6896 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6897 (lto_section_overrun): New.
6898 * lto-section-out.c (append_block): Rename to ...
6899 (lto_append_block): ... this one; export.
6900 (lto_output_1_stream): Move lto lto-streamer.h
6901 (lto_output_data_stream): Update.
6902 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6903 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6906 2011-05-02 Richard Guenther <rguenther@suse.de>
6908 * tree.c (tree_code_counts): New global array.
6909 (record_node_allocation_statistics): Count individual tree codes.
6910 (dump_tree_statistics): Dump individual code stats.
6912 2011-05-01 Jan Hubicka <jh@suse.cz>
6914 * ipa-inline.c (caller_growth_limits): Fix thinko when
6915 looking for largest stack frame.
6916 * ipa-inline.h (dump_inline_summary): Declare.
6917 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6919 (dump_inline_summary): Export.
6920 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6922 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6924 * reginfo.c (memory_move_cost): Change rclass argument type form
6925 'enum reg_class' to reg_class_t.
6926 * reload.h (memory_move_cost): Update prototype.
6927 * postreload.c reload_cse_simplify_set): Change type dclass var to
6929 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6931 (ira_allocate_and_set_costs): Change aclass argument type form
6932 'enum reg_class' to reg_class_t.
6933 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6934 Change aclass argument type to reg_class_t.
6935 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6937 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6938 memory_move_cost call.
6940 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6941 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6942 Change type tmp var to reg_class_t.
6944 2011-04-30 Jan Hubicka <jh@suse.cz>
6946 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6947 inlining into function with flatten attribute.
6948 (want_inline_small_function_p): Be more realistic about inlining
6949 cold calls where callee size grows.
6951 2011-04-30 Jan Hubicka <jh@suse.cz>
6953 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6956 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6958 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6959 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6960 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6961 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6962 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6963 (print_operand): Rename to...
6964 (sparc_print_operand): ...this. Make static. Adjust
6965 sparc_print_operand function call.
6966 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6969 2011-04-30 Jan Hubicka <jh@suse.cz>
6972 * ipa-inline.c (early_inliner): Disable when doing late
6973 addition of function.
6975 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6977 * dwarf2out.c (get_address_mode): New inline.
6978 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6979 if not dwarf_strict emit
6980 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6981 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6982 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6983 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6984 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6985 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6986 mem_loc_descriptor callers.
6987 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6988 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6989 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6990 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6991 (base_types): New variable.
6992 (get_base_type_offset, calc_base_type_die_sizes,
6993 base_type_for_mode, mark_base_types, base_type_cmp,
6994 move_marked_base_types): New functions.
6995 (calc_die_sizes): Assert that die_offset is 0 or equal to
6997 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6998 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6999 callers. If not dwarf_strict, call mem_loc_descriptor even for
7000 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7001 (gen_subprogram_die): Don't give up on call site parameters
7002 with non-integral or large integral modes. Adjust
7003 mem_loc_descriptor callers.
7004 (prune_unused_types): Call prune_unused_types_mark on base_types
7006 (resolve_addr): Call mark_base_types.
7007 (dwarf2out_finish): Call move_marked_base_types.
7009 PR tree-optimization/48809
7010 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7012 (gen_inbound_check): Don't compute index_expr - range_min in utype
7013 again, instead reuse SSA_NAME initialized in build_arrays.
7014 Remove two useless gsi_for_stmt calls.
7016 2011-04-29 Jeff Law <law@redhat.com>
7018 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7020 2011-04-29 Martin Jambor <mjambor@suse.cz>
7022 * cgraph.h (cgraph_postorder): Remove declaration.
7023 * ipa-utils.h (ipa_free_postorder_info): Declare.
7024 (ipa_reverse_postorder): Likewise.
7025 * cgraphunit.c: Include ipa-utils.h.
7026 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7027 * ipa-inline.c: Include ipa-utils.h.
7028 (ipa_inline): Update call to ipa_reverse_postorder.
7029 * ipa-pure-const.c (propagate_pure_const): Update call to
7030 ipa_reduced_postorder and ipa_print_order. Call
7031 ipa_free_postorder_info to clean up.
7032 (propagate_nothrow): Likewise.
7033 * ipa-reference.c (propagate): Removed a useless call to
7034 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7035 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7036 * ipa.c: Include ipa-utils.h.
7037 (ipa_profile): Update call to ipa_reverse_postorder.
7038 (cgraph_postorder): Moved to...
7039 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7040 (ipa_utils_print_order): Renamed to ipa_print_order.
7041 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7043 (ipa_free_postorder_info): New function.
7044 * passes.c: Include ipa-utils.h.
7045 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7046 (ipa_write_summaries): Likewise.
7047 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7048 (cgraphunit.o): Likewise.
7050 (ipa-inline.o): Likewise.
7052 2011-04-29 Jan Hubicka <jh@suse.cz>
7054 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7055 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7056 * ipa-inline.h (clause_t): Turn into unsigned int.
7057 * ipa-inline-analysis.c (add_clause): Do more simplification.
7058 (and_predicates): Shortcut more cases.
7059 (predicates_equal_p): Move forward; check that clauses are properly
7061 (or_predicates): Shortcut more cases.
7062 (edge_execution_predicate): Rewrite as...
7063 (set_cond_stmt_execution_predicate): ... this function; handle
7064 __builtin_constant_p.
7065 (set_switch_stmt_execution_predicate): New .
7066 (compute_bb_predicates): New.
7067 (will_be_nonconstant_predicate): Update TODO.
7068 (estimate_function_body_sizes): Use compute_bb_predicates
7069 and free them later, always try to estimate if stmt is constant.
7070 (estimate_time_after_inlining, estimate_size_after_inlining):
7071 Gracefully handle optimized out edges.
7072 (read_predicate): Fix off by one error.
7074 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7076 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7078 2011-04-27 Xinliang David Li <davidxl@google.com>
7080 * tree-profile.c (init_ic_make_global_vars): Set
7081 tls attribute on ic vars.
7082 * coverage.c (coverage_end_function): Initialize
7083 function_list with zero.
7085 2011-04-29 Richard Guenther <rguenther@suse.de>
7087 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7088 for the type of the result.
7089 (fold_builtin_isascii): Likewise.
7090 (fold_builtin_toascii): Use integer_type_node where appropriate.
7091 (fold_builtin_logb): Likewise.
7092 (fold_builtin_frexp): Likewise.
7093 (fold_builtin_strstr): Likewise.
7094 (fold_builtin_strpbrk): Likewise.
7095 (fold_builtin_fputs): Likewise.
7096 (fold_builtin_sprintf): Likewise.
7097 (fold_builtin_snprintf): Likewise.
7098 (fold_builtin_printf): Likewise.
7099 (do_mpfr_remquo): Use a proper type for the assigned constant.
7100 (do_mpfr_lgamma_r): Likewise.
7101 * dwarf2out.c (resolve_one_addr): Use size_int.
7102 * except.c (init_eh): Likewise.
7103 (assign_filter_values): Use integer_type_node for filter values.
7104 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7106 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7107 for EH region numbers.
7108 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7109 for the shift amount.
7111 2011-04-29 Richard Guenther <rguenther@suse.de>
7113 * expr.h (expand_shift): Rename to ...
7114 (expand_variable_shift): ... this.
7115 (expand_shift): Take a constant shift amount.
7116 * expmed.c (expand_shift): Rename to ...
7117 (expand_variable_shift): ... this.
7118 (expand_shift): New wrapper around expand_variable_shift.
7119 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7120 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7121 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7122 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7123 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7124 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7125 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7126 emit_store_flag_1, emit_store_flag): Likewise.
7127 * builtins.c (expand_builtin_signbit): Likewise.
7128 * calls.c (load_register_parameters): Likewise.
7129 * function.c (assign_parm_setup_block): Likewise.
7130 * lower-subreg.c (resolve_shift_zext): Likewise.
7131 * optabs.c (widen_bswap, expand_abs_nojump,
7132 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7133 * spu/spu.c (spu_expand_extv): Likewise.
7134 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7136 2011-04-29 Richard Guenther <rguenther@suse.de>
7138 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7139 for the remapped region number.
7140 * predict.c (build_predict_expr): Use integer_type_node for the
7142 * fold-const.c (fold_binary_loc): Use integer_type_node for
7143 the shift amount. Use a proper type for the PLUS_EXPR operand.
7145 2011-04-29 Michael Matz <matz@suse.de>
7147 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7148 other trees that just builtins.
7149 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7151 2011-04-29 Richard Guenther <rguenther@suse.de>
7153 * tree-nested.c (get_trampoline_type): Use size_int.
7154 (get_nl_goto_field): Likewise.
7155 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7157 (lower_eh_constructs_2): Likewise.
7158 (lower_resx): Likewise.
7159 (lower_eh_dispatch): Likewise.
7160 * tree-mudflap.c (mf_build_string): Use size_int.
7161 (mudflap_register_call): Use integer_type_node for the flag.
7162 (mudflap_enqueue_constant): Use size_int.
7163 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7164 instead of rebuilding it.
7166 2011-04-29 Richard Guenther <rguenther@suse.de>
7168 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7169 Handle OBJ_TYPE_REF.
7170 (find_func_aliases_for_call): Use it more consistently.
7172 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7174 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7175 (rank_for_schedule): Use it.
7176 (schedule_block): Set it.
7178 2011-04-28 David Li <davidxl@google.com>
7180 * tree.c (crc32_string): Use crc32_byte.
7181 (crc32_byte): New function.
7182 * tree.h (crc32_byte): New function.
7183 * gcov.c (read_graph_file): Handle new cfg_cksum.
7184 (read_count_file): Ditto.
7185 * profile.c (instrument_values): Ditto.
7186 (get_exec_counts): Ditto.
7187 (read_profile_edge_counts): Ditto.
7188 (compute_branch_probabilities): Ditto.
7189 (compute_value_histograms): Ditto.
7190 (branch_prob): Ditto.
7191 (end_branch_prob): Ditto.
7192 * coverage.c (read_counts_file): Ditto.
7193 (get_coverage_counts): Ditto.
7194 (tree_coverage_counter_addr): Ditto.
7195 (coverage_checksum_string): Ditto.
7196 (coverage_begin_output): Ditto.
7197 (coverage_end_function): Ditto.
7198 (build_fn_info_type): Ditto.
7199 (build_fn_info_value): Ditto.
7200 * libgcov.c (gcov_exit): Ditto.
7201 * gcov-dump.c (tag_function): Ditto.
7202 (compute_checksum): Remove.
7204 2011-04-29 Alan Modra <amodra@gmail.com>
7206 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7207 unspec plus offset. Tidy macho code.
7209 2011-04-29 Martin Jambor <mjambor@suse.cz>
7211 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7212 node instead of a decl. Update all callers.
7213 * cgraph.h: Update declaration.
7215 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7217 PR tree-optimization/48765
7218 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7219 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7220 to indicate if loop aware SLP is being used. Scan the statements
7221 and update the vectorization factor according to the type of
7222 vectorization before statement analysis.
7223 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7224 pass it to vect_analyze_loop_operations.
7225 (vectorizable_reduction): Set number of copies to 1 in case of pure
7227 * tree-vect-stmts.c (vectorizable_conversion,
7228 vectorizable_assignment, vectorizable_shift,
7229 vectorizable_operation, vectorizable_type_demotion,
7230 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7232 (vectorizable_condition): Move the check that it is not SLP
7233 vectorization before the number of copies check.
7234 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7235 to vectorize the loop using SLP.
7237 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7240 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7243 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7245 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7246 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7247 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7248 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7249 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7251 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7252 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7253 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7254 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7255 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7256 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7258 * config/i386/linux.h (REG_NAME): Don't define.
7259 * config/i386/linux64.h (REG_NAME): Don't define.
7260 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7261 Undefine before defining.
7263 2011-04-28 Jan Hubicka <jh@suse.cz>
7265 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7266 nonconstant_names array.
7267 (estimate_function_body_sizes): Build nonconstant_names array; handle
7268 BUILT_IN_CONSTANT_P.
7270 2011-04-28 Richard Guenther <rguenther@suse.de>
7274 2011-04-28 Richard Guenther <rguenther@suse.de>
7276 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7277 as late as possible.
7279 2011-04-28 Richard Guenther <rguenther@suse.de>
7281 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7282 (debug_constraint): Do it here.
7283 (dump_constraints): And here.
7284 (rewrite_constraints): And here.
7285 (dump_constraint_edge): Remove.
7286 (dump_constraint_graph): Rewrite to produce DOT output.
7287 (solve_constraints): Build succ graph as late as possible.
7288 Dump constraint graphs before and after solving.
7290 2011-04-28 Richard Guenther <rguenther@suse.de>
7292 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7293 New function split out from ...
7294 (find_func_aliases): ... here. Call it.
7295 (find_func_aliases_for_call): Likewise.
7297 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7299 * internal-fn.h (internal_fn_name_array): Declare.
7300 (internal_fn_flags_array): Likewise.
7302 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7304 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7305 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7307 (ssemodefsuffix): Remove.
7308 (ssevecmodesuffix): New mode attribute.
7309 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7310 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7311 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7312 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7313 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7314 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7315 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7316 ssemodesuffix mode attribute.
7317 (float splitters): Use ssevecmodesuffix mode attribute.
7318 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7319 (sseinsmode): Rename from avxvecmode.
7320 (avxsizesuffix): Rename from avxmodesuffix.
7321 (sseintvecmode): Rename from avxpermvecmode.
7322 (ssedoublevecmode): Rename from ssedoublesizemode.
7323 (ssehalfvecmode): Rename from avxhalfvecmode.
7324 (ssescalarmode): Rename from avxscalarmode.
7325 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7326 templates for ssemodesuffix mode attribute.
7327 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7330 Adjust RTX patterns globally for renamed mode attributes.
7332 2011-04-27 Jan Hubcika <jh@suse.cz>
7334 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7335 * ipa-inline-analysis.c: Include alloc-pool.h.
7336 (edge_predicate_pool): New.
7337 (trye_predicate_p): New function
7338 (false_predicate_p): New function.
7339 (add_clause): Sanity check that false clauses are "optimized";
7340 never add clauses to predicate that is already known to be false.
7341 (and_predicate): Use flase_predicate_p.
7342 (evaulate_predicate): Rename to ...
7343 (evaluate_predicate): ... this one; update all callers; assert
7344 that false is not listed among possible truths.
7345 (dump_predicate): Use true_predicate_p.
7346 (account_size_time): Use false_predicate_p.
7347 (evaulate_conditions_for_edge): Rename to ...
7348 (evaluate_conditions_for_edge) ... this one.
7349 (edge_set_predicate): New function.
7350 (inline_edge_duplication_hook): Duplicate edge predicates.
7351 (inline_edge_removal_hook): Free edge predicates.
7352 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7353 (dump_inline_summary): Update.
7354 (estimate_function_body_sizes): Set edge predicates.
7355 (estimate_calls_size_and_time): Handle predicates.
7356 (estimate_callee_size_and_time): Update.
7357 (remap_predicate): Add toplev_predicate; update comment.
7358 (remap_edge_predicates): New function.
7359 (inline_merge_summary): Compute toplev predicate; update.
7360 (read_predicate): New function.
7361 (read_inline_edge_summary): Use it.
7362 (inline_read_section): Likewise.
7363 (write_predicate): New function.
7364 (write_inline_edge_summary): Use it.
7365 (inline_write_summary): Likewise.
7366 (inline_free_summary): Free alloc pool and edge summary vec.
7368 2011-04-27 Richard Guenther <rguenther@suse.de>
7370 * tree-ssa-structalias.c (changed_count): Remove.
7371 (changed): Use a bitmap.
7372 (unify_nodes): Adjust.
7373 (do_sd_constraint): Likewise.
7374 (do_ds_constraint): Likewise.
7375 (do_complex_constraint): Likewise.
7376 (solve_graph): Likewise.
7378 2011-04-27 Jan Hubicka <jh@suse.cz>
7380 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7382 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7384 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7385 (avx_vperm2f128_*_operand): Ditto.
7386 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7387 Use avx_vpermilp_parallel in insn condition.
7388 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7389 Use avx_vperm2f128_parallel in insn condition.
7391 2011-04-27 Richard Guenther <rguenther@suse.de>
7393 * Makefile.in (tree-ssa-structalias.o): Remove
7394 gt-tree-ssa-structalias.h dependency.
7395 (GTFILES): Remove tree-ssa-structalias.c.
7396 * tree.c (allocate_decl_uid): New function.
7397 (make_node_stat): Use it.
7398 (copy_node_stat): Likewise.
7399 * tree.h (allocate_decl_uid): Declare.
7400 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7401 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7402 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7403 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7404 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7405 (struct heapvar_map): Likewise.
7406 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7407 heapvar_insert): Likewise.
7408 (make_heapvar_for): Rename to ...
7409 (make_heapvar): ... this. Simplify.
7410 (fake_var_decl_obstack): New global var.
7411 (build_fake_var_decl): New function.
7412 (make_constraint_from_heapvar): Adjust.
7413 (handle_lhs_call): Likewise.
7414 (create_function_info_for): Likewise.
7415 (intra_create_variable_infos): Likewise.
7416 (init_alias_vars): Allocate fake_var_decl_obstack.
7417 (init_alias_heapvars, delete_alias_heapvars): Remove.
7418 (compute_points_to_sets): Do not call init_alias_heapvars.
7419 (ipa_pta_execute): Likewise.
7420 (delete_points_to_sets): Free fake_var_decl_obstack.
7422 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7424 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7425 (si_from_UTItype, si_to_UTItype): New functions.
7426 (__udivmodti4): Use them to implement type-punning.
7427 * config/spu/multi3.c (union qword_TItype): New data type.
7428 (si_from_TItype, si_to_TItype): New functions.
7429 (__multi3): Use them to implement type-punning.
7431 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7433 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7435 2011-04-27 Jan Hubicka <jh@suse.cz>
7437 * ipa-prop.c (function_insertion_hook_holder): New holder.
7438 (ipa_add_new_function): New function.
7439 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7440 Register/deregister holder.
7442 2011-04-27 Richard Guenther <rguenther@suse.de>
7444 PR tree-optimization/48772
7445 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7447 2011-04-27 Richard Guenther <rguenther@suse.de>
7449 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7450 TARGET_MEM_REF handling.
7452 2011-04-27 Nick Clifton <nickc@redhat.com>
7454 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7455 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7456 (REG_CLASS_NAMES): Likewise.
7457 (REG_CLASS_CONTENTS): Likewise.
7458 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7459 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7460 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7461 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7462 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7463 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7464 duplicate register classes.
7465 (frv_class_likely_spilled_p): Likewise.
7466 (frv_register_move_cost): Likewise.
7468 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7469 end of the regno_reg_class array.
7471 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7474 * c-typeck.c (build_binary_op): Don't wrap arguments if
7475 int_operands is true.
7477 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7480 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7481 targetm.calls.must_pass_in_stack for void type.
7483 2011-04-26 Jan Hubicka <jh@suse.cz>
7485 * cgraphbuild.c (build_cgraph_edges): Update call
7486 of cgraph_create_edge and cgraph_create_indirect_edge.
7487 * cgraph.c (cgraph_create_edge_including_clones,
7488 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7489 cgraph_update_edges_for_call_stmt_node): Do not take nest
7490 argument; do not initialize call_stmt_size/time.
7491 (dump_cgraph_node): Do not dump nest.
7492 (cgraph_clone_edge): Do not take loop_nest argument;
7493 do not propagate it; do not clone call_stmt_size/time.
7494 (cgraph_clone_node): Likewise.
7495 (cgraph_create_virtual_clone): Update.
7496 * cgraph.h (struct cgraph_edge): Remove
7497 call_stmt_size/call_stmt_time/loop_nest.
7498 (cgraph_create_edge, cgraph_create_indirect_edge,
7499 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7501 * tree-emutls.c (gen_emutls_addr): Update.
7502 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7503 loop_nest; handle indirect calls, too.
7504 (clone_inlined_nodes): Do not care about updating inline summaries.
7505 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7506 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7507 stream call_stmt_size/call_stmt_time/loop_nest.
7508 * ipa-inline.c (edge_badness): Update.
7509 (ipa_inline): dump summaries after inlining.
7510 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7512 (inline_edge_summary): New function.
7513 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7514 (inline_edge_removal_hook): Handle edge summaries.
7515 (inline_edge_duplication_hook): New hook.
7516 (inline_summary_alloc): Alloc hooks.
7517 (initialize_growth_caches): Do not register removal hooks.
7518 (free_growth_caches); Do not free removal hook.
7519 (dump_inline_edge_summary): New function.
7520 (dump_inline_summary): Use it.
7521 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7522 (inline_update_callee_summaries): New function.
7523 (inline_merge_summary): Use it.
7524 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7525 (read_inline_edge_summary): New function.
7526 (inline_read_section): Use it.
7527 (write_inline_edge_summary): New function.
7528 (inline_write_summary): Use it.
7529 (inline_free_summary): Free edge new holders.
7530 * tree-inline.c (copy_bb): Update.
7532 2011-04-26 Jason Merrill <jason@redhat.com>
7534 * tree-eh.c (lower_try_finally_switch): Create the label along with
7535 the CASE_LABEL_EXPR.
7537 2011-04-26 David S. Miller <davem@davemloft.net>
7538 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7540 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7541 * configure: Regenerate.
7543 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7546 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7548 (VEC_reduc): New code iterator and splitters for vector reduction.
7549 (VEC_reduc_name): Ditto.
7550 (VEC_reduc_rtx): Ditto.
7551 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7552 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7554 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7555 support for extracting SF on VSX.
7557 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7558 generating xscvspdp.
7559 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7560 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7561 double add, minimum, maximum vector reduction.
7562 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7563 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7564 optimize double vector reduction.
7565 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7567 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7569 * config/fr30/fr30.h (inhibit_libc): Don't define.
7570 * config/m32r/m32r-protos.h: Correct comment.
7571 * config/v850/v850.h (GHS_default_section_names,
7572 GHS_current_section_names): Use tree, not union tree_node *.
7574 2011-04-26 Xinliang David Li <davidxl@google.com>
7576 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7577 * c-family/c-opts.c (c_common_handle_option): Set
7578 warn_maybe_uninitialized.
7579 * opts.c (common_handle_option): Ditto.
7580 * common.opt: New option.
7581 * tree-ssa.c (warn_uninit): Add one more parameter.
7582 (warn_uninitialized_var): Pass warning code.
7583 * tree-flow.h: Interface change.
7585 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7587 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7588 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7589 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7591 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7593 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7594 * config/mips/mips.opt (mmips-tfile): Remove.
7596 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7597 mips-tdump reference to ...
7598 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7599 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7600 reference by Tru64 UNIX.
7602 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7605 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7606 is error_mark_node, set value to NULL.
7608 PR tree-optimization/48734
7609 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7610 if return value from maybe_fold_*_comparsions isn't something
7611 the code is prepared to handle.
7613 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7615 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7617 (ext_QIreg_nomode_operands): Remove.
7618 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7622 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7624 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7626 2011-04-26 Richard Guenther <rguenther@suse.de>
7628 * c-typeck.c (build_unary_op): Do not expand array-refs via
7629 pointer arithmetic. Only adjust qualifiers for function types.
7631 2011-04-26 Richard Guenther <rguenther@suse.de>
7634 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7635 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7636 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7637 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7639 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7641 * doc/extend.texi: Document __underlying_type.
7643 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7645 * config/rs6000/titan.md (automata_option "progress"): Remove.
7647 2011-04-25 Jeff Law <law@redhat.com>
7649 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7651 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7653 * system.h (ENUM_BITFIELD): Remove.
7655 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7656 Eric Botcazou <ebotcazou@adacore.com>
7658 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7659 for STORE_FLAG_VALUE==-1 case.
7661 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7664 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7665 LEGITIMATE_PIC_OPERAND_P.
7667 2011-04-24 Jan Hubicka <jh@suse.cz>
7669 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7671 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7672 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7673 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7674 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7675 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7676 Sanity check predicate length.
7677 (remap_predicate): Likewise; sanity check jump functions.
7678 (inline_read_section, inline_write_summary): Sanity check
7681 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7684 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7685 __is_literal_type, and __is_trivial; update throughout about
7686 possibly cv-qualified void types.
7688 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7690 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7691 testsuite and make it version agnostic.
7693 2011-04-22 Jan Hubicka <jh@suse.cz>
7695 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7697 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7700 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7701 to VOID_TYPE even around MODIFY_EXPR.
7703 2011-04-22 Mike Stump <mikestump@comcast.net>
7705 * gensupport.c (read_md_rtx): Fix typo in comment.
7706 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7709 2011-04-22 Jan Hubicka <jh@suse.cz>
7711 * gengtype.c (open_base_files): Add ipa-inline.h include.
7712 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7713 ipa-prop.c; update all uses.
7714 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7715 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7716 merge summary of inlined function into former caller.
7717 * ipa-inline.c (max_benefit): Remove.
7718 (edge_badness): Compensate for removal of benefits.
7719 (update_caller_keys): Use
7720 reset_node_growth_cache/reset_edge_growth_cache.
7721 (update_callee_keys): Likewise.
7722 (update_all_callee_keys): Likewise.
7723 (inline_small_functions): Do not collect max_benefit; do not reset
7724 estimated_growth; call free_growth_caches and initialize_growth_caches.
7725 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7726 struct size_time_entry): New structures.
7727 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7728 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7729 and estimated_growth.
7730 (edge_growth_cache_entry): New structure.
7731 (node_growth_cache, edge_growth_cache): New global vars.
7732 (estimate_growth): Turn into inline.
7733 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7734 initialize_growth_caches, free_growth_caches): Declare.
7735 (estimate_edge_growth): Rewrite.
7736 (estimate_edge_time): Implement as inline cache lookup.
7737 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7739 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7740 (NUM_CONDITIONS): New constant.
7741 (predicate_conditions): New enum.
7742 (IS_NOT_CONSTANT): New constant.
7743 (edge_removal_hook_holder): New var.
7744 (node_growth_cache, edge_growth_cache): New global vars.
7745 (true_predicate, single_cond_predicate, false_predicate,
7746 not_inlined_predicate, add_condition, add_clause, and_predicates,
7747 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7748 dump_clause, dump_predicate, account_size_time,
7749 evaulate_conditions_for_edge): New functions.
7750 (inline_summary_alloc): Move to heap.
7751 (inline_node_removal_hook): Clear condition and entry vectors.
7752 (inline_edge_removal_hook): New function.
7753 (initialize_growth_caches, free_growth_caches): New function.
7754 (dump_inline_summary): Update.
7755 (edge_execution_predicate): New function.
7756 (will_be_nonconstant_predicate): New function.
7757 (estimate_function_body_sizes): Compute BB and constantness predicates.
7758 (compute_inline_parameters): Do not clear estimated_growth.
7759 (estimate_edge_size_and_time): New function.
7760 (estimate_calls_size_and_time): New function.
7761 (estimate_callee_size_and_time): New function.
7762 (remap_predicate): New function.
7763 (inline_merge_summary): New function.
7764 (do_estimate_edge_time): New function based on...
7765 (estimate_edge_time): ... this one.
7766 (do_estimate_edge_growth): New function.
7767 (do_estimate_growth): New function based on....
7768 (estimate_growth): ... this one.
7769 (inline_analyze_function): Analyze after deciding on jump functions.
7770 (inline_read_section): New function.
7771 (inline_read_summary): Use it.
7772 (inline_write_summary): Write all the new data.
7773 * ipa-prop.c (ipa_get_param_decl_index): Export.
7774 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7775 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7777 (ipa_get_lattice): Move here from ipa-cp.c
7778 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7779 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7780 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7781 cgraph_edge_inlinable_p): Remove.
7782 * cgraphunit.c: Include ipainline.h
7783 (cgraph_process_new_functions): Update call of
7784 compute_inline_parameters.
7786 2011-04-22 Richard Guenther <rguenther@suse.de>
7788 * tree.c (build_int_cst): Properly create canonicalized integer
7790 (build_int_cst_type): Remove scary comments.
7792 2011-04-22 Xinliang David Li <davidxl@google.com>
7794 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7795 by default when -Wno-error is not specified.
7796 * opts-global.c (decode_options): Remove call to
7797 control_warning_options.
7799 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7801 PR tree-optimization/48717
7802 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7803 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7805 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7807 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7808 definition where used.
7810 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7813 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7814 TREE_STATIC variables declared inside of some OpenMP construct.
7816 2011-04-22 Martin Jambor <mjambor@suse.cz>
7819 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7821 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7824 * c-typeck.c (pop_init_level): Do not warn about initializing
7827 2011-04-22 Alan Modra <amodra@gmail.com>
7829 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7830 when returning call_cookie.
7831 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7832 pointers, to functions with no more vector args than the current
7833 function, and some non-local calls for ABI_V4.
7834 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7835 sibcall_nonlocal_aix64): Combine to ..
7836 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7837 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7838 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7839 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7840 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7842 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7843 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7844 sibcall_value_symbolic_64): Delete.
7846 2011-04-21 Xinliang David Li <davidxl@google.com>
7848 * cgraph.h: Remove pid.
7849 * cgraph.c: Remove pid.
7850 * value-prof.c (init_node_map): New function.
7851 (del_node_map): New function.
7852 (find_func_by_funcdef_no): New function.
7853 (gimple_ic_transform): Call new function.
7854 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7855 * function.c (get_last_funcdef_no): New function.
7856 * function.h (get_last_funcdef_no): New function.
7857 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7858 to libgcov function.
7859 (tree-profiling): Call node map init and delete function.
7861 2011-04-21 Ian Lance Taylor <iant@google.com>
7863 * godump.c (go_format_type): Use exported Go name for anonymous
7866 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7868 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7869 Call builtin_function_type_list instead of builtin_function_type.
7870 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7872 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7874 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7875 build_function_type_list instead of build_function_type.
7876 Delete variable `endlink'.
7878 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7880 * config/s390/s390.c (s390_init_builtins): Call
7881 build_function_type_list instead of build_function_type.
7883 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7885 * config/ia64/ia64.c (ia64_init_builtins): Call
7886 build_function_type_list instead of builtin_function_type.
7888 2011-04-21 Easwaran Raman <eraman@google.com>
7890 * cfgexpand.c (stack_var): Remove OFFSET...
7891 (add_stack_var): ...and its reference here...
7892 (expand_stack_vars): ...and here.
7893 (stack_var_cmp): Sort by descending order of size.
7894 (partition_stack_vars): Change heuristic.
7895 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7896 (dump_stack_var_partition): Add newline after each partition.
7898 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7899 Jeff Law <law@redhat.com>
7901 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7902 * gengtype.c (matching_file_name_substitute): Likewise.
7904 2011-04-21 Richard Guenther <rguenther@suse.de>
7907 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7909 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7911 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7913 2011-04-21 Richard Guenther <rguenther@suse.de>
7915 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7918 2011-04-21 Richard Guenther <rguenther@suse.de>
7920 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7921 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7922 Use DECL_P, not SSA_VAR_P.
7923 (ptr_derefs_may_alias_p): Likewise.
7924 (ptr_deref_may_alias_ref_p_1): Likewise.
7925 (decl_refs_may_alias_p): Likewise.
7926 (refs_may_alias_p_1): Likewise.
7927 (ref_maybe_used_by_call_p_1): Likewise.
7928 (call_may_clobber_ref_p_1): Likewise.
7929 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7930 are either MEM_REF or TARGET_MEM_REF.
7931 (indirect_refs_may_alias_p): Likewise.
7932 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7933 for MEM_EXPR of indirect calls.
7935 2011-04-21 Tristan Gingold <gingold@adacore.com>
7937 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7938 (dst_file_info_struct): Remove flen field.
7939 (lookup_filename): Remove code that set flen field.
7941 2011-04-21 Tristan Gingold <gingold@adacore.com>
7943 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7945 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7948 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7949 vec_extract and vec_concat for non-SSE4_1 targets.
7951 2011-04-21 Richard Guenther <rguenther@suse.de>
7953 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7956 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7958 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7960 (FILE): Don't undefine.
7962 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7964 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7966 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7968 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7969 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7970 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7972 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7973 definitions where used.
7974 * config/microblaze/microblaze.h (struct microblaze_args): Use
7975 rtx, not struct rtx_def *.
7976 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7978 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7979 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7980 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7981 not struct rtx_def *.
7982 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7984 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7986 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7988 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7990 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7991 operand_equal_p to compare DR_BASE_ADDRESSes.
7992 (vect_check_interleaving): Likewise.
7994 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7997 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7998 for all Neon struct constants.
8000 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8002 * target.def (legitimate_constant_p): New hook.
8003 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8004 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8005 * doc/tm.texi: Regenerate.
8006 * hooks.h (hook_bool_mode_rtx_true): Declare.
8007 * hooks.c (hook_bool_mode_rtx_true): Define.
8008 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8009 * calls.c (precompute_register_parameters): Replace uses of
8010 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8011 (emit_library_call_value_1): Likewise.
8012 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8013 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8014 * ira-costs.c (scan_one_insn): Likewise.
8015 * recog.c (general_operand, immediate_operand): Likewise.
8016 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8017 * reload1.c (init_eliminable_invariants): Likewise.
8019 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8021 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8022 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8024 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8025 * config/alpha/predicates.md (input_operand): Update call to
8026 alpha_legitimate_constant_p.
8028 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8029 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8030 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8031 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8032 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8033 (arm_legitimate_constant_p): New functions.
8034 (arm_cannot_force_const_mem): Make static.
8036 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8038 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8039 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8040 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8041 instead of bfin_legitimate_constant_p.
8042 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8043 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8045 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8047 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8049 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8050 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8051 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8052 (frv_legitimate_constant_p): Make static. Add a mode argument.
8054 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8055 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8056 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8058 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8059 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8060 * config/i386/i386.c (legitimate_constant_p): Rename to...
8061 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8063 (ix86_cannot_force_const_mem): Update accordingly.
8064 (ix86_legitimate_address_p): Likewise.
8065 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8066 * config/i386/i386.md: Update commentary.
8068 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8069 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8070 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8071 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8073 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8075 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8076 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8077 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8078 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8080 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8081 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8082 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8084 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8085 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8086 (m32r_legitimate_constant_p): New function.
8088 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8089 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8090 LEGITIMATE_CONSTANT_P.
8091 (LEGITIMATE_CONSTANT_P): Delete.
8092 * config/m68k/m68k.c (m68k_expand_prologue): Call
8093 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8094 (m68k_legitimate_constant_p): New function.
8095 * config/m68k/m68k.md: Update comments.
8097 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8098 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8099 (mcore_legitimate_constant_p): New function.
8101 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8102 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8103 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8104 Add a mode argument.
8105 (mep_legitimate_address): Update accordingly.
8106 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8108 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8110 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8111 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8112 static. Check OP's mode for VOIDmode.
8113 (microblaze_legitimate_constant_p): New function.
8114 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8116 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8117 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8118 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8119 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8120 * config/mips/predicates.md: Update comments.
8122 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8123 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8124 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8125 (mmix_legitimate_constant_p): Make static, return a bool, and take
8127 (mmix_print_operand_address): Update accordingly.
8129 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8131 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8132 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8133 static. Add a mode argument.
8134 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8136 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8138 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8139 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8140 (pa_legitimate_constant_p): New function.
8142 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8144 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8145 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8146 (pdp11_legitimate_constant_p): New function.
8148 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8149 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8150 (rs6000_legitimate_constant_p): New function.
8152 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8153 (rx_legitimate_constant_p): ...this.
8154 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8155 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8156 (rx_legitimate_constant_p): ...this.
8157 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8158 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8160 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8161 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8162 * config/s390/s390.c (legitimate_constant_p): Rename to...
8163 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8164 and add a mode argument.
8165 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8167 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8169 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8170 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8171 (sh_legitimate_constant_p): New function.
8173 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8174 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8175 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8176 (legitimate_constant_p): Rename to...
8177 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8179 (constant_address_p): Update accordingly.
8181 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8182 argument and return a bool.
8183 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8184 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8185 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8186 (spu_rtx_costs): Update accordingly.
8187 * config/spu/predicates.md (vec_imm_operand): Likewise.
8189 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8191 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8192 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8193 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8195 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8196 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8197 * config/vax/vax.c (legitimate_constant_p): Likewise.
8199 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8200 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8201 (xtensa_legitimate_constant_p): New function.
8203 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8205 * target.def (cannot_force_const_mem): Add a mode argument.
8206 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8207 * doc/tm.texi: Regenerate.
8208 * hooks.h (hook_bool_mode_rtx_false): Declare.
8209 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8210 (hook_bool_mode_const_rtx_true): Likewise.
8211 (hook_bool_mode_rtx_false): New function.
8212 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8213 to be non-VOID. Update call to cannot_force_const_mem.
8214 (find_reloads): Update accordingly.
8215 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8216 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8218 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8219 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8220 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8221 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8222 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8223 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8224 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8225 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8226 (m68k_cannot_force_const_mem): ...this new function.
8227 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8229 (mips_const_insns, mips_legitimize_const_move): Update calls.
8230 (mips_secondary_reload_class): Likewise.
8231 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8232 (pa_cannot_force_const_mem): ...this new function.
8233 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8234 (rs6000_cannot_force_const_mem): ...this new function.
8235 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8237 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8238 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8240 (xtensa_cannot_force_const_mem): ...this new function.
8242 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8244 * config/mips/mips.c (mips16_build_function_stub): Call
8245 build_function_type_list instead of build_function_type.
8246 (mips16_build_call_stub): Likewise.
8248 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8250 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8251 instead of build_function_type.
8253 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8255 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8256 instead of build_function_type.
8258 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8261 * config/i386/i386.md (insv): Change operand 0 constraint to
8262 "register_operand". Change operand 1 and 2 constraint to
8263 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8264 * config/i386/sse.md (sse4_1_pinsrb): Export.
8265 (sse2_pinsrw): Ditto.
8266 (sse4_1_pinsrd): Ditto.
8267 (sse4_1_pinsrq): Ditto.
8268 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8269 * config/i386/i386.c (ix86_expand_pinsr): New.
8271 2011-04-20 Easwaran Raman <eraman@google.com>
8273 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8274 containing union type only with -fstrict-aliasing.
8276 2011-04-20 Jim Meyering <meyering@redhat.com>
8278 Remove useless if-before-free tests.
8279 * calls.c (expand_call, save_area): Likewise.
8280 * cfgcleanup.c (try_forward_edges): Likewise.
8281 * collect2.c (collect_execute): Likewise.
8282 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8283 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8284 * coverage.c (coverage_checksum_string): Likewise.
8285 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8286 * cselib.c (cselib_init): Likewise.
8287 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8288 (df_set_clean_cfg): Likewise.
8289 * function.c (free_after_compilation): Likewise.
8290 * gcc.c (do_spec_1, main): Likewise.
8291 * gcov.c (create_file_names): Likewise.
8292 * gensupport.c (identify_predicable_attribute): Likewise.
8293 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8294 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8295 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8296 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8297 * ipa-pure-const.c (local_pure_const): Likewise.
8298 * ipa-reference.c (propagate): Likewise.
8299 * ira-costs.c (free_ira_costs): Likewise.
8300 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8301 * matrix-reorg.c (mat_free): Likewise.
8302 * prefix.c (get_key_value): Likewise.
8303 * profile.c (compute_value_histograms): Likewise.
8304 * reload1.c (free_reg_equiv): Likewise.
8305 * sched-deps.c (free_deps): Likewise.
8306 * sel-sched-ir.c (fence_clear): Likewise.
8307 * sese.c (set_rename, if_region_set_false_region): Likewise.
8308 * tree-data-ref.c (free_rdg): Likewise.
8309 * tree-eh.c (lower_try_finally): Likewise.
8310 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8311 * tree-ssa-live.c (delete_var_map): Likewise.
8312 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8313 * tree-ssa-pre.c (phi_trans_add): Likewise.
8315 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8317 PR tree-optimization/48611
8318 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8319 beyond ERT_MUST_NOT_THROW region.
8321 2011-04-20 Catherine Moore <clm@codesourcery.com>
8323 * config/mips/mips.opt (mfix-24k): New.
8324 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8325 * config/mips/mips.md (length): Increase by 4 for stores if
8327 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8328 all noreorder if fixing 24K errata.
8329 * doc/invoke.texi: Document mfix-24k.
8331 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8333 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8334 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8336 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8338 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8339 (const_ok_for_op): ... to here.
8341 2011-04-20 Kai Tietz <ktietz@redhat.com>
8343 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8344 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8346 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8348 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8350 2011-04-20 Richard Guenther <rguenther@suse.de>
8352 PR tree-optimization/47892
8353 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8356 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8358 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8360 2011-04-20 Tristan Gingold <gingold@adacore.com>
8362 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8364 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8368 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8369 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8370 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8371 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8372 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8374 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8377 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8378 (avr_asm_named_section, avr_asm_output_aligned_common,
8379 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8380 New functions to update...
8381 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8382 (avr_asm_init_sections): Overwrite section callbacks for
8383 data_section, bss_section.
8384 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8386 (avr_file_end): ...here.
8388 2011-04-20 Richard Guenther <rguenther@suse.de>
8391 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8392 objects and types here. Adjust for their offset before comparing.
8394 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8396 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8399 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8401 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8402 (GIMPLE_H): Include $(INTERNAL_FN_H).
8403 (OBJS-common): Add internal-fn.o.
8404 (internal-fn.o): New rule.
8405 * internal-fn.def: New file.
8406 * internal-fn.h: Likewise.
8407 * internal-fn.c: Likewise.
8408 * gimple.h: Include internal-fn.h.
8409 (GF_CALL_INTERNAL): New gf_mask.
8410 (gimple_statement_call): Put fntype into a union with a new
8412 (gimple_build_call_internal): Declare.
8413 (gimple_build_call_internal_vec): Likewise.
8414 (gimple_call_same_target_p): Likewise.
8415 (gimple_call_internal_p): New function.
8416 (gimple_call_internal_fn): Likewise.
8417 (gimple_call_fntype): Return null for internal calls.
8418 (gimple_call_set_fntype): Assert that the function is not internal.
8419 (gimple_call_set_fn): Likewise.
8420 (gimple_call_set_fndecl): Likewise.
8421 (gimple_call_set_internal_fn): New function.
8422 (gimple_call_addr_fndecl): Handle null functions.
8423 (gimple_call_return_type): Likewise null types.
8424 * gimple.c (gimple_build_call_internal_1): New function.
8425 (gimple_build_call_internal): Likewise.
8426 (gimple_build_call_internal_vec): Likewise.
8427 (gimple_call_same_target_p): Likewise.
8428 (gimple_call_flags): Handle calls to internal functions.
8429 (gimple_call_fnspec): New function.
8430 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8431 (gimple_has_side_effects): Handle null functions.
8432 (gimple_rhs_has_side_effects): Likewise.
8433 (gimple_call_copy_skip_args): Handle calls to internal functions.
8434 * cfgexpand.c (expand_call_stmt): Likewise.
8435 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8436 * gimple-fold.c (gimple_fold_call): Handle null functions.
8437 (gimple_fold_stmt_to_constant_1): Don't fold
8438 calls to internal functions.
8439 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8441 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8442 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8443 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8444 (do_warn_unused_result): Likewise.
8445 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8446 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8447 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8448 the target of a call.
8449 (initialize_hash_element): Update accordingly.
8450 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8451 (iterative_hash_hashable_expr): Handle calls to internal functions.
8452 (print_expr_hash_elt): Likewise.
8453 * tree-ssa-pre.c (can_value_number_call): Likewise.
8454 (eliminate): Handle null functions.
8455 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8456 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8457 (find_func_aliases): Likewise.
8458 * value-prof.c (gimple_ic_transform): Likewise.
8459 (gimple_indirect_call_to_profile): Likewise.
8460 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8461 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8463 2011-04-19 Jan Hubicka <jh@suse.cz>
8465 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8466 * ipa-inline.c (inline_small_functions): Compute summaries first,
8467 populate heap later.
8469 2011-04-19 Jan Hubicka <jh@suse.cz>
8471 * cgraph.h (save_inline_function_body): Remove.
8472 * ipa-inline-transform.c: New file, broke out of...
8473 * ipa-inline.c: ... this one; Update toplevel comment.
8474 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8476 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8477 (cgraph_mark_inline_edge): Rename to inline_call; move to
8478 ipa-inline-transform.c.
8479 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8480 move to ipa-inline-transform.c
8481 (recursive_inlining, inline_small_functions, flatten_function,
8482 ipa_inline, inline_always_inline_functions,
8483 early_inline_small_functions): Update.
8484 (inline_transform): Move to ipa-inline-transform.c.
8485 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8487 * Makefile.in (ipa-inline-transform.o): New file.
8488 * cgraphunit.c (save_inline_function_body): Move to
8489 ipa-inline-transform.c
8491 2011-04-19 DJ Delorie <dj@redhat.com>
8493 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8494 registers if we already know there aren't any.
8495 (m32c_emit_epilogue): Don't emit a barrier here.
8496 (m32c_emit_eh_epilogue): Likewise.
8497 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8498 operands at expand time.
8499 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8501 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8502 duplicates. Provide aliases instead.
8503 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8504 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8507 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8509 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8510 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8511 (general_or_i64_p, sparc_register_move_cost): New function.
8513 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8515 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8516 Add lynx, mipssde. Sort table.
8518 2011-04-19 Xinliang David Li <davidxl@google.com>
8520 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8523 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8526 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8527 is a SUBREG with non-MODE_INT mode inside of it.
8529 2011-04-19 Martin Jambor <mjambor@suse.cz>
8531 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8532 also according to actual contants.
8533 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8534 (gimple_fold_call): Use it.
8535 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8537 2011-04-19 Martin Jambor <mjambor@suse.cz>
8539 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8540 non-pointer assignments.
8542 2011-04-19 Martin Jambor <mjambor@suse.cz>
8544 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8545 account anc_offset and otr_type from the indirect edge info.
8546 * ipa-prop.c (get_ancestor_addr_info): New function.
8547 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8548 get_ancestor_addr_info, call it.
8549 (ipa_note_param_call): Do not initialize information about polymorphic
8550 calls, return the indirect call graph edge. Remove the last
8551 parameter, adjust all callers.
8552 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8553 parameters. Initialize polymorphic information in the indirect edge.
8555 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8558 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8559 the types if they have different enumeration identifiers.
8561 2011-04-19 Jan Hubicka <jh@suse.cz>
8563 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8564 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8565 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8566 (optimize_function_for_size_p) ... here.
8568 2011-04-19 Richard Guenther <rguenther@suse.de>
8571 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8574 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8576 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8577 if DECL_NO_INLINE_WARNING_P is set on the function.
8579 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8582 * reload1.c (inc_for_reload): Return void. All callers changed.
8583 (emit_input_reload_insns): Don't try to delete previous output
8584 reloads to a register, or record spill_reg_store for autoincs.
8586 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8588 * gengtype.h: Updated copyright year.
8589 (struct input_file_st): Add inpisplugin field.
8590 (type_fileloc): New function.
8592 (write_typed_struct_alloc_def): Add gcc_assert.
8593 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8594 (write_typed_alloc_defns): Don't output for plugin files.
8595 (input_file_by_name): Clear inpisplugin field.
8596 (main): Set inpisplugin field for plugin files.
8598 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8600 * gengtype-state.c (string_eq): New.
8601 (read_state): Use string_eq instead of strcmp when creating the
8604 2011-04-19 Wei Guozhi <carrot@google.com>
8607 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8608 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8610 * config/arm/constraints.md (Uu): New constraint.
8611 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8613 2011-04-19 Tristan Gingold <gingold@adacore.com>
8615 * config.gcc (-*-*-*vms): Added.
8616 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8618 * config/vms/vms-ld.c: New file.
8619 * config/vms/vms-ar.c: New file.
8620 * config/vms/t-vmsnative: New file.
8622 2011-04-18 Xinliang David Li <davidxl@google.com>
8624 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8626 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8629 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8630 if TREE_TYPE (v) is non-NULL.
8632 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8633 gimple_get_virt_mehtod_for_binfo.
8634 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8635 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8637 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8639 2011-04-18 Michael Matz <matz@suse.de>
8640 Steve Ellcey <sje@cup.hp.com>
8642 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8643 use its mode as source mode if it isn't VOIDmode.
8645 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8647 * doc/passes.texi: Fill crossref nodes.
8649 2011-04-18 Jim Meyering <meyering@redhat.com>
8651 Fix doubled-word typos in comments and strings
8652 * config/alpha/vms-unwind.h: s/for for/for/
8653 * config/arm/unwind-arm.h: Likewise.
8654 * config/microblaze/microblaze.c: Likewise.
8655 * config/sh/constraints.md: s/in in/in/
8656 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8658 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8660 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8661 (AVX_FLOAT_MODE_P): Ditto.
8662 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8663 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8664 (AVX_VEC_FLOAT_MODE_P): Ditto.
8665 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8666 (UNSPEC_MASKSTORE): Ditto.
8667 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8668 Merge from <sse>_movmsk<ssemodesuffix> and
8669 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8670 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8672 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8673 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8674 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8676 2011-04-18 Jan Hubicka <jh@suse.cz>
8678 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8680 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8681 (want_inline_function_called_once_p): Break out the logic from
8683 (edge_badness): Ensure that profile is not misupdated.
8684 (lookup_recursive_calls): Prioritize by call frequencies.
8685 (inline_small_functions): Move program size estimates here;
8686 actually process whole queue even when unit growth has been
8687 met. (to properly compute inline_failed reasons and for the
8688 case unit size decrease.) Revisit comments on recursive inlining.
8689 (ipa_inline): Remove unit summary code; first inline hot calls
8690 of functions called once, cold calls next.
8691 (order, nnodes): Remove unused variables.
8692 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8693 (GTFILES): Remove ipa-inline.c
8694 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8696 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8698 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8700 2011-04-18 Jie Zhang <jie@codesourcery.com>
8701 Richard Earnshaw <rearnsha@arm.com>
8703 * arm.c (neon_builtin_type_bits): Remove.
8704 (typedef enum neon_builtin_mode): New.
8705 (T_MAX): Don't define.
8706 (typedef enum neon_builtin_datum): Remove bits, codes[],
8707 num_vars and base_fcode. Add mode, code and fcode.
8708 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8709 VAR10): Change accordingly.
8710 (neon_builtin_data[]): Change accordingly
8711 (arm_init_neon_builtins): Change accordingly.
8712 (neon_builtin_compare): Remove.
8713 (locate_neon_builtin_icode): Remove.
8714 (arm_expand_neon_builtin): Change accordingly.
8716 * arm.h (enum arm_builtins): Move to ...
8717 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8719 * arm.c (arm_builtin_decl): Declare.
8720 (TARGET_BUILTIN_DECL): Define.
8721 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8722 (arm_builtin_decls[]): New.
8723 (arm_init_neon_builtins): Store builtin declarations in
8724 arm_builtin_decls[].
8725 (arm_init_tls_builtins): Likewise.
8726 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8727 (arm_builtin_decl): New.
8729 2011-04-18 Richard Guenther <rguenther@suse.de>
8731 * tree.c (upper_bound_in_type): Build properly canonicalized
8733 (lower_bound_in_type): Likewise.
8735 2011-04-18 Richard Guenther <rguenther@suse.de>
8737 * gimple.h (gimple_call_addr_fndecl): New function.
8738 (gimple_call_fndecl): Use it.
8739 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8741 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8742 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8744 2011-04-18 Richard Guenther <rguenther@suse.de>
8747 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8749 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8752 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8753 DECL_IN_CONSTANT_POOL without RTL.
8755 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8756 Ira Rosen <ira.rosen@linaro.org>
8759 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8760 to match neon_vzip/vuzp/vtrn_internal.
8761 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8762 outputs explicitly dependent on both inputs.
8763 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8765 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8767 PR tree-optimization/48616
8768 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8769 whether the shift is by scalar or vector based on whether all SLP
8770 scalar stmts have the same rhs.
8772 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8774 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8777 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8780 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8783 2011-04-17 Jan Hubicka <jh@suse.cz>
8785 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8786 * cgrpahunit.c (cgraph_finalize_function): Do not set
8787 finalized_by_frontend.
8788 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8789 finalized_by_frontend.
8791 2011-04-17 Jan Hubicka <jh@suse.cz>
8793 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8794 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8795 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8796 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8798 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8800 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8802 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8805 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8806 is non-null before accessing it.
8807 (input_cgraph): Remove trailing spaces.
8809 2011-04-17 Revital Eres <revital.eres@linaro.org>
8811 * params.def (sms-min-sc): New param flag.
8812 * modulo-sched.c (sms_schedule): Use it.
8813 * doc/invoke.texi (sms-min-sc): Document it.
8815 2011-04-17 Jan Hubicka <jh@suse.cz>
8817 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8818 present, also set gimple_call_set_cannot_inline.
8819 * ipa-inline.c: Update toplevel comment.
8821 (cgraph_clone_inlined_nodes): Fix linebreaks.
8822 (cgraph_check_inline_limits): Restructure to ...
8823 (caller_growth_limits): ... this one; be more tolerant
8824 on growth in nested inline chains; add explanatory comment;
8825 fix stack accounting thinko introduced by previous patch.
8826 (cgraph_default_inline_p): Remove.
8827 (report_inline_failed_reason): New function.
8828 (can_inline_edge_p): New function.
8829 (can_early_inline_edge_p): New function.
8830 (leaf_node_p): Move upwards in file.
8831 (want_early_inline_function_p): New function.
8832 (want_inline_small_function_p): New function.
8833 (want_inline_self_recursive_call_p): New function.
8834 (cgraph_edge_badness): Rename to ...
8835 (edge_badness) ... this one; fix linebreaks.
8836 (update_edge_key): Update call of edge_baddness; add
8837 detailed dump about queue updates.
8838 (update_caller_keys): Use can_inline_edge_p and
8839 want_inline_small_function_p.
8840 (cgraph_decide_recursive_inlining): Rename to...
8841 (recursive_inlining): Use can_inline_edge_p and
8842 want_inline_self_recursive_call_p; simplify and remove no longer
8844 (cgraph_set_inline_failed): Remove.
8845 (add_new_edges_to_heap): Use can_inline_edge_p and
8846 want_inline_small_function_p.
8847 (cgraph_decide_inlining_of_small_functions): Rename to ...
8848 (inline_small_functions): ... this one; cleanup; use
8849 can/want predicates; cleanup debug ouput; work edges till fibheap
8850 is exhausted and do not stop once unit growth is reached; remove
8851 later loop processing remaining edges.
8852 (cgraph_flatten): Rename to ...
8853 (flatten_function): ... this one; use can_inline_edge_p
8854 and can_early_inline_edge_p predicates.
8855 (cgraph_decide_inlining): Rename to ...
8856 (ipa_inline): ... this one; remove unreachable nodes before
8857 inlining functions called once; simplify the pass.
8858 (cgraph_perform_always_inlining): Rename to ...
8859 (inline_always_inline_functions): ... this one; use
8860 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8861 (cgraph_decide_inlining_incrementally): Rename to ...
8862 (early_inline_small_functions): ... this one; simplify
8863 using new predicates; cleanup; make dumps prettier.
8864 (cgraph_early_inlining): Rename to ...
8865 (early_inliner): newer inline regular functions into always-inlines;
8866 fix updating of call stmt summaries.
8867 (pass_early_inline): Update for new names.
8868 (inline_transform): Fix formating.
8869 (gate_cgraph_decide_inlining): Rename to ...
8870 (pass_ipa_inline): ... this one.
8871 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8872 * ipa-inline-analysis.c (dump_inline_summary): Update.
8873 (compute_inline_parameters): Do not compute disregard_inline_limits;
8874 look for mismatching arguments.
8875 (estimate_growth): Fix handlig of non-trivial self recursion.
8876 (inline_read_summary): Do not read info->disregard_inline_limits.
8877 (inline_write_summary): Do not write info->disregard_inline_limits.
8878 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8879 and move all checks into can_inline_edge_p predicate; re-enable code
8880 comparing optimization levels.
8881 (expand_call_inline): Do not test inline_forbidden_into_p.
8882 * Makefile.in (ipa-inline.o): Update arguments.
8884 2011-04-17 Revital Eres <revital.eres@linaro.org>
8886 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8888 2011-04-17 Revital Eres <revital.eres@linaro.org>
8890 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8892 2011-04-17 Michael Matz <matz@suse.de>
8894 PR tree-optimization/48622
8896 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8897 in same order as they're written.
8899 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8901 * config/pa/predicates.md: Reorganize and simplify predicates.
8902 Eliminate duplicate code checks.
8903 (arith_operand): Rename to arith14_operand
8904 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8905 * config/pa/pa.md: Use renamed operands.
8906 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8907 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8908 arith11_operand, adddi3_operand, indexed_memory_operand,
8909 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8910 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8911 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8912 move_dest_operand, move_src_operand, prefetch_cc_operand,
8913 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8914 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8915 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8916 div_operand, int5_operand, movb_comparison_operator,
8917 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8918 arith_double_operand, ireg_operand, lhs_lshift_operand,
8919 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8920 integer_store_memory_operand): Likewise.
8921 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8922 (integer_store_memory_operand, read_only_operand,
8923 function_label_operand, borx_reg_operand,
8924 non_hard_reg_operand): Likewise.
8925 (eq_neq_comparison_operator): Delete unused operator.
8926 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8927 function_label_operand.
8928 (emit_move_sequence): Likewise.
8930 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8932 * config/i386/sse.md (sseunpackmode): New mode attribute.
8933 (ssepackmode): Ditto.
8934 (vec_pack_trunc_<mode>): Macroize expander from
8935 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8936 (vec_unpacks_lo_<mode>): Macroize expander from
8937 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8938 (vec_unpacks_hi_<mode>): Macroize expander from
8939 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8940 (vec_unpacku_lo_<mode>): Macroize expander from
8941 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8942 (vec_unpacku_hi_<mode>): Macroize expander from
8943 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8944 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8945 ix86_expand_sse4_unpack.
8946 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8948 2011-04-16 Jan Hubicka <jh@suse.cz>
8950 * cgraphbuild.c: Include ipa-inline.h.
8951 (reset_inline_failed): Use initialize_inline_failed.
8952 * cgraph.c: Include ipa-inline.h.
8953 (cgraph_create_node_1): Do not initialize estimated_growth.
8954 (initialize_inline_failed): More to ipa-inline-analysis.c
8955 (dump_cgraph_node): Do not dump inline flags.
8956 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8957 and disregard_inline_limits flags.
8958 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8959 time, size, estimated_growth.
8960 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8962 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8963 DECL_DISREGARD_INLINE_LIMITS.
8964 (cgraph_analyze_function): Do not initialize
8965 node->local.disregard_inline_limits.
8966 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8967 inlinable, versionable and disregard_inline_limits.
8968 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8969 cgraph_check_inline_limits, cgraph_default_inline_p,
8970 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8971 add_new_edges_to_heap): Update.
8972 (cgraph_decide_inlining_of_small_function): Update; set
8973 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8974 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8975 cgraph_decide_inlining_incrementally): Update.
8976 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8977 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8978 time, size and estimated_growth parameters.
8979 (estimate_edge_growth): Update.
8980 (initialize_inline_failed): Declare.
8981 * ipa-split.c: Include ipa-inline.h
8982 (execute_split_functions): Update.
8983 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8984 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8985 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8986 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8987 estimated_growth to INT_MIN.
8988 (inline_node_duplication_hook): Likewise.
8989 (dump_inline_summary): Dump new fields.
8990 (compute_inline_parameters): Update.
8991 (estimate_edge_time, estimate_time_after_inlining,
8992 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8993 inline_write_summary):
8994 (initialize_inline_failed): Move here from cgraph.c.
8995 * tree-sra.c: Include ipa-inline.h.
8996 (ipa_sra_preliminary_function_checks): Update.
8997 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9000 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9002 * config/i386/sse.md (V16): New mode iterator.
9004 (AVXMODEQI, AVXMODEDI): Remove.
9005 (sse2, sse3): New mode attribute.
9006 (mov<mode>): Use V16 mode iterator.
9007 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9008 (push<mode>1): Use V16 mode iterator.
9009 (movmisalign<mode>): Ditto.
9010 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9011 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9012 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9013 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9014 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9015 avx_movdqu<avxmodesuffix>.
9016 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9017 *avx_movdqu<avxmodesuffix>.
9018 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9019 avx_lddqu<avxmodesuffix>.
9020 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9021 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9022 avx_movnt<AVXMODEDI:mode>.
9023 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9024 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9026 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9029 * haifa-sched.c (prune_ready_list, schedule_block): Use
9030 sched_pressure_p rather than flag_sched_pressure.
9032 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9034 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9035 cgraph_get_node instead of cgraph_get_create_node.
9037 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9039 * cfgexpand.c (expand_debug_expr): Use
9040 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9042 2011-04-15 Michael Matz <matz@suse.de>
9044 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9045 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9046 * function.c (gimplify_parameters): Ditto.
9047 * gimplify.c (gimplify_vla_decl): Ditto.
9049 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9050 (gimple_call_set_alloca_for_var): New inline function.
9051 (gimple_call_alloca_for_var_p): Ditto.
9052 * gimple.c (gimple_build_call_from_tree): Remember
9053 CALL_ALLOCA_FOR_VAR_P state.
9054 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9056 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9057 calls if they were for VLA objects.
9059 2011-04-15 Martin Jambor <mjambor@suse.cz>
9061 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9064 2011-04-15 Martin Jambor <mjambor@suse.cz>
9067 * tree-emutls.c (lower_emutls_function_body): Call
9068 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9071 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9073 * c-decl.c (detect_field_duplicates): Call
9074 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9076 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9078 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9079 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9080 * ipa-pure-const.c (check_stmt): Call it.
9081 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9083 2011-04-15 Richard Guenther <rguenther@suse.de>
9085 PR tree-optimization/48290
9086 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9087 Properly decide inhibiting propagation based on the valueized
9088 operand. Do loop-closed SSA form preserving here ...
9089 (init_copy_prop): ... not here.
9091 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9094 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9095 (*ieee_smax<mode>3): Likewise.
9097 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9099 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9100 Replace match_operand with match_dup for the third operand in
9103 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9105 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9106 to track processing of conditionals. Update all callers.
9107 (try_combine, simplify_if_then_else): Update.
9109 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9111 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9114 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9116 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9117 instead of match_operand for operand 3.
9119 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9121 * recog.h (insn_operand_data): Add an "allows_mem" field.
9122 * genoutput.c (output_operand_data): Initialize it.
9123 * optabs.c (maybe_legitimize_operand_same_code): New function.
9124 (maybe_legitimize_operand): Use it when matching the original
9127 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9129 * gimplify.c: Fix issues in comments throughout.
9130 (voidify_wrapper_expr): Fix long line.
9131 (build_stack_save_restore): Likewise.
9132 (gimplify_loop_expr): Likewise.
9133 (gimplify_compound_lval): Likewise.
9134 (gimplify_init_ctor_eval): Likewise.
9135 (gimplify_modify_expr_rhs): Likewise.
9136 (omp_notice_threadprivate_variable): Likewise.
9138 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9140 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9141 original one if this is not a builtin function.
9143 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9146 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9147 offset it as needed based on top 2 bits in operands[3], change
9148 MEM mode to SFmode and mask those 2 bits away from operands[3].
9150 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9152 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9153 change from objc_declare_protocols() to objc_declare_protocol().
9155 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9157 * config/i386/sse.md (sse4_1): New mode attribute.
9158 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9159 avx_blend<ssemodesuffix><avxmodesuffix> and
9160 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9161 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9162 avx_blendv<ssemodesuffix><avxmodesuffix> and
9163 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9164 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9165 avx_dp<ssemodesuffix><avxmodesuffix> and
9166 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9167 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9168 (sse4_1_packusdw): Merge with *avx_packusdw.
9169 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9170 (sse4_1_pblendw): Merge with *avx_pblendw.
9171 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9172 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9173 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9175 (sse4_1_round<ssescalarmodesuffix>): Merge with
9176 *avx_round<ssescalarmodesuffix>.
9177 (aesenc): Merge with *avx_aesenc.
9178 (aesenclast): Merge with *avx_aesenclast.
9179 (aesdec): Merge with *avx_aesdec.
9180 (aesdeclast): Merge with *avx_aesdeclast.
9181 (pclmulqdq): Merge with *pclmulqdq.
9182 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9184 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9186 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9189 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9190 (align_local_variable): This. Update DECL_ALIGN.
9191 (add_stack_var): Updated.
9192 (expand_one_stack_var): Likewise.
9194 2011-04-14 Richard Guenther <rguenther@suse.de>
9196 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9198 (dse_initialize_block_local_data, dse_leave_block,
9199 record_voperand_set, get_stmt_uid): Likewise.
9200 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9201 (dse_optimize_stmt): Remove voperand set handling code.
9202 Simplify and improve to handle any kind of killing stmt.
9203 (dse_record_phi): Remove.
9204 (dse_enter_block): Simplify.
9205 (tree_ssa_dse): Likewise.
9206 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9208 2011-04-14 Jan Hubicka <jh@suse.cz>
9210 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9211 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9212 (cgraph_local_info): Remove inline_summary.
9213 * ipa-cp.c: Include ipa-inline.h.
9214 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9215 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9217 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9218 (input_overwrite_node): Do not set inline summary.
9219 (input_node): Do not stream inline summary.
9220 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9221 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9222 growth; we do not have inline parameters computed for that anyway.
9223 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9224 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9225 (inline_summary_t): New type and VECtor.
9226 (debug_inline_summary, dump_inline_summaries): Declare.
9227 (inline_summary): Use VOCtor.
9228 (estimate_edge_growth): Kill hack computing call stmt size directly.
9229 * lto-section-in.c (lto_section_name): Add inline section.
9230 * ipa-inline-analysis.c: Include lto-streamer.h
9231 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9232 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9233 (inline_summary_vec): Define.
9234 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9235 dump_inline_summaries): New functions.
9236 (estimate_function_body_sizes): Properly compute size/time of outgoing
9238 (compute_inline_parameters): Alloc inline_summary; do not compute
9239 size/time of incomming calls.
9240 (estimate_edge_time): Avoid missing time summary hack.
9241 (inline_read_summary): Read inline summary info.
9242 (inline_write_summary): Write inline summary info.
9243 (inline_free_summary): Free all hooks and inline summary vector.
9244 * lto-streamer.h: Add LTO_section_inline_summary section.
9245 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9246 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9248 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9250 * tree-vectorizer.h (vect_strided_store_supported): Add a
9251 HOST_WIDE_INT argument.
9252 (vect_strided_load_supported): Likewise.
9253 (vect_permute_store_chain): Return void.
9254 (vect_transform_strided_load): Likewise.
9255 (vect_permute_load_chain): Delete.
9256 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9257 count argument. Check that the count is a power of two.
9258 (vect_strided_load_supported): Likewise.
9259 (vect_permute_store_chain): Return void. Update after above changes.
9260 Assert that the access is supported.
9261 (vect_permute_load_chain): Likewise.
9262 (vect_transform_strided_load): Return void.
9263 * tree-vect-stmts.c (vectorizable_store): Update calls after
9264 above interface changes.
9265 (vectorizable_load): Likewise.
9266 (vect_analyze_stmt): Don't check for strided powers of two here.
9268 2011-04-14 Richard Guenther <rguenther@suse.de>
9270 PR tree-optimization/48590
9271 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9272 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9273 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9274 BUILT_IN_STACK_SAVE.
9275 * tree-ssa-dce.c (propagate_necessity): Handle
9276 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9278 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9280 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9283 2011-04-14 Richard Guenther <rguenther@suse.de>
9285 * tree.h (get_object_alignment_1): Declare.
9286 * builtins.c (get_object_alignment_1): Split out worker from ...
9287 (get_object_alignment): ... here.
9288 * fold-const.c (get_pointer_modulus_and_residue): Use
9289 get_object_alignment_1.
9291 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9293 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9295 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9296 parameter. Generalise code to handle arrays as well as vectors.
9297 (vect_setup_realignment): Update accordingly.
9298 * tree-vect-stmts.c (vectorizable_store): Likewise.
9299 (vectorizable_load): Likewise.
9301 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9303 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9304 within the per-copy loop.
9306 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9308 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9311 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9313 * doc/options.texi (Negative): Explicitly mention that the
9314 Negative chain must be circular.
9316 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9318 * function.h (block_chainon): Declare.
9319 * function.c (block_chainon): Define.
9321 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9322 Eric Weddington <eric.weddington@atmel.com>
9323 Georg-Johann Lay <avr@gjlay.de>
9325 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9327 (avr_init_builtins, avr_expand_builtin,
9328 avr_expand_delay_cycles, avr_expand_unop_builtin,
9329 avr_expand_binop_builtin ): New functions.
9330 (avr_builtin_id): New enum
9331 (struct avr_builtin_description): New struct
9332 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9333 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9335 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9336 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9337 UNSPECV_DELAY_CYCLES): new enumeration values
9338 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9339 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9340 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9341 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9342 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9343 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9344 "fmulsu"): New insns
9346 * config/avr/avr-c.c: fix line endings
9347 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9348 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9349 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9350 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9351 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9353 * doc/extend.texi (AVR Built-in Functions): New node
9354 (Target Builtins): Add documentation of AVR
9357 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9360 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9361 alone. Error if non-const data has attribute progmem.
9363 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9365 * tree.h (struct tree_constructor): Include tree_typed instead of
9367 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9368 TS_TYPED instead of TS_COMMON.
9370 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9372 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9373 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9374 (sse2_psadbw): Merge with *avx_psadbw.
9375 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9376 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9377 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9378 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9379 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9380 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9381 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9382 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9383 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9384 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9385 (ssse3_palignrti): Merge with *avx_palignrti.
9387 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9389 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9390 * tree-ssanames.c (fini_ssanames): VEC_free it.
9391 (make_ssa_name_fn): Update for VECness of free_ssanames.
9392 (release_ssa_name, release_dead_ssa_names): Likewise.
9393 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9395 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9396 TS_TYPED instead of TS_COMMON.
9398 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9400 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9401 statistics_counter_event.
9402 * tree-ssa-copyrename.c (stats): Define.
9403 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9404 statistics_counter_event.
9405 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9406 (bswap_stats, widen_mul_stats): Define.
9407 (insert_reciprocals): Increment rdivs_inserted.
9408 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9409 rfuncs_inserted. Add calls to statistics_counter_event.
9410 (execute_cse_sincos_1): Increment inserted.
9411 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9412 statistics_counter_event.
9413 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9414 of bswap_stats. Add calls to statistics_counter_event.
9415 (convert_mult_to_widen): Increment widen_mults_inserted.
9416 (convert_plusminus_to_widen): Increment maccs_inserted.
9417 (convert_mult_to_fma): Increment fmas_inserted.
9418 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9419 calls to statistics_counter_event.
9421 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9423 PR rtl-optimization/48455
9424 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9425 `temp_costs->mem_cost'.
9427 2011-04-13 Jan Hubicka <jh@suse.cz>
9429 * ipa-inline.h: New file.
9430 * ipa-inline-analysis.c: New file. Broken out of ...
9431 * ipa-inline.c: ... this file; update toplevel comment;
9432 include ipa-inline.h
9433 (inline_summary): Move to ipa-inline.h
9434 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9435 ipa-inline-analysis.c.
9436 (cgraph_estimate_time_after_inlining): Rename to
9437 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9438 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9439 to estimate_edge_growth.
9440 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9441 rename to estimate_size_after_inlining.
9442 (cgraph_mark_inline_edge): Update for new naming convention.
9443 (cgraph_check_inline_limits): Likewise.
9444 (cgraph_edge_badness): Likewise.
9445 (cgraph_decide_recursive_inlining): Likewise.
9446 (cgraph_decide_inlining_of_small_functions): Likewise.
9447 (cgraph_decide_inlining_incrementally): Likewise.
9448 (cgraph_estimate_growth): Rename to estimate_growth; move to
9449 ipa-inline-analysis.c.
9450 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9451 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9452 (compute_inline_parameters): Likewise.
9453 (compute_inline_parameters_for_current): Likewise.
9454 (pass_inline_parameters): Likewise.
9455 (inline_indirect_intraprocedural_analysis): Likewise.
9456 (analyze_function): Rename to inline_analyze_function; likewise.
9457 (add_new_function): Move to ipa-inline-analysis.c.
9458 (inline_generate_summary): Likewise.
9459 (inline_read_summary): Likewise.
9460 (inline_write_summary): Likewise.
9461 * Makefile.in (ipa-inline-analysis.c): New file.
9463 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9465 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9466 * configure: Regenerate.
9468 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9470 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9471 instead of tree_common.
9472 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9474 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9475 TS_TYPED rather than TS_COMMON.
9476 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9478 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9481 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9482 r20 around calls of __tablejump_elpm__
9484 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9487 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9489 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9491 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9493 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9494 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9495 (cfi_vec): New typedef.
9496 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9497 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9498 (cie_cfi_vec): New static variable.
9499 (cie_cfi_head): Delete.
9500 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9501 declaration changed. Use vector rather than list operations.
9502 (new_cfi): Don't initialize the dw_cfi_next field.
9503 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9504 rather than list operations.
9505 (lookup_cfa): Use vector rather than list operations.
9506 (output_cfis): New argument upto. Accept a cfi_vec rather than
9507 a dw_cfi_ref list head as argument. All callers changed.
9508 Iterate over the vector using upto as a maximum index.
9509 (output_all_cfis): New static function.
9510 (output_fde): Use vector rather than list operations. Use the
9511 new upto argument for output_cfis rather than manipulating a
9513 (dwarf2out_begin_prologue): Change initializations to match
9515 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9516 from the vector length rather than searching for the end of a list.
9517 Use output_all_cfis.
9518 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9520 2011-04-13 Nick Clifton <nickc@redhat.com>
9522 * config/rx/rx.md (movmemsi): Do not use this pattern when
9523 volatile pointers are involved.
9525 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9527 * config/i386/sse.md (pinsrbits): Remove.
9528 (sse2_packsswb): Merge with *avx_packsswb.
9529 (sse2_packssdw): Merge with *avx_packssdw.
9530 (sse2_packuswb): Merge with *avx_packuswb.
9531 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9532 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9533 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9534 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9535 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9536 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9537 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9538 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9539 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9540 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9541 (sse2_loadld): Merge with *avx_loadld.
9542 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9543 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9544 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9545 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9546 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9548 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9550 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9552 * print-tree.c (print_node): Likewise.
9553 * tree-inline.c (copy_tree_r): Likewise.
9554 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9555 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9556 instead of TS_COMMON.
9557 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9558 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9559 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9560 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9561 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9563 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9565 (TREE_CHAIN): Check for a TS_COMMON structure.
9566 (TREE_TYPE): Check for a TS_TYPED structure.
9568 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9570 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9571 cgraph_get_create_node instead of cgraph_node.
9573 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9575 * c-parser.c (c_parser_initelt): Updated call to
9576 objc_build_message_expr.
9577 (c_parser_postfix_expression): Likewise.
9579 2011-04-12 Kai Tietz <ktietz@redhat.com>
9581 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9582 MASK_MS_BITFIELD_LAYOUT bit.
9584 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9586 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9587 assert it is always true.
9588 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9591 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9593 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9594 compiling Objective-C to be more efficient.
9596 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9598 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9601 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9603 * recog.h, genoutput.c, optabs.c: Revert last patch.
9605 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9608 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9610 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9612 * recog.h (insn_operand_data): Add an "allows_mem" field.
9613 * genoutput.c (output_operand_data): Initialize it.
9614 * optabs.c (maybe_legitimize_operand_same_code): New function.
9615 (maybe_legitimize_operand): Use it when matching the original
9618 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9620 * genpreds.c (process_define_predicate): Move most processing
9621 to gensupport.c. Continue to validate the expression.
9622 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9623 (process_define_predicate): Move processing to gensupport.c.
9624 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9625 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9626 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9628 (valid_predicate_name_p): New function, split out from old
9629 genpreds.c:process_define_predicate.
9630 (process_define_predicate): New function, combining code from
9631 old genpreds.c and genrecog.c functions.
9632 (process_rtx): Call it for DEFINE_PREDICATE and
9633 DEFINE_SPECIAL_PREDICATE.
9635 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9637 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9638 size of a '%A' memory reference.
9639 (T_DREG, T_QREG): New neon_builtin_type_bits.
9640 (arm_init_neon_builtins): Assert that the load and store operands
9641 are neon_struct_operands.
9642 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9643 (NEON_ARG_MEMORY): New builtin_arg.
9644 (neon_dereference_pointer): New function.
9645 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9646 Handle NEON_ARG_MEMORY.
9647 (arm_expand_neon_builtin): Update after above interface changes.
9648 Use NEON_ARG_MEMORY for loads and stores.
9649 * config/arm/predicates.md (neon_struct_operand): New predicate.
9650 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9651 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9652 (V_four_elem): Tweak formatting.
9653 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9654 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9655 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9656 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9657 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9658 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9659 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9660 Use %A in the output template.
9661 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9662 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9663 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9664 the width of the memory access. Remove post-increment.
9665 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9667 2011-04-12 Nick Clifton <nickc@redhat.com>
9669 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9670 instruction for interrupt handlers if the target is the basic V850
9672 (expand_epilogue): Likewise.
9674 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9676 PR rtl-optimization/48549
9677 * combine.c (propagate_for_debug): Also stop after BB_END of
9678 this_basic_block. Process LAST and just stop processing after it.
9679 (combine_instructions): If last_combined_insn has been deleted,
9680 set last_combined_insn to its PREV_INSN.
9682 2011-04-12 Richard Guenther <rguenther@suse.de>
9684 PR tree-optimization/46076
9685 * gimple.h (struct gimple_statement_call): Add fntype field.
9686 (gimple_call_fntype): Adjust.
9687 (gimple_call_set_fntype): New function.
9688 * gimple.c (gimple_build_call_1): Set the call function type.
9689 * gimplify.c (gimplify_call_expr): Preserve the function
9690 type the frontend used for the call.
9691 (gimplify_modify_expr): Likewise.
9692 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9694 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9696 * tree-ssa.c (useless_type_conversion_p): Function pointer
9697 conversions are useless.
9699 2011-04-12 Martin Jambor <mjambor@suse.cz>
9701 * cgraph.h (cgraph_node): Remove function declaration.
9702 (cgraph_create_node): Declare.
9703 (cgraph_get_create_node): Likewise.
9704 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9705 Updated all callers.
9706 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9707 the decl does not already exist. Call cgraph_get_create_node instead
9709 (cgraph_get_create_node): New function.
9710 (cgraph_same_body_alias): Update comment.
9711 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9712 assert it does not return NULL.
9713 (cgraph_update_edges_for_call_stmt): Likewise.
9714 (cgraph_clone_edge): Likewise.
9715 (cgraph_create_virtual_clone): Likewise.
9716 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9717 instead of cgraph_node.
9718 (cgraph_add_new_function): Call cgraph_create_node or
9719 cgraph_get_create_node instead of cgraph_node.
9720 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9721 instead of cgraph_node.
9722 (record_eh_tables): Likewise.
9723 (mark_address): Likewise.
9724 (mark_load): Likewise.
9725 (build_cgraph_edges): Call cgraph_get_create_node instead
9727 (rebuild_cgraph_edges): Likewise.
9728 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9729 instead of cgraph_node.
9730 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9732 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9733 cgraph_create_node instead of cgraph_node.
9734 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9736 * lto-cgraph.c (input_node): Likewise.
9737 * lto-streamer-in.c (input_function): Likewise.
9738 * varasm.c (mark_decl_referenced): Likewise.
9739 (assemble_alias): Likewise.
9741 2011-04-12 Martin Jambor <mjambor@suse.cz>
9743 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9744 instead of cgraph_node and assert it does not return NULL.
9745 * lto-streamer-in.c (lto_read_body): Likewise.
9746 * omp-low.c (new_omp_context): Likewise.
9747 (create_task_copyfn): Likewise.
9748 * tree-emutls.c (lower_emutls_function_body): Likewise.
9749 * matrix-reorg.c (transform_allocation_sites): Likewise.
9751 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9754 * c-typeck.c (build_asm_expr): Error out on attempts to use
9755 void type outputs or inputs for constraints that allow reg or
9758 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9759 Richard Earnshaw <rearnsha@arm.com>
9762 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9763 to use sign-magnitude offsets. Reject unsupported unaligned
9764 cases. Add detailed description in comments.
9765 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9766 condition from TARGET_32BIT to TARGET_ARM.
9768 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9770 * tree.h (struct typed_tree): New.
9771 (struct tree_common): Include it instead of tree_base.
9772 (TREE_TYPE): Update for new location of type field.
9773 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9774 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9775 (union tree_node): Add typed field.
9776 * treestruct.def (TS_TYPED): New.
9777 * lto-streamer.c (check_handled_ts_structures): Handle it.
9778 * tree.c (MARK_TS_TYPED): New macro.
9779 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9781 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9783 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9784 (force_nonfallthru): Do not alter the loop nest if no basic block
9787 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9789 * config/i386/sse.md (VI): New mode iterator.
9791 (AVX256MODEI): Ditto.
9792 (AVXMODEF4P): Ditto.
9793 (avxvecpsmode): Ditto.
9794 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9795 (sse2_andnot<mode>3): New expander.
9796 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9797 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9798 (<any_logic:code><mode>3): Use VI mode iterator.
9799 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9800 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9801 (*andnottf3): Handle AVX three-operand constraints.
9802 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9804 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9805 Robert Millan <rmh@gnu.org>
9807 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9808 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9809 GNU_USER_DYNAMIC_LINKER64): Define.
9810 (REG_NAME): Don't undefine.
9811 (MD_UNWIND_SUPPORT): Undefine.
9812 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9813 (REG_NAME): Don't undefine.
9814 (MD_UNWIND_SUPPORT): Undefine.
9815 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9817 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9819 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9820 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9822 2011-04-11 Xinliang David Li <davidxl@google.com>
9824 * value-profile.c (check_ic_target): New function.
9825 (gimple_ic_transform): Sanity check indirect call target.
9826 * gimple-low.c (gimple_check_call_args): Interface change.
9827 (gimple_check_call_matching_types): New function.
9828 * tree-inline.c (tree_can_inline_p): Call new function.
9830 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9832 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9833 tree-pretty-print.h & realmpfr.h.
9835 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9838 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9839 (setup_allocno_and_important_classes): Ditto.
9841 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9843 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9844 GNU_USER_DYNAMIC_LINKER.
9845 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9846 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9847 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9848 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9849 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9850 GNU_USER_TARGET_OS_CPP_BUILTINS.
9851 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9852 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9853 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9854 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9855 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9856 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9857 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9858 GNU_USER_TARGET_OS_CPP_BUILTINS.
9859 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9860 GNU_USER_DYNAMIC_LINKER.
9861 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9862 GNU_USER_TARGET_OS_CPP_BUILTINS.
9863 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9864 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9865 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9867 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9868 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9869 GNU_USER_DYNAMIC_LINKER64): Remove.
9870 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9871 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9872 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9873 GNU_USER_DYNAMIC_LINKER.
9874 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9875 GNU_USER_TARGET_OS_CPP_BUILTINS.
9876 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9877 GNU_USER_TARGET_OS_CPP_BUILTINS.
9878 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9879 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9880 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9881 GNU_USER_TARGET_OS_CPP_BUILTINS.
9882 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9883 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9884 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9885 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9886 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9887 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9888 GNU_USER_DYNAMIC_LINKER.
9889 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9890 GNU_USER_TARGET_OS_CPP_BUILTINS.
9891 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9892 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9893 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9894 GNU_USER_DYNAMIC_LINKER.
9895 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9896 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9897 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9899 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9900 GNU_USER_DYNAMIC_LINKER.
9901 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9902 GNU_USER_DYNAMIC_LINKERN32.
9903 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9904 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9905 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9906 GNU_USER_DYNAMIC_LINKER32.
9907 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9909 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9910 GNU_USER_DYNAMIC_LINKER.
9911 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9912 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9913 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9914 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9915 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9916 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9917 GNU_USER_DYNAMIC_LINKER32.
9918 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9919 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9920 GNU_USER_DYNAMIC_LINKER.
9921 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9922 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9923 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9924 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9925 GNU_USER_DYNAMIC_LINKER64.
9926 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9927 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9928 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9929 GNU_USER_DYNAMIC_LINKER.
9930 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9931 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9932 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9933 GNU_USER_DYNAMIC_LINKER.
9934 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9935 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9936 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9937 GNU_USER_DYNAMIC_LINKER32.
9938 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9939 GNU_USER_DYNAMIC_LINKER64.
9940 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9941 GNU_USER_DYNAMIC_LINKER64.
9942 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9943 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9944 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9945 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9946 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9948 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9950 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9951 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9952 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9953 GNU_USER_DYNAMIC_LINKER.
9954 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9955 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9956 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9957 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9958 GNU_USER_DYNAMIC_LINKER64.
9959 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9960 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9961 GNU_USER_LINK_EMULATION.
9962 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9963 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9964 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9965 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9966 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9967 CPP_SPEC, CC1_SPEC): Remove.
9968 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9969 (GNU_USER_DYNAMIC_LINKER): Define.
9970 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9971 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9972 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9973 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9974 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9975 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9976 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9977 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9978 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9979 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9980 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9981 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9982 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9983 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9984 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9985 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9986 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9987 GNU_USER_DYNAMIC_LINKER.
9988 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9989 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9990 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9991 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9992 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9993 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9994 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9995 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9996 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9997 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9999 2011-04-11 Kai Tietz <ktietz@redhat.com>
10003 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10004 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10006 (ix86_is_msabi_thiscall): Removed.
10007 (ix86_is_type_thiscall): Likewise.
10008 (ix86_get_callcvt): New function.
10009 (ix86_comp_type_attributes): Simplify check.
10010 (ix86_function_regparm): Use ix86_get_callcvt for calling
10011 convention attribute checks.
10012 (ix86_return_pops_args): Likewise.
10013 (ix86_static_chain): Likewise.
10014 (x86_this_parameter): Likewise.
10015 (x86_output_mi_thunk): Likewise.
10016 (ix86_function_type_abi): Optimize check for types without attributes.
10017 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10018 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10019 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10021 (IX86_BASE_CALLCVT): Helper macro.
10022 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10023 Use ix86_get_callcvt for calling convention attribute checks and avoid
10024 symbol-decoration for stdcall in TARGET_RTD case.
10025 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10027 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10030 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10032 * config/i386/sse.md (VI_128): New mode iterator.
10033 (VI12_128): Rename from SSEMODE12.
10034 (VI14_128): Rename from SSEMODE14.
10035 (VI124_128): New mode iterator.
10036 (VI24_128): Rename from SSEMODE248.
10037 (VI248_128): Rename from SSEMODE248.
10038 (SSEMODE124C8): Remove.
10039 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10040 (*sse2_<plusminus_insn><mode>3): Merge with
10041 *avx_<plusminus_insn><mode>3.
10042 (*mulv8hi3): Merge with *avx_mulv8hi3.
10043 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10044 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10045 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10046 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10047 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10048 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10049 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10050 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10051 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10052 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10053 (*<smaxmin:code>v8hi3): Ditto.
10054 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10055 (*<smaxmin:code>v16qi3): Ditto.
10056 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10057 (*sse2_eq<mode>3): Ditto.
10058 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10059 (*sse2_gt<mode>3): Ditto.
10060 (vcondv2di): Split out of vcond<mode>.
10061 (vconduv2di): Split out of vcondu<mode>.
10063 2011-04-11 Richard Guenther <rguenther@suse.de>
10065 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10066 before calling tree_low_cst.
10068 2011-04-11 Richard Guenther <rguenther@suse.de>
10070 * stor-layout.c (layout_type): Compute all array index size operations
10071 in the original type.
10072 (initialize_sizetypes): Add comment.
10073 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10075 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10077 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10079 2011-04-11 Martin Jambor <mjambor@suse.cz>
10081 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10082 of cgraph_node, handle NULL return value.
10083 (cgraph_global_info): Likewise.
10084 (cgraph_rtl_info): Likewise.
10085 * tree-inline.c (estimate_num_insns): Likewise.
10086 * gimplify.c (unshare_body): Likewise.
10087 (unvisit_body): Likewise.
10088 (gimplify_body): Likewise.
10089 * predict.c (optimize_function_for_size_p): Likewise.
10090 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10091 (call_may_clobber_ref_p_1): Likewise.
10092 * varasm.c (function_section_1): Likewise.
10093 (assemble_start_function): Likewise.
10095 2011-04-11 Martin Jambor <mjambor@suse.cz>
10097 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10099 * final.c (rest_of_clean_state): Likewise.
10100 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10101 * passes.c (pass_init_dump_file): Likewise.
10102 (execute_all_ipa_transforms): Likewise.
10103 (function_called_by_processed_nodes_p): Likewise.
10104 * predict.c (maybe_hot_frequency_p): Likewise.
10105 (probably_never_executed_bb_p): Likewise.
10106 (compute_function_frequency): Likewise.
10107 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10108 (unnest_nesting_tree_1): Likewise.
10109 (lower_nested_functions): Likewise.
10110 * tree-optimize.c (execute_fixup_cfg): Likewise.
10111 (tree_rest_of_compilation): Likewise.
10112 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10113 * tree-sra.c (ipa_early_sra): Likewise.
10114 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10115 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10116 * ipa.c (record_cdtor_fn): Likewise.
10117 * ipa-inline.c (cgraph_early_inlining): Likewise.
10118 (compute_inline_parameters_for_current): Likewise.
10119 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10120 * ipa-pure-const.c (local_pure_const): Likewise.
10121 * ipa-split.c (split_function): Likewise.
10122 (execute_split_functions): Likewise.
10123 * cgraphbuild.c (build_cgraph_edges): Likewise.
10124 (rebuild_cgraph_edges): Likewise.
10125 (cgraph_rebuild_references): Likewise.
10126 (remove_cgraph_callee_edges): Likewise.
10127 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10128 (verify_cgraph_node): Likewise.
10129 (cgraph_analyze_functions): Likewise.
10130 (cgraph_preserve_function_body_p): Likewise.
10131 (save_inline_function_body): Likewise.
10132 (save_inline_function_body): Likewise.
10133 * tree-inline.c (copy_bb): Likewise.
10134 (optimize_inline_calls): Likewise.
10136 2011-04-11 Martin Jambor <mjambor@suse.cz>
10138 PR tree-optimization/48195
10139 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10140 ipa_check_create_edge_args.
10141 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10142 ipa_check_create_edge_args.
10143 * ipa-inline.c (inline_generate_summary): Do not call
10144 ipa_check_create_node_params and ipa_check_create_edge_args.
10145 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10146 ipa_check_create_edge_args.
10148 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10150 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10152 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10153 * function.c (record_hard_reg_sets): Likewise.
10154 * ira.c (compute_regs_asm_clobbered): Likewise.
10155 * sched-deps.c (sched_analyze_1): Likewise.
10156 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10158 2011-04-09 Xinliang David Li <davidxl@google.com>
10160 PR tree-optimization/PR48484
10161 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10162 has_valid_pred lazily
10164 2011-04-09 Duncan Sands <baldrick@free.fr>
10166 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10168 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10170 * combine.c (combine_validate_cost): Adjust comments. Set registered
10171 cost of I0 to zero at the end, if any.
10173 2011-04-08 Xinliang David Li <davidxl@google.com>
10175 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10176 to insane profile data.
10178 2011-04-08 Xinliang David Li <davidxl@google.com>
10180 * ipa-cp.c (ipcp_update_profiling): Correct
10181 negative scale factor due to insane profile data.
10183 2011-04-08 Xinliang David Li <davidxl@google.com>
10185 * final.c (dump_basic_block_info): New function.
10186 (final): Dump basic block.
10187 (final_scan_insn): Remove old dump.
10189 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10192 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10195 2011-04-08 Michael Matz <matz@suse.de>
10197 PR middle-end/48389
10198 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10200 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10201 * rtl.h (rebuild_jump_labels_chain): Declare.
10202 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10203 insns inserted on edges.
10205 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10207 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10208 * config/arm/arm-arches.def: New.
10209 * config/arm/arm-opts.h: New.
10210 * config/arm/genopt.sh: New.
10211 * config/arm/arm-tables.opt: New (generated).
10212 * config/arm/arm.c (arm_handle_option, arm_target_help,
10213 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10214 (all_architectures): Get most table contents from arm-arches.def.
10215 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10216 arm_selected_tune here.
10217 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10218 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10219 (march=, mcpu=, mtune=): Use Enum and Var.
10220 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10221 (arm.o): Update dependencies.
10223 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10225 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10227 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10228 (write_typed_alloc_defns): Likewise.
10229 (main): Calls write_typed_alloc_defns with output_header.
10231 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10233 PR inline-asm/48435
10234 * ira-color.c (setup_profitable_hard_regs): Add comments.
10235 Don't take prohibited hard regs into account.
10236 (setup_conflict_profitable_regs): Rename to
10237 get_conflict_profitable_regs.
10238 (check_hard_reg_p): Check prohibited hard regs.
10240 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10242 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10243 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10244 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10246 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10249 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10250 move from floating point to shift amount register.
10251 (emit_move_sequence): Remove secondary reload support for floating
10252 point to shift amount amount register copies.
10253 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10254 amount register copies.
10255 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10256 register, return false if mode isn't a scalar integer mode.
10257 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10259 2011-04-08 Richard Guenther <rguenther@suse.de>
10261 * gimple.c (gimple_call_flags): Remove kludge.
10263 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10265 * sel-sched.c (sel_region_init): Move call to
10266 sel_setup_region_sched_flags after setup_current_loop_nest.
10268 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10270 PR rtl-optimization/48272
10271 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10272 init_insn_reg_pressure_info. Adjust a caller.
10273 * sched-int.h (init_insn_reg_pressure_info): Declare.
10274 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10275 when sched-pressure is enabled.
10277 2011-04-08 Richard Guenther <rguenther@suse.de>
10279 * gimple.c (gimple_set_modified): Do not queue calls to
10280 MODIFIED_NORETURN_CALLS here ...
10281 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10283 2011-04-08 Richard Guenther <rguenther@suse.de>
10286 * toplev.c (lang_dependent_init): Do not open asm_out_file
10287 in WPA mode, nor perform debug machinery initialization.
10288 (finalize): Do not unlink asm_out_file in WPA mode.
10290 2011-04-08 Richard Guenther <rguenther@suse.de>
10292 * gimple.h (gimple_call_fntype): New function.
10293 (gimple_call_return_type): Use it.
10294 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10295 * gimple-low.c (gimple_check_call_args): Likewise.
10296 * gimple.c (gimple_call_flags): Likewise.
10297 (gimple_call_arg_flags): Likewise.
10298 (gimple_call_return_flags): Likewise.
10299 * tree-cfg.c (verify_gimple_call): Likewise.
10300 (do_warn_unused_result): Likewise.
10301 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10302 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10304 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10306 PR rtl-optimization/48235
10307 * sel-sched.c (code_motion_process_successors): Recompute the last
10308 insn in basic block if control flow changed.
10309 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10310 Update condition for ilist_remove.
10312 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10314 PR rtl-optimization/48302
10315 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10316 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10317 it to record added preheader blocks.
10318 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10319 on to sel_add_loop_preheaders.
10320 (sel_region_init): Move call to setup_current_loop_nest after
10323 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10326 * cfgloop.h (loop_has_exit_edges): New helper.
10327 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10329 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10330 that have no exit edges.
10332 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10334 PR rtl-optimization/48442
10335 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10336 all callers. Adjust assert.
10338 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10340 PR tree-optimization/48377
10341 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10342 is_packed to true even for types with smaller TYPE_ALIGN than
10345 2011-04-08 Richard Guenther <rguenther@suse.de>
10348 * doc/tm.texi: Re-generate.
10350 2011-04-08 Wei Guozhi <carrot@google.com>
10353 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10354 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10355 * config/arm/arm.md (*push_multi): Change the length computation to
10358 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10360 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10361 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10362 * doc/tm.texi: Regenerate.
10363 * system.h (ASM_OUTPUT_BSS): Poison.
10364 * varasm.c (asm_output_bss): Remove function.
10365 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10367 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10368 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10369 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10370 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10372 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10374 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10376 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10378 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10380 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10383 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10385 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10386 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10387 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10389 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10390 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10391 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10392 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10393 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10394 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10395 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10396 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10397 options. Don't map other m68k options manually. Don't handle
10398 old-style options as canonical.
10399 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10400 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10402 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10404 * basic-block.h (force_nonfallthru): Move to...
10405 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10406 (force_nonfallthru): ...here.
10407 * cfghooks.c (force_nonfallthru): New function.
10408 * cfgrtl.c (force_nonfallthru): Rename into...
10409 (rtl_force_nonfallthru): ...this.
10410 (commit_one_edge_insertion): Do not set AUX field.
10411 (commit_edge_insertions): Do not discover new basic blocks.
10412 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10413 (cfg_layout_rtl_cfg_hooks): Likewise.
10414 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10415 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10416 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10418 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10420 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10423 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10425 * config/i386/sse.md: Update copyright year.
10426 (avxcvtvecmode): Remove.
10427 (sse_movhlps): Merge with *avx_movhlps.
10428 (sse_movlhps): Merge with *avx_movlhps.
10429 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10430 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10431 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10432 (sse_loadhps): Merge with *avx_loadhps.
10433 (sse_storelps): Merge with *avx_storelps.
10434 (sse_loadlps): Merge with *avx_loadlps.
10435 (sse_movss): Merge with *avx_movss.
10436 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10437 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10438 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10439 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10440 (vec_set<mode>_0): Ditto.
10441 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10442 (sse4_1_insertps): Merge with *avx_insertps.
10443 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10444 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10445 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10446 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10447 (sse2_storehpd): Merge with *avx_storehpd.
10448 (sse2_loadhpd): Merge with *avx_loadhpd.
10449 (sse2_loadlpd): Merge with *avx_loadlpd.
10450 (sse2_movsd): Merge with *avx_movsd.
10451 (*vec_concatv2df): Merge with *vec_concatv2df.
10453 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10456 * combine.c (combine_instructions): Add last_combined_insn,
10457 update it if insn is after it, pass it to all try_combine calls.
10458 (try_combine): Add last_combined_insn parameter, pass it instead of
10459 i3 to propagate_for_debug.
10461 2011-04-07 Nick Clifton <nickc@redhat.com>
10463 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10464 to handle MDR <-> data register transfers.
10465 (movhi_internal): Likewise.
10467 2011-04-07 Alan Modra <amodra@gmail.com>
10469 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10470 previous stack info.
10472 2011-04-07 Tom de Vries <tom@codesourcery.com>
10475 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10476 flow_find_cross_jump. Swap variables to implement backward replacement.
10477 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10479 2011-04-07 Tom de Vries <tom@codesourcery.com>
10482 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10483 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10485 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10486 src1 or src2. Redirect edges to the last basic block. Update
10487 frequency and count on multiple basic blocks in case of fallthru.
10489 2011-04-07 Tom de Vries <tom@codesourcery.com>
10492 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10494 (old_insns_match_p): Change return type. Replace return false/true
10495 with return dir_none/dir_both. Use can_replace_by.
10496 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10497 direction from dir_p. Register replacement direction in dir, last_dir
10498 and afterlast_dir. Handle new return type of old_insns_match_p using
10499 merge_dir. Return replacement direction in dir_p.
10500 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10501 return type of old_insns_match_p.
10502 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10503 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10504 flow_find_cross_jump.
10505 * basic-block.h (enum replace_direction): New type.
10506 (flow_find_cross_jump): Add parameter to declaration.
10508 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10510 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10511 (AVXMODEDCVTPS2DQ): Ditto.
10512 (VEC_FLOAT_MODE): Ditto.
10513 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10514 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10515 (<any_logic:code><mode>3): Use VF mode iterator.
10516 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10517 Use VF mode iterator.
10518 (copysign<mode>3): Use VF mode iterator.
10519 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10520 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10521 (*<any_logic:code><MODEF:mode>3): Merge with
10522 *avx_<any_logic:code><MODEF:mode>3.
10523 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10524 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10525 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10526 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10527 (sse2_cvtdq2ps): Use %v modifier.
10528 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10529 (avx_cvtps2dq<avxmodesuffix>): Remove.
10530 (sse2_cvtps2dq): Use %v modifier.
10531 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10532 (avx_cvttps2dq<avxmodesuffix>): Remove.
10533 (sse2_cvttps2dq): Use %v modifier.
10534 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10535 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10536 (sse2_cvtsd2siq): Fix insn template.
10537 (sse2_cvtsd2siq_2): Ditto.
10538 (sse2_cvttsd2siq): Ditto.
10539 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10540 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10542 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10544 * gcov-io.c: Use GCC Runtime Library Exception.
10546 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10549 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10550 as base_reg whatever register reg has been eliminated to, instead
10551 of hardcoding STACK_POINTER_REGNUM.
10553 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10555 * doc/tm.texi.in: Document C target hooks as separate from general
10557 * doc/tm.texi: Regenerate.
10558 * genhooks.c (struct hook_desc): Add docname field.
10559 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10561 (hook_array): Include c-target.def.
10562 (emit_documentation): Use docname field in output.
10563 (emit_init_macros): Take docname argument. Only emit definitions
10564 for hooks matching docname.
10565 (main): Expect additional arguments in all cases. Pass argument
10566 to emit_init_macros.
10567 * target.def: Move initial macro definitions and comments to
10568 target-hooks-macros.h.
10569 (gcc_targetcm): Move to c-family/c-target.def.
10570 * target.h (targetcm): Move declaration to c-family/c-target.h.
10571 * targhooks.c (default_handle_c_option): Move to
10573 * targhooks.h (default_handle_c_option): Move declaration to
10574 c-family/c-common.h.
10575 * target-hooks-macros.h: New file.
10576 * config.gcc (target_has_targetcm): Define and use to add to
10577 c_target_objs and cxx_target_objs.
10578 * config/default-c.c: New file.
10579 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10580 of target.h and target-def.h.
10581 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10582 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10583 darwin_check_cfstring_format_arg): Make static.
10584 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10585 TARGET_STRING_OBJECT_REF_TYPE_P,
10586 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10587 * config/darwin-protos.h (darwin_objc_construct_string,
10588 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10590 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10591 TARGET_STRING_OBJECT_REF_TYPE_P,
10592 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10593 * config/t-darwin (darwin-c.o): Update dependencies.
10594 * system.h (TARGET_HAS_TARGETCM): Poison.
10595 * Makefile.in (TARGET_H): Update.
10596 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10597 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10598 (default-c.o): New target.
10599 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10600 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10601 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10603 (build/genhooks.o): Update dependencies.
10605 2011-04-06 Richard Guenther <rguenther@suse.de>
10607 * ipa-inline.c (enum inlining_mode): Remove.
10608 (cgraph_flatten): Use some other token.
10609 (cgraph_edge_early_inlinable_p): New function, split out from ...
10610 (cgraph_perform_always_inlining): New function, split out from ...
10611 (cgraph_decide_inlining_incrementally): ... here.
10612 (cgraph_mark_inline_edge): Adjust.
10613 (cgraph_early_inlining): Re-structure.
10614 (pass_early_inline): Require SSA form.
10616 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10617 Julian Brown <julian@codesourcery.com>
10618 Mark Shinwell <shinwell@codesourcery.com>
10620 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10621 LO_REGS only for Thumb-1.
10622 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10623 be used in short instructions when optimising for size on Thumb-2.
10625 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10627 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10628 associated with user returns to be preserved.
10630 2011-04-06 Tristan Gingold <gingold@adacore.com>
10632 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10633 symbol_queue_size, DBXOUT_DECR_NESTING,
10634 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10635 if XCOFF_DEBUGGING_INFO.
10637 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10639 * config/i386/i386.md (attribute isa): New.
10640 (attribute enabled): New.
10641 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10642 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10643 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10644 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10645 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10646 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10647 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10648 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10650 * config/i386/sse.md (VF): New mode iterator.
10654 (SSEMODEF4): Remove.
10655 (attribute sse): Handle V8SF and V4DF modes.
10656 (<absneg:code><mode>2): Use VF mode iterator.
10657 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10659 (<plusminus_insn><mode>3): Use VF mode iterator.
10660 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10661 Use VF mode iterator.
10662 (<sse>_vm<plusminus_insn><mode>3): Merge with
10663 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10664 (mul<mode>3): Use VF mode iterator.
10665 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10666 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10668 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10669 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10670 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10671 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10673 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10674 Use VF1 mode iterator.
10675 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10676 (sqrt<VF2:mode>2): New expander.
10677 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10678 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10679 and sqrtv2df2. Use VF mode iterator.
10680 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10682 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10683 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10684 Use VF1 mode iterator.
10685 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10686 (<smaxmin:code><mode>3): Use VF mode iterator.
10687 (*<smaxmin:code><mode>3_finite): Merge with
10688 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10689 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10690 (<sse>_vm<smaxmin:code><mode>2): Merge with
10691 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10692 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10694 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10696 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10697 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10698 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10699 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10700 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10702 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10703 Use VF_128 mode iterator.
10704 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10706 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10707 VF_128 mode iterator.
10708 (vcond<mode>): Use VF mode iterator.
10709 * config/i386/predicates.md (sse_comparison_operator): Merge with
10710 avx_comparison_float_operator. Do not declare as special_predicate.
10711 * config/i386/i386.c (struct builtin_description): Update for renamed
10713 (ix86_expand_args_builtin): Ditto.
10714 (ix86_expand_sse_compare_mask): Ditto.
10716 2011-04-06 Richard Guenther <rguenther@suse.de>
10718 * tree-inline.c (estimate_num_insns): For calls simply account
10719 for all passed arguments and a used return value.
10721 2011-04-06 Richard Guenther <rguenther@suse.de>
10723 PR tree-optimization/47663
10724 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10725 call_stmt_time fields.
10726 (cgraph_edge_inlinable_p): Declare.
10727 (cgraph_edge_recursive_p): New inline function.
10728 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10729 (cgraph_clone_edge): Copy it.
10730 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10731 Account for call stmt time.
10732 (cgraph_estimate_time_after_inlining): Take edge argument.
10733 (cgraph_estimate_edge_growth): Account call stmt size.
10734 (cgraph_estimate_size_after_inlining): Take edge argument.
10735 (cgraph_mark_inline_edge): Adjust.
10736 (cgraph_check_inline_limits): Likewise.
10737 (cgraph_recursive_inlining_p): Remove.
10738 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10739 (cgraph_decide_recursive_inlining): Take edge argument and
10741 (cgraph_decide_inlining_of_small_functions): Do not avoid
10742 diags for recursive inlining here.
10743 (cgraph_flatten): Adjust.
10744 (cgraph_decide_inlining_incrementally): Likewise.
10745 (estimate_function_body_sizes): Remove call cost handling.
10746 (compute_inline_parameters): Initialize caller edge call costs.
10747 (cgraph_estimate_edge_growth): New function.
10748 (cgraph_estimate_growth): Use it.
10749 (cgraph_edge_badness): Likewise.
10750 (cgraph_check_inline_limits): Take an edge argument.
10751 (cgraph_decide_inlining_of_small_functions): Adjust.
10752 (cgraph_decide_inlining): Likewise.
10753 * tree-inline.c (estimate_num_insns): Only account for call
10754 return value if it is used.
10755 (expand_call_inline): Avoid diagnostics on recursive inline
10757 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10758 (input_edge): Input edge call costs.
10760 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10762 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10764 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10766 * doc/invoke.texi (Spec Files): Fix typo.
10768 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10770 * profile.c (branch_prob): Move declaration of local variable. Remove
10771 obsolete ??? comment. Expand the location explicitly instead of using
10772 the LOCATION_FILE and LOCATION_LINE macros.
10774 2011-04-06 Wei Guozhi <carrot@google.com>
10777 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10778 (arm_cond_branch): Likewise.
10779 (arm_cond_branch_reversed): Likewise.
10780 (arm_jump): Likewise.
10781 (push_multi): Likewise.
10782 * config/arm/constraints.md (Py): New constraint.
10784 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10787 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10789 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10790 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10791 #ifdef DBX_DEBUGGING_INFO.
10793 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10796 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10797 if old and new states differ.
10799 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10801 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10802 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10803 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10804 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10805 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10806 mcfv4e): Use Alias.
10807 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10808 ColdFire options to -mcpu= options.
10810 2011-04-05 Jeff Law <law@redhat.com>
10812 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10813 check if BB is a successor of LOOP->header and return
10814 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10816 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10818 * cprop.c (struct reg_use): Remove.
10819 (reg_use_table): Make an array of RTX.
10820 (find_used_regs, constprop_register, local_cprop_pass,
10821 bypass_block): Simplify users of reg_use_table.
10822 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10823 on one of the uses found by find_used_regs.
10825 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10828 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10831 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10833 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10835 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10837 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10839 PR middle-end/48441
10840 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10842 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10844 * combine.c: Include obstack.h.
10845 (struct insn_link): Define.
10846 (uid_log_links): Adjust type.
10847 (FOR_EACH_LOG_LINK): New macro.
10848 (insn_link_obstack): Declare.
10849 (alloc_insn_link): Define.
10850 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10851 type of link variables.
10852 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10853 (try_combine, record_promoted_values, distribute_notes): Likewise.
10854 (distribute_links): Likewise. Tweak prototype.
10855 (clear_log_links): Delete.
10856 (adjust_for_new_dest): Call alloc_insn_link.
10857 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10859 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10861 * gcse.c (modify_mem_list): Convert to an array of VECs.
10862 (canon_modify_mem_list, compute_transp): Tweak formatting.
10863 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10864 (load_killed_in_block_p): Likewise.
10865 (record_last_mem_set_info): Likewise.
10866 (clear_modify_mem_tables): Likewise.
10868 2011-04-05 Tom de Vries <tom@codesourcery.com>
10870 PR middle-end/48461
10871 * function.c (emit_use_return_register_into_block): Only define if
10874 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10876 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10878 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10880 * config/rx/rx-opts.h: New.
10881 * config/rx/rx.c (rx_cpu_type): Remove.
10882 (rx_handle_option): Don't assert that global structures are in
10883 use. Access variables via opts pointer. Defer most handling of
10884 OPT_mint_register_. Use error_at.
10885 (rx_option_override): Handle deferred OPT_mint_register_ here.
10886 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10887 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10888 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10889 (rx_cpu_types): New Enum and EnumValue entries.
10890 (mint-register=): Use Defer and use Var accordingly.
10892 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10894 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10895 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10896 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10898 (debug_free_queue, debug_nesting, symbol_queue_index):
10900 * dbxout.c: ...to here. Make static.
10902 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10904 * gcse.c (modify_pair): Define. Define a VEC of it.
10905 (canon_modify_mem_list): Convert to an array of VECs.
10906 (free_insn_expr_list_list): Delete.
10907 (clear_modify_mem_tables): Call VEC_free instead.
10908 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10909 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10910 (canon_list_insert, compute_transp): Likewise.
10912 2011-04-05 Tom de Vries <tom@codesourcery.com>
10915 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10918 2011-04-05 Tom de Vries <tom@codesourcery.com>
10921 * function.c (emit_use_return_register_into_block): New function.
10922 (thread_prologue_and_epilogue_insns): Use
10923 emit_use_return_register_into_block.
10925 2011-04-05 Tom de Vries <tom@codesourcery.com>
10928 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10931 2011-04-05 Tom de Vries <tom@codesourcery.com>
10933 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10935 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10937 * config/arm/arm.md (define_constants for unspec): Replace with
10939 (define_constants for unspecv): Replace with define_c_enum.
10940 * config/arm/neon.md (define_constants for unspec): Replace with
10943 2011-04-04 Richard Henderson <rth@redhat.com>
10946 * dwarf2out.c (output_line_info): Always emit line info from
10947 at least one section.
10948 (dwarf2out_init): Create text_section_line_info here ...
10949 (set_cur_line_info_table): ... not here.
10951 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10954 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10957 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10959 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10961 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10962 (expr_equiv_p): Remove.
10963 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10964 (hash_scan_set): Update call to insert_set_in_table.
10965 (dump_hash_table): Dump <dest, src> pair.
10966 (lookup_set): Simplify. Lookup <dest, src> pair.
10967 (compute_transp): Remove, fold heavily simplified code into...
10968 (compute_local_properties): ...here. Expect COMP and TRANSP
10970 (find_avail_set): Take set directly from struct expr.
10971 (find_bypass-set): Likewise.
10972 (bypass_block): Likewise.
10973 (cprop_insn): Likewise. Remove redundant INSN_P test.
10975 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10976 checks on form of COND from find_implicit_sets to here.
10977 (find_implicit_sets): Cleanup control flow. Split critical edges
10978 if it exposes implicit sets. Allocate/resize implicit_sets as
10980 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10981 changed something. Run df_analyze after find_implicit_sets if any
10982 edges were split. Do not allocate implicit_sets here.
10984 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10985 (gcse_obstack): Renamed to cprop_obstack.
10986 (GNEW, GNEWVEC, GNEWVAR): Remove.
10988 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10989 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10990 (gcse_alloc): Likewise, and rename to cprop_alloc.
10991 (alloc_gcse_men, free_gcse_mem): Remove.
10992 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10993 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10994 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10996 * cprop.c (oprs_not_set_p): Remove.
10997 (mark_set, mark_clobber): Remove.
10998 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10999 (reg_not_set_p): New function.
11000 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11001 (cprop_insn): Likewise.
11002 (cprop_jump): Use FOR_EACH_EDGE.
11004 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11007 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11008 (rank_for_schedule): Use scheduled_insns vector instead of
11009 last_scheduled_insn.
11010 (ok_for_early_queue_removal): Likewise.
11011 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11013 (choose_ready): Likewise.
11014 (commit_schedule): Use VEC_iterate.
11015 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11016 a dbg_cnt, use it and ensure the first insn is in the ready list.
11017 (haifa_sched_init): Allocate scheduled_insns.
11018 (sched_extend_ready_list): Don't allocate it; reserve space.
11019 (haifa_sched_finish): Free it.
11021 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11023 * optc-gen.awk: Always remove type from Variable entry before
11024 recording in var_seen.
11026 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11028 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11029 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11030 call to tidy_fallthru_edges.
11032 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11034 * doc/options.texi (ToLower): Document.
11035 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11036 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11037 * opts.h (cl_option): Add cl_tolower field.
11038 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11039 arguments with lowercase strings.
11040 * config/rx/rx.opt (mcpu=): Add ToLower.
11041 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11044 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11046 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11048 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11050 * config/vax/vax.c: Include reload.h.
11052 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11054 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11055 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11056 (sparc_preferred_reload_class): New function.
11058 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11061 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11062 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11064 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11066 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11067 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11069 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11071 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11072 (ASM_OUTPUT_ALIGNED_BSS): Define.
11074 2011-04-03 Michael Matz <matz@suse.de>
11076 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11077 and next_slot members.
11078 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11079 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11080 (lto_streamer_cache_append): Declare.
11081 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11082 unsigned index, remove offset parameter, ensure that we append
11083 or update existing entries.
11084 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11085 parameter, update next_slot for append.
11086 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11088 (lto_streamer_cache_insert_at): Likewise.
11089 (lto_streamer_cache_append): New function.
11090 (lto_streamer_cache_lookup): Use unsigned index.
11091 (lto_streamer_cache_get): Likewise.
11092 (lto_record_common_node): Don't test tree_node_can_be_shared.
11093 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11094 (lto_streamer_cache_delete): Don't free offsets member.
11095 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11096 (lto_output_string_with_length): Use lto_output_data_stream.
11097 (lto_output_tree_header): Remove ix parameter, don't write it.
11098 (lto_output_builtin_tree): Likewise.
11099 (lto_write_tree): Adjust callers to above, don't track and write
11100 offset, write unsigned index.
11101 (output_unreferenced_globals): Don't emit all global vars.
11102 (write_global_references): Use unsigned indices.
11103 (lto_output_decl_state_refs): Likewise.
11104 (write_symbol): Likewise.
11105 * lto-streamer-in.c (lto_input_chain): Move earlier.
11106 (input_function): Use unsigned index.
11107 (input_alias_pairs): Don't read and then ignore all global vars.
11108 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11109 don't pass it back, use lto_streamer_cache_append.
11110 (lto_register_var_decl_in_symtab): Use unsigned index.
11111 (lto_register_function_decl_in_symtab): Likewise.
11112 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11114 (lto_get_builtin_tree): Don't read index, use
11115 lto_streamer_cache_append.
11116 (lto_read_tree): Adjust call to lto_materialize_tree.
11118 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11119 don't use function calls in arguments to MIN.
11121 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11124 * gimple.c (gimple_type_leader_entry): Mark deletable.
11126 2011-04-03 Alan Modra <amodra@gmail.com>
11128 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11130 2011-04-03 Michael Matz <matz@suse.de>
11132 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11134 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11136 2011-04-03 Michael Matz <matz@suse.de>
11138 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11139 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11140 without function context.
11141 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11142 current_function_decl and cfun.
11144 2011-04-03 Michael Matz <matz@suse.de>
11146 * tree.c (decl_init_priority_insert): Don't create entry for
11148 (decl_fini_priority_insert): Ditto.
11149 (fields_compatible_p, find_compatible_field): Remove.
11150 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11151 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11153 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11155 * combine.c (try_combine): Remove useless local variable.
11157 2011-04-03 Richard Guenther <rguenther@suse.de>
11158 Ira Rosen <ira.rosen@linaro.org>
11160 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11161 non-variable offsets and compare the remaining bases of the two
11162 accesses instead of looking for exact same data-ref.
11164 2011-04-02 Kai Tietz <ktietz@redhat.com>
11167 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11169 * i386.c (ix86_is_msabi_thiscall): New helper function.
11170 (ix86_is_type_thiscall): New helper function.
11171 (ix86_comp_type_attributes): Handle thiscall for method-functions
11173 (init_cumulative_args): Likewise.
11174 (find_drap_reg): Likewise.
11175 (ix86_static_chain): Likewise.
11176 (x86_this_parameter): Likewise.
11177 (x86_output_mi_thunk): Likewise.
11179 2011-04-01 Olivier Hainque <hainque@adacore.com>
11180 Nicolas Setton <setton@adacore.com>
11181 Eric Botcazou <ebotcazou@adacore.com>
11183 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11184 (add_gnat_descriptive_type_attribute): New function.
11185 (gen_array_type_die): Call it.
11186 (gen_enumeration_type_die): Likewise.
11187 (gen_struct_or_union_type_die): Likewise.
11188 (modified_type_die): Likewise.
11189 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11190 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11191 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11193 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11196 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11197 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11200 2011-03-17 Richard Guenther <rguenther@suse.de>
11203 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11204 origin for decls in other ltrans units.
11205 (input_varpool_node): Likewise.
11207 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11209 PR middle-end/48335
11210 * expr.c (expand_assignment): Handle all possibilities
11211 if TO_RTX is CONCAT.
11212 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11213 (store_split_bit_field): If SUBREG_REG (op0) or
11214 op0 itself has smaller mode than word, return it
11215 for offset 0 and const0_rtx for out-of-bounds stores.
11216 If word is const0_rtx, skip it.
11218 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11220 * config/h8300/h8300.c (print_operand_address): Rename to...
11221 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11222 Call h8300_print_operand and h8300_print_operand_address instead of
11223 print_operand and print_operand_address. Declare.
11224 (print_operand): Renake to...
11225 (h8300_print_operand): ...this. Make static. Adjust comments.
11226 Call h8300_print_operand instead of print_operand. Declare.
11227 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11228 (h8300_register_move_cost): Likewise.
11229 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11230 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11231 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11232 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11233 * config/h8300/h8300-protos.h (print_operand): Delete.
11234 (print_operand_address): Delete.
11236 2011-04-01 Richard Henderson <rth@redhat.com>
11239 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11240 in strict mode before dwarf4. Re-order tests to early out
11241 before switching sections.
11243 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11245 * config/h8300/constraints.md: New file.
11246 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11247 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11248 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11249 * config/h8300/predicates.md (bit_operand): Likewise.
11250 (incdec_operand): Use satisfies_constraint_M and
11251 satisfies_constraint_O. Don't use C code block.
11252 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11253 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11254 (compute_mov_length): Use satisfies_constraint_G.
11255 (fix_bit_operand): Use satisfies_constraint_U.
11256 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11257 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11258 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11259 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11260 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11261 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11262 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11263 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11264 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11265 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11266 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11267 (EXTRA_MEMORY_CONSTRAINT): Delete.
11269 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11270 Michael Meissner <meissner@linux.vnet.ibm.com>
11273 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11274 operands, as per the specifications.
11276 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11277 (vec_extract_evenv4sf): Ditto.
11278 (vec_extract_evenv8hi): Ditto.
11279 (vec_extract_evenv16qi): Ditto.
11280 (vec_extract_oddv4si): Ditto.
11282 2011-03-31 Mark Wielaard <mjw@redhat.com>
11284 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11285 high_pc attribute if the CU has no associated code. Only output
11286 DW_AT_entry_pc for CU if not generating strict dwarf and
11289 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11291 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11292 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11294 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11295 * final.c (final_start_function): Call the new function rather
11296 than using a NULL argument for dwarf2out_frame_debug.
11298 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11299 that contains the prologue.
11301 * haifa-sched.c (queue_insn): New arg REASON. All callers
11302 changed. Print it in debugging output.
11304 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11306 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11307 Split most of the code into...
11308 (begin_move_insn): ... here. New function.
11309 (ebb_sched_info): Add a pointer to it.
11310 * haifa-sched.c (scheduled_insns): New static variable.
11311 (sched_extend_ready_list): Allocate it.
11312 (schedule_block): Use it to record the order of scheduled insns.
11313 Perform RTL changes to move insns only after all scheduling
11314 decisions have been made.
11315 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11316 begin_move_insn field.
11317 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11318 * sched-int.h (struct haifa_sched_info): Remove second argument
11319 from begin_schedule_ready hook. Add new member begin_move_insn.
11320 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11321 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11323 * haifa-sched.c (prune_ready_list): New function, broken out of
11325 (schedule_block): Use it.
11327 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11329 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11331 2011-04-01 Kai Tietz <ktietz@redhat.com>
11333 * config.gcc (*-*-mingw*): Allow as option the
11334 posix threading model.
11335 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11336 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11338 (CPP_SPEC): Add pthread/no-pthread handling.
11339 (LIB_SPEC): Likewise.
11340 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11341 (LIB_SPEC): Likewise.
11342 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11343 flag to pass -pthread option for shared libgcc build.
11344 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11345 for shared libgcc build.
11346 * config/i386/t-mingw-pthread: New file.
11347 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11348 New define to enable use of library pthread by default.
11349 * config/i386/mingw.opt (pthread): New driver option.
11350 (no-pthread): New driver option.
11351 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11352 * config/i386/mingw-w64.opt: Likewise.
11354 2011-04-01 Gary Funck <gary@intrepid.com>
11356 * c-decl.c (grokdeclarator): Fix formatting.
11358 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11360 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11361 instead of n_operands.
11362 (set_storage_via_setmem): Likewise.
11363 * optabs.c (maybe_gen_insn): Likewise.
11364 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11365 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11366 (mips_expand_builtin_direct): Likewise.
11367 * config/spu/spu.c (expand_builtin_args): Likewise.
11369 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11371 * recog.h (insn_data_d): Add n_generator_args.
11372 * genoutput.c (data): Likewise.
11373 (output_insn_data): Print it.
11374 (max_opno, num_dups): Delete.
11375 (scan_operands): Just fill in "d->operand[...]".
11376 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11378 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11380 * gensupport.h (pattern_stats): New structure.
11381 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11382 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11383 (max_operand_1, max_operand_vec): Delete.
11384 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11386 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11388 * emit-rtl.c (emit_pattern_after_setloc): New function.
11389 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11390 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11391 (emit_pattern_after): New function.
11392 (emit_insn_after, emit_jump_insn_after): Call it.
11393 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11394 (emit_pattern_before_setloc): New function.
11395 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11396 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11398 (emit_pattern_before): New function.
11399 (emit_insn_before, emit_jump_insn_before): Call it.
11400 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11402 2011-03-31 Richard Henderson <rth@redhat.com>
11404 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11405 (dw_separate_line_info_entry): Remove.
11406 (enum dw_line_info_opcode): New.
11407 (dw_line_info_entry): Use it.
11408 (dw_line_info_table, dw_line_info_table_p): New.
11409 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11410 (line_info_table, line_info_label_num): Remove.
11411 (line_info_table_in_use): Remove.
11412 (separate_line_info_table): Remove.
11413 (separate_line_info_table_allocated): Remove.
11414 (separate_line_info_table_in_use): Remove.
11415 (LINE_INFO_TABLE_INCREMENT): Remove.
11416 (line_info_label_num): New.
11417 (cur_line_info_table): New.
11418 (text_section_line_info, cold_text_section_line_info): New.
11419 (separate_line_info): New.
11420 (SEPARATE_LINE_CODE_LABEL): Remove.
11421 (print_dwarf_line_table): Remove.
11422 (debug_dwarf): Don't dump it.
11423 (output_one_line_info_table): New.
11424 (output_line_info): Use it.
11425 (new_line_info_table): New.
11426 (set_cur_line_info_table): New.
11427 (dwarf2out_switch_text_section): Use it.
11428 (dwarf2out_begin_function): Likewise.
11429 (push_dw_line_info_entry): New.
11430 (dwarf2out_source_line): Rewrite for new line info tables.
11431 (dwarf2out_init): Remove dead initailizations.
11433 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11435 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11437 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11438 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11439 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11440 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11441 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11442 * opt-functions.awk (flag_init, switch_bit_fields): New.
11443 (switch_flags): Don't handle flags moved to bit-fields. Don't
11444 generate CL_MISSING_OK or CL_SAVE.
11445 * optc-gen.awk: Update to generate bit-field output as well as
11447 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11448 bit-field instead of CL_REJECT_DRIVER flag.
11449 * opts-common.c (generate_canonical_option,
11450 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11451 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11452 instead of CL_REJECT_NEGATIVE flag.
11453 * toplev.c (print_switch_values): Use cl_report bit-field instead
11456 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11458 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11459 a zero minimum index only if it is redundant.
11461 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11463 PR rtl-optimization/48381
11464 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11465 instead of ira_class_hard_reg_index for calculating conflicting
11468 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11470 * cprop.c: Clean up hash table building.
11471 (reg_avail_info): Remove.
11472 (oprs_available_p): Remove.
11473 (record_last_reg_set_info): Remove.
11474 (record_last_set_info): Remove.
11475 (reg_available_p): New function.
11476 (gcse_constant_p): Do not treat unfolded conditions as constants.
11477 (make_set_regs_unavailable): New function.
11478 (hash_scan_set): Simplify with new reg_available_p.
11479 (compute_hash_table_work): Traverse insns stream only once.
11480 Do not compute reg_avail_info. Traverse insns in reverse order.
11481 Record implicit sets after recording explicit sets from the block.
11483 2011-03-31 Michael Matz <matz@suse.de>
11485 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11487 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11489 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11490 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11491 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11492 (h8300_mode_dependent_address_p): New function.
11493 (h8300_get_index): Make static.
11495 2011-03-31 Jeff Law <law@redhat.com>
11497 * reload1.c (elimination_effects): Fix typo in recent change.
11499 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11500 typo potentially leading to null pointer dereference.
11502 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11503 (setup_save_areas): Corresponding changes to avoid useless
11506 * jump.c (reversed_comparison_code_parts): Avoid successive return
11507 statements when REVERSE_CONDITION is defined.
11509 * expr.c (expand_assignment): Avoid useless assignments.
11510 (expand_expr_real_1): Likewise.
11511 (expand_expr_real_2): Avoid useless statements.
11513 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11515 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11517 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11520 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11522 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11525 * doc/tm.texi.in (TARGET_VERSION): Remove.
11526 * doc/tm.texi: Regenerate.
11527 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11528 * collect2.c (main): Don't use TARGET_VERSION.
11529 * mips-tdump.c (main): Don't use TARGET_VERSION.
11530 * mips-tfile.c (main): Don't use TARGET_VERSION.
11531 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11532 * config/rs6000/vxworksae.h: Remove.
11533 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11534 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11535 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11536 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11537 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11538 * config/arm/arm.h (TARGET_VERSION): Remove.
11539 * config/arm/coff.h (TARGET_VERSION): Remove.
11540 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11541 * config/arm/elf.h (TARGET_VERSION): Remove.
11542 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11543 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11544 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11545 * config/arm/pe.h (TARGET_VERSION): Remove.
11546 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11547 * config/arm/semi.h (TARGET_VERSION): Remove.
11548 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11549 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11550 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11551 * config/avr/avr.h (TARGET_VERSION): Remove.
11552 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11553 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11554 * config/frv/frv.h (TARGET_VERSION): Remove.
11555 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11556 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11557 * config/i386/darwin.h (TARGET_VERSION): Remove.
11558 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11559 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11560 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11561 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11562 * config/i386/gnu.h (TARGET_VERSION): Remove.
11563 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11564 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11565 * config/i386/linux.h (TARGET_VERSION): Remove.
11566 * config/i386/linux64.h (TARGET_VERSION): Remove.
11567 * config/i386/lynx.h (TARGET_VERSION): Remove.
11568 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11569 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11570 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11571 * config/i386/netware.h (TARGET_VERSION): Remove.
11572 * config/i386/nto.h (TARGET_VERSION): Remove.
11573 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11574 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11575 * config/ia64/elf.h (TARGET_VERSION): Remove.
11576 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11577 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11578 * config/ia64/linux.h (TARGET_VERSION): Remove.
11579 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11580 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11581 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11582 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11583 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11584 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11585 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11586 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11587 * config/m68k/linux.h (TARGET_VERSION): Remove.
11588 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11589 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11590 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11591 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11592 * config/mep/mep.h (TARGET_VERSION): Remove.
11593 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11594 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11595 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11596 * config/mips/linux.h (TARGET_VERSION): Remove.
11597 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11598 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11599 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11600 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11601 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11602 * config/pa/pa.h (TARGET_VERSION): Remove.
11603 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11604 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11605 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11606 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11607 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11608 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11609 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11610 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11611 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11612 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11613 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11614 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11615 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11616 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11617 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11618 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11619 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11620 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11621 * config/s390/linux.h (TARGET_VERSION): Remove.
11622 * config/s390/s390.h (TARGET_VERSION): Remove.
11623 * config/s390/tpf.h (TARGET_VERSION): Remove.
11624 * config/score/score.h (TARGET_VERSION): Remove.
11625 * config/sh/linux.h (TARGET_VERSION): Remove.
11626 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11627 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11628 * config/sh/sh.h (TARGET_VERSION): Remove.
11629 * config/sh/sh64.h (TARGET_VERSION): Remove.
11630 * config/sh/superh.h (TARGET_VERSION): Remove.
11631 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11632 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11633 * config/sparc/linux.h (TARGET_VERSION): Remove.
11634 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11635 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11636 TARGET_NAME32, TARGET_NAME): Remove.
11637 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11638 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11639 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11640 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11641 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11642 * config/spu/spu.h (TARGET_VERSION): Remove.
11643 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11644 * config/v850/v850.h (TARGET_VERSION): Remove.
11645 * config/vax/linux.h (TARGET_VERSION): Remove.
11646 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11647 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11648 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11650 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11653 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11654 frame-related from frame-unrelated adjustments to the stack pointer.
11656 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11658 * common.opt (fdebug-types-section): Move earlier.
11659 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11661 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11663 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11666 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11668 * tree.h (CASE_CHAIN): Define.
11669 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11670 (gimple_redirect_edge_and_branch): Likewise.
11672 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11674 PR middle-end/48367
11675 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11678 2011-03-30 Jeff Law <law@redhat.com>
11680 * PR bootstrap/48371
11681 * reload1.c (reload): Fix botch in last change.
11683 * reload.h (struct reload): Fix typo introduced in last change.
11685 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11687 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11688 Undocumented. Remove help text.
11689 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11692 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11694 * doc/options.texi (NegativeAlias): Document.
11695 (Alias): Mention NegativeAlias.
11696 * opt-functions.awk: Handle NegativeAlias.
11697 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11698 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11699 * opts.h (CL_NEGATIVE_ALIAS): Define.
11700 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11701 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11703 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11705 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11706 mno-spe and mno-isel instead of mspe=no and -misel=no.
11708 2011-03-29 Mark Wielaard <mjw@redhat.com>
11710 * common.opt (fdebug-types-section): New flag.
11711 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11712 * dwarf2out.c (use_debug_types): New define.
11713 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11714 (print_die): Guard output of type unit signatures using
11716 (build_abbrev_table): Replace assert of dwarf_version >= 4
11717 with assert on use_debug_types.
11718 (size_of_die): Likewise.
11719 (unmark_dies): Likewise.
11720 (value_format): Decide AT_ref_external form on use_debug_types.
11721 (output_die): Replace dwarf_version version check guard with
11722 use_debug_types where appropriate.
11723 (modified_type_die): Likewise.
11724 (gen_reference_type_die): Likewise.
11725 (dwarf2out_start_source_file): Likewise.
11726 (dwarf2out_end_source_file): Likewise.
11727 (prune_unused_types_walk_attribs): Likewise.
11728 (dwarf2out_finish): Likewise.
11730 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11732 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11734 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11736 PR rtl-optimization/48332
11737 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11738 mode of input operand N and modeN to its actual mode.
11740 2011-03-30 Jeff Law <law@redhat.com>
11742 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11743 define accessor macro.
11744 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11745 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11746 (reg_equiv_init): Likewise.
11747 (reg_equivs_size): New variable.
11748 (reg_equiv_init_size): Remove.
11749 (allocate_initial_values): Move prototype to here from....
11750 * integrate.h (allocate_initial_values): Remove prototype.
11751 * integrate.c: Include reload.h.
11752 (allocate_initial_values): Corresponding changes.
11753 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11754 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11755 (update_equiv_regs): Corresponding changes.
11756 (ira): Corresponding changes.
11757 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11758 (push_secondary_reload): Corresponding changes.
11759 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11760 (make_memloc, find_reloads_address): Corresponding changes.
11761 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11762 (find_reloads_address_1): Corresponding changes.
11763 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11764 (refers_to_regno_for_reload_p): Corresponding changes.
11765 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11766 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11767 * reload1.c: Include ggc.h.
11768 (grow_reg_equivs): New function.
11769 (replace_pseudos_in, reload): Corresponding changes.
11770 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11771 (eliminate_regs_1, elimination_effects): Corresponding changes.
11772 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11773 (delete_output_reload): Likewise.
11774 * caller-save.c (mark_referenced_regs): Corresponding changes.
11775 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11776 * frv/predicates.md (frv_load_operand): Corresponding changes.
11777 * microblaze/microblaze.c (double_memory_operand): Corresponding
11779 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11780 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11781 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11782 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11783 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11785 * pa/pa.c (emit_move_sequence): Corresponding changes.
11786 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11788 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11791 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11792 structure modes. Don't check neon_vector_mem_operand for
11793 vector or structure modes.
11795 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11796 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11799 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11800 operand 1 and reshuffle the operands to match.
11801 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11803 2011-03-30 Christian Schüler <cschueler@gmx.de>
11806 * config/c.opt (F): Added 'Driver' to -F option.
11809 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11811 * config/darwin.opt: Added '-arch' option.
11813 2011-03-30 Nick Clifton <nickc@redhat.com>
11815 * config/rx/rx.md: Add peepholes and patterns to combine
11816 extending loads and simple arithmetic instructions.
11817 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11818 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11819 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11820 modes to use pre-decrement and post-increment addressing.
11821 (rx_is_restricted_memory_address): Add range checking of REG+INT
11823 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11824 (rx_memory_move_cost): Adjust cost of stores.
11825 (rx_adjust_insn_length): New function.
11827 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11830 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11831 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11832 matching arg00/arg01 types.
11834 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11836 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11837 last_location to UNKNOWN_LOCATION.
11839 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11842 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11845 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11846 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11849 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11850 Init(PROCESSOR_V7).
11851 (sparc_cpu): Likewise.
11852 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11855 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11858 PR middle-end/48342
11859 PR rtl-optimization/48345
11860 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11861 hard regs for given mode from profitable regs when doing secondary
11864 2011-03-29 Jeff Law <law@redhat.com>
11867 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11868 do_not_duplicate field.
11869 (lookup_redirection_data): Corresponding changes.
11870 (create_duplicates): Always create a template block.
11871 (redirect_edges): Remove code which reused the original block
11872 when it was going to become unreachable code.
11873 (thread_block): Don't set do_not_duplicate field.
11875 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11877 * lto-opts.c (register_user_option_p, lto_register_user_option):
11878 Make type argument unsigned.
11879 * lto-streamer.h (lto_register_user_option): Make type argument
11881 * opth-gen.awk: Make CL_* macros unsigned.
11882 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11883 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11884 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11885 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11886 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11887 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11888 (find_opt): Make lang_mask argument unsigned.
11890 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11892 PR rtl-optimization/48331
11893 PR rtl-optimization/48334
11894 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11895 for any used algorithm.
11897 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11899 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11902 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11904 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11905 (alpha_option_override): Don't set alpha_sr_alias_set.
11906 (emit_frame_store_1): Use gen_frame_mem rather than calling
11908 (alpha_expand_epilogue): Ditto.
11910 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11912 PR tree-optimization/48290
11913 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11914 vectorization, check that relevant phis in the basic block after
11915 the inner loop are really inner loop's exit phis.
11917 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11920 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11921 (cached_dw_loc_list_def): New structure.
11922 (cached_dw_loc_list): New typedef.
11923 (cached_dw_loc_list_table): New variable.
11924 (cached_dw_loc_list_table_hash): New function.
11925 (cached_dw_loc_list_table_eq): Likewise.
11926 (add_location_or_const_value_attribute): Take a bool cache_p.
11927 Cache the list when the parameter is true.
11928 (gen_formal_parameter_die): Update caller.
11929 (gen_variable_die): Likewise.
11930 (dwarf2out_finish): Likewise.
11931 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11932 while generating debug info for the decl.
11933 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11934 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11935 (resolve_addr): Cache the result of resolving a chain of
11938 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11940 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11941 conflict object hard regset nodes have intersecting hard reg sets.
11943 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11944 after regstat_init_n_sets_and_refs.
11946 * ira.c: Add more comments at the top.
11947 (setup_stack_reg_pressure_class, setup_pressure_classes):
11948 Add comments how we compute the register pressure classes.
11949 (setup_allocno_and_important_classes): Add more comments.
11950 (setup_class_translate_array, reorder_important_classes)
11951 (setup_reg_class_relations): Add comments.
11953 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11956 * ira-color.c: Add 2011 to the Copyright line.
11957 (assign_hard_reg): Add more comments.
11958 (improve_allocation): Ditto.
11960 * ira-costs.c: Add 2011 to the Copyright line.
11961 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11963 (setup_regno_cost_classes_by_mode): Ditto.
11965 Initial patches from ira-improv branch:
11967 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11969 * ira-build.c (ira_create_object): Remove initialization of
11970 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11971 (ira_create_allocno): Remove initialization of
11972 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11973 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11974 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11975 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11976 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11977 Initialize ALLOCNO_ADD_DATA.
11978 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11979 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11981 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11982 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11984 * ira.c (ira_reallocate): Remove.
11985 (setup_pressure_classes): Call
11986 ira_init_register_move_cost_if_necessary. Use
11987 ira_register_move_cost instead of ira_get_register_move_cost.
11988 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11989 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11991 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11992 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11993 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11994 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11995 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11996 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11998 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11999 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12000 (struct allocno_color_data): New.
12001 (allocno_color_data_t): New typedef.
12002 (allocno_color_data): New definition.
12003 (ALLOCNO_COLOR_DATA): New macro.
12004 (struct object_color_data): New.
12005 (object_color_data_t): New typedef.
12006 (object_color_data): New definition.
12007 (OBJECT_COLOR_DATA): New macro.
12008 (update_copy_costs, calculate_allocno_spill_cost): Call
12009 ira_init_register_move_cost_if_necessary. Use
12010 ira_register_move_cost instead of ira_get_register_move_cost.
12011 (move_spill_restore, update_curr_costs): Ditto.
12012 (allocno_spill_priority): Make it inline.
12013 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12014 (struct coalesce_data, coalesce_data_t): New.
12015 (allocno_coalesce_data): New definition.
12016 (ALLOCNO_COALESCE_DATA): New macro.
12017 (merge_allocnos, coalesced_allocno_conflict_p): Use
12018 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12019 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12020 (coalesce_allocnos): Ditto.
12021 (setup_coalesced_allocno_costs_and_nums): Ditto.
12022 (collect_spilled_coalesced_allocnos): Ditto.
12023 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12024 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12025 (coalesce_spill_slots): Ditto.
12026 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12027 free allocno_coalesce_data.
12029 * ira-conflicts.c: Fix formatting.
12030 (process_regs_for_copy): Call
12031 ira_init_register_move_cost_if_necessary. Use
12032 ira_register_move_cost instead of ira_get_register_move_cost.
12033 (build_object_conflicts): Optimize.
12035 * ira-costs.c (record_reg_classes): Optimize. Call
12036 ira_init_register_move_cost_if_necessary. Use
12037 ira_register_move_cost, ira_may_move_in_cost, and
12038 ira_may_move_out_cost instead of ira_get_register_move_cost and
12039 ira_get_may_move_cost.
12040 (record_address_regs): Ditto.
12041 (scan_one_insn): Optimize.
12042 (find_costs_and_classes): Optimize.
12043 (process_bb_node_for_hard_reg_moves): Call
12044 ira_init_register_move_cost_if_necessary. Use
12045 ira_register_move_cost instead of ira_get_register_move_cost.
12047 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12048 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12049 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12050 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12052 (ira_initiate_emit_data, ira_finish_emit_data)
12053 (create_new_allocno): New functions.
12054 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12055 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12056 Use ira_register_move_cost instead of ira_get_register_move_cost.
12058 * ira-int.h: Fix some comments.
12059 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12060 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12061 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12062 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12064 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12065 bitfield after mode. Make hard_regno a short int. Make
12066 hard_regno short. Remove first_coalesced_allocno and
12067 next_coalesced_allocno. Move mem_optimized_dest_p,
12068 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12069 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12070 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12071 temp, colorable_p. Add new member add_data.
12072 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12073 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12074 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12075 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12076 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12077 (ALLOCNO_ADD_DATA): New macro.
12078 (ira_emit_data_t): New typedef.
12079 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12080 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12081 from struct ira_allocno.
12082 (ALLOCNO_EMIT_DATA): New macro.
12083 (ira_allocno_emit_data, allocno_emit_reg): New.
12084 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12085 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12086 (OBJECT_ADD_DATA): New macro.
12087 (ira_reallocate): Remove.
12088 (ira_initiate_emit_data, ira_finish_emit_data): New.
12089 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12090 (ira_init_register_move_cost_if_necessary): New.
12091 (ira_object_conflict_iter_next): Merge into
12092 ira_object_conflict_iter_cond.
12093 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12095 * ira-live.c (process_single_reg_class_operands): Call
12096 ira_init_register_move_cost_if_necessary. Use
12097 ira_register_move_cost instead of ira_get_register_move_cost.
12099 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12101 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12103 * ira-costs.c: Fix formatting.
12104 (cost_classes, cost_classes_num): Remove.
12105 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12106 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12107 (cost_classes_del, cost_classes_htab): New.
12108 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12109 (initiate_regno_cost_classes, setup_cost_classes): New.
12110 (setup_regno_cost_classes_by_aclass): New.
12111 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12112 (record_reg_classes): Use regno_cost_classes instead of
12113 cost_classes. Move checking opposite operand up.
12114 (record_address_regs): Use regno_cost_classes
12115 instead of cost_classes.
12116 (scan_one_insn): Ditto. Use always general register.
12117 (print_allocno_costs): Use regno_cost_classes instead of
12119 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12120 (find_costs_and_classes): Set up cost classes for each registers.
12121 Use also their mode for this. Use regno_cost_classes instead of
12123 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12125 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12126 (ira_costs, ira_set_pseudo_classes): Call
12127 initiate_regno_cost_classes and finish_regno_cost_classes.
12129 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12131 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12133 * target.def (ira_cover_classes): Remove.
12135 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12137 * doc/tm.texi.in: Ditto.
12139 * ira-conflicts.c: Remove mentioning cover classes from the file.
12140 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12141 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12143 * targhooks.c (default_ira_cover_classes): Remove.
12145 * targhooks.h (default_ira_cover_classes): Ditto.
12147 * haifa-sched.c: Remove mentioning cover classes from the file.
12148 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12149 ira_pressure_classes and ira_pressure_classes_num instead of
12150 ira_reg_class_cover_size and ira_reg_class_cover. Use
12151 sched_regno_pressure_class instead of sched_regno_cover_class.
12152 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12153 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12155 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12156 classes from the file.
12157 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12158 (struct object_hard_regs, struct object_hard_regs_node): New.
12159 (struct ira_object): New members profitable_hard_regs,
12160 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12161 (struct ira_allocno): Rename cover_class to aclass. Rename
12162 cover_class_cost and updated_cover_class_cost to class_cost and
12163 updated_class_cost. Remove splay_removed_p and
12164 left_conflict_size. Add new members colorable_p.
12165 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12166 (ALLOCNO_COLORABLE_P): New macro.
12167 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12168 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12169 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12170 (OBJECT_...): Rename parameter C to O.
12171 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12172 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12173 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12174 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12175 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12176 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12177 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12178 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12179 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12180 x_ira_reg_class_subunion.
12181 (ira_max_memory_move_cost, ira_max_register_move_cost)
12182 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12183 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12184 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12185 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12186 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12187 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12188 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12189 (ira_tune_allocno_costs_and_cover_classes): Rename to
12190 ira_tune_allocno_costs.
12191 (ira_debug_hard_regs_forest): New.
12192 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12193 (ira_object_conflict_iter_next): Fix comments.
12194 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12195 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12196 cover_class to aclass.
12197 (ira_allocate_and_accumulate_costs): Ditto.
12198 (ira_allocate_and_set_or_copy_costs): Ditto.
12200 * opts.c (decode_options): Remove ira_cover_class check.
12202 * ira-color.c: Remove mentioning cover classes from the file. Use
12203 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12204 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12205 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12206 (splay-tree.h): Remove include.
12207 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12208 before copy_freq_compare_func.
12209 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12210 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12212 (hard_regs_roots, hard_regs_node_vec): Ditto.
12213 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12214 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12215 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12216 (create_new_object_hard_regs_node): Ditto.
12217 (add_new_object_hard_regs_node_to_forest): Ditto.
12218 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12219 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12221 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12222 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12223 (remove_unused_object_hard_regs_nodes): Ditto.
12224 (enumerate_object_hard_regs_nodes): Ditto.
12225 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12226 (object_hard_regs_subnode_t): Ditto.
12227 (struct object_hard_regs_subnode): Ditto.
12228 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12229 (setup_object_hard_regs_subnode_index): Ditto.
12230 (get_object_hard_regs_subnodes_num): Ditto.
12231 (form_object_hard_regs_nodes_forest): Ditto.
12232 (finish_object_hard_regs_nodes_tree): Ditto.
12233 (finish_object_hard_regs_nodes_forest): Ditto.
12234 (allocnos_have_intersected_live_ranges_p): Rename to
12235 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12236 (pseudos_have_intersected_live_ranges_p): Rename to
12237 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12238 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12239 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12240 (update_copy_costs): Remove assert. Skip cost update if the hard
12241 reg does not belong the class.
12242 (assign_hard_reg): Process only profitable hard regs.
12243 (uncolorable_allocnos_num): Make it scalar.
12244 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12245 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12246 and ira_reg_class_max_nregs.
12247 (bucket_allocno_compare_func): Check frequency first.
12248 (sort_bucket): Add compare function as a parameter.
12249 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12250 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12251 (push_allocno_to_stack): Rewrite for checking new allocno
12253 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12254 (push_only_colorable): Pass new parameter to sort_bucket.
12255 (push_allocno_to_spill): Remove.
12256 (allocno_spill_priority_compare): Make it inline and rewrite.
12257 (splay_tree_allocate, splay_tree_free): Remove.
12258 (allocno_spill_sort_compare): New function.
12259 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12260 build and use splay tree. Choose first allocno in uncolorable
12261 allocno bucket to spill. Remove setting spill cost.
12262 (all_conflicting_hard_regs): Remove.
12263 (setup_allocno_available_regs_num): Check only profitable hard
12264 regs. Print info about hard regs nodes.
12265 (setup_allocno_left_conflicts_size): Remove.
12266 (put_allocno_into_bucket): Don't call
12267 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12268 (improve_allocation): New.
12269 (color_allocnos): Call setup_profitable_hard_regs,
12270 form_object_hard_regs_nodes_forest, improve_allocation,
12271 finish_object_hard_regs_nodes_forest. Setup spill cost.
12272 (print_loop_title): Use pressure classes.
12273 (color_allocnso): Ditto.
12274 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12275 and allocnos_for_spilling.
12276 (ira_sort_regnos_for_alter_reg): Don't setup members
12277 {first,next}_coalesced_allocno.
12278 (color): Remove allocating and freeing removed_splay_allocno_vec.
12279 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12280 prohibited_class_mode_regs.
12282 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12284 (update_allocno_pressure_excess_length): Use pressure classes.
12285 (inc_register_pressure, dec_register_pressure): Check for pressure
12287 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12288 pressure class. Use ira_reg_class_nregs instead of
12289 ira_reg_class_max_nregs.
12290 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12291 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12292 (single_reg_class): Use ira_reg_class_nregs instead of
12293 ira_reg_class_max_nregs.
12294 (process_bb_node_lives): Use pressure classes.
12296 * ira-emit.c: Remove mentioning cover classes from the file. Use
12297 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12298 (change_loop): Use pressure classes.
12299 (modify_move_list): Call ira_set_allocno_class instead of
12300 ira_set_allocno_cover_class.
12302 * ira-build.c: Remove mentioning cover classes from the file. Use
12303 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12304 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12305 ALLOCNO_UPDATED_CLASS_COST instead of
12306 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12307 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12308 (ira_create_allocno): Remove initialization of
12309 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12310 ALLOCNO_COLORABLE_P.
12311 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12312 Update conflict regs for the objects.
12313 (create_cap_allocno): Remove assert. Don't propagate
12314 ALLOCNO_AVAILABLE_REGS_NUM.
12315 (ira_free_allocno_costs): New function.
12316 (finish_allocno): Change a part of code into call of
12317 ira_free_allocno_costs.
12318 (low_pressure_loop_node_p): Use pressure classes.
12319 (object_range_compare_func): Don't compare classes.
12320 (setup_min_max_conflict_allocno_ids): Ditto.
12322 * loop-invariant.c: Remove mentioning cover classes from the file.
12323 Use ira_pressure_classes and ira_pressure_classes_num instead of
12324 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12325 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12326 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12327 Use reg_allocno_class instead of reg_cover_class.
12328 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12329 STACK_REG_COVER_CLASS.
12330 (get_regno_cover_class): Rename to get_regno_pressure_class.
12331 (move_loop_invariants): Initialize and finalize regstat.
12333 * ira.c: Remove mentioning cover classes from the file. Add
12334 comments about coloring without cover classes. Use ALLOCNO_CLASS
12335 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12336 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12337 setup_class_subset_and_memory_move_costs.
12338 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12339 (setup_cover_and_important_classes): Rename to
12340 setup_allocno_and_important_classes.
12341 (setup_class_translate_array): New.
12342 (setup_class_translate): Call it for allocno and pressure classes.
12343 (cover_class_order): Rename to allocno_class_order.
12344 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12345 of ira_class_translate.
12346 (reorder_important_classes): Set up ira_important_class_nums.
12347 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12348 (print_class_cover): Rename to print_classes. Add parameter.
12349 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12350 Print pressure classes too.
12351 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12352 setup_reg_subclasses.
12353 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12354 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12355 (setup_prohibited_class_mode_regs): Use
12356 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12357 (clarify_prohibited_class_mode_regs): New function.
12358 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12359 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12360 (ira_init_once): Initialize them.
12361 (free_register_move_costs): Process them.
12362 (ira_init): Move calls of find_reg_classes and
12363 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12364 Call clarify_prohibited_class_mode_regs.
12365 (ira_no_alloc_reg): Remove.
12366 (too_high_register_pressure_p): Use pressure classes.
12368 * sched-deps.c: Remove mentioning cover classes from the file.
12369 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12370 ira_pressure_classes and ira_pressure_classes_num instead of
12371 ira_reg_class_cover_size and ira_reg_class_cover.
12372 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12373 sched_regno_pressure_class instead of sched_regno_cover_class.
12374 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12375 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12377 * ira.h: Add 2010 to Copyright.
12378 (ira_no_alloc_reg): Remove external.
12379 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12380 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12381 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12382 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12383 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12384 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12385 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12386 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12387 x_ira_no_alloc_regs.
12388 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12389 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12390 ira_allocno_classes_num and ira_allocno_classes.
12391 (ira_class_translate): Rename to ira_allocno_class_translate.
12392 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12393 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12394 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12395 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12396 (ira_no_alloc_regs): New.
12398 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12399 classes from the file. Use ALLOCNO_CLASS instead of
12400 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12401 ALLOCNO_COVER_CLASS_COST.
12402 (regno_cover_class): Rename to regno_aclass.
12403 (record_reg_classes): Use ira_reg_class_subunion instead of
12404 ira_reg_class_union.
12405 (record_address_regs): Check overflow.
12406 (scan_one_insn): Ditto.
12407 (print_allocno_costs): Print total mem cost fore regional allocation.
12408 (print_pseudo_costs): Use REG_N_REFS.
12409 (find_costs_and_classes): Use classes intersected with them on the
12410 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12411 ira_reg_class_union. Use ira_allocno_class_translate and
12412 regno_aclass instead of ira_class_translate and regno_cover_class.
12413 Modify code for finding regno_aclass. Setup preferred classes for
12415 (setup_allocno_cover_class_and_costs): Rename to
12416 setup_allocno_class_and_costs. Use regno_aclass instead of
12417 regno_cover_class. Use ira_set_allocno_class instead of
12418 ira_set_allocno_cover_class.
12419 (init_costs, finish_costs): Use regno_aclass instead of
12421 (ira_costs): Use setup_allocno_class_and_costs instead of
12422 setup_allocno_cover_class_and_costs.
12423 (ira_tune_allocno_costs_and_cover_classes): Rename to
12424 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12425 by processing objects. Use ira_reg_class_max_nregs instead of
12426 ira_reg_class_nregs.
12428 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12430 * sched-int.h: Remove mentioning cover classes from the file.
12431 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12433 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12434 classes from the file.
12435 (struct reg_pref): Rename coverclass into allocnoclass.
12436 (reg_cover_class): Rename to reg_allocno_class.
12438 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12440 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12442 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12444 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12446 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12448 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12450 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12452 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12454 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12456 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12458 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12459 (i386_ira_cover_classes): Ditto.
12461 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12463 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12465 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12467 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12469 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12471 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12473 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12474 (mips_ira_cover_classes): Ditto.
12476 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12478 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12480 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12482 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12484 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12486 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12487 (IRA_COVER_CLASSES_VSX): Ditto.
12489 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12490 (rs6000_ira_cover_classes): Ditto.
12492 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12494 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12496 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12498 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12500 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12502 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12504 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12506 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12508 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12510 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12512 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12515 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12516 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12517 dw_fde_unlikely_section_end_label, cold_in_std_section,
12518 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12519 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12521 (output_fde): Use dw_fde_second_{begin,end} if second is
12522 true, otherwise dw_fde_{begin,end}.
12523 (output_call_frame_info): Test dw_fde_second_begin != NULL
12524 instead of dw_fde_switched_sections.
12525 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12526 fields, initialize new fields. Initialize in_std_section
12527 unconditionally from the first partition.
12528 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12529 dw_fde_second_begin is non-NULL.
12530 (dwarf2out_switch_text_section): Stop initializing removed
12531 dw_fde_struct fields, initialize new fields, initialize
12532 also dw_fde_end here. Set dw_fde_switch_cfi even when
12533 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12534 (struct var_loc_list_def): Add last_before_switch field.
12535 (arange_table, arange_table_allocated, arange_table_in_use,
12536 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12537 (size_of_aranges): Count !in_std_section and !second_in_std_section
12538 hunks in fdes, instead of looking at arange_table_in_use.
12539 (output_aranges): Add aranges_length argument, don't call
12540 size_of_aranges here. Instead of using aranges_table*
12541 emit ranges for fdes when !in_std_section resp.
12542 !second_in_std_section.
12543 (dw_loc_list): Break ranges crossing section switch.
12544 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12545 use dw_fde_second_end instead of dw_fde_end as end of last range.
12546 (gen_subprogram_die): Don't call add_arange. Use
12547 dw_fde_{begin,end} for first partition and if switched
12548 section dw_fde_second_{begin,end} for the second.
12549 (var_location_switch_text_section_1,
12550 var_location_switch_text_section): New functions.
12551 (dwarf2out_begin_function): Initialize cold_text_section even
12552 when function_section () isn't text_section.
12553 (prune_unused_types): Don't walk arange_table.
12554 (dwarf2out_finish): Don't needlessly test
12555 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12556 If info_section_emitted, call size_of_aranges and if it indicates
12557 non-empty .debug_aranges, call output_aranges with the computed
12558 size. Stop using removed dw_fde_struct fields, use
12559 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12563 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12564 create ENTRY_VALUE if incoming or address of incoming's MEM
12566 * dwarf2out.c (mem_loc_descriptor): Don't emit
12567 DW_OP_GNU_entry_value of DW_OP_fbreg.
12568 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12569 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12570 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12571 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12573 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12574 is a REG_P or MEM_P with REG_P address, compute hash directly
12575 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12576 (preserve_only_constants): Don't clear VALUES forwaring
12577 ENTRY_VALUE to some other VALUE.
12579 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12581 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12582 instead of GEN_INT.
12584 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12586 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12587 block before expanding the statement.
12588 (expand_gimple_stmt_1): Likewise. Set them here...
12589 (expand_gimple_stmt): ...and not here. Tidy.
12590 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12593 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12595 * Makefile.in: New rule for cprop.o.
12596 * gcse.c: Move constant/copy propagation to cprop.c.
12597 (compute_local_properties): Only handle expression tables.
12598 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12599 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12600 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12601 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12602 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12603 compute_cprop_data, find_used_regs, try_replace_reg,
12604 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12605 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12606 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12607 find_bypass_set, reg_killed_on_edge, bypass_block,
12608 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12609 execute_rtl_cprop, pass_rtl_cprop): Move to...
12610 * cprop.c: ...here. New file, constant/copy propagation for RTL
12611 moved from gcse.c to here with minor cleanups in duplicated code.
12613 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12615 * config/i386/i386.c (flag_opts): Fix a typo in
12616 -mavx256-split-unaligned-store.
12618 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12620 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12621 LIBCALL_VALUE): Remove macros.
12622 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12623 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12624 (h8300_function_value, h8300_libcall_value,
12625 h8300_function_value_regno_p): New functions.
12627 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12629 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12631 2011-03-28 Jeff Law <law@redhat.com>
12633 * tree-ssa-threadupdate.c (redirect_edges): Call
12634 create_edge_and_update_destination_phis as needed.
12635 (create_edge_and_update_destination_phis): Accept new BB argument.
12636 All callers updated.
12637 (thread_block): Do not update the profile when threading around
12638 intermediate blocks.
12639 (thread_single_edge): Likewise.
12640 (determine_bb_domination_status): If BB is not a successor of the
12641 loop header, return NONDOMINATING.
12642 (register_jump_thread): Note when we register a jump thread around
12643 an intermediate block.
12644 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12645 (thread_across_edge): Use it.
12647 2011-03-28 Tristan Gingold <gingold@adacore.com>
12649 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12650 when for_return is 2.
12652 2011-03-28 Jeff Law <law@redhat.com>
12654 * var-tracking.c (canonicalize_values_mark): Delete unused
12656 (canonicalize_values_star, set_variable_part): Likewise.
12657 (clobber_variable_part, delete_variable_part): Likewise.
12659 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12661 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12663 2011-03-28 Martin Jambor <mjambor@suse.cz>
12665 * tree-inline.c (expand_call_inline): Do not check that destination
12667 (optimize_inline_calls): Assert that destination node is analyzed.
12668 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12669 not call tree_lowering_passes.
12670 * cgraph.h (cgraph_analyze_function): Declare.
12671 * cgraphunit.c (cgraph_analyze_function): Make public.
12673 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12675 * config/sparc/sparc-opts.h: New.
12676 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12677 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12678 (sparc_option_override): Store processor_type enumeration rather
12679 than string in cpu_default. Remove name and enumeration from
12680 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12681 without using sparc_select. Use target_flags_explicit instead of
12683 * config/sparc/sparc.h (enum processor_type): Move to
12685 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12686 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12687 HeaderInclude entry.
12688 (mcpu=, mtune=): Use Var and Enum.
12689 (sparc_processor_type): New Enum and EnumValue entries.
12691 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12692 Iain Sandoe <iains@gcc.gnu.org>
12695 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12697 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12699 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12700 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12701 Insert new statements at it in lieu of STMT.
12702 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12703 * tree-vect-stmts.c (vectorizable_store): Likewise.
12704 (vectorizable_load): Likewise.
12706 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12708 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12713 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12715 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12716 unaligned 256bit load/store.
12717 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12718 (*avx_movdqu<avxmodesuffix>): Likewise.
12720 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12723 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12724 * config/pa/pa.md (iordi3): Use new predicate in expander.
12725 (iorsi3): Likewise.
12727 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12729 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12730 FUNCTION_VALUE_REGNO_P): Remove macros.
12731 * config/mips/mips-protos.h (mips_function_value): Remove.
12732 * config/mips/mips.c (mips_function_value): Rename to...
12733 (mips_function_value_1): ... this. Make static. Handle receiving
12734 the function type in 'fn_decl_or_type' argument.
12735 (mips_function_value, mips_libcall_value,
12736 mips_function_value_regno_p): New function.
12737 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12738 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12740 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12742 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12743 and -mavx256-split-unaligned-store.
12744 (ix86_option_override_internal): Split 32-byte AVX unaligned
12745 load/store by default.
12746 (ix86_avx256_split_vector_move_misalign): New.
12747 (ix86_expand_vector_move_misalign): Use it.
12749 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12750 -mavx256-split-unaligned-store.
12752 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12753 256bit load/store. Generate unaligned store on misaligned memory
12755 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12757 (*avx_movdqu<avxmodesuffix>): Likewise.
12759 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12760 -mavx256-split-unaligned-store.
12762 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12765 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12768 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12770 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12771 opno arguments with an expand_operand. Use create_input_operand.
12772 (mips_prepare_builtin_target): Delete.
12773 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12775 (mips_expand_builtin_direct): Use create_output_operand and
12776 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12777 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12778 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12780 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12782 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12784 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12786 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12788 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12789 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12790 basic blocks and call commit_edge_insertions directly.
12791 (fixup_abnormal_edges): Move from here to...
12792 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12793 on the edges and return whether some have actually been inserted.
12794 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12797 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12799 PR rtl-optimization/48144
12800 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12801 (merge_expr_data): ... here.
12802 (av_set_intersect): Rename to av_set_code_motion_filter.
12803 Update all callers. Call merge_history_vect when an expression
12804 is found in both sets.
12805 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12807 2011-03-26 Alan Modra <amodra@gmail.com>
12809 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12810 cmodel medium addresses.
12811 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12812 64-bit gpr loads and stores.
12813 (rs6000_secondary_reload_ppc64): New function.
12814 * config/rs6000/rs6000-protos.h: Declare it.
12815 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12817 2011-03-26 Alan Modra <amodra@gmail.com>
12820 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12821 GNU Go in traceback table.
12823 2011-03-25 Richard Henderson <rth@redhat.com>
12825 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12826 if there are exactly 6 operands.
12827 (set_storage_via_setmem): Similarly.
12829 2011-03-25 Kai Tietz <ktietz@redhat.com>
12831 * collect2.c (write_c_file_stat): Handle backslash
12832 as right-hand directory separator.
12833 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12834 checking just for slash.
12835 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12836 instead of checking for trailing slash.
12837 * gcc.c (record_temp_file): Use filename_cmp instead
12839 (do_spec_1): Likewise.
12840 (replace_outfile_spec_function): Likewise.
12841 (is_directory): Use filename_ncmp instead of strncmp.
12842 (print_multilib_info): Likewise.
12843 * gcov.c (find_source): Use filename_cmp instead
12845 (make_gcov_file_name): Fix order of slash/backslash
12847 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12848 (add_standard_paths): Likewise.
12849 * mips-tfile.c (saber_stop): Handle backslash.
12850 * prefix.c (update_path): Use filename_ncmp instead of
12852 * profile.c (output_location): Use filename_cmp instead
12854 * read-md.c (handle_toplevel_file): Handle backslash.
12855 * tlink.c (frob_extension): Likewise.
12856 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12858 * tree-dump.c (dequeue_and_dump): Handle backslash.
12859 * tree.c (get_file_function_name): Likewise.
12860 * gengtype.c (read_input_list): Likewise.
12861 (get_file_realbasename): Likewise.
12862 (get_output_file_with_visibility): Use filename_cmp
12865 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12867 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12870 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12872 * fold-const.c (expr_location_or): New function.
12873 (fold_truth_not_expr): Call it.
12875 2011-03-25 Jeff Law <law@redhat.com>
12877 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12879 * c-family/c-common.c (def_fn_type): Likewise.
12880 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12881 * emit-rtl.c (gen_rtvec): Likewise.
12882 * lto/lto-lang.c (def_fn_type): Likewise.
12884 2011-03-25 Richard Guenther <rguenther@suse.de>
12886 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12887 also generate copies.
12888 (fini_copy_prop): Handle constant values properly.
12890 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12892 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12893 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12894 (hash_loc_operands, compare_loc_operands): Handle
12895 DW_OP_GNU_entry_value.
12897 2011-03-25 Kai Tietz <ktietz@redhat.com>
12899 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12900 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12901 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12902 comment and use macro TARGET_64BIT_MS_ABI instead.
12903 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12904 and change default behavior for 32-bit MS_ABI.
12905 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12906 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12908 (ix86_cfun_abi): Likewise.
12909 (ix86_maybe_switch_abi): Adjust comment.
12910 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12911 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12912 instead of checking for SYSV_ABI.
12913 (ix86_nsaved_sseregs): Likewise.
12914 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12916 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12917 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12918 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12919 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12920 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12922 2011-03-25 Richard Guenther <rguenther@suse.de>
12924 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12925 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12926 (verify_gimple): Remove.
12927 * tree-cfg.c (verify_gimple_call): Merge verification
12929 (verify_gimple_phi): Merge verification from verify_stmts.
12930 (verify_gimple_label): New function.
12931 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12932 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12933 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12934 (verify_stmts): Rename to verify_gimple_in_cfg.
12935 (verify_gimple_in_cfg): New function.
12936 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12937 * tree-ssa.c (verify_ssa): Likewise.
12938 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12940 2011-03-25 Richard Guenther <rguenther@suse.de>
12942 * passes.c (init_optimization_passes): Add FRE pass after
12945 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12946 Andrew Stubbs <ams@codesourcery.com>
12948 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12950 (arm_movdi_vfp_cortexa8): New pattern.
12951 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12952 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12953 instructions when tuning for Cortex-A8. Set attribute "arch".
12954 * config/arm/arm.md: Move include arm-tune.md up a bit.
12955 (define_attr "arch"): Add "onlya8" and "nota8" values.
12956 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12958 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12962 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12964 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12965 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12966 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12967 * passes.c (init_optimization_passes): Move
12968 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12970 2011-03-25 Kai Tietz <ktietz@redhat.com>
12972 * c-typeck.c (comptypes_internal): Replace target
12973 hook call of comp_type_attributes by version in tree.c file.
12974 * gimple.c (gimple_types_compatible_p_1): Likewise.
12975 * tree-ssa.c (useless_type_conversion_p): Likewise.
12976 * tree.c (build_type_attribute_qual_variant): Likewise.
12977 (attribute_value_equal): New static helper function.
12978 (comp_type_attributes): New function.
12979 (merge_attributes): Use attribute_value_equal for comparison.
12980 (attribute_list_contained): Likewise.
12981 * tree.h (comp_type_attributes): New prototype.
12983 2011-03-25 Richard Guenther <rguenther@suse.de>
12985 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12986 of complex types at -O0.
12987 (verify_gimple_assign_binary): Likewise.
12988 (verify_gimple_assign_ternary): Likewise.
12990 2011-03-24 Mark Wielaard <mjw@redhat.com>
12992 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12993 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12995 2011-03-24 Mark Wielaard <mjw@redhat.com>
12998 * dwarf2out.c (output_abbrev_section): Only write table when
12999 abbrev_die_table_in_use > 1.
13001 2011-02-24 Richard Henderson <rth@redhat.com>
13003 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13004 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13005 (alpha_expand_unaligned_load_words): Use extql.
13006 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13007 (emit_insxl): Handle all modes for consistency.
13009 2011-02-24 Richard Henderson <rth@redhat.com>
13011 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13012 (alpha_expand_unaligned_load): Likewise.
13013 (alpha_expand_unaligned_store): Likewise.
13014 (alpha_expand_unaligned_load_words): Likewise.
13015 (alpha_expand_unaligned_store_words): Likewise.
13016 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13017 (alpha_split_lock_test_and_set_12): Likewise.
13018 (print_operand, alpha_fold_builtin_extxx): Likewise.
13019 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13020 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13021 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13022 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13023 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13024 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13025 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13026 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13027 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13028 (extwl, extll, extql): Similarly.
13029 (inswh, inslh, insqh): Similarly.
13030 (mskbl, mskwl, mskll, mskql): Similarly.
13031 (mskwh, msklh, mskqh): Similarly.
13033 2011-02-24 Richard Henderson <rth@redhat.com>
13035 * config/alpha/alpha.md (attribute isa): Add er, ner.
13036 (attribute enabled): Handle them.
13037 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13039 2011-02-24 Richard Henderson <rth@redhat.com>
13041 * config/alpha/alpha.md (attribute isa): Add vms.
13042 (attribute enabled): Handle it.
13043 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13044 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13045 (*movtf): Rename from *movtf_internal for consistency.
13046 (*movsi): Merge with *movsi_nt_vms.
13047 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13048 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13049 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13050 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13052 2011-02-24 Richard Henderson <rth@redhat.com>
13054 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13055 (extendqisi2, extendhisi2): Likewise.
13056 (extendqidi2): Simplify BWX/non-BWX expansions.
13057 (extendhidi2): Similarly.
13059 2011-02-24 Richard Henderson <rth@redhat.com>
13061 * config/alpha/alpha.md (attribute isa): New.
13062 (attribute enabled): New.
13063 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13064 (zero_extendqisi2, zero_extendqidi2): Similarly.
13065 (zero_extendhisi2, zero_extendhidi2): Similarly.
13066 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13068 2011-02-24 Richard Henderson <rth@redhat.com>
13070 * config/alpha/predicates.md (input_operand): Revert last change;
13071 update comment to mention 32-bit VMS rather than Windows.
13073 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13075 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13076 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13077 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13078 * passes.c (init_optimization_passes): Move
13079 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13081 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13083 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13085 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13087 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13090 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13093 * simplify-rtx.c (simplify_const_unary_operation): Call
13094 real_convert when changing mode class with FLOAT_EXTEND.
13096 2011-03-24 Nick Clifton <nickc@redhat.com>
13098 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13099 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13100 * config/rx/rx.c (rx_option_override): Set align_jumps,
13101 align_loops and align_labels if not set by the user.
13102 (rx_align_for_label): New function.
13103 (rx_max_skip_for_label): New function.
13104 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13105 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13106 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13107 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13108 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13110 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13112 PR rtl-optimization/48263
13113 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13114 and original commutative_p handling. Use maybe_gen_insn.
13116 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13118 * reload.c (find_reloads_subreg_address): Add address_reloaded
13119 parameter and return true there if the full address has been
13121 (find_reloads_toplev): Pass address_reloaded flag.
13122 (find_reloads_address_1): Don't use address_reloaded parameter.
13124 2011-03-24 Jeff Law <law@redhat.com>
13126 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13127 unused variable "ann".
13128 (remove_unused_locals): Likewise.
13130 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13133 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13136 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13138 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13139 for invalid symbolic addresses.
13140 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13143 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13145 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13146 the argument in calls to fold_truth_not_expr.
13148 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13150 * tree.c (record_node_allocation_statistics): New function.
13151 (make_node_stat, copy_node_stat, build_string): Call it.
13152 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13153 (build1_stat, build_omp_clause): Likewise.
13155 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13157 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13160 2011-03-24 Richard Guenther <rguenther@suse.de>
13162 PR tree-optimization/48271
13163 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13164 blocks that still exist.
13166 2011-03-24 Richard Guenther <rguenther@suse.de>
13168 PR tree-optimization/48270
13169 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13170 not free datarefs before ddrs.
13172 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13174 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13175 from the address built for a reference with variable offset.
13177 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13180 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13181 alternatives that can be handled with movq or movabsq insn.
13182 (*movdf_internal): Disable for !TARGET_64BIT.
13183 (*movdf_internal_nointeger): Ditto.
13184 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13186 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13188 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13189 (FUNCTION_ARG_ADVANCE): Likewise.
13190 * tm.texi.in: Change references to them to hook references.
13191 * tm.texi: Regenerate.
13192 * targhooks.c (default_function_arg): Eliminate check for target macro.
13193 (default_function_incoming_arg): Likewise.
13194 (default_function_arg_advance): Likewise.
13195 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13196 (function_arg_advance): Likewise.
13197 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13199 2011-03-24 Richard Guenther <rguenther@suse.de>
13201 PR middle-end/48269
13202 * tree-object-size.c (addr_object_size): Do not double-account
13203 for MEM_REF offsets.
13205 2011-03-24 Diego Novillo <dnovillo@google.com>
13207 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13208 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13209 (lto_input_data_block): Move from lto-opts.c. Make extern.
13211 (lto_input_string): Rename from input_string. Make extern.
13213 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13214 output_string_with_length.
13215 Output 0 to indicate a non-NULL string. Update all callers to
13217 (lto_output_string): Rename from output_string. Make extern.
13219 (lto_output_decl_state_streams): Make extern.
13220 (lto_output_decl_state_refs): Make extern.
13221 * lto-streamer.h (lto_input_string): Declare.
13222 (lto_input_data_block): Declare.
13223 (lto_output_string): Declare.
13224 (lto_output_string_with_length): Declare.
13225 (lto_output_decl_state_streams): Declare.
13226 (lto_output_decl_state_refs): Declare.
13228 2011-03-24 Richard Guenther <rguenther@suse.de>
13230 PR tree-optimization/46562
13231 * tree.c (build_invariant_address): New function.
13232 * tree.h (build_invariant_address): Declare.
13233 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13234 a renamed function moved ...
13235 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13236 Take valueization callback parameter.
13237 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13238 * gimple-fold.h: New file.
13239 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13240 (ccp_fold, fold_const_aggregate_ref,
13241 fold_ctor_reference, fold_nonarray_ctor_reference,
13242 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13243 get_base_constructor): Move ...
13244 * gimple-fold.c: ... here.
13245 (gimple_fold_stmt_to_constant_1): New function
13246 split out from ccp_fold. Take a valueization callback parameter.
13247 Valueize all operands.
13248 (gimple_fold_stmt_to_constant): New wrapper function.
13249 (fold_const_aggregate_ref_1): New function split out from
13250 fold_const_aggregate_ref. Take a valueization callback parameter.
13251 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13252 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13253 invariant POINTER_PLUS_EXPRs to invariant form.
13254 (vn_valueize): New function.
13255 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13256 * tree-vrp.c (vrp_valueize): New function.
13257 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13258 to fold statements to constants.
13259 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13260 function declarations.
13261 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13262 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13264 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13266 * config/h8300/predicates.md (jump_address_operand): Fix register
13269 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13271 * doc/invoke.texi (max-stores-to-sink): Document.
13272 * params.h (MAX_STORES_TO_SINK): Define.
13273 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13274 if either vectorization or if-conversion is disabled.
13275 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13276 tree-vect-data-refs.c vect_equal_offsets.
13277 (dr_equal_offsets_p): New function.
13278 (find_data_references_in_bb): Remove static.
13279 * tree-data-ref.h (find_data_references_in_bb): Declare.
13280 (dr_equal_offsets_p): Likewise.
13281 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13282 (vect_drs_dependent_in_basic_block): Update calls to
13283 vect_equal_offsets.
13284 (vect_check_interleaving): Likewise.
13285 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13286 (cond_if_else_store_replacement): Rename to...
13287 (cond_if_else_store_replacement_1): ... this. Change arguments and
13289 (cond_if_else_store_replacement): New function.
13290 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13291 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13293 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13296 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13297 to subtract lower bound instead of GEN_INT().
13299 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13304 * doc/extend.texi (Alignment): Move section to match order in TOC.
13305 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13306 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13308 2011-03-23 Jeff Law <law@redhat.com>
13310 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13311 before removing the edge.
13313 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13314 it may have been freed by redirect_branch_edge or
13315 redirect_edge_succ_nodup.
13317 2011-03-23 Richard Guenther <rguenther@suse.de>
13319 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13320 (check_va_list_escapes): Likewise.
13321 (check_all_va_list_escapes): Likewise.
13323 2011-03-23 Richard Guenther <rguenther@suse.de>
13325 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13326 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13327 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13328 (alias.o): Likewise.
13329 (ipa-type-escape.o): Remove.
13330 (ipa-struct-reorg.o): Likewise.
13331 (GTFILES): Remove ipa-struct-reorg.c.
13332 * alias.c: Do not include ipa-type-escape.h.
13333 * tree-ssa-alias.c: Likewise.
13334 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13335 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13336 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13337 and ipa-type-escape passes.
13338 * tree-pass.h (pass_ipa_type_escape): Remove.
13339 (pass_ipa_struct_reorg): Likewise.
13340 * ipa-struct-reorg.h: Remove.
13341 * ipa-struct-reorg.c: Likewise.
13342 * ipa-type-escape.h: Likewise.
13343 * ipa-type-escape.c: Likewise.
13344 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13345 (--param struct-reorg-cold-struct-ratio): Likewise.
13346 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13347 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13348 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13350 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13352 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13353 cpu attribute value.
13354 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13355 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13356 * config/s390/s390.c (processor_flags_table): New constant array.
13357 (s390_handle_arch_option): Remove.
13358 (s390_handle_option): Remove s390_handle_arch_option invocations
13359 and OPT_mwarn_framesize_ handling.
13360 (s390_option_override): Remove s390_handle_arch_option invocation.
13361 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13363 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13364 * config/s390/s390.opt (s390_tune, s390_arch)
13365 (march=): Replace s390_arch_option enum and values with
13366 processor_type. Set variable name to s390_arch. Set
13367 initialization value.
13368 (mtune=): Replace s390_arch_option with processor_type. Set
13369 variable name to s390_tune. Set initialization value.
13371 2011-03-23 Julian Brown <julian@codesourcery.com>
13373 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13374 accesses which are not naturally aligned.
13376 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13379 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13381 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13383 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13384 parameter from "int" to "enum insn_code".
13385 (expand_operand_type): New enum.
13386 (expand_operand): New structure.
13387 (create_expand_operand): New function.
13388 (create_fixed_operand, create_output_operand): Likewise
13389 (create_input_operand, create_convert_operand_to): Likewise.
13390 (create_convert_operand_from, create_address_operand): Likewise.
13391 (create_integer_operand): Likewise.
13392 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13393 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13394 (expand_insn, expand_jump_insn): Likewise.
13395 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13396 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13397 (expand_movstr, expand_builtin___clear_cache): Likewise.
13398 (expand_builtin_lock_release): Likewise.
13399 * explow.c (allocate_dynamic_stack_space): Likewise.
13400 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13401 and use the default handling in that case.
13402 * expmed.c (check_predicate_volatile_ok): Delete.
13403 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13404 (emit_cstore): Likewise.
13405 * expr.c (emit_block_move_via_movmem): Likewise.
13406 (set_storage_via_setmem, expand_assignment): Likewise.
13407 (emit_storent_insn, try_casesi): Likewise.
13408 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13409 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13410 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13411 (expand_twoval_unop, expand_twoval_binop): Likewise.
13412 (expand_unop_direct, emit_indirect_jump): Likewise.
13413 (emit_conditional_move, vector_compare_rtx): Likewise.
13414 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13415 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13416 (expand_sync_lock_test_and_set): Likewise.
13417 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13418 (emit_unop_insn): Likewise.
13419 (expand_copysign_absneg): Change icode to an insn_code.
13420 (create_convert_operand_from_type): New function.
13421 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13422 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13423 (expand_insn, expand_jump_insn): Likewise.
13424 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13425 than const_int_operand for operand 2.
13427 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13429 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13432 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13434 * emit-rtl.c (emit_pattern_before_noloc): New function.
13435 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13436 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13437 (emit_pattern_after_noloc): New function.
13438 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13439 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13441 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13443 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13444 (__ffsDI2): Likewise.
13446 2011-03-22 Richard Henderson <rth@redhat.com>
13448 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13449 of !TARGET_ABI_OPEN_VMS.
13450 (alpha_trampoline_init, alpha_start_function): Likewise.
13451 (alpha_expand_epilogue, alpha_file_start): Likewise.
13452 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13453 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13454 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13455 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13456 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13458 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13460 * config/s390/s390-opts.h: New.
13461 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13462 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13463 s390_stack_guard): Remove.
13464 (s390_handle_arch_option): Return void. Take enum
13465 s390_arch_option value instead of string and searching array.
13466 (s390_handle_option): Don't assert that global structures are in
13467 use. Access variables via opts pointer. Use error_at. Don't use
13468 sscanf for -mstack-guard= or -mstack-size=. Update call to
13469 s390_handle_arch_option.
13470 (s390_option_override): Update call to s390_handle_arch_option.
13471 (s390_emit_prologue): Use %d format for s390_stack_size in
13472 diagnostic. Use %wd for HOST_WIDE_INT.
13473 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13474 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13475 * config/s390/s390.opt (config/s390/s390-opts.h): New
13476 HeaderInclude entry.
13477 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13478 s390_arch_flags, s390_warn_framesize): New Variable entries.
13479 (s390_arch_option): New Enum and EnumValue entries.
13480 (march=): Use Enum instead of Var.
13481 (mstack-guard=, mstack-size=): Use UInteger and Var.
13482 (mtune=): Use Enum.
13484 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13486 * config/score/score.c (score_handle_option): Don't assert that
13487 global structures are in use. Access target_flags via opts
13488 pointer. Use value of -march= option to determine target_flags
13490 * config/score/score.opt (march=): Use Enum.
13491 (score_arch): New Enum and EnumValue entries.
13493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13495 * config/mep/mep.c (option_mtiny_specified): Remove.
13496 (mep_option_override): Move register handling for -mivc2 from
13497 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13498 instead of option_mtiny_specified.
13499 (mep_handle_option): Access target_flags via opts pointer. Don't
13500 assert that global structures are in use. Defer part of -mivc2
13501 handling and move it to mep_option_override.
13502 * config/mep/mep.opt (IVC2): New Mask entry.
13503 (mivc2): Use Var and Defer instead of Mask.
13505 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13507 * config/v850/v850-opts.h: New.
13508 * config/v850/v850.c (small_memory): Replace with
13509 small_memory_physical_max array. Make that array static const.
13510 (v850_handle_memory_option): Take integer value of argument. Take
13511 gcc_options pointer, option text and location. Return void.
13512 Update for changes to small memory structures.
13513 (v850_handle_option): Access target_flags via opts pointer. Don't
13514 assert that global structures are in use. Update calls to
13515 v850_handle_memory_option.
13516 (v850_encode_data_area): Update references to small memory settings.
13517 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13518 (enum small_memory_type): Move to v850-opts.h.
13519 * config/v850/v850.opt (config/v850/v850-opts.h): New
13520 HeaderInclude entry.
13521 (small_memory_max): New Variable entry.
13522 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13523 (mtda, mzda): Likewise.
13525 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13527 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13528 pointer. Don't assert that global structures are in use.
13530 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13532 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13533 via opts pointer. Don't assert that global structures are in use.
13535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13537 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13538 (munix=93): Use Var.
13539 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13540 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13541 * config/pa/pa-opts.h: New.
13542 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13543 (pa_handle_option): Don't assert that global structures are in
13544 use. Access target_flags via opts pointer. Don't handle
13545 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13547 (pa_option_override): Handle deferred OPT_mfixed_range_.
13549 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13551 * config/mn10300/mn10300-opts.h: New.
13552 * config/mn10300/mn10300.c (mn10300_processor,
13553 mn10300_tune_string): Remove.
13554 (mn10300_handle_option): Don't assert that global structures are
13555 in use. Access mn10300_processor via opts pointer. Don't handle
13557 * config/mn10300/mn10300.h (enum processor_type): Move to
13559 (mn10300_processor): Remove.
13560 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13561 HeaderInclude entry.
13562 (mn10300_processor): New Variable entry.
13565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13567 * config/microblaze/microblaze.c: Don't include opts.h.
13568 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13569 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13570 (mno-clearbss): Use Var and Warn.
13572 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13574 * config/m32r/m32r-opts.h: New.
13575 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13576 (m32r_handle_option): Don't assert that global structures are in
13577 use. Access target_flags and m32r_cache_flush_func via opts
13578 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13579 OPT_mno_flush_trap here.
13580 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13581 include of m32r-opts.h.
13582 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13583 HeaderInclude entry.
13584 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13585 (mmodel=): Use Enum and Var.
13586 (m32r_model): New Enum and EnumValue entries.
13587 (mno-flush-trap): Use Var.
13588 (msdata=): Use Enum and Var.
13589 (m32r_sdata): New Enum and EnumValue entries.
13591 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13593 * config/m32c/m32c.c: Don't include opts.h.
13594 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13595 m32c_handle_option): Remove.
13596 (m32c_option_override): Check global_options_set.x_target_memregs
13597 instead of target_memregs_set.
13598 * config/m32c/m32c.h (target_memregs): Remove.
13599 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13602 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13604 * config/iq2000/iq2000-opts.h: New.
13605 * config/iq2000/iq2000.c: Don't include opts.h.
13606 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13607 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13608 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13609 HeaderInclude entry.
13610 (iq2000_tune): New Variable entry.
13611 (march=): Add comment. Use Enum.
13612 (iq2000_arch): New Enum and EnumValue entries.
13613 (mcpu=): Use Enum and Var.
13614 (iq2000_tune): New Enum and EnumValue entries.
13616 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13618 * config/ia64/ia64-opts.h: New.
13619 * config/ia64/ia64.c (ia64_tune): Remove.
13620 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13621 here. Use error_at.
13622 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13623 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13624 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13625 HeaderInclude entry.
13626 (ia64_tune): New Variable entry.
13627 (mfixed-range=): Use Defer and Var.
13628 (mtune=): Use Enum and Var.
13629 (ia64_tune): New Enum and EnumValue entries.
13631 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13633 * config/frv/frv-opts.h: New.
13634 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13636 (frv_cpu_type): Remove.
13637 * config/frv/frv.c: Don't include opts.h.
13638 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13639 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13640 (frv_cpu_type): New Variable entry.
13641 (frv_cpu): New Enum and EnumValue entries.
13643 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13645 * config/cris/cris.c (cris_handle_option): Access target_flags via
13646 opts pointer. Don't assert that global structures are in use.
13647 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13648 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13650 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13652 * config/bfin/bfin-opts.h: New.
13653 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13654 bfin_si_revision, bfin_workarounds): Remove.
13655 (bfin_cpus): Make static const.
13656 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13657 not bfin_lib_id_given.
13658 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13659 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13660 pointer. Use error_at. Don't assert that global structures are in use.
13661 * config/bfin/bfin.h: Include bfin-opts.h.
13662 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13663 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13664 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13665 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13668 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13670 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13671 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13672 or -msoft-float here.
13673 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13674 -msoft-float and -mhard-float.
13675 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13676 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13678 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13680 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13681 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13683 (LIBGCC_SPEC): Don't handle -msoft-float.
13684 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13686 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13688 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13689 -mfloat-abi=*, not -msoft-float and -mhard-float.
13690 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13692 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13693 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13694 mhard-float and msoft-float.
13695 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13696 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13697 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13698 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13700 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13701 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13703 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13705 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13708 2011-03-22 Richard Henderson <rth@redhat.com>
13710 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13711 TARGET_ABI_WINDOWS_NT.
13712 (alpha_output_function_end_prologue): Likewise.
13713 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13714 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13715 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13716 (trap, *movsi_nt_vms): Likewise.
13717 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13718 (*tablejump_osf_nt_internal): Remove.
13719 * config/alpha/predicates.md (input_operand): Only test Pmode.
13721 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13723 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13724 via opts pointer. Use error_at. Don't assert that global
13725 structures are in use.
13727 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13729 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13730 (ix86_handle_option): Access ix86_isa_flags and
13731 ix86_isa_flags_explicit via opts pointer. Don't assert that
13732 global structures are in use.
13733 (ix86_function_specific_save, ix86_function_specific_restore):
13734 Update ix86_isa_flags_explicit field name.
13735 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13736 (ix86_isa_flags_explicit): Rename TargetSave entry to
13737 x_ix86_isa_flags_explicit.
13739 2011-03-22 Richard Henderson <rth@redhat.com>
13741 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13742 (alpha_option_override, direct_return): Likewise.
13743 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13744 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13745 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13746 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13747 (alpha_expand_epilogue, alpha_end_function): Likewise.
13748 (alpha_init_libfuncs): Likewise.
13749 (struct machine_function): Remove unicosmk members.
13750 (print_operand) ['t']: Remove.
13751 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13752 unicosmk_output_module_name, unicosmk_output_common,
13753 current_section_align, unicosmk_output_text_section_asm_op,
13754 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13755 unicosmk_section_type_flags, unicosmk_unique_section,
13756 unicosmk_asm_named_section, unicosmk_insert_attributes,
13757 unicosmk_output_align, unicosmk_defer_case_vector,
13758 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13759 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13760 unicosmk_output_ssib, unicosmk_add_call_info_word,
13761 unicosmk_extern_head, unicosmk_output_default_externs,
13762 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13763 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13764 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13765 * config/alpha/alpha-protos.h: Update.
13766 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13767 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13768 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13769 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13770 (*mulsi_se, mulvsi3): Likewise.
13771 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13772 (*divmodsi_internal, call, call_value, realign): Likewise.
13773 (moddi3, umoddi3): Likewise; remove duplicate expander.
13774 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13775 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13776 (*movdi_nofix): Remove r/U alternative.
13777 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13778 * config/alpha/constraints.md ("U"): Remove.
13779 * config/alpha/predicates.md (call_operand"): Don't test
13780 TARGET_ABI_UNICOSMK.
13782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13784 * target.def (handle_option): Take gcc_options and
13785 cl_decoded_option pointers and location_t.
13786 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13787 * doc/tm.texi: Regenerate.
13788 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13789 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13790 * lto-opts.c (lto_reissue_options): Generate option structure for
13791 targetm.handle_option call.
13792 * opts.c (target_handle_option): Update call to
13793 targetm.handle_option. Remove assertions about values now passed
13795 * targhooks.c (default_target_handle_option): New.
13796 * targhooks.h (default_target_handle_option): Declare.
13797 * config/alpha/alpha.c: Include opts.h.
13798 (alpha_handle_option): Update to new hook interface.
13799 * config/arm/arm.c: Include opts.h.
13800 (arm_handle_option): Update to new hook interface.
13801 * config/arm/t-arm (arm.o): Update dependencies.
13802 * config/bfin/bfin.c: Include opts.h.
13803 (bfin_handle_option): Update to new hook interface.
13804 * config/cris/cris.c: Include opts.h.
13805 (cris_handle_option): Update to new hook interface.
13806 * config/frv/frv.c: Include opts.h.
13807 (frv_handle_option): Update to new hook interface.
13808 * config/i386/i386.c: Include opts.h.
13809 (ix86_handle_option): Update to new hook interface.
13810 (ix86_valid_target_attribute_inner_p): Generate option structure
13811 for call to ix86_handle_option.
13812 * config/i386/t-i386 (i386.o): Update dependencies.
13813 * config/ia64/ia64.c: Include opts.h.
13814 (ia64_handle_option): Update to new hook interface.
13815 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13816 * config/iq2000/iq2000.c: Include opts.h.
13817 (iq2000_handle_option): Update to new hook interface.
13818 * config/m32c/m32c.c: Include opts.h.
13819 (m32c_handle_option): Update to new hook interface.
13820 * config/m32r/m32r.c: Include opts.h.
13821 (m32r_handle_option): Update to new hook interface.
13822 * config/m68k/m68k.c: Include opts.h.
13823 (m68k_handle_option): Update to new hook interface.
13824 * config/mep/mep.c: Include opts.h.
13825 (mep_handle_option): Update to new hook interface.
13826 * config/microblaze/microblaze.c: Include opts.h.
13827 (microblaze_handle_option): Update to new hook interface.
13828 * config/mips/mips.c: Include opts.h.
13829 (mips_handle_option): Update to new hook interface.
13830 * config/mn10300/mn10300.c: Include opts.h.
13831 (mn10300_handle_option): Update to new hook interface.
13832 * config/pa/pa.c: Include opts.h.
13833 (pa_handle_option): Update to new hook interface.
13834 * config/pdp11/pdp11.c: Include opts.h.
13835 (pdp11_handle_option): Update to new hook interface.
13836 * config/rs6000/rs6000.c: Include opts.h.
13837 (rs6000_handle_option): Update to new hook interface.
13838 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13839 * config/rx/rx.c: Include opts.h.
13840 (rx_handle_option): Update to new hook interface.
13841 * config/s390/s390.c: Include opts.h.
13842 (s390_handle_option): Update to new hook interface.
13843 * config/score/score.c: Include opts.h.
13844 (score_handle_option): Update to new hook interface.
13845 * config/sh/sh.c: Include opts.h.
13846 (sh_handle_option): Update to new hook interface.
13847 * config/sparc/sparc.c: Include opts.h.
13848 (sparc_handle_option): Update to new hook interface.
13849 * config/v850/v850.c: Include opts.h.
13850 (v850_handle_option): Update to new hook interface.
13852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13854 * gcc.c (driver_unknown_option_callback): Only permit and save
13855 unknown -Wno- options.
13856 (driver_wrong_lang_callback): Save options directly instead of via
13857 driver_unknown_option_callback.
13859 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13861 * combine.c (simplify_set): Try harder to find the best CC mode when
13862 simplifying a nested COMPARE on the RHS.
13864 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13866 * config/alpha/gnu.h: Remove.
13867 * config/arc: Remove directory.
13868 * config/arm/netbsd.h: Remove.
13869 * config/arm/t-pe: Remove.
13870 * config/crx: Remove directory.
13871 * config/i386/netbsd.h: Remove.
13872 * config/m68hc11: Remove directory.
13873 * config/m68k/uclinux-oldabi.h: Remove.
13874 * config/mcore/mcore-pe.h: Remove.
13875 * config/mcore/t-mcore-pe: Remove.
13876 * config/netbsd-aout.h: Remove.
13877 * config/rs6000/gnu.h: Remove.
13878 * config/sh/sh-symbian.h: Remove.
13879 * config/sh/symbian-base.c: Remove.
13880 * config/sh/symbian-c.c: Remove.
13881 * config/sh/symbian-cxx.c: Remove.
13882 * config/sh/symbian-post.h: Remove.
13883 * config/sh/symbian-pre.h: Remove.
13884 * config/sh/t-symbian: Remove.
13885 * config/svr3.h: Remove.
13886 * config/vax/netbsd.h: Remove.
13887 * config.build: Don't handle i[34567]86-*-pe.
13888 * config.gcc: Remove handling of deprecations for most deprecated
13890 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13891 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13892 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13893 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13894 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13895 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13897 * config.host: Don't handle i[34567]86-*-pe.
13898 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13899 (ASM_SPEC32): Don't handle -mcall-gnu.
13900 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13902 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13903 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13904 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13905 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13906 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13907 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13908 conditional on SYMBIAN.
13909 * configure.ac: Don't handle powerpc*-*-gnu*.
13910 * configure: Regenerate.
13911 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13912 * doc/install-old.texi (m6811, m6812): Don't mention.
13913 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13914 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13915 (m68k-uclinuxoldabi): Don't mention.
13916 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13918 (-mcall-gnu): Remove.
13919 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13920 families): Remove constraint documentation.
13922 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13924 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13925 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13926 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13928 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13931 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13932 vector when peeking at the next token for vector, don't expand the
13935 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13937 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13938 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13939 * config/avr/avr.c (init_cumulative_args)
13940 (avr_function_arg_advance): Use it.
13941 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13943 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13944 (avr_function_ok_for_sibcall): ...this new function.
13945 (avr_lookup_function_attribute1): New static Function.
13946 (avr_naked_function_p, interrupt_function_p)
13947 (signal_function_p, avr_OS_task_function_p)
13948 (avr_OS_main_function_p): Use it.
13949 * config/avr/avr.md ("sibcall", "sibcall_value")
13950 ("sibcall_epilogue"): New expander.
13951 ("*call_insn", "*call_value_insn"): New insn.
13952 ("call_insn", "call_value_insn"): Remove
13953 ("call", "call_value", "epilogue"): Change expander to handle
13956 2011-03-21 Nick Clifton <nickc@redhat.com>
13958 * doc/invoke.texi (Overall Options): Move closing brace to end of
13960 (Optimization Options): Add missing @gol.
13961 (Directory Options): Likewise.
13962 (i386 and x86-64 Options): Likewise.
13963 (RS6000 and PowerPC Options): Likewise.
13964 (i386 and x86-64 Windows Options): Likewise.
13965 (V850 Options): Add text missing from descriptions.
13967 2011-03-22 Richard Henderson <rth@redhat.com>
13969 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13970 (avr_incoming_return_addr_rtx): New.
13971 (emit_push_byte): New.
13972 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13973 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13974 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13975 (emit_pop_byte): New.
13976 (expand_epilogue): Use it. Pop frame pointer by bytes.
13977 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13978 (INCOMING_RETURN_ADDR_RTX): New.
13979 (INCOMING_FRAME_SP_OFFSET): New.
13980 (ARG_POINTER_CFA_OFFSET): New.
13981 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13982 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13985 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13987 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13989 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13990 (FUNCTION_ARG_ADVANCE): Likewise.
13991 * tm.texi.in: Change references to them to hook references.
13992 * tm.texi: Regenerate.
13993 * targhooks.c (default_function_arg): Eliminate check for target
13995 (default_function_incoming_arg): Likewise.
13996 (default_function_arg_advance): Likewise.
13997 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13998 (function_arg_advance): Likewise.
13999 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14001 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14003 * tree.c (build_call_1): New function.
14004 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14006 2011-03-22 Richard Guenther <rguenther@suse.de>
14008 PR tree-optimization/48228
14009 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14010 for single-arg PHIs.
14012 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14014 PR rtl-optimization/48143
14015 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14016 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14017 sse2_cvtps2pd): Likewise.
14019 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14021 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14023 2011-03-22 Richard Guenther <rguenther@suse.de>
14025 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14026 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14027 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14028 and REALIGN_LOAD_EXPR.
14029 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14030 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14031 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14032 DOT_PROD_EXPR case ...
14033 (expand_expr_real_2): ... here.
14034 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14035 and REALIGN_LOAD_EXPR.
14036 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14037 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14038 (vect_create_epilog_for_reduction): Likewise.
14039 (vectorizable_reduction): Likewise.
14040 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14041 * tree-vect-stmts.c (vectorizable_load): Likewise.
14043 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14045 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14047 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14049 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14050 handling for PLTOFF/GOTOFF.
14052 2011-03-22 Nick Clifton <nickc@redhat.com>
14054 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14055 trailing backslash from the end of the macro definition.
14057 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14059 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14062 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14064 * expr.h (prepare_operand): Move to...
14065 * optabs.h (prepare_operand): ...here and change the insn code
14066 parameter from "int" to "enum insn_code".
14067 (insn_operand_matches): Declare.
14068 * expr.c (init_expr_target): Use insn_operand_matches.
14069 (compress_float_constant): Likewise.
14070 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14071 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14072 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14073 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14075 (gen_cond_trap): Likewise.
14076 (prepare_operand): Likewise. Change icode to an insn_code.
14077 (insn_operand_matches): New function.
14078 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14079 * reload1.c (gen_reload): Likewise.
14080 * targhooks.c (default_secondary_reload): Likewise.
14082 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14084 * config/alpha/alpha.md (unspec): New define_c_enum.
14087 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14090 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14091 between a call and its CALL_ARG_LOCATION note.
14093 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14095 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14097 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14101 * c-common.c (shorten_compare): If primopN is first sign-extended
14102 to opN and then zero-extended to result type, set primopN to opN.
14104 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14106 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14107 for barrier handlers.
14109 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14111 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14112 UNSPEC constants to be in the unspec enumeration, and redefine
14113 all UNSPECV constants to be in the unspecv enumeration, so that
14114 dumps print which unspec/unspec_volatile this is.
14115 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14116 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14117 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14118 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14119 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14121 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14122 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14123 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14124 * config/rs6000/sync.md (isync, lwsync): Ditto.
14126 2011-03-21 Richard Guenther <rguenther@suse.de>
14128 * params.def (lto-min-partition): Fix typo.
14130 2011-03-21 Richard Guenther <rguenther@suse.de>
14133 * c-decl.c (grokdeclarator): Drop to the main variant only
14134 for array types. Drop flag_gen_aux_info check.
14136 2011-03-21 Richard Guenther <rguenther@suse.de>
14138 PR translation/47911
14139 * params.def (lto-partitions): Fix typo.
14140 (lto-min-partition): Fix wording.
14142 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14144 * config/rs6000/t-freebsd: Remove duplication from file.
14146 2011-03-21 Richard Guenther <rguenther@suse.de>
14148 PR middle-end/47661
14149 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14151 2011-03-21 Richard Guenther <rguenther@suse.de>
14154 * params.def (lto-partitions): Require at least 1 partition.
14156 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14158 * gthr-solaris.h: Remove.
14159 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14160 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14161 (LIB_SPEC): Likewise.
14162 * config/sol2.opt (threads): Remove.
14163 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14164 (sparc*-*-solaris2*): Likewise.
14165 * configure.ac (enable_threads): Enable solaris support.
14166 * configure: Regenerate.
14167 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14168 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14171 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14173 * config.gcc: Obsolete *-*-solaris2.8*.
14174 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14176 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14179 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14180 reference. Solaris 8 perl works.
14182 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14185 * doc/install.texi (Prerequisites): Move jar etc. up.
14186 Explain support library version requirements.
14188 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14191 * doc/install.texi (Prerequisites): Move Perl to build
14192 requirements. Always necessary on Solaris 2 with Sun ld.
14194 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14196 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14198 (Specific, i?86-*-solaris2.[89]): Likewise.
14199 (Specific, i?86-*-solaris2.10): Likewise.
14200 (Specific, mips-sgi-irix6): Likewise.
14201 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14202 Update for binutils 2.21.
14204 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14206 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14207 Allow -fuse-linker-plugin for non-default plugin linker.
14208 * configure: Regenerate.
14210 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14213 * gengtype.c (files_rules): Added rule for cp/parser.h.
14215 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14218 * config/s390/s390.c (s390_delegitimize_address): Don't call
14219 lowpart_subreg if orig_x has BLKmode.
14221 2011-03-21 Kai Tietz <ktietz@redhat.com>
14224 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14225 * tree.h (attribute_spec): Add new member affects_type_identity.
14226 * attribs.c (empty_attribute_table): Adjust attribute_spec
14228 * config/alpha/alpha.c: Likewise.
14229 * config/arc/arc.c: Likewise.
14230 * config/arm/arm.c: Likewise.
14231 * config/avr/avr.c: Likewise.
14232 * config/bfin/bfin.c: Likewise.
14233 * config/crx/crx.c: Likewise.
14234 * config/darwin.h: Likewise.
14235 * config/h8300/h8300.c: Likewise.
14236 * config/i386/cygming.h: Likewise.
14237 * config/i386/i386.c: Likewise.
14238 * config/ia64/ia64.c: Likewise.
14239 * config/m32c/m32c.c: Likewise.
14240 * config/m32r/m32r.c: Likewise.
14241 * config/m68hc11/m68hc11.c: Likewise.
14242 * config/m68k/m68k.c: Likewise.
14243 * config/mcore/mcore.c: Likewise.
14244 * config/mep/mep.c: Likewise.
14245 * config/microblaze/microblaze.c: Likewise.
14246 * config/mips/mips.c: Likewise.
14247 * config/rs6000/rs6000.c: Likewise.
14248 * config/rx/rx.c: Likewise.
14249 * config/sh/sh.c: Likewise.
14250 * config/sol2.h: Likewise.
14251 * config/sparc/sparc.c: Likewise.
14252 * config/spu/spu.c: Likewise.
14253 * config/stormy16/stormy16.c: Likewise.
14254 * config/v850/v850.c: Likewise.
14256 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14258 * simplify-rtx.c (simplify_binary_operation_1): Handle
14259 (xor (and A B) C) case when B and C are both constants.
14261 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14263 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14265 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14268 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14270 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14272 PR rtl-optimization/48156
14273 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14274 assume df and df_lr are not NULL.
14276 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14279 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14280 between a call and its CALL_ARG_LOCATION note.
14282 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14285 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14286 between a call and its corresponding CALL_ARG_LOCATION note.
14288 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14290 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14291 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14292 * haifa-sched.c (setup_ref_regs): Ditto.
14293 * caller-save.c (add_used_regs_1): Ditto.
14294 * dse.c (look_for_hardregs): Ditto.
14295 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14296 * sched-rgn.c (check_live_1): Ditto.
14298 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14300 * c-decl.c (diagnose_mismatched_decls): Give an error for
14301 redefining a typedef with variably modified type.
14303 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14305 * c-decl.c (grokfield): Don't allow typedefs for structures or
14306 unions with no tag by default.
14307 * doc/extend.texi (Unnamed Fields): Update.
14309 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14311 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14312 Rewrite using indirect functions.
14313 (lwp_slwpcb): Ditto.
14314 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14315 (avx_vinsertf128<mode>): Ditto.
14317 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14319 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14322 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14324 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14325 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14327 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14329 PR rtl-optimization/48170
14330 * gcse.c (hoist_code): Remove bogus asserts.
14332 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14334 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14335 computation for prologue/epilogue.
14337 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14339 * Makefile.in (check-consistency): Remove.
14341 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14344 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14345 arange_table_in_use is 0, but either text_section_used or
14346 cold_text_section_used is true. Don't call it if
14347 !info_section_emitted.
14349 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14351 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14352 FUNCTION_VALUE_REGNO_P): Remove.
14353 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14355 * config/avr/avr.c (avr_ret_register): Make static inline.
14356 (avr_function_value_regno_p): New function.
14357 (avr_libcall_value): Make static. Add 'func' argument.
14358 (avr_function_value): Make static. Rename 'func' argument to
14359 'fn_decl_or_type', forward it to avr_libcall_value. Call
14360 avr_ret_register function instead of RET_REGISTER macro.
14361 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14363 2011-03-18 Jason Merrill <jason@redhat.com>
14366 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14368 2011-03-18 Richard Guenther <rguenther@suse.de>
14370 * doc/install.texi (--enable-gold): Remove.
14371 (--with-plugin-ld): Document.
14372 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14374 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14376 PR middle-end/47790
14377 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14378 again after expansion changes.
14380 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14382 * combine.c (try_combine): Do simplification only call of
14383 subst() on i2 even when i1 is present. Update comments.
14385 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14387 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14388 and UNSPEC_PCREL_SYMOFF.
14390 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14392 * config/s390/s390.md: Use define_c_enum for the unspec constant
14395 2011-03-18 Richard Henderson <rth@redhat.com>
14396 Jakub Jelinek <jakub@redhat.com>
14399 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14400 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14402 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14404 PR middle-end/47725
14405 * combine.c (cant_combine_insn_p): Don't check zero/sign
14406 extended hard registers.
14408 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14410 PR middle-end/47725
14411 * combine.c (cant_combine_insn_p): Check zero/sign extended
14414 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14416 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14417 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14418 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14419 Change return type to bool.
14420 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14422 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14425 * var-tracking.c (prepare_call_arguments): If CALL target
14426 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14427 pc instead of looking it up using cselib_lookup and use
14428 Pmode for it if x has VOIDmode.
14429 * dwarf2out.c (gen_subprogram_die): If also both first and
14430 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14433 * function.c (assign_parms): For data.passed_pointer parms
14434 use MEM of data.entry_parm instead of data.entry_parm itself
14435 as DECL_INCOMING_RTL.
14436 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14437 also when passed and declared mode is the same, DECL_RTL
14438 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14441 2011-03-16 Jeff Law <law@redhat.com>
14443 PR rtl-optimization/37273
14444 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14445 handle them like argument loads from stack slots. Do not double
14446 count memory for memory constants and argument loads from stack slots.
14448 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14451 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14453 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14456 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14458 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14461 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14463 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14464 Clear call_arg_locations and call_arg_loc_last always.
14466 PR middle-end/48152
14467 * var-tracking.c (prepare_call_arguments): If argument needs to be
14468 passed by reference, adjust argtype and mode.
14470 2011-03-17 Richard Guenther <rguenther@suse.de>
14472 PR middle-end/48134
14473 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14474 a value make sure to fold the statement.
14476 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14479 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14480 return condition with !cfun->calls_alloca.
14482 2011-03-17 Richard Guenther <rguenther@suse.de>
14485 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14486 origin for decls in other ltrans units.
14487 (input_varpool_node): Likewise.
14489 2011-03-17 Richard Guenther <rguenther@suse.de>
14491 PR middle-end/48165
14492 * tree-object-size.c (compute_object_offset): Properly return
14493 the offset operand of MEM_REFs as sizetype.
14495 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14497 PR rtl-optimization/48141
14498 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14499 * dse.c: Include params.h.
14500 (active_local_stores_len): New variable.
14501 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14503 (record_store, check_mem_read_rtx): Decrease it when removing
14505 (scan_insn): Likewise. Increase it when adding to chain, if it
14506 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14507 set active_local_stores to NULL before the addition.
14508 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14510 PR rtl-optimization/48141
14511 * dse.c (record_store): If no positions are needed in an insn
14512 that cannot be deleted, at least unchain it from active_local_stores.
14514 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14517 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14518 (lookup_type_die_strip_naming_typedef): ... here.
14519 (get_context_die): Use it.
14520 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14521 the anonymous struct named by the naming typedef.
14523 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14526 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14527 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14529 2011-03-16 Jeff Law <law@redhat.com>
14531 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14532 check for operands of conditional. Allow type to be a pointer.
14534 2011-03-16 Richard Guenther <rguenther@suse.de>
14536 PR tree-optimization/48149
14537 * fold-const.c (fold_binary_loc): Fold
14538 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14540 2011-03-16 Richard Guenther <rguenther@suse.de>
14542 PR tree-optimization/26134
14543 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14544 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14545 (non_rewritable_mem_ref_base): Handle complex type component
14546 accesses, constrain offsets for vector and complex extracts
14549 2011-03-16 Richard Guenther <rguenther@suse.de>
14551 PR tree-optimization/48146
14552 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14553 operands avoiding the need for renaming.
14555 2011-03-16 Richard Guenther <rguenther@suse.de>
14557 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14558 constant folding. Move MEM_REF canonicalization first.
14559 Rely on fold_const_aggregate_ref for initializer folding.
14560 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14562 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14564 PR middle-end/48136
14565 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14566 arg0/arg1 or their arguments are always fold converted to matching
14569 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14572 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14575 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14576 Handle in-tree gold.
14577 (ld_vers): Extract binutils version for gold.
14578 (gcc_cv_ld_hidden): Handle gold here.
14579 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14580 * configure: Regenerate.
14581 * config.in: Regenerate.
14582 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14583 -fuse-linker-plugin otherwise.
14584 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14585 (LINK_COMMAND_SPEC): Use it.
14586 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14588 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14590 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14591 * calls.c: Remove debug.h include.
14592 (emit_call_1): Don't call virtual_call_token debug hook.
14593 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14594 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14595 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14596 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14597 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14598 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14599 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14600 dwarf2out_virtual_call): Remove.
14601 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14602 copy_call_info and virtual_call hooks.
14603 (dwarf2out_init): Don't initialize vcall_insn_table,
14604 debug_dcall_section and debug_vcall_section.
14605 (prune_unused_types): Don't mark nodes from dcall_table.
14606 (dwarf2out_finish): Don't output dcall or vcall tables.
14607 * final.c (final_scan_insn): Don't call direct_call or
14608 virtual_call debug hooks.
14609 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14610 virtual_call_token, copy_call_info and virtual_call hooks.
14611 (debug_nothing_uid): Remove prototype.
14612 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14613 copy_call_info and virtual_call hooks.
14614 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14615 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14616 * debug.c (do_nothing_debug_hooks): Likewise.
14617 (debug_nothing_uid): Remove.
14618 * doc/invoke.texi (-fenable-icf-debug): Remove.
14619 * common.opt (-fenable-icf-debug): Likewise.
14621 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14622 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14623 call's MEM. Handle functions returning aggregate through a hidden
14624 first pointer. For virtual calls add clobbered pc to call arguments
14626 * dwarf2out.c (gen_subprogram_die): Emit
14627 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14631 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14632 * rtl.h (ENTRY_VALUE_EXP): Define.
14633 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14634 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14635 * print-rtl.c (print_rtx): Likewise.
14636 * gengtype.c (adjust_field_rtx_def): Likewise.
14637 * var-tracking.c (vt_add_function_parameter): Adjust
14638 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14639 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14640 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14641 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14642 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14644 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14645 Call var_location debug hook even on CALL_INSNs.
14646 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14647 * rtl.def (ENTRY_VALUE): New.
14648 * dwarf2out.c: Include cfglayout.h.
14649 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14650 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14651 (struct call_arg_loc_node): New type.
14652 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14653 tail_call_site_count): New variables.
14654 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14655 DW_TAG_GNU_call_site_parameter.
14656 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14657 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14658 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14659 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14660 and DW_AT_GNU_all_source_call_sites.
14661 (mem_loc_descriptor): Handle ENTRY_VALUE.
14662 (add_src_coords_attributes): Don't add enything if
14663 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14664 (dwarf2out_abstract_function): Save and clear call_arg_location,
14665 call_site_count and tail_call_site_count around dwarf2out_decl call.
14666 (gen_call_site_die): New function.
14667 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14668 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14669 (dwarf2out_function_decl): Clear call_arg_locations,
14670 call_arg_loc_last, set call_site_count and tail_call_site_count
14671 to -1 and free block_map.
14672 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14673 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14674 followed by any real instructions.
14675 (dwarf2out_begin_function): Set call_site_count and
14676 tail_call_site_count to 0.
14677 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14678 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14679 attempt to force a DIE for it and worst case remove the attribute.
14680 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14681 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14683 * var-tracking.c: Include tm_p.h.
14684 (vt_stack_adjustments): For calls call note_register_arguments.
14685 (argument_reg_set): New variable.
14686 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14687 ensure the VALUE is resolved.
14688 (call_arguments): New variable.
14689 (prepare_call_arguments): New function.
14690 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14691 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14692 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14693 always use the best expression.
14694 (vt_expand_loc): Add ignore_cur_loc argument.
14695 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14696 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14697 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14698 note for all calls.
14699 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14700 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14701 argument. Don't call cselib_preserve_only_values and
14702 cselib_reset_table.
14703 (note_register_arguments): New function.
14704 (vt_initialize): Compute argument_reg_set. Call
14705 vt_add_function_parameters before processing basic blocks instead of
14706 afterwards. For calls call prepare_call_arguments before calling
14707 cselib_process_insn.
14708 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14709 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14710 (var-tracking.o): Depend on $(TM_P_H).
14711 * cfglayout.h (insn_scope): New prototype.
14712 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14713 * cfglayout.c (insn_scope): No longer static.
14714 * insn-notes.def (CALL_ARG_LOCATION): New.
14715 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14716 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14717 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14718 nothing for DECL_EXTERNAL BLOCK_VARS.
14720 2011-03-16 Alan Modra <amodra@gmail.com>
14723 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14724 create invalid offset address for vsx splat insn.
14725 * config/rs6000/predicates.md (splat_input_operand): New.
14726 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14728 2011-03-15 Xinliang David Li <davidxl@google.com>
14731 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14732 (normalize_preds): New function.
14733 (is_use_properly_guarded): Normalize def predicates.
14735 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14738 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14739 in the output template.
14741 2011-03-15 Richard Guenther <rguenther@suse.de>
14743 PR middle-end/47650
14744 * tree-pretty-print.c (dump_function_declaration): Properly
14745 dump unprototyped and varargs function types.
14747 2011-03-15 Richard Guenther <rguenther@suse.de>
14749 PR tree-optimization/13954
14750 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14753 2011-03-15 Richard Guenther <rguenther@suse.de>
14755 PR tree-optimization/48037
14756 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14757 selects into BIT_FIELD_REFs.
14758 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14761 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14763 PR tree-optimization/48129
14764 * builtins.c (fold_builtin_snprintf): Convert to type of
14765 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14766 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14768 2011-03-15 Richard Guenther <rguenther@suse.de>
14770 PR tree-optimization/41490
14771 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14772 value but with VUSE.
14773 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14775 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14776 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14777 * tree-tailcall.c (find_tail_calls): Ignore returns.
14779 2011-03-15 Richard Guenther <rguenther@suse.de>
14781 PR middle-end/48031
14782 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14783 or variable-indexed array accesses when in gimple form.
14785 2011-03-15 Richard Guenther <rguenther@suse.de>
14787 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14789 2011-03-15 Alan Modra <amodra@gmail.com>
14792 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14793 presume symbol_refs without a symbol_ref_decl are suitably
14794 aligned, nor other trees we may see here. Handle anchor symbols.
14795 (legitimate_constant_pool_address_p): Comment. Add mode param.
14796 Check cmodel=medium addresses. Adjust all calls.
14797 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14798 creating cmodel=medium optimized access to locals.
14799 * config/rs6000/constraints.md (R): Pass QImode to
14800 legitimate_constant_pool_address_p.
14801 * config/rs6000/predicates.md (input_operand): Pass mode to
14802 legitimate_constant_pool_address_p.
14803 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14806 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14809 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14810 64-bit constants being loaded into registers other than GPRs such
14811 as loading 0 into a VSX register.
14813 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14815 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14817 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14819 PR middle-end/47917
14820 * builtins.c (fold_builtin_snprintf): New function.
14821 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14822 (fold_builtin_4): Likewise.
14824 PR middle-end/38878
14825 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14826 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14827 and C - X == X also strip nops from +/-/p+ operand.
14828 When optimizing -X == C, fold C to arg0's type.
14831 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14832 emit it as add_AT_int instead of add_AT_unsigned.
14834 2011-03-14 Tom Tromey <tromey@redhat.com>
14836 * unwind-dw2.c: Include sys/sdt.h if it exists.
14837 (_Unwind_DebugHook): Use STAP_PROBE2.
14838 * config.in, configure: Rebuild.
14839 * configure.ac: Check for sys/sdt.h.
14841 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14843 * config/i386/i386.md (ROUND_FLOOR): New constant.
14844 (ROUND_CEIL): Ditto.
14845 (ROUND_TRUNC): Ditto.
14846 (ROUND_MXCSR): Ditto.
14847 (ROUND_NO_EXC): Ditto.
14848 (rint<mode>2): Use new defines instead of numerical constants.
14849 (floor<mode>2): Ditto.
14850 (ceil<mode>2): Ditto.
14851 (btrunc<mode>2): Ditto.
14852 * config/i386/i386-builtin-types.def: Define ROUND function type
14854 * config/i386/i386.c (enum ix86_builtins): Add
14855 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14856 (struct builtin_description): Add
14857 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14858 (ix86_expand_sse_round): New static function.
14859 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14861 (ix86_builtin_vectorized_function): Handle
14862 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14864 2011-03-14 Tom Tromey <tromey@redhat.com>
14866 * c-parser.c (c_parser_asm_string_literal): Clear
14867 warn_overlength_strings.
14869 2011-03-14 Tom Tromey <tromey@redhat.com>
14871 * c-parser.c (disable_extension_diagnostics): Save
14872 warn_overlength_strings.
14873 (restore_extension_diagnostics): Restore warn_overlength_strings.
14875 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14877 * BASE-VER: Change to 4.7.0.
14879 2011-03-14 Richard Guenther <rguenther@suse.de>
14881 PR middle-end/48098
14882 * tree.c (build_vector_from_val): Adjust assert to requirements
14885 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14888 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14890 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14892 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14893 terms of target_flags_explicit. Adjust copyright year.
14895 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14896 * config/rs6000/t-freebsd: New file. Add override for
14899 2011-03-13 Chris Demetriou <cgd@google.com>
14901 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14902 (-fno-diagnostics-show-option): this, to reflect current default.
14903 (-Werror=): Update text about -fno-diagnostics-show-option.
14905 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14908 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14909 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14910 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14911 mode is not V2DImode or V2DFmode.
14912 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14913 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14914 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14916 (movdi_internal64): Likewise.
14918 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14920 PR tree-optimization/47127
14921 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14923 (set_cloog_options): Same.
14924 (scop_to_clast): Same.
14925 (print_clast_stmt): Do not call cloog_state_malloc and
14927 (print_generated_program): Same.
14929 * graphite-clast-to-gimple.h (cloog_state): Declared.
14930 (scop_to_clast): Adjust declaration.
14931 * graphite.c (cloog_state): Defined here.
14932 (graphite_initialize): Call cloog_state_malloc.
14933 (graphite_finalize): Call cloog_state_free.
14935 2011-03-11 Jason Merrill <jason@redhat.com>
14937 * attribs.c (lookup_attribute_spec): Take const_tree.
14940 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14942 * config/sparc/sparc.c (sparc_option_override): Use
14943 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14945 2011-03-11 Richard Guenther <rguenther@suse.de>
14947 PR tree-optimization/48067
14948 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14949 multiplication result will be only used once on the target
14952 2011-03-11 Richard Guenther <rguenther@suse.de>
14954 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14956 2011-03-11 Richard Guenther <rguenther@suse.de>
14959 * tree.c (find_decls_types_r): Do not walk types only reachable
14960 from IDENTIFIER_NODEs.
14962 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14964 PR middle-end/48044
14965 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14966 all vnode->force_output nodes as needed.
14968 2011-03-11 Jason Merrill <jason@redhat.com>
14971 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14972 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14974 2011-03-11 Martin Jambor <mjambor@suse.cz>
14976 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14979 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14981 PR tree-optimization/48063
14982 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14983 inline functions called once if !tree_can_inline_p (node->callers).
14985 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14987 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14989 * config/score/score3.c: Delete.
14990 * config/score/score3.h: Delete.
14991 * config/score/mul-div.S: Delete.
14992 * config/score/sfp-machine.h: Add new file.
14993 * config/score/constraints.md: Add new file.
14994 * config/score/t-score-softfp: Add new file.
14995 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14996 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14997 (score7_extra_constraint): Delete.
14998 (score7_option_override): Remove unused code.
14999 * config/score/score.c: Remove score3 and score5 define and code.
15000 * config/score/score.h: Remove score3 and score5 define and code.
15001 * config/score/score.md: Remove score3 template and unusual insn.
15002 * config/score/score.opt: Remove score3 and score5 options.
15004 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15006 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15007 when _HPUX_SOURCE is defined.
15008 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15010 2011-03-10 Jason Merrill <jason@redhat.com>
15013 * stor-layout.c (layout_type): Don't set structural equality
15014 on arrays of incomplete type.
15015 * tree.c (type_hash_eq): Handle comparing them properly.
15017 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15020 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15021 result mode matches original rtl mode.
15023 2011-03-10 Nick Clifton <nickc@redhat.com>
15025 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15026 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15028 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15030 PR rtl-optimization/47866
15031 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15032 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15033 if target wasn't scalar.
15034 * function.c (assign_stack_temp_for_type): Assert that neither
15035 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15036 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15038 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15040 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15042 * config/s390/s390-protos.h (s390_label_align): New prototype.
15043 * config/s390/s390.c (s390_label_align): New function.
15044 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15046 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15049 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15050 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15051 (output_vec_const_move): Ditto.
15053 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15055 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15056 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15057 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15058 Change 'rclass' argument and result type to reg_class_t.
15059 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15061 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15063 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15064 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15065 (TARGET_MEMORY_MOVE_COST): Define.
15066 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15068 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15071 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15074 PR tree-optimization/48022
15075 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15078 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15081 * var-tracking.c (find_use_val): Return NULL for
15082 cui->sets && cui->store_p BLKmode MEMs.
15084 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15086 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15088 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15089 xstormy16_print_operand_address): Remove.
15090 * config/stormy16/stormy16.c (xstormy16_print_operand,
15091 xstormy16_print_operand_address): Make static.
15092 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15094 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15097 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15098 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15101 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15104 * cfgloopmanip.c (fix_bb_placements): Return immediately
15105 if FROM is BASE_LOOP's header.
15107 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15109 * gimplify.c (gimplify_function_tree): Fix building calls
15110 to __builtin_return_address.
15112 2011-03-07 Alan Modra <amodra@gmail.com>
15114 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15115 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15116 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15117 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15119 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15120 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15121 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15122 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15123 * config/rs6000/rs6000.c
15124 (rs6000_elf_end_indicate_exec_stack): Rename to..
15125 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15126 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15127 (rs6000_file_start): ..here.
15128 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15129 file scope variables.
15130 (call_ABI_of_interest): New function.
15131 (init_cumulative_args): Set above vars when function return value
15132 is a float, vector, or small struct.
15133 (rs6000_function_arg_advance_1): Likewise for function args.
15134 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15135 references float args.
15137 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15139 * doc/cfg.texi: Remove "See" before @ref.
15140 * doc/invoke.texi: Likewise.
15142 2011-03-05 Jason Merrill <jason@redhat.com>
15144 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15146 2011-03-05 Anthony Green <green@moxielogic.com>
15148 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15150 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15152 PR rtl-optimization/47899
15153 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15154 to flow_loop_nested_p when moving the loop upward.
15156 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15159 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15161 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15163 PR tree-optimization/47967
15164 * ipa-cp.c (build_const_val): Return NULL instead of creating
15165 VIEW_CONVERT_EXPR for mismatching sizes.
15166 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15167 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15168 give up on versioning.
15170 2011-03-05 Alan Modra <amodra@gmail.com>
15173 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15174 full cmodel medium/large lo_sum + high addresses.
15176 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15178 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15179 pool references in UNSPEC_LTREL_OFFSET.
15181 2011-03-04 Jan Hubicka <jh@suse.cz>
15184 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15185 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15186 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15188 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15189 cgraph_add_thunk): Add node pointers.
15190 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15191 associated to right node.
15192 (input_node): Update use of cgraph_same_body_alias
15193 and cgraph_add_thunk.
15195 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15197 * config/i386/i386.opt (mprefer-avx128): New flag.
15198 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15199 modes when the flag -mprefer-avx128 is on.
15201 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15203 * dwarf2out.c (compare_loc_operands): Fix address handling.
15205 2011-03-04 Alan Modra <amodra@gmail.com>
15207 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15209 2011-03-04 Richard Guenther <rguenther@suse.de>
15211 PR middle-end/47968
15212 * expmed.c (extract_bit_field_1): Prefer vector modes that
15213 vec_extract patterns can handle.
15215 2011-03-04 Richard Guenther <rguenther@suse.de>
15217 PR middle-end/47975
15218 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15220 2011-03-04 Richard Henderson <rth@redhat.com>
15222 * explow.c (emit_stack_save): Remove 'after' parameter.
15223 (emit_stack_restore): Likewise.
15224 * expr.h: Update to match.
15225 * builtins.c, calls.c, stmt.c: Likewise.
15226 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15227 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15228 * function.c (expand_function_end): Insert the emit_stack_save
15229 sequence before parm_birth_insn instead of after.
15231 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15233 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15234 (ssse3_pmaddubsw128): Ditto.
15235 (ssse3_pmaddubsw): Ditto.
15237 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15239 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15241 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15244 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15245 on TYPE_SIZE_UNIT if it is a DECL.
15248 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15249 first operand is not is_gimple_mem_ref_addr, try to fold it.
15250 If the operand still isn't is_gimple_mem_ref_addr, clear
15253 2011-03-03 Richard Guenther <rguenther@suse.de>
15255 PR middle-end/47283
15256 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15258 (refs_may_alias_p_1): For release branches return true if
15259 we are confused by our input.
15261 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15263 * config/s390/s390.c (s390_function_value): Rename to ...
15264 (s390_function_and_libcall_value): ... this.
15265 (s390_function_value): New function.
15266 (s390_libcall_value): New function.
15267 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15268 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15269 target macro definitions.
15270 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15272 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15274 * config/i386/freebsd64.h (CC1_SPEC): Define.
15275 * config/i386/linux64.h (CC1_SPEC): Define.
15276 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15278 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15280 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15282 * config/stormy16/stormy16.c: Include reload.h.
15283 (xstormy16_memory_move_cost): New function.
15284 (TARGET_MEMORY_MOVE_COST): Define.
15286 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15288 PR rtl-optimization/47925
15289 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15290 with side effects. Remove the more-specific check for volatile asms.
15292 2011-03-02 Alan Modra <amodra@gmail.com>
15295 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15296 toc relative addresses for valid offsets.
15298 2011-03-01 Richard Guenther <rguenther@suse.de>
15300 PR tree-optimization/47890
15301 * tree-vect-loop.c (get_initial_def_for_induction): Set
15302 related stmt properly.
15304 2011-03-01 Richard Guenther <rguenther@suse.de>
15307 * lto-streamer.c (lto_record_common_node): Also register
15308 the canonical type.
15310 2011-03-01 Richard Guenther <rguenther@suse.de>
15313 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15314 Do not stream DECL_ABSTRACT_ORIGIN.
15315 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15316 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15317 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15318 Do not stream DECL_ABSTRACT_ORIGIN.
15319 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15320 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15322 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15324 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15325 FUNCTION_VALUE_REGNO_P): Remove.
15326 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15327 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15328 Add 'outgoing' argument.
15329 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15331 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15332 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15334 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15337 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15338 (lookup_filename): Likewise.
15339 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15341 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15342 Jakub Jelinek <jakub@redhat.com>
15344 PR middle-end/47893
15345 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15346 (assign_stack_local_1): Change last argument type to int.
15347 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15348 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15349 don't record padding space into frame_space_list nor use those areas.
15350 (assign_stack_local): Adjust caller.
15351 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15352 of assign_stack_local, pass 0 as last argument.
15353 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15356 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15359 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15360 Use target address_mode and pointer_mode hooks instead of hardcoded
15361 Pmode and ptr_mode. Handle some simple cases of extending if
15362 POINTERS_EXTEND_UNSIGNED < 0.
15363 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15364 Call convert_debug_memory_address.
15365 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15366 convert_debug_memory_address.
15368 PR middle-end/46790
15369 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15370 * configure: Regenerated.
15371 * config.in: Regenerated.
15372 * varasm.c (default_function_section): Return NULL
15373 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15375 2011-02-28 Martin Jambor <mjambor@suse.cz>
15377 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15378 the description to match the printed values.
15380 2011-02-28 Richard Guenther <rguenther@suse.de>
15382 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15383 of the copied scope tree.
15385 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15387 * doc/extend.texi (Function Attributes): Avoid deeply (and
15388 wrongly) nested tables.
15390 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15392 PR middle-end/47903
15393 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15394 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15395 r isn't op0 nor op1.
15397 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15399 * config/avr/avr.md: Remove magic comment for emacs.
15401 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15404 * config/avr/avr.c (avr_option_override): Use error on bad options.
15405 (avr_help): New function.
15406 (TARGET_HELP): Define.
15408 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15411 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15412 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15414 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15416 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15417 (ARM Options): Ditto.
15418 (i386 and x86-64 Options): Ditto.
15419 (RX Options): Ditto.
15420 (SPARC Options): Ditto.
15422 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15424 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15425 FreeBSD 6 and later. Generally use cpu generic.
15427 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15429 * doc/cpp.texi: Update copyright years.
15431 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15434 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15436 2011-02-25 Jon Beniston <jon@beniston.com>
15439 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15440 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15441 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15442 (lm32_block_move_inline): Add type cast to remove warning.
15443 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15444 (gen_int_relational): Move declarations to start of function.
15446 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15448 PR tree-optimization/45470
15449 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15450 can throw internally only.
15451 * tree-vect-stmts.c (vectorizable_call): Likewise.
15453 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15455 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15456 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15457 * config/stormy16/stormy16-protos.h
15458 (xstormy16_preferred_reload_class): Remove.
15459 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15460 static. Change 'rclass' argument and return type to reg_class_t.
15461 (TARGET_PREFERRED_RELOAD_CLASS,
15462 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15464 2011-02-24 Richard Guenther <rguenther@suse.de>
15466 * lto-streamer-in.c (input_bb): Do not find referenced vars
15467 in debug statements.
15469 2011-02-23 Jason Merrill <jason@redhat.com>
15471 * common.opt (fabi-version): Document v5 and v6.
15473 2011-02-23 Richard Guenther <rguenther@suse.de>
15475 PR tree-optimization/47849
15476 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15478 2011-02-23 Jie Zhang <jie@codesourcery.com>
15480 * opts-common.c (decode_cmdline_option): Print empty string
15481 argument as "" in decoded->orig_option_with_args_text.
15482 * gcc.c (execute): Print empty string argument as ""
15483 in the verbose output.
15484 (do_spec_1): Keep empty string argument.
15486 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15488 * config.gcc: Declare score-* and crx-* obsolete.
15490 2011-02-23 Jie Zhang <jie@codesourcery.com>
15492 PR rtl-optimization/47763
15493 * web.c (web_main): Ignore naked clobber when replacing register.
15495 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15497 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15500 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15503 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15505 2011-02-22 Mike Stump <mikestump@comcast.net>
15507 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15509 * configure: Regenerate.
15511 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15513 PR rtl-optimization/46002
15514 * ira-color.c (update_copy_costs): Change class intersection
15515 test to reg_class_contents[] test of 'hard_regno'.
15517 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15519 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15520 than Driver option.
15521 * config/hpux11.opt (mt): Likewise.
15522 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15523 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15524 * config/vax/elf.opt (mno-asm-pic): Likewise.
15525 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15527 2011-02-21 Mike Stump <mikestump@comcast.net>
15530 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15531 tree so we can get save the type.
15532 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15533 for CFString instead of trying to use past the end of the builtins.
15534 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15535 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15536 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15537 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15538 Rename to darwin_builtin_cfstring.
15539 (darwin_init_cfstring_builtins): Return the built type.
15541 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15544 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15545 (_mm256_insert_epi64): Use _mm_insert_epi64.
15547 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15549 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15550 * config/stormy16/stormy16-protos.h
15551 (xstormy16_mode_dependent_address_p): Remove.
15552 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15553 Make static. Change return type to bool. Change argument type to
15554 const_rtx. Remove dead code.
15555 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15557 2011-02-21 Richard Guenther <rguenther@suse.de>
15560 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15561 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15562 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15564 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15565 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15567 2011-02-20 Richard Guenther <rguenther@suse.de>
15570 * tree.c (free_lang_data_in_decl): Clean builtins from
15571 the TU decl BLOCK_VARS.
15573 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15577 * haifa-sched.c (fix_tick_ready): Skip tick computation
15580 2011-02-19 Richard Guenther <rguenther@suse.de>
15583 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15584 Remove lazy BLOCK_VARS streaming.
15585 (lto_input_ts_block_tree_pointers): Likewise.
15586 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15588 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15590 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15592 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15594 * config/i386/biarch32.h, config/i386/mach.h,
15595 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15597 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15600 * config/i386/i386.md (peephole2 for shift and plus): Use
15601 operands[1] original mode in the first insn.
15603 2011-02-18 Mike Stump <mikestump@comcast.net>
15605 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15607 2011-02-18 Jan Hubicka <jh@suse.cz>
15609 PR middle-end/47788
15610 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15611 to zero when the function is not inlinable at all.
15613 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15615 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15616 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15617 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15618 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15619 * config/pa/t-pa64: Likewise.
15620 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15622 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15625 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15627 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15630 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15632 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15634 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15635 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15636 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15637 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15638 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15639 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15640 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15641 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15642 m32r_legitimate_address_p): New functions.
15643 * config/m32r/constraints.md (constraint "S"): Don't use
15644 STORE_PREINC_PREDEC_P.
15645 (constraint "U"): Don't use LOAD_POSTINC_P.
15647 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15649 PR rtl-optimization/46178
15650 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15651 compute ira_hard_regno_cover_class[].
15653 2011-02-18 Richard Guenther <rguenther@suse.de>
15656 * lto-streamer.h (lto_global_var_decls): Declare.
15657 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15658 statics for global var processing.
15660 2011-02-18 Richard Guenther <rguenther@suse.de>
15662 PR tree-optimization/47737
15663 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15664 edge dominance check.
15666 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15669 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15670 avoid invalid rtx sharing.
15672 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15674 * doc/cpp.texi (Obsolete Features): Add background on the
15675 origin of assertions.
15677 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15679 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15681 * config/darwin.c (output_objc_section_asm_op): Added support for
15683 (is_objc_metadata): New.
15684 (darwin_objc2_section): New.
15685 (darwin_objc1_section): New.
15686 (machopic_select_section): Added support for ABI v1 and v2.
15687 (darwin_emit_objc_zeroed): New.
15688 (darwin_output_aligned_bss): Detect objc metadata and treat it
15690 (darwin_asm_output_aligned_decl_common): Same.
15691 (darwin_asm_output_aligned_decl_local): Same.
15692 * config/darwin-sections.def: Updated for ABI v1 and v2.
15693 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15694 compiling Objective-C code for the NeXT runtime, default to using
15695 ABI version 0 for 32-bit, and version 2 for 64-bit.
15697 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15699 * common.opt (optimize_fast): New Variable.
15700 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15701 instead of local variable ofast.
15703 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15705 * doc/invoke.texi (fobjc-abi-version): Documented.
15706 (fobjc-nilcheck): Documented.
15707 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15710 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15713 * common.opt (export-dynamic): New Driver option.
15714 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15716 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15718 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15720 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15721 Jan Hubicka <jh@suse.cz>
15725 * cfgexpand.c (account_used_vars_for_block): Remove.
15726 (estimated_stack_frame_size): Use referenced vars.
15727 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15728 that were referenced in the original function. Test src_fn
15729 rather than cfun. Drop redundant get_var_ann.
15730 (setup_one_parameter): Drop redundant get_var_ann.
15731 (declare_return_variable): Likewise.
15732 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15733 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15734 * ipa-inline.c (compute_inline_parameters): Do not compute
15735 disregard_inline_limits here.
15736 (compute_inlinable_for_current, pass_inlinable): New.
15737 (pass_inline_parameters): Require PROP_referenced_vars.
15738 * cgraphunit.c (cgraph_process_new_functions): Don't run
15739 compute_inline_parameters explicitly unless function is in SSA form.
15740 (cgraph_analyze_function): Set .disregard_inline_limits.
15741 * tree-sra.c (convert_callers): Compute inliner parameters
15742 only for functions already in SSA form.
15744 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15746 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15747 -mlittle-endian-data.
15749 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15751 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15752 -mno-fpu, not -fpu and -no-fpu.
15753 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15754 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15756 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15759 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15760 input reload with PLUS RTX.
15762 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15764 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15765 of InverseVar(MDMX).
15767 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15769 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15772 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15774 * config/mn10300/mn10300.opt (mno-crt0): New.
15776 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15778 * config/m68k/uclinux.opt (static-libc): New Driver option.
15780 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15782 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15784 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15786 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15787 %{muser-extend-enabled}.
15789 2011-02-16 Richard Guenther <rguenther@suse.de>
15791 PR tree-optimization/47738
15792 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15793 the TODO from tree_predictive_commoning.
15795 2011-02-15 Jeff Law <law@redhat.com>
15798 2011-01-25 Jeff Law <law@redhat.com>
15800 PR rtl-optimization/37273
15801 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15802 handle them like argument loads from stack slots. Do not double
15803 count memory for memory constants and argument loads from stack slots.
15805 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15807 PR middle-end/47725
15808 * combine.c (cant_combine_insn_p): Revert the last change.
15810 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15813 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15814 mode for vector constants. Remove code that checks for TImode.
15816 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15820 * cgraph.h (compute_inline_parameters): Return void.
15821 * ipa-inline.c (compute_inline_parameters): Adjust.
15823 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15827 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15829 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15830 * ipa-inline.c (compute_inline_parameters): Adjust.
15832 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15836 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15837 Adjust all users. Pass FN to...
15838 * tree-flow-inline.h (first_referenced_var): ... this. Add
15840 * ipa-struct-reorg.c: Adjust.
15841 * tree-dfa.c: Adjust.
15842 * tree-into-ssa.c: Adjust.
15843 * tree-sra.c: Adjust.
15844 * tree-ssa-alias.c: Adjust.
15845 * tree-ssa-live.c: Adjust.
15846 * tree-ssa.c: Adjust.
15847 * tree-ssanames.c: Adjust.
15848 * tree-tailcall.c: Adjust.
15850 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15854 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15855 Adjust all callers.
15856 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15857 * tree-flow-inline.h: Adjust.
15858 * gimple-pretty-print.c: Adjust.
15859 * tree-into-ssa.c: Adjust.
15860 * tree-ssa.c: Adjust.
15861 * cfgexpand.c: Adjust.
15863 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15865 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15866 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15867 (EXTRA_CONSTRAINT): Delete.
15868 * config/iq2000/constraints.md: New file.
15869 * config/iq2000/iq2000.md: Include it.
15870 (define_insn ""): Delete.
15871 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15872 unsupported constraint letters from patterns.
15873 (call_value, call_value_internal1): Likewise.
15874 (call_value_multiple_internal1): Likewise.
15876 2011-02-15 Nick Clifton <nickc@redhat.com>
15878 * config/mn10300/mn10300.c: Include tm-constrs.h.
15879 (struct liw_data): New data structure describing an LIW candidate
15881 (extract_bundle): Use struct liw_data. Allow small integer
15882 operands for some instructions.
15883 (check_liw_constraints): Use struct liw_data. Remove swapped
15884 parameter. Add comments describing the checks. Fix bug when
15885 assigning the source of liw1 to the source of liw2.
15886 (liw_candidate): Delete. Code moved into extract_bundle.
15887 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15889 * config/mn10300/predicates.md (liw_operand): New predicate.
15890 Allows registers and small integer constants.
15891 * config/mn10300/constraints.md (O): New constraint. Accetps
15892 integers in the range -8 to +7 inclusive.
15893 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15894 for moving a small integer into a register. Give this alternative
15896 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15897 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15898 using the J,K,L and M constraints,
15899 (liw): Remove SI mode on second operands to allow for HI and QI
15901 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15904 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15906 PR middle-end/47725
15907 * combine.c (cant_combine_insn_p): Check zero/sign extended
15910 2011-02-15 Richard Guenther <rguenther@suse.de>
15912 PR tree-optimization/47743
15913 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15914 for a non-type-compatible VN lookup bail out.
15916 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15918 * config/fr30/constraints.md: New file.
15919 * config/fr30/fr30.md: Include it.
15920 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15921 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15922 (EXTRA_CONSTRAINT): Delete.
15924 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15926 * config/frv/constraints.md: New file.
15927 * config/frv/predicates.md: Include it.
15928 * config/frv/frv.c (reg_class_from_letter): Delete.
15929 (frv_option_override): Don't initialize it.
15930 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15931 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15932 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15933 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15934 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15935 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15936 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15937 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15938 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15939 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15940 (REG_CLASS_FROM_CONSTRAINT): Delete.
15942 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15944 PR middle-end/47581
15945 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15946 if frame size is 0 in a leaf function.
15948 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15951 * config/alpha/host-osf.c: New file.
15952 * config/alpha/x-osf: New file.
15953 * config.host (alpha*-dec-osf*): Use it.
15955 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15957 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15958 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15959 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15960 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15962 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15964 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15966 * config/stormy16/constraints.md: New file.
15967 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15968 Use satisfies_constraint_Q and satisfies_constraint_R.
15969 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15971 (xstormy16_legitiamte_address_p): Declare.
15972 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15973 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15974 (EXTRA_CONSTRAINT): Delete.
15975 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15977 (xstormy16_extra_constraint_p): Delete.
15979 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15981 PR tree-optimization/46494
15982 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15983 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15984 (pass_rtl_loop_done): Add TODO_verify_flow.
15985 * fwprop.c (pass_rtl_fwprop): Likewise.
15986 * modulo-sched.c (pass_sms): Likewise.
15987 * tree-ssa-dom.c (pass_dominator): Likewise.
15988 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15989 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15990 (pass_tree_loop_done): Likewise.
15991 * tree-ssa-pre.c (execute_pre): Likewise.
15992 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15993 * tree-ssa-sink.c (pass_sink_code): Likewise.
15994 * tree-vrp.c (pass_vrp): Likewise.
15996 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15998 * config/v850/constraints.md: New file.
15999 * config/v850/v850.md: Include it.
16000 * config/v850/predicates.md (reg_or_0_operand): Use
16001 satisfies_constraint_G.
16002 (special_symbolref_operand): Use satisfies_constraint_K.
16003 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16004 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16005 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16006 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16007 (EXTRA_CONSTRAINT): Delete.
16008 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16009 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16010 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16012 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16015 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16018 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16020 * config/mcore/constraints.md: New file.
16021 * config/mcore/mcore.md: Include it.
16022 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16023 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16024 (REG_CLASS_FROM_LETTER): Delete.
16025 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16026 insn_const_int_ok_for_constraint.
16027 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16028 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16029 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16030 (EXTRA_CONSTRAINT): Delete.
16032 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16035 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16036 (IS_SIGHANDLER): Define.
16037 (sparc64_is_sighandler): New function, split off from
16038 sparc64_fallback_frame_state.
16039 (sparc_is_sighandler): New function, split off from
16040 sparc_fallback_frame_state.
16041 (sparc64_fallback_frame_state): Merge with ...
16042 (sparc_fallback_frame_state): ... this into ...
16043 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16044 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16045 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16046 stack instead of hardcoded offsets.
16048 2011-02-14 Andriy Gapon <avg@freebsd.org>
16051 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16053 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16055 * configure: Regenerate.
16057 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16060 * gcc.c (asm_options): Correct spec matching --target-help.
16062 2011-02-12 Martin Jambor <mjambor@suse.cz>
16064 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16065 to gimple call error.
16067 2011-02-12 Mike Stump <mikestump@comcast.net>
16069 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16070 comments in backslash regions.
16072 2011-02-12 Mike Stump <mikestump@comcast.net>
16073 Jakub Jelinek <jakub@redhat.com>
16074 Iain Sandoe <iains@gcc.gnu.org>
16077 * dwarf2out.c (output_cfa_loc): When required, apply the
16078 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16079 (output_loc_sequence): Likewise.
16080 (output_loc_operands_raw): Likewise.
16081 (output_loc_sequence_raw): Likewise.
16082 (output_cfa_loc): Likewise.
16083 (output_loc_list): Suppress register number adjustment when
16084 calling output_loc_sequence()
16085 (output_die): Likewise.
16087 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16089 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16091 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16092 xtensa_memory_move_cost): New functions.
16093 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16095 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16098 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16099 in the current directory.
16100 * configure: Rebuilt.
16102 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16104 * config/darwin.c (darwin_override_options): Add a hunk missed
16105 from the commit of r168571. Trim comment line lengths and
16106 correct indents of the preceding block.
16108 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16110 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16113 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16115 * common.opt (nostartfiles): New Driver option.
16117 2011-02-11 Xinliang David Li <davidxl@google.com>
16119 PR tree-optimization/47707
16120 * tree-chrec.c (convert_affine_scev): Keep type precision.
16122 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16124 PR tree-optimization/47420
16125 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16127 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16129 PR rtl-optimization/47614
16130 * rtl.h (check_for_inc_dec): Declare.
16131 * dse.c (check_for_inc_dec): Externalize...
16132 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16133 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16135 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16138 * gcc.c (main): Do not compile inputs if there were errors in
16140 * opts-common.c (read_cmdline_option): Check for wrong language
16141 after other error checks.
16143 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16145 * cgraph.c: Fix comment typos.
16146 * cgraph.h: Likewise.
16147 * cgraphunit.c: Likewise.
16148 * ipa-cp.c: Likewise.
16149 * ipa-inline.c: Likewise.
16150 * ipa-prop.c: Likewise.
16151 * ipa-pure-const.c: Likewise.
16152 * ipa-ref.c: Likewise.
16153 * ipa-reference.c: Likewise.
16155 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16158 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16160 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16163 * doc/sourcebuild.texi (Require Support): Document
16164 dg-require-ascii-locale.
16166 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16168 * doc/lto.texi (Write summary): Fix missing parentheses.
16170 2011-02-10 DJ Delorie <dj@redhat.com>
16172 * config/m32c/m32c.c (m32c_option_override): Disable
16173 -fcombine-stack-adjustments until flag value tracking and compare
16174 optimization can be rewritten.
16176 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16178 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16180 (PROCESSOR_DEFAULT64): Likewise.
16182 2011-02-10 Richard Henderson <rth@redhat.com>
16184 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16185 change from 2011-02-03.
16186 * config/rx/rx.c (flags_from_code): Likewise.
16187 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16188 is valid, n/pz otherwise.
16189 (rx_select_cc_mode): Return CCmode if Y is not zero.
16191 2011-02-10 Richard Guenther <rguenther@suse.de>
16193 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16195 2011-02-10 Richard Guenther <rguenther@suse.de>
16197 PR tree-optimization/47677
16198 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16200 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16203 * combine.c (make_compound_operation): Only change shifts into
16204 multiplication for SCALAR_INT_MODE_P.
16206 2011-02-10 Jie Zhang <jie@codesourcery.com>
16210 2011-02-05 Jie Zhang <jie@codesourcery.com>
16212 * web.c (entry_register): Don't clobber the number of the
16213 first uninitialized reference in used[].
16215 2011-02-09 Richard Guenther <rguenther@suse.de>
16217 PR tree-optimization/47664
16218 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16221 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16225 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16227 (PROCESSOR_DEFAULT64): Same.
16228 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16230 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16232 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16234 2011-02-09 Martin Jambor <mjambor@suse.cz>
16236 PR middle-end/45505
16237 * tree-sra.c (struct access): New flags grp_scalar_read and
16238 grp_scalar_write. Changed description of assignment read and write
16240 (dump_access): Dump new flags, reorder all of them.
16241 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16242 to detect multiple scalar reads.
16243 (analyze_access_subtree): Use the new scalar read write flags instead
16244 of the old flags. Adjusted comments.
16246 2011-02-08 DJ Delorie <dj@redhat.com>
16249 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16252 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16254 * config/m68k/uclinux.opt: New.
16255 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16257 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16259 * config/cris/elf.opt (sim): New Driver option.
16261 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16263 * config/xtensa/elf.opt: New.
16264 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16266 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16268 * config/vax/elf.opt: New.
16269 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16271 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16273 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16275 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16277 * config/gnu-user.opt: New.
16278 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16279 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16280 *-*-uclinux*): Use gnu-user.opt.
16282 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16284 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16285 * config/i386/gnu.h (CPP_SPEC): Likewise.
16287 2011-02-08 Ian Lance Taylor <iant@google.com>
16289 * common.opt (fcx-limited-range): Add SetByCombined flag.
16290 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16291 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16292 (fassociative-math, freciprocal-math): Likewise.
16293 (funsafe-math-optimizations): Likewise.
16294 * opth-gen.awk: Handle SetByCombined.
16295 * optc-gen.awk: Likewise.
16296 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16297 (set_unsafe_math_optimizations_flags): Likewise.
16298 * doc/options.texi (Option properties): Document SetByCombined.
16300 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16302 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16303 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16304 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16305 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16306 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16308 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16310 PR tree-optimization/46834
16311 PR tree-optimization/46994
16312 PR tree-optimization/46995
16313 * graphite-sese-to-poly.c (used_outside_reduction): New.
16314 (detect_commutative_reduction): Call used_outside_reduction.
16315 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16316 translate_scalar_reduction_to_array only when at least one
16317 loop-phi/close-phi tuple has been detected.
16319 2011-02-08 Richard Guenther <rguenther@suse.de>
16321 PR middle-end/47639
16322 * tree-vect-generic.c (expand_vector_operations_1): Update
16324 (expand_vector_operations): ... not here. Cleanup EH info
16325 and the CFG if required.
16327 2011-02-08 Richard Guenther <rguenther@suse.de>
16329 PR tree-optimization/47641
16330 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16331 require type compatibility.
16333 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16335 * gimple-low.c (lower_function_body): Don't remove the location of
16336 the return statement here.
16337 (lower_gimple_return): Do it here instead but only if the return
16338 statement is actually used twice.
16340 2011-02-08 Richard Guenther <rguenther@suse.de>
16342 PR tree-optimization/47632
16343 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16344 unused up_to_stmt parameter, return whether cfg-cleanup is
16345 necessary, remove EH info properly.
16346 (forward_propagate_into_gimple_cond): Adjust caller.
16347 (forward_propagate_into_cond): Likewise.
16348 (forward_propagate_comparison): Likewise.
16349 (tree_ssa_forward_propagate_single_use_vars): Make
16350 forward_propagate_comparison case similar to the two others.
16352 2011-02-08 Nick Clifton <nickc@redhat.com>
16354 * config/mn10300/mn10300.opt (mliw): New command line option.
16355 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16356 (liw_bundling): New automaton.
16357 (liw): New attribute.
16358 (liw_op): New attribute.
16359 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16360 (movsi_internal): Add LIW attributes.
16361 (andsi3): Likewise.
16362 (iorsi3): Likewise.
16363 (xorsi3): Likewise.
16364 (addsi3): Separate register and immediate alternatives.
16365 Add LIW attributes.
16366 (subsi3): Likewise.
16368 (aslsi3): Likewise.
16369 (lshrsi3): Likewise.
16370 (ashrsi3): Likewise.
16371 (liw): New pattern.
16372 * config/mn10300/mn10300.c (liw_op_names): New
16373 (mn10300_print_operand): Handle 'W' operand descriptor.
16374 (extract_bundle): New function.
16375 (check_liw_constraints): New function.
16376 (liw_candidate): New function.
16377 (mn10300_bundle_liw): New function.
16378 (mn10300_reorg): New function.
16379 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16380 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16381 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16382 __LIW__ or __NO_LIW__.
16383 * doc/invoke.texi: Describe the -mliw command line option.
16385 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16387 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16388 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16389 pthread_mutex_unlock): Remove.
16390 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16391 * config/pa/t-pa64: Likewise.
16392 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16393 shared libc if not linking against libpthread.
16394 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16396 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16399 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16400 on 10.6 and later to ensure that we always use the unwinder from
16401 the system. Only add -no_compact_unwind when tarteting darwin
16404 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16407 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16408 (vec_interleave_lowv2sf): Ditto.
16409 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16410 (vec_extract_oddv2sf): Ditto.
16412 2011-02-07 Mike Stump <mikestump@comcast.net>
16415 Add __ieee_divdc3 entry point.
16416 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16418 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16419 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16420 * config/darwin.c (darwin_rename_builtins): Add.
16421 * config/darwin-protos.h (darwin_rename_builtins): Add.
16423 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16426 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16429 2011-02-07 Mike Stump <mikestump@comcast.net>
16431 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16433 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16436 * config/avr/libgcc.S (exit): Move .endfunc
16438 2011-02-07 Richard Guenther <rguenther@suse.de>
16440 PR tree-optimization/47615
16441 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16442 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16443 (run_scc_vn): Initialize it.
16444 (visit_reference_op_load): Use it.
16445 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16447 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16449 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16450 DImode trapping arithmetic libfuncs.
16452 2011-02-07 Richard Guenther <rguenther@suse.de>
16454 PR tree-optimization/47621
16455 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16457 (execute_update_addresses_taken): ... here. Make it more
16458 conservative in what we accept.
16460 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16462 * config/sparc/freebsd.h (ASM_SPEC): Define.
16463 * config/sparc/vxworks.h (ASM_SPEC): Define.
16465 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16467 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16469 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16471 * doc/invoke.texi: Remove reference to compiler internals from
16472 user documentation.
16474 * reg-notes.def: Remove REG_VALUE_PROFILE.
16475 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16477 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16479 PR middle-end/47610
16480 * varasm.c (default_section_type_flags): If decl is NULL,
16481 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16483 2011-02-05 Jie Zhang <jie@codesourcery.com>
16486 * web.c (entry_register): Don't clobber the number of the
16487 first uninitialized reference in used[].
16489 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16491 PR tree-optimization/46194
16492 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16493 (build_classic_dist_vector_1): Do not represent classic distance
16494 vectors when the access functions are variating in different loops.
16496 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16498 * config/mips/iris6.opt: New.
16499 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16501 2011-02-04 Richard Henderson <rth@redhat.com>
16502 Steve Ellcey <sje@cup.hp.com>
16505 * config/ia64/predicates.md (mux1_brcst_element): New.
16506 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16507 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16508 (ia64_unpack_sign): New.
16509 (ia64_expand_unpack): Rewrite using new routines.
16510 (ia64_expand_widen_sum): Ditto.
16511 (ia64_expand_dot_prod_v8qi): Ditto.
16512 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16513 routines, add endian check.
16514 (pmpy2_even): Rename from pmpy2_r, add endian check.
16515 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16516 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16517 (vec_widen_smult_hi_v4hi): Ditto.
16518 (vec_widen_umult_lo_v4hi): Ditto.
16519 (vec_widen_umult_hi_v4hi): Ditto.
16520 (mulv2si3): Change endian checks.
16521 (sdot_prodv4hi): Rewrite with new calls.
16522 (udot_prodv4hi): New.
16523 (vec_pack_ssat_v4hi): Add endian check.
16524 (vec_pack_usat_v4hi): Ditto.
16525 (vec_pack_ssat_v2si): Ditto.
16526 (max1_even): Rename from max1_r, add endian check.
16527 (max1_odd): Rename from max1_l, add endian check.
16528 (*mux1_rev): Format change.
16529 (*mux1_mix): Ditto.
16530 (*mux1_shuf): Ditto.
16531 (*mux1_alt): Ditto.
16532 (*mux1_brcst_v8qi): Use new predicate.
16533 (vec_extract_evenv8qi): Remove endian check.
16534 (vec_extract_oddv8qi): Ditto.
16535 (vec_interleave_lowv4hi): Format change.
16536 (vec_interleave_highv4hi): Ditto.
16537 (mix2_even): Rename from mix2_r, add endian check.
16538 (mix2_odd): Rename from mux2_l, add endian check.
16539 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16540 (vec_extract_evenodd_helper): Format change.
16541 (vec_extract_evenv4hi): Remove endian check.
16542 (vec_extract_oddv4hi): Remove endian check.
16543 (vec_interleave_lowv2si): Format change.
16544 (vec_interleave_highv2si): Format change.
16545 (vec_initv2si): Remove endian check.
16546 (vecinit_v2si): Add endian check.
16547 (reduc_splus_v2sf): Add endian check.
16548 (reduc_smax_v2sf): Ditto.
16549 (reduc_smin_v2sf): Ditto.
16550 (vec_initv2sf): Remove endian check.
16551 (fpack): Add endian check.
16552 (fswap): Add endian check.
16553 (vec_interleave_highv2sf): Add endian check.
16554 (vec_interleave_lowv2sf): Add endian check.
16555 (fmix_lr): Add endian check.
16556 (vec_setv2sf): Format change.
16557 (*vec_extractv2sf_0_be): Use shift to extract operand.
16558 (*vec_extractv2sf_1_be): New.
16559 (vec_pack_trunc_v4hi): Add endian check.
16560 (vec_pack_trunc_v2si): Format change.
16562 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16564 PR inline-asm/23200
16565 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16566 do bb, locus and block comparison and disallow loads if it is not set.
16567 (stmt_is_replaceable_p): New function.
16568 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16570 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16571 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16573 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16575 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16577 * config/rs6000/xilinx.opt: New.
16578 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16580 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16582 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16584 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16586 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16587 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16588 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16589 secondary_reload_info, xtensa_secondary_reload): Remove.
16590 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16591 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16592 (xtensa_preferred_reload_class): Make static. Change return and
16593 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16594 Use CONST_DOUBLE_P predicate.
16595 (xtensa_preferred_output_reload_class): New function.
16596 (xtensa_secondary_reload): Make static.
16598 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16600 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16601 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16602 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16604 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16606 PR middle-end/31490
16607 * output.h (SECTION_RELRO): Define.
16608 (SECTION_MACH_DEP): Adjust.
16609 (get_variable_section): New prototype.
16610 * varpool.c (varpool_finalize_named_section_flags): New function.
16611 (varpool_assemble_pending_decls): Call it.
16612 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16613 * cgraphunit.c (cgraph_output_in_order): Call
16614 varpool_finalize_named_section_flags.
16615 * varasm.c (get_section): Allow section flags conflicts between
16616 relro and read-only sections if the section hasn't been declared yet.
16617 Set SECTION_OVERRIDE after diagnosing section type conflict.
16618 (get_variable_section): No longer static.
16619 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16620 readonly sections that need relocations.
16621 (decl_readonly_section_1): New function.
16622 (decl_readonly_section): Use it.
16625 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16626 Steve Ellcey <sje@cup.hp.com>
16628 PR middle-end/31490
16629 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16630 if section attribute used.
16632 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16634 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16635 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16636 (darwin_init_sections): Remove assertion.
16638 2011-02-03 Nick Clifton <nickc@redhat.com>
16640 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16642 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16643 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16644 instead of "n" and "pz".
16645 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16648 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16651 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16652 fma, expand FMA_EXPR as fma{,f,l} call.
16655 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16656 copy them into a unsigned char variable and pass address of it to
16657 lto_output_data_stream.
16660 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16661 around backend_init_target and lang_dependent_init_target calls.
16662 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16663 (verify_cgraph_node): Don't call set_cfun here. Use
16664 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16665 Set error_found for incorrectly represented calls to thunks.
16667 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16670 PR rtl-optimization/43494
16671 * rtl.h (for_each_inc_dec_fn): New type.
16672 (for_each_inc_dec): Declare.
16673 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16674 (for_each_inc_dec_find_inc_dec): New fn.
16675 (for_each_inc_dec_find_mem): New fn.
16676 (for_each_inc_dec): New fn.
16677 * dse.c (struct insn_size): Remove.
16678 (replace_inc_dec, replace_inc_dec_mem): Remove.
16679 (emit_inc_dec_insn_before): New fn.
16680 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16681 (canon_address): Pass mem modes to cselib_lookup.
16682 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16683 (cselib_lookup_from_insn): Likewise.
16684 (cselib_subst_to_values): Likewise.
16685 * cselib.c (find_slot_memmode): New var.
16686 (cselib_find_slot): New fn. Use it instead of
16687 htab_find_slot_with_hash everywhere.
16688 (entry_and_rtx_equal_p): Use find_slot_memmode.
16689 (autoinc_split): New fn.
16690 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16691 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16692 Deal with autoinc. Special-case recursion into MEMs.
16693 (cselib_hash_rtx): Likewise.
16694 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16695 address and MEM modes.
16696 (cselib_subst_to_values): Add memmode, pass it on.
16698 (cselib_lookup): Add memmode argument, pass it on.
16699 (cselib_lookup_from_insn): Add memmode.
16700 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16701 (struct cselib_record_autoinc_data): New.
16702 (cselib_record_autoinc_cb): New fn.
16703 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16704 mode to cselib_lookup. Reset autoinced REGs here instead of...
16705 (cselib_process_insn): ... here.
16706 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16708 (add_uses): Likewise, also to cselib_subst_to_values.
16709 (add_stores): Likewise.
16710 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16711 cselib_subst_to_values.
16712 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16713 * gcse.c (do_local_cprop): Adjusted.
16714 * postreload.c (reload_cse_simplify_set): Adjusted.
16715 (reload_cse_simplify_operands): Adjusted.
16716 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16718 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16720 PR tree-optimization/45122
16721 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16722 unsafe assumptions when there's more than one loop exit.
16724 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16727 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16728 Document using vector double with the load/store builtins, and
16729 that the load/store builtins always use Altivec instructions.
16731 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16732 to use altivec memory instructions, even on VSX.
16733 (vector_altivec_store_<mode>): Ditto.
16735 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16738 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16739 V2DF, V2DI support to load/store overloaded builtins.
16741 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16742 altivec load/store builtins for V2DF/V2DI types.
16744 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16745 set avoid indexed addresses on power6 if -maltivec.
16746 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16747 vector_altivec_load/vector_altivec_store builtins.
16748 (altivec_expand_st_builtin): Ditto.
16749 (altivec_expand_builtin): Add VSX memory builtins.
16750 (rs6000_init_builtins): Add V2DI types to internal types.
16751 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16752 load/store builtins.
16753 (rs6000_address_for_altivec): Insure memory address is appropriate
16756 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16757 vec_vsx_ld and vec_vsx_st.
16758 (vsx_store_<mode>): Ditto.
16760 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16761 variables to hold long long types for VSX vector memory builtins.
16762 (RS6000_BTI_unsigned_long_long): Ditto.
16763 (long_long_integer_type_internal_node): Ditti.
16764 (long_long_unsigned_type_internal_node): Ditti.
16766 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16767 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16768 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16770 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16772 (vec_vsx_st): Ditto.
16774 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16776 * config/pa/pa-hpux10.opt: New.
16777 * config/hpux11.opt (pthread): New Driver option.
16778 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16779 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16781 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16783 * config/ia64/vms.opt: New.
16784 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16786 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16789 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16790 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16791 generator functions.
16792 (vsx_floatuns<VSi><mode>2): Ditto.
16793 (vsx_fix_trunc<mode><VSi>2): Ditto.
16794 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16796 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16798 * config/i386/djgpp.opt (posix): New Driver option.
16800 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16802 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16803 Move to the unsupported targets list.
16805 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16807 PR rtl-optimization/47525
16808 * df-scan.c: Update copyright years.
16809 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16810 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16812 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16814 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16815 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16816 (ASM_OUTPUT_ASCII): Remove.
16817 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16819 2011-02-02 Jeff Law <law@redhat.com>
16821 PR middle-end/47543
16822 * reload.c (find_reloads_address): Handle reg+d address where both
16823 components are invalid by reloading the entire address.
16825 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16826 Richard Guenther <rguenther@suse.de>
16828 PR tree-optimization/40979
16830 * passes.c (init_optimization_passes): After LIM call copy_prop
16831 and DCE to clean up.
16832 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16834 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16836 PR tree-optimization/47576
16837 PR tree-optimization/47555
16838 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16839 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16840 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16841 * tree-scalar-evolution.c (follow_ssa_edge): Use
16842 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16844 2011-02-02 Richard Guenther <rguenther@suse.de>
16846 PR tree-optimization/47566
16847 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16849 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16853 * tree-inline.c (declare_return_variable): Remove unused caller
16858 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16859 * cfgexpand.c (account_used_vars_for_block): Use them.
16860 * tree-nrv.c (tree_nrv): Likewise.
16861 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16862 (dump_scope_block): Likewise.
16863 (remove_unused_locals): Likewise.
16867 * tree-inline.c (declare_return_variable): Add result decl to
16868 local decls only once.
16869 * gimple-low.c (record_vars_into): Mark newly-created variables
16872 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16878 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16880 (no_real_insns_p, schedule_block, set_priorities): Drop special
16881 treatment of boundary debug insns.
16882 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16883 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16884 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16885 (BOUNDARY_DEBUG_INSN_P): Likewise.
16886 (SCHEDULE_DEBUG_INSN_P): Likewise.
16887 * sched-rgn.c (init_ready_list): Drop special treatment of
16888 boundary debug insns.
16889 * final.c (rest_of_clean_state): Clear notes' BB.
16891 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16893 * config/openbsd.opt (assert=): New Driver option.
16895 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16897 * config/i386/nto.opt: New.
16898 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16900 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16902 * config/i386/netware.opt: New.
16903 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16905 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16907 * config/interix.opt (posix): New Driver option.
16909 2011-02-01 DJ Delorie <dj@redhat.com>
16911 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16913 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16916 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16918 PR tree-optimization/47561
16919 * toplev.c (process_options): Print the Graphite flags. Add
16920 flag_loop_flatten to the list of options requiring Graphite.
16922 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16924 * config/i386/cygming.opt (posix): New Driver option.
16926 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16928 * config/arm/vxworks.opt: New.
16929 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16931 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16933 * config/alpha/elf.opt: New.
16934 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16935 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16937 2011-02-01 Richard Guenther <rguenther@suse.de>
16939 PR tree-optimization/47559
16940 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16941 store-motion on references that can throw.
16943 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16945 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16946 * tree-pass.h (TDF_CSELIB): New macro.
16947 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16948 cselib_lookup): Check for it rather than for TDF_DETAILS.
16950 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16953 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16954 is HOST_BIT_BUCKET.
16956 * opts.c (finish_options): Don't add x_aux_base_name if it is
16959 2011-02-01 Richard Guenther <rguenther@suse.de>
16961 PR tree-optimization/47555
16963 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16965 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16967 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16970 * config/lm32/t-lm32: Add multilib for all CPU options.
16972 2011-02-01 Richard Guenther <rguenther@suse.de>
16974 PR tree-optimization/47541
16975 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16976 sure to have a field at offset zero.
16978 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16980 * config/arc/arc.opt (EB, EL): New Driver options.
16982 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16984 * config/alpha/osf5.opt: New.
16985 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16987 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16989 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16991 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16993 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16994 -floop-interchange.
16995 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16996 is an alias of -floop-interchange and that it requires the
16997 Graphite infrastructure.
16998 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16999 flag_loop_interchange based on the value of flag_tree_loop_linear.
17001 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17002 Richard Guenther <rguenther@suse.de>
17004 PR tree-optimization/47538
17005 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17006 type instead of r1type, except for comparisons. For right
17007 shifts and comparisons punt if there are mismatches in
17008 sizetype vs. non-sizetype types.
17010 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17012 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17015 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17017 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17019 * configure: Regenerate.
17021 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17023 * configure.ac (gcc_cv_ld_static_option): Define.
17024 (gcc_cv_ld_dynamic_option): Define.
17025 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17027 (HAVE_LD_STATIC_DYNAMIC): Update message.
17028 (LD_STATIC_OPTION): Define.
17029 (LD_DYNAMIC_OPTION): Define.
17030 * configure: Regenerate.
17031 * config.in: Regenerate.
17032 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17033 HAVE_LD_STATIC_DYNAMIC]: Use them.
17035 2011-01-31 Nick Clifton <nickc@redhat.com>
17037 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17038 registers inside interrupt handlers if the handler is not a leaf
17041 2011-01-31 Nick Clifton <nickc@redhat.com>
17043 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17044 reg_renumber returning an INVALID_REGNUM.
17046 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17049 * doc/install.texi: Document host options discarded when cross
17050 configuring target libraries.
17052 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17055 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17058 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17060 (no_real_insns_p, schedule_block, set_priorities): Drop special
17061 treatment of boundary debug insns.
17062 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17063 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17064 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17065 (BOUNDARY_DEBUG_INSN_P): Likewise.
17066 (SCHEDULE_DEBUG_INSN_P): Likewise.
17067 * sched-rgn.c (init_ready_list): Drop special treatment of
17068 boundary debug insns.
17069 * final.c (rest_of_clean-state): Clear notes' BB.
17071 2011-01-31 Alan Modra <amodra@gmail.com>
17073 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17074 toc relative expressions as we do in print_operand_address.
17076 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17078 * doc/extend.texi: Follow spelling conventions.
17079 * doc/invoke.texi: Fix a typo.
17081 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17083 * config/hpux11.opt: New.
17084 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17085 ia64*-*-hpux*): Use hpux11.opt.
17087 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17089 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17092 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17094 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17097 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17099 * doc/install.texi (Binaries): Remove outdated reference for
17100 Motorola 68HC11/68HC12 downloads.
17102 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17104 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17107 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17110 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17113 2011-01-28 Ahmad Sharif <asharif@google.com>
17115 * value-prof.c (check_counter): Corrected error message.
17117 2011-01-29 Jie Zhang <jie@codesourcery.com>
17119 * config/arm/arm.c (arm_legitimize_reload_address): New.
17120 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17121 arm_legitimize_reload_address.
17122 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17124 2011-01-28 Ian Lance Taylor <iant@google.com>
17126 * godump.c (go_define): Ignore macros whose definitions include
17127 two adjacent operands.
17129 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17132 * varasm.c (force_const_mem): Store copy of x in desc->constant
17133 instead of x itself.
17134 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17135 itself into REG_EQUAL note.
17137 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17139 * config/freebsd.opt (posix, rdynamic): New Driver options.
17141 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17143 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17144 -Bstatic/-Bdynamic.
17145 * configure: Regenerate.
17147 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17149 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17150 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17152 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17154 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17155 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17156 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17157 (s390_preferred_reload_class): Make static. Change return and
17158 'rclass' argument type to reg_class_t.
17160 2011-01-27 Jan Hubicka <jh@suse.cz>
17162 PR middle-end/46949
17163 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17164 (process_function_and_variable_attributes): Check defined weakrefs.
17166 2011-01-27 Martin Jambor <mjambor@suse.cz>
17168 PR tree-optimization/47228
17169 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17170 build_ref_for_offset.
17172 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17174 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17176 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17178 PR rtl-optimization/46856
17179 * postreload.c (reload_combine_recognize_const_pattern): Do not
17180 separate cc0 setter and user on cc0 targets.
17182 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17185 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17186 passed a VOID_TYPE expression, immediately emit an error and
17187 return error_mark_node.
17189 2011-01-26 Jeff Law <law@redhat.com>
17191 PR rtl-optimization/47464
17192 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17193 rather than may_trap_p as needed.
17195 2011-01-26 DJ Delorie <dj@redhat.com>
17197 PR rtl-optimization/46878
17198 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17199 setter/user dependency as well.
17201 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17203 PR rtl-optimization/44469
17204 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17205 after removing trivially dead basic blocks.
17207 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17209 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17210 * config/frv/frv.h (LINK_SPEC): Likewise.
17211 * config/i386/netware.h (LINK_SPEC): Likewise.
17212 * config/m68k/linux.h (ASM_SPEC): Likewise.
17213 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17214 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17215 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17216 * config/sparc/linux.h (ASM_SPEC): Likewise.
17217 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17218 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17220 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17222 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17223 * config/frv/frv.h (ASM_SPEC): Likewise.
17224 * config/m68k/linux.h (ASM_SPEC): Likewise.
17225 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17226 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17227 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17228 * config/sparc/linux.h (ASM_SPEC): Likewise.
17229 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17230 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17232 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17234 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17235 * config/frv/frv.h (LINK_SPEC): Likewise.
17236 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17238 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17240 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17241 * config/frv/frv.h (ASM_SPEC): Likewise.
17242 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17243 * config/m68k/linux.h (ASM_SPEC): Likewise.
17244 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17245 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17246 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17247 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17248 * config/sparc/linux.h (ASM_SPEC): Likewise.
17249 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17250 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17251 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17253 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17256 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17258 (vec_extract_evenodd_help): Ditto.
17259 (vec_extract_evenv4hi): Ditto.
17260 (vec_extract_oddv4hi): Ditto.
17261 (vec_interleave_lowv2si): Ditto.
17262 (vec_interleave_highv2si): Ditto.
17263 (vec_extract_evenv2si): Ditto.
17264 (vec_extract_oddv2si: Ditto.
17265 (vec_pack_trunc_v2si): Ditto.
17267 2011-01-22 Jan Hubicka <jh@suse.cz>
17270 * cgraph.h (cgraph_local_info): New field can_change_signature.
17271 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17272 signature can change.
17273 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17275 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17276 (cgraph_function_versioning): We can not change signature of functions
17277 that don't allow that.
17278 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17279 (lto_input_node): Likewise.
17280 * ipa-inline.c (compute_inline_parameters): Compute
17281 local.can_change_signature.
17282 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17283 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17284 functions that can not change signature.
17285 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17286 init_cumulative_args): Do not use local calling conventions
17287 for functions that can not change signature.
17289 2011-01-22 Jan Hubicka <jh@suse.cz>
17291 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17293 2011-01-26 Richard Guenther <rguenther@suse.de>
17295 PR tree-optimization/47190
17296 * cgraphunit.c (process_common_attributes): New function.
17297 (process_function_and_variable_attributes): Use it.
17299 2011-01-26 Richard Guenther <rguenther@suse.de>
17302 * cgraphbuild.c (record_eh_tables): Record reference to personality
17305 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17308 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17309 non-debug insns from moving up.
17311 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17314 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17315 t-dlldir{,-x} fragment for build and add it to tmake_file.
17316 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17317 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17318 * config/i386/t-dlldir: New file.
17319 (SHLIB_DLLDIR): Define.
17320 * config/i386/t-dlldir-x: New file.
17321 (SHLIB_DLLDIR): Define.
17322 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17323 (SHLIB_INSTALL): Use it.
17325 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17328 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17329 lower bound of the allowed Thumb-2 coprocessor load/store
17330 index range to -256. Add explaining comment.
17332 2011-01-25 Ian Lance Taylor <iant@google.com>
17334 * godump.c (go_define): Improve lexing of macro expansion to only
17335 accept expressions which match Go spec.
17337 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17340 * tree.c (handle_dll_attribute): Handle it.
17341 * doc/extend.texi (@item dllexport): Mention it.
17342 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17344 2011-01-25 Ian Lance Taylor <iant@google.com>
17346 PR tree-optimization/26854
17347 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17348 (decl_jump_unsafe): Move higher in file, with no other change.
17349 (bind): Set has_jump_unsafe_decl if appropriate.
17350 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17351 (check_earlier_gotos): Likewise.
17352 (c_check_switch_jump_warnings): Likewise.
17354 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17356 * doc/invoke.texi (Warning Options): Add missing hyphen.
17357 (-fprofile-dir): Minor grammatical fixes.
17358 (-fbranch-probabilities): Likewise.
17360 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17364 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17366 (no_real_insns_p, schedule_block, set_priorities): Drop special
17367 treatment of boundary debug insns.
17368 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17369 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17370 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17371 (BOUNDARY_DEBUG_INSN_P): Likewise.
17372 (SCHEDULE_DEBUG_INSN_P): Likewise.
17373 * sched-rgn.c (init_ready_list): Drop special treatment of
17374 boundary debug insns.
17375 * final.c (rest_of_clean-state): Clear notes' BB.
17377 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17379 * Makefile.in (LAMBDA_H): Removed.
17380 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17381 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17382 lambda-trans.o, and tree-loop-linear.o.
17383 (lto-symtab.o): Remove dependence on LAMBDA_H.
17384 (tree-loop-linear.o): Remove rule.
17385 (lambda-mat.o): Same.
17386 (lambda-trans.o): Same.
17387 (lambda-code.o): Same.
17388 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17389 (tree-vect-slp.o): Same.
17390 * hwint.h (gcd): Moved here.
17391 (least_common_multiple): Same.
17392 * lambda-code.c: Removed.
17393 * lambda-mat.c: Removed.
17394 * lambda-trans.c: Removed.
17395 * lambda.h: Removed.
17396 * tree-loop-linear.c: Removed.
17397 * lto-symtab.c: Do not include lambda.h.
17398 * omega.c (gcd): Removed.
17399 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17400 * tree-data-ref.c (print_lambda_vector): Moved here.
17401 (lambda_vector_copy): Same.
17402 (lambda_matrix_copy): Same.
17403 (lambda_matrix_id): Same.
17404 (lambda_vector_first_nz): Same.
17405 (lambda_matrix_row_add): Same.
17406 (lambda_matrix_row_exchange): Same.
17407 (lambda_vector_mult_const): Same.
17408 (lambda_vector_negate): Same.
17409 (lambda_matrix_row_negate): Same.
17410 (lambda_vector_equal): Same.
17411 (lambda_matrix_right_hermite): Same.
17412 * tree-data-ref.h: Do not include lambda.h.
17413 (lambda_vector): Moved here.
17414 (lambda_matrix): Same.
17415 (dependence_level): Same.
17416 (lambda_transform_legal_p): Removed declaration.
17417 (lambda_collect_parameters): Same.
17418 (lambda_compute_access_matrices): Same.
17419 (lambda_vector_gcd): Same.
17420 (lambda_vector_new): Same.
17421 (lambda_vector_clear): Same.
17422 (lambda_vector_lexico_pos): Same.
17423 (lambda_vector_zerop): Same.
17424 (lambda_matrix_new): Same.
17425 * tree-flow.h (least_common_multiple): Removed declaration.
17426 * tree-parloops.c (lambda_trans_matrix): Moved here.
17427 (LTM_MATRIX): Same.
17428 (LTM_ROWSIZE): Same.
17429 (LTM_COLSIZE): Same.
17430 (LTM_DENOMINATOR): Same.
17431 (lambda_trans_matrix_new): Same.
17432 (lambda_matrix_vector_mult): Same.
17433 (lambda_transform_legal_p): Same.
17434 * tree-pass.h (pass_linear_transform): Removed declaration.
17435 * tree-ssa-loop.c (tree_linear_transform): Removed.
17436 (gate_tree_linear_transform): Removed.
17437 (pass_linear_transform): Removed.
17438 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17439 flag_loop_interchange.
17441 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17443 PR tree-optimization/47265
17444 PR tree-optimization/47443
17445 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17446 if name still has some uses.
17448 2011-01-25 Martin Jambor <mjambor@suse.cz>
17450 PR tree-optimization/47382
17451 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17452 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17454 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17456 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17457 sjlj_except_unwind_info.
17459 2011-01-25 Richard Guenther <rguenther@suse.de>
17461 PR tree-optimization/47426
17462 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17463 visible functions results escape.
17465 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17468 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17469 (arm_get_frame_offsets): Use it.
17471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17472 Jakub Jelinek <jakub@redhat.com>
17474 PR tree-optimization/47271
17475 * tree-if-conv.c (bb_postdominates_preds): New.
17476 (if_convertible_bb_p): Call bb_postdominates_preds.
17477 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17478 (predicate_scalar_phi): Call bb_postdominates_preds.
17480 2011-01-25 Nick Clifton <nickc@redhat.com>
17482 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17483 * config/rx/rx.c (rx_function_value): Likewise.
17484 (rx_promote_function_mode): Likewise.
17485 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17486 in order to make it legitimate.
17487 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17488 make sure that the first operand is the same as the result register.
17489 (addsi3_unspec): Delete.
17490 (subdi3): Do not accept immediate operands.
17491 (subdi3_internal): Likewise.
17493 2011-01-25 Jeff Law <law@redhat.com>
17495 PR rtl-optimization/37273
17496 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17497 handle them like argument loads from stack slots. Do not double
17498 count memory for memory constants and argument loads from stack slots.
17500 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17502 PR tree-optimization/47427
17503 PR tree-optimization/47428
17504 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17505 coalesce if the new root var would be TREE_READONLY.
17507 2011-01-25 Richard Guenther <rguenther@suse.de>
17509 PR middle-end/47414
17510 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17511 correct type for TBAA.
17513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17515 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17516 (close_phi_written_to_memory): Call for_each_index with
17517 dr_indices_valid_in_loop.
17519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17521 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17522 when it is initialized.
17524 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17526 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17527 call to graphite_find_data_references_in_stmt.
17528 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17529 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17530 call to graphite_find_data_references_in_stmt.
17531 (analyze_drs_in_stmts): Same.
17532 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17533 in which the scalar analysis of indices is performed.
17534 (create_data_ref): Same. Update call to dr_analyze_indices.
17535 (find_data_references_in_stmt): Update call to create_data_ref.
17536 (graphite_find_data_references_in_stmt): Same.
17537 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17539 (create_data_ref): Same.
17540 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17541 call to create_data_ref.
17543 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17545 * graphite-sese-to-poly.c (build_poly_scop): Move
17546 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17548 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17550 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17551 VAR_DECL, PARM_DECL, and RESULT_DECL.
17553 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17555 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17556 in a reduction PBB.
17557 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17558 that have already been marked as PBB_IS_REDUCTION.
17560 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17562 * graphite-scop-detection.c (same_close_phi_node): New.
17563 (remove_duplicate_close_phi): New.
17564 (make_close_phi_nodes_unique): New.
17565 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17567 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17569 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17570 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17571 of both data references to be the same.
17573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17575 * graphite-dependences.c (build_lexicographical_constraint): Remove
17576 the gdim parameter.
17577 (build_lexicographical_constraint): Adjust call to
17578 ppl_powerset_is_empty.
17579 (dependence_polyhedron): Same.
17580 (graphite_legal_transform_dr): Same.
17581 (graphite_carried_dependence_level_k): Same.
17582 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17584 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17586 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17588 * graphite-sese-to-poly.c
17589 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17590 (close_phi_written_to_memory): New.
17591 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17594 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17596 * doc/install.texi: Update the expected version number of PPL to 0.11.
17597 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17598 #if PPL_VERSION_MINOR < 11.
17600 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17602 * graphite-dependences.c: Include graphite-cloog-util.h.
17603 (new_poly_ddr): Inlined into dependence_polyhedron.
17604 (free_poly_ddr): Moved close by new_poly_ddr.
17605 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17606 Early return NULL when ppl_powerset_is_empty returns true.
17607 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17608 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17609 (graphite_legal_transform_dr): Call new_poly_ddr.
17610 (graphite_carried_dependence_level_k): Same.
17611 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17612 (dot_transformed_deps_stmt_1): Removed.
17613 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17614 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17615 (dot_deps_1): Call dot_deps_2.
17616 * Makefile.in (graphite-dependences.o): Add missing dependence on
17617 graphite-cloog-util.h.
17619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17621 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17622 (build_lexicographical_constraint): Same.
17623 (dependence_polyhedron_1): Same.
17624 (graphite_legal_transform_dr): Same.
17625 (graphite_carried_dependence_level_k): Same.
17626 * graphite-ppl.c (ppl_powerset_is_empty): New.
17627 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17628 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17632 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17633 the "a followed by b" relation and document it.
17635 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17637 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17638 iteration when the bag of constraints is empty.
17640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17642 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17644 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17646 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17647 nest and two loop depths as parameters.
17648 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17649 lst_perfect_nestify.
17651 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17653 * graphite-dependences.c (print_pddr): Call
17654 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17658 * graphite-ppl.c (debug_gmp_value): New.
17659 * graphite-ppl.h (debug_gmp_value): Declared.
17661 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17663 * doc/install.texi: Document availability of cloog-0.16.
17665 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17667 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17668 invalid postdominance info.
17670 2011-01-24 Jan Hubicka <jh@suse.cz>
17673 * doc/extend.texi (weak pragma): Drop claim that it must
17674 appear before definition.
17675 * varasm.c (merge_weak, declare_weak): Only sanity check
17676 that DECL is not output at a time it is declared weak.
17678 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17680 * machmode.def: Fixed comments.
17682 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17684 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17686 2011-01-24 Paul Koning <ni1d@arrl.net>
17688 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17691 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17694 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17695 (block_info): Add scanned and prev.
17696 (move_or_delete_vzeroupper_2): Return if the basic block
17697 has been scanned and the upper 128bit state is unchanged
17698 from the last scan.
17699 (move_or_delete_vzeroupper_1): Return true if the exit
17701 (move_or_delete_vzeroupper): Visit basic blocks using the
17702 work-list based algorithm based on vt_find_locations in
17705 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17707 2011-01-24 Nick Clifton <nickc@redhat.com>
17709 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17710 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17711 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17712 then define __v850e1__.
17713 * doc/invoke.texi: Document -mv850es.
17715 2011-01-24 Richard Henderson <rth@redhat.com>
17717 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17718 compound unordered comparisons.
17719 * config/rx/rx.c (rx_split_fp_compare): Remove.
17720 * config/rx/rx-protos.h: Update.
17721 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17722 (cbranchsf4): Don't call rx_split_fp_compare.
17723 (*cbranchsf4): Use rx_split_cbranch.
17724 (*cmpsf): Don't accept "i" constraint.
17725 (*conditional_branch): Only valid after reload.
17726 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17728 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17731 * config/rs6000/altivec.md (vector constant splitters): Add
17732 support for creating vector single precision constants if -mvsx is
17733 used and we would create the constant using Altivec primitives.
17735 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17736 Richard Sandiford <rdsandiford@googlemail.com>
17738 PR rtl-optimization/47166
17739 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17740 mechanism for PRE_MODIFY and POST_MODIFY.
17741 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17744 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17746 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17748 2011-01-22 Jan Hubicka <jh@suse.cz>
17751 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17753 2011-01-22 Jan Hubicka <jh@suse.cz>
17755 PR tree-optimization/43884
17757 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17758 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17760 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17762 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17763 * config/s390/s390.c (s390_register_move_cost,
17764 s390_memory_move_cost): New.
17765 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17767 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17769 PR middle-end/47401
17770 * except.c (sjlj_assign_call_site_values): Move setting the
17771 crtl->uses_eh_lsda flag to ...
17772 (sjlj_mark_call_sites): ... here.
17773 (sjlj_emit_function_enter): Support NULL dispatch label.
17774 (sjlj_build_landing_pads): In a function with no landing pads
17775 that still has must-not-throw regions, generate code to register
17776 a personality function with empty LSDA.
17778 2011-01-21 Richard Henderson <rth@redhat.com>
17780 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17782 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17784 * compare-elim.c: New file.
17785 * Makefile.in (OBJS-common): Add it.
17786 (compare-elim.o): New.
17787 * common.opt (fcompare-elim): New.
17788 * opts.c (default_options_table): Add OPT_fcompare_elim.
17789 * tree-pass.h (pass_compare_elim_after_reload): New.
17790 * passes.c (init_optimization_passes): Add it.
17791 * recog.h: Protect against re-inclusion.
17792 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17793 * doc/invoke.texi (-fcompare-elim): Document it.
17794 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17795 * doc/tm.texi: Rebuild.
17797 2011-01-22 Nick Clifton <nickc@redhat.com>
17799 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17800 rx_split_fp_compare.
17802 2011-01-22 Nick Clifton <nickc@redhat.com>
17804 * config/rx/rx.md (UNSPEC_CONST): New.
17805 (deallocate_and_return): Wrap the amount popped off the stack in
17806 an UNSPEC_CONST in order to stop it being rejected by
17807 -mmax-constant-size.
17808 (pop_and_return): Add a "(return)" rtx.
17809 (call): Drop the immediate operand.
17810 (call_internal): Likewise.
17811 (call_value): Likewise.
17812 (call_value_internal): Likewise.
17813 (sibcall_internal): Likewise.
17814 (sibcall_value_internal): Likewise.
17815 (sibcall): Likewise. Generate an explicit call using
17817 (sibcall_value): Likewise.
17818 (mov<>): FAIL if a constant operand is not legitimate.
17819 (addsi3_unpsec): New pattern.
17821 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17822 (ok_for_max_constant): New function.
17823 (gen_safe_add): New function.
17824 (rx_expand_prologue): Use gen_safe_add.
17825 (rx_expand_epilogue): Likewise.
17826 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17829 2011-01-21 Jeff Law <law@redhat.com>
17831 PR tree-optimization/47053
17832 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17833 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17834 statements are deleted.
17835 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17836 is nonempty, then purge dead edges and cleanup the CFG.
17838 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17841 Temporarily revert:
17842 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17844 * tree-dfa.c (create_var_ann): Mark variable as used.
17846 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17848 PR middle-end/45566
17849 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17850 notes from other section in hot/cold partitioning even if
17851 last_action is -3. Increment call_site_base.
17853 PR rtl-optimization/47366
17854 * fwprop.c (forward_propagate_into): Return bool. If
17855 any changes are made, -fnon-call-exceptions is used and
17856 REG_EH_REGION note is present, call purge_dead_edges
17857 and return true if it purged anything.
17858 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17859 any EH edges were purged.
17861 2011-01-21 Jeff Law <law@redhat.com>
17863 PR rtl-optimization/41619
17864 * caller-save.c (setup_save_areas): Break out code to determine
17865 which hard regs are live across calls by examining the reload chains
17866 so that it is always used.
17867 Eliminate code which checked REG_N_CALLS_CROSSED.
17869 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17871 PR tree-optimization/47355
17872 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17873 NOP has non-debug uses beyond PHIs in new_bb.
17875 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17878 * cfgexpand.c (account_used_vars_for_block): Only account vars
17879 that are annotated as used.
17880 (estimated_stack_frame_size): Don't set TREE_USED.
17881 * tree-dfa.c (create_var_ann): Mark variable as used.
17883 2011-01-21 Richard Guenther <rguenther@suse.de>
17885 PR middle-end/47395
17886 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17888 2011-01-21 Richard Guenther <rguenther@suse.de>
17890 PR tree-optimization/47365
17891 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17892 (vn_reference_lookup_pieces): Adjust.
17893 (vn_reference_lookup): Likewise.
17894 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17895 (vn_reference_lookup_3): Only look through kills if in
17896 VN_WALKREWRITE mode.
17897 (vn_reference_lookup_pieces): Adjust.
17898 (vn_reference_lookup): Likewise.
17899 (visit_reference_op_load): Likewise.
17900 (visit_reference_op_store): Likewise.
17901 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17902 (compute_avail): Likewise.
17903 (eliminate): Likewise.
17905 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17907 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17908 DECL_IGNORED_P non-reg vars if they are used.
17910 PR tree-optimization/47391
17911 * varpool.c (const_value_known_p): Return false if
17914 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17917 * config/i386/i386.c (ix86_local_alignment): Handle
17918 case for va_list_type_node is nil.
17919 (ix86_canonical_va_list_type): Likewise.
17921 2011-01-21 Alan Modra <amodra@gmail.com>
17923 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17924 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17926 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17928 * config/arm/arm.md (define_attr type): Rename f_load
17929 and f_store to f_fpa_load and f_fpa_store. Update.
17930 (write_conflict): Deal with rename fallout.
17931 (*push_fp_multi): Likewise.
17932 * config/arm/fpa.md (f_load): Use f_fpa_load.
17933 (f_store): Use f_fpa_store.
17934 (*movsf_fpa): Likewise.
17935 (*movdf_fpa): Likewise.
17936 (*movxf_fpa): Likewise.
17937 (*thumb2_movsf_fpa): Likewise.
17938 (*thumb2_movdf_fpa): Likewise.
17939 (*thumb2_movxf_fpa): Likewise.
17940 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17941 f_loadd and f_stored.
17942 (*thumb2_movdi_vfp): Likewise.
17943 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17944 (*thumb2_movsi_vfp): Likewise.
17945 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17946 Use f_loads instead of f_load.
17947 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17949 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17951 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17952 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17953 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17954 (xtensa_mode_dependent_address_p): New function.
17955 (constantpool_address_p): Make static. Change return type to bool.
17956 Change argument type to const_rtx. Use CONST_INT_P predicate.
17958 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17961 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17963 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17966 * cfgexpand.c (expand_debug_expr): Instead of generating
17967 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17970 2011-01-20 Richard Guenther <rguenther@suse.de>
17972 PR middle-end/47370
17973 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17974 the pointer operand of MEM_REFs.
17976 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17978 PR tree-optimization/46130
17979 * ipa-split.c (consider_split): If return_bb contains non-virtual
17980 PHIs other than for retval or if split_function would not adjust it,
17983 2011-01-20 Richard Guenther <rguenther@suse.de>
17985 PR tree-optimization/47167
17986 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17987 Revert previous change, only avoid enumeral type changes.
17989 2011-01-19 Mike Stump <mikestump@comcast.net>
17991 * doc/tm.texi.in (BRANCH_COST): Englishify.
17992 * doc/tm.texi (BRANCH_COST): Likewise.
17994 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17997 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17998 (gen_scheduled_generic_parms_dies): New functions.
17999 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18000 generation for the end of CU compilation.
18001 (dwarf2out_finish): Generate template parameters DIEs here.
18003 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18006 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18007 debug bind stmt on merge edges.
18009 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18013 * function.c (instantiate_expr): Instantiate incoming rtl of
18014 implicit arguments, and recurse on VALUE_EXPRs.
18015 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18016 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18018 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18020 * c-parser.c (c_parser_for_statement): Initialize
18021 collection_expression.
18023 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18025 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18027 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18029 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18030 (LINK_SHLIB_SPEC): Don't use %(link_path).
18031 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18033 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18035 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18036 (NO_SHARED_LIB_SUPPORT): Remove.
18037 (LINK_SHLIB_SPEC): Remove one conditional definition.
18039 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18041 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18043 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18044 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18045 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18046 %{call_shared} and conditionals on these options not being passed.
18047 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18050 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18052 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18055 * ipa-split.c: Spelling fixes.
18057 2011-01-19 Richard Henderson <rth@redhat.com>
18059 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18060 (*mulsi3): Likewise.
18062 * longlong.h [__mn10300__] (count_leading_zeros): New.
18063 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18064 [__mn10300__] (add_ssaaaa, subddmmss): New.
18065 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18066 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18068 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18070 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18072 2011-01-19 Richard Henderson <rth@redhat.com>
18074 * config/mn10300/mn10300.md (addsi3_flags): New.
18075 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18076 (subsi3_flags, subc_internal, subdi3): New.
18077 (subdi3_internal, *subdi3_degenerate): New.
18078 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18080 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18081 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18082 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18083 * config/mn10300/mn10300-protos.h: Update.
18084 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18085 (return_ret): Likewise. Rename from return_internal_regs.
18086 (return_internal): Remove.
18088 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18089 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18090 (mn10300_legitimate_constant_p): Likewise.
18091 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18092 (mn10300_frame_size): New.
18093 (mn10300_expand_prologue): Use it.
18094 (mn10300_expand_epilogue): Likewise.
18095 (mn10300_initial_offset): Likewise.
18096 * config/mn10300/mn10300-protos.h: Update.
18097 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18098 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18099 (prologue, epilogue, return_internal): Tidy output code.
18100 (mn10300_store_multiple_operation, return): Likewise.
18101 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18102 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18103 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18104 (load_pic, am33_load_pic): New.
18105 (mn10300_load_pic0, mn10300_load_pic1): New.
18107 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18108 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18109 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18110 (cc_flags_for_mode, cc_flags_for_code): New.
18111 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18112 overflow flag is not valid. Validate that the flags we need
18113 for the comparison are valid.
18114 (mn10300_output_cmp): Remove.
18115 (mn10300_output_add): New.
18116 (mn10300_select_cc_mode): Use cc_flags_for_code.
18117 (mn10300_split_cbranch): New.
18118 (mn10300_match_ccmode): New.
18119 (mn10300_split_and_operand_count): New.
18120 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18122 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18123 (addsi3): ... here. Use mn10300_output_add.
18124 (*addsi3_flags): New.
18125 (*am33_subsi3, *mn10300_subsi3): Merge...
18126 (subsi3): ... here. Use attribute isa.
18127 (*subsi3_flags): New.
18128 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18130 (*am33_andsi3, *mn10300_andsi3): Merge...
18131 (andsi3): ... here.
18132 (*andsi3_flags): New.
18133 (andsi3 splitters): New.
18134 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18135 (iorsi3): ... here.
18136 (*iorsi3_flags): New.
18137 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18138 (xorsi3): ... here.
18139 (*xorsi3_flags): New.
18140 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18141 (one_cmplsi2): ... here.
18142 (*one_cmplsi2_flags): New.
18143 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18144 instead of "dax" in constraints. Use mn10300_split_cbranch.
18145 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18146 use matching constraints to eliminate a self-comparison.
18147 (*integer_conditional_branch): Rename from integer_conditional_branch.
18148 Use int_mode_flags to match CC_REG.
18149 (*cbranchsi4_btst, *btstsi): New.
18150 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18151 mn10300_split_cbranch.
18152 (*am33_cmpsf): Rename from am33_cmpsf.
18153 (*float_conditional_branch): Rename from float_conditional_branch.
18154 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18155 (zero_extendqisi2): ... here.
18156 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18157 (zero_extendhisi2): ... here.
18158 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18159 (extendqisi2): ... here.
18160 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18161 (extendhisi2): ... here.
18162 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18163 (ashlsi3): ... here.
18164 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18165 (lshrsi3): ... here.
18166 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18167 (ashrsi3): ... here.
18168 (consecutive add peephole): Remove.
18169 * config/mn10300/predicates.md (label_ref_operand): New.
18170 (int_mode_flags): New.
18171 (CCZN_comparison_operator): New.
18173 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18174 (throughput_42_latency_43): New reservation.
18175 (mulsidi3, umulsidi3): New expanders.
18176 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18177 the MDR register to allocation; separately allocate the low and
18178 high parts of the DImode result.
18179 (umulsidi3_internal): Similarly.
18180 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18181 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18182 (udivsi3, umodsi3): Remove.
18183 (udivmodsi4, divmodsi4): New expanders.
18184 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18185 (*divmodsi4): Simiarly.
18186 (ext_internal): New.
18188 * config/mn10300/constraints.md ("z"): New constraint.
18189 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18190 (FIXED_REGISTERS): Don't fix MDR.
18191 (CALL_USED_REGSITERS): Reformat nicely.
18192 (REG_ALLOC_ORDER): Add MDR.
18193 (enum regclass): Add MDR_REGS.
18194 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18195 (IRA_COVER_CLASSES): Add MDR_REGS.
18196 (REGNO_REG_CLASS): Handle MDR_REG.
18197 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18198 (mn10300_register_move_cost): Likewise.
18199 * config/mn10300/mn10300.md (MDR_REG): New.
18200 (*movsi_internal): Handle moves to/from MDR_REGS.
18202 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18204 (mn10300_secondary_reload): Tidy combination reload classes.
18205 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18206 addresses for AM33. Allow symbolic offsets for reg+imm.
18207 (mn10300_regno_in_class_p): New.
18208 (mn10300_legitimize_reload_address): New.
18209 * config/mn10300/mn10300.h (enum reg_class): Remove
18210 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18211 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18212 SP_OR_GENERAL_REGS.
18213 (REG_CLASS_NAMES): Update to match.
18214 (REG_CLASS_CONTENTS): Likewise.
18215 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18216 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18217 (REGNO_IN_RANGE_P): Remove.
18218 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18219 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18220 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18221 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18222 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18223 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18224 (REGNO_GENERAL_P): New.
18225 (HAVE_POST_MODIFY_DISP): New.
18226 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18227 (LEGITIMIZE_RELOAD_ADDRESS): New.
18228 * config/mn10300/mn10300-protos.h: Update.
18230 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18231 DATA_REGS for AM33 stack-pointer destination.
18232 (mn10300_preferred_output_reload_class): Likewise.
18233 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18234 into a form appropriate for ...
18235 (TARGET_SECONDARY_RELOAD): New.
18236 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18237 * config/mn10300/mn10300-protos.h: Update.
18238 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18239 reload_insi; use the "A" constraint for the scratch; handle AM33
18240 moves of sp to non-address registers.
18242 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18243 (*movqi_internal): ... here.
18244 (*am33_movhi, *mn10300_movhi): Merge into...
18245 (*movhi_internal): ... here.
18246 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18247 as the source/destination of moves from/to SP.
18248 (movsf): Only allow for AM33-2.
18249 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18250 any integer constant constraint. Only allow for AM33-2. Tidy
18251 all of the alternative outputs.
18252 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18253 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18255 (udivsi3, umodsi3): New patterns for MN103 only.
18257 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18259 * doc/tm.texi.in: Spell out that a lack of register class unions
18261 * doc/tm.texi: Regenerate.
18263 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18265 PR rtl-optimization/47337
18266 * dce.c (check_argument_store): New function.
18267 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18269 PR tree-optimization/47290
18270 * tree-eh.c (infinite_empty_loop_p): New function.
18271 (cleanup_empty_eh): Use it.
18273 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18276 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18277 (a64_expand_widen_sum): Ditto.
18278 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18279 (vec_extract_evenodd_help): Ditto.
18280 (vec_extract_evenv4hi): Ditto.
18281 (vec_extract_oddv4hi): Ditto.
18282 (vec_extract_evenv2si): Ditto.
18283 (vec_extract_oddv2si): Ditto.
18284 (vec_extract_evenv2sf): Ditto.
18285 (vec_extract_oddv2sf): Ditto.
18286 (vec_pack_trunc_v4hi: Ditto.
18287 (vec_pack_trunc_v2si): Ditto.
18288 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18289 (vec_interleave_highv8qi): Ditto.
18291 (vec_extract_oddv8qi): Ditto.
18292 (vec_interleave_lowv4hi): Ditto.
18293 (vec_interleave_highv4hi): Ditto.
18294 (vec_interleave_lowv2si): Ditto.
18295 (vec_interleave_highv2si): Ditto.
18297 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18299 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18300 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18301 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18302 (pa_c_mode_for_suffix): New.
18303 (TARGET_EXPAND_BUILTIN): Define.
18304 (TARGET_C_MODE_FOR_SUFFIX): Define.
18305 (pa_builtins): Define.
18306 (pa_init_builtins): Register __float128 type and init new support
18308 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18309 * config/pa/quadlib.c (_U_Qfcopysign): New.
18311 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18313 PR middle-end/46894
18314 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18315 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18318 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18320 PR tree-optimization/47179
18321 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18322 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18324 2011-01-18 Richard Guenther <rguenther@suse.de>
18326 PR rtl-optimization/47216
18327 * emit-rtl.c: Include tree-flow.h.
18328 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18329 of replicating it with different semantics.
18330 * Makefile.in (emit-rtl.o): Adjust.
18332 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18334 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18335 (cortex_a9_dp): Handle neon types correctly.
18337 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18339 PR rtl-optimization/47299
18340 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18341 subtarget. Use normal multiplication if both operands are constants.
18342 * expmed.c (expand_widening_mult): Don't try to optimize constant
18343 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18346 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18348 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18349 spacing after 'e.g.', typos, comma, hyphenation.
18351 2011-01-17 Richard Henderson <rth@redhat.com>
18353 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18354 (rx_restricted_mem_operand): New.
18355 (rx_shift_operand): Use register_operand.
18356 (rx_source_operand, rx_compare_operand): Likewise.
18357 * config/rx/rx.md (addsi3_flags): New expander.
18358 (adddi3): Rewrite as expander.
18359 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18360 (subsi3_flags): New expander.
18361 (subdi3): Rewrite as expander.
18362 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18364 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18365 (rx_init_builtins): Remove sat builtin.
18366 (rx_expand_builtin): Likewise.
18367 * config/rx/rx.md (ssaddsi3): New.
18368 (*sat): Rename from sat. Represent the CC_REG input.
18370 * config/rx/predicates.md (rshift_operator): New.
18371 * config/rx/rx.c (rx_expand_insv): Remove.
18372 * config/rx/rx-protos.h: Update.
18373 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18374 operand to the canonical position.
18375 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18376 (*bitclr, *bitclr_in_memory): Similarly.
18377 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18378 (insv): Retain the zero_extract in the expansion.
18380 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18381 (bswaphi2, bitinvert, revw): Likewise.
18383 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18384 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18385 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18386 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18387 (bitset, bitset_in_memory): Likewise.
18388 (bitinvert, bitinvert_in_memory): Likewise.
18389 (bitclr, bitclr_in_memory): Likewise.
18390 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18391 (rx_strend, rx_cmpstrn): Likewise.
18392 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18393 (bitop peep2 patterns): Remove.
18395 * config/rx/rx.c (rx_match_ccmode): New.
18396 * config/rx/rx-protos.h: Update.
18397 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18398 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18399 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18400 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18401 (fix_truncsfsi2, floatsisf2): Likewise.
18402 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18403 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18404 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18405 (*subsi3_flags, *xorsi3_flags): New.
18407 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18409 * config/rx/rx.c (rx_print_operand): Remove workaround for
18410 unsplit comparison operations.
18412 * config/rx/rx.md (movsicc): Split after reload.
18413 (*movsicc): Merge *movsieq and *movsine via match_operator.
18414 (*stcc): New pattern.
18416 * config/rx/rx.c (rx_float_compare_mode): Remove.
18417 * config/rx/rx.h (rx_float_compare_mode): Remove.
18418 * config/rx/rx.md (cstoresi4): Split after reload.
18419 (*sccc): New pattern.
18421 * config/rx/predicates.md (label_ref_operand): New.
18422 (rx_z_comparison_operator): New.
18423 (rx_zs_comparison_operator): New.
18424 (rx_fp_comparison_operator): New.
18425 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18426 Validate that the flags are set properly for the comparison.
18427 (rx_gen_cond_branch_template): Remove.
18428 (rx_cc_modes_compatible): Remove.
18429 (mode_from_flags): New.
18430 (flags_from_code): Rename from flags_needed_for_conditional.
18431 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18432 (rx_select_cc_mode): Likewise.
18433 (rx_split_fp_compare): New.
18434 (rx_split_cbranch): New.
18435 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18436 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18437 (*cbranchsf4): Similarly.
18438 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18439 match_operator and rx_split_cbranch.
18440 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18441 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18442 (*cmpsi): Rename from cmpsi.
18443 (*tstsi): Rename from tstsi.
18444 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18445 (*conditional_branch): Rename from conditional_branch.
18446 (*reveresed_conditional_branch): Remove.
18447 (b<code>): Remove expander.
18448 * config/rx/rx-protos.h: Update.
18450 * config/rx/rx.c (rx_compare_redundant): Remove.
18451 * config/rx/rx.md (cmpsi): Don't use it.
18452 * config/rx/rx-protos.h: Update.
18454 * config/rx/rx-modes.def (CC_F): New mode.
18455 * config/rx/rx.c (rx_select_cc_mode): New.
18456 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18457 * config/rx/rx-protos.h: Update.
18459 2011-01-17 Richard Henderson <rth@redhat.com>
18461 * except.c (dump_eh_tree): Fix stray ; after for statement.
18463 2011-01-17 Richard Guenther <rguenther@suse.de>
18465 PR tree-optimization/47313
18466 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18467 handling before copying the body. Properly deal with
18468 by-reference result in SSA form.
18470 2011-01-17 Ian Lance Taylor <iant@google.com>
18473 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18474 (struct_value_alias_set): Don't define.
18475 (sparc_option_override): Don't set sparc_sr_alias_set and
18476 struct_value_alias_set.
18477 (save_or_restore_regs): Use gen_frame_mem rather than calling
18479 (sparc_struct_value_rtx): Likewise.
18481 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18484 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18485 (_mm_maskstore_pd): Likewise.
18486 (_mm_maskload_ps): Likewise.
18487 (_mm_maskstore_ps): Likewise.
18488 (_mm256_maskload_pd): Change mask to __m256i.
18489 (_mm256_maskstore_pd): Likewise.
18490 (_mm256_maskload_ps): Likewise.
18491 (_mm256_maskstore_ps): Likewise.
18493 * config/i386/i386-builtin-types.def: Updated.
18494 (ix86_expand_special_args_builtin): Likewise.
18496 * config/i386/i386.c (bdesc_special_args): Update
18497 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18498 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18499 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18500 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18502 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18503 Use <avxpermvecmode> on mask register.
18504 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18506 2011-01-17 Olivier Hainque <hainque@adacore.com>
18507 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18508 Eric Botcazou <ebotcazou@adacore.com>
18511 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18512 if <= USHRT_MAX in 32-bit mode.
18514 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18516 * doc/install.texi (Configuration, Specific): Wrap long
18517 lines in examples. Allow line wrapping in long options
18518 and URLs where beneficial for PDF output.
18520 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18522 * config/mips/mips.c (mips_classify_symbol): Don't return
18523 SYMBOL_PC_RELATIVE for nonlocal labels.
18525 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18527 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18529 2011-01-15 Jan Hubicka <jh@suse.cz>
18531 PR tree-optimization/47276
18532 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18533 declarations as needed.
18535 2011-01-15 Martin Jambor <mjambor@suse.cz>
18537 * common.opt (fdevirtualize): New flag.
18538 * doc/invoke.texi (Option Summary): Document it.
18539 * opts.c (default_options_table): Add devirtualize flag.
18540 * ipa-prop.c (detect_type_change): Return immediately if
18541 devirtualize flag is not set.
18542 (detect_type_change_ssa): Likewise.
18543 (compute_known_type_jump_func): Likewise.
18544 (ipa_analyze_virtual_call_uses): Likewise.
18546 2011-01-14 Martin Jambor <mjambor@suse.cz>
18548 PR tree-optimization/45934
18549 PR tree-optimization/46302
18550 * ipa-prop.c (type_change_info): New type.
18551 (stmt_may_be_vtbl_ptr_store): New function.
18552 (check_stmt_for_type_change): Likewise.
18553 (detect_type_change): Likewise.
18554 (detect_type_change_ssa): Likewise.
18555 (compute_complex_assign_jump_func): Check for dynamic type change.
18556 (compute_complex_ancestor_jump_func): Likewise.
18557 (compute_known_type_jump_func): Likewise.
18558 (compute_scalar_jump_functions): Likewise.
18559 (ipa_analyze_virtual_call_uses): Likewise.
18560 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18564 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18565 * config/i386/i386.opt (msse5): New Alias.
18567 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18569 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18570 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18571 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18572 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18574 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18576 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18578 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18579 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18580 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18581 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18583 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18585 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18587 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18589 2011-01-14 Mike Stump <mikestump@comcast.net>
18591 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18592 * config/fr30/fr30.md: Likweise
18593 (movsi_push): Likewise.
18594 (movsi_pop): Likewise.
18595 (enter_func): Likewise.
18596 * config/moxie/moxie.md (movsi_push): Likewise.
18597 (movsi_pop): Likewise.
18599 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18601 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18602 %{no_archive} %{exact_version}.
18603 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18604 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18605 %{no_archive} %{exact_version}.
18606 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18607 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18608 * config/mips/vxworks.h: Likewise.
18610 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18612 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18614 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18616 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18617 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18619 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18621 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18624 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18626 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18628 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18629 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18631 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18632 Don't handle -shlib.
18634 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18636 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18637 (CC1_SPEC): Don't handle -profile.
18639 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18641 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18642 * config/mips/mips.h (CC1_SPEC): Likewise.
18644 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18646 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18647 * config/mips/mips.h (CC1_SPEC): Likewise.
18649 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18651 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18652 * config/m32r/linux.h (LINK_SPEC): Likewise.
18653 * config/mips/linux.h (LINK_SPEC): Likewise.
18654 * config/mips/linux64.h (LINK_SPEC): Likewise.
18655 * config/sparc/linux.h (LINK_SPEC): Likewise.
18656 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18657 LINK_SPEC): Likewise.
18658 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18660 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18662 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18664 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18666 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18668 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18669 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18671 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18673 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18675 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18677 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18678 supports -Bstatic/-Bdynamic.
18679 * configure: Regenerate.
18681 2011-01-14 Jan Hubicka <jh@suse.cz>
18682 Jack Howarth <howarth@bromo.med.uc.edu>
18685 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18686 when checking debug_info_level. Test write_symbols instead of
18687 debug_hooks->var_location when setting flag_var_tracking_uninit.
18689 2011-01-14 Richard Guenther <rguenther@suse.de>
18691 PR tree-optimization/47179
18692 * target.def (ref_may_alias_errno): New target hook.
18693 * targhooks.h (default_ref_may_alias_errno): Declare.
18694 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18695 (default_ref_may_alias_errno): New function.
18696 * target.h (struct ao_ref_s): Declare.
18697 * tree-ssa-alias.c: Include target.h.
18698 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18699 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18700 (targhooks.o): Likewise.
18701 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18702 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18704 2011-01-14 Richard Guenther <rguenther@suse.de>
18706 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18708 2011-01-14 Richard Guenther <rguenther@suse.de>
18710 PR tree-optimization/47280
18711 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18712 return CFG changes.
18713 (tree_ssa_forward_propagate_single_use_vars): Deal with
18714 CFG changes from associate_plusminus.
18716 2011-01-14 Richard Guenther <rguenther@suse.de>
18718 PR middle-end/47281
18720 2011-01-11 Richard Guenther <rguenther@suse.de>
18722 PR tree-optimization/46076
18723 * tree-ssa.c (useless_type_conversion_p): Conversions from
18724 unprototyped to empty argument list function types are useless.
18726 2011-01-14 Richard Guenther <rguenther@suse.de>
18728 PR tree-optimization/47286
18729 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18731 2011-01-14 Martin Jambor <mjambor@suse.cz>
18733 PR middle-end/46823
18734 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18736 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18738 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18739 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18740 * config/xtensa/xtensa.c (xtensa_libcall_value,
18741 xtensa_function_value_regno_p): New functions.
18742 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18744 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18747 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18749 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18750 New function prototype.
18751 * config/i386/winnt.c (i386_pe_assemble_visibility):
18752 Warn only if attribute was specified by user.
18754 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18757 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18759 (floatunsdidf2_fcfidu): Ditto.
18761 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18763 * config/s390/s390.c (print_operand_address): Replace 'error' with
18764 'output_operand_lossage'.
18765 (print_operand): Likewise.
18767 2011-01-13 Jeff Law <law@redhat.com>
18769 PR rtl-optimization/39077
18770 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18771 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18772 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18773 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18774 * gcse.c (prune_insertions_deletions): New function.
18775 (compute_pre_data): Use it.
18777 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18780 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18782 (prune_unused_types_mark): Use it.
18784 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18786 PR rtl-optimization/45352
18787 * sel-sched.c: Update copyright years.
18788 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18789 in the advancing loop when we have issued issue_rate insns.
18791 2011-01-12 Richard Henderson <rth@redhat.com>
18793 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18794 (TARGET_MD_ASM_CLOBBERS): New.
18796 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18797 (TARGET_DELEGITIMIZE_ADDRESS): New.
18799 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18800 (clzsi2, *bsch): New patterns.
18802 * config/mn10300/mn10300.md (INT): New mode iterator.
18803 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18805 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18806 flag_split_wide_types.
18808 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18809 (mn10300_trampoline_init): Rewrite without a template, an immediate
18810 load and a direct branch.
18811 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18813 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18815 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18816 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18817 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18818 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18820 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18823 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18826 2011-01-12 Jan Hubicka <jh@suse.cz>
18829 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18830 (PLUGIN_COND_CLOSE): New macro.
18831 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18833 2011-01-12 Richard Guenther <rguenther@suse.de>
18836 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18837 register variables in a MEM_REF.
18839 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18841 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18842 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18843 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18844 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18845 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18846 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18847 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18848 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18849 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18850 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18851 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18852 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18853 * config/gnu-user.h: New. Copied from linux.h.
18854 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18855 GNU_USER_TARGET_STARTFILE_SPEC.
18856 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18857 GNU_USER_TARGET_ENDFILE_SPEC.
18858 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18859 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18860 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18861 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18862 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18863 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18864 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18865 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18866 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18867 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18868 * config/arm/linux-eabi.h (CC1_SPEC): Use
18869 GNU_USER_TARGET_CC1_SPEC.
18870 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18871 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18872 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18873 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18874 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18875 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18876 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18877 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18879 2011-01-12 Richard Guenther <rguenther@suse.de>
18882 * doc/invoke.texi (ffast-math): Document it is turned on
18885 2011-01-12 Jan Hubicka <jh@suse.cz>
18887 PR tree-optimization/47233
18888 * opts.c (common_handle_option): Disable ipa-reference with profile
18891 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18893 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18896 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18898 * c-parser.c (c_lex_one_token): Updated and reindented some
18899 comments. No changes in code.
18901 2011-01-11 Ian Lance Taylor <iant@google.com>
18903 * godump.c (go_output_var): Don't output the variable if there is
18904 already a type with the same name.
18906 2011-01-11 Ian Lance Taylor <iant@google.com>
18908 * godump.c (go_format_type): Don't generate float80.
18910 2011-01-11 Richard Henderson <rth@redhat.com>
18912 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18913 declaration. Rewrite for both speed and size.
18914 (mn10300_address_cost_1): Remove.
18915 (mn10300_register_move_cost): New.
18916 (mn10300_memory_move_cost): New.
18917 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18918 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18919 extensions, shifts, BSWAP, CLZ.
18920 (mn10300_wide_const_load_uses_clr): Remove.
18921 (TARGET_REGISTER_MOVE_COST): New.
18922 (TARGET_MEMORY_MOVE_COST): New.
18923 * config/mn10300/mn10300-protos.h: Update.
18924 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18926 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18927 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18928 * config/mn10300/mn10300-protos.h: Update.
18929 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18930 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18931 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18932 (*test_int_bitfield, *test_byte_bitfield): Remove.
18933 (*bit_test, *subreg_bit_test): Remove.
18934 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18936 * config/mn10300/constraints.md ("c"): Rename from "A".
18937 ("A", "D"): New constraint letters.
18938 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18939 (fmssf4, fnmasf4, fnmssf4): Likewise.
18941 * config/mn10300/mn10300.md (isa): New attribute.
18942 (enabled): New attribute.
18944 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18945 (abssf2, negsf2): Define only for hardware fp.
18946 (sqrtsf2): Reformat.
18947 (addsf3, subsf3, mulsf3): Merge expander and insn.
18949 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18950 (DEBUGGER_AUTO_OFFSET): Remove.
18951 (DEBUGGER_ARG_OFFSET): Remove.
18953 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18954 Emit register stores with the same offsets as the hardware.
18955 (mn10300_store_multiple_operation): Don't check that the register
18956 save offsets are monotonic.
18957 * config/mn10300/mn10300-protos.h: Update.
18959 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18961 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18962 in terms of the value on the stack, not the MDR register.
18964 2011-01-11 Jan Hubicka <jh@suse.cz>
18968 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18969 (symbol_alias_set_destroy, symbol_alias_set_contains,
18970 propagate_aliases_backward): Declare.
18971 * lto-streamer-out.c (struct sets): New sturcture.
18972 (trivally_defined_alias): New function.
18973 (output_alias_pair_p): Rewrite.
18974 (output_unreferenced_globals): Fix output of alias pairs.
18975 (produce_symtab): Likewise.
18976 * ipa.c (function_and_variable_visibility): Set weak alias destination
18978 * varasm.c (symbol_alias_set_t): Remove.
18979 (symbol_alias_set_destroy): Export.
18980 (propagate_aliases_forward, propagate_aliases_backward): New functions
18982 (compute_visible_aliases): ... this one; remove.
18983 (trivially_visible_alias): New
18984 (trivially_defined_alias): New.
18985 (remove_unreachable_alias_pairs): Rewrite.
18986 (finish_aliases_1): Reorganize code checking if alias is defined.
18987 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18990 2011-01-11 Richard Guenther <rguenther@suse.de>
18992 PR tree-optimization/46076
18993 * tree-ssa.c (useless_type_conversion_p): Conversions from
18994 unprototyped to empty argument list function types are useless.
18996 2011-01-11 Richard Guenther <rguenther@suse.de>
18998 PR middle-end/45235
18999 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19000 volatile MEMs as MEM_READONLY_P.
19002 2011-01-11 Richard Guenther <rguenther@suse.de>
19004 PR tree-optimization/47239
19005 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19007 2011-01-11 Jeff Law <law@redhat.com>
19009 PR tree-optimization/47086
19010 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19011 IVs from statements that might throw.
19013 2011-01-10 Jan Hubicka <jh@suse.cz>
19016 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19018 2011-01-10 Jan Hubicka <jh@suse.cz>
19021 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19022 when correcting profile.
19024 2011-01-10 Jan Hubicka <jh@suse.cz>
19027 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19028 DECL_FINI_PRIORITY.
19029 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19030 Restore DECL_FINI_PRIORITY.
19032 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19034 * doc/gimple.texi: Fix quoting of multi-word return values in
19035 @deftypefn statements. Ensure presence of return value. Wrap
19036 overlong @deftypefn lines.
19037 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19038 descriptions of removed functions.
19039 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19040 of multi-word return value in @deftypefn statement.
19042 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19044 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19045 (Conditional Expressions, Logical Operators)
19046 (Statement and operand traversals): Do not indent smallexample
19047 code. Fix duplicate function argument in example.
19049 2011-01-10 Jeff Law <law@redhat.com>
19051 PR tree-optimization/47141
19052 * ipa-split.c (split_function): Handle case where we are
19053 returning a value and the return block has a virtual operand phi.
19055 2011-01-10 Jan Hubicka <jh@suse.cz>
19057 PR tree-optimization/47234
19058 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19059 (pass_feedback_split_functions): Declare.
19060 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19062 * ipa-split.c (gate_split_functions): Update comments; disable
19063 split-functions for profile_arc_flag and branch_probabilities.
19064 (gate_feedback_split_functions): New function.
19065 (execute_feedback_split_functions): New function.
19066 (pass_feedback_split_functions): New global var.
19068 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19071 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19072 calling gimple_call_set_cannot_inline.
19074 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19076 * config/darwin-sections.def: Remove unused section.
19078 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19081 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19083 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19086 * c-parser.c (c_parser_declaration_or_fndef): Improved
19089 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19091 * config/i386/winnt.c (i386_pe_start_function): Make sure
19092 to switch back to function's section.
19094 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19098 * plugin.c: Move include of dlfcn.h from here...
19099 * system.h: ... to here.
19101 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19103 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19105 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19106 two extra empty pages in PDF output.
19108 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19111 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19112 for error recovery purposes behave as if it was not specified so
19113 that the default type is usd.
19115 2011-01-07 Jan Hubicka <jh@suse.cz>
19117 PR tree-optmization/46469
19118 * ipa.c (function_and_variable_visibility): Clear needed flags on
19119 nodes with external decls; handle weakrefs merging correctly.
19121 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19123 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19126 2011-01-07 Jan Hubicka <jh@suse.cz>
19128 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19129 and no longer claim that gold is required for linker plugin.
19130 * configure: Regenerate.
19131 * gcc.c (PLUGIN_COND): New macro.
19132 (LINK_COMMAND_SPEC): Use it.
19133 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19134 * config.in (HAVE_LTO_PLUGIN): New.
19135 * configure.ac (--with-lto-plugin): New parameter; autodetect
19138 2011-01-07 Jan Hubicka <jh@suse.cz>
19140 PR tree-optimization/46367
19141 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19142 when we can update original.
19143 (cgraph_mark_inline_edge): Sanity check.
19144 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19146 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19148 * config/spu/spu.h (ASM_COMMENT_START): Define.
19150 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19153 * gcc.c (%>S): New.
19154 (SWITCH_KEEP_FOR_GCC): Likewise.
19155 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19156 (do_spec_1): Handle "%>".
19158 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19160 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19163 * config/i386/i386.c (ix86_delegitimize_address): If
19164 simplify_gen_subreg fails, return orig_x.
19167 * value-prof.c (gimple_stringop_fixed_value): Handle
19168 lhs of the call properly.
19170 2011-01-07 Jan Hubicka <jh@suse.cz>
19173 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19175 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19177 * target.def (function_switched_text_sections): New hook.
19178 * doc/tm.texi: Regenerated.
19179 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19180 * final.c (default_function_switched_text_sections): New.
19181 (final_scan_insn): Call function_switched_text_sections when a
19182 mid-function section change occurs.
19183 * output.h (default_function_switched_text_sections): Declare.
19184 * config/darwin-protos.h (darwin_function_switched_text_sections):
19186 * config/darwin.c (darwin_function_switched_text_sections): New.
19187 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19189 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19191 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19192 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19193 the secondary code fragment when outputting for DWARF == 2.
19195 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19197 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19198 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19200 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19201 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19203 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19206 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19207 when it is not empty.
19209 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19212 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19213 (case ${target}): Add btver1.
19214 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19215 -march=native recognize btver1 processors.
19216 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19217 btver1 def_and_undef
19218 * config/i386/i386.c (struct processor_costs btver1_cost): New
19220 (m_BTVER1): New definition.
19221 (m_AMD_MULTIPLE): Includes m_BTVER1.
19222 (initial_ix86_tune_features): Add btver1 tune.
19223 (processor_target_table): Add btver1 entry.
19224 (static const char *const cpu_names): Add btver1 entry.
19225 (software_prefetching_beneficial_p): Add btver1.
19226 (ix86_option_override_internal): Add btver1 instruction sets.
19227 (ix86_issue_rate): Add btver1.
19228 (ix86_adjust_cost): Add btver1.
19229 * config/i386/i386.h (TARGET_BTVER1): New definition.
19230 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19231 (enum processor_type): Add PROCESSOR_BTVER1.
19232 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19234 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19237 * config/i386/i386.c (legitimize_tls_address)
19238 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19239 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19240 (tls_initial_exec_64_sun): New pattern.
19242 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19244 * doc/invoke.texi (Overall Options): Improve wording and markup
19245 of the description of -wrapper.
19247 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19249 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19250 rdynamic, threads): New Driver options.
19252 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19255 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19256 if coming from .tdata.
19257 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19259 2011-01-06 Jan Hubicka <jh@suse.cz>
19262 * collect2.c (main): Do not enable LTOmode when plugin is active.
19264 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19267 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19268 --version output if supported.
19269 * configure: Regenerate.
19271 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19273 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19276 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19279 * c-convert.c (convert): When converting a complex expression
19280 other than COMPLEX_EXPR to a different complex type, ensure
19281 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19282 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19283 when converting COMPLEX_TYPE.
19285 2011-01-06 Ira Rosen <irar@il.ibm.com>
19287 PR tree-optimization/47139
19288 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19289 only the last reduction value is used outside the loop. Update
19292 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19294 * config/rtems.opt: New.
19295 * config.gcc (*-*-rtems*): Use rtems.opt.
19297 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19299 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19300 processors do not support 3DNow instructions.
19302 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19304 * config/spu/spu.c (spu_option_override): Set parameter
19305 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19307 2011-01-05 Jan Hubicka <jh@suse.cz>
19309 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19310 at the command line.
19312 2011-01-05 Martin Jambor <mjambor@suse.cz>
19315 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19316 deltas on streamed outgoing edges.
19317 (output_node_opt_summary): Output info for outgoing edges only when
19318 the node is in new parameter set.
19319 (output_cgraph_opt_summary): New parameter set, passed to the two
19320 aforementioned functions. Update its forward declaration and its
19323 2011-01-05 Tom Tromey <tromey@redhat.com>
19325 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19326 operator to c_finish_omp_atomic.
19327 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19328 (build_unary_op): Update.
19329 (build_modify_expr): Update.
19330 (build_asm_expr): Update.
19332 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19334 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19335 newly inserted insns.
19336 (pad_bb): Likewise.
19337 (spu_emit_branch_hint): Likewise.
19338 (insert_hbrp_for_ilb_runout): Likewise.
19339 (spu_machine_dependent_reorg): Call df_finish_pass after
19340 schedule_insns returns.
19342 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19344 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19346 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19348 PR tree-optimization/47005
19349 * tree-sra.c (struct access): Add 'non_addressable' bit.
19350 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19351 (decide_one_param_reduction): Return 0 if the parameter is passed by
19352 reference and one of the accesses in the group is non_addressable.
19354 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19356 PR tree-optimization/47056
19357 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19358 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19359 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19361 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19363 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19364 initializer. Skip view conversions from aggregate types.
19366 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19369 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19371 2011-01-04 Philipp Thomas <pth@suse.de>
19373 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19376 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19378 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19379 on empty epilogue sequences.
19381 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19383 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19384 non-static): New Driver options.
19386 2011-01-04 Jie Zhang <jie@codesourcery.com>
19389 * gcc.c (default_compilers[]): Set combinable field to 0
19390 for all assembly languages.
19392 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19394 * config/mips/loongson3a.md: New file.
19395 * config/mips/mips.md: Include loongson3a.md.
19396 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19399 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19401 PR middle-end/47017
19402 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19403 instead of convert_memory_address_addr_space on the base expression.
19405 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19407 * config/spu/spu.c (spu_option_override): Update error text
19408 for bad -march= / -mtune= values.
19410 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19412 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19413 if branch-hint optimization will be performed.
19415 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19417 PR tree-optimization/47148
19418 * ipa-split.c (split_function): Convert arguments to
19419 DECL_ARG_TYPE if possible.
19421 PR tree-optimization/47155
19422 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19423 when computing uns.
19425 PR rtl-optimization/47157
19426 * combine.c (try_combine): If undobuf.other_insn becomes
19427 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19428 and set *new_direct_jump_p too.
19430 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19432 PR tree-optimization/47021
19433 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19435 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19437 * gcc.c (process_command): Update copyright notice dates.
19438 * gcov.c (print_version): Likewise.
19439 * gcov-dump.c (print_version): Likewise.
19440 * mips-tfile.c (main): Likewise.
19441 * mips-tdump.c (main): Likewise.
19443 2011-01-03 Martin Jambor <mjambor@suse.cz>
19445 PR tree-optimization/46801
19446 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19447 aggregate fields start at byte boundary instead of the bit-field flag.
19449 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19452 * gcc.c (main): Revert revision 168407.
19454 2011-01-03 Martin Jambor <mjambor@suse.cz>
19456 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19458 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19460 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19461 vector optab to expand vector/scalar shift, update gimple to vector.
19463 2011-01-03 Martin Jambor <mjambor@suse.cz>
19465 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19468 2011-01-03 Martin Jambor <mjambor@suse.cz>
19470 PR tree-optimization/46984
19471 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19473 (cgraph_create_indirect_edge): Fixed line length.
19474 (cgraph_indirect_call_info): Declare.
19475 (cgraph_make_edge_direct) Update declaration.
19476 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19477 (cgraph_create_indirect_edge): Use it.
19478 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19480 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19481 the new thunk_delta representation.
19482 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19484 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19485 (ipa_read_indirect_edge_info): Likewise.
19486 * lto-cgraph.c (output_edge_opt_summary): New function.
19487 (output_node_opt_summary): Call it on all outgoing edges.
19488 (input_edge_opt_summary): New function.
19489 (input_node_opt_summary): Call it on all outgoing edges.
19491 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19494 * gcc.c (main): Don't check have_o when settting combine_inputs.
19496 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19498 * regrename.c: Add general comment describing the pass.
19499 (struct du_head): Remove 'length' field.
19500 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19501 (regrename_optimize): Do not sort chains. Rework comments, add others.
19502 Force renaming to the preferred class (if any) in the first pass and do
19503 not consider registers that belong to it in the second pass.
19504 (create_new_chain): Do not set 'length' field.
19505 (scan_rtx_reg): Likewise.
19507 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19509 PR tree-optimization/47140
19510 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19511 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19512 to bit_value_binop.
19514 PR rtl-optimization/47028
19515 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19516 parm_birth_insn instead of at the beginning of first bb.
19518 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19520 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19521 Remove the word "see" before "@pxref".
19522 * doc/rtl.texi: Remove the word "see" before "@pxref".
19524 2011-01-01 Jan Hubicka <jh@suse.cz>
19526 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19529 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19532 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19535 Copyright (C) 2011 Free Software Foundation, Inc.
19537 Copying and distribution of this file, with or without modification,
19538 are permitted in any medium without royalty provided the copyright
19539 notice and this notice are preserved.