1 2011-06-28 Joseph Myers <joseph@codesourcery.com>
3 * genattr-common.c: New. Based on genattr.c.
4 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
5 (MOSTLYCLEANFILES): Add insn-attr-common.h.
6 (opts.o): Update dependencies.
7 (.PRECIOUS): Add insn-attr-common.h.
8 (simple_rtl_generated_h): Add insn-attr-common.h.
9 (build/genattr-common.o): New.
10 (genprogrtl): Add attr-common.
11 * genattr.c (main): Include insn-attr-common.h. Don't generate
12 definitions of DELAY_SLOTS or INSN_SCHEDULING.
13 * opts.c: Include insn-attr-common.h instead of rtl.h and
16 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
18 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
19 avr-*-* and avr-*-rtems* targets.
21 * config/avr/elf.h: New file.
22 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
23 (TARGET_ASM_SELECT_SECTION): Define.
24 (INIT_SECTION_ASM_OP): Undefine.
25 (FINI_SECTION_ASM_OP): Undefine.
26 (READONLY_DATA_SECTION_ASM_OP): Undefine.
27 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
28 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
30 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
31 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
32 (MAX_OFILE_ALIGNMENT): Move to elf.h.
33 (STRING_LIMIT): Move to elf.h.
34 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
35 (ASM_DECLARE_OBJECT_NAME): Remove.
37 (ASM_OUTPUT_SKIP): Remove.
38 (DWARF2_DEBUGGING_INFO): Remove.
39 (OBJECT_FORMAT_ELF): Remove.
40 (USER_LABEL_PREFIX): Remove.
41 (ASM_OUTPUT_EXTERNAL): Remove.
42 (ASM_OUTPUT_ASCII): Remove.
43 (TYPE_ASM_OP): Remove.
44 (SIZE_ASM_OP): Remove.
45 (WEAK_ASM_OP): Remove.
46 (STRING_ASM_OP): Remove.
48 (ASM_WEAKEN_LABEL): Remove.
49 (TYPE_OPERAND_FMT): Remove.
50 (ASM_DECLARE_FUNCTION_SIZE): Remove.
51 (ASM_FINISH_DECLARE_OBJECT): Remove.
52 (NO_DOLLAR_IN_LABEL): Remove.
53 (ASM_GENERATE_INTERNAL_LABEL): Remove.
54 (ASM_OUTPUT_CASE_LABEL): Remove.
55 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
56 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
57 (gas_output_ascii): Remove.
58 (gas_output_limited_string): Remove.
59 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
60 * config/avr/avr-protos.h
61 (gas_output_ascii): Remove prototye.
62 (gas_output_limited_string): Remove prototype.
64 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
67 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
70 2011-06-27 Jan Hubicka <jh@suse.cz>
72 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
73 instead of references in node.
75 2011-06-27 Richard Henderson <rth@redhat.com>
77 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
78 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
81 2011-06-27 Jakub Jelinek <jakub@redhat.com>
83 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
85 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
86 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
87 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
88 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
89 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
90 (evaluate_stmt, execute_fold_all_builtins): Handle
91 BUILT_IN_ASSUME_ALIGNED.
92 * tree-ssa-dce.c (propagate_necessity): Likewise.
93 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
94 call_may_clobber_ref_p_1): Likewise.
95 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
96 (expand_builtin_assume_aligned): New function.
97 * doc/extend.texi (__builtin_assume_aligned): Document.
100 * cselib.c (promote_debug_loc): If cselib_preserve_constants
101 and l has two DEBUG_INSN owned locs instead of just one, adjust
102 the second location's setting_insn too.
104 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
107 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
109 2011-06-27 Nick Clifton <nickc@redhat.com>
111 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
112 convert bit position of highest bit set into a count of the high
115 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
117 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
119 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
122 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
125 2011-06-27 Richard Guenther <rguenther@suse.de>
127 PR tree-optimization/49394
128 * passes.c (execute_one_pass): Restore current_pass after
129 applying IPA transforms.
131 2011-06-27 Kai Tietz <ktietz@redhat.com>
133 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
134 out of type precision after operation.
135 (find_bswap): Take for limit value the integer auto-
136 promotion into account.
138 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
140 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
141 forward scan as well.
143 2011-06-27 Tristan Gingold <gingold@adacore.com>
146 * config/vms/vms-protos.h: New file.
147 * config/vms/vms-crtlmap.map: New file.
148 * config/vms/vms.c: New file.
149 * config/vms/make-crtlmap.awk: New file.
150 * config/vms/vms-crtl.h: File removed.
151 * config/vms/vms-crtl-64.h: File removed.
152 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
153 * config/alpha/vms64.h: Do not include vms-crtl-64.h
154 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
155 clear some builtins on VMS. Calls vms_patch_builtins.
156 (avms_asm_output_external): Remove.
157 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
158 (struct crtl_name_spec): Remove
159 (DO_CTRL_NAMES): Remove.
160 * config/ia64/vms.h (struct crtl_name_spec): Remove
161 (DO_CTRL_NAMES): Remove.
162 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
163 clear some builtins on VMS. Calls vms_patch_builtins.
164 (ia64_asm_output_external): Remove DO_CRTL_NAME.
165 * config/ia64/vms64.h: Do not include vms-crtl-64.h
166 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
169 2011-06-27 Tristan Gingold <gingold@adacore.com>
171 * config/alpha/alpha.c (alpha_end_function): Always generate .end
174 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
176 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
177 the function receives nonlocal gotos.
179 2011-06-27 Richard Guenther <rguenther@suse.de>
181 PR tree-optimization/49536
182 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
183 For non-scalar inner types use a scalar type according to
184 the scalar inner mode.
186 2011-06-27 Richard Guenther <rguenther@suse.de>
188 PR tree-optimization/49365
189 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
191 2011-06-27 Richard Guenther <rguenther@suse.de>
193 PR tree-optimization/49169
194 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
195 the alignment of function decls.
197 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
200 * config/darwin.c (darwin_mergeable_string_section): Place string
201 constants in '.cstring' rather than '.const' when CF/NSStrings are
204 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
206 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
207 (emit_save_register_window): Likewise.
208 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
209 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
210 Swap back %o7/%i7 in register naming.
212 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
215 * config/darwin.c (darwin_override_options): Improve warning when
216 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
217 is given with fpie/fPIE.
218 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
219 * config/darwin9.h (PIE_SPEC): New.
221 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
223 * timevar.c (timevar_print): Increase width for display of timevar
226 2011-06-24 Jakub Jelinek <jakub@redhat.com>
229 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
230 instead of TYPE_CHAIN for chain_next for types.
232 2011-06-24 Richard Henderson <rth@redhat.com>
234 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
235 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
236 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
237 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
238 (sparc_flat_expand_prologue): Emit individual instructions
239 instead of one of the above.
241 2011-06-24 Easwaran Raman <eraman@google.com>
243 PR rtl-optimization/49429
245 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
246 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
247 used to copy y into x.
248 * calls.c (initialize_argument_information): Mark
249 an argument addressable if it is passed by invisible reference.
250 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
251 if it is passed by reference.
253 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
255 PR rtl-optimization/49504
256 * rtlanal.c (nonzero_bits1): Properly handle addition or
257 subtraction of a pointer in Pmode if pointers extend unsigned.
258 (num_sign_bit_copies1): Likewise.
260 2011-06-24 Martin Jambor <mjambor@suse.cz>
262 PR tree-optimizations/49516
263 * tree-sra.c (sra_modify_assign): Choose the safe path for
264 aggregate copies if we also did scalar replacements.
266 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
269 * config/arm/predicates.md (add_operator): New.
270 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
273 2011-06-24 Andi Kleen <ak@linux.intel.com>
275 * tree-sra.c (type_internals_preclude_sra_p): Add msg
276 parameter. Split up ifs and report reason in *msg.
278 (find_var_candiate): Add msg variable.
279 Split up ifs and report reason to reject.
280 (find_param_candidates): Add msg variable.
281 Pass msg to type_internals_preclude_sra_p.
283 2011-06-23 Jeff Law <law@redhat.com>
286 * reload.h (reload): Change to return a bool.
287 * ira.c (ira): If requested by reload, run a fast DCE pass after
288 reload has completed. Fix comment typo.
289 * reload1.c (need_dce): New file scoped static.
290 (reload): Set reload_completed here. Return whether or not a DCE
291 pass after reload is needed.
292 (delete_dead_insn): Set need_dce as needed.
295 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
296 to detect threading through joiner block. If there was already
297 an edge to the new target, then do not change the PHI nodes.
299 2011-06-23 Jakub Jelinek <jakub@redhat.com>
301 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
302 get_pointer_alignment to see if base isn't sufficiently aligned.
304 2011-06-23 Jan Hubicka <jh@suse.cz>
306 PR tree-optimize/49373
307 * tree-pass.h (all_late_ipa_passes): Declare.
308 * cgraphunit.c (init_lowered_empty_function): Fix properties.
309 (cgraph_optimize): Execute late passes; remove unreachable funcions after
311 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
312 * passes.c (all_late_ipa_passes): Declare.
313 (dump_passes, register_pass): Handle late ipa passes.
314 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
315 at beggining of all_passes.
316 (apply_ipa_transforms): New function.
317 (execute_one_pass): When doing simple ipa pass, apply all transforms.
319 2011-06-23 Joseph Myers <joseph@codesourcery.com>
321 * params.c: Include common/common-target.h. Don't include tm.h.
322 (lang_independent_params): Move from toplev.c.
323 (global_init_params): New.
324 * params.h (global_init_params): Declare.
325 * target.def (default_params): Move to common-target.def.
326 * toplev.c (lang_independent_options): Remove.
327 (lang_independent_params): Move to params.c.
328 (general_init): Use global_init_params.
329 * common/common-target.def (option_default_params): Move from
331 * common/config/ia64/ia64-common.c: Include params.h.
332 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
334 * common/config/rs6000/rs6000-common.c: Include params.h.
335 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
337 * common/config/sh/sh-common.c: Include params.h.
338 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
340 * common/config/spu/spu-common.c: Include params.h.
341 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
343 * config/ia64/ia64.c (ia64_option_default_params,
344 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
345 * config/rs6000/rs6000.c (rs6000_option_default_params,
346 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
347 * config/sh/sh.c (sh_option_default_params,
348 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
349 * config/spu/spu.c (spu_option_default_params,
350 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
351 * Makefile.in (OBJS): Remove params.o.
352 (OBJS-libcommon-target): Add params.o.
353 (params.o, $(common_out_object_file)): Update dependencies.
354 * doc/tm.texi: Regenerate.
356 2011-06-23 Alan Modra <amodra@gmail.com>
359 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
360 invocation for 2011-06-09 changes.
362 2011-06-22 Jakub Jelinek <jakub@redhat.com>
365 * omp-low.c (expand_omp_for_static_nochunk): Only
366 use n ceil/ nthreads size for the first
367 n % nthreads threads in the team instead of
368 all threads except for the last few ones which
369 get less work or none at all.
372 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
375 2011-06-22 Richard Guenther <rguenther@suse.de>
377 PR tree-optimization/49493
378 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
379 Refer to the alias target of variables.
380 (associate_varinfo_to_alias_1): Remove.
381 (ipa_pta_execute): Do not associate aliases with anything.
382 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
383 (cgraph_function_node): Likewise.
384 (cgraph_function_or_thunk_node): Likewise.
385 (varpool_variable_node): Likewise.
387 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
389 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
391 * config.gcc (arm*-*-linux*): Default to gnu tls.
392 (arm*-*-*): Add --with-tls option.
393 (all_defaults): Add 'tls'.
395 2011-06-22 Richard Henderson <rth@redhat.com>
397 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
398 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
399 (dwarf2out_frame_debug_cfa_window_save): Rename from
400 dwarf2out_window_save; make static.
401 * tree.h (dwarf2out_window_save): Don't declare.
403 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
404 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
405 (emit_save_register_window): Rename from gen_save_register_window;
406 emit the insn and add REG_CFA_* notes.
407 (sparc_expand_prologue): Update to match.
408 * config/sparc/sparc.md (save_register_window_1): Simplify from
409 save_register_window<P:mode>.
411 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
414 * config/i386/i386.md (*lea_general_2): Always allow SImode.
415 (*lea_general_2_zext): Likewise.
416 (imul to lea peepholes): Use const359_operand and check
417 TARGET_PARTIAL_REG_STALL.
419 * config/i386/predicates.md (const359_operand): New.
421 2011-06-22 Michael Matz <matz@suse.de>
423 * cgraphunit.c (assemble_thunk): Use correct return type.
425 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
426 Dmitry Melnik <dm@ispras.ru>
428 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
429 (neon_output_shift_immediate): Ditto.
430 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
432 (neon_output_shift_immediate): Ditto.
433 * config/arm/neon.md (vashl<mode>3): Modified constraint.
434 (vashr<mode>3_imm): New insn pattern.
435 (vlshr<mode>3_imm): Ditto.
436 (vashr<mode>3): Modified constraint.
437 (vlshr<mode>3): Ditto.
438 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
440 (imm_for_neon_rshift_operand): Ditto.
441 (imm_lshift_or_reg_neon): Ditto.
442 (imm_rshift_or_reg_neon): Ditto.
444 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
446 2011-06-22 Jakub Jelinek <jakub@redhat.com>
448 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
449 builtin calls even if likelyvalue is not CONSTANT.
450 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
451 Return get_value_for_expr of first operand
452 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
453 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
454 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
455 their non-checking counterparts.
456 (call_may_clobber_ref_p_1): Likewise.
457 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
458 like their non-checking counterparts.
459 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
460 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
461 like their non-checking counterparts.
462 (find_func_clobbers): Likewise.
463 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
464 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
466 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
467 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
468 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
469 of base type reference as argument.
470 (resolve_addr_in_expr): Likewise. Fix keep computation.
471 (convert_descriptor_to_signed): Renamed to...
472 (convert_descriptor_to_mode): ... this. For wider types convert
473 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
475 (typed_binop): New function.
476 (scompare_loc_descriptor, ucompare_loc_descriptor,
477 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
478 default to unsigned type instead of signed.
481 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
482 (gimple_build_debug_source_bind_stat): New prototype.
483 (gimple_build_debug_source_bind): Define.
484 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
485 gimple_debug_source_bind_get_value,
486 gimple_debug_source_bind_get_value_ptr,
487 gimple_debug_source_bind_set_var,
488 gimple_debug_source_bind_set_value): New inlines.
489 * gimple.c (gimple_build_debug_source_bind_stat): New function.
490 * gimple-pretty-print.c (dump_gimple_debug): Handle
491 GIMPLE_DEBUG_SOURCE_BIND.
492 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
493 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
494 * tree-parloops.c (eliminate_local_variables,
495 separate_decls_in_region): Likewise.
496 (separate_decls_in_region_debug): Renamed from
497 separate_decls_in_region_debug_bind. Handle
498 gimple_debug_source_bind_p.
499 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
501 (DECL_HAS_DEBUG_ARGS_P): Define.
502 (struct tree_function_decl): Add has_debug_args_flag field.
503 * tree.c (debug_args_for_decl): New variable.
504 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
505 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
506 (rewrite_debug_stmt_uses): New function.
507 (rewrite_stmt): Use it to rewrite debug stmt uses.
508 * rtl.def (DEBUG_PARAMETER_REF): New.
509 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
510 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
512 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
513 * print-rtl.c (print_rtx): Likewise.
514 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
515 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
516 debug stmts in the first bb.
517 * tree-inline.c (remap_ssa_name): If remapping default def
518 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
519 a source bind debug stmt.
520 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
521 (maybe_move_debug_stmts_to_successors): Likewise.
522 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
523 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
524 debug args vector from old_decl to new_decl.
525 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
526 or modified parameters, add debug bind stmts before call
527 setting DEBUG_EXPR_DECL which is remembered in debug args
529 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
530 on DECL_DEBUG_EXPRs from debug args vector.
531 (expand_debug_source_expr): New function.
532 (expand_debug_locations): Use it for source bind insns.
533 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
534 * var-tracking.c (prepare_call_arguments): Add debug args
535 to call_arguments if any.
536 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
537 output_loc_operands, output_loc_operands_raw,
538 resolve_addr_in_expr, compare_loc_operands): Handle
539 DW_OP_GNU_parameter_ref.
540 (get_ref_die_offset, parameter_ref_descriptor): New functions.
541 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
542 (gen_subprogram_die): Handle parameters identified by
545 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
547 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
548 * doc/install.texi (Configuration): Document --with-tls.
549 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
550 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
551 (arm_tls_descseq_addr): New.
552 (legitimize_tls_address): Add tlsdesc support.
553 (arm_cannot_copy_insn_p): Check for tlscall.
554 (arm_emit_tls_decoration): Likewise.
555 * config/arm/arm.h (TARGET_GNU2_TLS): New.
556 (OPTION_DEFAULT_SPECS): Add with-tls support.
557 * config/arm/arm.md (R1_REGNUM): Define.
559 * config/arm/arm.opt (tls_type): New enumeration type and values.
560 (mtls-dialect): New switch.
561 * config/arm/arm-opts.h (enum tls_type): New.
563 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
565 * attribs.c (register_attribute): Added assert to check that all
566 attribute specs are registered with a name that is not empty and
567 does not start with '_'.
568 (decl_attributes): Avoid the lookup of the "naked" attribute spec
569 if the function has no attributes.
570 * tree.c (is_attribute_with_length_p): Removed.
571 (is_attribute_p): Removed.
572 (private_is_attribute_p): New.
573 (private_lookup_attribute): New.
574 (lookup_attribute): Removed.
575 (lookup_ident_attribute): New.
576 (remove_attribute): Require the first argument to be in the form
577 'text', not '__text__'. Updated asserts.
578 (merge_attributes): Use lookup_ident_attributes instead of
580 (merge_dllimport_decl_attributes): Use remove_attribute.
581 (attribute_list_contained): Likewise.
582 (attribute_list_equal): Immediately return 1 if the arguments are
584 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
585 'int'. Require the first argument to be in the form 'text', not
586 '__text__'. Require the second argument to be an identifier.
587 (lookup_attribute): Made inline. Require the first argument to be
588 in the form 'text', not '__text__'.
589 (private_is_attribute_p, private_lookup_attribute): New.
592 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
594 * builtins.c: Add sync_ or SYNC__ to builtin names.
595 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
596 * omp-low.c: Add sync_ or SYNC__ to builtin names.
598 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
601 * config/avr/avr.md (extzv): New expander.
603 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
604 * config/avr/constraints.md (C04): New constraint.
605 * doc/md.texi (Machine Constraints): Document it.
607 2011-06-21 Jakub Jelinek <jakub@redhat.com>
610 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
611 unsignedp argument instead of 1 for clrsb_optab.
612 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
613 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
614 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
615 * optabs.c (widen_leading): Call widen_operand and expand_unop
616 with 0 as unsignedp argument instead of 1 for clrsb_optab.
617 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
619 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
621 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
623 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
625 * gensupport.c (add_define_attr): New static function.
626 (is_predicable): Allow multi-alternative lists for the "predicable"
628 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
629 (process_one_cond_exec): Call alter_attrs_for_insn.
630 * doc/md.texi (Defining Attributes): Mention some standard names.
631 (Conditional Execution): Update documentation for "predicable".
633 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
634 __builtin_clrsbll): Document.
635 * doc/rtl.texi (clrsb): New entry.
636 * optabs.c (widen_leading): Renamed from widen_clz. New argument
637 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
638 (expand_unop): Handle clrsb_optab.
639 (init_optabs): Initialize it.
640 * optabs.h (enum optab_index): New entry OTI_clrsb.
641 (clrsb_optab): Define.
642 * genopinit.c (optabs): Add an entry for it.
643 * builtins.c (expand_builtin): Handle clrsb builtin functions.
644 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
645 BUILT_IN_CLRSBLL): New.
646 * rtl.def (CLRSB): New code.
647 * dwarf2out.c (mem_loc_descriptor): Handle it.
648 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
649 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
651 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
652 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
653 (__ctzDI2): Move declaration.
654 * config/bfin/bfin.md (clrsbsi2): New expander.
655 (signbitssi2): Use the CLRSB rtx.
656 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
657 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
659 2011-06-21 Richard Guenther <rguenther@suse.de>
661 * ipa-inline-transform.c (inline_transform): Fix previous change.
663 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
665 PR tree-optimization/49478
666 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
667 with constant operand.
669 2011-06-21 Richard Guenther <rguenther@suse.de>
671 * ipa-inline-transform.c (inline_transform): Fix typo.
673 2011-06-21 Richard Guenther <rguenther@suse.de>
675 PR tree-optimization/49483
676 * tree-vect-stmts.c (vectorizable_assignment): Also handle
677 VIEW_CONVERT_EXPR conversions.
679 2011-06-21 Joseph Myers <joseph@codesourcery.com>
681 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
682 * config/avr/avr-tables.opt: New file (generated).
683 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
684 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
686 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
687 (avr_option_override): Don't process -mmcu= argument here. Set
688 avr_current_device using avr_mcu_index.
689 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
690 * config/avr/avr.opt (mmcu=): Use Enum.
691 * config/avr/t-avr (avr-devices.o): Update dependencies.
692 ($(srcdir)/config/avr/avr-tables.opt): New.
693 * target.def (help): Remove.
694 * doc/tm.texi.in (TARGET_HELP): Remove.
695 * doc/tm.texi: Regenerate.
696 * opts.c: Don't include target.h.
697 (common_handle_option): Don't call targetm.help.
698 * system.h (TARGET_HELP): Poison.
699 * Makefile.in (opts.o): Update dependencies.
701 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703 * config/usegld.h: New file.
704 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
705 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
706 (LIB_SPEC): Likewise. Search /lib.
707 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
708 (RDYNAMIC_SPEC): Handle GNU ld.
709 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
711 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
712 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
713 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
714 (STACK_CHECK_STATIC_BUILTIN): Define.
715 * config/sol2.opt (compat-bsd): Remove.
716 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
717 * config/sol2-bi.h: New file.
718 * config/sol2-gld.h: Remove.
719 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
720 (NO_DBX_BNSYM_ENSYM): Remove.
721 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
722 (STACK_CHECK_STATIC_BUILTIN): Remove.
723 Test USE_GLD instead of TARGET_GNU_LD.
724 * config/i386/sol2-10.h: Rename to ...
725 * config/i386/sol2-bi.h .. this.
726 (SUBTARGET_EXTRA_SPECS): Redefine.
727 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
728 (MULTILIB_DEFAULTS): Remove.
729 (DEFAULT_ARCH32_P): Define.
730 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
731 (ARCH64_SUBDIR): Define.
732 Test USE_GLD instead of TARGET_GNU_LD.
733 (I386_EMULATION): Rename to ...
734 (ARCH32_EMULATION): ... this.
735 (X86_64_EMULATION): Rename to ...
736 (ARCH64_EMULATION): ... this.
737 (TARGET_LD_EMULATION): Remove.
738 (LINK_ARCH_SPEC): Remove.
739 * config/i386/sol2-gas.h: Remove.
740 * config/i386/t-sol2-10: Rename to ...
741 * config/i386/t-sol2-64: ... this.
742 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
743 (AS_SPARC64_FLAG): Define.
744 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
745 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
746 depending on TARGET_CPU_DEFAULT.
747 (CPP_CPU_SPEC): Redefine.
748 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
749 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
750 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
751 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
752 ASM_ARCH_DEFAULT_SPEC): Redefine.
753 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
754 LINK_ARCH_DEFAULT_SPEC.
755 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
756 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
757 (ARCH64_SUBDIR): Define.
758 (LINK_ARCH64_SPEC): Redefine.
759 (CC1_SPEC): Redefine.
760 (OPTION_DEFAULT_SPECS): Redefine.
761 (MULTILIB_DEFAULTS): Define.
762 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
763 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
764 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
765 (NO_DBX_BNSYM_ENSYM): Remove.
766 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
767 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
768 (TARGET_ASM_NAMED_SECTION): Likewise.
769 (STACK_CHECK_STATIC_BUILTIN): Remove.
770 * config/sparc/sol2-bi.h: Remove.
771 * config/sparc/sol2-gas-bi.h: Remove.
772 * config/sparc/sol2-gas.h: Remove.
773 * config/sparc/sol2-gld-bi.h: Remove.
774 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
776 (*-*-solaris2*): ... here.
778 2011-06-21 Christian Bruel <christian.bruel@st.com>
781 * ipa-inline.c (can_inline_edge_p): Check
782 !DECL_DISREGARD_INLINE_LIMITS.
784 2011-06-21 Christian Bruel <christian.bruel@st.com>
787 * cgraphunit.c (process_function_and_variable_attributes): warn when
788 always_inline functions that are not inline.
789 * ipa-inline-transform.c (inline_transform): Always call
791 * tree-inline.c (tree_inlinable_function_p): Use error instead
793 (expand_call_inline): Likewise.
795 2011-06-21 Jakub Jelinek <jakub@redhat.com>
797 * Makefile.in (dg_target_exps): Set.
798 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
799 instead of 7, try to divide it more evenly.
801 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
804 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
805 (avx256_split_unaligned_store): New definition.
806 (ix86_option_override_internal): Enable avx256 unaligned load/store
807 splitting only when avx256_split_unaligned_load/store is set.
809 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
811 * regrename.c (scan_rtx_reg): Handle the case where we write to an
812 open chain in a smaller mode without failing the entire block.
814 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
817 * combine.c (cant_combine_insn_p): Don't check zero/sign
818 extended hard registers.
820 2011-06-21 Alan Modra <amodra@gmail.com>
822 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
823 CONST high part large-toc address.
824 (rs6000_tls_referenced_p): Make static.
825 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
827 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
830 * combine.c (cant_combine_insn_p): Check zero/sign extended
833 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
836 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
837 one of the operands is a register.
839 2011-06-20 Kai Tietz <ktietz@redhat.com>
841 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
842 operations in combination with binary and.
844 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
846 * regrename.c (do_replace): Don't update notes.
848 2011-06-20 Alan Modra <amodra@gmail.com>
850 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
851 of toc-relative address in CONST.
852 (rs6000_delegitimize_address): Recognize changed address.
853 (rs6000_legitimize_reload_address): Likewise.
854 (rs6000_emit_move): Don't force these constants to memory.
855 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
856 toc-relative address in CONST.
857 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
858 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
860 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
862 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
863 (count_trailing_zeros): Likewise.
865 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
868 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
869 .init_array can be used with .ctors on targets.
870 * configure: Regenerated.
872 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
874 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
875 if the element type is volatile.
877 2011-06-18 Jan Hubicka <jh@suse.cz>
879 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
881 (lto_symtab_resolve_can_prevail_p): Likewise.
882 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
883 * cgraphbuild.c (record_reference): Remove extra body alias code.
884 (mark_load): Likewise.
885 (mark_store): Likewise.
886 * cgraph.h (varpool_node): Remove extra_name filed;
887 add alias_of and extraname_alias.
888 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
889 (varpool_alias_aliased_node): New inline function.
890 (varpool_variable_node): New function.
891 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
892 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
893 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
894 (input_varpool_node): Likewise.
895 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
896 (varpool_externally_visible_p): Remove extra body alias code.
897 (function_and_variable_visibility): Likewise.
898 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
899 (ipa_pta_execute): Use it.
900 * varpool.c (varpool_remove_node): Remove extra name alias code.
901 (varpool_mark_needed_node): Likewise.
902 (varpool_analyze_pending_decls): Analyze aliases.
903 (assemble_aliases): New functoin.
904 (varpool_assemble_decl): Use it.
905 (varpool_create_variable_alias): New function.
906 (varpool_extra_name_alias): Rewrite.
907 (varpool_for_node_and_aliases): New function.
909 2011-06-18 Jakub Jelinek <jakub@redhat.com>
912 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
913 last_arg_constant and last argument doesn't match its predicate,
914 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
915 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
916 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
917 spelling of error message.
918 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
919 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
920 const_0_to_255_operand instead of const_int_operand.
923 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
925 * config/i386/sse.md (blendbits): Remove mode attribute.
926 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
927 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
928 Check integer value of operand 3 in insn constraint.
930 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
932 PR rtl-optimization/48542
933 * reload.c (find_equiv_reg): Stop looking when finding a
935 * reload1.c (reload_as_needed): Invalidate all reload
936 registers when crossing a setjmp-type call.
938 2011-06-16 Jeff Law <law@redhat.com>
940 * tree-ssa-threadupdate.c (struct redirection_data): New field
942 (THREAD_TARGET2): Define.
943 (redirection_data_eq): Also check that the intermediate edge is equal.
944 (lookup_redirection_data): Drop useless argument. Extract the
945 outgoing_edge and intermediate edge from E. Callers updated.
946 (copy_phi_args, update_destination_phis): New functions.
947 (fix_duplicate_block_edges): Likewise.
948 (create_edge_and_update_destination_phis): Duplicate all the edges
949 hung off e->aux. Use copy_phi_args.
950 (create_duplicates): Use fix_duplicate_block_edges.
951 (fixup_template_block): Likewise.
952 (redirect_edges): If necessary, redirect the joiner block's incoming
953 edge to the duplicate of the joiner block.
954 (thread_block): Don't muck up loops when threading through a joiner
956 (thread_through_loop_header): Handle threading through a joiner block.
957 (mark_threaded_blocks, register_jump_thread): Likewise.
958 * tree-flow.h (register_jump_thread): Add new argument. Callers
960 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
961 (thread_across_edge): Handle threading through a joiner block.
963 2011-06-16 Martin Jambor <mjambor@suse.cz>
965 PR tree-optimization/49343
966 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
967 calculate offset, provide 2nd operand for the new COMPONENT_REF.
969 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
971 * config/darwin-protos.h (machopic_select_rtx_section): Move to
972 inside RTX_CODE ifdef.
974 2011-06-16 Tom de Vries <tom@codesourcery.com>
977 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
978 Disallow NULL pointer for pointer arithmetic.
980 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
984 2011-06-10 Wei Guozhi <carrot@google.com>
987 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
988 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
989 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
991 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
993 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
994 (arm_legitimate_ldrd_p): New prototype.
995 (arm_output_ldrd): New prototype.
996 * config/arm/arm.c (arm_check_ldrd_operands): New function.
997 (arm_legitimate_ldrd_p): New function.
998 (arm_output_ldrd): New function.
1000 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1003 * doc/tm.texi.in: Update Copyright date.
1004 * doc/tm.texi: Regenerate.
1005 * targhooks.c (default_setup_incoming_varargs): Replace
1006 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1007 (default_pretend_outgoing_varargs_named): Likewise.
1008 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1009 (hook_callee_copies_named): Likewise.
1010 (default_function_arg_advance): Likewise.
1011 (default_function_arg): Likewise.
1012 (default_function_incoming_arg): Likewise.
1013 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1014 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1015 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1016 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1017 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1018 * targhooks.h (default_setup_incoming_varargs): Likewise.
1019 (default_pretend_outgoing_varargs_named): Likewise.
1020 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1021 (hook_callee_copies_named): Likewise.
1022 (default_function_arg_advance): Likewise.
1023 (default_function_arg): Likewise.
1024 (default_function_incoming_arg): Likewise.
1025 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1026 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1027 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1028 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1029 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1030 * target.def (pass_by_reference): Likewise.
1031 (setup_incoming_varargs, strict_argument_naming): Likewise.
1032 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1033 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1034 (function_incoming_arg): Likewise.
1035 * target.h: Don't include "tm.h" .
1036 (cumulative_args_t): New typedef.
1037 [GCC_TM_H] (get_cumulative_args): New static inline function.
1038 [GCC_TM_H] (pack_cumulative_args): Likewise.
1039 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1040 argument type with cumulative_args_t.
1041 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1042 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1043 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1044 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1045 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1046 (frv_function_arg_1): Likewise.
1047 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1048 (s390_function_arg_advance, s390_function_arg): Likewise.
1049 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1050 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1051 (m32c_strict_argument_naming): Likewise.
1052 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1053 (spu_function_arg_advance): Likewise.
1054 (spu_setup_incoming_varargs): Likewise. Make static.
1055 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1057 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1058 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1059 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1060 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1061 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1062 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1063 (mep_pass_by_reference, mep_function_arg): Likewise.
1064 (mep_function_arg_advance): Likewise.
1065 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1066 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1067 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1068 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1069 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1070 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1071 (ix86_setup_incoming_varargs): Likewise.
1072 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1073 (sh_strict_argument_naming): Likewise.
1074 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1075 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1076 (sh_function_arg_advance, sh_function_arg): Likewise.
1077 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1078 (pdp11_function_arg_advance): Likewise.
1079 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1081 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1082 * config/avr/avr.c (avr_function_arg): Likewise.
1083 (avr_function_arg_advance): Likewise.
1084 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1085 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1086 (xtensa_function_arg_1): Likewise.
1087 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1089 (xstormy16_function_arg): Likewise.
1090 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1091 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1092 (fr30_function_arg_advance): Likewise.
1093 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1094 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1095 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1096 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1097 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1098 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1099 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1100 (cris_function_arg, cris_function_incoming_arg): Likewise.
1101 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1102 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1103 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1104 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1105 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1106 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1107 (mn10300_arg_partial_bytes): Likewise.
1108 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1109 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1110 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1111 (ia64_function_arg_1): Likewise.
1112 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1113 (m68k_function_arg): Likewise.
1114 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1115 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1116 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1117 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1118 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1119 (picochip_arg_advance): Likewise.
1120 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1121 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1122 (mcore_function_arg_advance): Likewise.
1123 * config/score/score.c (score_pass_by_reference): Likewise.
1124 (score_function_arg_advance): Likewise.
1125 (score_arg_partial_bytes): Likewise. Make static.
1126 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1127 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1128 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1129 (arm_function_arg, arm_function_arg_advance): Likewise.
1130 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1131 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1132 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1133 (pa_function_arg): Likewise.
1134 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1135 (mips_function_arg, mips_function_arg_advance): Likewise.
1136 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1137 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1138 * config/vax/vax.c (vax_function_arg): Likewise.
1139 (vax_function_arg_advance): Likewise.
1140 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1141 (h8300_function_arg_advance): Likewise.
1142 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1143 (v850_strict_argument_naming, v850_function_arg): Likewise.
1144 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1145 (v850_setup_incoming_varargs): Likewise.
1146 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1147 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1148 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1149 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1151 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1152 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1153 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1154 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1155 * calls.c (emit_call_1): Change type of args_so_far to
1156 cumulative_args_t. Changed all callers.
1157 (initialize_argument_information): Likewise.
1158 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1159 * dse.c (get_call_args): Likewise.
1160 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1161 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1162 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1163 New member args_so_far_v. Changed all users.
1164 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1165 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1166 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1167 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1168 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1169 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1171 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1172 m32r_pass_by_reference.
1174 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1176 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1177 argument to be a VEC of statements.
1178 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1179 assert that pattern statements have to have their vector type set.
1180 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1181 Change the first argument to be a VEC of statements. Update
1183 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1184 (vect_handle_widen_mult_by_const): New function.
1185 (vect_recog_widen_mult_pattern): Change the first argument to be a
1186 VEC of statements. Update documentation. Check that the constant is
1187 INTEGER_CST. Support multiplication by a constant that fits an
1188 intermediate type - call vect_handle_widen_mult_by_const.
1189 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1190 call. Handle additional pattern statements if necessary.
1192 2011-06-16 Nick Clifton <nickc@redhat.com>
1195 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1196 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1197 md_file, extra_modes, out_file and extra_options are these are all
1198 deduced from cpu_type.
1200 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1202 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1203 truncation mask to 63.
1205 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1209 * longlong.h: Add AVR support:
1210 (count_leading_zeros): New macro.
1211 (count_trailing_zeros): New macro.
1212 (COUNT_LEADING_ZEROS_0): New macro.
1213 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1214 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1215 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1216 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1217 (LIB2FUNCS_EXCLUDE): Add _clz.
1218 * config/avr/libgcc.S (XCALL): Move up in file.
1219 (XJMP): New C Macro.
1220 (DEFUN): New asm macro.
1221 (ENDF): New asm macro.
1222 (__ffssi2): New function.
1223 (__ffshi2): New function.
1224 (__loop_ffsqi2): New function.
1225 (__ctzsi2): New function.
1226 (__ctzhi2): New function.
1227 (__clzdi2): New function.
1228 (__clzsi2): New function.
1229 (__clzhi2): New function.
1230 (__paritydi2): New function.
1231 (__paritysi2): New function.
1232 (__parityhi2): New function.
1233 (__parityqi2): New function.
1234 (__popcounthi2): New function.
1235 (__popcountsi2): New function.
1236 (__popcountdi2): New function.
1237 (__popcountqi2): New function.
1238 (__bswapsi2): New function.
1239 (__bswapdi2): New function.
1240 (__ashldi3): New function.
1241 (__ashrdi3): New function.
1242 (__lshrdi3): New function.
1243 Fix suspicous lines.
1245 2011-06-16 Richard Guenther <rguenther@suse.de>
1247 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1249 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1251 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1252 equality compares against zero for the lower bit.
1254 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1256 PR tree-optimization/49419
1257 * tree-vrp.c (execute_vrp): Call init_range_assertions
1258 before estimate_numbers_of_iterations, call
1259 free_number_of_iterations_estimates before calling
1260 remove_range_assertions.
1262 2011-06-16 Revital Eres <revital.eres@linaro.org>
1264 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1265 (struct partial_schedule): Add rows_length field.
1266 (verify_partial_schedule): Check rows_length.
1267 (ps_insert_empty_row): Handle rows_length.
1268 (create_partial_schedule): Likewise.
1269 (free_partial_schedule): Likewise.
1270 (reset_partial_schedule): Likewise.
1271 (create_ps_insn): Remove rest_count argument.
1272 (remove_node_from_ps): Update rows_length.
1273 (add_node_to_ps): Update rows_length and call create_ps_insn
1274 without passing row_rest_count.
1275 (rotate_partial_schedule): Update rows_length.
1277 2011-06-16 Revital Eres <revital.eres@linaro.org>
1279 * ddg.c (add_intra_loop_mem_dep): New function.
1280 (build_intra_loop_deps): Call it.
1282 2011-06-13 Jeff Law <law@redhat.com>
1284 * df-problems.c (df_lr_local_compute): Manually CSE
1285 PIC_OFFSET_TABLE_REGNUM.
1286 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1287 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1289 2011-06-13 Jan Hubicka <jh@suse.cz>
1291 * cgraphunit.c (handle_alias_pairs): New function.
1292 (cgraph_finalize_compilation_unit): Use it.
1293 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1294 as externally visible.
1296 2011-06-15 Richard Guenther <rguenther@suse.de>
1298 * expr.c (expand_expr_real_2): Reduce all integral types to
1300 (expand_expr_real_1): Likewise.
1302 2011-06-15 Martin Jambor <mjambor@suse.cz>
1304 PR tree-optimization/48613
1305 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1306 ipa_node_params_vector is NULL.
1308 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1311 * dwarf2out.c (dw_loc_list_node): Add force field.
1312 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1313 location in the list, even if it is modified before first real insn.
1314 (output_loc_list): Emit empty ranges with force flag set.
1315 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1317 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1320 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1321 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1322 above a fence. Update comments.
1323 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1324 placed just above it. Do not allow NULL place_to_insert.
1326 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1328 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1329 (slpeel_tree_peel_loop_to_edge): Don't call
1330 remove_dead_stmts_from_loop.
1331 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1332 remove irrelevant pattern statements. For irrelevant statements
1333 check if it is the last statement of a detected pattern, use
1334 corresponding pattern statement instead.
1335 (destroy_loop_vec_info): No need to remove pattern statements,
1336 only free stmt_vec_info.
1337 (vect_transform_loop): For irrelevant statements check if it is
1338 the last statement of a detected pattern, use corresponding
1339 pattern statement instead.
1340 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1341 pattern statements. Set basic block for the new statement.
1342 (vect_pattern_recog): Update documentation.
1343 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1344 operands of pattern statements.
1345 (vectorizable_call): Fix printing. In case of a pattern statement
1346 use the lhs of the original statement when creating a dummy
1347 statement to replace the original call.
1348 (vect_analyze_stmt): For irrelevant statements check if it is
1349 the last statement of a detected pattern, use corresponding
1350 pattern statement instead.
1351 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1352 statements use gsi of the original statement.
1354 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1356 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1357 common/common-target-def.h.
1358 * target.def (default_target_flags, handle_option,
1359 supports_split_stack, optimization_table, init_struct,
1360 except_unwind_info, unwind_tables_default, have_named_sections):
1361 Move to common/common-target.def.
1362 * target.h (enum opt_levels, struct default_options): Move to
1363 common/common-target.h.
1364 * targhooks.c (default_except_unwind_info,
1365 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1366 default_target_handle_option, empty_optimization_table): Move to
1367 common/common-targhooks.c.
1368 * targhooks.h (default_except_unwind_info,
1369 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1370 default_target_handle_option, empty_optimization_table): Move to
1371 common/common-targhooks.h.
1372 * common/common-target-def.h: Include common/common-targhooks.h.
1373 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1375 * common/common-target.def (handle_option, option_init_struct,
1376 option_optimization_table, default_target_flags,
1377 except_unwind_info, supports_split_stack, unwind_tables_default,
1378 have_named_sections): Move from target.def.
1379 (HOOK_PREFIX): Undefine at end of file.
1380 * common/common-target.h: Include input.h.
1381 (enum opt_levels, struct default_options): Move from target.h.
1382 * common/common-targhooks.c, common/common-targhooks.h: New.
1383 * config.gcc (target_has_targetm_common): Default to yes.
1384 (moxie*): Set target_has_targetm_common=no.
1385 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1386 * doc/tm.texi: Regenerate.
1387 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1388 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1389 (GCC_OBJS): Remove vec.o.
1390 (OBJS): Remove hooks.o and vec.o.
1391 (OBJS-libcommon-target): Add vec.o, hooks.o and
1392 common/common-targhooks.o.
1393 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1394 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1395 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1396 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1397 Update dependencies.
1398 (common/common-targhooks.o): New.
1399 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1400 * common/config/pa/pa-common.c: Include more headers. Take
1401 copyright dates from pa.c.
1402 (pa_option_optimization_table, pa_handle_option,
1403 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1404 TARGET_HANDLE_OPTION): Move from pa.c.
1405 * common/config/alpha/alpha-common.c,
1406 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1407 common/config/bfin/bfin-common.c,
1408 common/config/cris/cris-common.c,
1409 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1410 common/config/h8300/h8300-common.c,
1411 common/config/i386/i386-common.c,
1412 common/config/ia64/ia64-common.c,
1413 common/config/iq2000/iq2000-common.c,
1414 common/config/lm32/lm32-common.c,
1415 common/config/m32c/m32c-common.c,
1416 common/config/m32r/m32r-common.c,
1417 common/config/m68k/m68k-common.c,
1418 common/config/mcore/mcore-common.c,
1419 common/config/mep/mep-common.c,
1420 common/config/microblaze/microblaze-common.c,
1421 common/config/mips/mips-common.c,
1422 common/config/mmix/mmix-common.c,
1423 common/config/mn10300/mn10300-common.c,
1424 common/config/pdp11/pdp11-common.c,
1425 common/config/picochip/picochip-common.c,
1426 common/config/rs6000/rs6000-common.c,
1427 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1428 common/config/score/score-common.c, common/config/sh/sh-common.c,
1429 common/config/sparc/sparc-common.c,
1430 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1431 common/config/vax/vax-common.c,
1432 common/config/xstormy16/xstormy16-common.c,
1433 common/config/xtensa/xtensa-common.c: New.
1434 * config/alpha/alpha.c: Include common/common-target.h.
1435 (alpha_option_optimization_table, alpha_handle_option,
1436 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1437 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1438 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1439 * config/arm/arm.c (arm_option_optimization_table,
1440 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1441 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1443 * config/avr/avr.c (avr_option_optimization_table,
1444 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1446 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1447 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1448 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1449 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1450 * config/cris/cris.c (cris_option_optimization_table,
1451 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1452 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1454 * config/fr30/fr30.c (fr30_option_optimization_table,
1455 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1457 * config/frv/frv.c (frv_option_optimization_table,
1458 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1459 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1460 * config/h8300/h8300.c (h8300_option_optimization_table,
1461 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1462 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1463 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1464 * config/i386/i386.c: Include common/common-target.h.
1465 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1466 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1467 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1468 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1469 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1470 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1471 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1472 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1473 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1474 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1475 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1476 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1477 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1478 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1479 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1480 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1481 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1482 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1483 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1484 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1485 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1486 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1487 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1488 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1489 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1490 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1491 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1492 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1493 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1494 ix86_option_optimization_table, ix86_option_init_struct,
1495 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1496 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1497 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1499 * config/i386/t-i386 (i386.o): Update dependencies.
1500 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1501 * config/ia64/ia64.c (ia64_option_optimization_table,
1502 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1503 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1504 ia64_handle_option): Move to ia64-common.c.
1505 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1506 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1507 * config/lm32/lm32.c (lm32_option_optimization_table,
1508 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1510 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1512 * config/m32r/m32r.c (m32r_option_optimization_table,
1513 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1514 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1515 m32r_handle_option): Move to m32r-common.c.
1516 (m32r_memory_move_cost): Remove comment referring to
1517 TARGET_HANDLE_OPTION.
1518 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1519 Move to m68k-common.c.
1520 * config/mcore/mcore.c (mcore_option_optimization_table,
1521 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1522 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1523 * config/mep/mep.c (mep_option_optimization_table,
1524 mep_handle_option, TARGET_HANDLE_OPTION,
1525 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1526 Move to mep-common.c.
1527 * config/microblaze/microblaze.c
1528 (microblaze_option_optimization_table,
1529 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1530 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1531 * config/mips/mips.c (mips_handle_option,
1532 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1533 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1535 * config/mmix/mmix.c (mmix_option_optimization_table,
1536 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1537 Move to mmix-common.c.
1538 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1539 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1540 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1541 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1542 * config/pa/pa.c: Include common/common-target.h.
1543 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1544 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1545 pa_handle_option): Move to pa-common.c.
1546 (pa_option_override): Use targetm_common.except_unwind_info.
1547 (pa_asm_output_mi_thunk, pa_function_section): Use
1548 targetm_common.have_named_sections.
1549 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1550 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1551 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1552 pdp11_handle_option, pdp11_option_init_struct): Move to
1554 * config/picochip/picochip.c (picochip_option_optimization_table,
1555 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1556 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1557 * config/rs6000/rs6000.c: Include common/common-target.h.
1558 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1559 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1560 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1561 rs6000_handle_option): Move to rs6000-common.c.
1562 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1563 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1564 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1565 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1566 * config/s390/s390.c (processor_flags_table,
1567 s390_option_optimization_table, s390_option_init_struct,
1568 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1569 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1570 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1571 * config/s390/s390.h (processor_flags_table): Declare.
1572 * config/score/score.c (score_option_optimization_table,
1573 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1574 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1575 score_handle_option): Move to score-common.c.
1576 * config/sh/sh.c (sh_option_optimization_table,
1577 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1578 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1579 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1580 * config/sparc/sparc.c: Include common/common-target.h.
1581 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1582 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1583 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1584 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1585 spu_option_init_struct): Move to spu-common.c.
1586 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1587 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1588 * config/v850/v850.c (small_memory_physical_max,
1589 v850_handle_memory_optionn v850_handle_option,
1590 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1591 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1593 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1594 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1595 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1596 Move to xtensa-common.c.
1597 * cfglayout.c: Include common/common-target.h.
1598 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1599 * cfgrtl.c: Include common/common-target.h.
1600 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1601 targetm_common.have_named_sections.
1602 * dbxout.c: Include common/common-target.h.
1603 (dbxout_function_end): Use targetm_common.have_named_sections.
1604 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1605 targetm_common.except_unwind_info.
1606 * dwarf2out.c: Include common/common-target.h.
1607 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1608 dwarf2out_begin_prologue, dwarf2out_frame_init,
1609 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1610 targetm_common.except_unwind_info.
1611 * except.c: Include common/common-target.h.
1612 (init_eh, finish_eh_generation,
1613 output_one_function_exception_table): Use
1614 targetm_common.except_unwind_info.
1615 (switch_to_exception_section): Use targetm_common.have_named_sections.
1616 * explow.c: Include common/common-target.h.
1617 * expr.c: Include common/common-target.h.
1618 (build_personality_function): Use targetm_common.except_unwind_info.
1619 * function.c: Include common/common-target.h.
1620 (expand_function_end): Use targetm_common.except_unwind_info.
1621 * haifa-sched.c: Include common/common-target.h.
1622 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1623 * lto-opts.c: Include common/common-target.h instead of target.h.
1624 (lto_reissue_options): Use targetm_common.handle_option.
1625 * opts.c: Include common/common-target.h.
1626 (target_handle_option): Use targetm_common.handle_option.
1627 (init_options_struct): Update comment referring to
1628 targetm.target_option.optimization. Use
1629 targetm_common.default_target_flags,
1630 targetm_common.unwind_tables_default and
1631 targetm_common.option_init_struct.
1632 (default_options_optimization): Use
1633 targetm_common.option_optimization_table.
1634 (finish_options): Use targetm_common.except_unwind_info,
1635 targetm_common.unwind_tables_default,
1636 targetm_common.have_named_sections and
1637 targetm_common.supports_split_stack.
1638 * toplev.c: Include common/common-target.h.
1639 (process_options): Use targetm_common.have_named_sections.
1640 * tree-tailcall.c: Include common/common-target.h.
1641 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1642 * tree.c: Include common/common-target.h.
1643 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1644 * varasm.c: Include common/common-target.h.
1645 (resolve_unique_section, hot_function_section,
1646 default_function_section): Use targetm_common.have_named_sections.
1648 2011-06-14 Easwaran Raman <eraman@google.com>
1650 PR rtl-optimization/44194
1651 * dse.c: Include tree-flow.h
1652 (insn_info): Add new field non_frame_wild_read.
1653 (group_info): Add new fields escaped_n and escaped_p.
1654 (kill_on_calls): New variable.
1655 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1656 (dse_step0): Initialize kill_on_calls.
1657 (can_escape): New function.
1658 (set_usage_bits): Add additional parameter; record information
1659 about escaped locations.
1660 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1661 (dse_step2_nospill): Set kill_on_calls based on
1662 group->escaped_n and group->escaped_n.
1663 (add_wild_read): Refactor into...
1664 (reset_active_stores): ... New function, and
1665 (free_read_records): ... New function.
1666 (add_non_frame_wild_read): New function.
1667 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1668 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1669 (dse_step5_nospill): Call scan_reads_nospill for instructions
1670 marked as non_frame_wild_read.
1671 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1673 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1675 * common/common-target-def.h, common/common-target.def,
1676 common/common-target.h, common/config/default-common.c,
1677 common/config/pa/pa-common.c: New files.
1678 * Makefile.in (common_out_file, common_out_object_file,
1679 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1680 (OBJS-libcommon-target): Include $(common_out_object_file).
1681 (prefix.o): Update dependencies.
1682 ($(common_out_object_file), common/common-target-hooks-def.h,
1683 s-common-target-hooks-def-h): New.
1684 (s-tm-texi): Also check timestamp on common-target.def.
1685 (build/genhooks.o): Update dependencies.
1686 * config.gcc (common_out_file, target_has_targetm_common): Define.
1687 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1688 TARGET_ALWAYS_STRIP_DOTDOT.
1689 * configure.ac (common_out_object_file): Define.
1690 (common_out_file, common_out_object_file): Substitute.
1691 (common): Create directory.
1692 * configure: Regenerate.
1693 * doc/tm.texi.in (targetm_common): Document.
1694 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1695 * doc/tm.texi: Regenerate.
1696 * genhooks.c (hook_array): Also include common/common-target.def.
1697 * prefix.c (tm.h): Don't include.
1698 (common/common-target.h): Include.
1699 (ALWAYS_STRIP_DOTDOT): Don't define.
1700 (update_path): Use targetm_common.always_strip_dotdot instead of
1701 ALWAYS_STRIP_DOTDOT.
1702 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1704 2011-06-14 David Li <davidxl@google.com>
1706 * passes.c (execute_function_todo): Remove TODO_dump_func.
1707 (execute_one_pass): Remove TODO_dump_func.
1708 (execute_function_dump): New function.
1709 * tree-vrp.c: Remove TODO_dump_func.
1710 * regrename.c: Remove TODO_dump_func.
1711 * fwprop.c: Remove TODO_dump_func.
1712 * tree-into-ssa.c: Remove TODO_dump_func.
1713 * tree-complex.c: Remove TODO_dump_func.
1714 * tracer.c: Remove TODO_dump_func.
1715 * tree-loop-distribution.c: Remove TODO_dump_func.
1716 * postreload-gcse.c: Remove TODO_dump_func.
1717 * postreload.c: Remove TODO_dump_func.
1718 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1719 * tree-tailcall.c: Remove TODO_dump_func.
1720 * ipa-cp.c: Remove TODO_dump_func.
1721 * final.c: Remove TODO_dump_func.
1722 * tree-emutls.c: Remove TODO_dump_func.
1723 * omp-low.c: Remove TODO_dump_func.
1724 * tree-ssa-dse.c: Remove TODO_dump_func.
1725 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1726 * auto-inc-dec.c: Remove TODO_dump_func.
1727 * reorg.c: Remove TODO_dump_func.
1728 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1729 * tree-ssa-ccp.c: Remove TODO_dump_func.
1730 * compare-elim.c: Remove TODO_dump_func.
1731 * mode-switching.c: Remove TODO_dump_func.
1732 * modulo-sched.c: Remove TODO_dump_func.
1733 * tree-call-cdce.c: Remove TODO_dump_func.
1734 * cse.c: Remove TODO_dump_func.
1735 * web.c: Remove TODO_dump_func.
1736 * tree-stdarg.c: Remove TODO_dump_func.
1737 * lto-streamer-out.c: Remove TODO_dump_func.
1738 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1739 * tree-ssa-dom.c: Remove TODO_dump_func.
1740 * tree-nrv.c: Remove TODO_dump_func.
1741 * loop-init.c: Remove TODO_dump_func.
1742 * gimple-low.c: Remove TODO_dump_func.
1743 * ipa-inline.c: Remove TODO_dump_func.
1744 * tree-ssa-sink.c: Remove TODO_dump_func.
1745 * jump.c: Remove TODO_dump_func.
1746 * ifcvt.c: Remove TODO_dump_func.
1747 * tree-ssa-loop.c: Remove TODO_dump_func.
1748 * recog.c: Remove TODO_dump_func.
1749 * dse.c: Remove TODO_dump_func.
1750 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1751 * matrix-reorg.c: Remove TODO_dump_func.
1752 * tree-eh.c: Remove TODO_dump_func.
1753 * regmove.c: Remove TODO_dump_func.
1754 * function.c: Remove TODO_dump_func.
1755 * tree-vectorizer.c: Remove TODO_dump_func.
1756 * ipa-split.c: Remove TODO_dump_func.
1757 * gcse.c: Remove TODO_dump_func.
1758 * tree-if-conv.c: Remove TODO_dump_func.
1759 * init-regs.c: Remove TODO_dump_func.
1760 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1761 * implicit-zee.c: Remove TODO_dump_func.
1762 * lower-subreg.c: Remove TODO_dump_func.
1763 * bt-load.c: Remove TODO_dump_func.
1764 * tree-dfa.c: Remove TODO_dump_func.
1765 * except.c: Remove TODO_dump_func.
1766 * emit-rtl.c: Remove TODO_dump_func.
1767 * store-motion.c: Remove TODO_dump_func.
1768 * cfgexpand.c: Remove TODO_dump_func.
1769 * tree-cfgcleanup.c: Remove TODO_dump_func.
1770 * cfgcleanup.c: Remove TODO_dump_func.
1771 * tree-ssa-pre.c: Remove TODO_dump_func.
1772 * tree-sra.c: Remove TODO_dump_func.
1773 * tree-mudflap.c: Remove TODO_dump_func.
1774 * tree-ssa-copy.c: Remove TODO_dump_func.
1775 * cfglayout.c: Remove TODO_dump_func.
1776 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1777 * tree-ssa-dce.c: Remove TODO_dump_func.
1778 * ira.c: Remove TODO_dump_func.
1779 * tree-ssa.c: Remove TODO_dump_func.
1780 * integrate.c: Remove TODO_dump_func.
1781 * tree-optimize.c: Remove TODO_dump_func.
1782 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1783 * tree-object-size.c: Remove TODO_dump_func.
1784 * combine.c: Remove TODO_dump_func.
1785 * bb-reorder.c: Remove TODO_dump_func.
1786 * cprop.c: Remove TODO_dump_func.
1787 * var-tracking.c: Remove TODO_dump_func.
1788 * tree-profile.c: Remove TODO_dump_func.
1789 * tree-vect-generic.c: Remove TODO_dump_func.
1790 * reg-stack.c: Remove TODO_dump_func.
1791 * sched-rgn.c: Remove TODO_dump_func.
1792 * tree-ssa-structalias.c: Remove TODO_dump_func.
1793 * tree-switch-conversion.c: Remove TODO_dump_func.
1794 * tree-cfg.c: Remove TODO_dump_func.
1795 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1796 * combine-stack-adj.c: Remove TODO_dump_func.
1797 * dce.c: Remove TODO_dump_func.
1798 * tree-ssanames.c: Remove TODO_dump_func.
1799 * regcprop.c: Remove TODO_dump_func.
1801 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1804 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1805 and properly handle result not in Pmode.
1807 2011-06-14 Robert Millan <rmh@gnu.org>
1809 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1810 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1813 * config/i386/kfreebsd-gnu64.h: New file.
1814 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1815 with `i386/kfreebsd-gnu64.h'.
1817 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1818 (GNU_USER_LINK_EMULATION64): New macros.
1819 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1820 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1821 of hardcoding `elf_i386' and `elf_x86_64'.
1823 2011-06-14 Nick Clifton <nickc@redhat.com>
1826 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1829 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1831 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1834 * tree.h (DECL_NONSHAREABLE): Define.
1835 (struct tree_decl_common): Change decl_common_unused to
1836 decl_nonshareable_flag.
1837 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1838 Ignore vars with DECL_NONSHAREABLE bit set.
1839 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1840 on stores to automatic aggregate vars.
1842 PR rtl-optimization/49390
1844 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1846 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1849 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1850 Tom de Vries <tom@codesourcery.com>
1853 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1854 Document changed semantics.
1855 (max_stmt_executions, max_stmt_executions_int): Declare.
1856 * tree-data-ref.c (estimated_loop_iterations)
1857 (estimated_loop_iterations_int): Move functions...
1858 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1859 (estimated_loop_iterations_int): here.
1860 (record_estimate): Change nb_iterations_upper_bound and
1861 nb_iterations_estimate semantics.
1862 (max_stmt_executions, max_stmt_executions_int): New function.
1863 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1864 (max_stmt_executions_tree): this.
1865 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1866 estimated_loop_iterations_tree.
1867 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1868 max_stmt_executions_int instead of estimated_loop_iterations_int.
1869 * predict.c (predict_loops): Idem.
1870 * tree-parloops.c (parallelize_loops): Idem.
1871 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1872 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1873 (init_omega_for_ddr_1): Idem.
1874 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1875 (loop_prefetch_arrays): Idem
1876 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1877 max_stmt_executions instead of estimated_loop_iterations.
1878 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1879 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1880 instead of nb_iterations_upper_bound.
1882 2011-06-13 Jan Hubicka <jh@suse.cz>
1884 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1886 2011-06-14 Richard Henderson <rth@redhat.com>
1889 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1890 (based_loc_descr): Assert it's true.
1891 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1892 aborting immediately.
1894 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1895 Mingfeng Wu <mingfeng@faraday-tech.com>
1897 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1899 2011-06-13 Jan Hubicka <jh@suse.cz>
1901 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1903 2011-06-13 Jan Hubicka <jh@suse.cz>
1905 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1906 similarly to DECL_COMDAT.
1907 * cgraphunit.c (cgraph_analyze_function): Likewise.
1908 * ipa.c (function_and_variable_visibility): Likewise.
1910 2011-06-13 Jan Hubicka <jh@suse.cz>
1912 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1913 BINFO_VIRTUALS when streaming for ltrans unit.
1915 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1917 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1918 (movdi_internal64): Same.
1920 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1923 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1924 a set of similar patterns, where the MATCH_OPERAND for the function
1925 argument is replaced with individual references to hardware registers.
1926 (save_fpregs_<mode>): Ditto
1927 (restore_gpregs_<mode>): Ditto
1928 (return_and_restore_gpregs_<mode>): Ditto
1929 (return_and_restore_fpregs_<mode>): Ditto
1930 (return_and_restore_fpregs_aix_<mode>): Ditto
1932 2011-06-13 Jan Hubicka <jh@suse.cz>
1934 * ipa-utils.c (postorder_stack): New structure.
1935 (ipa_reverse_postorder): Handle aliases.
1937 2011-06-13 Jan Hubicka <jh@suse.cz>
1939 * ipa-inline.c (reset_edge_caches): Walk aliases.
1940 (update_caller_keys): Do not test inlinability of aliases.
1941 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1942 (do_estimate_growth): Fix typo.
1944 2011-06-13 Jan Hubicka <jh@suse.cz>
1946 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1947 (can_remove_node_now_p): ... here; handle same comdat groups.
1948 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1949 (inline_call): Update use of can_remove_node_now_p.
1951 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1953 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1954 condition to disallow non-identical memory locations.
1955 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1956 preference to bit manipulation instructions.
1958 2011-06-13 Jan Hubicka <jh@suse.cz>
1960 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1961 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1962 (nonremovable_p): New function.
1963 (cgraph_can_remove_if_no_direct_calls_p): New function.
1964 (used_from_object_file_p): New functoin.
1965 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1966 references from aliases.
1967 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1968 * ipa-inline.c (check_caller_edge): New function.
1969 (want_inline_function_called_once_p): Use it; accept aliases called
1971 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1973 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1976 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1977 correctly for the case with Quad vectors.
1979 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1980 Ira Rosen <ira.rosen@linaro.org>
1982 PR tree-optimization/49352
1983 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1984 all, make sure loop_use_stmt after the loop is a def stmt of a used
1985 SSA_NAME that is the only one defined inside of the loop. Don't
1986 check for COND_EXPR and GIMPLE_BINARY_RHS.
1987 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1988 check_reduction is true.
1990 2011-06-11 Jan Hubicka <jh@suse.cz>
1993 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1995 2011-06-11 Jan Hubicka <jh@suse.cz>
1998 * ipa-inline-transform.c: Include tree-pass.h
1999 (inline_transform): Set TODO_update_ssa_only_virtuals.
2000 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2002 2011-06-11 Jan Hubicka <jh@suse.cz>
2005 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2008 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2010 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2011 Take number of iterations to peel into account for equally frequent
2012 misalignment values.
2014 2011-06-11 Jan Hubicka <jh@suse.cz>
2016 * lto-streamer-out.c (produce_symtab): Stream out the newly
2017 represented aliases.
2019 2011-06-11 Jan Hubicka <jh@suse.cz>
2021 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2023 (ipa_update_after_lto_read): Likewise.
2024 (ipa_write_node_info): Do not sream call_with_var_arguments.
2025 (ipa_read_node_info): Likewise.
2027 2011-06-11 Jan Hubicka <jh@suse.cz>
2029 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2031 2011-06-11 Jan Hubicka <jh@suse.cz>
2033 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2034 (lto_symtab_resolve_can_prevail_p): Likewise.
2035 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2036 * cgraph.c (same_body_aliases_done): New global var.
2037 (cgraph_same_body_alias_1): Rename to ...
2038 (cgraph_create_function_alias): ... this one; reorg to new
2040 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2041 record references when asked to.
2042 (cgraph_add_thunk): Fix formating.
2043 (cgraph_get_node): Kill same body alias code.
2044 (cgraph_node_for_asm): Likewise.
2045 (cgraph_remove_same_body_alias): Remove.
2046 (cgraph_remove_node): Kill same body alias code.
2047 (cgraph_mark_address_taken_node): Mark also the aliased function
2048 as having address taken.
2049 (dump_cgraph_node): Dump same body aliases.
2050 (cgraph_for_node_thunks_and_aliases): Update for new alias
2052 (cgraph_for_node_and_aliases): Likewise.
2053 * cgraph.h (same_body): Kll pointer.
2054 (same_body_alias): Update comment.
2055 (same_body_aliases_done): Declare.
2056 (cgraph_remove_same_body_alias): Remove declaration.
2057 (cgraph_create_function_alias): Declare.
2058 (cgraph_process_same_body_aliases): Declare.
2059 (cgraph_function_with_gimple_body_p): Check for alias.
2060 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2061 (cgraph_alias_aliased_node): New function.
2062 (cgraph_function_node): Update for new aliases.
2063 (cgraph_function_or_thunk_node): Likewise.
2064 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2065 (inline_call): Remove dead aliases.
2066 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2067 name hack for same body aliases.
2068 (clone_of_p): Look through aliases.
2069 (verify_cgraph_node): Verify aliases.
2070 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2071 (cgraph_process_same_body_aliases): New function.
2072 (process_function_and_variable_attributes): Disable weakref warning on
2074 (cgraph_analyze_functions): Handle aliases.
2075 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2076 (assemble_thunks): Rename to ...
2077 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2078 (cgraph_expand_function): Remove alias output code.
2079 (cgraph_output_in_order): Skip aliases.
2080 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2081 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2082 (ipa_record_reference): Do not assert on alias references.
2083 (ipa_ref_has_aliases_p): New function.
2084 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2085 (ipa_ref_has_aliases_p): Declare.
2086 * lto-cgraph.c (lto_output_node): Handle aliases.
2087 (input_node): Likewise.
2088 * lto-streamer-out.c (lto_output): Skip aliases.
2089 (produce_symtab): Kill same_body_alias code.
2090 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2091 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2092 * ipa-inline.c (update_caller_keys): Walk aliases.
2093 (inline_small_functions): Fix thinko in previous patch.
2094 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2095 (function_and_variable_visibility): Do not walk same body aliases.
2096 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2097 (ipa_pta_execute): Use it.
2099 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2101 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2102 (*vec_dupv2df): Rename from vec_dupv2df.
2103 (vec_dupv2df): New expander.
2105 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2107 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2109 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2111 * config/i386/i386.md: Use default value in "isa" attribute.
2112 * config/i386/sse.md: Ditto.
2113 * config/i386/mmx.md: Ditto.
2115 2011-06-10 Wei Guozhi <carrot@google.com>
2118 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2119 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2120 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2122 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2124 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2125 (arm_legitimate_ldrd_p): New prototype.
2126 (arm_output_ldrd): New prototype.
2127 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2128 (arm_legitimate_ldrd_p): New function.
2129 (arm_output_ldrd): New function.
2131 2011-06-10 David Li <davidxl@google.com>
2133 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2134 * passes.c (passr_eq): New function.
2135 (create_pass_tab): New function.
2136 (pass_traverse): New function.
2137 (dump_one_pass): New function.
2138 (dump_pass_list): New function.
2139 (dump_passes): New function.
2141 2011-06-10 Jan Hubicka <jh@suse.cz>
2143 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2144 setting the nothrow flag.
2145 * ipa-reference.c (propagate): Skip aliases.
2146 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2147 (propagate_nothrow): Skip aliases; do not update cgraph.
2148 (local_pure_const): Do not update cgraph.
2149 * tree-profile.c (tree_profiling): Do fixup_cfg.
2151 2011-06-10 Jan Hubicka <jh@suse.cz>
2153 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2154 (cgraph_local_node_p): ... here; handle aliases.
2155 (has_addr_references_p): Break out from ...;
2156 (cgraph_remove_unreachable_nodes) ... here.
2158 2011-06-10 Jan Hubicka <jh@suse.cz>
2160 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2161 * common.opt (flag_inline_functions_called_once): Do not
2164 2011-06-10 Jan Hubicka <jh@suse.cz>
2166 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2167 (ipcp_initialize_node_lattices): Do not deal with aliases;
2168 Do not try to propagate through thunks.
2169 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2171 2011-06-10 Jan Hubicka <jh@suse.cz>
2173 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2175 (ipa_read_node_info): Likewise.
2177 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2180 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2181 (build_and_insert_call): Likewise.
2182 (build_and_insert_ref): New.
2183 (gimple_expand_builtin_pow): Minor cleanup.
2184 (gimple_expand_builtin_cabs): New.
2185 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2187 2011-06-10 Jan Hubicka <jh@suse.cz>
2189 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2190 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2191 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2192 (ipcp_propagate_stage): Skip aliases when propagating.
2193 (ipcp_need_redirect_p): Skip aliases.
2194 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2195 collect_callers_of_node.
2196 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2198 (ipa_compute_jump_functions): Look through aliases.
2200 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2202 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2204 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2206 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2208 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2210 2011-06-10 Jan Hubicka <jh@suse.cz>
2212 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2213 Update call of gimple_get_virt_method_for_binfo.
2214 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2215 refuse_thunks parameter.
2216 (gimple_fold_call): Update.
2217 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2219 2011-06-10 Jan Hubicka <jh@suse.cz>
2221 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2222 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2223 worker for cgraph_for_node_and_aliases.
2224 (convert_callers_for_node): Break out from ...
2225 (convert_callers): ... here.
2226 (modify_function): Use collect_callers_of_node.
2227 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2229 2011-06-10 Richard Guenther <rguenther@suse.de>
2231 PR tree-optimization/49361
2232 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2233 when not already in gimple form.
2235 2011-06-10 Richard Guenther <rguenther@suse.de>
2238 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2239 FOR_EACH_PHI_OR_STMT_USE.
2241 2011-06-10 Jan Hubicka <jh@suse.cz>
2243 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2244 (clone_inlined_nodes): ... here.
2245 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2246 to real destination prior inlining.
2247 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2248 can_early_inline_edge_p, want_early_inline_function_p,
2249 want_early_inline_function_p, want_inline_small_function_p,
2250 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2251 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2252 add_new_edges_to_heap, inline_small_functions, flatten_function,
2253 inline_always_inline_functions, early_inline_small_functions): Use
2254 cgraph_function_or_thunk_node.
2255 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2256 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2257 (do_estimate_edge_growth_1): Break out from ...
2258 (do_estimate_growth) ... here; walk aliases.
2259 (inline_generate_summary): Skip aliases.
2261 2011-06-10 Richard Guenther <rguenther@suse.de>
2263 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2264 forward when combining, visit inserted stmts when a stmt was changed.
2266 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2268 * tree.h (error_operand_p): Add.
2269 * dbxout.c (dbxout_type_fields): Use the latter.
2270 * c-decl.c (add_stmt): Likewise.
2271 * gimplify.c (omp_add_variable, omp_notice_variable,
2272 gimplify_scan_omp_clauses): Likewise.
2274 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2276 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2277 when a value is actually passed in regs.
2279 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2280 Laurent Rougé <laurent.rouge@menta.fr>
2282 * doc/invoke.texi (SPARC options): Add -mflat.
2283 * config/sparc/sparc.opt: Likewise.
2284 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2285 (sparc_flat_expand_prologue): Declare.
2286 (sparc_flat_expand_epilogue): Likewise.
2287 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2288 (CPP_ENDIAN_SPEC): Replace with...
2289 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2290 (CPP_SPEC): Adjust to above change.
2291 (EXTRA_SPECS): Likewise.
2292 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2293 (INCOMING_REGNO): Likewise.
2294 (OUTGOING_REGNO): Likewise.
2295 (LOCAL_REGNO): Likewise.
2296 (SETUP_FRAME_ADDRESSES): Likewise.
2297 (FIXED_REGISTERS): Set 0 for %fp.
2298 (CALL_USED_REGISTERS): Likewise.
2299 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2300 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2301 (RETURN_ADDR_REGNUM): Define.
2302 (RETURN_ADDR_RTX): Use it.
2303 (INCOMING_RETURN_ADDR_REGNUM): Define.
2304 (INCOMING_RETURN_ADDR_RTX): Use it.
2305 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2306 (EH_RETURN_REGNUM): Define.
2307 (EH_RETURN_STACKADJ_RTX): Use it.
2308 (EH_RETURN_HANDLER_RTX): Delete.
2309 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2310 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2312 (struct machine_function): Add frame_size, apparent_frame_size,
2313 frame_base_reg, frame_base_offset, n_global_fp_regs and
2314 save_local_in_regs_p fields.
2315 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2316 sparc_frame_base_offset, sparc_n_global_fp_regs,
2317 sparc_save_local_in_regs_p): New macros.
2318 (sparc_option_override): Error out if -fcall-saved-REG is specified
2320 (eligible_for_restore_insn): Fix formatting.
2321 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2322 (eligible_for_sibcall_delay): Likewise.
2323 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2324 (sparc_legitimate_address_p): Adjust to above change.
2325 (save_global_or_fp_reg_p): New predicate.
2326 (return_addr_reg_needed_p): Likewise.
2327 (save_local_or_in_reg_p): Likewise.
2328 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2329 (SORR_SAVE, SORR_RESTORE): Delete.
2330 (sorr_pred_t): New typedef.
2331 (sorr_act_t): New enum.
2332 (save_or_restore_regs): Rename to...
2333 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2334 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2335 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2336 mechanism. Add CFI information for double-word saves in 32-bit mode.
2337 (emit_adjust_base_to_offset): New function extracted from...
2338 (emit_save_or_restore_regs): ...this. Rename the rest to...
2339 (emit_save_or_restore_regs_global_fp_regs): ...this.
2340 (emit_save_or_restore_regs_local_in_regs): New function.
2341 (gen_create_flat_frame_[123]): New functions.
2342 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2343 (sparc_flat_expand_prologue): New function.
2344 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2345 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2346 (sparc_flat_expand_epilogue): New function.
2347 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2348 (output_return): Likewise.
2349 (output_sibcall): Likewise.
2350 (sparc_output_mi_thunk): Likewise.
2351 (sparc_frame_pointer_required): Likewise.
2352 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2353 function optimization.
2354 * config/sparc/sparc.md (flat): New attribute.
2355 (prologue): Add TARGET_FLAT handling.
2356 (save_register_window): Disable if TARGET_FLAT.
2357 (create_flat_frame_[123]): New patterns.
2358 (epilogue): Add TARGET_FLAT handling.
2359 (sibcall_epilogue): Likewise.
2360 (eh_return): New expander.
2361 (eh_return_internal): New insn and splitter.
2362 (return_internal): Add TARGET_FLAT handling.
2363 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2364 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2365 (nonlocal_goto): Add TARGET_FLAT handling.
2366 * config/sparc/t-elf: Add -mflat multilib.
2367 * config/sparc/t-leon: Likewise.
2369 2011-06-10 Jan Hubicka <jh@suse.cz>
2371 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2372 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2373 (self_recursive_p): Use cgraph_function_node.
2374 (propagate_pure_const): Likewise.
2375 (propagate_nothrow): Likewise.
2376 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2377 cgraph_function_node.
2378 (propagate_bits): Likewise.
2379 (propagate): Likewise.
2381 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2382 Richard Earnshaw <rearnsha@arm.com>
2384 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2385 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2386 (*thumb2_movdi_vfp): Delete.
2387 (*arm_movdi_vfp_cortexa8): Delete.
2388 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2389 (*movdi_vfp_cortexa8): Likewise.
2391 2011-06-10 Richard Guenther <rguenther@suse.de>
2393 * stor-layout.c (initialize_sizetypes): Give names to all
2396 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2398 PR tree-optimization/49318
2399 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2400 irrelevant pattern statements.
2402 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2404 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2407 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2410 2011-06-09 Jan Hubicka <jh@suse.cz>
2412 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2413 do not recompute reachable flag.
2414 (cgraph_finalize_function, cgraph_analyze_functions): Set
2415 redefined_extern_inline here.
2417 2011-06-09 Jan Hubicka <jh@suse.cz>
2419 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2420 (cgraph_only_called_directly_p): ... this one; bring offline.
2421 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2422 varpool_used_from_object_file_p): Drop names from the declaratoin.
2423 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2424 collect_callers_of_node): New.
2425 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2426 (cgraph_edge_recursive_p): Use cgraph_function_node.
2427 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2428 (cgraph_node_cannot_be_local_p_1): Break out from ...
2429 (cgraph_node_can_be_local_p): ... here; walk aliases.
2430 (cgraph_for_node_thunks_and_aliases): New function.
2431 (cgraph_for_node_and_aliases): New function.
2432 (cgraph_make_node_local_1): Break out from ...
2433 (cgraph_make_node_local) ... here; use
2434 cgraph_for_node_thunks_and_aliases.
2435 (cgraph_set_nothrow_flag_1): Break out from ...
2436 (cgraph_set_nothrow_flag) ... here;
2437 use cgraph_for_node_thunks_and_aliases.
2438 (cgraph_set_const_flag_1): Break out from ...
2439 (cgraph_set_const_flag) ... here;
2440 use cgraph_for_node_thunks_and_aliases.
2441 (cgraph_set_pure_flag_1): Break out from ...
2442 (cgraph_set_pure_flag) ... here;
2443 use cgraph_for_node_thunks_and_aliases.
2444 (cgraph_propagate_frequency_1): Break out from ...
2445 (cgraph_propagate_frequency) ... here; use
2446 cgraph_for_node_thunks_and_aliases.
2447 (cgraph_used_from_object_file_p): Do not care about aliases.
2448 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2450 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2452 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2454 PR rtl-optimization/49154
2455 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2456 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2457 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2458 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2459 * config/cris/cris.h (cris_register_move_cost): Remove
2460 !TARGET_V32 code. Tweak comments.
2462 2011-06-09 Jan Hubicka <jh@suse.cz>
2464 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2467 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2469 PR rtl-optimization/49154
2470 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2471 is a matching slot in the hashtable, assign it to classes_ptr.
2473 PR rtl-optimization/49154
2474 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2476 * doc/tm.texi: Regenerate.
2478 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2481 * config/sh/sh.md (UNSPEC_CHKADD): New.
2482 (chk_guard_add): New define_insn_and_split.
2483 (symGOT_load): Use chk_guard_add instead of blockage.
2485 2011-06-09 Kai Tietz <ktietz@redhat.com>
2487 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2489 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2491 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2493 2011-06-09 Wei Guozhi <carrot@google.com>
2496 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2497 (peephole2 for conditional move): Generate 16 bit instructions.
2499 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2501 * config/i386/i386.md (*movdi_internal_rex64): Merge
2502 alternatives 6 and 8.
2504 2011-06-09 David Li <davidxl@google.com>
2506 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2507 * passes.c (passr_eq): New function.
2508 (create_pass_tab): New function.
2509 (pass_traverse): New function.
2510 (dump_one_pass): New function.
2511 (dump_pass_list): New function.
2512 (dump_passes): New function.
2514 2011-06-09 David Li <davidxl@google.com>
2516 * tree-complex.c (tree_lower_complex): Gate cleanup.
2517 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2518 (execute_optimize_stdarg): Ditto.
2519 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2520 (execute_cleanup_eh_1): Ditto.
2521 (execute_cleanup_eh): Ditto.
2522 * gcse.c (gate_rtl_pre): Ditto.
2523 (execute_rtl_pre): Ditto.
2524 * except.c (finish_eh_generation): Ditto.
2525 (convert_to_eh_region_ranges): Ditto.
2526 * cprop.c (one_cprop_pass): Ditto.
2528 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2531 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2532 in all basic blocks.
2534 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2536 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2537 (HAVE_ENABLE_EXECUTE_STACK): Define.
2538 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2539 (HAVE_ENABLE_EXECUTE_STACK): Define.
2540 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2541 (HAVE_ENABLE_EXECUTE_STACK): Define.
2542 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2543 (ENABLE_EXECUTE_STACK): Remove.
2544 (HAVE_ENABLE_EXECUTE_STACK): Define.
2545 [IN_LIBGCC2]: Don't include <windows.h>.
2546 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2547 (HAVE_ENABLE_EXECUTE_STACK): Define.
2548 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2549 (HAVE_ENABLE_EXECUTE_STACK): Define.
2550 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2551 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2552 (HAVE_ENABLE_EXECUTE_STACK): Define.
2553 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2554 (HAVE_ENABLE_EXECUTE_STACK): Define.
2555 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2556 (HAVE_ENABLE_EXECUTE_STACK): Define.
2557 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2558 (HAVE_ENABLE_EXECUTE_STACK): Define.
2559 * config/alpha/alpha.c (alpha_trampoline_init): Test
2560 HAVE_ENABLE_EXECUTE_STACK.
2561 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2562 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2563 (sparc64_initialize_trampoline): Likewise.
2564 * libgcc2.c [L_enable_execute_stack]: Remove.
2565 * system.h (ENABLE_EXECUTE_STACK): Poison.
2566 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2567 * doc/tm.texi: Regenerate.
2568 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2570 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2573 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2574 variable. After resetting and rescanning insn continue with previous
2577 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2579 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2580 (gcc_cv_ld_hidden): Likewise.
2581 * configure: Regenerate.
2582 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2583 (ix86_stack_protect_fail): Mark unused.
2584 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2585 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2586 [TARGET_MACHO]: Don't define.
2587 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2588 (TARGET_STACK_PROTECT_FAIL): Likewise.
2589 (rs6000_stack_protect_fail): Mark unused.
2590 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2591 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2593 2011-06-08 Andi Kleen <ak@linux.intel.com>
2595 * varasm.c (get_section): Print location of other conflict
2596 for section conflicts.
2598 2011-06-08 Andi Kleen <ak@linux.intel.com>
2600 * config/i386/driver-i386.c (host_detect_local_cpu):
2601 Add model 0x2d Intel CPU.
2603 2011-06-08 Andi Kleen <ak@linux.intel.com>
2605 * reginfo.c (global_regs_decl): Add.
2606 (globalize_reg): Add decl parameter. Compute location. Pass location
2607 to warnings and add inform. Store decl in global_regs_decl.
2608 * rtl.h (globalize_reg): Update prototype.
2609 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2611 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2613 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2615 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2618 * config/sh/predicates.md (general_movsrc_operand): Check
2619 mode for memory with indexed address for QI and HImode.
2620 (general_movdst_operand): Likewise.
2622 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2624 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2626 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2628 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2629 (num_ssa_operands): Likewise.
2630 (op_iter_init_phiuse): Forward-declare.
2631 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2633 2011-06-08 Nick Clifton <nickc@redhat.com>
2635 * doc/invoke.texi (ARM Options): Update description of
2638 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2640 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2641 unknown Intel family 0x6 CPUs.
2643 2011-06-08 Martin Jambor <mjambor@suse.cz>
2645 * tree-sra.c (mark_rw_status): Removed.
2646 (analyze_access_subtree): New parameter parent instead of
2647 mark_read and mark_write, propagate from that.
2649 2011-06-08 Julian Brown <julian@codesourcery.com>
2651 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2652 for double-precision helper functions in hard-float mode if only
2653 single-precision arithmetic is supported in hardware.
2655 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2657 PR rtl-optimization/49303
2658 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2659 code_motion_path_driver returned 0 or 1.
2660 (sel_region_finish): Clear h_d_i_d.
2662 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2664 * config/sh/sh.c (prepare_move_operands): Set pic register
2665 appropriately for global and local dynamic tls models even
2666 if flag_pic is unset.
2668 2011-06-07 Jason Merrill <jason@redhat.com>
2670 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2672 2011-06-07 Xinliang David Li <davidxl@google.com>
2673 * passes.c (enable_disable_pass): Handle assembler name.
2674 (is_pass_explicitly_enabled_or_disabled): Ditto.
2676 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2678 PR tree-optimization/48497
2679 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2681 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2683 PR tree-optimization/46728
2684 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2685 to use gimple_val_nonnegative_real_p.
2686 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2687 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2689 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2691 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2693 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2695 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2698 2011-06-07 Richard Guenther <rguenther@suse.de>
2700 * stor-layout.c (initialize_sizetypes): Initialize all
2701 sizetypes based on target definitions.
2702 (set_sizetype): Remove.
2703 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2704 * tree.h (set_sizetype): Remove.
2706 2011-06-07 Nick Clifton <nickc@redhat.com>
2708 * config.gcc: Unify V850 architecture options and add support for
2709 newer V850 architectures.
2710 * config/v850/t-v850e: Delete.
2712 2011-06-07 Richard Guenther <rguenther@suse.de>
2714 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2715 Call set_sizetype from here.
2717 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2719 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2720 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2722 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2723 Andrew Stubbs <ams@codesourcery.com>
2725 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2727 * doc/md.texi (Canonicalization of Instructions): Document widening
2728 multiply canonicalization.
2730 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2732 PR gcov-profile/49299
2733 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2735 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2737 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2739 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2740 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2741 vect_recog_pow_pattern): Likewise.
2742 (vect_pattern_recog_1): Remove declaration.
2743 (widened_name_p): Remove declaration. Add new argument to specify
2744 whether to check that both types are either signed or unsigned.
2745 (vect_recog_widen_mult_pattern): Update documentation. Handle
2746 unsigned patterns and multiplication by constants.
2747 (vect_pattern_recog_1): Update vect_recog_func references. Use
2748 statement information from the statement returned from pattern
2749 detection functions.
2750 (vect_pattern_recog): Update vect_recog_func reference.
2751 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2752 multiplication by a constant use the type of the other operand.
2754 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2756 PR rtl-optimization/49145
2757 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2759 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2762 * dwarf2out.c (native_encode_initializer): Decrement count in each
2766 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2770 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2771 if stmt folded into nothing.
2772 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2773 a bb folded into nothing, just update cgraph edges and move to next bb.
2774 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2775 to be NULL. Don't compute count and frequency if new_call is NULL.
2777 2011-06-04 Diego Novillo <dnovillo@google.com>
2779 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2780 (cgraph.o): Likewise.
2781 (cgraphunit.o): Likewise.
2782 * cgraphunit.c: Include lto-streamer.h
2783 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2785 * lto-streamer-in.c (unpack_value_fields): Call
2786 streamer_hooks.unpack_value_fields if set.
2787 (lto_materialize_tree): For unhandled nodes, first try to
2788 call lto_streamer_hooks.alloc_tree, if it exists.
2789 (lto_input_ts_decl_common_tree_pointers): Move reading of
2790 DECL_INITIAL to lto_streamer_read_tree.
2791 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2792 (lto_streamer_read_tree): New.
2793 (lto_reader_init): Rename from lto_init_reader.
2794 Move initialization code to lto/lto.c.
2795 * lto-streamer-out.c (pack_value_fields): Call
2796 streamer_hooks.pack_value_fields if set.
2797 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2798 call streamer_hooks.indexable_with_decls_p before giving up.
2799 (lto_output_ts_decl_common_tree_pointers): Move handling
2800 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2801 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2802 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2803 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2804 (lto_streamer_write_tree): New.
2805 (lto_output): Call lto_streamer_init directly.
2806 (lto_writer_init): Remove.
2807 * lto-streamer.c (streamer_hooks): New.
2808 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2809 instead of lto_preload_common_nodes.
2810 (lto_is_streamable): Move from lto-streamer.h
2811 (lto_streamer_hooks_init): New.
2812 (streamer_hooks): New.
2813 (streamer_hooks_init): New.
2814 * lto-streamer.h (struct output_block): Forward declare.
2815 (struct lto_input_block): Likewise.
2816 (struct data_in): Likewise.
2817 (struct bitpack_d): Likewise.
2818 (struct streamer_hooks): Declare.
2819 (streamer_hooks): Declare.
2820 (lto_streamer_hooks_init): Declare.
2821 (lto_streamer_write_tree): Declare.
2822 (lto_streamer_read_tree): Declare.
2823 (streamer_hooks_init): Declare.
2824 (lto_is_streamable): Move to lto-streamer.c
2826 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2828 * longlong.h (smul_ppmm): The resulting register pair contains the
2829 higher order word first.
2831 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2833 PR tree-optimization/46728
2834 * builtins.c (powi_table): Remove.
2835 (powi_lookup_cost): Remove.
2836 (powi_cost): Remove.
2837 (expand_powi_1): Remove.
2838 (expand_powi): Remove.
2839 (expand_builtin_pow_root): Remove.
2840 (expand_builtin_pow): Remove.
2841 (expand_builtin_powi): Eliminate handling of constant exponent.
2842 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2844 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2846 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2848 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2850 * dce.c (reset_unmarked_insns_debug_uses): New.
2851 (delete_unmarked_insns): Skip debug insns.
2852 (prescan_insns_for_dce): Likewise.
2853 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2854 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2855 active reg can be found.
2856 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2857 (convert_regs_1): Use it.
2859 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2861 * tree-pretty-print.c (dump_function_header): Add flags.
2862 Don't dump decl_uid with nouid.
2863 * tree-pretty-print.h (dump_function_header): Adjust.
2864 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2865 * passes.c (pass_init_dump_file): Pass dump_flags on.
2866 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2868 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2871 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2873 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2875 PR tree-optimization/49243
2876 * calls.c (setjmp_call_p): Also check if fndecl has the
2877 returns_twice attribute.
2879 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2881 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2884 2011-06-06 Richard Henderson <rth@redhat.com>
2885 Georg-Johann Lay <avr@gjlay.de>
2888 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2890 * config/avr/avr.md ("insv"): New insn expander.
2891 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2892 "*insv.not.io", "*insv.reg"): New insns.
2894 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2897 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2898 to nonimmediate_operand from memory_operand for the operand that is to
2899 be forced to memory by the expander. Lose the constraints.
2901 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2903 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2904 EH return when delayed branches are disabled.
2906 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2908 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2909 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2911 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2912 Simplify MODE_V1DF and MODE_V2SF handling.
2913 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2914 Simplify MODE_SF handling.
2916 2011-06-04 Jan Hubicka <jh@suse.cz>
2918 PR tree-optimization/48893
2919 PR tree-optimization/49091
2920 PR tree-optimization/49179
2921 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2924 2011-06-04 Jan Hubicka <jh@suse.cz>
2927 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2930 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2932 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2934 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2937 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2938 to be strictly smaller than 1 << shiftcount.
2940 2011-06-04 Jan Hubicka <jh@suse.cz>
2942 PR tree-optimize/48929
2943 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2946 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2949 * calls.c (emit_call_1): Prefer the __builtin declaration of
2952 2011-06-03 Diego Novillo <dnovillo@google.com>
2954 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2955 (lto_input_tree_pointers): Likewise.
2956 * lto-streamer-out.c (pack_value_fields): Likewise.
2957 (lto_output_tree_pointers): Likewise.
2958 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2959 and OPTIMIZATION_NODE.
2961 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2963 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2964 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2965 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2966 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2967 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2968 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2969 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2970 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2971 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2972 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2973 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2974 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2975 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2976 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2977 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2978 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2979 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2980 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2981 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2982 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2983 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2984 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2985 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2986 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2987 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2988 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2989 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2990 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2991 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2992 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2993 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2994 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2995 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2996 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2997 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2998 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2999 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3000 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3001 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3002 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3003 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3004 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3005 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3006 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3007 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3008 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3009 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3010 * system.h (MD_UNWIND_SUPPORT): Poison.
3011 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3012 * doc/tm.texi: Regenerate.
3013 * unwind-dw2.c: Include md-unwind-support.h instead of
3015 * config/ia64/unwind-ia64.c: Likewise.
3016 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3018 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3020 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3022 2011-06-03 Richard Henderson <rth@redhat.com>
3023 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3025 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3026 (sigill_hdlr): Correct insn, insn size.
3027 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3029 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3031 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3033 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3034 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3035 * config/mips/t-iris: Remove.
3036 * config/mips/t-irix6: New file.
3037 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3039 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3041 * Makefile.in (LIB2ADDEHDEP): Remove.
3042 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3043 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3044 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3045 * config/t-darwin (LIB2ADDEHDEP): Remove.
3046 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3047 * config/t-linux (LIB2ADDEHDEP): Remove.
3049 2011-06-03 Diego Novillo <dnovillo@google.com>
3051 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3052 (lto_register_var_decl_in_symtab): Likewise.
3053 (lto_register_function_decl_in_symtab): Likewise.
3054 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3055 logic to uniquify_nodes.
3057 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3059 * config/alpha/t-osf5: Remove.
3060 * config/alpha/t-osf-pthread: Remove.
3061 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3062 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3064 2011-06-03 Julian Brown <julian@codesourcery.com>
3066 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3067 (strongarm1110): Use strongarm tuning.
3068 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3069 * config/arm/arm.c (arm_strongarm_tune): New.
3070 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3071 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3072 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3073 setting, using previous defaults or 1 for Cortex-A5.
3074 (arm_option_override): Set max_insns_skipped from current tuning.
3076 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3078 * doc/install.texi (Options specification): Document --with-specs.
3080 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3082 * config/arm/neon.md (orndi3_neon): Actually split it.
3084 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3086 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3087 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3089 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3092 * target.def (delay_sched2, delay_vartrack): New.
3093 * doc/tm.texi.in: Update.
3094 * doc/tm.texi: Rebuild.
3095 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3096 * var-tracking.c (gate_handle_var_tracking): Likewise.
3097 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3098 (bfin_flag_var_tracking): Drop.
3099 (output_file_start): Don't save and override flag_var_tracking.
3100 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3101 (bfin_reorg): Test original variables.
3102 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3103 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3104 (ia64_flag_var_tracking): Drop.
3105 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3106 (ia64_file_start): Don't save and override flag_var_tracking.
3107 (ia64_override_options_after_change): Ditto
3108 flag_schedule_insns_after_reload.
3109 (ia64_reorg): Test original variables.
3110 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3111 (picochip_flag_var_tracking): Drop.
3112 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3113 (picochip_option_override): Don't save and override
3114 flag_schedule_insns_after_reload.
3115 (picochip_asm_file_start): Ditto flag_var_tracking.
3116 (picochip_reorg): Test original variables.
3117 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3118 (TARGET_DELAY_VARTRACK): Define.
3119 (spu_var_tracking): New.
3120 (spu_machine_dependent_reorg): Call it.
3121 (asm_file_start): Don't save and override flag_var_tracking.
3123 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3126 * config/sh/predicates.md (general_movsrc_operand): Return 0
3127 for memory and memory subreg of which address is an invalid
3128 indexed address for QI and HImode.
3129 (general_movdst_operand): Likewise.
3131 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3133 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3134 edges only, when there is a non-local label in the function.
3135 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3137 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3139 * config/i386/constraints.md (Y3): New register constraint.
3140 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3141 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3142 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3143 *sse2_interleave_lowv2df.
3145 2011-06-02 Julian Brown <julian@codesourcery.com>
3147 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3148 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3149 (arm_cortex_a5_tune): New.
3151 2011-06-02 Julian Brown <julian@codesourcery.com>
3153 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3154 * config/arm/arm.c (arm_default_branch_cost): New.
3155 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3156 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3157 (arm_fa726_tune): Set branch_cost field using
3158 arm_default_branch_cost.
3159 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3160 current_tune structure.
3161 * dojump.c (tm_p.h): Include file.
3163 2011-06-02 Julian Brown <julian@codesourcery.com>
3165 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3167 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3168 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3169 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3171 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3172 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3173 (arm_fa726te_tune): Add prefer_constant_pool setting.
3174 (arm_v6t2_tune, arm_cortex_tune): New.
3175 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3176 prefer_constant_pool setting.
3178 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3180 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3182 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3183 (*movdf_internal) <case 6,7,8>: Ditto.
3185 * config/i386/constraints.md (Y4): New register constraint.
3186 * config/i386/sse.md (vec_set<mode>_0): Merge with
3187 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3188 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3189 *vec_extractv2di_1_sse.
3190 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3191 and *vec_concatv2di_rex64_sse.
3193 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3196 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3197 of cgraph_local_info for null before attempting to use it.
3199 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3201 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3202 (current_function_dynamic_alloc_count): Delete.
3203 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3204 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3205 (expand_builtin_update_setjmp_buf): Remove dead code.
3206 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3207 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3209 * function.c (instantiate_virtual_regs): Likewise.
3210 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3211 for a block with a single abnormal incoming edge.
3212 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3213 (SETJMP_VIA_SAVE_AREA): Delete.
3214 * config/sparc/sparc-protos.h (load_got_register): Declare.
3215 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3216 (load_got_register): Make global.
3217 (sparc_frame_pointer_required): Add 'static'.
3218 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3219 (sparc_builtin_setjmp_frame_value): New function.
3220 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3221 (save_stack_nonlocal): New expander.
3222 (restore_stack_nonlocal): Likewise.
3223 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3224 (nonlocal_goto_internal): New insn.
3225 (goto_handler_and_restore): Delete.
3226 (builtin_setjmp_setup): Likewise.
3227 (do_builtin_setjmp_setup): Likewise.
3229 (builtin_setjmp_receiver): New expander.
3231 2011-06-01 David Li <davidxl@google.com>
3234 * tree-pretty-print.c (dump_function_header): Format cleanup.
3236 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3239 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3240 needed when original operands are used for msw_skip comparison.
3242 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3245 * var-tracking.c (add_uses, add_stores): Don't call
3246 cselib_subst_to_values on ENTRY_VALUE.
3248 2011-06-01 Diego Novillo <dnovillo@google.com>
3250 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3251 output_record_start with LTO_null instead of output_zero.
3252 (lto_output_ts_binfo_tree_pointers): Likewise.
3253 (lto_output_tree): Likewise.
3254 (output_eh_try_list): Likewise.
3255 (output_eh_region): Likewise.
3256 (output_eh_lp): Likewise.
3257 (output_eh_regions): Likewise.
3258 (output_bb): Likewise.
3259 (output_function): Likewise.
3260 (output_unreferenced_globals): Likewise.
3261 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3262 instead of NUM_TREE_CODES.
3263 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3264 (lto_output_int_in_range): Change << to >> when shifting VAL.
3266 2011-06-01 Diego Novillo <dnovillo@google.com>
3268 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3269 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3271 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3274 * optabs.h (valid_multiword_target_p): Declare.
3275 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3276 doing multi-word operations.
3277 * optabs.c (expand_binop): Likewise.
3278 (expand_doubleword_bswap): Likewise.
3279 (expand_absneg_bit): Likewise.
3280 (expand_unop): Likewise.
3281 (expand_copysign_bit): Likewise.
3282 (multiword_target_p): New function.
3284 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3286 PR rtl-optimization/48830
3287 PR rtl-optimization/48808
3288 PR rtl-optimization/48792
3289 * reload.c (push_reload): Check contains_reg_of_mode.
3290 * reload1.c (strip_paradoxical_subreg): New function.
3291 (gen_reload_chain_without_interm_reg_p): Use it to handle
3292 paradoxical subregs.
3293 (emit_output_reload_insns, gen_reload): Likewise.
3295 2011-06-01 David Li <davidxl@google.com>
3297 * predict.c : Change pass name
3300 * tree-profile.c: Ditto.
3303 2011-06-01 David Li <davidxl@google.com>
3305 * tree-pretty-print.c (dump_function_header): New function.
3306 * final.c (rest_of_clean_state): Use header dumper.
3307 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3308 * passes.c (pass_init_dump_file): Use header dumper.
3310 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3312 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3313 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3314 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3316 (mem_loc_descriptor): Use them.
3318 * var-tracking.c (create_entry_value): New function.
3319 (vt_add_function_parameter): Use it.
3321 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3323 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3324 Include <signal.h>, <ucontext.h>.
3325 (sigill_caught): Define.
3326 (sigill_hdlr): New function.
3327 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3328 insns can be executed.
3329 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3330 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3332 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3334 * config/t-slibgcc-darwin: Move to ...
3335 * config/t-slibgcc-dummy: ... this. Clarify comments.
3336 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3337 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3338 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3339 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3340 Remove i386/t-crtstuff from tmake_file.
3341 (i[34567]86-*-solaris2*): Remove t-svr4,
3342 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3344 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3345 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3346 sparc/t-crtfm from tmake_file.
3347 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3348 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3350 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3351 * config/i386/t-nwld (SHLIB_LINK): Remove.
3352 * config/i386/t-rtems-i386: Rename to ...
3353 * config/i386/t-rtems: ... this.
3354 ($(T)crti.o, $(T)crtn.o): Remove.
3355 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3356 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3357 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3358 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3359 EXTRA_MULTILIB_PARTS): Remove.
3360 * config/sparc/t-sol2-64: Likewise.
3361 * config/sparc/t-sol2: Remove.
3362 * config/sparc/t-crtin: Remove.
3363 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3364 * config/i386/gmon-sol2.c: Remove.
3365 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3366 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3367 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3368 * config/i386/sol2-gc1.asm: Remove.
3369 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3370 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3371 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3372 * config/t-slibgcc-sld: Remove.
3374 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3376 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3377 base_type_for_mode with op_mode instead of mode.
3379 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3381 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3383 * config/arm/arm-tune.md: Regenerate.
3384 * config/arm/arm-tables.opt: Regenerate.
3385 * config/arm/arm.c (FL_DIV): Rename...
3386 (FL_THUMB_DIV): ... to this.
3387 (FL_ARM_DIV): Define.
3388 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3389 (arm_arch_hwdiv): Remove.
3390 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3391 (arm_issue_rate): Add cortexr5.
3392 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3393 __ARM_ARCH_EXT_IDIV__.
3394 (TARGET_IDIV): Define.
3395 (arm_arch_hwdiv): Remove.
3396 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3397 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3398 (divsi3, udivsi3): New patterns.
3399 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3400 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3402 2011-06-01 Martin Jambor <mjambor@suse.cz>
3404 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3405 * ipa-utils.c (searchc): Set scc_no.
3407 2011-06-01 Martin Jambor <mjambor@suse.cz>
3409 * ipa-utils.c (searchc_env): New field allow_overwritable.
3410 (searchc): do not ignore edges to overwritable nodes if indicated
3411 by env->allow_overwritable.
3412 (ipa_reduced_postorder): Set env.allow_overwritable.
3414 2011-06-01 Richard Guenther <rguenther@suse.de>
3416 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3418 * lto-streamer.c (lto_record_common_node): Take node pointer,
3419 do not register types.
3420 (lto_preload_common_nodes): Explicitly skip preloading nodes
3421 that differ between frontends.
3423 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3425 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3428 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3430 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3431 parameter value for dump. Dump cost on outermost call only.
3432 (rs6000_memory_move_cost): Dump cost on outermost call only.
3434 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3436 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3437 DW_OP_GNU_convert ops.
3439 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3440 cselib_preserve_constants.
3441 (cselib_lookup_1): If cselib_preserve_constants,
3442 a new VALUE is being created for REG and there is a VALUE for the
3443 same register in wider mode, add another loc with lowpart SUBREG of
3445 (cselib_subst_to_values): Handle ENTRY_VALUE.
3446 * var-tracking.c (replace_expr_with_values): Return NULL for
3448 * dwarf2out.c (convert_descriptor_to_signed): New function.
3449 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3450 instead of two shifts.
3451 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3452 the right mode if needed.
3453 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3454 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3455 convert_descriptor_to_signed.
3456 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3457 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3460 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3462 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3464 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3465 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3466 (SWI248x): New mode iterator, rename from X87MODEI.
3467 (X87MODEI): Remove mode iterator.
3468 (X87MODEI12): Ditto.
3469 (SSEMODEI24): Ditto.
3471 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3473 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3474 * doc/invoke.texi: Document max-vartrack-expr-depth.
3475 * var-tracking.c (EXPR_DEPTH): New.
3476 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3478 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3480 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3481 * config/i386/sse.md: Add n to negated FMA pattern names.
3483 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3485 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3487 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3489 * gengtype-state.c (read_state_params_structs): Initialize previous.
3491 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3493 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3494 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3496 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3498 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3499 registers. Penalize F*r->o alternative to prevent partial memory
3500 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3501 CONST_DOUBLE immediates when optimizing function for size. Do not move
3502 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3503 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3504 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3505 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3507 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3509 (fp_register_operand splitters): Use fp_register_operand
3510 constraint. Do not use FP_REG_P in insn condition.
3511 (any_fp_register_operand splitters): Use any_fp_register_operand
3512 constraint. Do not use ANY_FP_REG_P in insn condition.
3514 2011-05-31 Jan Hubicka <jh@suse.cz>
3516 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3517 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3518 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3519 (lto_output_edge): Use output_enum and var_len_unsigned.
3520 (lto_output_varpool_node): Likewise.
3521 (input_overwrite_node): Do not take resolution parameter;
3522 extract it from a bitpack.
3523 (input_node): Do not read resolution; use input_enum and
3525 (input_varpool_node): Likewise.
3526 (input_edge): Likewise.
3527 (input_cgraph_1): Likewise.
3529 2011-05-31 Richard Guenther <rguenther@suse.de>
3531 * gimple.c (gimple_register_canonical_type): Do not register
3532 any types via gimple_register_type.
3534 2011-05-31 Jan Hubicka <jh@suse.cz>
3536 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3539 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3541 PR rtl-optimization/49235
3542 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3543 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3545 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3547 PR tree-optimization/49093
3548 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3551 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3554 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3555 for concrete functions containing the code of cloned functions.
3557 2011-05-31 Richard Guenther <rguenther@suse.de>
3559 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3561 (forward_propagate_into_comparison_1): ... this.
3562 (forward_propagate_comparison): Rename to ...
3563 (forward_propagate_into_comparison): ... this. Split out
3564 real forward propagation code to ...
3565 (forward_propagate_comparison): ... this.
3566 (forward_propagate_into_gimple_cond): Remove looping.
3567 (forward_propagate_into_cond): Likewise.
3568 (simplify_not_neg_expr): Return whether we have done something.
3569 (simplify_gimple_switch): Likewise.
3570 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3571 (ssa_forward_propagate_and_combine): ... this. Re-structure
3572 to do a forward forward-propagation walk on BBs and a backward
3573 stmt combining walk on BBs. Consistently re-scan changed statements.
3574 (pass_forwprop): Adjust.
3576 2011-05-30 Ian Lance Taylor <iant@google.com>
3578 * godump.c (go_format_type): Correct length of name added to
3579 obstack for anonymous field.
3581 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3584 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3585 part of the second operand is 0.
3587 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3589 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3590 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3591 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3592 (*movdf_internal_rex64): Do not penalize F->r alternative.
3593 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3594 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3595 when optimizing function for size. Do not move CONST_DOUBLEs
3596 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3597 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3598 SUBREGs. Do not check for MEM_P operands in the insn condition,
3599 check for ANY_FP_REGNO_P instead.
3600 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3601 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3603 * config/i386/i386.c (ix86_option_override_internal): Do not
3604 set TARGET_INTEGER_DFMODE_MOVES here.
3606 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3609 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3611 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3613 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3614 DW_TAG_rvalue_reference_type even for
3615 -gdwarf-4 -fno-debug-types-section.
3617 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3619 PR tree-optimization/46728
3620 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3621 (build_and_insert_binop): New.
3622 (gimple_expand_builtin_pow): Reorder args for
3623 build_and_insert_call; use build_and_insert_binop; add more
3624 optimizations for fractional exponents.
3626 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3631 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3633 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3635 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3636 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3637 TS_BASE instead of TS_COMMON.
3638 * varasm.c (assemble_name): Remove assert.
3640 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3642 * config.gcc: Keep obselete list sorted.
3644 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3645 Eric Botcazou <ebotcazou@adacore.com>
3647 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3648 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3649 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3650 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3651 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3653 2011-05-30 Richard Guenther <rguenther@suse.de>
3655 * gimple.c (gimple_types_compatible_p_1): Compare record
3656 and union type members properly.
3658 2011-05-30 Richard Guenther <rguenther@suse.de>
3660 PR tree-optimization/49210
3661 * ipa-split.c (split_function): Care for the case where the call
3662 result is not trivially convertible to the result holding variable.
3664 2011-05-30 Richard Guenther <rguenther@suse.de>
3666 PR tree-optimization/49218
3667 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3670 2011-05-30 Richard Guenther <rguenther@suse.de>
3672 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3673 New function split out from ...
3674 (forward_propagate_into_gimple_cond): ... here. Adjust.
3675 (forward_propagate_into_cond): Likewise.
3676 (forward_propagate_comparison): Also propagate into
3677 comparisons on assignment RHS. Change return value to
3678 behave similar to forward_propagate_into_cond.
3679 (tree_ssa_forward_propagate_single_use_vars): Handle
3680 strict-overflow warnings properly for forward_propagate_comparison.
3682 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3684 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3686 * configure: Regenerate.
3688 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3690 PR tree-optimization/49199
3691 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3692 non-reduction operands are either defined in the loop or by induction.
3694 2011-05-29 Xinliang David Li <davidxl@google.com>
3696 * opts-global.c (handle_common_deferred_options): Handle new options.
3697 * passes.c (register_one_dump_file): Call register_pass_name.
3698 (execute_one_pass): Check explicit enable/disable flag.
3699 (passr_hash): New function.
3701 (register_pass_name): Ditto.
3702 (get_pass_by_name): Ditto.
3705 (enable_pass): Ditto.
3706 (disable_pass): Ditto.
3707 (is_pass_explicitly_enabled_or_disabled): Ditto.
3709 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3711 * config/i386/i386.md (*movoi_internal_avx): Use
3712 standard_sse_constant_opcode for alternative 0.
3713 (*movti_internal_sse): Ditto.
3714 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3716 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3718 (*movsi_internal): Ditto.
3719 (*movdi_internal): Ditto. Add ssecvt type moves.
3721 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3724 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3726 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3728 PR rtl-optimization/49095
3729 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3730 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3732 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3735 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3736 recurse_p argument. Only follow register copies if it is set,
3737 and prevent mips_find_pic_call_symbol from recursing.
3738 (mips_find_pic_call_symbol): Add a recurse_p argument.
3739 Pass it to mips_pic_call_symbol_from_set.
3740 (mips_annotate_pic_calls): Update accordingly.
3742 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3744 * emit-rtl.c (try_split): Use a loop to search for
3745 NOTE_INSN_CALL_ARG_LOCATIONs.
3747 2011-05-29 Richard Guenther <rguenther@suse.de>
3749 PR tree-optimization/49217
3750 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3752 2011-05-28 Jan Hubicka <jh@suse.cz>
3754 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3756 (string_slot_free): Remove
3757 (create_output_block): Initialize obstack.
3758 (destroy_output_block): Free obstack.
3759 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3760 the string unless it needs to be added into the hash.
3761 (lto_output_string_with_length): Add persistent attribute;
3762 handle NULL strings.
3763 (lto_output_string): Add PERSISTENT parameter.
3764 (output_string_cst, output_identifier): Simplify.
3765 (lto_output_location_bitpack): Update.
3766 (lto_output_builtin_tree): Update.
3767 * lto-streamer.h (struct output_block): Add obstack.
3768 (lto_output_string, lto_output_string_with_length): Remove
3769 declarations; functions are static now.
3771 2011-05-28 Jan Hubicka <jh@suse.cz>
3773 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3774 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3775 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3776 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3777 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3778 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3779 unpack_ts_decl_with_vis_value_fields,
3780 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3781 lto_get_builtin_tree): Use enum and variable length i/o.
3782 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3783 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3785 (bp_pack_enum, bp_unpack_enum): New macros.
3787 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3789 * genrecog.c: Remove redundant forward declarations.
3791 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3793 * config.gcc: Deprecate mips*-*-openbsd*.
3795 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3798 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3801 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3804 * gengtype.c (vec_prefix_type): New function.
3805 (note_def_vec): Use vec_prefix_type and change the length
3806 attribute to be based on the prefix.
3807 * vec.c: Include coretypes.h before vec.h.
3808 (struct vec_prefix): Remove.
3809 (vec_gc_p_reserve): Change the offsetof to sizeof.
3810 (vec_gc_p_reserve_exact): Likewise.
3811 (vec_heap_p_reserve): Likewise.
3812 (vec_heap_p_reserve_exact): Likewise.
3813 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3814 (vec_stack_p_reserve): Change the offsetof to sizeof.
3815 (vec_stack_p_reserve_exact): Likewise.
3816 * vec.h (struct vec_prefix): New struct definition.
3817 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3818 (VEC_T_GTY(T,B)): Likewise.
3819 (DEF_VEC_FUNC_P(T)): Use prefix field.
3820 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3821 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3823 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3825 PR tree-optimization/46728
3826 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3827 (powi_as_mults): Add gimple_set_location.
3828 (build_and_insert_call): New.
3829 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3830 0.5, 0.25, 0.75, 1./3., or 1./6.
3832 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3834 * doc/contrib.texi: Update copyright years.
3835 (Contributors): Add Zdenek Sojka.
3837 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3839 * c-decl.c (c_push_function_context): Copy the current statement
3841 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3842 (finish_struct): Call building_stmt_list_p instead of checking
3844 * c-parser.c (c_parser_postfix_expression): Likewise.
3845 * c-typeck.c (c_end_compound_stmt): Likewise.
3846 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3847 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3848 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3849 (free_stmt_list): Likewise.
3850 * tree.h (struct tree_statement_list): Include typed_tree instead
3852 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3853 as TS_TYPED instead of TS_COMMON.
3855 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3856 Uros Bizjak <ubizjak@gmail.com>
3858 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3859 (HAVE_AS_IX86_TLSGDPTL): Define.
3860 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3861 (HAVE_AS_IX86_TLSLDMPLT): Define.
3862 * configure: Regenerate.
3863 * config.in: Regenerate.
3864 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3865 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3866 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3867 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3868 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3870 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3872 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3874 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3876 (INSN_COND, INSN_REVERSE_COND): New macros.
3877 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3879 (sched_get_condition_with_rev): Cache the results, and look them up
3881 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3882 are clobbered by the current insn.
3883 * target.def (exposed_pipline): New sched data hook.
3884 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3885 * doc/tm.texi: Regenerate.
3887 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3889 PR tree-optimization/49170
3890 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3893 2011-05-27 Richard Guenther <rguenther@suse.de>
3896 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3899 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3901 * haifa-sched.c (sched_scan_info): Remove.
3902 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3904 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3906 (sched_scan): Remove.
3907 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3908 static. All callers changed.
3909 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3910 static. All callers changed.
3911 (sched_init_luids): Remove all arguments except the first. All
3912 callers changed. Don't use sched_scan.
3913 (haifa_init_h_i_d): Likewise.
3914 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3915 manually rather than using sched_init_luids. Likewise with
3916 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3917 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3918 rather than sched_init_luids with NULL args.
3919 * sel-sched-ir.c (new_insns): Remove variable.
3920 (sched_scan): New static function, previously in haifa-sched.c. Remove
3921 all arguments but the first two; all callers changed.
3922 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3923 rather than sched_init_luids.
3924 (sel_init_bbs): Remove second argument. All callers changed.
3925 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3926 with NULL arguments.
3927 (create_insn_rtx_from_pattern): Likewise.
3928 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3929 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3930 (sched_init_insn_luid, sched_extend_luids): Declare.
3931 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3934 2011-05-27 Richard Guenther <rguenther@suse.de>
3937 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3938 A CMP B ? (T) true : (T) false for non-integral types T again.
3940 2011-05-27 Jan Hubicka <jh@suse.cz>
3942 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3943 so 0 means NULL string.
3944 (lto_output_string_with_length): ... here.
3945 (lto_output_string, output_string_cst, output_identifier): Update
3946 handling of NULL strings.
3947 (lto_output_location_bitpack): New function.
3948 (lto_output_location): Use it.
3949 (lto_output_tree_ref): Use output_record_start.
3950 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3952 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3954 (input_string_internal): ... here;
3955 (input_string_cst, input_identifier, lto_input_string): Update handling
3957 (lto_input_location_bitpack): New function
3958 (lto_input_location): Use it.
3959 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3961 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3962 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3963 (bp_pack_value): Sanity check the value range.
3964 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3966 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3969 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3971 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3972 call_arg_location instructions down the floor.
3974 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3976 PR rtl-optimization/49154
3977 * ira.c (setup_pressure_classes): Process class without sublcasses
3978 as a candidate for pressure classes.
3980 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3982 PR rtl-optimization/48575
3983 * genrecog.c (position_type): New enum.
3984 (position): New structure.
3985 (decision): Use position structure instead of a string.
3986 (root_pos, peep2_insn_pos_list): New variables.
3987 (next_position, compare_positions): New functions.
3988 (new_decision): Use position structures instead of strings.
3989 (maybe_both_true): Likewise.
3990 (change_state): Likewise.
3991 (write_tree): Likewise.
3992 (make_insn_sequence): Likewise.
3994 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3996 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3997 TS_BASE instead of TS_COMMON.
3998 (find_decls_types_r): Check for TS_TYPED structure before looking at
4000 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4002 (BLOCK_CHAIN): Use new chain field.
4004 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4006 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4007 moves expensive on Power7 also.
4009 2011-05-26 Richard Guenther <rguenther@suse.de>
4011 * fold-const.c (fold_unary_loc): Remove bogus code.
4013 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4015 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4017 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4018 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4019 TS_BASE instead of TS_COMMON.
4020 * varasm.c (assemble_name): Remove assert.
4022 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4024 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4026 * libgcc-std.ver: Delete file.
4028 2011-05-26 Richard Guenther <rguenther@suse.de>
4030 PR tree-optimization/48702
4031 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4032 only when we know the base address is within bounds.
4033 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4034 assume the base address of TARGET_MEM_REFs is in bounds.
4036 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4039 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4040 declaration in TARGET_SOLARIS.
4042 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4044 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4045 The instruction is then expanded explicitly.
4046 (supported_compare): Callable instruction.
4047 (compare): Likewise.
4049 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4052 * gimplify.c (shortcut_cond_r): Don't special case
4053 COND_EXPRs if they have void type on one of their arms.
4055 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4057 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4058 to reduce duplication, and to achieve a slightly more logical order
4061 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4063 PR tree-optimization/49161
4064 * tree-vrp.c (struct case_info): New type.
4065 (compare_case_labels): Sort case_info structs instead of
4066 trees, and not primarily by CASE_LABEL uids but by
4067 label_for_block indexes.
4068 (find_switch_asserts): Put case labels into struct case_info
4069 array instead of TREE_VEC, adjust sorting, compare label_for_block
4070 values instead of CASE_LABELs.
4072 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4074 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4075 ("orndi3_neon"): Likewise.
4076 ("bic<mode>3_neon"): Likewise.
4078 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4080 PR tree-optimization/49038
4081 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4082 Ensure at least one epilogue iteration if required by data
4084 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4085 to mark loops that require peeling for gaps.
4086 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4087 (vect_get_known_peeling_cost): Take peeling for gaps into
4089 (vect_transform_loop): Generate epilogue if required by data
4091 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4092 loop as requiring an epilogue if there are gaps in the end of
4095 2011-05-25 Ian Lance Taylor <iant@google.com>
4097 * godump.c (go_format_type): Output the first field with a usable
4100 2011-05-25 Ian Lance Taylor <iant@google.com>
4102 * godump.c (go_format_type): Check for invalid type names, pointer
4103 target types, and struct field types.
4105 2011-05-25 Jason Merrill <jason@redhat.com>
4107 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4109 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4111 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4113 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4115 * config/i386/i386.md (*movqi_extv_1)): Put back
4116 "register_operand" check in "type" calculation.
4117 (*movqi_extzv_2): Likewise.
4119 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4121 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4123 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4126 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4127 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4128 __divxc3, __divtc3): Wrap definitions in #ifndef.
4130 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4133 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4134 "register_operand" check and replace q_regs_operand with
4135 QIreg_operand in "type" calculation.
4136 (*movqi_extv_1): Likewise.
4137 (*movqi_extzv_2_rex64): Likewise.
4138 (*movqi_extzv_2): Likewise.
4140 * config/i386/predicates.md (QIreg_operand): New.
4142 2011-05-25 Richard Guenther <rguenther@suse.de>
4144 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4145 type-based offset disambiguation, streamline MEM_REF and
4146 TARGET_MEM_REF handling.
4148 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4150 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4151 (bdesc_special_args): Add pause intrinsic.
4153 * config/i386/i386.md (UNSPEC_PAUSE): New.
4156 * config/i386/ia32intrin.h (__pause): Likewise.
4158 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4161 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4163 PR tree-optimization/46728
4164 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4165 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4167 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4169 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4170 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4171 instead of TS_COMMON.
4173 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4175 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4176 LIBGCC2_GNU_PREFIX is defined.
4178 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4179 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4180 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4181 __clz_tab): Define using __N.
4182 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4183 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4184 * target.def (libfunc_gnu_prefix): New hook.
4185 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4186 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4187 * doc/tm.texi: Regenerate.
4188 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4189 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4191 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4192 (init_optabs): Likewise for the bswap libfuncs.
4193 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4195 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4196 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4197 * libgcc-std.ver: Remove.
4198 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4199 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4201 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4202 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4203 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4204 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4205 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4206 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4207 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4208 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4209 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4210 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4212 2011-05-25 Jan Hubicka <jh@suse.cz>
4214 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4215 (lto_output_tree): Use output_record_start.
4216 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4217 (lto_get_pickled_tree): Use input_record_start.
4218 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4219 (lto_value_range_error): New function.
4220 * lto-streamer.h (lto_value_range_error): Declare.
4221 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4222 (lto_output_enum, lto_input_enum): New macros.
4224 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4226 * common.opt (flag_stack_usage_info): New variable.
4227 (-Wstack-usage): New option.
4228 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4229 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4230 <OPT_fstack_usage>: Likewise.
4231 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4232 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4233 of flag_stack_usage.
4234 (emit_library_call_value_1): Likewise.
4235 * explow.c (allocate_dynamic_stack_space): Likewise.
4236 * function.c (instantiate_virtual_regs ): Likewise.
4237 (prepare_function_start): Likewise.
4238 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4239 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4240 * config/arm/arm.c (arm_expand_prologue): Likewise.
4241 (thumb1_expand_prologue): Likewise.
4242 * config/avr/avr.c (expand_prologue): Likewise.
4243 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4244 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4245 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4246 * config/mips/mips.c (mips_expand_prologue): Likewise.
4247 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4248 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4249 * config/s390/s390.c (s390_emit_prologue): Likewise.
4250 * config/sh/sh.c (sh_expand_prologue): Likewise.
4251 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4252 * config/spu/spu.c (spu_expand_prologue): Likewise.
4254 2011-05-25 Richard Guenther <rguenther@suse.de>
4256 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4257 (gimple_canonical_types_compatible_p): Likewise.
4259 2011-05-25 Jan Hubicka <jh@suse.cz>
4262 * ipa.c (function_and_variable_visibility): Only add to same
4263 comdat group list if DECL_ONE_ONLY.
4265 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4267 PR rtl-optimization/49014
4268 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4270 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4273 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4275 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4277 PR rtl-optimization/48757
4278 * ira-build.c (loop_with_eh_edge_p): Rename to
4279 loop_with_complex_edge_p, check edges on complexity, make function
4281 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4284 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4286 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4287 force flag_ira_share_save_slots to 0.
4289 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4291 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4292 (vt_initialize): Set PROLOGUE_BB unconditionally.
4293 Add block comment about CFA_BASE_RTX machinery.
4294 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4295 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4297 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4300 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4301 parsing of syntax error in ObjC instance variable lists. In
4302 particular, avoid an infinite loop if there is a stray ']'.
4303 Updated error message.
4305 2011-05-24 Ian Lance Taylor <iant@google.com>
4307 * godump.c (go_define): Don't accept a string immediately after
4310 2011-05-24 Ian Lance Taylor <iant@google.com>
4312 * godump.c (struct godump_container): Add invalid_hash field.
4313 (go_format_type): Return false if type is found in invalid_hash.
4314 (go_output_typedef): Add invalid type to invalid_hash.
4315 (go_finish): Create and delete invalid_hash.
4317 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4319 PR tree-optimization/46728
4320 * tree-ssa-math-opts.c (powi_table): New.
4321 (powi_lookup_cost): New.
4323 (powi_as_mults_1): New.
4324 (powi_as_mults): New.
4325 (gimple_expand_builtin_powi): New.
4326 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4327 (gate_cse_sincos): Remove sincos/cexp restriction.
4329 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4332 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4334 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4335 * mips-tdump.c: Likewise.
4337 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4340 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4341 add -mno-XXX. Handle FMA.
4343 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4345 PR rtl-optimization/48633
4346 * ira-build.c (loop_with_eh_edge_p): New function.
4347 (mark_loops_for_removal): Use it.
4349 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4351 PR rtl-optimization/48971
4352 * ira.c (setup_pressure_classes): Don't check register move cost
4353 for classes with one registers. Don't add pressure class if there
4354 is a pressure class with the same available hard registers.
4355 Check contains_reg_of_mode. Fix a typo in collecting
4356 temp_hard_regset. Ignore hard registers not belonging to a class.
4358 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4361 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4363 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4364 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4366 PR gcov-profile/48845
4367 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4369 2011-05-24 Richard Guenther <rguenther@suse.de>
4371 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4372 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4373 (gimple_types_compatible_p_1): Adjust.
4374 (iterative_hash_canonical_type): Do not bother about complete vs.
4376 (gimple_canonical_types_compatible_p): Likewise.
4378 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4380 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4382 2011-05-24 Richard Guenther <rguenther@suse.de>
4385 * gimple.c (gimple_register_canonical_type): Revert
4387 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4388 does not for a tree for the case where it matters. Cache
4389 pointer-type alias-sets.
4391 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4393 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4394 (OBJS): Remove options.o, opts-common.o and prefix.o.
4395 (OBJS-libcommon-target): New.
4396 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4397 (BACKEND): Include libcommon-target.a.
4398 (MOSTLYCLEANFILES): Include libcommon-target.a.
4399 (libcommon-target.a): New.
4400 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4403 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4405 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4406 parts of output shared with the driver.
4407 * optc-gen.awk: Don't generate parts of output not shared with the
4409 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4410 * doc/options.texi (SourcerInclude): Mention options-save.c.
4411 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4412 (OBJS): Add options-save.o.
4413 (options-save.c, options-save.o): New.
4414 (options.o): Update dependencies.
4415 (gcc-options.o): Remove.
4416 (mostlyclean): Remove options-save.c.
4418 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4421 * dbxout.c: Include cgraph.h.
4422 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4423 and without value expr, return NULL if no varpool node exists for
4424 it or if it is not needed.
4425 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4428 * c-decl.c (start_decl): Convert expr to void_type_node.
4430 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4432 PR rtl-optimization/48826
4433 * emit-rtl.c (try_split): When splitting a call that is followed
4434 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4436 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4438 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4439 parameters passed in memory prefer using DECL_INCOMING_RTL over
4440 the pseudos it will be copied into.
4442 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4445 * config/i386/i386.c (ix86_option_override_internal): Save the
4446 initial options after checking vzeroupper.
4448 2011-05-23 David Li <davidxl@google.com>
4450 PR tree-optimization/48988
4451 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4452 Initialize has_valid_pred for each pred chain.
4454 2011-05-23 Richard Guenther <rguenther@suse.de>
4456 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4457 (iterative_hash_gimple_type): Always hash type names.
4459 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4461 * c-typeck.c (build_function_call_vec): Tweak call to
4462 check_function_arguments.
4464 2011-05-23 Richard Guenther <rguenther@suse.de>
4466 PR tree-optimization/49115
4467 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4468 is not necessarily carried out, do not claim it kills the ref.
4469 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4471 2011-05-23 Richard Guenther <rguenther@suse.de>
4474 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4475 what pointer types we accept for folding.
4477 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4479 * gthr-gnat.c: Remove.
4480 * gthr-gnat.h: Remove.
4481 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4482 * config/t-freebsd (LIB2ADDEH): Likewise.
4483 * config/t-linux (LIB2ADDEH): Likewise.
4484 * config/t-sol2 (LIB2ADDEH): Likewise.
4485 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4486 * configure.ac (target_thread_file): Remove gnat handling.
4487 * configure: Regenerate.
4488 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4490 2011-05-23 Tristan Gingold <gingold@adacore.com>
4491 Eric Botcazou <ebotcazou@adacore.com>
4493 * gcov.c (create_file_names): If no object directory is specified,
4494 keep the directory of the file.
4496 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4498 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4499 * configure: Regenerate.
4501 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4504 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4505 failed and the comparison has a single bit signed type, use
4506 constm1_rtx instead of const1_rtx for true value.
4507 (do_store_flag): If ops->type is single bit signed type, disable
4508 signel bit test optimization and pass -1 instead of 1 as last
4509 parameter to emit_store_flag_force.
4511 2011-05-23 Tom de Vries <tom@codesourcery.com>
4514 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4516 (infer_loop_bounds_from_undefined): Use new function.
4518 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4520 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4521 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4522 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4524 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4526 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4528 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4529 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4532 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4534 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4536 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4538 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4539 UNSPEC_MOVE_PIC pattern.
4541 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4543 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4544 (sparc-*-rtems*): Likewise.
4545 (sparc64-*-elf*): Likewise.
4546 (sparc64-*-rtems*): Likewise.
4547 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4548 * config/sparc/t-crtin: New file.
4549 * config/sparc/t-sol2 (crti.o): Delete rule.
4551 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4552 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4553 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4554 (ENDFILE_SPEC): Add crtn.o.
4556 2011-05-22 Tom de Vries <tom@codesourcery.com>
4559 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4560 CODE_CONTAINS_STRUCT (TS_COMMON).
4562 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4565 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4566 only after deciding which mode to use.
4568 2011-05-22 Tom de Vries <tom@codesourcery.com>
4571 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4572 for call to get_shiftadd_cost.
4574 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4577 * config/i386/cpuid.h (bit_MMXEXT): New define.
4579 2011-05-22 Nick Clifton <nickc@redhat.com>
4581 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4582 initialisation of non-existant args[2] element. Use args[] array
4583 not arg[] array to pass arguments to build_function_type_list.
4585 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4587 PR tree-optimization/49087
4588 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4590 2011-05-21 Jason Merrill <jason@redhat.com>
4593 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4594 static storage duration.
4596 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4598 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4601 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4603 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4604 false if there are call-saved registers here...
4605 (sparc_can_use_return_insn_p): ...but here instead.
4606 (save_or_restore_regs): Fix thinko.
4607 (sparc_expand_prologue): Use current_function_is_leaf.
4608 (sparc_frame_pointer_required): Likewise.
4610 2011-05-21 Nick Clifton <nickc@redhat.com>
4613 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4615 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4617 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4618 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4620 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4622 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4623 * optc-gen.awk: Move common code to opt-read.awk.
4624 * opth-gen.awk: Likewise.
4625 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4627 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4629 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4631 2011-05-20 Tom de Vries <tom@codesourcery.com>
4634 * tree-ssa-loop-ivopts.c: Include expmed.h.
4635 (get_shiftadd_cost): New function.
4636 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4638 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4641 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4642 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4644 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4646 * Makefile.in: Update comment referring to $(OBJS-common).
4648 2011-05-20 Ian Lance Taylor <iant@google.com>
4650 * godump.c (go_output_typedef): Put enum constants in the macro
4651 hash table to avoid duplicate Go const definitions.
4653 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4655 * Makefile.in (LIBDEPS): Add libcommon.a.
4657 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4658 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4659 pretty-print.o and version.o.
4660 (OBJS-libcommon): New.
4661 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4662 (BACKEND): Add libcommon.a.
4663 (MOSTLYCLEANFILES): Likewise.
4665 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4666 (cpp$(exeext)): Likewise.
4667 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4668 pretty-print.o and input.o.
4669 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4670 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4672 (mips-tfile): Don't explicitly use version.o.
4673 (mips-tdump): Likewise.
4674 (gcov.o): Depend on $(DIAGNOSTIC_H).
4675 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4676 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4677 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4678 * gcov-dump.c: Include intl.h and diagnostic.h.
4679 (main): Initialize diagnostics.
4680 * gcov.c: Include diagnostic.h.
4682 (main): Initialize diagnostics.
4683 * lto-wrapper.c: Include diagnostic.h.
4684 (main): Initialize diagnostics.
4686 2011-05-20 Michael Matz <matz@suse.de>
4688 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4690 2011-05-20 Michael Matz <matz@suse.de>
4691 Richard Guenther <rguenther@suse.de>
4693 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4694 use lto_streamer_cache_append directly instead of returning a VEC.
4695 (preload_common_node): Remove.
4696 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4698 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4700 2011-05-20 Richard Guenther <rguenther@suse.de>
4702 PR tree-optimization/49079
4703 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4704 MEM_REFs correctly for the trailing array access detection.
4705 Special case constants the same way as decls for overall size
4708 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4710 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4713 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4715 PR tree-optimization/49073
4716 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4717 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4718 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4720 2011-05-20 Richard Guenther <rguenther@suse.de>
4723 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4724 of pointer types the same way the middle-end does.
4726 2011-05-20 Richard Guenther <rguenther@suse.de>
4728 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4729 or pointer-to chains. Delay all fixup to uniquify_nodes.
4731 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4733 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4734 (fma4_fmaddsub): Likewise
4736 2011-05-19 Jan Hubicka <jh@suse.cz>
4738 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4739 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4740 (type_pair_cache): New static var.
4741 (lookup_type_pair): Use fixed sized custom hash; make inline.
4742 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4743 calls of lookup_type_pair.
4744 (print_gimple_types_stats): Remove cache stats.
4745 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4748 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4750 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4751 when TARGET_RDRND is active.
4752 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4753 Generate dummy SImode target register when target is NULL.
4755 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4757 * config/arm/arm-fpus.def: New.
4758 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4760 * config/arm/arm-tables.opt: Regenerate.
4761 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4762 (arm_option_override): Don't decode FPU name to string here.
4763 * config/arm/arm.opt (mfpu=): Use Enum.
4764 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4765 Update dependencies.
4767 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4769 * collect2.c: Include diagnostic.h.
4770 (fatal_perror, fatal, error, fancy_abort): Remove.
4771 (main): Set progname. Call xmalloc_set_program_name and
4772 diagnostic_initialize.
4773 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4774 scan_libraries, resolve_lib_name): Call fatal_error instead of
4775 fatal and fatal_perror.
4776 * collect2.h (error, fatal, fatal_perror): Don't declare.
4777 * tlink.c: Include diagnostic-core.h.
4778 (recompile_files): Call fatal_error instead of fatal_perror.
4779 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4780 pretty-print.o and input.o.
4781 (collect2.o, tlink.o): Update dependencies.
4783 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4785 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4787 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4790 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4791 COMDAT group syntax, both SPARC and x86 variants.
4792 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4793 * configure: Regenerate.
4794 * config/sol2.h (TARGET_SOLARIS): Define.
4795 (PUSHSECTION_FORMAT): Remove.
4796 (SECTION_NAME_FORMAT): Define.
4797 * config/sol2.c: Include hashtab.h.
4798 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4799 expansion, using SECTION_NAME_FORMAT.
4800 (solaris_comdat_htab): New variable.
4801 (struct comdat_entry): Define.
4802 (comdat_hash): New function.
4803 (comdat_eq): New function.
4804 (solaris_elf_asm_comdat_section): New function.
4805 (solaris_define_comdat_signature): New function.
4806 (solaris_code_end): New function.
4807 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4808 (solaris_code_end): Declare.
4809 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4810 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4812 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4813 Remove ATTRIBUTE_UNUSED.
4814 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4815 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4816 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4817 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4818 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4819 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4820 (PUSHSECTION_FORMAT): Remove.
4821 (SECTION_NAME_FORMAT): Redefine.
4823 2011-05-19 Kai Tietz <ktietz@redhat.com>
4825 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4826 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4827 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4829 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4830 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4832 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4834 2011-05-19 Richard Guenther <rguenther@suse.de>
4837 * tree-object-size.c (addr_object_size): If the pointed-to
4838 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4840 2011-05-19 Richard Guenther <rguenther@suse.de>
4842 * gimple.c (gimple_types_compatible_p_1): Compare names of
4843 the types themselves.
4844 (iterative_hash_gimple_type): And hash them that way.
4845 (gimple_register_type_1): If we register a main variant properly
4846 initialize the leader to ourselves.
4848 2011-05-19 Tom de Vries <tom@codesourcery.com>
4851 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4852 get_loop_invariant_expr_id.
4853 (get_loop_invariant_expr_id): Use get_expr_id.
4854 (parm_decl_cost): New function.
4855 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4856 Improve bound cost estimation. Use different inv_expr_id for elim and
4859 2011-05-19 Tom de Vries <tom@codesourcery.com>
4862 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4863 cost_base.cost == 0.
4865 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4868 * config/i386/sse.md
4869 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4872 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4874 PR tree-optimization/49039
4875 * tree-vrp.c (extract_range_from_binary_expr): For
4876 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4877 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4879 2011-05-18 Tom de Vries <tom@codesourcery.com>
4882 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4884 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4886 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4887 (*tls_global_dynamic_64): Ditto.
4888 (*tls_local_dynamic_base_32_gnu): Ditto.
4889 (*tls_local_dynamic_base_64): Ditto.
4890 (tls_initial_exec_64_sun): Ditto.
4892 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4894 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4895 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4897 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4898 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4899 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4900 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4901 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4902 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4903 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4905 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4907 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4908 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4909 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4910 target_thread_pointer, arm_structure_size_boundary, struct
4911 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4912 struct abi_name, arm_all_abis): Remove.
4913 (arm_option_override) Don't process most enumerated option values here.
4914 Don't process target_fpe_name here. Work with integer not string for
4915 structure size boundary; use separate diagnostics for each case.
4916 * config/arm/arm.h (enum float_abi_type, enum
4917 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4919 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4920 arm_structure_size_boundary): Remove.
4921 * config/arm/arm.opt (mabi=): Use Enum and Init.
4922 (arm_abi_type): New Enum and EnumValue entries.
4923 (mfloat-abi=): Use Enum and Init.
4924 (float_abi_type): New Enum and EnumValue entries.
4925 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4926 (mfp16-format=): Use Enum and Init.
4927 (arm_fp16_format_type): New Enum and EnumValue entries.
4928 (mstructure-size-boundary=): Use UInteger and Init.
4929 (mtp=): Use Enum and Init.
4930 (arm_tp_type): New Enum and EnumValue entries.
4932 2011-05-18 Richard Guenther <rguenther@suse.de>
4934 PR tree-optimization/49018
4935 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4936 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4937 gimple_has_side_effects.
4939 2011-05-18 Richard Guenther <rguenther@suse.de>
4941 * gimple.c (gimple_register_type_1): New function, split out from ...
4942 (gimple_register_type): ... here. Avoid infinite recursion.
4944 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4946 PR tree-optimization/41881
4947 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4948 reduction_chains along with a macro for its access.
4949 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4950 (destroy_loop_vec_info): Free reduction chains.
4951 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4952 (vect_is_slp_reduction): New function.
4953 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4954 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4955 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4956 definition types for reduction chains.
4957 (vect_supported_load_permutation_p): Don't allow permutations for
4959 (vect_analyze_slp_instance): Support reduction chains.
4960 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4961 (vect_get_constant_vectors): Handle reduction chains.
4962 (vect_schedule_slp_instance): Mark the first statement of the
4963 reduction chain as reduction.
4965 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4967 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4968 names for group elements access.
4969 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4970 reduction chains as well. Remove data reference and interleaving
4971 related words from the fields names.
4972 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4974 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4975 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4976 vect_update_interleaving_chain, vect_same_range_drs,
4977 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4978 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4979 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4980 vect_analyze_group_access, vect_analyze_data_ref_access,
4981 vect_create_data_ref_ptr, vect_transform_strided_load,
4982 vect_record_strided_load_vectors): Likewise.
4983 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4984 vect_model_load_cost, vectorizable_store, vectorizable_load,
4985 vect_remove_stores, new_stmt_vec_info): Likewise.
4986 * tree-vect-slp.c (vect_build_slp_tree,
4987 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4989 2011-05-18 Richard Guenther <rguenther@suse.de>
4992 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4993 operand verification.
4994 (verify_gimple_assign_binary): Likewise.
4995 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4996 to non-1-precision BOOLEAN_TYPEs.
4998 2011-05-18 Tom de Vries <tom@codesourcery.com>
5001 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5003 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5005 PR tree-optimization/49000
5006 * tree-ssa.c (execute_update_addresses_taken): Call
5007 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5008 be rewritten and decl has been marked for renaming, reset
5011 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5013 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5014 enum_opts_set when testing if attributes have set -mfpmath=.
5016 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5018 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5020 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5022 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5024 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5025 id.transform_lang_insert_block with NULL.
5027 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5029 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5030 (output_fp_compare): Change args 3 and 4 to bool.
5031 (ix86_expand_call): Change arg 6 to bool.
5032 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5033 (ix86_attr_length_vex_default): Change arg 3 to bool.
5034 * config/i386/i386.md: Update all uses.
5035 * config/i386/i386.c: Ditto.
5036 (ix86_flags_dependent): Change return type to bool.
5038 2011-05-17 Richard Guenther <rguenther@suse.de>
5040 * gimple.c (type_hash_pair_compare): Fix comparison.
5042 2011-05-17 Richard Guenther <rguenther@suse.de>
5044 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5045 case some more, fix final hash value of the non-singleton case.
5047 2011-05-17 Richard Guenther <rguenther@suse.de>
5051 2011-05-16 Richard Guenther <rguenther@suse.de>
5053 * gimple.c (gimple_types_compatible_p_1): Use names of the
5054 type itself, not its main variant.
5055 (iterative_hash_gimple_type): Likewise.
5057 2011-05-17 Richard Guenther <rguenther@suse.de>
5059 * gimple.c (gimple_register_canonical_type): Use the main-variant
5060 leader for computing the canonical type.
5062 2011-05-17 Nick Clifton <nickc@redhat.com>
5064 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5067 * config/rx/rx.md: Add peephole to remove redundant extensions
5069 (bitset_in_memory): Use rx_restricted_mem_operand.
5070 (bitinvert_in_memory): Likewise.
5071 (bitclr_in_memory): Likewise.
5073 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5074 Nick Clifton <nickc@redhat.com>
5076 * config/rx/rx.md: Add peepholes to match a register move followed
5077 by a comparison of the moved register. Replace these with an
5078 addition of zero that does both actions in one instruction.
5080 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5083 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5084 predicate to allow CONST_INT.
5085 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5087 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5089 * opts-common.c (opt_enum_arg_to_value): New.
5090 * opts.h (opt_enum_arg_to_value): Declare.
5091 * config/i386/i386.opt (fpmath): Remove.
5092 (mfpmath=): Use Enum, Init and Save.
5093 (fpmath_unit): New Enum and EnumValue entries.
5094 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5095 name for function fpmath state.
5096 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5097 * config/i386/i386.c: Include diagnostic.h.
5098 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5099 (ix86_target_string): Take enum fpmath_unit value instead of string.
5100 (ix86_debug_options): Update call to ix86_target_string.
5101 (ix86_option_override_internal): Don't process fpmath strings here.
5102 (x86_function_specific_save, ix86_function_specific_restore):
5103 Don't handle fpmath state specially.
5104 (ix86_function_specific_print): Pass fpmath state to
5105 ix86_target_string instead of printing in this function.
5106 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5107 Handle enum attributes.
5108 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5109 (ix86_valid_target_attribute_tree): Update option_strings
5110 handling. Handle fpmath as enum option.
5111 (ix86_can_inline_p): Update field names for function fpmath state.
5112 (ix86_expand_builtin): Update call to ix86_target_string.
5113 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5114 (ix86_fpmath): Remove.
5115 * config/i386/t-i386 (i386.o): Update dependencies.
5117 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5119 PR preprocessor/48677
5120 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5121 from decoded_options[0], not from itself.
5123 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5125 * config/i386/constraints.md (z): New constraint.
5126 * config/i386/i386.c (c): New mode attribute.
5127 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5128 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5129 constraint for operand 0.
5130 (*call_vzeroupper): Ditto.
5131 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5132 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5133 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5134 Use "lzm" constraint for operand 0.
5135 (*call_pop_vzeroupper): Ditto.
5136 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5137 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5138 constraint for operand 0.
5139 (*sibcall_vzeroupper): Ditto.
5140 (*sibcall_rex64_ms_sysv): Ditto.
5141 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5142 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5143 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5144 (*sibcall_pop_vzeroupper): Ditto.
5145 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5146 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5147 mode iterator. Use "<c>zm" constraint for operand 1.
5148 (*call_value_vzeroupper): Ditto.
5149 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5151 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5152 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5153 *call_value_pop_1. Use "lzm" constraint for operand 1.
5154 (*call_value_pop_vzeroupper): Ditto.
5155 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5156 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5157 mode iterator. Use "Uz" constraint for operand 1.
5158 (*sibcall_value_vzeroupper): Ditto.
5159 (*sibcall_value_rex64_ms_sysv): Ditto.
5160 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5161 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5162 constraint for operand 1.
5163 (*sibcall_value_pop_vzeroupper): Ditto.
5164 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5165 and "z" constraint for operand 2.
5166 (*tls_global_dynamic_32_gnu): Ditto.
5167 (*tls_local_dynamic_base_32_gnu): Ditto.
5168 (*tls_local_dynamic_base_64): Ditto.
5169 (*tls_local_dynamic_32_once): Ditto.
5170 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5172 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5174 2011-05-16 Richard Guenther <rguenther@suse.de>
5176 * gimple.c (gimple_types_compatible_p_1): Use names of the
5177 type itself, not its main variant.
5178 (iterative_hash_gimple_type): Likewise.
5180 2011-05-16 Richard Guenther <rguenther@suse.de>
5182 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5183 always visit pointer target and function result and argument types.
5185 2011-05-16 Jason Merrill <jason@redhat.com>
5188 * tree-inline.c (copy_statement_list): Put back recursion.
5190 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5194 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5195 * config/avr/avr.md ("*ior<mode>qi.byte0",
5196 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5198 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5201 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5202 register is needed for a function argument.
5204 2011-05-16 Richard Guenther <rguenther@suse.de>
5206 * gimple.c (struct type_hash_pair): New type.
5207 (type_hash_pair_compare): New function.
5208 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5210 2011-05-16 Revital Eres <revital.eres@linaro.org>
5212 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5214 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5216 * config/i386/i386.md (floating point move splitters): Fix
5217 usage of standard_80387_constant_p.
5218 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5220 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5222 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5224 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5226 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5227 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5228 (tree_ssa_lim_finalize): Likewise.
5230 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5232 * config/i386/constraint.md (Yd, Yx): New register constraints.
5233 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5234 Yd conditional register constraint.
5235 (*movtf_internal): Use standard_sse_constant_opcode.
5236 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5237 Yx conditional register constraint.
5238 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5239 Yd conditional register constraint. Use standard_sse_constant_p to
5240 check for valid SSE constants and call standard_sse_constant_opcode to
5242 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5243 constants and call standard_sse_constant_opcode to output SSE insn.
5244 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5245 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5246 optimize_size is set.
5247 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5249 2011-05-14 Tobias Burnus <burnus@net-b.de>
5251 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5253 2011-05-13 Martin Jambor <mjambor@suse.cz>
5255 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5256 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5257 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5258 (evaluate_conditions_for_ipcp_clone): Removed.
5259 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5260 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5261 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5263 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5265 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5266 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5267 lieu of MAY_HAVE_DEBUG_STMTS.
5268 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5269 debug statements if !MAY_HAVE_DEBUG_STMTS.
5271 2011-05-13 Martin Thuresson <martint@google.com>
5273 PR gcov-profile/47793
5274 * libgcov.c (gcov_exit): Support relative profile paths.
5275 * doc/invoke.texi (-fprofile-dir): Update for above change.
5277 2011-05-13 Richard Guenther <rguenther@suse.de>
5279 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5280 type-pair caching, do not compare hashes.
5282 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5285 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5286 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5288 2011-05-13 Kai Tietz <ktietz@redhat.com>
5290 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5291 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5292 compatible type for TRUTH_NOT_EXPR.
5294 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5296 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5297 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5298 can_create_pseudo_p ().
5300 2011-05-13 Richard Guenther <rguenther@suse.de>
5303 * gimple.c (iterative_hash_gimple_type): Revert change in
5304 pointer target and function result and argument hashing.
5306 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5308 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5309 (*movxf_internal_nointeger): Ditto.
5310 (*movdf_internal_rex64): Ditto.
5311 (*movdf_internal): Ditto.
5312 (*movdf_internal_nointeger): Ditto.
5313 (*movsf_internal): Ditto.
5314 (sincos splitters): Use can_create_pseudo ().
5316 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5318 * config/i386/i386-opts.h: New.
5319 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5320 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5321 ix86_section_threshold): Remove.
5322 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5323 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5325 (ix86_option_override_internal): Don't decode strings for options
5326 other than -march=, -mtune= and -mfpmath=. Don't allow for
5327 __attribute__ uses in remaining diagnostics for options with
5328 string arguments. Don't check for integer arguments being negative.
5329 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5330 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5331 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5332 ix86_branch_cost, ix86_section_threshold): Remove.
5333 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5335 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5337 (masm=): Use Enum and Init.
5338 (asm_dialect): New Enum and EnumValue entries.
5339 (mbranch-cost=): Use UInteger.
5340 (mlarge-data-threshold=): Use UInteger and Init.
5341 (mcmodel=): Use Enum and Init.
5342 (cmodel): New Enum and EnumValue entries.
5343 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5344 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5345 mregparm=): Use UInteger.
5346 (mstringop-strategy=): Use Enum and Init.
5347 (stringop_alg): New Enum and EnumValue entries.
5348 (mtls-dialect=): Use Enum and Init.
5349 (tls_dialect): New Enum and EnumValue entries.
5350 (mabi=): Use Enum and Init.
5351 (calling_abi): New Enum and EnumValue entries.
5352 (mveclibabi=): Use Enum and Init.
5353 (ix86_veclibabi): New Enum and EnumValue entries.
5355 2011-05-13 Nick Clifton <nickc@redhat.com>
5357 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5358 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5360 2011-05-13 Kai Tietz <ktietz@redhat.com>
5363 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5364 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5365 (gimple_boolify): Check for cast for boolean_type_node instead for
5368 2011-05-13 Richard Guenther <rguenther@suse.de>
5370 PR tree-optimization/48172
5371 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5372 multiplying by number of iterations for equal step.
5373 (vect_create_cond_for_alias_checks): Likewise.
5375 2011-05-13 Andreas Schwab <schwab@redhat.com>
5377 * configure.ac: Use AS_HELP_STRING throughout.
5378 * configure: Regenerate.
5380 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5382 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5383 (ix86_emit_restore_regs_using_mov): Likewise.
5384 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5386 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5388 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5389 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5390 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5391 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5392 RTX_OK_FOR_OLO10_P): ...here.
5393 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5396 2011-05-12 Kai Tietz <ktietz@redhat.com>
5398 * gimplify.c (gimple_boolify): Re-boolify expression
5399 arguments even if expression type is of kind BOOLEAN_TYPE.
5400 (gimplify_boolean_expr): Removed.
5401 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5402 and XOR. Additional take care that we keep expression's type.
5403 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5404 of TRUTH_AND|OR|XOR_EXPR.
5406 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5408 PR tree-optimization/48975
5409 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5410 on all bbs here and free and clear ifc_bbs at the end.
5412 2011-05-12 Richard Guenther <rguenther@suse.de>
5414 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5415 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5416 until after simple checks.
5417 (gimple_types_compatible_p): Likewise.
5418 (iterative_hash_gimple_type): Always hash pointer targets
5419 and function return and argument types.
5420 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5421 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5422 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5423 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5424 completely in the simple compare section.
5425 (gimple_register_canonical_type): Query the cache again after
5428 2011-05-12 Richard Guenther <rguenther@suse.de>
5430 PR tree-optimization/48172
5431 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5432 the number of iterations from the segment size calculation.
5433 (vect_create_cond_for_alias_checks): Adjust.
5435 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5438 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5439 if validate_subreg fails.
5441 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5443 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5444 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5447 2011-05-12 DJ Delorie <dj@redhat.com>
5449 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5450 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5451 created builtin into rx_builtins array.
5452 (rx_builtin_decl): New function.
5453 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5455 2011-05-12 DJ Delorie <dj@redhat.com>
5456 Nick Clifton <nickc@redhat.com>
5458 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5459 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5460 (rx_is_legitimate_address): Add pre-decrement and post-increment
5461 addressing in HImode and QImode. Fix test for out of range
5463 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5464 (rx_align_for_label): Test label before extracting its usage count.
5465 (rx_adjust_insn_lengths): Fix selection of insn codes.
5466 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5468 2011-05-11 Jason Merrill <jason@redhat.com>
5470 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5472 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5474 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5475 reindent the subsequent block.
5477 2011-05-11 Satoru Takabayashi <satorux@google.com>
5478 Paul Pluzhnikov <ppluzhnikov@google.com>
5480 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5481 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5482 * config.in: Add LINKER_HASH_STYLE.
5483 * configure.ac: Add --with-linker-hash-style.
5484 * configure: Regenerate.
5486 2011-05-11 Richard Guenther <rguenther@suse.de>
5489 * gimple.c (iterative_hash_canonical_type): Fix typo.
5491 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5493 * config/i386/i386.c (legitimize_tls_address)
5494 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5495 expanders directly for TARGET_GNU2_TLS. Determine pic and
5496 __tls_get_addr symbol reference here. Update call to
5497 gen_tls_global_dynamic_{32,64} for added arguments.
5498 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5499 expanders directly for TARGET_GNU2_TLS. Determine
5500 __tls_get_addr symbol reference here. Update call to
5501 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5502 unique UNSPEC REG_EQUIV to libcall block.
5503 (ix86_tls_get_addr): Declare static.
5504 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5505 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5506 Do not determine pic and __tls_get_addr symbol reference here. Do not
5507 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5508 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5509 (tls_global_dynamic_64): Add operand 2. Do not determine
5510 __tls_get_addr symbol reference here. Do not call
5511 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5512 (tls_local_dynamic_base64): Ditto for operand 1.
5514 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5516 * function.c (expand_function_start): Initialize stack_check_probe_note
5517 only if the generic stack checking mechanism is used.
5519 2011-05-11 Richard Guenther <rguenther@suse.de>
5521 PR tree-optimization/15256
5522 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5523 (A & B) | C, combine (A op CST1) op CST2.
5524 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5525 visit assigns that have uses.
5527 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5529 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5530 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5531 (unpack_ts_type_common_value_fields): ...this. Update comment.
5532 (unpack_value_fields): Adjust for renaming.
5533 (lto_input_ts_type_tree_pointers): Split into...
5534 (lto_input_ts_type_common_tree_pointer): ...this and...
5535 (lto_input_ts_type_non_common_tree_pointers): ...this.
5536 (lto_input_tree_pointers): Adjust for above split.
5537 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5538 (pack_ts_type_common_value_fields): ...this. Update comment.
5539 (lto_output_ts_type_tree_pointers): Split into...
5540 (lto_output_ts_type_common_tree_pointers): ...this and...
5541 (lto_output_ts_type_non_common_tree_pointers): ...this.
5542 (lto_output_tree_pointers): Adjust for above split.
5543 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5544 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5545 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5546 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5548 (struct tree_type): Split into...
5549 (struct tree_type_common: ...this and...
5550 (struct tree_type_with_lang_specific): ...this and...
5551 (struct tree_type_non_common): ...this. Adjust accessor macros
5553 (TYPE_VALUES_RAW): Define.
5554 (union tree_node): Update for above changes.
5555 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5557 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5558 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5559 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5560 * treestructu.def (TS_TYPE): Remove.
5561 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5564 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5567 * tree-ssa.c (reset_debug_uses): New function.
5568 * tree-flow.h (reset_debug_uses): New prototype.
5569 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5570 * tree-loop-distribution.c (generate_loops_for_partition): Call
5571 reset_debug_uses on the stmts that will be removed. Keep around
5572 all debug stmts, don't count them as bits in partition bitmap.
5573 (generate_builtin): Don't count debug stmts or labels as bits in
5576 2011-05-11 Richard Guenther <rguenther@suse.de>
5578 * gimple.c (gimple_type_hash_1): Merge with ...
5579 (gimple_type_hash): ... this.
5580 (gtc_visit): Remove mode parameter and simplify accordingly.
5581 (gimple_types_compatible_p_1): Likewise.
5582 (gimple_types_compatible_p): Likewise.
5583 (iterative_hash_gimple_type): Likewise.
5585 (gimple_type_eq): Adjust.
5587 2011-05-11 Revital Eres <revital.eres@linaro.org>
5589 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5590 enters the branch create an anti edge in the opposite direction
5591 to prevent the creation of reg-moves.
5592 * modulo-sched.c: Adjust comment to reflect the fact we are
5593 scheduling closing branch.
5594 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5595 (stage_count): New field in struct partial_schedule.
5596 (calculate_stage_count): New function.
5597 (normalize_sched_times): Rename to reset_sched_times and handle
5598 incrementing the sched time of the nodes by a constant value
5599 passed as parameter.
5600 (duplicate_insns_of_cycles): Skip closing branch.
5601 (sms_schedule_by_order): Schedule closing branch.
5602 (ps_insn_find_column): Handle closing branch.
5603 (sms_schedule): Call reset_sched_times and adjust the code to
5604 support scheduling of the closing branch.
5605 (ps_insert_empty_row): Update calls to normalize_sched_times
5606 and rotate_partial_schedule functions.
5608 2011-05-11 Richard Guenther <rguenther@suse.de>
5611 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5613 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5615 * opts.c (finish_options): Move warning settings from process_options.
5616 * toplev.c (process_options): Move warning settings to finish_options.
5618 2011-05-11 Richard Guenther <rguenther@suse.de>
5620 PR tree-optimization/18041
5621 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5622 (simplify_bitwise_binary): ... this. Handle operand conversions
5623 by applying them to the result instead.
5624 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5626 2011-05-11 Richard Guenther <rguenther@suse.de>
5628 * gimple.c (gimple_canonical_types_compatible_p): Split out
5629 from gimple_types_compatible_p and friends. Do not recurse
5630 to pointed-to types.
5631 (gimple_canonical_type_eq): Use it.
5632 (iterative_hash_canonical_type): Split out from
5633 iterative_hash_gimple_type and friends. Do not recurse
5634 to pointed-to types.
5635 (gimple_canonical_type_hash): Use it, allocate the hash here.
5637 2011-05-11 Revital Eres <revital.eres@linaro.org>
5639 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5642 2011-05-11 Revital Eres <revital.eres@linaro.org>
5644 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5645 instead of PREV_INSN.
5647 2011-05-11 Revital Eres <revital.eres@linaro.org>
5649 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5650 * loop-doloop.c (doloop_condition_get): Likewise.
5651 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5653 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5655 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5657 * tree.def (CASE_LABEL_EXPR): Add an operand.
5658 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5660 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5662 * c-decl.c (c_override_global_bindings_to_false): Remove.
5663 (global_bindings_p): Don't check
5664 c_override_global_bindings_to_false.
5665 * c-tree.h (c_override_global_bindings_to_false): Remove.
5666 * c-typeck.c (composite_type): Don't set
5667 c_override_global_bindings_to_false.
5669 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5671 PR target/48857, 48495
5672 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5674 (VSX_MOVE_MODE): Ditto.
5675 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5676 VSX vector types. Add V2DImode.
5677 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5678 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5679 (MODES_TIEABLE_P): Ditto.
5681 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5682 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5684 (init_cumulative_args): Ditto.
5685 (rs6000_function_arg_boundary): Ditto.
5686 (rs6000_function_arg_advance_1): Ditto.
5687 (rs6000_function_arg): Ditto.
5688 (rs6000_function_ok_for_sibcall): Ditto.
5689 (emit_frame_save): Ditto.
5690 (rs6000_function_value): Ditto.
5691 (rs6000_libcall_value): Ditto.
5693 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5695 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5696 i386/darwin-lib.h to $libgcc_tm_file.
5697 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5699 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5701 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5703 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5705 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5706 * config/rs6000/rs6000-tables.opt: New file (generated).
5707 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5708 rs6000/rs6000-tables.opt to extra_options.
5709 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5710 * config/rs6000/rs6000.c (rs6000_select): Remove.
5711 (processor_target_table): Move contents to rs6000-cpus.def.
5712 (darwin_rs6000_override_options): Check
5713 global_options_set.x_rs6000_cpu_index instead of
5714 rs6000_select[1].string.
5715 (rs6000_option_override_internal): Likewise.
5716 (rs6000_handle_option): Don't assert that global structures are in
5717 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5718 (rs6000_default_cpu): New variable.
5719 (rs6000_file_start): Set it instead of local default_cpu. Check
5720 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5721 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5722 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5723 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5724 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5725 rs6000_select): Remove.
5726 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5728 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5729 * config/rs6000/t-rs6000
5730 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5731 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5732 global_options_set.x_rs6000_cpu_index instead of
5733 rs6000_select[1].string.
5734 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5735 global_options_set.x_rs6000_cpu_index instead of
5736 rs6000_select[1].string.
5738 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5740 * config.gcc (libgcc_tm_file): Define instead of including files
5741 from ../../libgcc/config/ in tm_file.
5742 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5743 * configure: Regenerate.
5744 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5745 libgcc_tm.h, cs-libgcc_tm.h): New.
5746 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5747 (clean): Remove libgcc_tm.h.
5748 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5749 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5750 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5752 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5755 * config/avr/avr.c (avr_ret_register): Return unsigned int
5757 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5758 it to avr_libcall_value.
5759 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5761 (avr_expand_binop_builtin): Ditto.
5762 (avr_expand_unop_builtin): Ditto.
5764 2011-05-10 DJ Delorie <dj@redhat.com>
5766 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5767 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5768 * config/rx/rx.c (rx_align_for_label): Add label and
5769 uses_threshold parameters. Do not align when the label is not
5771 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5773 2011-05-10 Richard Guenther <rguenther@suse.de>
5775 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5776 a series of conversions and apply foldings similar to what
5778 (tree_ssa_forward_propagate_single_use_vars): Call it.
5780 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5782 PR tree-optimization/48611
5783 PR tree-optimization/48794
5784 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5785 referenced from RESX or EH_DISPATCH arguments.
5788 * dfp.c (decimal_to_decnumber): Handle conversion from
5789 dconst{1,2,m1,half}.
5791 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5793 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5794 for !flag_prefer_avx128.
5795 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5797 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5799 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5800 (fold_ternary_loc): Use expr_location_or.
5802 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5805 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5806 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5807 Pmode and mem_mode is not VOIDmode.
5809 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5811 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5812 TYPE_QUAL_RESTRICT): Convert to enum.
5814 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5816 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5817 (const_pow2_1_to_8_operand): Ditto.
5818 (const_pow2_1_to_128_operand): Ditto.
5819 (const_pow2_1_to_32768_operand): Ditto.
5820 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5821 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5822 in insn constraint to check integer value of operand 3.
5823 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5825 (PINSR_MODE): New mode iterator.
5826 (sse2p4_1): New mode attribute.
5827 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5828 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5829 iterator. Use const_int_operand instead of
5830 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5831 exact_log2 in insn constraint to check integer value of operand 3.
5833 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5835 * config/i386/sse.md (blendbits): Remove mode attribute.
5836 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5837 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5838 Check integer value of operand 3 in insn constraint.
5840 2011-05-09 Richard Guenther <rguenther@suse.de>
5842 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5844 (lto_symtab_merge): Likewise. Do not register types here.
5845 (lto_symtab_merge_decls_2): Likewise.
5846 (lto_symtab_merge_decls_1): Likewise.
5847 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5848 * gimple.c (enum gtc_mode): Declare.
5849 (gimple_types_compatible_p): Make static.
5851 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5853 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5854 temporary register to match Pmode.
5856 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5858 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5859 and *vec_concatv4si_1_avx.
5861 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5863 PR rtl-optimization/48927
5864 * ira-conflicts.c (commutative_constraint_p): Use
5865 recog_data.alternative_enabled_p to disable alternatives where
5866 "enabled" attribute is false.
5867 (get_dup_num): Ditto.
5868 * ira-lives.c (single_reg_class): Ditto.
5869 (ira_implicitly_set_insn_hard_regs): Ditto.
5871 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5873 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5874 (dataflow_set_preserve_mem_locs): Likewise.
5876 2011-05-09 Philipp Thomas <pth@suse.de>
5878 * config/mep/mep.c (mep_validate_vliw): Syntax description
5879 should not be translated.
5881 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5883 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5884 * config/mips/mips-tables.opt: New file (generated).
5885 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5886 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5887 MIPS_ARCH_OPTION_NATIVE): Define.
5888 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5890 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5891 mips_parse_cpu): Remove.
5892 (mips_cpu_info_from_opt, mips_default_arch): New.
5893 (mips_handle_option): Don't assert that global structures are in
5894 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5895 (mips_option_override): Use new variables and functions to set
5896 state of these options. Use strcmp to check for individual CPU names.
5897 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5899 * config/mips/mips.opt (march=): Use ToLower and Enum.
5900 (mips): Use ToLower, Enum and Var.
5901 (mtune=): Use ToLower and Enum.
5902 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5904 2011-05-08 Jan Hubicka <jh@suse.cz>
5906 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5907 Arrange type pairs to be UID ordered.
5908 (gimple_lookup_type_leader): Make inline.
5910 2011-05-09 Nick Clifton <nickc@redhat.com>
5913 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5917 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5920 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5922 * combine.c (simplify_comparison): Abstract out parts into...
5923 (simplify_compare_const): ... new function.
5924 (try_combine): Generalize parallel arithmetic/compare combining
5925 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5927 2011-05-08 Jan Hubicka <jh@suse.cz>
5929 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5930 (cgraph_create_virtual_clone): Call hooks once virtual clone
5932 * cgraph.h (cgraph_clone_node): Update prototype.
5933 * ipa-cp.c (ipcp_estimate_growth): Use
5934 estimate_ipcp_clone_size_and_time.
5935 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5936 * lto-cgraph.c (input_node): Update.
5937 * ipa-inline.c (recursive_inlining): Update.
5938 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5939 (evaluate_conditions_for_known_args): Break out from ...
5940 (evaluate_conditions_for_edge): ... here.
5941 (evaluate_conditions_for_ipcp_clone): New function.
5942 (inline_node_duplication_hook): Update clone summary based
5944 (estimate_callee_size_and_time): Rename to ...
5945 (estimate_node_size_and_time): take NODE instead of EDGE;
5946 take POSSIBLE_TRUTHS as argument.
5947 (estimate_callee_size_and_time): Update.
5948 (estimate_ipcp_clone_size_and_time): New function.
5949 (do_estimate_edge_time): Update.
5951 2011-05-08 Richard Guenther <rguenther@suse.de>
5955 * expmed.c (expand_shift_1): Compute adjusted constant shift
5958 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5960 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5962 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5964 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5966 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5968 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5970 2011-05-07 Jan Hubicka <jh@suse.cz>
5972 * ipa-inline-transform.c (inline_call): Account when program size
5974 * ipa-inline.c (relative_time_benefit): New function.
5975 (edge_badness): Reorganize to be power 2 based; fix thinko when
5976 computing badness for negative growth; update comments to match
5977 reality; better dumps.
5979 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5981 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5982 type to bool and adjust comment.
5983 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5984 (fold_mathfn_compare): Remove calls to global_bindings_p.
5985 (fold_inf_compare): Likewise.
5986 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5987 * c-tree.h (global_bindings_p): Adjust prototype.
5988 * c-decl.c (global_bindings_p): Return bool and simplify.
5990 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5992 PR tree-optimization/48837
5993 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5994 when accumulator transformation is performed.
5996 2011-05-06 Jan Hubicka <jh@suse.cz>
5998 * i386.h (ix86_tune_indices): Add
5999 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6000 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6001 * i386.c (initial_ix86_tune_features): Add
6002 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6003 (software_prefetching_beneficial_p): Remove predicate.
6004 (ix86_option_override_internal): Use new macro.
6006 2011-05-06 Jan Hubicka <jh@suse.cz>
6008 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6010 2011-05-06 Jan Hubicka <jh@suse.cz>
6012 * cgraph.c (cgraph_add_thunk): Create real function node instead
6013 of alias node; finalize it and mark needed/reachale; arrange visibility
6014 to be right and add it into the corresponding same comdat group list.
6015 (dump_cgraph_node): Dump thunks.
6016 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6017 cgraph_function_with_gimple_body_p,
6018 cgraph_first_function_with_gimple_body,
6019 cgraph_next_function_with_gimple_body): New functions.
6020 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6022 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6023 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6024 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6025 devirtualization when optimizing.
6026 (verify_cgraph_node): Verify thunks.
6027 (cgraph_analyze_function): Analyze thunks.
6028 (cgraph_mark_functions_to_output): Output thunks only in combination
6029 with function they are assigned to.
6030 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6031 alias into normal node.
6032 (assemble_thunks): New functoin.
6033 (cgraph_expand_function): Use it.
6034 * lto-cgraph.c (lto_output_node): Stream thunks.
6035 (input_overwrite_node): Stream in thunks.
6036 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6037 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6038 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6039 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6040 (inline_analyze_function): Do not care about thunk jump functions.
6041 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6042 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6043 cgraph_function_with_gimple_body_p.
6044 * passes.c (do_per_function_toporder): Use
6045 cgraph_function_with_gimple_body_p.
6046 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6047 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6048 (function_called_by_processed_nodes_p): Likewise.
6050 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6052 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6053 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6055 (mabi=): Replace with separate entries for mabi=altivec,
6056 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6057 mabi=ieeelongdouble and mabi=ibmlongdouble.
6058 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6059 check for -mabi=spe without SPE ABI support here.
6060 (rs6000_handle_option): Replace OPT_mabi_ handling with
6061 OPT_mabi_altivec and OPT_mabi_spe handling.
6063 2011-05-06 Cary Coutant <ccoutant@google.com>
6065 * dwarf2out.c (contains_subprogram_definition): New function.
6066 (should_move_die_to_comdat): Call it.
6068 2011-05-06 Jeff Law <law@redhat.com>
6070 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6071 remove_ctrl_stmt_and_useless_edges.
6072 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6073 (fixup_template_block, thread_single_edge): Likewise.
6074 (mark_threaded_blocks): Use THREAD_TARGET.
6076 2011-05-06 Alan Modra <amodra@gmail.com>
6079 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6080 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6082 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6084 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6085 constraint modifier to "r".
6087 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6089 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6090 fall through for OPT_mcmodel_.
6092 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6094 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6096 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6098 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6101 * config/arm/arm.opt (marm): Document it.
6102 (mthumb): Reject negative variant.
6104 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6107 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6108 Fix typo in "ccvt" variable name.
6110 2011-05-06 Tristan Gingold <gingold@adacore.com>
6113 * config/vms/vms-ar.c (main): Remove cwd variable.
6115 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6118 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6120 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6122 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6123 * gimplify.c (gimplify_switch_expr): Likewise.
6124 * omp-low.c (expand_omp_sections): Likewise.
6125 * tree-eh.c (lower_try_finally_switch): Likewise.
6126 (lower_eh_dispatch): Likewise.
6127 * tree.h (build_case_label): Declare.
6128 * tree.c (build_case_label): Define.
6130 2011-05-05 Jason Merrill <jason@redhat.com>
6133 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6134 (copy_statement_list): Don't recurse.
6135 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6138 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6140 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6141 through from -mfpu= handling.
6142 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6144 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6146 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6149 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6151 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6153 (hppa[12]*-*-hpux11*): Ditto.
6154 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6155 * config/ia64/hpux-unix2003.h: New.
6156 * config/pa/pa-hpux1131.opt: New.
6157 * config/pa/pa-hpux1131.h: New.
6158 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6159 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6160 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6162 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6165 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6166 instead of mode as 3rd argument to recursive call.
6167 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6168 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6170 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6171 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6172 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6173 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6175 2011-05-05 Julian Brown <julian@codesourcery.com>
6177 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6178 parenthesis in D-register case.
6180 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6182 * opt-functions.awk (var_type_struct): Handle Enum options.
6183 * optc-gen.awk: Don't check range of variables of character type.
6184 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6185 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6186 rs6000_sdata_name, rs6000_explicit_options): Remove.
6187 (rs6000_option_override_internal): Check for -malign-power here.
6188 Use global_options_set instead of rs6000_explicit_options.
6189 (rs6000_parse_fpu_option): Remove.
6190 (rs6000_handle_option): Access variables via opts and opts_set
6191 pointers. Use error_at and warning_at. Add fall-through
6192 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6193 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6194 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6195 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6196 here. Don't use rs6000_parse_fpu_option.
6197 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6198 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6199 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6201 (mspe): Use Var and Save.
6202 (mtraceback=): Use Enum and Var.
6203 (rs6000_traceback_type): New Enum and EnumValue entries.
6204 (mfloat-gprs=): Use Enum, Var and Save.
6205 (rs6000_float_gprs): New Enum and EnumValue entries.
6206 (mlong-double-): use Var and Save.
6207 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6208 (malign-): Use Enum and Var.
6209 (rs6000_alignment_flags): New Enum and EnumValue entries.
6211 (fpu_type_t): New Enum and EnumValue entries.
6212 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6213 global_options_set instead of rs6000_explicit_options.
6214 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6215 global_options_set instead of rs6000_explicit_options.
6216 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6217 global_options_set instead of rs6000_explicit_options.
6218 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6219 global_options_set instead of rs6000_explicit_options.
6220 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6221 global_options_set instead of rs6000_explicit_options.
6222 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6223 global_options_set instead of rs6000_explicit_options.
6224 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6226 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6227 global_options_set instead of rs6000_explicit_options.
6228 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6229 (rs6000_cmodel): New Enum and EnumValue entries.
6230 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6231 global_options_set instead of rs6000_explicit_options.
6232 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6233 (mtls-size=): Use Enum and Var.
6234 (rs6000_tls_size): New Enum and EnumValue entries.
6236 2011-05-05 Michael Matz <matz@suse.de>
6238 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6239 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6240 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6241 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6242 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6243 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6244 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6245 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6246 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6247 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6248 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6249 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6250 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6251 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6252 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6253 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6255 2011-05-05 Richard Guenther <rguenther@suse.de>
6257 * expmed.c (expand_variable_shift): Rename to ...
6258 (expand_shift_1): ... this. Take an expanded shift amount.
6259 For rotates recurse directly not building trees for the shift amount.
6260 (expand_variable_shift): Wrap around expand_shift_1.
6261 (expand_shift): Adjust.
6263 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6265 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6267 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6269 * tree.h (get_pending_sizes): Remove prototype.
6270 (put_pending_size): Likewise.
6271 (put_pending_sizes): Likewise.
6272 * stor-layout.c (pending_sizes): Delete.
6273 (get_pending_sizes): Likewise.
6274 (put_pending_size): Likewise.
6275 (put_pending_sizes): Likewise.
6276 (variable_size): Do not call put_pending_size and tidy up.
6277 * function.h (struct function): Remove dont_save_pending_sizes_p.
6278 * lto-streamer-in.c (input_function): Do not stream it.
6279 * lto-streamer-out.c (output_function): Likewise.
6280 * tree-inline.c (initialize_cfun): Do not copy it.
6281 * c-decl.c (store_parm_decls): Do not set it.
6282 * omp-low.c (create_task_copyfn): Likewise.
6283 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6285 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6287 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6289 (*movdf_internal): Ditto.
6290 (*movdf_internal_nointeger): Ditto.
6291 (*movsf_internal): Ditto.
6293 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6295 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6296 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6297 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6298 (c_variable_size): Remove.
6299 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6300 call put_pending_sizes.
6301 (get_parm_info): Add parameter expr. Use it to set
6302 arg_info->pending_sizes.
6303 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6305 * c-parser.c (c_parser_parms_declarator): Update call to
6306 c_parser_parms_list_declarator.
6307 (c_parser_parms_list_declarator): Take parameter expr. Update
6308 call to push_parm_decl. Update recursive call. Don't call
6309 get_pending_sizes. Update calls to get_parm_info.
6310 (c_parser_objc_method_definition): Update calls to
6311 c_parser_objc_method_decl and objc_start_method_definition.
6312 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6313 (c_parser_objc_method_decl): Add parameter expr. Update call to
6315 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6316 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6317 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6319 2011-05-05 Michael Hope <michael.hope@linaro.org>
6322 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6325 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6327 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6328 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6329 (spu_output_mi_thunk): New function.
6331 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6333 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6334 targetm.asm_out.print_operand.
6335 * config/sol2.c: Include target.h.
6337 2011-05-04 Jan Hubicka <jh@suse.cz>
6339 * ipa-inline.c (reset_edge_caches): New function.
6340 (update_caller_keys): Add check_inlinablity_for; do not
6341 reset edge caches; remove now unnecesary loop.
6342 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6343 (update_all_callee_keys): Likewise.
6344 (inline_small_functions): Sanity check cache; update code
6347 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6349 PR rtl-optimization/47612
6350 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6351 as the last insn of the sequence to be moved.
6353 2011-05-04 Tobias Burnus <burnus@net-b.de>
6356 * doc/invoke.texi (Ofast): Document that it
6357 enables Fortran's -fno-protect-parens.
6359 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6361 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6363 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6365 * stor-layout.c (variable_size): Do not issue errors.
6367 2011-05-04 Richard Guenther <rguenther@suse.de>
6369 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6370 for array-ref indices.
6371 (tree_coverage_counter_addr): Likewise.
6372 (build_fn_info_type): Use size_int for index types.
6373 (build_gcov_info): Likewise.
6375 2011-05-04 Richard Guenther <rguenther@suse.de>
6377 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6379 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6380 for constructor indices.
6381 (push_init_level): Likewise.
6383 2011-05-04 Richard Guenther <rguenther@suse.de>
6385 * explow.c (promote_mode): Move variable declarations before code.
6387 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6389 * tree.h (build_function_type_array): Declare.
6390 (build_varargs_function_type_array): Declare.
6391 (build_function_type_vec, build_varargs_function_type_vec): Define.
6392 * tree.c (build_function_type_array_1): New function.
6393 (build_function_type_array): New function.
6394 (build_varargs_function_type_array): New function.
6396 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6398 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6399 before setting STMT_VINFO_TYPE.
6401 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6403 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6404 instead of spu_pass_by_reference.
6406 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6408 * calls.c (emit_library_call_value_1): Invoke
6409 promote_function_mode hook on libcall arguments.
6410 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6411 argument being NULL.
6412 * targhooks.c (default_promote_function_mode): Lisewise.
6413 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6414 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6416 * doc/tm.texi: Document that TYPE argument might be NULL.
6418 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6420 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6422 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6425 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6427 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6429 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6430 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6432 * mips-tfile.c: ... here.
6433 Don't include coretypes.h, tm.h, filenames.h.
6434 (saber_stop): Remove definition and all calls.
6435 [__SABER__]: Remove.
6436 (__LINE__): Remove default.
6437 (Size_t, Ptrdiff_t): Remove definitions.
6438 Replace by size_t, ptrdiff_t.
6439 [!MIPS_DEBUGGING_INFO]: Remove.
6440 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6441 (progname): Add const.
6443 Replace all uses by static.
6444 (ALIGN_SYMTABLE_OFFSET): Remove default.
6445 * mips-tdump.c: Don't include coretypes.h, tm.h.
6446 Remove !MIPS_IS_STAB guard.
6447 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6448 $(TM_H), filenames.h dependencies.
6449 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6451 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6454 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6455 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6457 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6460 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6461 account and save/restore RETS.
6462 (PROFILE_BEFORE_PROLOGUE): Define.
6463 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6464 the push insn to use predecrement.
6466 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6469 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6471 2011-05-04 Nick Clifton <nickc@redhat.com>
6473 * config/mn10300/mn10300.c: Include cfgloop.h.
6475 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6476 Lcc or a FLcc insn into the instruction stream.
6477 (mn10300_block_contains_call): New function. Returns true if the
6478 given basic block contains a CALL insn.
6479 (mn10300_loop_contains_call_insn): New function. Returns true if
6480 the given loop contains a CALL insn.
6481 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6482 to use the SETLB and Lcc or FLcc insns.
6483 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6484 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6485 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6486 disable the SETLB optimization.
6487 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6488 __SETLB__ or __NO_SETLB__.
6489 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6490 (movsf_internal): Handle MDR register.
6491 (cmpsi): Make visible.
6492 (setlb): New pattern.
6494 (FLcc): New pattern.
6496 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6499 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6500 for reg<->xmm moves.
6501 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6502 (vec_concatv2di_rex64_sse): Ditto.
6503 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6504 (*vec_extractv2di_1_rex64): Ditto.
6507 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6509 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6511 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6513 2011-05-04 Richard Guenther <rguenther@suse.de>
6515 * tree.h (int_const_binop): Remove notrunc argument.
6516 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6517 create integer constants that are properly truncated.
6518 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6519 (const_binop): Remove zero notrunc argument to int_const_binop.
6520 (size_binop_loc): Likewise.
6521 (fold_div_compare): Likewise.
6522 (maybe_canonicalize_comparison_1): Likewise.
6523 (fold_comparison): Likewise.
6524 (fold_binary_loc): Likewise.
6525 (multiple_of_p): Likewise.
6526 * expr.c (store_constructor): Likewise.
6527 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6528 (maybe_fold_stmt_addition): Likewise.
6529 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6530 * stor-layout.c (layout_type): Likewise.
6531 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6532 * tree-sra.c (build_ref_for_offset): Likewise.
6533 (build_user_friendly_ref_for_offset): Likewise.
6534 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6535 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6536 * tree-ssa-loop-niter.c (inverse): Likewise.
6537 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6538 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6539 * tree-switch-conversion.c (check_range): Likewise.
6540 (build_constructors): Likewise.
6541 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6542 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6543 (extract_range_from_assert): Likewise.
6544 (vrp_int_const_binop): Likewise.
6545 (extract_range_from_binary_expr): Likewise.
6546 (extract_range_from_unary_expr): Likewise.
6547 (check_array_ref): Likewise.
6548 (find_case_label_range): Likewise.
6549 (simplify_div_or_mod_using_ranges): Likewise.
6550 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6551 comparing case labels for merging.
6553 2011-05-03 Mark Wielaard <mjw@redhat.com>
6555 * dwarf2out.c (debug_str_hash_forced): Removed.
6556 (gen_label_for_indirect_string): Removed.
6557 (get_debug_string_label): Removed.
6558 (AT_string_form): Generate label directly.
6559 (output_indirect_string): Test indirect_string_node for
6560 DW_FORM_strp instead of checking label and refcount.
6561 (prune_indirect_string): Removed.
6562 (prune_unused_types): Don't check debug_str_hash_forced or
6563 call prune_indirect_string.
6565 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6568 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6570 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6574 * combine.c (try_combine): Skip debug insns at m_split tests.
6576 2011-04-26 Mark Wielaard <mjw@redhat.com>
6579 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6580 when info_section_emitted.
6582 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6584 * config/mips/mips-opts.h: New.
6585 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6587 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6588 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6589 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6591 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6593 (mips_abi, mips_code_readable): Don't declare.
6594 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6595 (mabi=): Use Enum and Var.
6596 (mips_abi): New Enum and EnumValue entries.
6597 (mcode-readable=): Use Enum and Var.
6598 (mips_code_readable_setting): New Enum and EnumValue entries.
6599 (mr10k-cache-barrier=): Use Enum and Var.
6600 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6602 2011-05-03 Jan Hubicka <jh@suse.cz>
6604 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6605 replace hash by pointer map.
6606 (cgraph_node_set_element_def, cgraph_node_set_element,
6607 const_cgraph_node_set_element, varpool_node_set_element_def,
6608 varpool_node_set_element, const_varpool_node_set_element): Remove.
6609 (free_cgraph_node_set, free_varpool_node_set): New function.
6610 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6611 * tree-emutls.c: Free varpool node set.
6612 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6613 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6614 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6615 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6616 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6617 Move here from ipa.c; implement using pointer_map
6618 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6619 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6620 debug_cgraph_node_set, varpool_node_set_new,
6621 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6622 dump_varpool_node_set, debug_varpool_node_set):
6623 Move to ipa-uitls.c.
6624 * passes.c (ipa_write_summaries): Update.
6626 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6628 From Mike Frysinger:
6629 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6630 bf542/bf544/bf547/bf548/bf549.
6632 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6634 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6636 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6639 * config/bfin/bfin.md (MOVCC): New mode_macro.
6640 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6641 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6642 comments from generated assembly.
6644 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6647 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6648 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6649 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6650 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6651 * config/bfin/lib1funcs.asm (___muldi3): New function.
6653 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6655 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6656 build_function_type_list instead of build_function_type.
6657 Rearrange initialization of `args' to do so.
6659 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6661 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6662 instead of build_function_type.
6664 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6666 * config/rs6000/rs6000.c (spe_init_builtins): Call
6667 build_function_type_list instead of build_function_type.
6668 (paired_init_builtins, altivec_init_builtins): Likewise.
6669 (builtin_function_type): Likewise.
6671 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6673 * config/sh/sh.c (sh_media_init_builtins): Call
6674 build_function_type_list instead of build_function_type.
6676 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6678 * config/sparc/sparc.c (sparc_file_end): Call
6679 build_function_type_list instead of build_function_type.
6681 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6683 * config/alpha/alpha.c (alpha_init_builtins): Call
6684 build_function_type_list instead of build_function_type.
6686 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6688 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6689 build_function_type_list instead of build_function_type.
6691 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6693 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6694 build_function_type_list instead of build_function_type.
6695 Delete `endlink' variable.
6697 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6699 * config/avr/avr.c (avr_init_builtins): Call
6700 build_function_type_list instead of build_function_type.
6702 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6704 * config/picochip/picochip.c (picochip_init_builtins): Call
6705 build_function_type_list instead of build_function_type.
6706 Delete `endlink' variable.
6708 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6710 * config/bfin/bfin.c (bfin_init_builtins): Call
6711 build_function_type_list instead of build_function_type.
6713 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6716 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6717 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6719 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6722 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6723 libbffastfp overrides libgcc when -mfast-fp.
6725 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6727 Originally from Bernd Schmidt
6728 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6729 * config/bfin/bfin.c (override_options): Test it and error if
6732 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6734 Originally From Bernd Schmidt
6735 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6738 2011-05-03 Jeff Law <law@redhat.com>
6740 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6741 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6742 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6743 than accessing AUX field directly. Free the AUX field before
6745 (thread_block, thread_through_loop_header): Likewise.
6746 (thread_single_edge, mark_threaded_blocks): Likewise.
6747 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6748 (register_jump_thread): Do not attempt to thread to a NULL edge.
6750 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6752 * function.c (init_function_start): Call decide_function_section.
6753 * varasm.c (decide_function_section): New function.
6754 (assemble_start_function): When not using
6755 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6756 or first_function_block_is_cold.
6757 * rtl.h (decide_function_section): Declare.
6759 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6760 Jakub Jelinek <jakub@redhat.com>
6763 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6764 only succeed if req_mode is the same as set_mode.
6766 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6768 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6769 * genemit.c (gen_exp): Handle RETURN.
6770 * emit-rtl.c (verify_rtx_sharing): Likewise.
6771 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6772 * rtl.c (copy_rtx): RETURN is shared.
6773 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6775 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6776 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6777 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6778 * config/cris/cris.c (cris_expand_return): Likewise.
6779 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6780 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6781 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6782 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6783 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6785 * config/v850/v850.c (expand_epilogue): Likewise.
6786 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6787 * config/arm/arm.md (epilogue): Likewise.
6788 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6789 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6790 variable to ret_reg.
6792 2011-05-03 Richard Guenther <rguenther@suse.de>
6795 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6796 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6797 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6799 2011-05-03 Richard Guenther <rguenther@suse.de>
6801 * c-decl.c (grokdeclarator): Instead of looking at
6802 TREE_OVERFLOW check if the constant fits in the index type.
6804 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6806 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6807 (vec_store_lanes<mode><mode>): Likewise.
6809 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6811 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6812 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6813 convert_optab_index values.
6814 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6815 * genopinit.c (optabs): Initialize the new optabs.
6816 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6817 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6818 (expand_STORE_LANES): New functions.
6819 * tree.h (build_array_type_nelts): Declare.
6820 * tree.c (build_array_type_nelts): New function.
6821 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6822 (vect_model_load_cost): Likewise.
6823 (vect_store_lanes_supported, vect_load_lanes_supported)
6824 (vect_record_strided_load_vectors): Declare.
6825 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6826 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6827 (vect_transform_strided_load): Split out statement recording into...
6828 (vect_record_strided_load_vectors): ...this new function.
6829 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6830 (write_vector_array, create_array_ref): New functions.
6831 (vect_model_store_cost): Add store_lanes_p argument.
6832 (vect_model_load_cost): Add load_lanes_p argument.
6833 (vectorizable_store): Try to use store-lanes functions for
6835 (vectorizable_load): Likewise load-lanes and loads.
6836 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6837 to vect_model_store_cost.
6838 (vect_build_slp_tree): Likewise vect_model_load_cost.
6840 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6842 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6843 * hooks.c (hook_bool_mode_uhwi_false): New function.
6844 * target.def (array_mode_supported_p): New hook.
6845 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6846 * doc/tm.texi: Regenerate.
6847 * stor-layout.c (mode_for_array): New function.
6848 (layout_type): Use it.
6849 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6850 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6852 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6855 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6856 for -fstack-check if the size to allocate is negative.
6858 2011-05-02 Lawrence Crowl <crowl@google.com>
6860 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6861 (timevar_cond_start): New for starting a timer only when it is not
6863 (timevar_cond_stop): New for stopping a timer when it was not already
6866 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6867 (timevar_cond_start): New as above.
6868 (timevar_cond_stop): New as above.
6870 * timevar.def: Add start/stop timers for compiler phases,
6871 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6872 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6873 and TV_PHASE_FINALIZE.
6874 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6875 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6876 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6877 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6878 Make unused TV_OVERLOAD into a start/stop timer.
6880 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6881 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6882 to indicate that they are start/stop timers.
6884 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6885 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6886 Move initialization to do_compile.
6887 (do_compile): Add initialization from above.
6888 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6890 * c-decl.c (c_write_global_declarations): Add start/stop of
6891 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6893 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6894 or TV_PARSE_INLINE, as appropriate.
6895 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6896 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6898 2011-05-02 Jason Merrill <jason@redhat.com>
6901 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6903 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6906 * c-decl.c (finish_decl): Only create a composite if the types are
6909 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6911 * config/fr30/fr30-protos.h (Mmode): Don't define.
6912 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6913 definition where used.
6914 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6915 define. Expand definitions where used.
6916 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6917 Expand definitions where used.
6918 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6919 rx_function_arg, rx_function_arg_advance,
6920 rx_function_arg_boundary): Expand definitions of those macros.
6921 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6922 definition where used.
6924 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6926 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6928 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6929 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6930 with *movv2sf_internal_rex64_avx.
6931 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6932 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6933 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6934 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6935 "vex" in "prefix" attribute calculation.
6936 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6938 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6941 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6942 inputs match the output.
6944 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6947 * config/m68k/m68k.c (m68k_expand_prologue): Set
6948 current_function_static_stack_size.
6950 2011-05-02 Jan Hubicka <jh@suse.cz>
6952 * lto-streamer.c (lto_streamer_cache_insert_1,
6953 lto_streamer_cache_lookup, lto_streamer_cache_create,
6954 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6955 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6957 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6959 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6960 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6961 config/m68k/t-opts: New files.
6962 * config/m68k/m68k-tables.opt: New file (generated).
6963 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6964 extra_options and m68k/t-opts to tmake_file.
6965 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6966 (all_isas): Initialize using m68k-isas.def.
6967 (all_microarchs): Initialize using m68k-microarchs.def.
6968 (m68k_find_selection): Remove.
6969 (m68k_handle_option): Don't assert that global structures are in
6970 use. Use error_at. Access variables via opts pointer. Don't
6971 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6972 directly for -m68020-40 and -m68020-60.
6973 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6974 m68k_tune_entry here.
6975 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6977 (m68k_library_id_string): Remove declaration.
6978 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6979 (m68k_library_id_string): New Variable.
6980 (march=, mcpu=, mtune=): Use Enum and Var.
6982 2011-05-02 Richard Guenther <rguenther@suse.de>
6984 * varasm.c (output_constructor_regular_field): Compute zero-based
6985 index with double-ints. Make sure to ICE instead of producing
6987 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6988 in asserts. Properly use a signed type.
6990 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6992 * config/i386/sse.md (V): New mode iterator.
6993 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6995 (V_256): Rename from AVX256MODE.
6996 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6997 condition to all users.
6999 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7000 condition to all users.
7001 (VF_128): Make V4SF mode unconditional.
7002 (VF_256): Rename from AVX256MODEF2P.
7003 (VI4F_128): Rename from SSEMODE4S.
7004 (VI8F_128): Rename from SSEMODE2D.
7005 (VI4F_256): Rename from AVX256MODE8P.
7006 (VI8F_256): Rename from AVX256MODE4P.
7007 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7008 (ssescalarmodesuffix): Remove SF and DF modes.
7009 (SSEMODE124): Remove.
7010 (SSEMODE1248): Ditto.
7011 (SSEMODEF2P): Ditto.
7012 (AVXMODEF2P): Ditto.
7013 (AVXMODEFDP): Ditto.
7014 (AVXMODEFSP): Ditto.
7015 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7017 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7019 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7020 xop_pcmov_<mode>256. Use V mode iterator.
7022 Adjust RTX patterns globally for renamed mode attributes.
7024 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7026 * haifa-sched.c (sched_emit_insn): Emit insn before first
7027 non-scheduled insn. Inform back-end about new insn. Add
7028 new insn to scheduled_insns list.
7030 2011-05-02 Richard Guenther <rguenther@suse.de>
7032 PR tree-optimization/48822
7033 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7034 (process_scc): Indicate which iteration we start.
7036 2011-05-02 Jan Hubicka <jh@suse.cz>
7038 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7039 (lto_section_overrun): New.
7040 * lto-section-out.c (append_block): Rename to ...
7041 (lto_append_block): ... this one; export.
7042 (lto_output_1_stream): Move lto lto-streamer.h
7043 (lto_output_data_stream): Update.
7044 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7045 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7048 2011-05-02 Richard Guenther <rguenther@suse.de>
7050 * tree.c (tree_code_counts): New global array.
7051 (record_node_allocation_statistics): Count individual tree codes.
7052 (dump_tree_statistics): Dump individual code stats.
7054 2011-05-01 Jan Hubicka <jh@suse.cz>
7056 * ipa-inline.c (caller_growth_limits): Fix thinko when
7057 looking for largest stack frame.
7058 * ipa-inline.h (dump_inline_summary): Declare.
7059 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7061 (dump_inline_summary): Export.
7062 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7064 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7066 * reginfo.c (memory_move_cost): Change rclass argument type form
7067 'enum reg_class' to reg_class_t.
7068 * reload.h (memory_move_cost): Update prototype.
7069 * postreload.c reload_cse_simplify_set): Change type dclass var to
7071 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7073 (ira_allocate_and_set_costs): Change aclass argument type form
7074 'enum reg_class' to reg_class_t.
7075 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7076 Change aclass argument type to reg_class_t.
7077 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7079 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7080 memory_move_cost call.
7082 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7083 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7084 Change type tmp var to reg_class_t.
7086 2011-04-30 Jan Hubicka <jh@suse.cz>
7088 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7089 inlining into function with flatten attribute.
7090 (want_inline_small_function_p): Be more realistic about inlining
7091 cold calls where callee size grows.
7093 2011-04-30 Jan Hubicka <jh@suse.cz>
7095 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7098 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7100 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7101 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7102 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7103 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7104 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7105 (print_operand): Rename to...
7106 (sparc_print_operand): ...this. Make static. Adjust
7107 sparc_print_operand function call.
7108 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7111 2011-04-30 Jan Hubicka <jh@suse.cz>
7114 * ipa-inline.c (early_inliner): Disable when doing late
7115 addition of function.
7117 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7119 * dwarf2out.c (get_address_mode): New inline.
7120 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7121 if not dwarf_strict emit
7122 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7123 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7124 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7125 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7126 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7127 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7128 mem_loc_descriptor callers.
7129 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7130 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7131 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7132 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7133 (base_types): New variable.
7134 (get_base_type_offset, calc_base_type_die_sizes,
7135 base_type_for_mode, mark_base_types, base_type_cmp,
7136 move_marked_base_types): New functions.
7137 (calc_die_sizes): Assert that die_offset is 0 or equal to
7139 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7140 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7141 callers. If not dwarf_strict, call mem_loc_descriptor even for
7142 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7143 (gen_subprogram_die): Don't give up on call site parameters
7144 with non-integral or large integral modes. Adjust
7145 mem_loc_descriptor callers.
7146 (prune_unused_types): Call prune_unused_types_mark on base_types
7148 (resolve_addr): Call mark_base_types.
7149 (dwarf2out_finish): Call move_marked_base_types.
7151 PR tree-optimization/48809
7152 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7154 (gen_inbound_check): Don't compute index_expr - range_min in utype
7155 again, instead reuse SSA_NAME initialized in build_arrays.
7156 Remove two useless gsi_for_stmt calls.
7158 2011-04-29 Jeff Law <law@redhat.com>
7160 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7162 2011-04-29 Martin Jambor <mjambor@suse.cz>
7164 * cgraph.h (cgraph_postorder): Remove declaration.
7165 * ipa-utils.h (ipa_free_postorder_info): Declare.
7166 (ipa_reverse_postorder): Likewise.
7167 * cgraphunit.c: Include ipa-utils.h.
7168 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7169 * ipa-inline.c: Include ipa-utils.h.
7170 (ipa_inline): Update call to ipa_reverse_postorder.
7171 * ipa-pure-const.c (propagate_pure_const): Update call to
7172 ipa_reduced_postorder and ipa_print_order. Call
7173 ipa_free_postorder_info to clean up.
7174 (propagate_nothrow): Likewise.
7175 * ipa-reference.c (propagate): Removed a useless call to
7176 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7177 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7178 * ipa.c: Include ipa-utils.h.
7179 (ipa_profile): Update call to ipa_reverse_postorder.
7180 (cgraph_postorder): Moved to...
7181 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7182 (ipa_utils_print_order): Renamed to ipa_print_order.
7183 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7185 (ipa_free_postorder_info): New function.
7186 * passes.c: Include ipa-utils.h.
7187 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7188 (ipa_write_summaries): Likewise.
7189 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7190 (cgraphunit.o): Likewise.
7192 (ipa-inline.o): Likewise.
7194 2011-04-29 Jan Hubicka <jh@suse.cz>
7196 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7197 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7198 * ipa-inline.h (clause_t): Turn into unsigned int.
7199 * ipa-inline-analysis.c (add_clause): Do more simplification.
7200 (and_predicates): Shortcut more cases.
7201 (predicates_equal_p): Move forward; check that clauses are properly
7203 (or_predicates): Shortcut more cases.
7204 (edge_execution_predicate): Rewrite as...
7205 (set_cond_stmt_execution_predicate): ... this function; handle
7206 __builtin_constant_p.
7207 (set_switch_stmt_execution_predicate): New .
7208 (compute_bb_predicates): New.
7209 (will_be_nonconstant_predicate): Update TODO.
7210 (estimate_function_body_sizes): Use compute_bb_predicates
7211 and free them later, always try to estimate if stmt is constant.
7212 (estimate_time_after_inlining, estimate_size_after_inlining):
7213 Gracefully handle optimized out edges.
7214 (read_predicate): Fix off by one error.
7216 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7218 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7220 2011-04-27 Xinliang David Li <davidxl@google.com>
7222 * tree-profile.c (init_ic_make_global_vars): Set
7223 tls attribute on ic vars.
7224 * coverage.c (coverage_end_function): Initialize
7225 function_list with zero.
7227 2011-04-29 Richard Guenther <rguenther@suse.de>
7229 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7230 for the type of the result.
7231 (fold_builtin_isascii): Likewise.
7232 (fold_builtin_toascii): Use integer_type_node where appropriate.
7233 (fold_builtin_logb): Likewise.
7234 (fold_builtin_frexp): Likewise.
7235 (fold_builtin_strstr): Likewise.
7236 (fold_builtin_strpbrk): Likewise.
7237 (fold_builtin_fputs): Likewise.
7238 (fold_builtin_sprintf): Likewise.
7239 (fold_builtin_snprintf): Likewise.
7240 (fold_builtin_printf): Likewise.
7241 (do_mpfr_remquo): Use a proper type for the assigned constant.
7242 (do_mpfr_lgamma_r): Likewise.
7243 * dwarf2out.c (resolve_one_addr): Use size_int.
7244 * except.c (init_eh): Likewise.
7245 (assign_filter_values): Use integer_type_node for filter values.
7246 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7248 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7249 for EH region numbers.
7250 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7251 for the shift amount.
7253 2011-04-29 Richard Guenther <rguenther@suse.de>
7255 * expr.h (expand_shift): Rename to ...
7256 (expand_variable_shift): ... this.
7257 (expand_shift): Take a constant shift amount.
7258 * expmed.c (expand_shift): Rename to ...
7259 (expand_variable_shift): ... this.
7260 (expand_shift): New wrapper around expand_variable_shift.
7261 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7262 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7263 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7264 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7265 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7266 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7267 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7268 emit_store_flag_1, emit_store_flag): Likewise.
7269 * builtins.c (expand_builtin_signbit): Likewise.
7270 * calls.c (load_register_parameters): Likewise.
7271 * function.c (assign_parm_setup_block): Likewise.
7272 * lower-subreg.c (resolve_shift_zext): Likewise.
7273 * optabs.c (widen_bswap, expand_abs_nojump,
7274 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7275 * spu/spu.c (spu_expand_extv): Likewise.
7276 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7278 2011-04-29 Richard Guenther <rguenther@suse.de>
7280 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7281 for the remapped region number.
7282 * predict.c (build_predict_expr): Use integer_type_node for the
7284 * fold-const.c (fold_binary_loc): Use integer_type_node for
7285 the shift amount. Use a proper type for the PLUS_EXPR operand.
7287 2011-04-29 Michael Matz <matz@suse.de>
7289 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7290 other trees that just builtins.
7291 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7293 2011-04-29 Richard Guenther <rguenther@suse.de>
7295 * tree-nested.c (get_trampoline_type): Use size_int.
7296 (get_nl_goto_field): Likewise.
7297 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7299 (lower_eh_constructs_2): Likewise.
7300 (lower_resx): Likewise.
7301 (lower_eh_dispatch): Likewise.
7302 * tree-mudflap.c (mf_build_string): Use size_int.
7303 (mudflap_register_call): Use integer_type_node for the flag.
7304 (mudflap_enqueue_constant): Use size_int.
7305 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7306 instead of rebuilding it.
7308 2011-04-29 Richard Guenther <rguenther@suse.de>
7310 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7311 Handle OBJ_TYPE_REF.
7312 (find_func_aliases_for_call): Use it more consistently.
7314 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7316 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7317 (rank_for_schedule): Use it.
7318 (schedule_block): Set it.
7320 2011-04-28 David Li <davidxl@google.com>
7322 * tree.c (crc32_string): Use crc32_byte.
7323 (crc32_byte): New function.
7324 * tree.h (crc32_byte): New function.
7325 * gcov.c (read_graph_file): Handle new cfg_cksum.
7326 (read_count_file): Ditto.
7327 * profile.c (instrument_values): Ditto.
7328 (get_exec_counts): Ditto.
7329 (read_profile_edge_counts): Ditto.
7330 (compute_branch_probabilities): Ditto.
7331 (compute_value_histograms): Ditto.
7332 (branch_prob): Ditto.
7333 (end_branch_prob): Ditto.
7334 * coverage.c (read_counts_file): Ditto.
7335 (get_coverage_counts): Ditto.
7336 (tree_coverage_counter_addr): Ditto.
7337 (coverage_checksum_string): Ditto.
7338 (coverage_begin_output): Ditto.
7339 (coverage_end_function): Ditto.
7340 (build_fn_info_type): Ditto.
7341 (build_fn_info_value): Ditto.
7342 * libgcov.c (gcov_exit): Ditto.
7343 * gcov-dump.c (tag_function): Ditto.
7344 (compute_checksum): Remove.
7346 2011-04-29 Alan Modra <amodra@gmail.com>
7348 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7349 unspec plus offset. Tidy macho code.
7351 2011-04-29 Martin Jambor <mjambor@suse.cz>
7353 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7354 node instead of a decl. Update all callers.
7355 * cgraph.h: Update declaration.
7357 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7359 PR tree-optimization/48765
7360 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7361 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7362 to indicate if loop aware SLP is being used. Scan the statements
7363 and update the vectorization factor according to the type of
7364 vectorization before statement analysis.
7365 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7366 pass it to vect_analyze_loop_operations.
7367 (vectorizable_reduction): Set number of copies to 1 in case of pure
7369 * tree-vect-stmts.c (vectorizable_conversion,
7370 vectorizable_assignment, vectorizable_shift,
7371 vectorizable_operation, vectorizable_type_demotion,
7372 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7374 (vectorizable_condition): Move the check that it is not SLP
7375 vectorization before the number of copies check.
7376 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7377 to vectorize the loop using SLP.
7379 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7382 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7385 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7387 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7388 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7389 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7390 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7391 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7393 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7394 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7395 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7396 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7397 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7398 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7400 * config/i386/linux.h (REG_NAME): Don't define.
7401 * config/i386/linux64.h (REG_NAME): Don't define.
7402 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7403 Undefine before defining.
7405 2011-04-28 Jan Hubicka <jh@suse.cz>
7407 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7408 nonconstant_names array.
7409 (estimate_function_body_sizes): Build nonconstant_names array; handle
7410 BUILT_IN_CONSTANT_P.
7412 2011-04-28 Richard Guenther <rguenther@suse.de>
7416 2011-04-28 Richard Guenther <rguenther@suse.de>
7418 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7419 as late as possible.
7421 2011-04-28 Richard Guenther <rguenther@suse.de>
7423 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7424 (debug_constraint): Do it here.
7425 (dump_constraints): And here.
7426 (rewrite_constraints): And here.
7427 (dump_constraint_edge): Remove.
7428 (dump_constraint_graph): Rewrite to produce DOT output.
7429 (solve_constraints): Build succ graph as late as possible.
7430 Dump constraint graphs before and after solving.
7432 2011-04-28 Richard Guenther <rguenther@suse.de>
7434 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7435 New function split out from ...
7436 (find_func_aliases): ... here. Call it.
7437 (find_func_aliases_for_call): Likewise.
7439 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7441 * internal-fn.h (internal_fn_name_array): Declare.
7442 (internal_fn_flags_array): Likewise.
7444 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7446 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7447 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7449 (ssemodefsuffix): Remove.
7450 (ssevecmodesuffix): New mode attribute.
7451 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7452 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7453 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7454 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7455 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7456 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7457 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7458 ssemodesuffix mode attribute.
7459 (float splitters): Use ssevecmodesuffix mode attribute.
7460 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7461 (sseinsmode): Rename from avxvecmode.
7462 (avxsizesuffix): Rename from avxmodesuffix.
7463 (sseintvecmode): Rename from avxpermvecmode.
7464 (ssedoublevecmode): Rename from ssedoublesizemode.
7465 (ssehalfvecmode): Rename from avxhalfvecmode.
7466 (ssescalarmode): Rename from avxscalarmode.
7467 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7468 templates for ssemodesuffix mode attribute.
7469 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7472 Adjust RTX patterns globally for renamed mode attributes.
7474 2011-04-27 Jan Hubcika <jh@suse.cz>
7476 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7477 * ipa-inline-analysis.c: Include alloc-pool.h.
7478 (edge_predicate_pool): New.
7479 (trye_predicate_p): New function
7480 (false_predicate_p): New function.
7481 (add_clause): Sanity check that false clauses are "optimized";
7482 never add clauses to predicate that is already known to be false.
7483 (and_predicate): Use flase_predicate_p.
7484 (evaulate_predicate): Rename to ...
7485 (evaluate_predicate): ... this one; update all callers; assert
7486 that false is not listed among possible truths.
7487 (dump_predicate): Use true_predicate_p.
7488 (account_size_time): Use false_predicate_p.
7489 (evaulate_conditions_for_edge): Rename to ...
7490 (evaluate_conditions_for_edge) ... this one.
7491 (edge_set_predicate): New function.
7492 (inline_edge_duplication_hook): Duplicate edge predicates.
7493 (inline_edge_removal_hook): Free edge predicates.
7494 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7495 (dump_inline_summary): Update.
7496 (estimate_function_body_sizes): Set edge predicates.
7497 (estimate_calls_size_and_time): Handle predicates.
7498 (estimate_callee_size_and_time): Update.
7499 (remap_predicate): Add toplev_predicate; update comment.
7500 (remap_edge_predicates): New function.
7501 (inline_merge_summary): Compute toplev predicate; update.
7502 (read_predicate): New function.
7503 (read_inline_edge_summary): Use it.
7504 (inline_read_section): Likewise.
7505 (write_predicate): New function.
7506 (write_inline_edge_summary): Use it.
7507 (inline_write_summary): Likewise.
7508 (inline_free_summary): Free alloc pool and edge summary vec.
7510 2011-04-27 Richard Guenther <rguenther@suse.de>
7512 * tree-ssa-structalias.c (changed_count): Remove.
7513 (changed): Use a bitmap.
7514 (unify_nodes): Adjust.
7515 (do_sd_constraint): Likewise.
7516 (do_ds_constraint): Likewise.
7517 (do_complex_constraint): Likewise.
7518 (solve_graph): Likewise.
7520 2011-04-27 Jan Hubicka <jh@suse.cz>
7522 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7524 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7526 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7527 (avx_vperm2f128_*_operand): Ditto.
7528 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7529 Use avx_vpermilp_parallel in insn condition.
7530 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7531 Use avx_vperm2f128_parallel in insn condition.
7533 2011-04-27 Richard Guenther <rguenther@suse.de>
7535 * Makefile.in (tree-ssa-structalias.o): Remove
7536 gt-tree-ssa-structalias.h dependency.
7537 (GTFILES): Remove tree-ssa-structalias.c.
7538 * tree.c (allocate_decl_uid): New function.
7539 (make_node_stat): Use it.
7540 (copy_node_stat): Likewise.
7541 * tree.h (allocate_decl_uid): Declare.
7542 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7543 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7544 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7545 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7546 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7547 (struct heapvar_map): Likewise.
7548 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7549 heapvar_insert): Likewise.
7550 (make_heapvar_for): Rename to ...
7551 (make_heapvar): ... this. Simplify.
7552 (fake_var_decl_obstack): New global var.
7553 (build_fake_var_decl): New function.
7554 (make_constraint_from_heapvar): Adjust.
7555 (handle_lhs_call): Likewise.
7556 (create_function_info_for): Likewise.
7557 (intra_create_variable_infos): Likewise.
7558 (init_alias_vars): Allocate fake_var_decl_obstack.
7559 (init_alias_heapvars, delete_alias_heapvars): Remove.
7560 (compute_points_to_sets): Do not call init_alias_heapvars.
7561 (ipa_pta_execute): Likewise.
7562 (delete_points_to_sets): Free fake_var_decl_obstack.
7564 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7566 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7567 (si_from_UTItype, si_to_UTItype): New functions.
7568 (__udivmodti4): Use them to implement type-punning.
7569 * config/spu/multi3.c (union qword_TItype): New data type.
7570 (si_from_TItype, si_to_TItype): New functions.
7571 (__multi3): Use them to implement type-punning.
7573 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7575 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7577 2011-04-27 Jan Hubicka <jh@suse.cz>
7579 * ipa-prop.c (function_insertion_hook_holder): New holder.
7580 (ipa_add_new_function): New function.
7581 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7582 Register/deregister holder.
7584 2011-04-27 Richard Guenther <rguenther@suse.de>
7586 PR tree-optimization/48772
7587 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7589 2011-04-27 Richard Guenther <rguenther@suse.de>
7591 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7592 TARGET_MEM_REF handling.
7594 2011-04-27 Nick Clifton <nickc@redhat.com>
7596 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7597 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7598 (REG_CLASS_NAMES): Likewise.
7599 (REG_CLASS_CONTENTS): Likewise.
7600 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7601 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7602 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7603 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7604 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7605 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7606 duplicate register classes.
7607 (frv_class_likely_spilled_p): Likewise.
7608 (frv_register_move_cost): Likewise.
7610 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7611 end of the regno_reg_class array.
7613 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7616 * c-typeck.c (build_binary_op): Don't wrap arguments if
7617 int_operands is true.
7619 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7622 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7623 targetm.calls.must_pass_in_stack for void type.
7625 2011-04-26 Jan Hubicka <jh@suse.cz>
7627 * cgraphbuild.c (build_cgraph_edges): Update call
7628 of cgraph_create_edge and cgraph_create_indirect_edge.
7629 * cgraph.c (cgraph_create_edge_including_clones,
7630 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7631 cgraph_update_edges_for_call_stmt_node): Do not take nest
7632 argument; do not initialize call_stmt_size/time.
7633 (dump_cgraph_node): Do not dump nest.
7634 (cgraph_clone_edge): Do not take loop_nest argument;
7635 do not propagate it; do not clone call_stmt_size/time.
7636 (cgraph_clone_node): Likewise.
7637 (cgraph_create_virtual_clone): Update.
7638 * cgraph.h (struct cgraph_edge): Remove
7639 call_stmt_size/call_stmt_time/loop_nest.
7640 (cgraph_create_edge, cgraph_create_indirect_edge,
7641 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7643 * tree-emutls.c (gen_emutls_addr): Update.
7644 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7645 loop_nest; handle indirect calls, too.
7646 (clone_inlined_nodes): Do not care about updating inline summaries.
7647 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7648 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7649 stream call_stmt_size/call_stmt_time/loop_nest.
7650 * ipa-inline.c (edge_badness): Update.
7651 (ipa_inline): dump summaries after inlining.
7652 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7654 (inline_edge_summary): New function.
7655 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7656 (inline_edge_removal_hook): Handle edge summaries.
7657 (inline_edge_duplication_hook): New hook.
7658 (inline_summary_alloc): Alloc hooks.
7659 (initialize_growth_caches): Do not register removal hooks.
7660 (free_growth_caches); Do not free removal hook.
7661 (dump_inline_edge_summary): New function.
7662 (dump_inline_summary): Use it.
7663 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7664 (inline_update_callee_summaries): New function.
7665 (inline_merge_summary): Use it.
7666 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7667 (read_inline_edge_summary): New function.
7668 (inline_read_section): Use it.
7669 (write_inline_edge_summary): New function.
7670 (inline_write_summary): Use it.
7671 (inline_free_summary): Free edge new holders.
7672 * tree-inline.c (copy_bb): Update.
7674 2011-04-26 Jason Merrill <jason@redhat.com>
7676 * tree-eh.c (lower_try_finally_switch): Create the label along with
7677 the CASE_LABEL_EXPR.
7679 2011-04-26 David S. Miller <davem@davemloft.net>
7680 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7682 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7683 * configure: Regenerate.
7685 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7688 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7690 (VEC_reduc): New code iterator and splitters for vector reduction.
7691 (VEC_reduc_name): Ditto.
7692 (VEC_reduc_rtx): Ditto.
7693 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7694 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7696 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7697 support for extracting SF on VSX.
7699 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7700 generating xscvspdp.
7701 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7702 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7703 double add, minimum, maximum vector reduction.
7704 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7705 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7706 optimize double vector reduction.
7707 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7709 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7711 * config/fr30/fr30.h (inhibit_libc): Don't define.
7712 * config/m32r/m32r-protos.h: Correct comment.
7713 * config/v850/v850.h (GHS_default_section_names,
7714 GHS_current_section_names): Use tree, not union tree_node *.
7716 2011-04-26 Xinliang David Li <davidxl@google.com>
7718 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7719 * c-family/c-opts.c (c_common_handle_option): Set
7720 warn_maybe_uninitialized.
7721 * opts.c (common_handle_option): Ditto.
7722 * common.opt: New option.
7723 * tree-ssa.c (warn_uninit): Add one more parameter.
7724 (warn_uninitialized_var): Pass warning code.
7725 * tree-flow.h: Interface change.
7727 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7729 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7730 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7731 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7733 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7735 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7736 * config/mips/mips.opt (mmips-tfile): Remove.
7738 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7739 mips-tdump reference to ...
7740 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7741 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7742 reference by Tru64 UNIX.
7744 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7747 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7748 is error_mark_node, set value to NULL.
7750 PR tree-optimization/48734
7751 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7752 if return value from maybe_fold_*_comparsions isn't something
7753 the code is prepared to handle.
7755 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7757 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7759 (ext_QIreg_nomode_operands): Remove.
7760 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7764 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7766 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7768 2011-04-26 Richard Guenther <rguenther@suse.de>
7770 * c-typeck.c (build_unary_op): Do not expand array-refs via
7771 pointer arithmetic. Only adjust qualifiers for function types.
7773 2011-04-26 Richard Guenther <rguenther@suse.de>
7776 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7777 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7778 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7779 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7781 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7783 * doc/extend.texi: Document __underlying_type.
7785 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7787 * config/rs6000/titan.md (automata_option "progress"): Remove.
7789 2011-04-25 Jeff Law <law@redhat.com>
7791 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7793 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7795 * system.h (ENUM_BITFIELD): Remove.
7797 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7798 Eric Botcazou <ebotcazou@adacore.com>
7800 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7801 for STORE_FLAG_VALUE==-1 case.
7803 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7806 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7807 LEGITIMATE_PIC_OPERAND_P.
7809 2011-04-24 Jan Hubicka <jh@suse.cz>
7811 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7813 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7814 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7815 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7816 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7817 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7818 Sanity check predicate length.
7819 (remap_predicate): Likewise; sanity check jump functions.
7820 (inline_read_section, inline_write_summary): Sanity check
7823 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7826 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7827 __is_literal_type, and __is_trivial; update throughout about
7828 possibly cv-qualified void types.
7830 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7832 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7833 testsuite and make it version agnostic.
7835 2011-04-22 Jan Hubicka <jh@suse.cz>
7837 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7839 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7842 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7843 to VOID_TYPE even around MODIFY_EXPR.
7845 2011-04-22 Mike Stump <mikestump@comcast.net>
7847 * gensupport.c (read_md_rtx): Fix typo in comment.
7848 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7851 2011-04-22 Jan Hubicka <jh@suse.cz>
7853 * gengtype.c (open_base_files): Add ipa-inline.h include.
7854 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7855 ipa-prop.c; update all uses.
7856 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7857 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7858 merge summary of inlined function into former caller.
7859 * ipa-inline.c (max_benefit): Remove.
7860 (edge_badness): Compensate for removal of benefits.
7861 (update_caller_keys): Use
7862 reset_node_growth_cache/reset_edge_growth_cache.
7863 (update_callee_keys): Likewise.
7864 (update_all_callee_keys): Likewise.
7865 (inline_small_functions): Do not collect max_benefit; do not reset
7866 estimated_growth; call free_growth_caches and initialize_growth_caches.
7867 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7868 struct size_time_entry): New structures.
7869 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7870 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7871 and estimated_growth.
7872 (edge_growth_cache_entry): New structure.
7873 (node_growth_cache, edge_growth_cache): New global vars.
7874 (estimate_growth): Turn into inline.
7875 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7876 initialize_growth_caches, free_growth_caches): Declare.
7877 (estimate_edge_growth): Rewrite.
7878 (estimate_edge_time): Implement as inline cache lookup.
7879 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7881 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7882 (NUM_CONDITIONS): New constant.
7883 (predicate_conditions): New enum.
7884 (IS_NOT_CONSTANT): New constant.
7885 (edge_removal_hook_holder): New var.
7886 (node_growth_cache, edge_growth_cache): New global vars.
7887 (true_predicate, single_cond_predicate, false_predicate,
7888 not_inlined_predicate, add_condition, add_clause, and_predicates,
7889 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7890 dump_clause, dump_predicate, account_size_time,
7891 evaulate_conditions_for_edge): New functions.
7892 (inline_summary_alloc): Move to heap.
7893 (inline_node_removal_hook): Clear condition and entry vectors.
7894 (inline_edge_removal_hook): New function.
7895 (initialize_growth_caches, free_growth_caches): New function.
7896 (dump_inline_summary): Update.
7897 (edge_execution_predicate): New function.
7898 (will_be_nonconstant_predicate): New function.
7899 (estimate_function_body_sizes): Compute BB and constantness predicates.
7900 (compute_inline_parameters): Do not clear estimated_growth.
7901 (estimate_edge_size_and_time): New function.
7902 (estimate_calls_size_and_time): New function.
7903 (estimate_callee_size_and_time): New function.
7904 (remap_predicate): New function.
7905 (inline_merge_summary): New function.
7906 (do_estimate_edge_time): New function based on...
7907 (estimate_edge_time): ... this one.
7908 (do_estimate_edge_growth): New function.
7909 (do_estimate_growth): New function based on....
7910 (estimate_growth): ... this one.
7911 (inline_analyze_function): Analyze after deciding on jump functions.
7912 (inline_read_section): New function.
7913 (inline_read_summary): Use it.
7914 (inline_write_summary): Write all the new data.
7915 * ipa-prop.c (ipa_get_param_decl_index): Export.
7916 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7917 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7919 (ipa_get_lattice): Move here from ipa-cp.c
7920 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7921 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7922 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7923 cgraph_edge_inlinable_p): Remove.
7924 * cgraphunit.c: Include ipainline.h
7925 (cgraph_process_new_functions): Update call of
7926 compute_inline_parameters.
7928 2011-04-22 Richard Guenther <rguenther@suse.de>
7930 * tree.c (build_int_cst): Properly create canonicalized integer
7932 (build_int_cst_type): Remove scary comments.
7934 2011-04-22 Xinliang David Li <davidxl@google.com>
7936 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7937 by default when -Wno-error is not specified.
7938 * opts-global.c (decode_options): Remove call to
7939 control_warning_options.
7941 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7943 PR tree-optimization/48717
7944 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7945 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7947 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7949 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7950 definition where used.
7952 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7955 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7956 TREE_STATIC variables declared inside of some OpenMP construct.
7958 2011-04-22 Martin Jambor <mjambor@suse.cz>
7961 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7963 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7966 * c-typeck.c (pop_init_level): Do not warn about initializing
7969 2011-04-22 Alan Modra <amodra@gmail.com>
7971 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7972 when returning call_cookie.
7973 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7974 pointers, to functions with no more vector args than the current
7975 function, and some non-local calls for ABI_V4.
7976 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7977 sibcall_nonlocal_aix64): Combine to ..
7978 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7979 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7980 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7981 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7982 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7984 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7985 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7986 sibcall_value_symbolic_64): Delete.
7988 2011-04-21 Xinliang David Li <davidxl@google.com>
7990 * cgraph.h: Remove pid.
7991 * cgraph.c: Remove pid.
7992 * value-prof.c (init_node_map): New function.
7993 (del_node_map): New function.
7994 (find_func_by_funcdef_no): New function.
7995 (gimple_ic_transform): Call new function.
7996 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7997 * function.c (get_last_funcdef_no): New function.
7998 * function.h (get_last_funcdef_no): New function.
7999 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8000 to libgcov function.
8001 (tree-profiling): Call node map init and delete function.
8003 2011-04-21 Ian Lance Taylor <iant@google.com>
8005 * godump.c (go_format_type): Use exported Go name for anonymous
8008 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8010 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8011 Call builtin_function_type_list instead of builtin_function_type.
8012 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8014 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8016 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8017 build_function_type_list instead of build_function_type.
8018 Delete variable `endlink'.
8020 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8022 * config/s390/s390.c (s390_init_builtins): Call
8023 build_function_type_list instead of build_function_type.
8025 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8027 * config/ia64/ia64.c (ia64_init_builtins): Call
8028 build_function_type_list instead of builtin_function_type.
8030 2011-04-21 Easwaran Raman <eraman@google.com>
8032 * cfgexpand.c (stack_var): Remove OFFSET...
8033 (add_stack_var): ...and its reference here...
8034 (expand_stack_vars): ...and here.
8035 (stack_var_cmp): Sort by descending order of size.
8036 (partition_stack_vars): Change heuristic.
8037 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8038 (dump_stack_var_partition): Add newline after each partition.
8040 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8041 Jeff Law <law@redhat.com>
8043 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8044 * gengtype.c (matching_file_name_substitute): Likewise.
8046 2011-04-21 Richard Guenther <rguenther@suse.de>
8049 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8051 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8053 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8055 2011-04-21 Richard Guenther <rguenther@suse.de>
8057 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8060 2011-04-21 Richard Guenther <rguenther@suse.de>
8062 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8063 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8064 Use DECL_P, not SSA_VAR_P.
8065 (ptr_derefs_may_alias_p): Likewise.
8066 (ptr_deref_may_alias_ref_p_1): Likewise.
8067 (decl_refs_may_alias_p): Likewise.
8068 (refs_may_alias_p_1): Likewise.
8069 (ref_maybe_used_by_call_p_1): Likewise.
8070 (call_may_clobber_ref_p_1): Likewise.
8071 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8072 are either MEM_REF or TARGET_MEM_REF.
8073 (indirect_refs_may_alias_p): Likewise.
8074 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8075 for MEM_EXPR of indirect calls.
8077 2011-04-21 Tristan Gingold <gingold@adacore.com>
8079 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8080 (dst_file_info_struct): Remove flen field.
8081 (lookup_filename): Remove code that set flen field.
8083 2011-04-21 Tristan Gingold <gingold@adacore.com>
8085 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8087 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8090 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8091 vec_extract and vec_concat for non-SSE4_1 targets.
8093 2011-04-21 Richard Guenther <rguenther@suse.de>
8095 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8098 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8100 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8102 (FILE): Don't undefine.
8104 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8106 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8108 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8110 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8111 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8112 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8114 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8115 definitions where used.
8116 * config/microblaze/microblaze.h (struct microblaze_args): Use
8117 rtx, not struct rtx_def *.
8118 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8120 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8121 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8122 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8123 not struct rtx_def *.
8124 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8126 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8128 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8130 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8132 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8133 operand_equal_p to compare DR_BASE_ADDRESSes.
8134 (vect_check_interleaving): Likewise.
8136 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8139 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8140 for all Neon struct constants.
8142 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8144 * target.def (legitimate_constant_p): New hook.
8145 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8146 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8147 * doc/tm.texi: Regenerate.
8148 * hooks.h (hook_bool_mode_rtx_true): Declare.
8149 * hooks.c (hook_bool_mode_rtx_true): Define.
8150 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8151 * calls.c (precompute_register_parameters): Replace uses of
8152 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8153 (emit_library_call_value_1): Likewise.
8154 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8155 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8156 * ira-costs.c (scan_one_insn): Likewise.
8157 * recog.c (general_operand, immediate_operand): Likewise.
8158 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8159 * reload1.c (init_eliminable_invariants): Likewise.
8161 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8163 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8164 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8166 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8167 * config/alpha/predicates.md (input_operand): Update call to
8168 alpha_legitimate_constant_p.
8170 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8171 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8172 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8173 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8174 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8175 (arm_legitimate_constant_p): New functions.
8176 (arm_cannot_force_const_mem): Make static.
8178 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8180 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8181 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8182 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8183 instead of bfin_legitimate_constant_p.
8184 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8185 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8187 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8189 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8191 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8192 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8193 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8194 (frv_legitimate_constant_p): Make static. Add a mode argument.
8196 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8197 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8198 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8200 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8201 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8202 * config/i386/i386.c (legitimate_constant_p): Rename to...
8203 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8205 (ix86_cannot_force_const_mem): Update accordingly.
8206 (ix86_legitimate_address_p): Likewise.
8207 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8208 * config/i386/i386.md: Update commentary.
8210 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8211 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8212 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8213 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8215 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8217 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8218 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8219 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8220 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8222 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8223 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8224 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8226 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8227 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8228 (m32r_legitimate_constant_p): New function.
8230 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8231 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8232 LEGITIMATE_CONSTANT_P.
8233 (LEGITIMATE_CONSTANT_P): Delete.
8234 * config/m68k/m68k.c (m68k_expand_prologue): Call
8235 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8236 (m68k_legitimate_constant_p): New function.
8237 * config/m68k/m68k.md: Update comments.
8239 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8240 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8241 (mcore_legitimate_constant_p): New function.
8243 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8244 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8245 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8246 Add a mode argument.
8247 (mep_legitimate_address): Update accordingly.
8248 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8250 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8252 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8253 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8254 static. Check OP's mode for VOIDmode.
8255 (microblaze_legitimate_constant_p): New function.
8256 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8258 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8259 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8260 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8261 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8262 * config/mips/predicates.md: Update comments.
8264 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8265 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8266 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8267 (mmix_legitimate_constant_p): Make static, return a bool, and take
8269 (mmix_print_operand_address): Update accordingly.
8271 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8273 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8274 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8275 static. Add a mode argument.
8276 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8278 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8280 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8281 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8282 (pa_legitimate_constant_p): New function.
8284 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8286 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8287 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8288 (pdp11_legitimate_constant_p): New function.
8290 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8291 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8292 (rs6000_legitimate_constant_p): New function.
8294 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8295 (rx_legitimate_constant_p): ...this.
8296 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8297 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8298 (rx_legitimate_constant_p): ...this.
8299 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8300 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8302 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8303 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8304 * config/s390/s390.c (legitimate_constant_p): Rename to...
8305 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8306 and add a mode argument.
8307 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8309 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8311 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8312 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8313 (sh_legitimate_constant_p): New function.
8315 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8316 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8317 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8318 (legitimate_constant_p): Rename to...
8319 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8321 (constant_address_p): Update accordingly.
8323 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8324 argument and return a bool.
8325 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8326 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8327 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8328 (spu_rtx_costs): Update accordingly.
8329 * config/spu/predicates.md (vec_imm_operand): Likewise.
8331 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8333 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8334 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8335 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8337 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8338 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8339 * config/vax/vax.c (legitimate_constant_p): Likewise.
8341 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8342 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8343 (xtensa_legitimate_constant_p): New function.
8345 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8347 * target.def (cannot_force_const_mem): Add a mode argument.
8348 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8349 * doc/tm.texi: Regenerate.
8350 * hooks.h (hook_bool_mode_rtx_false): Declare.
8351 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8352 (hook_bool_mode_const_rtx_true): Likewise.
8353 (hook_bool_mode_rtx_false): New function.
8354 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8355 to be non-VOID. Update call to cannot_force_const_mem.
8356 (find_reloads): Update accordingly.
8357 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8358 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8360 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8361 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8362 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8363 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8364 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8365 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8366 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8367 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8368 (m68k_cannot_force_const_mem): ...this new function.
8369 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8371 (mips_const_insns, mips_legitimize_const_move): Update calls.
8372 (mips_secondary_reload_class): Likewise.
8373 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8374 (pa_cannot_force_const_mem): ...this new function.
8375 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8376 (rs6000_cannot_force_const_mem): ...this new function.
8377 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8379 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8380 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8382 (xtensa_cannot_force_const_mem): ...this new function.
8384 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8386 * config/mips/mips.c (mips16_build_function_stub): Call
8387 build_function_type_list instead of build_function_type.
8388 (mips16_build_call_stub): Likewise.
8390 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8392 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8393 instead of build_function_type.
8395 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8397 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8398 instead of build_function_type.
8400 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8403 * config/i386/i386.md (insv): Change operand 0 constraint to
8404 "register_operand". Change operand 1 and 2 constraint to
8405 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8406 * config/i386/sse.md (sse4_1_pinsrb): Export.
8407 (sse2_pinsrw): Ditto.
8408 (sse4_1_pinsrd): Ditto.
8409 (sse4_1_pinsrq): Ditto.
8410 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8411 * config/i386/i386.c (ix86_expand_pinsr): New.
8413 2011-04-20 Easwaran Raman <eraman@google.com>
8415 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8416 containing union type only with -fstrict-aliasing.
8418 2011-04-20 Jim Meyering <meyering@redhat.com>
8420 Remove useless if-before-free tests.
8421 * calls.c (expand_call, save_area): Likewise.
8422 * cfgcleanup.c (try_forward_edges): Likewise.
8423 * collect2.c (collect_execute): Likewise.
8424 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8425 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8426 * coverage.c (coverage_checksum_string): Likewise.
8427 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8428 * cselib.c (cselib_init): Likewise.
8429 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8430 (df_set_clean_cfg): Likewise.
8431 * function.c (free_after_compilation): Likewise.
8432 * gcc.c (do_spec_1, main): Likewise.
8433 * gcov.c (create_file_names): Likewise.
8434 * gensupport.c (identify_predicable_attribute): Likewise.
8435 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8436 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8437 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8438 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8439 * ipa-pure-const.c (local_pure_const): Likewise.
8440 * ipa-reference.c (propagate): Likewise.
8441 * ira-costs.c (free_ira_costs): Likewise.
8442 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8443 * matrix-reorg.c (mat_free): Likewise.
8444 * prefix.c (get_key_value): Likewise.
8445 * profile.c (compute_value_histograms): Likewise.
8446 * reload1.c (free_reg_equiv): Likewise.
8447 * sched-deps.c (free_deps): Likewise.
8448 * sel-sched-ir.c (fence_clear): Likewise.
8449 * sese.c (set_rename, if_region_set_false_region): Likewise.
8450 * tree-data-ref.c (free_rdg): Likewise.
8451 * tree-eh.c (lower_try_finally): Likewise.
8452 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8453 * tree-ssa-live.c (delete_var_map): Likewise.
8454 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8455 * tree-ssa-pre.c (phi_trans_add): Likewise.
8457 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8459 PR tree-optimization/48611
8460 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8461 beyond ERT_MUST_NOT_THROW region.
8463 2011-04-20 Catherine Moore <clm@codesourcery.com>
8465 * config/mips/mips.opt (mfix-24k): New.
8466 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8467 * config/mips/mips.md (length): Increase by 4 for stores if
8469 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8470 all noreorder if fixing 24K errata.
8471 * doc/invoke.texi: Document mfix-24k.
8473 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8475 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8476 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8478 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8480 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8481 (const_ok_for_op): ... to here.
8483 2011-04-20 Kai Tietz <ktietz@redhat.com>
8485 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8486 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8488 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8490 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8492 2011-04-20 Richard Guenther <rguenther@suse.de>
8494 PR tree-optimization/47892
8495 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8498 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8500 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8502 2011-04-20 Tristan Gingold <gingold@adacore.com>
8504 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8506 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8510 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8511 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8512 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8513 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8514 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8516 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8519 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8520 (avr_asm_named_section, avr_asm_output_aligned_common,
8521 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8522 New functions to update...
8523 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8524 (avr_asm_init_sections): Overwrite section callbacks for
8525 data_section, bss_section.
8526 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8528 (avr_file_end): ...here.
8530 2011-04-20 Richard Guenther <rguenther@suse.de>
8533 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8534 objects and types here. Adjust for their offset before comparing.
8536 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8538 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8541 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8543 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8544 (GIMPLE_H): Include $(INTERNAL_FN_H).
8545 (OBJS-common): Add internal-fn.o.
8546 (internal-fn.o): New rule.
8547 * internal-fn.def: New file.
8548 * internal-fn.h: Likewise.
8549 * internal-fn.c: Likewise.
8550 * gimple.h: Include internal-fn.h.
8551 (GF_CALL_INTERNAL): New gf_mask.
8552 (gimple_statement_call): Put fntype into a union with a new
8554 (gimple_build_call_internal): Declare.
8555 (gimple_build_call_internal_vec): Likewise.
8556 (gimple_call_same_target_p): Likewise.
8557 (gimple_call_internal_p): New function.
8558 (gimple_call_internal_fn): Likewise.
8559 (gimple_call_fntype): Return null for internal calls.
8560 (gimple_call_set_fntype): Assert that the function is not internal.
8561 (gimple_call_set_fn): Likewise.
8562 (gimple_call_set_fndecl): Likewise.
8563 (gimple_call_set_internal_fn): New function.
8564 (gimple_call_addr_fndecl): Handle null functions.
8565 (gimple_call_return_type): Likewise null types.
8566 * gimple.c (gimple_build_call_internal_1): New function.
8567 (gimple_build_call_internal): Likewise.
8568 (gimple_build_call_internal_vec): Likewise.
8569 (gimple_call_same_target_p): Likewise.
8570 (gimple_call_flags): Handle calls to internal functions.
8571 (gimple_call_fnspec): New function.
8572 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8573 (gimple_has_side_effects): Handle null functions.
8574 (gimple_rhs_has_side_effects): Likewise.
8575 (gimple_call_copy_skip_args): Handle calls to internal functions.
8576 * cfgexpand.c (expand_call_stmt): Likewise.
8577 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8578 * gimple-fold.c (gimple_fold_call): Handle null functions.
8579 (gimple_fold_stmt_to_constant_1): Don't fold
8580 calls to internal functions.
8581 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8583 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8584 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8585 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8586 (do_warn_unused_result): Likewise.
8587 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8588 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8589 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8590 the target of a call.
8591 (initialize_hash_element): Update accordingly.
8592 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8593 (iterative_hash_hashable_expr): Handle calls to internal functions.
8594 (print_expr_hash_elt): Likewise.
8595 * tree-ssa-pre.c (can_value_number_call): Likewise.
8596 (eliminate): Handle null functions.
8597 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8598 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8599 (find_func_aliases): Likewise.
8600 * value-prof.c (gimple_ic_transform): Likewise.
8601 (gimple_indirect_call_to_profile): Likewise.
8602 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8603 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8605 2011-04-19 Jan Hubicka <jh@suse.cz>
8607 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8608 * ipa-inline.c (inline_small_functions): Compute summaries first,
8609 populate heap later.
8611 2011-04-19 Jan Hubicka <jh@suse.cz>
8613 * cgraph.h (save_inline_function_body): Remove.
8614 * ipa-inline-transform.c: New file, broke out of...
8615 * ipa-inline.c: ... this one; Update toplevel comment.
8616 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8618 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8619 (cgraph_mark_inline_edge): Rename to inline_call; move to
8620 ipa-inline-transform.c.
8621 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8622 move to ipa-inline-transform.c
8623 (recursive_inlining, inline_small_functions, flatten_function,
8624 ipa_inline, inline_always_inline_functions,
8625 early_inline_small_functions): Update.
8626 (inline_transform): Move to ipa-inline-transform.c.
8627 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8629 * Makefile.in (ipa-inline-transform.o): New file.
8630 * cgraphunit.c (save_inline_function_body): Move to
8631 ipa-inline-transform.c
8633 2011-04-19 DJ Delorie <dj@redhat.com>
8635 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8636 registers if we already know there aren't any.
8637 (m32c_emit_epilogue): Don't emit a barrier here.
8638 (m32c_emit_eh_epilogue): Likewise.
8639 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8640 operands at expand time.
8641 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8643 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8644 duplicates. Provide aliases instead.
8645 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8646 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8649 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8651 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8652 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8653 (general_or_i64_p, sparc_register_move_cost): New function.
8655 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8657 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8658 Add lynx, mipssde. Sort table.
8660 2011-04-19 Xinliang David Li <davidxl@google.com>
8662 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8665 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8668 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8669 is a SUBREG with non-MODE_INT mode inside of it.
8671 2011-04-19 Martin Jambor <mjambor@suse.cz>
8673 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8674 also according to actual contants.
8675 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8676 (gimple_fold_call): Use it.
8677 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8679 2011-04-19 Martin Jambor <mjambor@suse.cz>
8681 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8682 non-pointer assignments.
8684 2011-04-19 Martin Jambor <mjambor@suse.cz>
8686 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8687 account anc_offset and otr_type from the indirect edge info.
8688 * ipa-prop.c (get_ancestor_addr_info): New function.
8689 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8690 get_ancestor_addr_info, call it.
8691 (ipa_note_param_call): Do not initialize information about polymorphic
8692 calls, return the indirect call graph edge. Remove the last
8693 parameter, adjust all callers.
8694 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8695 parameters. Initialize polymorphic information in the indirect edge.
8697 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8700 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8701 the types if they have different enumeration identifiers.
8703 2011-04-19 Jan Hubicka <jh@suse.cz>
8705 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8706 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8707 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8708 (optimize_function_for_size_p) ... here.
8710 2011-04-19 Richard Guenther <rguenther@suse.de>
8713 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8716 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8718 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8719 if DECL_NO_INLINE_WARNING_P is set on the function.
8721 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8724 * reload1.c (inc_for_reload): Return void. All callers changed.
8725 (emit_input_reload_insns): Don't try to delete previous output
8726 reloads to a register, or record spill_reg_store for autoincs.
8728 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8730 * gengtype.h: Updated copyright year.
8731 (struct input_file_st): Add inpisplugin field.
8732 (type_fileloc): New function.
8734 (write_typed_struct_alloc_def): Add gcc_assert.
8735 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8736 (write_typed_alloc_defns): Don't output for plugin files.
8737 (input_file_by_name): Clear inpisplugin field.
8738 (main): Set inpisplugin field for plugin files.
8740 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8742 * gengtype-state.c (string_eq): New.
8743 (read_state): Use string_eq instead of strcmp when creating the
8746 2011-04-19 Wei Guozhi <carrot@google.com>
8749 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8750 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8752 * config/arm/constraints.md (Uu): New constraint.
8753 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8755 2011-04-19 Tristan Gingold <gingold@adacore.com>
8757 * config.gcc (-*-*-*vms): Added.
8758 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8760 * config/vms/vms-ld.c: New file.
8761 * config/vms/vms-ar.c: New file.
8762 * config/vms/t-vmsnative: New file.
8764 2011-04-18 Xinliang David Li <davidxl@google.com>
8766 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8768 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8771 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8772 if TREE_TYPE (v) is non-NULL.
8774 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8775 gimple_get_virt_mehtod_for_binfo.
8776 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8777 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8779 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8781 2011-04-18 Michael Matz <matz@suse.de>
8782 Steve Ellcey <sje@cup.hp.com>
8784 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8785 use its mode as source mode if it isn't VOIDmode.
8787 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8789 * doc/passes.texi: Fill crossref nodes.
8791 2011-04-18 Jim Meyering <meyering@redhat.com>
8793 Fix doubled-word typos in comments and strings
8794 * config/alpha/vms-unwind.h: s/for for/for/
8795 * config/arm/unwind-arm.h: Likewise.
8796 * config/microblaze/microblaze.c: Likewise.
8797 * config/sh/constraints.md: s/in in/in/
8798 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8800 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8802 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8803 (AVX_FLOAT_MODE_P): Ditto.
8804 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8805 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8806 (AVX_VEC_FLOAT_MODE_P): Ditto.
8807 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8808 (UNSPEC_MASKSTORE): Ditto.
8809 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8810 Merge from <sse>_movmsk<ssemodesuffix> and
8811 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8812 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8814 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8815 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8816 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8818 2011-04-18 Jan Hubicka <jh@suse.cz>
8820 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8822 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8823 (want_inline_function_called_once_p): Break out the logic from
8825 (edge_badness): Ensure that profile is not misupdated.
8826 (lookup_recursive_calls): Prioritize by call frequencies.
8827 (inline_small_functions): Move program size estimates here;
8828 actually process whole queue even when unit growth has been
8829 met. (to properly compute inline_failed reasons and for the
8830 case unit size decrease.) Revisit comments on recursive inlining.
8831 (ipa_inline): Remove unit summary code; first inline hot calls
8832 of functions called once, cold calls next.
8833 (order, nnodes): Remove unused variables.
8834 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8835 (GTFILES): Remove ipa-inline.c
8836 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8838 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8840 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8842 2011-04-18 Jie Zhang <jie@codesourcery.com>
8843 Richard Earnshaw <rearnsha@arm.com>
8845 * arm.c (neon_builtin_type_bits): Remove.
8846 (typedef enum neon_builtin_mode): New.
8847 (T_MAX): Don't define.
8848 (typedef enum neon_builtin_datum): Remove bits, codes[],
8849 num_vars and base_fcode. Add mode, code and fcode.
8850 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8851 VAR10): Change accordingly.
8852 (neon_builtin_data[]): Change accordingly
8853 (arm_init_neon_builtins): Change accordingly.
8854 (neon_builtin_compare): Remove.
8855 (locate_neon_builtin_icode): Remove.
8856 (arm_expand_neon_builtin): Change accordingly.
8858 * arm.h (enum arm_builtins): Move to ...
8859 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8861 * arm.c (arm_builtin_decl): Declare.
8862 (TARGET_BUILTIN_DECL): Define.
8863 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8864 (arm_builtin_decls[]): New.
8865 (arm_init_neon_builtins): Store builtin declarations in
8866 arm_builtin_decls[].
8867 (arm_init_tls_builtins): Likewise.
8868 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8869 (arm_builtin_decl): New.
8871 2011-04-18 Richard Guenther <rguenther@suse.de>
8873 * tree.c (upper_bound_in_type): Build properly canonicalized
8875 (lower_bound_in_type): Likewise.
8877 2011-04-18 Richard Guenther <rguenther@suse.de>
8879 * gimple.h (gimple_call_addr_fndecl): New function.
8880 (gimple_call_fndecl): Use it.
8881 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8883 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8884 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8886 2011-04-18 Richard Guenther <rguenther@suse.de>
8889 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8891 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8894 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8895 DECL_IN_CONSTANT_POOL without RTL.
8897 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8898 Ira Rosen <ira.rosen@linaro.org>
8901 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8902 to match neon_vzip/vuzp/vtrn_internal.
8903 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8904 outputs explicitly dependent on both inputs.
8905 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8907 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8909 PR tree-optimization/48616
8910 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8911 whether the shift is by scalar or vector based on whether all SLP
8912 scalar stmts have the same rhs.
8914 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8916 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8919 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8922 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8925 2011-04-17 Jan Hubicka <jh@suse.cz>
8927 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8928 * cgrpahunit.c (cgraph_finalize_function): Do not set
8929 finalized_by_frontend.
8930 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8931 finalized_by_frontend.
8933 2011-04-17 Jan Hubicka <jh@suse.cz>
8935 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8936 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8937 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8938 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8940 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8942 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8944 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8947 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8948 is non-null before accessing it.
8949 (input_cgraph): Remove trailing spaces.
8951 2011-04-17 Revital Eres <revital.eres@linaro.org>
8953 * params.def (sms-min-sc): New param flag.
8954 * modulo-sched.c (sms_schedule): Use it.
8955 * doc/invoke.texi (sms-min-sc): Document it.
8957 2011-04-17 Jan Hubicka <jh@suse.cz>
8959 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8960 present, also set gimple_call_set_cannot_inline.
8961 * ipa-inline.c: Update toplevel comment.
8963 (cgraph_clone_inlined_nodes): Fix linebreaks.
8964 (cgraph_check_inline_limits): Restructure to ...
8965 (caller_growth_limits): ... this one; be more tolerant
8966 on growth in nested inline chains; add explanatory comment;
8967 fix stack accounting thinko introduced by previous patch.
8968 (cgraph_default_inline_p): Remove.
8969 (report_inline_failed_reason): New function.
8970 (can_inline_edge_p): New function.
8971 (can_early_inline_edge_p): New function.
8972 (leaf_node_p): Move upwards in file.
8973 (want_early_inline_function_p): New function.
8974 (want_inline_small_function_p): New function.
8975 (want_inline_self_recursive_call_p): New function.
8976 (cgraph_edge_badness): Rename to ...
8977 (edge_badness) ... this one; fix linebreaks.
8978 (update_edge_key): Update call of edge_baddness; add
8979 detailed dump about queue updates.
8980 (update_caller_keys): Use can_inline_edge_p and
8981 want_inline_small_function_p.
8982 (cgraph_decide_recursive_inlining): Rename to...
8983 (recursive_inlining): Use can_inline_edge_p and
8984 want_inline_self_recursive_call_p; simplify and remove no longer
8986 (cgraph_set_inline_failed): Remove.
8987 (add_new_edges_to_heap): Use can_inline_edge_p and
8988 want_inline_small_function_p.
8989 (cgraph_decide_inlining_of_small_functions): Rename to ...
8990 (inline_small_functions): ... this one; cleanup; use
8991 can/want predicates; cleanup debug ouput; work edges till fibheap
8992 is exhausted and do not stop once unit growth is reached; remove
8993 later loop processing remaining edges.
8994 (cgraph_flatten): Rename to ...
8995 (flatten_function): ... this one; use can_inline_edge_p
8996 and can_early_inline_edge_p predicates.
8997 (cgraph_decide_inlining): Rename to ...
8998 (ipa_inline): ... this one; remove unreachable nodes before
8999 inlining functions called once; simplify the pass.
9000 (cgraph_perform_always_inlining): Rename to ...
9001 (inline_always_inline_functions): ... this one; use
9002 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9003 (cgraph_decide_inlining_incrementally): Rename to ...
9004 (early_inline_small_functions): ... this one; simplify
9005 using new predicates; cleanup; make dumps prettier.
9006 (cgraph_early_inlining): Rename to ...
9007 (early_inliner): newer inline regular functions into always-inlines;
9008 fix updating of call stmt summaries.
9009 (pass_early_inline): Update for new names.
9010 (inline_transform): Fix formating.
9011 (gate_cgraph_decide_inlining): Rename to ...
9012 (pass_ipa_inline): ... this one.
9013 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9014 * ipa-inline-analysis.c (dump_inline_summary): Update.
9015 (compute_inline_parameters): Do not compute disregard_inline_limits;
9016 look for mismatching arguments.
9017 (estimate_growth): Fix handlig of non-trivial self recursion.
9018 (inline_read_summary): Do not read info->disregard_inline_limits.
9019 (inline_write_summary): Do not write info->disregard_inline_limits.
9020 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9021 and move all checks into can_inline_edge_p predicate; re-enable code
9022 comparing optimization levels.
9023 (expand_call_inline): Do not test inline_forbidden_into_p.
9024 * Makefile.in (ipa-inline.o): Update arguments.
9026 2011-04-17 Revital Eres <revital.eres@linaro.org>
9028 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9030 2011-04-17 Revital Eres <revital.eres@linaro.org>
9032 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9034 2011-04-17 Michael Matz <matz@suse.de>
9036 PR tree-optimization/48622
9038 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9039 in same order as they're written.
9041 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9043 * config/pa/predicates.md: Reorganize and simplify predicates.
9044 Eliminate duplicate code checks.
9045 (arith_operand): Rename to arith14_operand
9046 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9047 * config/pa/pa.md: Use renamed operands.
9048 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9049 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9050 arith11_operand, adddi3_operand, indexed_memory_operand,
9051 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9052 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9053 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9054 move_dest_operand, move_src_operand, prefetch_cc_operand,
9055 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9056 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9057 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9058 div_operand, int5_operand, movb_comparison_operator,
9059 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9060 arith_double_operand, ireg_operand, lhs_lshift_operand,
9061 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9062 integer_store_memory_operand): Likewise.
9063 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9064 (integer_store_memory_operand, read_only_operand,
9065 function_label_operand, borx_reg_operand,
9066 non_hard_reg_operand): Likewise.
9067 (eq_neq_comparison_operator): Delete unused operator.
9068 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9069 function_label_operand.
9070 (emit_move_sequence): Likewise.
9072 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9074 * config/i386/sse.md (sseunpackmode): New mode attribute.
9075 (ssepackmode): Ditto.
9076 (vec_pack_trunc_<mode>): Macroize expander from
9077 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9078 (vec_unpacks_lo_<mode>): Macroize expander from
9079 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9080 (vec_unpacks_hi_<mode>): Macroize expander from
9081 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9082 (vec_unpacku_lo_<mode>): Macroize expander from
9083 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9084 (vec_unpacku_hi_<mode>): Macroize expander from
9085 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9086 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9087 ix86_expand_sse4_unpack.
9088 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9090 2011-04-16 Jan Hubicka <jh@suse.cz>
9092 * cgraphbuild.c: Include ipa-inline.h.
9093 (reset_inline_failed): Use initialize_inline_failed.
9094 * cgraph.c: Include ipa-inline.h.
9095 (cgraph_create_node_1): Do not initialize estimated_growth.
9096 (initialize_inline_failed): More to ipa-inline-analysis.c
9097 (dump_cgraph_node): Do not dump inline flags.
9098 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9099 and disregard_inline_limits flags.
9100 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9101 time, size, estimated_growth.
9102 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9104 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9105 DECL_DISREGARD_INLINE_LIMITS.
9106 (cgraph_analyze_function): Do not initialize
9107 node->local.disregard_inline_limits.
9108 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9109 inlinable, versionable and disregard_inline_limits.
9110 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9111 cgraph_check_inline_limits, cgraph_default_inline_p,
9112 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9113 add_new_edges_to_heap): Update.
9114 (cgraph_decide_inlining_of_small_function): Update; set
9115 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9116 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9117 cgraph_decide_inlining_incrementally): Update.
9118 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9119 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9120 time, size and estimated_growth parameters.
9121 (estimate_edge_growth): Update.
9122 (initialize_inline_failed): Declare.
9123 * ipa-split.c: Include ipa-inline.h
9124 (execute_split_functions): Update.
9125 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9126 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9127 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9128 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9129 estimated_growth to INT_MIN.
9130 (inline_node_duplication_hook): Likewise.
9131 (dump_inline_summary): Dump new fields.
9132 (compute_inline_parameters): Update.
9133 (estimate_edge_time, estimate_time_after_inlining,
9134 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9135 inline_write_summary):
9136 (initialize_inline_failed): Move here from cgraph.c.
9137 * tree-sra.c: Include ipa-inline.h.
9138 (ipa_sra_preliminary_function_checks): Update.
9139 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9142 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9144 * config/i386/sse.md (V16): New mode iterator.
9146 (AVXMODEQI, AVXMODEDI): Remove.
9147 (sse2, sse3): New mode attribute.
9148 (mov<mode>): Use V16 mode iterator.
9149 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9150 (push<mode>1): Use V16 mode iterator.
9151 (movmisalign<mode>): Ditto.
9152 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9153 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9154 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9155 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9156 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9157 avx_movdqu<avxmodesuffix>.
9158 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9159 *avx_movdqu<avxmodesuffix>.
9160 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9161 avx_lddqu<avxmodesuffix>.
9162 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9163 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9164 avx_movnt<AVXMODEDI:mode>.
9165 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9166 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9168 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9171 * haifa-sched.c (prune_ready_list, schedule_block): Use
9172 sched_pressure_p rather than flag_sched_pressure.
9174 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9176 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9177 cgraph_get_node instead of cgraph_get_create_node.
9179 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9181 * cfgexpand.c (expand_debug_expr): Use
9182 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9184 2011-04-15 Michael Matz <matz@suse.de>
9186 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9187 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9188 * function.c (gimplify_parameters): Ditto.
9189 * gimplify.c (gimplify_vla_decl): Ditto.
9191 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9192 (gimple_call_set_alloca_for_var): New inline function.
9193 (gimple_call_alloca_for_var_p): Ditto.
9194 * gimple.c (gimple_build_call_from_tree): Remember
9195 CALL_ALLOCA_FOR_VAR_P state.
9196 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9198 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9199 calls if they were for VLA objects.
9201 2011-04-15 Martin Jambor <mjambor@suse.cz>
9203 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9206 2011-04-15 Martin Jambor <mjambor@suse.cz>
9209 * tree-emutls.c (lower_emutls_function_body): Call
9210 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9213 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9215 * c-decl.c (detect_field_duplicates): Call
9216 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9218 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9220 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9221 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9222 * ipa-pure-const.c (check_stmt): Call it.
9223 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9225 2011-04-15 Richard Guenther <rguenther@suse.de>
9227 PR tree-optimization/48290
9228 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9229 Properly decide inhibiting propagation based on the valueized
9230 operand. Do loop-closed SSA form preserving here ...
9231 (init_copy_prop): ... not here.
9233 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9236 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9237 (*ieee_smax<mode>3): Likewise.
9239 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9241 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9242 Replace match_operand with match_dup for the third operand in
9245 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9247 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9248 to track processing of conditionals. Update all callers.
9249 (try_combine, simplify_if_then_else): Update.
9251 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9253 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9256 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9258 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9259 instead of match_operand for operand 3.
9261 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9263 * recog.h (insn_operand_data): Add an "allows_mem" field.
9264 * genoutput.c (output_operand_data): Initialize it.
9265 * optabs.c (maybe_legitimize_operand_same_code): New function.
9266 (maybe_legitimize_operand): Use it when matching the original
9269 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9271 * gimplify.c: Fix issues in comments throughout.
9272 (voidify_wrapper_expr): Fix long line.
9273 (build_stack_save_restore): Likewise.
9274 (gimplify_loop_expr): Likewise.
9275 (gimplify_compound_lval): Likewise.
9276 (gimplify_init_ctor_eval): Likewise.
9277 (gimplify_modify_expr_rhs): Likewise.
9278 (omp_notice_threadprivate_variable): Likewise.
9280 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9282 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9283 original one if this is not a builtin function.
9285 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9288 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9289 offset it as needed based on top 2 bits in operands[3], change
9290 MEM mode to SFmode and mask those 2 bits away from operands[3].
9292 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9294 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9295 change from objc_declare_protocols() to objc_declare_protocol().
9297 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9299 * config/i386/sse.md (sse4_1): New mode attribute.
9300 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9301 avx_blend<ssemodesuffix><avxmodesuffix> and
9302 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9303 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9304 avx_blendv<ssemodesuffix><avxmodesuffix> and
9305 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9306 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9307 avx_dp<ssemodesuffix><avxmodesuffix> and
9308 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9309 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9310 (sse4_1_packusdw): Merge with *avx_packusdw.
9311 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9312 (sse4_1_pblendw): Merge with *avx_pblendw.
9313 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9314 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9315 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9317 (sse4_1_round<ssescalarmodesuffix>): Merge with
9318 *avx_round<ssescalarmodesuffix>.
9319 (aesenc): Merge with *avx_aesenc.
9320 (aesenclast): Merge with *avx_aesenclast.
9321 (aesdec): Merge with *avx_aesdec.
9322 (aesdeclast): Merge with *avx_aesdeclast.
9323 (pclmulqdq): Merge with *pclmulqdq.
9324 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9326 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9328 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9331 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9332 (align_local_variable): This. Update DECL_ALIGN.
9333 (add_stack_var): Updated.
9334 (expand_one_stack_var): Likewise.
9336 2011-04-14 Richard Guenther <rguenther@suse.de>
9338 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9340 (dse_initialize_block_local_data, dse_leave_block,
9341 record_voperand_set, get_stmt_uid): Likewise.
9342 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9343 (dse_optimize_stmt): Remove voperand set handling code.
9344 Simplify and improve to handle any kind of killing stmt.
9345 (dse_record_phi): Remove.
9346 (dse_enter_block): Simplify.
9347 (tree_ssa_dse): Likewise.
9348 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9350 2011-04-14 Jan Hubicka <jh@suse.cz>
9352 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9353 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9354 (cgraph_local_info): Remove inline_summary.
9355 * ipa-cp.c: Include ipa-inline.h.
9356 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9357 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9359 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9360 (input_overwrite_node): Do not set inline summary.
9361 (input_node): Do not stream inline summary.
9362 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9363 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9364 growth; we do not have inline parameters computed for that anyway.
9365 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9366 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9367 (inline_summary_t): New type and VECtor.
9368 (debug_inline_summary, dump_inline_summaries): Declare.
9369 (inline_summary): Use VOCtor.
9370 (estimate_edge_growth): Kill hack computing call stmt size directly.
9371 * lto-section-in.c (lto_section_name): Add inline section.
9372 * ipa-inline-analysis.c: Include lto-streamer.h
9373 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9374 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9375 (inline_summary_vec): Define.
9376 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9377 dump_inline_summaries): New functions.
9378 (estimate_function_body_sizes): Properly compute size/time of outgoing
9380 (compute_inline_parameters): Alloc inline_summary; do not compute
9381 size/time of incomming calls.
9382 (estimate_edge_time): Avoid missing time summary hack.
9383 (inline_read_summary): Read inline summary info.
9384 (inline_write_summary): Write inline summary info.
9385 (inline_free_summary): Free all hooks and inline summary vector.
9386 * lto-streamer.h: Add LTO_section_inline_summary section.
9387 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9388 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9390 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9392 * tree-vectorizer.h (vect_strided_store_supported): Add a
9393 HOST_WIDE_INT argument.
9394 (vect_strided_load_supported): Likewise.
9395 (vect_permute_store_chain): Return void.
9396 (vect_transform_strided_load): Likewise.
9397 (vect_permute_load_chain): Delete.
9398 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9399 count argument. Check that the count is a power of two.
9400 (vect_strided_load_supported): Likewise.
9401 (vect_permute_store_chain): Return void. Update after above changes.
9402 Assert that the access is supported.
9403 (vect_permute_load_chain): Likewise.
9404 (vect_transform_strided_load): Return void.
9405 * tree-vect-stmts.c (vectorizable_store): Update calls after
9406 above interface changes.
9407 (vectorizable_load): Likewise.
9408 (vect_analyze_stmt): Don't check for strided powers of two here.
9410 2011-04-14 Richard Guenther <rguenther@suse.de>
9412 PR tree-optimization/48590
9413 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9414 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9415 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9416 BUILT_IN_STACK_SAVE.
9417 * tree-ssa-dce.c (propagate_necessity): Handle
9418 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9420 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9422 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9425 2011-04-14 Richard Guenther <rguenther@suse.de>
9427 * tree.h (get_object_alignment_1): Declare.
9428 * builtins.c (get_object_alignment_1): Split out worker from ...
9429 (get_object_alignment): ... here.
9430 * fold-const.c (get_pointer_modulus_and_residue): Use
9431 get_object_alignment_1.
9433 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9435 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9437 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9438 parameter. Generalise code to handle arrays as well as vectors.
9439 (vect_setup_realignment): Update accordingly.
9440 * tree-vect-stmts.c (vectorizable_store): Likewise.
9441 (vectorizable_load): Likewise.
9443 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9445 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9446 within the per-copy loop.
9448 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9450 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9453 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9455 * doc/options.texi (Negative): Explicitly mention that the
9456 Negative chain must be circular.
9458 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9460 * function.h (block_chainon): Declare.
9461 * function.c (block_chainon): Define.
9463 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9464 Eric Weddington <eric.weddington@atmel.com>
9465 Georg-Johann Lay <avr@gjlay.de>
9467 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9469 (avr_init_builtins, avr_expand_builtin,
9470 avr_expand_delay_cycles, avr_expand_unop_builtin,
9471 avr_expand_binop_builtin ): New functions.
9472 (avr_builtin_id): New enum
9473 (struct avr_builtin_description): New struct
9474 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9475 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9477 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9478 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9479 UNSPECV_DELAY_CYCLES): new enumeration values
9480 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9481 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9482 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9483 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9484 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9485 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9486 "fmulsu"): New insns
9488 * config/avr/avr-c.c: fix line endings
9489 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9490 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9491 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9492 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9493 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9495 * doc/extend.texi (AVR Built-in Functions): New node
9496 (Target Builtins): Add documentation of AVR
9499 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9502 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9503 alone. Error if non-const data has attribute progmem.
9505 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9507 * tree.h (struct tree_constructor): Include tree_typed instead of
9509 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9510 TS_TYPED instead of TS_COMMON.
9512 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9514 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9515 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9516 (sse2_psadbw): Merge with *avx_psadbw.
9517 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9518 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9519 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9520 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9521 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9522 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9523 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9524 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9525 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9526 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9527 (ssse3_palignrti): Merge with *avx_palignrti.
9529 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9531 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9532 * tree-ssanames.c (fini_ssanames): VEC_free it.
9533 (make_ssa_name_fn): Update for VECness of free_ssanames.
9534 (release_ssa_name, release_dead_ssa_names): Likewise.
9535 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9537 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9538 TS_TYPED instead of TS_COMMON.
9540 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9542 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9543 statistics_counter_event.
9544 * tree-ssa-copyrename.c (stats): Define.
9545 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9546 statistics_counter_event.
9547 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9548 (bswap_stats, widen_mul_stats): Define.
9549 (insert_reciprocals): Increment rdivs_inserted.
9550 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9551 rfuncs_inserted. Add calls to statistics_counter_event.
9552 (execute_cse_sincos_1): Increment inserted.
9553 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9554 statistics_counter_event.
9555 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9556 of bswap_stats. Add calls to statistics_counter_event.
9557 (convert_mult_to_widen): Increment widen_mults_inserted.
9558 (convert_plusminus_to_widen): Increment maccs_inserted.
9559 (convert_mult_to_fma): Increment fmas_inserted.
9560 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9561 calls to statistics_counter_event.
9563 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9565 PR rtl-optimization/48455
9566 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9567 `temp_costs->mem_cost'.
9569 2011-04-13 Jan Hubicka <jh@suse.cz>
9571 * ipa-inline.h: New file.
9572 * ipa-inline-analysis.c: New file. Broken out of ...
9573 * ipa-inline.c: ... this file; update toplevel comment;
9574 include ipa-inline.h
9575 (inline_summary): Move to ipa-inline.h
9576 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9577 ipa-inline-analysis.c.
9578 (cgraph_estimate_time_after_inlining): Rename to
9579 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9580 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9581 to estimate_edge_growth.
9582 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9583 rename to estimate_size_after_inlining.
9584 (cgraph_mark_inline_edge): Update for new naming convention.
9585 (cgraph_check_inline_limits): Likewise.
9586 (cgraph_edge_badness): Likewise.
9587 (cgraph_decide_recursive_inlining): Likewise.
9588 (cgraph_decide_inlining_of_small_functions): Likewise.
9589 (cgraph_decide_inlining_incrementally): Likewise.
9590 (cgraph_estimate_growth): Rename to estimate_growth; move to
9591 ipa-inline-analysis.c.
9592 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9593 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9594 (compute_inline_parameters): Likewise.
9595 (compute_inline_parameters_for_current): Likewise.
9596 (pass_inline_parameters): Likewise.
9597 (inline_indirect_intraprocedural_analysis): Likewise.
9598 (analyze_function): Rename to inline_analyze_function; likewise.
9599 (add_new_function): Move to ipa-inline-analysis.c.
9600 (inline_generate_summary): Likewise.
9601 (inline_read_summary): Likewise.
9602 (inline_write_summary): Likewise.
9603 * Makefile.in (ipa-inline-analysis.c): New file.
9605 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9607 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9608 * configure: Regenerate.
9610 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9612 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9613 instead of tree_common.
9614 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9616 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9617 TS_TYPED rather than TS_COMMON.
9618 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9620 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9623 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9624 r20 around calls of __tablejump_elpm__
9626 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9629 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9631 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9633 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9635 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9636 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9637 (cfi_vec): New typedef.
9638 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9639 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9640 (cie_cfi_vec): New static variable.
9641 (cie_cfi_head): Delete.
9642 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9643 declaration changed. Use vector rather than list operations.
9644 (new_cfi): Don't initialize the dw_cfi_next field.
9645 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9646 rather than list operations.
9647 (lookup_cfa): Use vector rather than list operations.
9648 (output_cfis): New argument upto. Accept a cfi_vec rather than
9649 a dw_cfi_ref list head as argument. All callers changed.
9650 Iterate over the vector using upto as a maximum index.
9651 (output_all_cfis): New static function.
9652 (output_fde): Use vector rather than list operations. Use the
9653 new upto argument for output_cfis rather than manipulating a
9655 (dwarf2out_begin_prologue): Change initializations to match
9657 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9658 from the vector length rather than searching for the end of a list.
9659 Use output_all_cfis.
9660 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9662 2011-04-13 Nick Clifton <nickc@redhat.com>
9664 * config/rx/rx.md (movmemsi): Do not use this pattern when
9665 volatile pointers are involved.
9667 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9669 * config/i386/sse.md (pinsrbits): Remove.
9670 (sse2_packsswb): Merge with *avx_packsswb.
9671 (sse2_packssdw): Merge with *avx_packssdw.
9672 (sse2_packuswb): Merge with *avx_packuswb.
9673 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9674 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9675 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9676 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9677 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9678 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9679 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9680 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9681 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9682 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9683 (sse2_loadld): Merge with *avx_loadld.
9684 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9685 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9686 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9687 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9688 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9690 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9692 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9694 * print-tree.c (print_node): Likewise.
9695 * tree-inline.c (copy_tree_r): Likewise.
9696 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9697 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9698 instead of TS_COMMON.
9699 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9700 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9701 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9702 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9703 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9705 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9707 (TREE_CHAIN): Check for a TS_COMMON structure.
9708 (TREE_TYPE): Check for a TS_TYPED structure.
9710 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9712 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9713 cgraph_get_create_node instead of cgraph_node.
9715 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9717 * c-parser.c (c_parser_initelt): Updated call to
9718 objc_build_message_expr.
9719 (c_parser_postfix_expression): Likewise.
9721 2011-04-12 Kai Tietz <ktietz@redhat.com>
9723 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9724 MASK_MS_BITFIELD_LAYOUT bit.
9726 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9728 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9729 assert it is always true.
9730 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9733 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9735 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9736 compiling Objective-C to be more efficient.
9738 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9740 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9743 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9745 * recog.h, genoutput.c, optabs.c: Revert last patch.
9747 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9750 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9752 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9754 * recog.h (insn_operand_data): Add an "allows_mem" field.
9755 * genoutput.c (output_operand_data): Initialize it.
9756 * optabs.c (maybe_legitimize_operand_same_code): New function.
9757 (maybe_legitimize_operand): Use it when matching the original
9760 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9762 * genpreds.c (process_define_predicate): Move most processing
9763 to gensupport.c. Continue to validate the expression.
9764 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9765 (process_define_predicate): Move processing to gensupport.c.
9766 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9767 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9768 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9770 (valid_predicate_name_p): New function, split out from old
9771 genpreds.c:process_define_predicate.
9772 (process_define_predicate): New function, combining code from
9773 old genpreds.c and genrecog.c functions.
9774 (process_rtx): Call it for DEFINE_PREDICATE and
9775 DEFINE_SPECIAL_PREDICATE.
9777 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9779 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9780 size of a '%A' memory reference.
9781 (T_DREG, T_QREG): New neon_builtin_type_bits.
9782 (arm_init_neon_builtins): Assert that the load and store operands
9783 are neon_struct_operands.
9784 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9785 (NEON_ARG_MEMORY): New builtin_arg.
9786 (neon_dereference_pointer): New function.
9787 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9788 Handle NEON_ARG_MEMORY.
9789 (arm_expand_neon_builtin): Update after above interface changes.
9790 Use NEON_ARG_MEMORY for loads and stores.
9791 * config/arm/predicates.md (neon_struct_operand): New predicate.
9792 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9793 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9794 (V_four_elem): Tweak formatting.
9795 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9796 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9797 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9798 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9799 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9800 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9801 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9802 Use %A in the output template.
9803 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9804 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9805 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9806 the width of the memory access. Remove post-increment.
9807 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9809 2011-04-12 Nick Clifton <nickc@redhat.com>
9811 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9812 instruction for interrupt handlers if the target is the basic V850
9814 (expand_epilogue): Likewise.
9816 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9818 PR rtl-optimization/48549
9819 * combine.c (propagate_for_debug): Also stop after BB_END of
9820 this_basic_block. Process LAST and just stop processing after it.
9821 (combine_instructions): If last_combined_insn has been deleted,
9822 set last_combined_insn to its PREV_INSN.
9824 2011-04-12 Richard Guenther <rguenther@suse.de>
9826 PR tree-optimization/46076
9827 * gimple.h (struct gimple_statement_call): Add fntype field.
9828 (gimple_call_fntype): Adjust.
9829 (gimple_call_set_fntype): New function.
9830 * gimple.c (gimple_build_call_1): Set the call function type.
9831 * gimplify.c (gimplify_call_expr): Preserve the function
9832 type the frontend used for the call.
9833 (gimplify_modify_expr): Likewise.
9834 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9836 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9838 * tree-ssa.c (useless_type_conversion_p): Function pointer
9839 conversions are useless.
9841 2011-04-12 Martin Jambor <mjambor@suse.cz>
9843 * cgraph.h (cgraph_node): Remove function declaration.
9844 (cgraph_create_node): Declare.
9845 (cgraph_get_create_node): Likewise.
9846 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9847 Updated all callers.
9848 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9849 the decl does not already exist. Call cgraph_get_create_node instead
9851 (cgraph_get_create_node): New function.
9852 (cgraph_same_body_alias): Update comment.
9853 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9854 assert it does not return NULL.
9855 (cgraph_update_edges_for_call_stmt): Likewise.
9856 (cgraph_clone_edge): Likewise.
9857 (cgraph_create_virtual_clone): Likewise.
9858 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9859 instead of cgraph_node.
9860 (cgraph_add_new_function): Call cgraph_create_node or
9861 cgraph_get_create_node instead of cgraph_node.
9862 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9863 instead of cgraph_node.
9864 (record_eh_tables): Likewise.
9865 (mark_address): Likewise.
9866 (mark_load): Likewise.
9867 (build_cgraph_edges): Call cgraph_get_create_node instead
9869 (rebuild_cgraph_edges): Likewise.
9870 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9871 instead of cgraph_node.
9872 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9874 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9875 cgraph_create_node instead of cgraph_node.
9876 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9878 * lto-cgraph.c (input_node): Likewise.
9879 * lto-streamer-in.c (input_function): Likewise.
9880 * varasm.c (mark_decl_referenced): Likewise.
9881 (assemble_alias): Likewise.
9883 2011-04-12 Martin Jambor <mjambor@suse.cz>
9885 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9886 instead of cgraph_node and assert it does not return NULL.
9887 * lto-streamer-in.c (lto_read_body): Likewise.
9888 * omp-low.c (new_omp_context): Likewise.
9889 (create_task_copyfn): Likewise.
9890 * tree-emutls.c (lower_emutls_function_body): Likewise.
9891 * matrix-reorg.c (transform_allocation_sites): Likewise.
9893 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9896 * c-typeck.c (build_asm_expr): Error out on attempts to use
9897 void type outputs or inputs for constraints that allow reg or
9900 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9901 Richard Earnshaw <rearnsha@arm.com>
9904 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9905 to use sign-magnitude offsets. Reject unsupported unaligned
9906 cases. Add detailed description in comments.
9907 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9908 condition from TARGET_32BIT to TARGET_ARM.
9910 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9912 * tree.h (struct typed_tree): New.
9913 (struct tree_common): Include it instead of tree_base.
9914 (TREE_TYPE): Update for new location of type field.
9915 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9916 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9917 (union tree_node): Add typed field.
9918 * treestruct.def (TS_TYPED): New.
9919 * lto-streamer.c (check_handled_ts_structures): Handle it.
9920 * tree.c (MARK_TS_TYPED): New macro.
9921 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9923 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9925 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9926 (force_nonfallthru): Do not alter the loop nest if no basic block
9929 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9931 * config/i386/sse.md (VI): New mode iterator.
9933 (AVX256MODEI): Ditto.
9934 (AVXMODEF4P): Ditto.
9935 (avxvecpsmode): Ditto.
9936 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9937 (sse2_andnot<mode>3): New expander.
9938 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9939 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9940 (<any_logic:code><mode>3): Use VI mode iterator.
9941 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9942 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9943 (*andnottf3): Handle AVX three-operand constraints.
9944 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9946 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9947 Robert Millan <rmh@gnu.org>
9949 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9950 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9951 GNU_USER_DYNAMIC_LINKER64): Define.
9952 (REG_NAME): Don't undefine.
9953 (MD_UNWIND_SUPPORT): Undefine.
9954 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9955 (REG_NAME): Don't undefine.
9956 (MD_UNWIND_SUPPORT): Undefine.
9957 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9959 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9961 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9962 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9964 2011-04-11 Xinliang David Li <davidxl@google.com>
9966 * value-profile.c (check_ic_target): New function.
9967 (gimple_ic_transform): Sanity check indirect call target.
9968 * gimple-low.c (gimple_check_call_args): Interface change.
9969 (gimple_check_call_matching_types): New function.
9970 * tree-inline.c (tree_can_inline_p): Call new function.
9972 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9974 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9975 tree-pretty-print.h & realmpfr.h.
9977 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9980 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9981 (setup_allocno_and_important_classes): Ditto.
9983 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9985 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9986 GNU_USER_DYNAMIC_LINKER.
9987 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9988 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9989 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9990 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9991 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9992 GNU_USER_TARGET_OS_CPP_BUILTINS.
9993 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9994 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9995 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9996 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9997 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9998 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9999 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10000 GNU_USER_TARGET_OS_CPP_BUILTINS.
10001 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10002 GNU_USER_DYNAMIC_LINKER.
10003 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10004 GNU_USER_TARGET_OS_CPP_BUILTINS.
10005 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10006 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10007 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10009 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10010 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10011 GNU_USER_DYNAMIC_LINKER64): Remove.
10012 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10013 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10014 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10015 GNU_USER_DYNAMIC_LINKER.
10016 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10017 GNU_USER_TARGET_OS_CPP_BUILTINS.
10018 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10019 GNU_USER_TARGET_OS_CPP_BUILTINS.
10020 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10021 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10022 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10023 GNU_USER_TARGET_OS_CPP_BUILTINS.
10024 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10025 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10026 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10027 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10029 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10030 GNU_USER_DYNAMIC_LINKER.
10031 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10032 GNU_USER_TARGET_OS_CPP_BUILTINS.
10033 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10034 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10035 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10036 GNU_USER_DYNAMIC_LINKER.
10037 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10038 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10039 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10040 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10041 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10042 GNU_USER_DYNAMIC_LINKER.
10043 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10044 GNU_USER_DYNAMIC_LINKERN32.
10045 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10046 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10047 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10048 GNU_USER_DYNAMIC_LINKER32.
10049 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10050 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10051 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10052 GNU_USER_DYNAMIC_LINKER.
10053 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10054 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10055 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10056 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10057 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10058 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10059 GNU_USER_DYNAMIC_LINKER32.
10060 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10061 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10062 GNU_USER_DYNAMIC_LINKER.
10063 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10064 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10065 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10066 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10067 GNU_USER_DYNAMIC_LINKER64.
10068 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10069 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10070 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10071 GNU_USER_DYNAMIC_LINKER.
10072 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10073 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10074 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10075 GNU_USER_DYNAMIC_LINKER.
10076 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10077 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10078 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10079 GNU_USER_DYNAMIC_LINKER32.
10080 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10081 GNU_USER_DYNAMIC_LINKER64.
10082 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10083 GNU_USER_DYNAMIC_LINKER64.
10084 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10086 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10087 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10088 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10090 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10092 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10093 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10094 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10095 GNU_USER_DYNAMIC_LINKER.
10096 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10097 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10098 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10099 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10100 GNU_USER_DYNAMIC_LINKER64.
10101 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10102 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10103 GNU_USER_LINK_EMULATION.
10104 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10105 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10106 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10107 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10108 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10109 CPP_SPEC, CC1_SPEC): Remove.
10110 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10111 (GNU_USER_DYNAMIC_LINKER): Define.
10112 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10113 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10114 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10115 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10116 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10117 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10118 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10119 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10120 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10121 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10122 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10123 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10124 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10125 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10126 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10127 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10128 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10129 GNU_USER_DYNAMIC_LINKER.
10130 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10131 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10132 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10133 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10134 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10135 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10136 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10137 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10138 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10139 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10141 2011-04-11 Kai Tietz <ktietz@redhat.com>
10145 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10146 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10148 (ix86_is_msabi_thiscall): Removed.
10149 (ix86_is_type_thiscall): Likewise.
10150 (ix86_get_callcvt): New function.
10151 (ix86_comp_type_attributes): Simplify check.
10152 (ix86_function_regparm): Use ix86_get_callcvt for calling
10153 convention attribute checks.
10154 (ix86_return_pops_args): Likewise.
10155 (ix86_static_chain): Likewise.
10156 (x86_this_parameter): Likewise.
10157 (x86_output_mi_thunk): Likewise.
10158 (ix86_function_type_abi): Optimize check for types without attributes.
10159 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10160 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10161 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10163 (IX86_BASE_CALLCVT): Helper macro.
10164 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10165 Use ix86_get_callcvt for calling convention attribute checks and avoid
10166 symbol-decoration for stdcall in TARGET_RTD case.
10167 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10169 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10172 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10174 * config/i386/sse.md (VI_128): New mode iterator.
10175 (VI12_128): Rename from SSEMODE12.
10176 (VI14_128): Rename from SSEMODE14.
10177 (VI124_128): New mode iterator.
10178 (VI24_128): Rename from SSEMODE248.
10179 (VI248_128): Rename from SSEMODE248.
10180 (SSEMODE124C8): Remove.
10181 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10182 (*sse2_<plusminus_insn><mode>3): Merge with
10183 *avx_<plusminus_insn><mode>3.
10184 (*mulv8hi3): Merge with *avx_mulv8hi3.
10185 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10186 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10187 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10188 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10189 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10190 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10191 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10192 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10193 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10194 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10195 (*<smaxmin:code>v8hi3): Ditto.
10196 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10197 (*<smaxmin:code>v16qi3): Ditto.
10198 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10199 (*sse2_eq<mode>3): Ditto.
10200 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10201 (*sse2_gt<mode>3): Ditto.
10202 (vcondv2di): Split out of vcond<mode>.
10203 (vconduv2di): Split out of vcondu<mode>.
10205 2011-04-11 Richard Guenther <rguenther@suse.de>
10207 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10208 before calling tree_low_cst.
10210 2011-04-11 Richard Guenther <rguenther@suse.de>
10212 * stor-layout.c (layout_type): Compute all array index size operations
10213 in the original type.
10214 (initialize_sizetypes): Add comment.
10215 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10217 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10219 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10221 2011-04-11 Martin Jambor <mjambor@suse.cz>
10223 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10224 of cgraph_node, handle NULL return value.
10225 (cgraph_global_info): Likewise.
10226 (cgraph_rtl_info): Likewise.
10227 * tree-inline.c (estimate_num_insns): Likewise.
10228 * gimplify.c (unshare_body): Likewise.
10229 (unvisit_body): Likewise.
10230 (gimplify_body): Likewise.
10231 * predict.c (optimize_function_for_size_p): Likewise.
10232 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10233 (call_may_clobber_ref_p_1): Likewise.
10234 * varasm.c (function_section_1): Likewise.
10235 (assemble_start_function): Likewise.
10237 2011-04-11 Martin Jambor <mjambor@suse.cz>
10239 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10241 * final.c (rest_of_clean_state): Likewise.
10242 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10243 * passes.c (pass_init_dump_file): Likewise.
10244 (execute_all_ipa_transforms): Likewise.
10245 (function_called_by_processed_nodes_p): Likewise.
10246 * predict.c (maybe_hot_frequency_p): Likewise.
10247 (probably_never_executed_bb_p): Likewise.
10248 (compute_function_frequency): Likewise.
10249 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10250 (unnest_nesting_tree_1): Likewise.
10251 (lower_nested_functions): Likewise.
10252 * tree-optimize.c (execute_fixup_cfg): Likewise.
10253 (tree_rest_of_compilation): Likewise.
10254 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10255 * tree-sra.c (ipa_early_sra): Likewise.
10256 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10257 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10258 * ipa.c (record_cdtor_fn): Likewise.
10259 * ipa-inline.c (cgraph_early_inlining): Likewise.
10260 (compute_inline_parameters_for_current): Likewise.
10261 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10262 * ipa-pure-const.c (local_pure_const): Likewise.
10263 * ipa-split.c (split_function): Likewise.
10264 (execute_split_functions): Likewise.
10265 * cgraphbuild.c (build_cgraph_edges): Likewise.
10266 (rebuild_cgraph_edges): Likewise.
10267 (cgraph_rebuild_references): Likewise.
10268 (remove_cgraph_callee_edges): Likewise.
10269 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10270 (verify_cgraph_node): Likewise.
10271 (cgraph_analyze_functions): Likewise.
10272 (cgraph_preserve_function_body_p): Likewise.
10273 (save_inline_function_body): Likewise.
10274 (save_inline_function_body): Likewise.
10275 * tree-inline.c (copy_bb): Likewise.
10276 (optimize_inline_calls): Likewise.
10278 2011-04-11 Martin Jambor <mjambor@suse.cz>
10280 PR tree-optimization/48195
10281 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10282 ipa_check_create_edge_args.
10283 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10284 ipa_check_create_edge_args.
10285 * ipa-inline.c (inline_generate_summary): Do not call
10286 ipa_check_create_node_params and ipa_check_create_edge_args.
10287 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10288 ipa_check_create_edge_args.
10290 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10292 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10294 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10295 * function.c (record_hard_reg_sets): Likewise.
10296 * ira.c (compute_regs_asm_clobbered): Likewise.
10297 * sched-deps.c (sched_analyze_1): Likewise.
10298 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10300 2011-04-09 Xinliang David Li <davidxl@google.com>
10302 PR tree-optimization/PR48484
10303 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10304 has_valid_pred lazily
10306 2011-04-09 Duncan Sands <baldrick@free.fr>
10308 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10310 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10312 * combine.c (combine_validate_cost): Adjust comments. Set registered
10313 cost of I0 to zero at the end, if any.
10315 2011-04-08 Xinliang David Li <davidxl@google.com>
10317 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10318 to insane profile data.
10320 2011-04-08 Xinliang David Li <davidxl@google.com>
10322 * ipa-cp.c (ipcp_update_profiling): Correct
10323 negative scale factor due to insane profile data.
10325 2011-04-08 Xinliang David Li <davidxl@google.com>
10327 * final.c (dump_basic_block_info): New function.
10328 (final): Dump basic block.
10329 (final_scan_insn): Remove old dump.
10331 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10334 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10337 2011-04-08 Michael Matz <matz@suse.de>
10339 PR middle-end/48389
10340 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10342 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10343 * rtl.h (rebuild_jump_labels_chain): Declare.
10344 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10345 insns inserted on edges.
10347 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10349 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10350 * config/arm/arm-arches.def: New.
10351 * config/arm/arm-opts.h: New.
10352 * config/arm/genopt.sh: New.
10353 * config/arm/arm-tables.opt: New (generated).
10354 * config/arm/arm.c (arm_handle_option, arm_target_help,
10355 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10356 (all_architectures): Get most table contents from arm-arches.def.
10357 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10358 arm_selected_tune here.
10359 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10360 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10361 (march=, mcpu=, mtune=): Use Enum and Var.
10362 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10363 (arm.o): Update dependencies.
10365 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10367 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10369 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10370 (write_typed_alloc_defns): Likewise.
10371 (main): Calls write_typed_alloc_defns with output_header.
10373 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10375 PR inline-asm/48435
10376 * ira-color.c (setup_profitable_hard_regs): Add comments.
10377 Don't take prohibited hard regs into account.
10378 (setup_conflict_profitable_regs): Rename to
10379 get_conflict_profitable_regs.
10380 (check_hard_reg_p): Check prohibited hard regs.
10382 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10384 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10385 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10386 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10388 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10391 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10392 move from floating point to shift amount register.
10393 (emit_move_sequence): Remove secondary reload support for floating
10394 point to shift amount amount register copies.
10395 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10396 amount register copies.
10397 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10398 register, return false if mode isn't a scalar integer mode.
10399 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10401 2011-04-08 Richard Guenther <rguenther@suse.de>
10403 * gimple.c (gimple_call_flags): Remove kludge.
10405 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10407 * sel-sched.c (sel_region_init): Move call to
10408 sel_setup_region_sched_flags after setup_current_loop_nest.
10410 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10412 PR rtl-optimization/48272
10413 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10414 init_insn_reg_pressure_info. Adjust a caller.
10415 * sched-int.h (init_insn_reg_pressure_info): Declare.
10416 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10417 when sched-pressure is enabled.
10419 2011-04-08 Richard Guenther <rguenther@suse.de>
10421 * gimple.c (gimple_set_modified): Do not queue calls to
10422 MODIFIED_NORETURN_CALLS here ...
10423 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10425 2011-04-08 Richard Guenther <rguenther@suse.de>
10428 * toplev.c (lang_dependent_init): Do not open asm_out_file
10429 in WPA mode, nor perform debug machinery initialization.
10430 (finalize): Do not unlink asm_out_file in WPA mode.
10432 2011-04-08 Richard Guenther <rguenther@suse.de>
10434 * gimple.h (gimple_call_fntype): New function.
10435 (gimple_call_return_type): Use it.
10436 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10437 * gimple-low.c (gimple_check_call_args): Likewise.
10438 * gimple.c (gimple_call_flags): Likewise.
10439 (gimple_call_arg_flags): Likewise.
10440 (gimple_call_return_flags): Likewise.
10441 * tree-cfg.c (verify_gimple_call): Likewise.
10442 (do_warn_unused_result): Likewise.
10443 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10444 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10446 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10448 PR rtl-optimization/48235
10449 * sel-sched.c (code_motion_process_successors): Recompute the last
10450 insn in basic block if control flow changed.
10451 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10452 Update condition for ilist_remove.
10454 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10456 PR rtl-optimization/48302
10457 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10458 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10459 it to record added preheader blocks.
10460 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10461 on to sel_add_loop_preheaders.
10462 (sel_region_init): Move call to setup_current_loop_nest after
10465 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10468 * cfgloop.h (loop_has_exit_edges): New helper.
10469 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10471 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10472 that have no exit edges.
10474 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10476 PR rtl-optimization/48442
10477 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10478 all callers. Adjust assert.
10480 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10482 PR tree-optimization/48377
10483 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10484 is_packed to true even for types with smaller TYPE_ALIGN than
10487 2011-04-08 Richard Guenther <rguenther@suse.de>
10490 * doc/tm.texi: Re-generate.
10492 2011-04-08 Wei Guozhi <carrot@google.com>
10495 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10496 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10497 * config/arm/arm.md (*push_multi): Change the length computation to
10500 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10502 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10503 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10504 * doc/tm.texi: Regenerate.
10505 * system.h (ASM_OUTPUT_BSS): Poison.
10506 * varasm.c (asm_output_bss): Remove function.
10507 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10509 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10510 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10511 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10512 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10514 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10516 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10518 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10520 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10522 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10525 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10527 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10528 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10529 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10531 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10532 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10533 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10534 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10535 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10536 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10537 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10538 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10539 options. Don't map other m68k options manually. Don't handle
10540 old-style options as canonical.
10541 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10542 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10544 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10546 * basic-block.h (force_nonfallthru): Move to...
10547 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10548 (force_nonfallthru): ...here.
10549 * cfghooks.c (force_nonfallthru): New function.
10550 * cfgrtl.c (force_nonfallthru): Rename into...
10551 (rtl_force_nonfallthru): ...this.
10552 (commit_one_edge_insertion): Do not set AUX field.
10553 (commit_edge_insertions): Do not discover new basic blocks.
10554 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10555 (cfg_layout_rtl_cfg_hooks): Likewise.
10556 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10557 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10558 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10560 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10562 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10565 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10567 * config/i386/sse.md: Update copyright year.
10568 (avxcvtvecmode): Remove.
10569 (sse_movhlps): Merge with *avx_movhlps.
10570 (sse_movlhps): Merge with *avx_movlhps.
10571 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10572 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10573 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10574 (sse_loadhps): Merge with *avx_loadhps.
10575 (sse_storelps): Merge with *avx_storelps.
10576 (sse_loadlps): Merge with *avx_loadlps.
10577 (sse_movss): Merge with *avx_movss.
10578 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10579 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10580 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10581 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10582 (vec_set<mode>_0): Ditto.
10583 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10584 (sse4_1_insertps): Merge with *avx_insertps.
10585 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10586 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10587 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10588 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10589 (sse2_storehpd): Merge with *avx_storehpd.
10590 (sse2_loadhpd): Merge with *avx_loadhpd.
10591 (sse2_loadlpd): Merge with *avx_loadlpd.
10592 (sse2_movsd): Merge with *avx_movsd.
10593 (*vec_concatv2df): Merge with *vec_concatv2df.
10595 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10598 * combine.c (combine_instructions): Add last_combined_insn,
10599 update it if insn is after it, pass it to all try_combine calls.
10600 (try_combine): Add last_combined_insn parameter, pass it instead of
10601 i3 to propagate_for_debug.
10603 2011-04-07 Nick Clifton <nickc@redhat.com>
10605 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10606 to handle MDR <-> data register transfers.
10607 (movhi_internal): Likewise.
10609 2011-04-07 Alan Modra <amodra@gmail.com>
10611 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10612 previous stack info.
10614 2011-04-07 Tom de Vries <tom@codesourcery.com>
10617 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10618 flow_find_cross_jump. Swap variables to implement backward replacement.
10619 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10621 2011-04-07 Tom de Vries <tom@codesourcery.com>
10624 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10625 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10627 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10628 src1 or src2. Redirect edges to the last basic block. Update
10629 frequency and count on multiple basic blocks in case of fallthru.
10631 2011-04-07 Tom de Vries <tom@codesourcery.com>
10634 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10636 (old_insns_match_p): Change return type. Replace return false/true
10637 with return dir_none/dir_both. Use can_replace_by.
10638 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10639 direction from dir_p. Register replacement direction in dir, last_dir
10640 and afterlast_dir. Handle new return type of old_insns_match_p using
10641 merge_dir. Return replacement direction in dir_p.
10642 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10643 return type of old_insns_match_p.
10644 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10645 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10646 flow_find_cross_jump.
10647 * basic-block.h (enum replace_direction): New type.
10648 (flow_find_cross_jump): Add parameter to declaration.
10650 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10652 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10653 (AVXMODEDCVTPS2DQ): Ditto.
10654 (VEC_FLOAT_MODE): Ditto.
10655 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10656 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10657 (<any_logic:code><mode>3): Use VF mode iterator.
10658 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10659 Use VF mode iterator.
10660 (copysign<mode>3): Use VF mode iterator.
10661 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10662 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10663 (*<any_logic:code><MODEF:mode>3): Merge with
10664 *avx_<any_logic:code><MODEF:mode>3.
10665 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10666 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10667 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10668 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10669 (sse2_cvtdq2ps): Use %v modifier.
10670 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10671 (avx_cvtps2dq<avxmodesuffix>): Remove.
10672 (sse2_cvtps2dq): Use %v modifier.
10673 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10674 (avx_cvttps2dq<avxmodesuffix>): Remove.
10675 (sse2_cvttps2dq): Use %v modifier.
10676 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10677 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10678 (sse2_cvtsd2siq): Fix insn template.
10679 (sse2_cvtsd2siq_2): Ditto.
10680 (sse2_cvttsd2siq): Ditto.
10681 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10682 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10684 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10686 * gcov-io.c: Use GCC Runtime Library Exception.
10688 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10691 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10692 as base_reg whatever register reg has been eliminated to, instead
10693 of hardcoding STACK_POINTER_REGNUM.
10695 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10697 * doc/tm.texi.in: Document C target hooks as separate from general
10699 * doc/tm.texi: Regenerate.
10700 * genhooks.c (struct hook_desc): Add docname field.
10701 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10703 (hook_array): Include c-target.def.
10704 (emit_documentation): Use docname field in output.
10705 (emit_init_macros): Take docname argument. Only emit definitions
10706 for hooks matching docname.
10707 (main): Expect additional arguments in all cases. Pass argument
10708 to emit_init_macros.
10709 * target.def: Move initial macro definitions and comments to
10710 target-hooks-macros.h.
10711 (gcc_targetcm): Move to c-family/c-target.def.
10712 * target.h (targetcm): Move declaration to c-family/c-target.h.
10713 * targhooks.c (default_handle_c_option): Move to
10715 * targhooks.h (default_handle_c_option): Move declaration to
10716 c-family/c-common.h.
10717 * target-hooks-macros.h: New file.
10718 * config.gcc (target_has_targetcm): Define and use to add to
10719 c_target_objs and cxx_target_objs.
10720 * config/default-c.c: New file.
10721 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10722 of target.h and target-def.h.
10723 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10724 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10725 darwin_check_cfstring_format_arg): Make static.
10726 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10727 TARGET_STRING_OBJECT_REF_TYPE_P,
10728 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10729 * config/darwin-protos.h (darwin_objc_construct_string,
10730 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10732 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10733 TARGET_STRING_OBJECT_REF_TYPE_P,
10734 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10735 * config/t-darwin (darwin-c.o): Update dependencies.
10736 * system.h (TARGET_HAS_TARGETCM): Poison.
10737 * Makefile.in (TARGET_H): Update.
10738 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10739 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10740 (default-c.o): New target.
10741 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10742 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10743 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10745 (build/genhooks.o): Update dependencies.
10747 2011-04-06 Richard Guenther <rguenther@suse.de>
10749 * ipa-inline.c (enum inlining_mode): Remove.
10750 (cgraph_flatten): Use some other token.
10751 (cgraph_edge_early_inlinable_p): New function, split out from ...
10752 (cgraph_perform_always_inlining): New function, split out from ...
10753 (cgraph_decide_inlining_incrementally): ... here.
10754 (cgraph_mark_inline_edge): Adjust.
10755 (cgraph_early_inlining): Re-structure.
10756 (pass_early_inline): Require SSA form.
10758 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10759 Julian Brown <julian@codesourcery.com>
10760 Mark Shinwell <shinwell@codesourcery.com>
10762 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10763 LO_REGS only for Thumb-1.
10764 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10765 be used in short instructions when optimising for size on Thumb-2.
10767 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10769 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10770 associated with user returns to be preserved.
10772 2011-04-06 Tristan Gingold <gingold@adacore.com>
10774 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10775 symbol_queue_size, DBXOUT_DECR_NESTING,
10776 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10777 if XCOFF_DEBUGGING_INFO.
10779 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10781 * config/i386/i386.md (attribute isa): New.
10782 (attribute enabled): New.
10783 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10784 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10785 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10786 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10787 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10788 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10789 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10790 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10792 * config/i386/sse.md (VF): New mode iterator.
10796 (SSEMODEF4): Remove.
10797 (attribute sse): Handle V8SF and V4DF modes.
10798 (<absneg:code><mode>2): Use VF mode iterator.
10799 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10801 (<plusminus_insn><mode>3): Use VF mode iterator.
10802 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10803 Use VF mode iterator.
10804 (<sse>_vm<plusminus_insn><mode>3): Merge with
10805 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10806 (mul<mode>3): Use VF mode iterator.
10807 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10808 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10810 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10811 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10812 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10813 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10815 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10816 Use VF1 mode iterator.
10817 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10818 (sqrt<VF2:mode>2): New expander.
10819 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10820 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10821 and sqrtv2df2. Use VF mode iterator.
10822 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10824 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10825 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10826 Use VF1 mode iterator.
10827 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10828 (<smaxmin:code><mode>3): Use VF mode iterator.
10829 (*<smaxmin:code><mode>3_finite): Merge with
10830 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10831 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10832 (<sse>_vm<smaxmin:code><mode>2): Merge with
10833 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10834 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10836 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10838 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10839 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10840 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10841 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10842 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10844 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10845 Use VF_128 mode iterator.
10846 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10848 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10849 VF_128 mode iterator.
10850 (vcond<mode>): Use VF mode iterator.
10851 * config/i386/predicates.md (sse_comparison_operator): Merge with
10852 avx_comparison_float_operator. Do not declare as special_predicate.
10853 * config/i386/i386.c (struct builtin_description): Update for renamed
10855 (ix86_expand_args_builtin): Ditto.
10856 (ix86_expand_sse_compare_mask): Ditto.
10858 2011-04-06 Richard Guenther <rguenther@suse.de>
10860 * tree-inline.c (estimate_num_insns): For calls simply account
10861 for all passed arguments and a used return value.
10863 2011-04-06 Richard Guenther <rguenther@suse.de>
10865 PR tree-optimization/47663
10866 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10867 call_stmt_time fields.
10868 (cgraph_edge_inlinable_p): Declare.
10869 (cgraph_edge_recursive_p): New inline function.
10870 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10871 (cgraph_clone_edge): Copy it.
10872 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10873 Account for call stmt time.
10874 (cgraph_estimate_time_after_inlining): Take edge argument.
10875 (cgraph_estimate_edge_growth): Account call stmt size.
10876 (cgraph_estimate_size_after_inlining): Take edge argument.
10877 (cgraph_mark_inline_edge): Adjust.
10878 (cgraph_check_inline_limits): Likewise.
10879 (cgraph_recursive_inlining_p): Remove.
10880 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10881 (cgraph_decide_recursive_inlining): Take edge argument and
10883 (cgraph_decide_inlining_of_small_functions): Do not avoid
10884 diags for recursive inlining here.
10885 (cgraph_flatten): Adjust.
10886 (cgraph_decide_inlining_incrementally): Likewise.
10887 (estimate_function_body_sizes): Remove call cost handling.
10888 (compute_inline_parameters): Initialize caller edge call costs.
10889 (cgraph_estimate_edge_growth): New function.
10890 (cgraph_estimate_growth): Use it.
10891 (cgraph_edge_badness): Likewise.
10892 (cgraph_check_inline_limits): Take an edge argument.
10893 (cgraph_decide_inlining_of_small_functions): Adjust.
10894 (cgraph_decide_inlining): Likewise.
10895 * tree-inline.c (estimate_num_insns): Only account for call
10896 return value if it is used.
10897 (expand_call_inline): Avoid diagnostics on recursive inline
10899 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10900 (input_edge): Input edge call costs.
10902 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10904 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10906 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10908 * doc/invoke.texi (Spec Files): Fix typo.
10910 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10912 * profile.c (branch_prob): Move declaration of local variable. Remove
10913 obsolete ??? comment. Expand the location explicitly instead of using
10914 the LOCATION_FILE and LOCATION_LINE macros.
10916 2011-04-06 Wei Guozhi <carrot@google.com>
10919 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10920 (arm_cond_branch): Likewise.
10921 (arm_cond_branch_reversed): Likewise.
10922 (arm_jump): Likewise.
10923 (push_multi): Likewise.
10924 * config/arm/constraints.md (Py): New constraint.
10926 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10929 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10931 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10932 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10933 #ifdef DBX_DEBUGGING_INFO.
10935 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10938 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10939 if old and new states differ.
10941 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10943 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10944 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10945 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10946 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10947 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10948 mcfv4e): Use Alias.
10949 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10950 ColdFire options to -mcpu= options.
10952 2011-04-05 Jeff Law <law@redhat.com>
10954 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10955 check if BB is a successor of LOOP->header and return
10956 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10958 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10960 * cprop.c (struct reg_use): Remove.
10961 (reg_use_table): Make an array of RTX.
10962 (find_used_regs, constprop_register, local_cprop_pass,
10963 bypass_block): Simplify users of reg_use_table.
10964 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10965 on one of the uses found by find_used_regs.
10967 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10970 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10973 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10975 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10977 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10979 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10981 PR middle-end/48441
10982 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10984 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10986 * combine.c: Include obstack.h.
10987 (struct insn_link): Define.
10988 (uid_log_links): Adjust type.
10989 (FOR_EACH_LOG_LINK): New macro.
10990 (insn_link_obstack): Declare.
10991 (alloc_insn_link): Define.
10992 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10993 type of link variables.
10994 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10995 (try_combine, record_promoted_values, distribute_notes): Likewise.
10996 (distribute_links): Likewise. Tweak prototype.
10997 (clear_log_links): Delete.
10998 (adjust_for_new_dest): Call alloc_insn_link.
10999 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11001 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11003 * gcse.c (modify_mem_list): Convert to an array of VECs.
11004 (canon_modify_mem_list, compute_transp): Tweak formatting.
11005 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11006 (load_killed_in_block_p): Likewise.
11007 (record_last_mem_set_info): Likewise.
11008 (clear_modify_mem_tables): Likewise.
11010 2011-04-05 Tom de Vries <tom@codesourcery.com>
11012 PR middle-end/48461
11013 * function.c (emit_use_return_register_into_block): Only define if
11016 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11018 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11020 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11022 * config/rx/rx-opts.h: New.
11023 * config/rx/rx.c (rx_cpu_type): Remove.
11024 (rx_handle_option): Don't assert that global structures are in
11025 use. Access variables via opts pointer. Defer most handling of
11026 OPT_mint_register_. Use error_at.
11027 (rx_option_override): Handle deferred OPT_mint_register_ here.
11028 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11029 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11030 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11031 (rx_cpu_types): New Enum and EnumValue entries.
11032 (mint-register=): Use Defer and use Var accordingly.
11034 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11036 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11037 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11038 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11040 (debug_free_queue, debug_nesting, symbol_queue_index):
11042 * dbxout.c: ...to here. Make static.
11044 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11046 * gcse.c (modify_pair): Define. Define a VEC of it.
11047 (canon_modify_mem_list): Convert to an array of VECs.
11048 (free_insn_expr_list_list): Delete.
11049 (clear_modify_mem_tables): Call VEC_free instead.
11050 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11051 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11052 (canon_list_insert, compute_transp): Likewise.
11054 2011-04-05 Tom de Vries <tom@codesourcery.com>
11057 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11060 2011-04-05 Tom de Vries <tom@codesourcery.com>
11063 * function.c (emit_use_return_register_into_block): New function.
11064 (thread_prologue_and_epilogue_insns): Use
11065 emit_use_return_register_into_block.
11067 2011-04-05 Tom de Vries <tom@codesourcery.com>
11070 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11073 2011-04-05 Tom de Vries <tom@codesourcery.com>
11075 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11077 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11079 * config/arm/arm.md (define_constants for unspec): Replace with
11081 (define_constants for unspecv): Replace with define_c_enum.
11082 * config/arm/neon.md (define_constants for unspec): Replace with
11085 2011-04-04 Richard Henderson <rth@redhat.com>
11088 * dwarf2out.c (output_line_info): Always emit line info from
11089 at least one section.
11090 (dwarf2out_init): Create text_section_line_info here ...
11091 (set_cur_line_info_table): ... not here.
11093 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11096 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11099 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11101 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11103 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11104 (expr_equiv_p): Remove.
11105 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11106 (hash_scan_set): Update call to insert_set_in_table.
11107 (dump_hash_table): Dump <dest, src> pair.
11108 (lookup_set): Simplify. Lookup <dest, src> pair.
11109 (compute_transp): Remove, fold heavily simplified code into...
11110 (compute_local_properties): ...here. Expect COMP and TRANSP
11112 (find_avail_set): Take set directly from struct expr.
11113 (find_bypass-set): Likewise.
11114 (bypass_block): Likewise.
11115 (cprop_insn): Likewise. Remove redundant INSN_P test.
11117 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11118 checks on form of COND from find_implicit_sets to here.
11119 (find_implicit_sets): Cleanup control flow. Split critical edges
11120 if it exposes implicit sets. Allocate/resize implicit_sets as
11122 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11123 changed something. Run df_analyze after find_implicit_sets if any
11124 edges were split. Do not allocate implicit_sets here.
11126 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11127 (gcse_obstack): Renamed to cprop_obstack.
11128 (GNEW, GNEWVEC, GNEWVAR): Remove.
11130 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11131 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11132 (gcse_alloc): Likewise, and rename to cprop_alloc.
11133 (alloc_gcse_men, free_gcse_mem): Remove.
11134 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11135 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11136 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11138 * cprop.c (oprs_not_set_p): Remove.
11139 (mark_set, mark_clobber): Remove.
11140 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11141 (reg_not_set_p): New function.
11142 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11143 (cprop_insn): Likewise.
11144 (cprop_jump): Use FOR_EACH_EDGE.
11146 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11149 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11150 (rank_for_schedule): Use scheduled_insns vector instead of
11151 last_scheduled_insn.
11152 (ok_for_early_queue_removal): Likewise.
11153 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11155 (choose_ready): Likewise.
11156 (commit_schedule): Use VEC_iterate.
11157 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11158 a dbg_cnt, use it and ensure the first insn is in the ready list.
11159 (haifa_sched_init): Allocate scheduled_insns.
11160 (sched_extend_ready_list): Don't allocate it; reserve space.
11161 (haifa_sched_finish): Free it.
11163 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11165 * optc-gen.awk: Always remove type from Variable entry before
11166 recording in var_seen.
11168 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11170 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11171 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11172 call to tidy_fallthru_edges.
11174 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11176 * doc/options.texi (ToLower): Document.
11177 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11178 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11179 * opts.h (cl_option): Add cl_tolower field.
11180 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11181 arguments with lowercase strings.
11182 * config/rx/rx.opt (mcpu=): Add ToLower.
11183 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11186 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11188 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11190 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11192 * config/vax/vax.c: Include reload.h.
11194 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11196 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11197 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11198 (sparc_preferred_reload_class): New function.
11200 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11203 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11204 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11206 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11208 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11209 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11211 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11213 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11214 (ASM_OUTPUT_ALIGNED_BSS): Define.
11216 2011-04-03 Michael Matz <matz@suse.de>
11218 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11219 and next_slot members.
11220 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11221 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11222 (lto_streamer_cache_append): Declare.
11223 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11224 unsigned index, remove offset parameter, ensure that we append
11225 or update existing entries.
11226 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11227 parameter, update next_slot for append.
11228 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11230 (lto_streamer_cache_insert_at): Likewise.
11231 (lto_streamer_cache_append): New function.
11232 (lto_streamer_cache_lookup): Use unsigned index.
11233 (lto_streamer_cache_get): Likewise.
11234 (lto_record_common_node): Don't test tree_node_can_be_shared.
11235 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11236 (lto_streamer_cache_delete): Don't free offsets member.
11237 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11238 (lto_output_string_with_length): Use lto_output_data_stream.
11239 (lto_output_tree_header): Remove ix parameter, don't write it.
11240 (lto_output_builtin_tree): Likewise.
11241 (lto_write_tree): Adjust callers to above, don't track and write
11242 offset, write unsigned index.
11243 (output_unreferenced_globals): Don't emit all global vars.
11244 (write_global_references): Use unsigned indices.
11245 (lto_output_decl_state_refs): Likewise.
11246 (write_symbol): Likewise.
11247 * lto-streamer-in.c (lto_input_chain): Move earlier.
11248 (input_function): Use unsigned index.
11249 (input_alias_pairs): Don't read and then ignore all global vars.
11250 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11251 don't pass it back, use lto_streamer_cache_append.
11252 (lto_register_var_decl_in_symtab): Use unsigned index.
11253 (lto_register_function_decl_in_symtab): Likewise.
11254 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11256 (lto_get_builtin_tree): Don't read index, use
11257 lto_streamer_cache_append.
11258 (lto_read_tree): Adjust call to lto_materialize_tree.
11260 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11261 don't use function calls in arguments to MIN.
11263 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11266 * gimple.c (gimple_type_leader_entry): Mark deletable.
11268 2011-04-03 Alan Modra <amodra@gmail.com>
11270 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11272 2011-04-03 Michael Matz <matz@suse.de>
11274 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11276 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11278 2011-04-03 Michael Matz <matz@suse.de>
11280 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11281 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11282 without function context.
11283 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11284 current_function_decl and cfun.
11286 2011-04-03 Michael Matz <matz@suse.de>
11288 * tree.c (decl_init_priority_insert): Don't create entry for
11290 (decl_fini_priority_insert): Ditto.
11291 (fields_compatible_p, find_compatible_field): Remove.
11292 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11293 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11295 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11297 * combine.c (try_combine): Remove useless local variable.
11299 2011-04-03 Richard Guenther <rguenther@suse.de>
11300 Ira Rosen <ira.rosen@linaro.org>
11302 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11303 non-variable offsets and compare the remaining bases of the two
11304 accesses instead of looking for exact same data-ref.
11306 2011-04-02 Kai Tietz <ktietz@redhat.com>
11309 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11311 * i386.c (ix86_is_msabi_thiscall): New helper function.
11312 (ix86_is_type_thiscall): New helper function.
11313 (ix86_comp_type_attributes): Handle thiscall for method-functions
11315 (init_cumulative_args): Likewise.
11316 (find_drap_reg): Likewise.
11317 (ix86_static_chain): Likewise.
11318 (x86_this_parameter): Likewise.
11319 (x86_output_mi_thunk): Likewise.
11321 2011-04-01 Olivier Hainque <hainque@adacore.com>
11322 Nicolas Setton <setton@adacore.com>
11323 Eric Botcazou <ebotcazou@adacore.com>
11325 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11326 (add_gnat_descriptive_type_attribute): New function.
11327 (gen_array_type_die): Call it.
11328 (gen_enumeration_type_die): Likewise.
11329 (gen_struct_or_union_type_die): Likewise.
11330 (modified_type_die): Likewise.
11331 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11332 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11333 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11335 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11338 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11339 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11342 2011-03-17 Richard Guenther <rguenther@suse.de>
11345 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11346 origin for decls in other ltrans units.
11347 (input_varpool_node): Likewise.
11349 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11351 PR middle-end/48335
11352 * expr.c (expand_assignment): Handle all possibilities
11353 if TO_RTX is CONCAT.
11354 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11355 (store_split_bit_field): If SUBREG_REG (op0) or
11356 op0 itself has smaller mode than word, return it
11357 for offset 0 and const0_rtx for out-of-bounds stores.
11358 If word is const0_rtx, skip it.
11360 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11362 * config/h8300/h8300.c (print_operand_address): Rename to...
11363 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11364 Call h8300_print_operand and h8300_print_operand_address instead of
11365 print_operand and print_operand_address. Declare.
11366 (print_operand): Renake to...
11367 (h8300_print_operand): ...this. Make static. Adjust comments.
11368 Call h8300_print_operand instead of print_operand. Declare.
11369 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11370 (h8300_register_move_cost): Likewise.
11371 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11372 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11373 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11374 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11375 * config/h8300/h8300-protos.h (print_operand): Delete.
11376 (print_operand_address): Delete.
11378 2011-04-01 Richard Henderson <rth@redhat.com>
11381 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11382 in strict mode before dwarf4. Re-order tests to early out
11383 before switching sections.
11385 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11387 * config/h8300/constraints.md: New file.
11388 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11389 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11390 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11391 * config/h8300/predicates.md (bit_operand): Likewise.
11392 (incdec_operand): Use satisfies_constraint_M and
11393 satisfies_constraint_O. Don't use C code block.
11394 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11395 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11396 (compute_mov_length): Use satisfies_constraint_G.
11397 (fix_bit_operand): Use satisfies_constraint_U.
11398 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11399 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11400 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11401 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11402 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11403 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11404 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11405 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11406 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11407 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11408 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11409 (EXTRA_MEMORY_CONSTRAINT): Delete.
11411 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11412 Michael Meissner <meissner@linux.vnet.ibm.com>
11415 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11416 operands, as per the specifications.
11418 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11419 (vec_extract_evenv4sf): Ditto.
11420 (vec_extract_evenv8hi): Ditto.
11421 (vec_extract_evenv16qi): Ditto.
11422 (vec_extract_oddv4si): Ditto.
11424 2011-03-31 Mark Wielaard <mjw@redhat.com>
11426 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11427 high_pc attribute if the CU has no associated code. Only output
11428 DW_AT_entry_pc for CU if not generating strict dwarf and
11431 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11433 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11434 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11436 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11437 * final.c (final_start_function): Call the new function rather
11438 than using a NULL argument for dwarf2out_frame_debug.
11440 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11441 that contains the prologue.
11443 * haifa-sched.c (queue_insn): New arg REASON. All callers
11444 changed. Print it in debugging output.
11446 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11448 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11449 Split most of the code into...
11450 (begin_move_insn): ... here. New function.
11451 (ebb_sched_info): Add a pointer to it.
11452 * haifa-sched.c (scheduled_insns): New static variable.
11453 (sched_extend_ready_list): Allocate it.
11454 (schedule_block): Use it to record the order of scheduled insns.
11455 Perform RTL changes to move insns only after all scheduling
11456 decisions have been made.
11457 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11458 begin_move_insn field.
11459 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11460 * sched-int.h (struct haifa_sched_info): Remove second argument
11461 from begin_schedule_ready hook. Add new member begin_move_insn.
11462 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11463 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11465 * haifa-sched.c (prune_ready_list): New function, broken out of
11467 (schedule_block): Use it.
11469 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11471 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11473 2011-04-01 Kai Tietz <ktietz@redhat.com>
11475 * config.gcc (*-*-mingw*): Allow as option the
11476 posix threading model.
11477 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11478 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11480 (CPP_SPEC): Add pthread/no-pthread handling.
11481 (LIB_SPEC): Likewise.
11482 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11483 (LIB_SPEC): Likewise.
11484 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11485 flag to pass -pthread option for shared libgcc build.
11486 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11487 for shared libgcc build.
11488 * config/i386/t-mingw-pthread: New file.
11489 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11490 New define to enable use of library pthread by default.
11491 * config/i386/mingw.opt (pthread): New driver option.
11492 (no-pthread): New driver option.
11493 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11494 * config/i386/mingw-w64.opt: Likewise.
11496 2011-04-01 Gary Funck <gary@intrepid.com>
11498 * c-decl.c (grokdeclarator): Fix formatting.
11500 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11502 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11503 instead of n_operands.
11504 (set_storage_via_setmem): Likewise.
11505 * optabs.c (maybe_gen_insn): Likewise.
11506 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11507 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11508 (mips_expand_builtin_direct): Likewise.
11509 * config/spu/spu.c (expand_builtin_args): Likewise.
11511 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11513 * recog.h (insn_data_d): Add n_generator_args.
11514 * genoutput.c (data): Likewise.
11515 (output_insn_data): Print it.
11516 (max_opno, num_dups): Delete.
11517 (scan_operands): Just fill in "d->operand[...]".
11518 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11520 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11522 * gensupport.h (pattern_stats): New structure.
11523 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11524 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11525 (max_operand_1, max_operand_vec): Delete.
11526 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11528 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11530 * emit-rtl.c (emit_pattern_after_setloc): New function.
11531 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11532 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11533 (emit_pattern_after): New function.
11534 (emit_insn_after, emit_jump_insn_after): Call it.
11535 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11536 (emit_pattern_before_setloc): New function.
11537 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11538 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11540 (emit_pattern_before): New function.
11541 (emit_insn_before, emit_jump_insn_before): Call it.
11542 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11544 2011-03-31 Richard Henderson <rth@redhat.com>
11546 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11547 (dw_separate_line_info_entry): Remove.
11548 (enum dw_line_info_opcode): New.
11549 (dw_line_info_entry): Use it.
11550 (dw_line_info_table, dw_line_info_table_p): New.
11551 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11552 (line_info_table, line_info_label_num): Remove.
11553 (line_info_table_in_use): Remove.
11554 (separate_line_info_table): Remove.
11555 (separate_line_info_table_allocated): Remove.
11556 (separate_line_info_table_in_use): Remove.
11557 (LINE_INFO_TABLE_INCREMENT): Remove.
11558 (line_info_label_num): New.
11559 (cur_line_info_table): New.
11560 (text_section_line_info, cold_text_section_line_info): New.
11561 (separate_line_info): New.
11562 (SEPARATE_LINE_CODE_LABEL): Remove.
11563 (print_dwarf_line_table): Remove.
11564 (debug_dwarf): Don't dump it.
11565 (output_one_line_info_table): New.
11566 (output_line_info): Use it.
11567 (new_line_info_table): New.
11568 (set_cur_line_info_table): New.
11569 (dwarf2out_switch_text_section): Use it.
11570 (dwarf2out_begin_function): Likewise.
11571 (push_dw_line_info_entry): New.
11572 (dwarf2out_source_line): Rewrite for new line info tables.
11573 (dwarf2out_init): Remove dead initailizations.
11575 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11577 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11579 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11580 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11581 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11582 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11583 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11584 * opt-functions.awk (flag_init, switch_bit_fields): New.
11585 (switch_flags): Don't handle flags moved to bit-fields. Don't
11586 generate CL_MISSING_OK or CL_SAVE.
11587 * optc-gen.awk: Update to generate bit-field output as well as
11589 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11590 bit-field instead of CL_REJECT_DRIVER flag.
11591 * opts-common.c (generate_canonical_option,
11592 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11593 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11594 instead of CL_REJECT_NEGATIVE flag.
11595 * toplev.c (print_switch_values): Use cl_report bit-field instead
11598 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11600 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11601 a zero minimum index only if it is redundant.
11603 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11605 PR rtl-optimization/48381
11606 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11607 instead of ira_class_hard_reg_index for calculating conflicting
11610 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11612 * cprop.c: Clean up hash table building.
11613 (reg_avail_info): Remove.
11614 (oprs_available_p): Remove.
11615 (record_last_reg_set_info): Remove.
11616 (record_last_set_info): Remove.
11617 (reg_available_p): New function.
11618 (gcse_constant_p): Do not treat unfolded conditions as constants.
11619 (make_set_regs_unavailable): New function.
11620 (hash_scan_set): Simplify with new reg_available_p.
11621 (compute_hash_table_work): Traverse insns stream only once.
11622 Do not compute reg_avail_info. Traverse insns in reverse order.
11623 Record implicit sets after recording explicit sets from the block.
11625 2011-03-31 Michael Matz <matz@suse.de>
11627 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11629 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11631 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11632 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11633 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11634 (h8300_mode_dependent_address_p): New function.
11635 (h8300_get_index): Make static.
11637 2011-03-31 Jeff Law <law@redhat.com>
11639 * reload1.c (elimination_effects): Fix typo in recent change.
11641 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11642 typo potentially leading to null pointer dereference.
11644 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11645 (setup_save_areas): Corresponding changes to avoid useless
11648 * jump.c (reversed_comparison_code_parts): Avoid successive return
11649 statements when REVERSE_CONDITION is defined.
11651 * expr.c (expand_assignment): Avoid useless assignments.
11652 (expand_expr_real_1): Likewise.
11653 (expand_expr_real_2): Avoid useless statements.
11655 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11657 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11659 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11662 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11664 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11667 * doc/tm.texi.in (TARGET_VERSION): Remove.
11668 * doc/tm.texi: Regenerate.
11669 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11670 * collect2.c (main): Don't use TARGET_VERSION.
11671 * mips-tdump.c (main): Don't use TARGET_VERSION.
11672 * mips-tfile.c (main): Don't use TARGET_VERSION.
11673 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11674 * config/rs6000/vxworksae.h: Remove.
11675 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11676 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11677 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11678 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11679 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11680 * config/arm/arm.h (TARGET_VERSION): Remove.
11681 * config/arm/coff.h (TARGET_VERSION): Remove.
11682 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11683 * config/arm/elf.h (TARGET_VERSION): Remove.
11684 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11685 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11686 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11687 * config/arm/pe.h (TARGET_VERSION): Remove.
11688 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11689 * config/arm/semi.h (TARGET_VERSION): Remove.
11690 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11691 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11692 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11693 * config/avr/avr.h (TARGET_VERSION): Remove.
11694 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11695 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11696 * config/frv/frv.h (TARGET_VERSION): Remove.
11697 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11698 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11699 * config/i386/darwin.h (TARGET_VERSION): Remove.
11700 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11701 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11702 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11703 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11704 * config/i386/gnu.h (TARGET_VERSION): Remove.
11705 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11706 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11707 * config/i386/linux.h (TARGET_VERSION): Remove.
11708 * config/i386/linux64.h (TARGET_VERSION): Remove.
11709 * config/i386/lynx.h (TARGET_VERSION): Remove.
11710 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11711 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11712 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11713 * config/i386/netware.h (TARGET_VERSION): Remove.
11714 * config/i386/nto.h (TARGET_VERSION): Remove.
11715 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11716 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11717 * config/ia64/elf.h (TARGET_VERSION): Remove.
11718 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11719 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11720 * config/ia64/linux.h (TARGET_VERSION): Remove.
11721 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11722 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11723 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11724 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11725 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11726 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11727 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11728 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11729 * config/m68k/linux.h (TARGET_VERSION): Remove.
11730 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11731 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11732 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11733 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11734 * config/mep/mep.h (TARGET_VERSION): Remove.
11735 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11736 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11737 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11738 * config/mips/linux.h (TARGET_VERSION): Remove.
11739 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11740 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11741 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11742 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11743 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11744 * config/pa/pa.h (TARGET_VERSION): Remove.
11745 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11746 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11747 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11748 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11749 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11750 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11751 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11752 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11753 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11754 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11755 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11756 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11757 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11758 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11759 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11760 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11761 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11762 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11763 * config/s390/linux.h (TARGET_VERSION): Remove.
11764 * config/s390/s390.h (TARGET_VERSION): Remove.
11765 * config/s390/tpf.h (TARGET_VERSION): Remove.
11766 * config/score/score.h (TARGET_VERSION): Remove.
11767 * config/sh/linux.h (TARGET_VERSION): Remove.
11768 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11769 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11770 * config/sh/sh.h (TARGET_VERSION): Remove.
11771 * config/sh/sh64.h (TARGET_VERSION): Remove.
11772 * config/sh/superh.h (TARGET_VERSION): Remove.
11773 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11774 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11775 * config/sparc/linux.h (TARGET_VERSION): Remove.
11776 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11777 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11778 TARGET_NAME32, TARGET_NAME): Remove.
11779 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11780 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11781 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11782 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11783 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11784 * config/spu/spu.h (TARGET_VERSION): Remove.
11785 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11786 * config/v850/v850.h (TARGET_VERSION): Remove.
11787 * config/vax/linux.h (TARGET_VERSION): Remove.
11788 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11789 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11790 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11792 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11795 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11796 frame-related from frame-unrelated adjustments to the stack pointer.
11798 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11800 * common.opt (fdebug-types-section): Move earlier.
11801 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11803 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11805 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11808 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11810 * tree.h (CASE_CHAIN): Define.
11811 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11812 (gimple_redirect_edge_and_branch): Likewise.
11814 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11816 PR middle-end/48367
11817 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11820 2011-03-30 Jeff Law <law@redhat.com>
11822 * PR bootstrap/48371
11823 * reload1.c (reload): Fix botch in last change.
11825 * reload.h (struct reload): Fix typo introduced in last change.
11827 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11829 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11830 Undocumented. Remove help text.
11831 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11834 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11836 * doc/options.texi (NegativeAlias): Document.
11837 (Alias): Mention NegativeAlias.
11838 * opt-functions.awk: Handle NegativeAlias.
11839 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11840 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11841 * opts.h (CL_NEGATIVE_ALIAS): Define.
11842 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11843 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11845 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11847 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11848 mno-spe and mno-isel instead of mspe=no and -misel=no.
11850 2011-03-29 Mark Wielaard <mjw@redhat.com>
11852 * common.opt (fdebug-types-section): New flag.
11853 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11854 * dwarf2out.c (use_debug_types): New define.
11855 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11856 (print_die): Guard output of type unit signatures using
11858 (build_abbrev_table): Replace assert of dwarf_version >= 4
11859 with assert on use_debug_types.
11860 (size_of_die): Likewise.
11861 (unmark_dies): Likewise.
11862 (value_format): Decide AT_ref_external form on use_debug_types.
11863 (output_die): Replace dwarf_version version check guard with
11864 use_debug_types where appropriate.
11865 (modified_type_die): Likewise.
11866 (gen_reference_type_die): Likewise.
11867 (dwarf2out_start_source_file): Likewise.
11868 (dwarf2out_end_source_file): Likewise.
11869 (prune_unused_types_walk_attribs): Likewise.
11870 (dwarf2out_finish): Likewise.
11872 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11874 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11876 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11878 PR rtl-optimization/48332
11879 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11880 mode of input operand N and modeN to its actual mode.
11882 2011-03-30 Jeff Law <law@redhat.com>
11884 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11885 define accessor macro.
11886 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11887 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11888 (reg_equiv_init): Likewise.
11889 (reg_equivs_size): New variable.
11890 (reg_equiv_init_size): Remove.
11891 (allocate_initial_values): Move prototype to here from....
11892 * integrate.h (allocate_initial_values): Remove prototype.
11893 * integrate.c: Include reload.h.
11894 (allocate_initial_values): Corresponding changes.
11895 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11896 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11897 (update_equiv_regs): Corresponding changes.
11898 (ira): Corresponding changes.
11899 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11900 (push_secondary_reload): Corresponding changes.
11901 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11902 (make_memloc, find_reloads_address): Corresponding changes.
11903 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11904 (find_reloads_address_1): Corresponding changes.
11905 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11906 (refers_to_regno_for_reload_p): Corresponding changes.
11907 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11908 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11909 * reload1.c: Include ggc.h.
11910 (grow_reg_equivs): New function.
11911 (replace_pseudos_in, reload): Corresponding changes.
11912 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11913 (eliminate_regs_1, elimination_effects): Corresponding changes.
11914 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11915 (delete_output_reload): Likewise.
11916 * caller-save.c (mark_referenced_regs): Corresponding changes.
11917 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11918 * frv/predicates.md (frv_load_operand): Corresponding changes.
11919 * microblaze/microblaze.c (double_memory_operand): Corresponding
11921 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11922 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11923 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11924 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11925 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11927 * pa/pa.c (emit_move_sequence): Corresponding changes.
11928 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11930 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11933 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11934 structure modes. Don't check neon_vector_mem_operand for
11935 vector or structure modes.
11937 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11938 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11941 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11942 operand 1 and reshuffle the operands to match.
11943 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11945 2011-03-30 Christian Schüler <cschueler@gmx.de>
11948 * config/c.opt (F): Added 'Driver' to -F option.
11951 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11953 * config/darwin.opt: Added '-arch' option.
11955 2011-03-30 Nick Clifton <nickc@redhat.com>
11957 * config/rx/rx.md: Add peepholes and patterns to combine
11958 extending loads and simple arithmetic instructions.
11959 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11960 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11961 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11962 modes to use pre-decrement and post-increment addressing.
11963 (rx_is_restricted_memory_address): Add range checking of REG+INT
11965 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11966 (rx_memory_move_cost): Adjust cost of stores.
11967 (rx_adjust_insn_length): New function.
11969 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11972 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11973 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11974 matching arg00/arg01 types.
11976 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11978 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11979 last_location to UNKNOWN_LOCATION.
11981 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11984 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11987 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11988 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11991 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11992 Init(PROCESSOR_V7).
11993 (sparc_cpu): Likewise.
11994 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11997 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12000 PR middle-end/48342
12001 PR rtl-optimization/48345
12002 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12003 hard regs for given mode from profitable regs when doing secondary
12006 2011-03-29 Jeff Law <law@redhat.com>
12009 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12010 do_not_duplicate field.
12011 (lookup_redirection_data): Corresponding changes.
12012 (create_duplicates): Always create a template block.
12013 (redirect_edges): Remove code which reused the original block
12014 when it was going to become unreachable code.
12015 (thread_block): Don't set do_not_duplicate field.
12017 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12019 * lto-opts.c (register_user_option_p, lto_register_user_option):
12020 Make type argument unsigned.
12021 * lto-streamer.h (lto_register_user_option): Make type argument
12023 * opth-gen.awk: Make CL_* macros unsigned.
12024 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12025 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12026 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12027 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12028 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12029 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12030 (find_opt): Make lang_mask argument unsigned.
12032 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12034 PR rtl-optimization/48331
12035 PR rtl-optimization/48334
12036 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12037 for any used algorithm.
12039 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12041 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12044 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12046 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12047 (alpha_option_override): Don't set alpha_sr_alias_set.
12048 (emit_frame_store_1): Use gen_frame_mem rather than calling
12050 (alpha_expand_epilogue): Ditto.
12052 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12054 PR tree-optimization/48290
12055 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12056 vectorization, check that relevant phis in the basic block after
12057 the inner loop are really inner loop's exit phis.
12059 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12062 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12063 (cached_dw_loc_list_def): New structure.
12064 (cached_dw_loc_list): New typedef.
12065 (cached_dw_loc_list_table): New variable.
12066 (cached_dw_loc_list_table_hash): New function.
12067 (cached_dw_loc_list_table_eq): Likewise.
12068 (add_location_or_const_value_attribute): Take a bool cache_p.
12069 Cache the list when the parameter is true.
12070 (gen_formal_parameter_die): Update caller.
12071 (gen_variable_die): Likewise.
12072 (dwarf2out_finish): Likewise.
12073 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12074 while generating debug info for the decl.
12075 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12076 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12077 (resolve_addr): Cache the result of resolving a chain of
12080 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12082 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12083 conflict object hard regset nodes have intersecting hard reg sets.
12085 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12086 after regstat_init_n_sets_and_refs.
12088 * ira.c: Add more comments at the top.
12089 (setup_stack_reg_pressure_class, setup_pressure_classes):
12090 Add comments how we compute the register pressure classes.
12091 (setup_allocno_and_important_classes): Add more comments.
12092 (setup_class_translate_array, reorder_important_classes)
12093 (setup_reg_class_relations): Add comments.
12095 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12098 * ira-color.c: Add 2011 to the Copyright line.
12099 (assign_hard_reg): Add more comments.
12100 (improve_allocation): Ditto.
12102 * ira-costs.c: Add 2011 to the Copyright line.
12103 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12105 (setup_regno_cost_classes_by_mode): Ditto.
12107 Initial patches from ira-improv branch:
12109 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12111 * ira-build.c (ira_create_object): Remove initialization of
12112 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12113 (ira_create_allocno): Remove initialization of
12114 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12115 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12116 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12117 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12118 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12119 Initialize ALLOCNO_ADD_DATA.
12120 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12121 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12123 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12124 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12126 * ira.c (ira_reallocate): Remove.
12127 (setup_pressure_classes): Call
12128 ira_init_register_move_cost_if_necessary. Use
12129 ira_register_move_cost instead of ira_get_register_move_cost.
12130 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12131 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12133 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12134 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12135 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12136 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12137 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12138 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12140 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12141 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12142 (struct allocno_color_data): New.
12143 (allocno_color_data_t): New typedef.
12144 (allocno_color_data): New definition.
12145 (ALLOCNO_COLOR_DATA): New macro.
12146 (struct object_color_data): New.
12147 (object_color_data_t): New typedef.
12148 (object_color_data): New definition.
12149 (OBJECT_COLOR_DATA): New macro.
12150 (update_copy_costs, calculate_allocno_spill_cost): Call
12151 ira_init_register_move_cost_if_necessary. Use
12152 ira_register_move_cost instead of ira_get_register_move_cost.
12153 (move_spill_restore, update_curr_costs): Ditto.
12154 (allocno_spill_priority): Make it inline.
12155 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12156 (struct coalesce_data, coalesce_data_t): New.
12157 (allocno_coalesce_data): New definition.
12158 (ALLOCNO_COALESCE_DATA): New macro.
12159 (merge_allocnos, coalesced_allocno_conflict_p): Use
12160 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12161 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12162 (coalesce_allocnos): Ditto.
12163 (setup_coalesced_allocno_costs_and_nums): Ditto.
12164 (collect_spilled_coalesced_allocnos): Ditto.
12165 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12166 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12167 (coalesce_spill_slots): Ditto.
12168 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12169 free allocno_coalesce_data.
12171 * ira-conflicts.c: Fix formatting.
12172 (process_regs_for_copy): Call
12173 ira_init_register_move_cost_if_necessary. Use
12174 ira_register_move_cost instead of ira_get_register_move_cost.
12175 (build_object_conflicts): Optimize.
12177 * ira-costs.c (record_reg_classes): Optimize. Call
12178 ira_init_register_move_cost_if_necessary. Use
12179 ira_register_move_cost, ira_may_move_in_cost, and
12180 ira_may_move_out_cost instead of ira_get_register_move_cost and
12181 ira_get_may_move_cost.
12182 (record_address_regs): Ditto.
12183 (scan_one_insn): Optimize.
12184 (find_costs_and_classes): Optimize.
12185 (process_bb_node_for_hard_reg_moves): Call
12186 ira_init_register_move_cost_if_necessary. Use
12187 ira_register_move_cost instead of ira_get_register_move_cost.
12189 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12190 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12191 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12192 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12194 (ira_initiate_emit_data, ira_finish_emit_data)
12195 (create_new_allocno): New functions.
12196 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12197 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12198 Use ira_register_move_cost instead of ira_get_register_move_cost.
12200 * ira-int.h: Fix some comments.
12201 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12202 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12203 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12204 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12206 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12207 bitfield after mode. Make hard_regno a short int. Make
12208 hard_regno short. Remove first_coalesced_allocno and
12209 next_coalesced_allocno. Move mem_optimized_dest_p,
12210 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12211 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12212 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12213 temp, colorable_p. Add new member add_data.
12214 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12215 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12216 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12217 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12218 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12219 (ALLOCNO_ADD_DATA): New macro.
12220 (ira_emit_data_t): New typedef.
12221 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12222 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12223 from struct ira_allocno.
12224 (ALLOCNO_EMIT_DATA): New macro.
12225 (ira_allocno_emit_data, allocno_emit_reg): New.
12226 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12227 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12228 (OBJECT_ADD_DATA): New macro.
12229 (ira_reallocate): Remove.
12230 (ira_initiate_emit_data, ira_finish_emit_data): New.
12231 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12232 (ira_init_register_move_cost_if_necessary): New.
12233 (ira_object_conflict_iter_next): Merge into
12234 ira_object_conflict_iter_cond.
12235 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12237 * ira-live.c (process_single_reg_class_operands): Call
12238 ira_init_register_move_cost_if_necessary. Use
12239 ira_register_move_cost instead of ira_get_register_move_cost.
12241 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12243 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12245 * ira-costs.c: Fix formatting.
12246 (cost_classes, cost_classes_num): Remove.
12247 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12248 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12249 (cost_classes_del, cost_classes_htab): New.
12250 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12251 (initiate_regno_cost_classes, setup_cost_classes): New.
12252 (setup_regno_cost_classes_by_aclass): New.
12253 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12254 (record_reg_classes): Use regno_cost_classes instead of
12255 cost_classes. Move checking opposite operand up.
12256 (record_address_regs): Use regno_cost_classes
12257 instead of cost_classes.
12258 (scan_one_insn): Ditto. Use always general register.
12259 (print_allocno_costs): Use regno_cost_classes instead of
12261 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12262 (find_costs_and_classes): Set up cost classes for each registers.
12263 Use also their mode for this. Use regno_cost_classes instead of
12265 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12267 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12268 (ira_costs, ira_set_pseudo_classes): Call
12269 initiate_regno_cost_classes and finish_regno_cost_classes.
12271 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12273 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12275 * target.def (ira_cover_classes): Remove.
12277 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12279 * doc/tm.texi.in: Ditto.
12281 * ira-conflicts.c: Remove mentioning cover classes from the file.
12282 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12283 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12285 * targhooks.c (default_ira_cover_classes): Remove.
12287 * targhooks.h (default_ira_cover_classes): Ditto.
12289 * haifa-sched.c: Remove mentioning cover classes from the file.
12290 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12291 ira_pressure_classes and ira_pressure_classes_num instead of
12292 ira_reg_class_cover_size and ira_reg_class_cover. Use
12293 sched_regno_pressure_class instead of sched_regno_cover_class.
12294 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12295 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12297 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12298 classes from the file.
12299 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12300 (struct object_hard_regs, struct object_hard_regs_node): New.
12301 (struct ira_object): New members profitable_hard_regs,
12302 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12303 (struct ira_allocno): Rename cover_class to aclass. Rename
12304 cover_class_cost and updated_cover_class_cost to class_cost and
12305 updated_class_cost. Remove splay_removed_p and
12306 left_conflict_size. Add new members colorable_p.
12307 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12308 (ALLOCNO_COLORABLE_P): New macro.
12309 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12310 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12311 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12312 (OBJECT_...): Rename parameter C to O.
12313 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12314 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12315 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12316 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12317 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12318 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12319 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12320 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12321 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12322 x_ira_reg_class_subunion.
12323 (ira_max_memory_move_cost, ira_max_register_move_cost)
12324 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12325 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12326 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12327 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12328 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12329 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12330 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12331 (ira_tune_allocno_costs_and_cover_classes): Rename to
12332 ira_tune_allocno_costs.
12333 (ira_debug_hard_regs_forest): New.
12334 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12335 (ira_object_conflict_iter_next): Fix comments.
12336 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12337 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12338 cover_class to aclass.
12339 (ira_allocate_and_accumulate_costs): Ditto.
12340 (ira_allocate_and_set_or_copy_costs): Ditto.
12342 * opts.c (decode_options): Remove ira_cover_class check.
12344 * ira-color.c: Remove mentioning cover classes from the file. Use
12345 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12346 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12347 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12348 (splay-tree.h): Remove include.
12349 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12350 before copy_freq_compare_func.
12351 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12352 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12354 (hard_regs_roots, hard_regs_node_vec): Ditto.
12355 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12356 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12357 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12358 (create_new_object_hard_regs_node): Ditto.
12359 (add_new_object_hard_regs_node_to_forest): Ditto.
12360 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12361 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12363 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12364 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12365 (remove_unused_object_hard_regs_nodes): Ditto.
12366 (enumerate_object_hard_regs_nodes): Ditto.
12367 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12368 (object_hard_regs_subnode_t): Ditto.
12369 (struct object_hard_regs_subnode): Ditto.
12370 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12371 (setup_object_hard_regs_subnode_index): Ditto.
12372 (get_object_hard_regs_subnodes_num): Ditto.
12373 (form_object_hard_regs_nodes_forest): Ditto.
12374 (finish_object_hard_regs_nodes_tree): Ditto.
12375 (finish_object_hard_regs_nodes_forest): Ditto.
12376 (allocnos_have_intersected_live_ranges_p): Rename to
12377 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12378 (pseudos_have_intersected_live_ranges_p): Rename to
12379 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12380 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12381 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12382 (update_copy_costs): Remove assert. Skip cost update if the hard
12383 reg does not belong the class.
12384 (assign_hard_reg): Process only profitable hard regs.
12385 (uncolorable_allocnos_num): Make it scalar.
12386 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12387 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12388 and ira_reg_class_max_nregs.
12389 (bucket_allocno_compare_func): Check frequency first.
12390 (sort_bucket): Add compare function as a parameter.
12391 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12392 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12393 (push_allocno_to_stack): Rewrite for checking new allocno
12395 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12396 (push_only_colorable): Pass new parameter to sort_bucket.
12397 (push_allocno_to_spill): Remove.
12398 (allocno_spill_priority_compare): Make it inline and rewrite.
12399 (splay_tree_allocate, splay_tree_free): Remove.
12400 (allocno_spill_sort_compare): New function.
12401 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12402 build and use splay tree. Choose first allocno in uncolorable
12403 allocno bucket to spill. Remove setting spill cost.
12404 (all_conflicting_hard_regs): Remove.
12405 (setup_allocno_available_regs_num): Check only profitable hard
12406 regs. Print info about hard regs nodes.
12407 (setup_allocno_left_conflicts_size): Remove.
12408 (put_allocno_into_bucket): Don't call
12409 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12410 (improve_allocation): New.
12411 (color_allocnos): Call setup_profitable_hard_regs,
12412 form_object_hard_regs_nodes_forest, improve_allocation,
12413 finish_object_hard_regs_nodes_forest. Setup spill cost.
12414 (print_loop_title): Use pressure classes.
12415 (color_allocnso): Ditto.
12416 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12417 and allocnos_for_spilling.
12418 (ira_sort_regnos_for_alter_reg): Don't setup members
12419 {first,next}_coalesced_allocno.
12420 (color): Remove allocating and freeing removed_splay_allocno_vec.
12421 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12422 prohibited_class_mode_regs.
12424 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12426 (update_allocno_pressure_excess_length): Use pressure classes.
12427 (inc_register_pressure, dec_register_pressure): Check for pressure
12429 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12430 pressure class. Use ira_reg_class_nregs instead of
12431 ira_reg_class_max_nregs.
12432 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12433 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12434 (single_reg_class): Use ira_reg_class_nregs instead of
12435 ira_reg_class_max_nregs.
12436 (process_bb_node_lives): Use pressure classes.
12438 * ira-emit.c: Remove mentioning cover classes from the file. Use
12439 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12440 (change_loop): Use pressure classes.
12441 (modify_move_list): Call ira_set_allocno_class instead of
12442 ira_set_allocno_cover_class.
12444 * ira-build.c: Remove mentioning cover classes from the file. Use
12445 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12446 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12447 ALLOCNO_UPDATED_CLASS_COST instead of
12448 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12449 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12450 (ira_create_allocno): Remove initialization of
12451 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12452 ALLOCNO_COLORABLE_P.
12453 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12454 Update conflict regs for the objects.
12455 (create_cap_allocno): Remove assert. Don't propagate
12456 ALLOCNO_AVAILABLE_REGS_NUM.
12457 (ira_free_allocno_costs): New function.
12458 (finish_allocno): Change a part of code into call of
12459 ira_free_allocno_costs.
12460 (low_pressure_loop_node_p): Use pressure classes.
12461 (object_range_compare_func): Don't compare classes.
12462 (setup_min_max_conflict_allocno_ids): Ditto.
12464 * loop-invariant.c: Remove mentioning cover classes from the file.
12465 Use ira_pressure_classes and ira_pressure_classes_num instead of
12466 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12467 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12468 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12469 Use reg_allocno_class instead of reg_cover_class.
12470 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12471 STACK_REG_COVER_CLASS.
12472 (get_regno_cover_class): Rename to get_regno_pressure_class.
12473 (move_loop_invariants): Initialize and finalize regstat.
12475 * ira.c: Remove mentioning cover classes from the file. Add
12476 comments about coloring without cover classes. Use ALLOCNO_CLASS
12477 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12478 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12479 setup_class_subset_and_memory_move_costs.
12480 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12481 (setup_cover_and_important_classes): Rename to
12482 setup_allocno_and_important_classes.
12483 (setup_class_translate_array): New.
12484 (setup_class_translate): Call it for allocno and pressure classes.
12485 (cover_class_order): Rename to allocno_class_order.
12486 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12487 of ira_class_translate.
12488 (reorder_important_classes): Set up ira_important_class_nums.
12489 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12490 (print_class_cover): Rename to print_classes. Add parameter.
12491 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12492 Print pressure classes too.
12493 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12494 setup_reg_subclasses.
12495 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12496 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12497 (setup_prohibited_class_mode_regs): Use
12498 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12499 (clarify_prohibited_class_mode_regs): New function.
12500 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12501 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12502 (ira_init_once): Initialize them.
12503 (free_register_move_costs): Process them.
12504 (ira_init): Move calls of find_reg_classes and
12505 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12506 Call clarify_prohibited_class_mode_regs.
12507 (ira_no_alloc_reg): Remove.
12508 (too_high_register_pressure_p): Use pressure classes.
12510 * sched-deps.c: Remove mentioning cover classes from the file.
12511 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12512 ira_pressure_classes and ira_pressure_classes_num instead of
12513 ira_reg_class_cover_size and ira_reg_class_cover.
12514 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12515 sched_regno_pressure_class instead of sched_regno_cover_class.
12516 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12517 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12519 * ira.h: Add 2010 to Copyright.
12520 (ira_no_alloc_reg): Remove external.
12521 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12522 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12523 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12524 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12525 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12526 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12527 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12528 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12529 x_ira_no_alloc_regs.
12530 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12531 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12532 ira_allocno_classes_num and ira_allocno_classes.
12533 (ira_class_translate): Rename to ira_allocno_class_translate.
12534 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12535 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12536 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12537 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12538 (ira_no_alloc_regs): New.
12540 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12541 classes from the file. Use ALLOCNO_CLASS instead of
12542 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12543 ALLOCNO_COVER_CLASS_COST.
12544 (regno_cover_class): Rename to regno_aclass.
12545 (record_reg_classes): Use ira_reg_class_subunion instead of
12546 ira_reg_class_union.
12547 (record_address_regs): Check overflow.
12548 (scan_one_insn): Ditto.
12549 (print_allocno_costs): Print total mem cost fore regional allocation.
12550 (print_pseudo_costs): Use REG_N_REFS.
12551 (find_costs_and_classes): Use classes intersected with them on the
12552 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12553 ira_reg_class_union. Use ira_allocno_class_translate and
12554 regno_aclass instead of ira_class_translate and regno_cover_class.
12555 Modify code for finding regno_aclass. Setup preferred classes for
12557 (setup_allocno_cover_class_and_costs): Rename to
12558 setup_allocno_class_and_costs. Use regno_aclass instead of
12559 regno_cover_class. Use ira_set_allocno_class instead of
12560 ira_set_allocno_cover_class.
12561 (init_costs, finish_costs): Use regno_aclass instead of
12563 (ira_costs): Use setup_allocno_class_and_costs instead of
12564 setup_allocno_cover_class_and_costs.
12565 (ira_tune_allocno_costs_and_cover_classes): Rename to
12566 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12567 by processing objects. Use ira_reg_class_max_nregs instead of
12568 ira_reg_class_nregs.
12570 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12572 * sched-int.h: Remove mentioning cover classes from the file.
12573 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12575 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12576 classes from the file.
12577 (struct reg_pref): Rename coverclass into allocnoclass.
12578 (reg_cover_class): Rename to reg_allocno_class.
12580 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12582 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12584 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12586 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12588 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12590 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12592 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12594 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12596 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12598 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12600 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12601 (i386_ira_cover_classes): Ditto.
12603 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12605 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12607 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12609 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12611 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12613 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12615 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12616 (mips_ira_cover_classes): Ditto.
12618 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12620 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12622 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12624 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12626 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12628 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12629 (IRA_COVER_CLASSES_VSX): Ditto.
12631 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12632 (rs6000_ira_cover_classes): Ditto.
12634 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12636 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12638 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12640 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12642 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12644 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12646 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12648 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12650 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12652 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12654 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12657 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12658 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12659 dw_fde_unlikely_section_end_label, cold_in_std_section,
12660 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12661 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12663 (output_fde): Use dw_fde_second_{begin,end} if second is
12664 true, otherwise dw_fde_{begin,end}.
12665 (output_call_frame_info): Test dw_fde_second_begin != NULL
12666 instead of dw_fde_switched_sections.
12667 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12668 fields, initialize new fields. Initialize in_std_section
12669 unconditionally from the first partition.
12670 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12671 dw_fde_second_begin is non-NULL.
12672 (dwarf2out_switch_text_section): Stop initializing removed
12673 dw_fde_struct fields, initialize new fields, initialize
12674 also dw_fde_end here. Set dw_fde_switch_cfi even when
12675 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12676 (struct var_loc_list_def): Add last_before_switch field.
12677 (arange_table, arange_table_allocated, arange_table_in_use,
12678 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12679 (size_of_aranges): Count !in_std_section and !second_in_std_section
12680 hunks in fdes, instead of looking at arange_table_in_use.
12681 (output_aranges): Add aranges_length argument, don't call
12682 size_of_aranges here. Instead of using aranges_table*
12683 emit ranges for fdes when !in_std_section resp.
12684 !second_in_std_section.
12685 (dw_loc_list): Break ranges crossing section switch.
12686 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12687 use dw_fde_second_end instead of dw_fde_end as end of last range.
12688 (gen_subprogram_die): Don't call add_arange. Use
12689 dw_fde_{begin,end} for first partition and if switched
12690 section dw_fde_second_{begin,end} for the second.
12691 (var_location_switch_text_section_1,
12692 var_location_switch_text_section): New functions.
12693 (dwarf2out_begin_function): Initialize cold_text_section even
12694 when function_section () isn't text_section.
12695 (prune_unused_types): Don't walk arange_table.
12696 (dwarf2out_finish): Don't needlessly test
12697 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12698 If info_section_emitted, call size_of_aranges and if it indicates
12699 non-empty .debug_aranges, call output_aranges with the computed
12700 size. Stop using removed dw_fde_struct fields, use
12701 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12705 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12706 create ENTRY_VALUE if incoming or address of incoming's MEM
12708 * dwarf2out.c (mem_loc_descriptor): Don't emit
12709 DW_OP_GNU_entry_value of DW_OP_fbreg.
12710 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12711 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12712 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12713 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12715 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12716 is a REG_P or MEM_P with REG_P address, compute hash directly
12717 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12718 (preserve_only_constants): Don't clear VALUES forwaring
12719 ENTRY_VALUE to some other VALUE.
12721 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12723 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12724 instead of GEN_INT.
12726 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12728 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12729 block before expanding the statement.
12730 (expand_gimple_stmt_1): Likewise. Set them here...
12731 (expand_gimple_stmt): ...and not here. Tidy.
12732 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12735 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12737 * Makefile.in: New rule for cprop.o.
12738 * gcse.c: Move constant/copy propagation to cprop.c.
12739 (compute_local_properties): Only handle expression tables.
12740 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12741 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12742 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12743 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12744 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12745 compute_cprop_data, find_used_regs, try_replace_reg,
12746 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12747 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12748 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12749 find_bypass_set, reg_killed_on_edge, bypass_block,
12750 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12751 execute_rtl_cprop, pass_rtl_cprop): Move to...
12752 * cprop.c: ...here. New file, constant/copy propagation for RTL
12753 moved from gcse.c to here with minor cleanups in duplicated code.
12755 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12757 * config/i386/i386.c (flag_opts): Fix a typo in
12758 -mavx256-split-unaligned-store.
12760 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12762 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12763 LIBCALL_VALUE): Remove macros.
12764 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12765 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12766 (h8300_function_value, h8300_libcall_value,
12767 h8300_function_value_regno_p): New functions.
12769 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12771 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12773 2011-03-28 Jeff Law <law@redhat.com>
12775 * tree-ssa-threadupdate.c (redirect_edges): Call
12776 create_edge_and_update_destination_phis as needed.
12777 (create_edge_and_update_destination_phis): Accept new BB argument.
12778 All callers updated.
12779 (thread_block): Do not update the profile when threading around
12780 intermediate blocks.
12781 (thread_single_edge): Likewise.
12782 (determine_bb_domination_status): If BB is not a successor of the
12783 loop header, return NONDOMINATING.
12784 (register_jump_thread): Note when we register a jump thread around
12785 an intermediate block.
12786 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12787 (thread_across_edge): Use it.
12789 2011-03-28 Tristan Gingold <gingold@adacore.com>
12791 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12792 when for_return is 2.
12794 2011-03-28 Jeff Law <law@redhat.com>
12796 * var-tracking.c (canonicalize_values_mark): Delete unused
12798 (canonicalize_values_star, set_variable_part): Likewise.
12799 (clobber_variable_part, delete_variable_part): Likewise.
12801 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12803 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12805 2011-03-28 Martin Jambor <mjambor@suse.cz>
12807 * tree-inline.c (expand_call_inline): Do not check that destination
12809 (optimize_inline_calls): Assert that destination node is analyzed.
12810 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12811 not call tree_lowering_passes.
12812 * cgraph.h (cgraph_analyze_function): Declare.
12813 * cgraphunit.c (cgraph_analyze_function): Make public.
12815 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12817 * config/sparc/sparc-opts.h: New.
12818 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12819 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12820 (sparc_option_override): Store processor_type enumeration rather
12821 than string in cpu_default. Remove name and enumeration from
12822 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12823 without using sparc_select. Use target_flags_explicit instead of
12825 * config/sparc/sparc.h (enum processor_type): Move to
12827 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12828 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12829 HeaderInclude entry.
12830 (mcpu=, mtune=): Use Var and Enum.
12831 (sparc_processor_type): New Enum and EnumValue entries.
12833 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12834 Iain Sandoe <iains@gcc.gnu.org>
12837 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12839 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12841 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12842 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12843 Insert new statements at it in lieu of STMT.
12844 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12845 * tree-vect-stmts.c (vectorizable_store): Likewise.
12846 (vectorizable_load): Likewise.
12848 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12850 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12855 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12857 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12858 unaligned 256bit load/store.
12859 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12860 (*avx_movdqu<avxmodesuffix>): Likewise.
12862 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12865 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12866 * config/pa/pa.md (iordi3): Use new predicate in expander.
12867 (iorsi3): Likewise.
12869 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12871 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12872 FUNCTION_VALUE_REGNO_P): Remove macros.
12873 * config/mips/mips-protos.h (mips_function_value): Remove.
12874 * config/mips/mips.c (mips_function_value): Rename to...
12875 (mips_function_value_1): ... this. Make static. Handle receiving
12876 the function type in 'fn_decl_or_type' argument.
12877 (mips_function_value, mips_libcall_value,
12878 mips_function_value_regno_p): New function.
12879 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12880 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12882 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12884 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12885 and -mavx256-split-unaligned-store.
12886 (ix86_option_override_internal): Split 32-byte AVX unaligned
12887 load/store by default.
12888 (ix86_avx256_split_vector_move_misalign): New.
12889 (ix86_expand_vector_move_misalign): Use it.
12891 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12892 -mavx256-split-unaligned-store.
12894 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12895 256bit load/store. Generate unaligned store on misaligned memory
12897 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12899 (*avx_movdqu<avxmodesuffix>): Likewise.
12901 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12902 -mavx256-split-unaligned-store.
12904 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12907 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12910 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12912 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12913 opno arguments with an expand_operand. Use create_input_operand.
12914 (mips_prepare_builtin_target): Delete.
12915 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12917 (mips_expand_builtin_direct): Use create_output_operand and
12918 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12919 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12920 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12922 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12924 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12926 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12928 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12930 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12931 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12932 basic blocks and call commit_edge_insertions directly.
12933 (fixup_abnormal_edges): Move from here to...
12934 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12935 on the edges and return whether some have actually been inserted.
12936 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12939 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12941 PR rtl-optimization/48144
12942 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12943 (merge_expr_data): ... here.
12944 (av_set_intersect): Rename to av_set_code_motion_filter.
12945 Update all callers. Call merge_history_vect when an expression
12946 is found in both sets.
12947 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12949 2011-03-26 Alan Modra <amodra@gmail.com>
12951 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12952 cmodel medium addresses.
12953 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12954 64-bit gpr loads and stores.
12955 (rs6000_secondary_reload_ppc64): New function.
12956 * config/rs6000/rs6000-protos.h: Declare it.
12957 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12959 2011-03-26 Alan Modra <amodra@gmail.com>
12962 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12963 GNU Go in traceback table.
12965 2011-03-25 Richard Henderson <rth@redhat.com>
12967 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12968 if there are exactly 6 operands.
12969 (set_storage_via_setmem): Similarly.
12971 2011-03-25 Kai Tietz <ktietz@redhat.com>
12973 * collect2.c (write_c_file_stat): Handle backslash
12974 as right-hand directory separator.
12975 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12976 checking just for slash.
12977 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12978 instead of checking for trailing slash.
12979 * gcc.c (record_temp_file): Use filename_cmp instead
12981 (do_spec_1): Likewise.
12982 (replace_outfile_spec_function): Likewise.
12983 (is_directory): Use filename_ncmp instead of strncmp.
12984 (print_multilib_info): Likewise.
12985 * gcov.c (find_source): Use filename_cmp instead
12987 (make_gcov_file_name): Fix order of slash/backslash
12989 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12990 (add_standard_paths): Likewise.
12991 * mips-tfile.c (saber_stop): Handle backslash.
12992 * prefix.c (update_path): Use filename_ncmp instead of
12994 * profile.c (output_location): Use filename_cmp instead
12996 * read-md.c (handle_toplevel_file): Handle backslash.
12997 * tlink.c (frob_extension): Likewise.
12998 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13000 * tree-dump.c (dequeue_and_dump): Handle backslash.
13001 * tree.c (get_file_function_name): Likewise.
13002 * gengtype.c (read_input_list): Likewise.
13003 (get_file_realbasename): Likewise.
13004 (get_output_file_with_visibility): Use filename_cmp
13007 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13009 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13012 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13014 * fold-const.c (expr_location_or): New function.
13015 (fold_truth_not_expr): Call it.
13017 2011-03-25 Jeff Law <law@redhat.com>
13019 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13021 * c-family/c-common.c (def_fn_type): Likewise.
13022 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13023 * emit-rtl.c (gen_rtvec): Likewise.
13024 * lto/lto-lang.c (def_fn_type): Likewise.
13026 2011-03-25 Richard Guenther <rguenther@suse.de>
13028 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13029 also generate copies.
13030 (fini_copy_prop): Handle constant values properly.
13032 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13034 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13035 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13036 (hash_loc_operands, compare_loc_operands): Handle
13037 DW_OP_GNU_entry_value.
13039 2011-03-25 Kai Tietz <ktietz@redhat.com>
13041 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13042 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13043 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13044 comment and use macro TARGET_64BIT_MS_ABI instead.
13045 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13046 and change default behavior for 32-bit MS_ABI.
13047 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13048 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13050 (ix86_cfun_abi): Likewise.
13051 (ix86_maybe_switch_abi): Adjust comment.
13052 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13053 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13054 instead of checking for SYSV_ABI.
13055 (ix86_nsaved_sseregs): Likewise.
13056 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13058 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13059 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13060 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13061 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13062 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13064 2011-03-25 Richard Guenther <rguenther@suse.de>
13066 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13067 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13068 (verify_gimple): Remove.
13069 * tree-cfg.c (verify_gimple_call): Merge verification
13071 (verify_gimple_phi): Merge verification from verify_stmts.
13072 (verify_gimple_label): New function.
13073 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13074 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13075 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13076 (verify_stmts): Rename to verify_gimple_in_cfg.
13077 (verify_gimple_in_cfg): New function.
13078 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13079 * tree-ssa.c (verify_ssa): Likewise.
13080 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13082 2011-03-25 Richard Guenther <rguenther@suse.de>
13084 * passes.c (init_optimization_passes): Add FRE pass after
13087 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13088 Andrew Stubbs <ams@codesourcery.com>
13090 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13092 (arm_movdi_vfp_cortexa8): New pattern.
13093 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13094 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13095 instructions when tuning for Cortex-A8. Set attribute "arch".
13096 * config/arm/arm.md: Move include arm-tune.md up a bit.
13097 (define_attr "arch"): Add "onlya8" and "nota8" values.
13098 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13100 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13104 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13106 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13107 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13108 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13109 * passes.c (init_optimization_passes): Move
13110 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13112 2011-03-25 Kai Tietz <ktietz@redhat.com>
13114 * c-typeck.c (comptypes_internal): Replace target
13115 hook call of comp_type_attributes by version in tree.c file.
13116 * gimple.c (gimple_types_compatible_p_1): Likewise.
13117 * tree-ssa.c (useless_type_conversion_p): Likewise.
13118 * tree.c (build_type_attribute_qual_variant): Likewise.
13119 (attribute_value_equal): New static helper function.
13120 (comp_type_attributes): New function.
13121 (merge_attributes): Use attribute_value_equal for comparison.
13122 (attribute_list_contained): Likewise.
13123 * tree.h (comp_type_attributes): New prototype.
13125 2011-03-25 Richard Guenther <rguenther@suse.de>
13127 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13128 of complex types at -O0.
13129 (verify_gimple_assign_binary): Likewise.
13130 (verify_gimple_assign_ternary): Likewise.
13132 2011-03-24 Mark Wielaard <mjw@redhat.com>
13134 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13135 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13137 2011-03-24 Mark Wielaard <mjw@redhat.com>
13140 * dwarf2out.c (output_abbrev_section): Only write table when
13141 abbrev_die_table_in_use > 1.
13143 2011-02-24 Richard Henderson <rth@redhat.com>
13145 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13146 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13147 (alpha_expand_unaligned_load_words): Use extql.
13148 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13149 (emit_insxl): Handle all modes for consistency.
13151 2011-02-24 Richard Henderson <rth@redhat.com>
13153 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13154 (alpha_expand_unaligned_load): Likewise.
13155 (alpha_expand_unaligned_store): Likewise.
13156 (alpha_expand_unaligned_load_words): Likewise.
13157 (alpha_expand_unaligned_store_words): Likewise.
13158 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13159 (alpha_split_lock_test_and_set_12): Likewise.
13160 (print_operand, alpha_fold_builtin_extxx): Likewise.
13161 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13162 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13163 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13164 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13165 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13166 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13167 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13168 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13169 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13170 (extwl, extll, extql): Similarly.
13171 (inswh, inslh, insqh): Similarly.
13172 (mskbl, mskwl, mskll, mskql): Similarly.
13173 (mskwh, msklh, mskqh): Similarly.
13175 2011-02-24 Richard Henderson <rth@redhat.com>
13177 * config/alpha/alpha.md (attribute isa): Add er, ner.
13178 (attribute enabled): Handle them.
13179 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13181 2011-02-24 Richard Henderson <rth@redhat.com>
13183 * config/alpha/alpha.md (attribute isa): Add vms.
13184 (attribute enabled): Handle it.
13185 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13186 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13187 (*movtf): Rename from *movtf_internal for consistency.
13188 (*movsi): Merge with *movsi_nt_vms.
13189 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13190 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13191 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13192 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13194 2011-02-24 Richard Henderson <rth@redhat.com>
13196 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13197 (extendqisi2, extendhisi2): Likewise.
13198 (extendqidi2): Simplify BWX/non-BWX expansions.
13199 (extendhidi2): Similarly.
13201 2011-02-24 Richard Henderson <rth@redhat.com>
13203 * config/alpha/alpha.md (attribute isa): New.
13204 (attribute enabled): New.
13205 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13206 (zero_extendqisi2, zero_extendqidi2): Similarly.
13207 (zero_extendhisi2, zero_extendhidi2): Similarly.
13208 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13210 2011-02-24 Richard Henderson <rth@redhat.com>
13212 * config/alpha/predicates.md (input_operand): Revert last change;
13213 update comment to mention 32-bit VMS rather than Windows.
13215 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13217 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13218 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13219 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13220 * passes.c (init_optimization_passes): Move
13221 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13223 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13225 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13227 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13229 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13232 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13235 * simplify-rtx.c (simplify_const_unary_operation): Call
13236 real_convert when changing mode class with FLOAT_EXTEND.
13238 2011-03-24 Nick Clifton <nickc@redhat.com>
13240 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13241 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13242 * config/rx/rx.c (rx_option_override): Set align_jumps,
13243 align_loops and align_labels if not set by the user.
13244 (rx_align_for_label): New function.
13245 (rx_max_skip_for_label): New function.
13246 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13247 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13248 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13249 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13250 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13252 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13254 PR rtl-optimization/48263
13255 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13256 and original commutative_p handling. Use maybe_gen_insn.
13258 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13260 * reload.c (find_reloads_subreg_address): Add address_reloaded
13261 parameter and return true there if the full address has been
13263 (find_reloads_toplev): Pass address_reloaded flag.
13264 (find_reloads_address_1): Don't use address_reloaded parameter.
13266 2011-03-24 Jeff Law <law@redhat.com>
13268 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13269 unused variable "ann".
13270 (remove_unused_locals): Likewise.
13272 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13275 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13278 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13280 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13281 for invalid symbolic addresses.
13282 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13285 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13287 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13288 the argument in calls to fold_truth_not_expr.
13290 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13292 * tree.c (record_node_allocation_statistics): New function.
13293 (make_node_stat, copy_node_stat, build_string): Call it.
13294 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13295 (build1_stat, build_omp_clause): Likewise.
13297 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13299 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13302 2011-03-24 Richard Guenther <rguenther@suse.de>
13304 PR tree-optimization/48271
13305 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13306 blocks that still exist.
13308 2011-03-24 Richard Guenther <rguenther@suse.de>
13310 PR tree-optimization/48270
13311 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13312 not free datarefs before ddrs.
13314 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13316 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13317 from the address built for a reference with variable offset.
13319 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13322 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13323 alternatives that can be handled with movq or movabsq insn.
13324 (*movdf_internal): Disable for !TARGET_64BIT.
13325 (*movdf_internal_nointeger): Ditto.
13326 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13328 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13330 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13331 (FUNCTION_ARG_ADVANCE): Likewise.
13332 * tm.texi.in: Change references to them to hook references.
13333 * tm.texi: Regenerate.
13334 * targhooks.c (default_function_arg): Eliminate check for target macro.
13335 (default_function_incoming_arg): Likewise.
13336 (default_function_arg_advance): Likewise.
13337 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13338 (function_arg_advance): Likewise.
13339 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13341 2011-03-24 Richard Guenther <rguenther@suse.de>
13343 PR middle-end/48269
13344 * tree-object-size.c (addr_object_size): Do not double-account
13345 for MEM_REF offsets.
13347 2011-03-24 Diego Novillo <dnovillo@google.com>
13349 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13350 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13351 (lto_input_data_block): Move from lto-opts.c. Make extern.
13353 (lto_input_string): Rename from input_string. Make extern.
13355 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13356 output_string_with_length.
13357 Output 0 to indicate a non-NULL string. Update all callers to
13359 (lto_output_string): Rename from output_string. Make extern.
13361 (lto_output_decl_state_streams): Make extern.
13362 (lto_output_decl_state_refs): Make extern.
13363 * lto-streamer.h (lto_input_string): Declare.
13364 (lto_input_data_block): Declare.
13365 (lto_output_string): Declare.
13366 (lto_output_string_with_length): Declare.
13367 (lto_output_decl_state_streams): Declare.
13368 (lto_output_decl_state_refs): Declare.
13370 2011-03-24 Richard Guenther <rguenther@suse.de>
13372 PR tree-optimization/46562
13373 * tree.c (build_invariant_address): New function.
13374 * tree.h (build_invariant_address): Declare.
13375 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13376 a renamed function moved ...
13377 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13378 Take valueization callback parameter.
13379 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13380 * gimple-fold.h: New file.
13381 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13382 (ccp_fold, fold_const_aggregate_ref,
13383 fold_ctor_reference, fold_nonarray_ctor_reference,
13384 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13385 get_base_constructor): Move ...
13386 * gimple-fold.c: ... here.
13387 (gimple_fold_stmt_to_constant_1): New function
13388 split out from ccp_fold. Take a valueization callback parameter.
13389 Valueize all operands.
13390 (gimple_fold_stmt_to_constant): New wrapper function.
13391 (fold_const_aggregate_ref_1): New function split out from
13392 fold_const_aggregate_ref. Take a valueization callback parameter.
13393 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13394 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13395 invariant POINTER_PLUS_EXPRs to invariant form.
13396 (vn_valueize): New function.
13397 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13398 * tree-vrp.c (vrp_valueize): New function.
13399 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13400 to fold statements to constants.
13401 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13402 function declarations.
13403 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13404 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13406 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13408 * config/h8300/predicates.md (jump_address_operand): Fix register
13411 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13413 * doc/invoke.texi (max-stores-to-sink): Document.
13414 * params.h (MAX_STORES_TO_SINK): Define.
13415 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13416 if either vectorization or if-conversion is disabled.
13417 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13418 tree-vect-data-refs.c vect_equal_offsets.
13419 (dr_equal_offsets_p): New function.
13420 (find_data_references_in_bb): Remove static.
13421 * tree-data-ref.h (find_data_references_in_bb): Declare.
13422 (dr_equal_offsets_p): Likewise.
13423 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13424 (vect_drs_dependent_in_basic_block): Update calls to
13425 vect_equal_offsets.
13426 (vect_check_interleaving): Likewise.
13427 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13428 (cond_if_else_store_replacement): Rename to...
13429 (cond_if_else_store_replacement_1): ... this. Change arguments and
13431 (cond_if_else_store_replacement): New function.
13432 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13433 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13435 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13438 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13439 to subtract lower bound instead of GEN_INT().
13441 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13446 * doc/extend.texi (Alignment): Move section to match order in TOC.
13447 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13448 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13450 2011-03-23 Jeff Law <law@redhat.com>
13452 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13453 before removing the edge.
13455 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13456 it may have been freed by redirect_branch_edge or
13457 redirect_edge_succ_nodup.
13459 2011-03-23 Richard Guenther <rguenther@suse.de>
13461 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13462 (check_va_list_escapes): Likewise.
13463 (check_all_va_list_escapes): Likewise.
13465 2011-03-23 Richard Guenther <rguenther@suse.de>
13467 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13468 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13469 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13470 (alias.o): Likewise.
13471 (ipa-type-escape.o): Remove.
13472 (ipa-struct-reorg.o): Likewise.
13473 (GTFILES): Remove ipa-struct-reorg.c.
13474 * alias.c: Do not include ipa-type-escape.h.
13475 * tree-ssa-alias.c: Likewise.
13476 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13477 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13478 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13479 and ipa-type-escape passes.
13480 * tree-pass.h (pass_ipa_type_escape): Remove.
13481 (pass_ipa_struct_reorg): Likewise.
13482 * ipa-struct-reorg.h: Remove.
13483 * ipa-struct-reorg.c: Likewise.
13484 * ipa-type-escape.h: Likewise.
13485 * ipa-type-escape.c: Likewise.
13486 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13487 (--param struct-reorg-cold-struct-ratio): Likewise.
13488 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13489 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13490 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13492 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13494 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13495 cpu attribute value.
13496 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13497 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13498 * config/s390/s390.c (processor_flags_table): New constant array.
13499 (s390_handle_arch_option): Remove.
13500 (s390_handle_option): Remove s390_handle_arch_option invocations
13501 and OPT_mwarn_framesize_ handling.
13502 (s390_option_override): Remove s390_handle_arch_option invocation.
13503 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13505 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13506 * config/s390/s390.opt (s390_tune, s390_arch)
13507 (march=): Replace s390_arch_option enum and values with
13508 processor_type. Set variable name to s390_arch. Set
13509 initialization value.
13510 (mtune=): Replace s390_arch_option with processor_type. Set
13511 variable name to s390_tune. Set initialization value.
13513 2011-03-23 Julian Brown <julian@codesourcery.com>
13515 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13516 accesses which are not naturally aligned.
13518 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13521 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13523 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13525 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13526 parameter from "int" to "enum insn_code".
13527 (expand_operand_type): New enum.
13528 (expand_operand): New structure.
13529 (create_expand_operand): New function.
13530 (create_fixed_operand, create_output_operand): Likewise
13531 (create_input_operand, create_convert_operand_to): Likewise.
13532 (create_convert_operand_from, create_address_operand): Likewise.
13533 (create_integer_operand): Likewise.
13534 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13535 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13536 (expand_insn, expand_jump_insn): Likewise.
13537 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13538 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13539 (expand_movstr, expand_builtin___clear_cache): Likewise.
13540 (expand_builtin_lock_release): Likewise.
13541 * explow.c (allocate_dynamic_stack_space): Likewise.
13542 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13543 and use the default handling in that case.
13544 * expmed.c (check_predicate_volatile_ok): Delete.
13545 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13546 (emit_cstore): Likewise.
13547 * expr.c (emit_block_move_via_movmem): Likewise.
13548 (set_storage_via_setmem, expand_assignment): Likewise.
13549 (emit_storent_insn, try_casesi): Likewise.
13550 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13551 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13552 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13553 (expand_twoval_unop, expand_twoval_binop): Likewise.
13554 (expand_unop_direct, emit_indirect_jump): Likewise.
13555 (emit_conditional_move, vector_compare_rtx): Likewise.
13556 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13557 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13558 (expand_sync_lock_test_and_set): Likewise.
13559 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13560 (emit_unop_insn): Likewise.
13561 (expand_copysign_absneg): Change icode to an insn_code.
13562 (create_convert_operand_from_type): New function.
13563 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13564 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13565 (expand_insn, expand_jump_insn): Likewise.
13566 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13567 than const_int_operand for operand 2.
13569 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13571 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13574 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13576 * emit-rtl.c (emit_pattern_before_noloc): New function.
13577 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13578 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13579 (emit_pattern_after_noloc): New function.
13580 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13581 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13583 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13585 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13586 (__ffsDI2): Likewise.
13588 2011-03-22 Richard Henderson <rth@redhat.com>
13590 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13591 of !TARGET_ABI_OPEN_VMS.
13592 (alpha_trampoline_init, alpha_start_function): Likewise.
13593 (alpha_expand_epilogue, alpha_file_start): Likewise.
13594 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13595 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13596 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13597 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13598 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13600 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13602 * config/s390/s390-opts.h: New.
13603 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13604 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13605 s390_stack_guard): Remove.
13606 (s390_handle_arch_option): Return void. Take enum
13607 s390_arch_option value instead of string and searching array.
13608 (s390_handle_option): Don't assert that global structures are in
13609 use. Access variables via opts pointer. Use error_at. Don't use
13610 sscanf for -mstack-guard= or -mstack-size=. Update call to
13611 s390_handle_arch_option.
13612 (s390_option_override): Update call to s390_handle_arch_option.
13613 (s390_emit_prologue): Use %d format for s390_stack_size in
13614 diagnostic. Use %wd for HOST_WIDE_INT.
13615 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13616 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13617 * config/s390/s390.opt (config/s390/s390-opts.h): New
13618 HeaderInclude entry.
13619 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13620 s390_arch_flags, s390_warn_framesize): New Variable entries.
13621 (s390_arch_option): New Enum and EnumValue entries.
13622 (march=): Use Enum instead of Var.
13623 (mstack-guard=, mstack-size=): Use UInteger and Var.
13624 (mtune=): Use Enum.
13626 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13628 * config/score/score.c (score_handle_option): Don't assert that
13629 global structures are in use. Access target_flags via opts
13630 pointer. Use value of -march= option to determine target_flags
13632 * config/score/score.opt (march=): Use Enum.
13633 (score_arch): New Enum and EnumValue entries.
13635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13637 * config/mep/mep.c (option_mtiny_specified): Remove.
13638 (mep_option_override): Move register handling for -mivc2 from
13639 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13640 instead of option_mtiny_specified.
13641 (mep_handle_option): Access target_flags via opts pointer. Don't
13642 assert that global structures are in use. Defer part of -mivc2
13643 handling and move it to mep_option_override.
13644 * config/mep/mep.opt (IVC2): New Mask entry.
13645 (mivc2): Use Var and Defer instead of Mask.
13647 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13649 * config/v850/v850-opts.h: New.
13650 * config/v850/v850.c (small_memory): Replace with
13651 small_memory_physical_max array. Make that array static const.
13652 (v850_handle_memory_option): Take integer value of argument. Take
13653 gcc_options pointer, option text and location. Return void.
13654 Update for changes to small memory structures.
13655 (v850_handle_option): Access target_flags via opts pointer. Don't
13656 assert that global structures are in use. Update calls to
13657 v850_handle_memory_option.
13658 (v850_encode_data_area): Update references to small memory settings.
13659 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13660 (enum small_memory_type): Move to v850-opts.h.
13661 * config/v850/v850.opt (config/v850/v850-opts.h): New
13662 HeaderInclude entry.
13663 (small_memory_max): New Variable entry.
13664 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13665 (mtda, mzda): Likewise.
13667 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13669 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13670 pointer. Don't assert that global structures are in use.
13672 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13674 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13675 via opts pointer. Don't assert that global structures are in use.
13677 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13679 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13680 (munix=93): Use Var.
13681 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13682 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13683 * config/pa/pa-opts.h: New.
13684 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13685 (pa_handle_option): Don't assert that global structures are in
13686 use. Access target_flags via opts pointer. Don't handle
13687 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13689 (pa_option_override): Handle deferred OPT_mfixed_range_.
13691 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13693 * config/mn10300/mn10300-opts.h: New.
13694 * config/mn10300/mn10300.c (mn10300_processor,
13695 mn10300_tune_string): Remove.
13696 (mn10300_handle_option): Don't assert that global structures are
13697 in use. Access mn10300_processor via opts pointer. Don't handle
13699 * config/mn10300/mn10300.h (enum processor_type): Move to
13701 (mn10300_processor): Remove.
13702 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13703 HeaderInclude entry.
13704 (mn10300_processor): New Variable entry.
13707 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13709 * config/microblaze/microblaze.c: Don't include opts.h.
13710 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13711 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13712 (mno-clearbss): Use Var and Warn.
13714 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13716 * config/m32r/m32r-opts.h: New.
13717 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13718 (m32r_handle_option): Don't assert that global structures are in
13719 use. Access target_flags and m32r_cache_flush_func via opts
13720 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13721 OPT_mno_flush_trap here.
13722 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13723 include of m32r-opts.h.
13724 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13725 HeaderInclude entry.
13726 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13727 (mmodel=): Use Enum and Var.
13728 (m32r_model): New Enum and EnumValue entries.
13729 (mno-flush-trap): Use Var.
13730 (msdata=): Use Enum and Var.
13731 (m32r_sdata): New Enum and EnumValue entries.
13733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13735 * config/m32c/m32c.c: Don't include opts.h.
13736 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13737 m32c_handle_option): Remove.
13738 (m32c_option_override): Check global_options_set.x_target_memregs
13739 instead of target_memregs_set.
13740 * config/m32c/m32c.h (target_memregs): Remove.
13741 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13744 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13746 * config/iq2000/iq2000-opts.h: New.
13747 * config/iq2000/iq2000.c: Don't include opts.h.
13748 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13749 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13750 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13751 HeaderInclude entry.
13752 (iq2000_tune): New Variable entry.
13753 (march=): Add comment. Use Enum.
13754 (iq2000_arch): New Enum and EnumValue entries.
13755 (mcpu=): Use Enum and Var.
13756 (iq2000_tune): New Enum and EnumValue entries.
13758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13760 * config/ia64/ia64-opts.h: New.
13761 * config/ia64/ia64.c (ia64_tune): Remove.
13762 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13763 here. Use error_at.
13764 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13765 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13766 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13767 HeaderInclude entry.
13768 (ia64_tune): New Variable entry.
13769 (mfixed-range=): Use Defer and Var.
13770 (mtune=): Use Enum and Var.
13771 (ia64_tune): New Enum and EnumValue entries.
13773 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13775 * config/frv/frv-opts.h: New.
13776 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13778 (frv_cpu_type): Remove.
13779 * config/frv/frv.c: Don't include opts.h.
13780 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13781 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13782 (frv_cpu_type): New Variable entry.
13783 (frv_cpu): New Enum and EnumValue entries.
13785 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13787 * config/cris/cris.c (cris_handle_option): Access target_flags via
13788 opts pointer. Don't assert that global structures are in use.
13789 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13790 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13792 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13794 * config/bfin/bfin-opts.h: New.
13795 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13796 bfin_si_revision, bfin_workarounds): Remove.
13797 (bfin_cpus): Make static const.
13798 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13799 not bfin_lib_id_given.
13800 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13801 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13802 pointer. Use error_at. Don't assert that global structures are in use.
13803 * config/bfin/bfin.h: Include bfin-opts.h.
13804 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13805 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13806 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13807 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13812 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13813 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13814 or -msoft-float here.
13815 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13816 -msoft-float and -mhard-float.
13817 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13818 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13820 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13822 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13823 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13825 (LIBGCC_SPEC): Don't handle -msoft-float.
13826 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13828 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13830 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13831 -mfloat-abi=*, not -msoft-float and -mhard-float.
13832 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13834 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13835 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13836 mhard-float and msoft-float.
13837 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13838 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13839 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13840 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13842 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13843 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13845 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13847 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13850 2011-03-22 Richard Henderson <rth@redhat.com>
13852 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13853 TARGET_ABI_WINDOWS_NT.
13854 (alpha_output_function_end_prologue): Likewise.
13855 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13856 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13857 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13858 (trap, *movsi_nt_vms): Likewise.
13859 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13860 (*tablejump_osf_nt_internal): Remove.
13861 * config/alpha/predicates.md (input_operand): Only test Pmode.
13863 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13865 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13866 via opts pointer. Use error_at. Don't assert that global
13867 structures are in use.
13869 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13871 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13872 (ix86_handle_option): Access ix86_isa_flags and
13873 ix86_isa_flags_explicit via opts pointer. Don't assert that
13874 global structures are in use.
13875 (ix86_function_specific_save, ix86_function_specific_restore):
13876 Update ix86_isa_flags_explicit field name.
13877 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13878 (ix86_isa_flags_explicit): Rename TargetSave entry to
13879 x_ix86_isa_flags_explicit.
13881 2011-03-22 Richard Henderson <rth@redhat.com>
13883 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13884 (alpha_option_override, direct_return): Likewise.
13885 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13886 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13887 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13888 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13889 (alpha_expand_epilogue, alpha_end_function): Likewise.
13890 (alpha_init_libfuncs): Likewise.
13891 (struct machine_function): Remove unicosmk members.
13892 (print_operand) ['t']: Remove.
13893 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13894 unicosmk_output_module_name, unicosmk_output_common,
13895 current_section_align, unicosmk_output_text_section_asm_op,
13896 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13897 unicosmk_section_type_flags, unicosmk_unique_section,
13898 unicosmk_asm_named_section, unicosmk_insert_attributes,
13899 unicosmk_output_align, unicosmk_defer_case_vector,
13900 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13901 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13902 unicosmk_output_ssib, unicosmk_add_call_info_word,
13903 unicosmk_extern_head, unicosmk_output_default_externs,
13904 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13905 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13906 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13907 * config/alpha/alpha-protos.h: Update.
13908 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13909 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13910 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13911 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13912 (*mulsi_se, mulvsi3): Likewise.
13913 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13914 (*divmodsi_internal, call, call_value, realign): Likewise.
13915 (moddi3, umoddi3): Likewise; remove duplicate expander.
13916 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13917 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13918 (*movdi_nofix): Remove r/U alternative.
13919 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13920 * config/alpha/constraints.md ("U"): Remove.
13921 * config/alpha/predicates.md (call_operand"): Don't test
13922 TARGET_ABI_UNICOSMK.
13924 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13926 * target.def (handle_option): Take gcc_options and
13927 cl_decoded_option pointers and location_t.
13928 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13929 * doc/tm.texi: Regenerate.
13930 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13931 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13932 * lto-opts.c (lto_reissue_options): Generate option structure for
13933 targetm.handle_option call.
13934 * opts.c (target_handle_option): Update call to
13935 targetm.handle_option. Remove assertions about values now passed
13937 * targhooks.c (default_target_handle_option): New.
13938 * targhooks.h (default_target_handle_option): Declare.
13939 * config/alpha/alpha.c: Include opts.h.
13940 (alpha_handle_option): Update to new hook interface.
13941 * config/arm/arm.c: Include opts.h.
13942 (arm_handle_option): Update to new hook interface.
13943 * config/arm/t-arm (arm.o): Update dependencies.
13944 * config/bfin/bfin.c: Include opts.h.
13945 (bfin_handle_option): Update to new hook interface.
13946 * config/cris/cris.c: Include opts.h.
13947 (cris_handle_option): Update to new hook interface.
13948 * config/frv/frv.c: Include opts.h.
13949 (frv_handle_option): Update to new hook interface.
13950 * config/i386/i386.c: Include opts.h.
13951 (ix86_handle_option): Update to new hook interface.
13952 (ix86_valid_target_attribute_inner_p): Generate option structure
13953 for call to ix86_handle_option.
13954 * config/i386/t-i386 (i386.o): Update dependencies.
13955 * config/ia64/ia64.c: Include opts.h.
13956 (ia64_handle_option): Update to new hook interface.
13957 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13958 * config/iq2000/iq2000.c: Include opts.h.
13959 (iq2000_handle_option): Update to new hook interface.
13960 * config/m32c/m32c.c: Include opts.h.
13961 (m32c_handle_option): Update to new hook interface.
13962 * config/m32r/m32r.c: Include opts.h.
13963 (m32r_handle_option): Update to new hook interface.
13964 * config/m68k/m68k.c: Include opts.h.
13965 (m68k_handle_option): Update to new hook interface.
13966 * config/mep/mep.c: Include opts.h.
13967 (mep_handle_option): Update to new hook interface.
13968 * config/microblaze/microblaze.c: Include opts.h.
13969 (microblaze_handle_option): Update to new hook interface.
13970 * config/mips/mips.c: Include opts.h.
13971 (mips_handle_option): Update to new hook interface.
13972 * config/mn10300/mn10300.c: Include opts.h.
13973 (mn10300_handle_option): Update to new hook interface.
13974 * config/pa/pa.c: Include opts.h.
13975 (pa_handle_option): Update to new hook interface.
13976 * config/pdp11/pdp11.c: Include opts.h.
13977 (pdp11_handle_option): Update to new hook interface.
13978 * config/rs6000/rs6000.c: Include opts.h.
13979 (rs6000_handle_option): Update to new hook interface.
13980 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13981 * config/rx/rx.c: Include opts.h.
13982 (rx_handle_option): Update to new hook interface.
13983 * config/s390/s390.c: Include opts.h.
13984 (s390_handle_option): Update to new hook interface.
13985 * config/score/score.c: Include opts.h.
13986 (score_handle_option): Update to new hook interface.
13987 * config/sh/sh.c: Include opts.h.
13988 (sh_handle_option): Update to new hook interface.
13989 * config/sparc/sparc.c: Include opts.h.
13990 (sparc_handle_option): Update to new hook interface.
13991 * config/v850/v850.c: Include opts.h.
13992 (v850_handle_option): Update to new hook interface.
13994 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13996 * gcc.c (driver_unknown_option_callback): Only permit and save
13997 unknown -Wno- options.
13998 (driver_wrong_lang_callback): Save options directly instead of via
13999 driver_unknown_option_callback.
14001 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14003 * combine.c (simplify_set): Try harder to find the best CC mode when
14004 simplifying a nested COMPARE on the RHS.
14006 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14008 * config/alpha/gnu.h: Remove.
14009 * config/arc: Remove directory.
14010 * config/arm/netbsd.h: Remove.
14011 * config/arm/t-pe: Remove.
14012 * config/crx: Remove directory.
14013 * config/i386/netbsd.h: Remove.
14014 * config/m68hc11: Remove directory.
14015 * config/m68k/uclinux-oldabi.h: Remove.
14016 * config/mcore/mcore-pe.h: Remove.
14017 * config/mcore/t-mcore-pe: Remove.
14018 * config/netbsd-aout.h: Remove.
14019 * config/rs6000/gnu.h: Remove.
14020 * config/sh/sh-symbian.h: Remove.
14021 * config/sh/symbian-base.c: Remove.
14022 * config/sh/symbian-c.c: Remove.
14023 * config/sh/symbian-cxx.c: Remove.
14024 * config/sh/symbian-post.h: Remove.
14025 * config/sh/symbian-pre.h: Remove.
14026 * config/sh/t-symbian: Remove.
14027 * config/svr3.h: Remove.
14028 * config/vax/netbsd.h: Remove.
14029 * config.build: Don't handle i[34567]86-*-pe.
14030 * config.gcc: Remove handling of deprecations for most deprecated
14032 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14033 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14034 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14035 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14036 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14037 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14039 * config.host: Don't handle i[34567]86-*-pe.
14040 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14041 (ASM_SPEC32): Don't handle -mcall-gnu.
14042 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14044 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14045 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14046 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14047 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14048 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14049 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14050 conditional on SYMBIAN.
14051 * configure.ac: Don't handle powerpc*-*-gnu*.
14052 * configure: Regenerate.
14053 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14054 * doc/install-old.texi (m6811, m6812): Don't mention.
14055 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14056 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14057 (m68k-uclinuxoldabi): Don't mention.
14058 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14060 (-mcall-gnu): Remove.
14061 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14062 families): Remove constraint documentation.
14064 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14066 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14067 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14068 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14070 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14073 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14074 vector when peeking at the next token for vector, don't expand the
14077 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14079 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14080 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14081 * config/avr/avr.c (init_cumulative_args)
14082 (avr_function_arg_advance): Use it.
14083 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14085 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14086 (avr_function_ok_for_sibcall): ...this new function.
14087 (avr_lookup_function_attribute1): New static Function.
14088 (avr_naked_function_p, interrupt_function_p)
14089 (signal_function_p, avr_OS_task_function_p)
14090 (avr_OS_main_function_p): Use it.
14091 * config/avr/avr.md ("sibcall", "sibcall_value")
14092 ("sibcall_epilogue"): New expander.
14093 ("*call_insn", "*call_value_insn"): New insn.
14094 ("call_insn", "call_value_insn"): Remove
14095 ("call", "call_value", "epilogue"): Change expander to handle
14098 2011-03-21 Nick Clifton <nickc@redhat.com>
14100 * doc/invoke.texi (Overall Options): Move closing brace to end of
14102 (Optimization Options): Add missing @gol.
14103 (Directory Options): Likewise.
14104 (i386 and x86-64 Options): Likewise.
14105 (RS6000 and PowerPC Options): Likewise.
14106 (i386 and x86-64 Windows Options): Likewise.
14107 (V850 Options): Add text missing from descriptions.
14109 2011-03-22 Richard Henderson <rth@redhat.com>
14111 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14112 (avr_incoming_return_addr_rtx): New.
14113 (emit_push_byte): New.
14114 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14115 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14116 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14117 (emit_pop_byte): New.
14118 (expand_epilogue): Use it. Pop frame pointer by bytes.
14119 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14120 (INCOMING_RETURN_ADDR_RTX): New.
14121 (INCOMING_FRAME_SP_OFFSET): New.
14122 (ARG_POINTER_CFA_OFFSET): New.
14123 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14124 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14127 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14129 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14131 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14132 (FUNCTION_ARG_ADVANCE): Likewise.
14133 * tm.texi.in: Change references to them to hook references.
14134 * tm.texi: Regenerate.
14135 * targhooks.c (default_function_arg): Eliminate check for target
14137 (default_function_incoming_arg): Likewise.
14138 (default_function_arg_advance): Likewise.
14139 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14140 (function_arg_advance): Likewise.
14141 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14143 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14145 * tree.c (build_call_1): New function.
14146 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14148 2011-03-22 Richard Guenther <rguenther@suse.de>
14150 PR tree-optimization/48228
14151 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14152 for single-arg PHIs.
14154 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14156 PR rtl-optimization/48143
14157 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14158 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14159 sse2_cvtps2pd): Likewise.
14161 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14163 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14165 2011-03-22 Richard Guenther <rguenther@suse.de>
14167 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14168 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14169 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14170 and REALIGN_LOAD_EXPR.
14171 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14172 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14173 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14174 DOT_PROD_EXPR case ...
14175 (expand_expr_real_2): ... here.
14176 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14177 and REALIGN_LOAD_EXPR.
14178 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14179 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14180 (vect_create_epilog_for_reduction): Likewise.
14181 (vectorizable_reduction): Likewise.
14182 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14183 * tree-vect-stmts.c (vectorizable_load): Likewise.
14185 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14187 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14189 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14191 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14192 handling for PLTOFF/GOTOFF.
14194 2011-03-22 Nick Clifton <nickc@redhat.com>
14196 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14197 trailing backslash from the end of the macro definition.
14199 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14201 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14204 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14206 * expr.h (prepare_operand): Move to...
14207 * optabs.h (prepare_operand): ...here and change the insn code
14208 parameter from "int" to "enum insn_code".
14209 (insn_operand_matches): Declare.
14210 * expr.c (init_expr_target): Use insn_operand_matches.
14211 (compress_float_constant): Likewise.
14212 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14213 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14214 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14215 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14217 (gen_cond_trap): Likewise.
14218 (prepare_operand): Likewise. Change icode to an insn_code.
14219 (insn_operand_matches): New function.
14220 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14221 * reload1.c (gen_reload): Likewise.
14222 * targhooks.c (default_secondary_reload): Likewise.
14224 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14226 * config/alpha/alpha.md (unspec): New define_c_enum.
14229 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14232 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14233 between a call and its CALL_ARG_LOCATION note.
14235 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14237 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14239 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14243 * c-common.c (shorten_compare): If primopN is first sign-extended
14244 to opN and then zero-extended to result type, set primopN to opN.
14246 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14248 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14249 for barrier handlers.
14251 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14253 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14254 UNSPEC constants to be in the unspec enumeration, and redefine
14255 all UNSPECV constants to be in the unspecv enumeration, so that
14256 dumps print which unspec/unspec_volatile this is.
14257 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14258 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14259 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14260 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14261 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14263 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14264 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14265 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14266 * config/rs6000/sync.md (isync, lwsync): Ditto.
14268 2011-03-21 Richard Guenther <rguenther@suse.de>
14270 * params.def (lto-min-partition): Fix typo.
14272 2011-03-21 Richard Guenther <rguenther@suse.de>
14275 * c-decl.c (grokdeclarator): Drop to the main variant only
14276 for array types. Drop flag_gen_aux_info check.
14278 2011-03-21 Richard Guenther <rguenther@suse.de>
14280 PR translation/47911
14281 * params.def (lto-partitions): Fix typo.
14282 (lto-min-partition): Fix wording.
14284 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14286 * config/rs6000/t-freebsd: Remove duplication from file.
14288 2011-03-21 Richard Guenther <rguenther@suse.de>
14290 PR middle-end/47661
14291 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14293 2011-03-21 Richard Guenther <rguenther@suse.de>
14296 * params.def (lto-partitions): Require at least 1 partition.
14298 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14300 * gthr-solaris.h: Remove.
14301 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14302 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14303 (LIB_SPEC): Likewise.
14304 * config/sol2.opt (threads): Remove.
14305 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14306 (sparc*-*-solaris2*): Likewise.
14307 * configure.ac (enable_threads): Enable solaris support.
14308 * configure: Regenerate.
14309 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14310 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14313 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14315 * config.gcc: Obsolete *-*-solaris2.8*.
14316 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14318 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14321 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14322 reference. Solaris 8 perl works.
14324 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14327 * doc/install.texi (Prerequisites): Move jar etc. up.
14328 Explain support library version requirements.
14330 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14333 * doc/install.texi (Prerequisites): Move Perl to build
14334 requirements. Always necessary on Solaris 2 with Sun ld.
14336 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14338 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14340 (Specific, i?86-*-solaris2.[89]): Likewise.
14341 (Specific, i?86-*-solaris2.10): Likewise.
14342 (Specific, mips-sgi-irix6): Likewise.
14343 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14344 Update for binutils 2.21.
14346 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14348 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14349 Allow -fuse-linker-plugin for non-default plugin linker.
14350 * configure: Regenerate.
14352 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14355 * gengtype.c (files_rules): Added rule for cp/parser.h.
14357 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14360 * config/s390/s390.c (s390_delegitimize_address): Don't call
14361 lowpart_subreg if orig_x has BLKmode.
14363 2011-03-21 Kai Tietz <ktietz@redhat.com>
14366 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14367 * tree.h (attribute_spec): Add new member affects_type_identity.
14368 * attribs.c (empty_attribute_table): Adjust attribute_spec
14370 * config/alpha/alpha.c: Likewise.
14371 * config/arc/arc.c: Likewise.
14372 * config/arm/arm.c: Likewise.
14373 * config/avr/avr.c: Likewise.
14374 * config/bfin/bfin.c: Likewise.
14375 * config/crx/crx.c: Likewise.
14376 * config/darwin.h: Likewise.
14377 * config/h8300/h8300.c: Likewise.
14378 * config/i386/cygming.h: Likewise.
14379 * config/i386/i386.c: Likewise.
14380 * config/ia64/ia64.c: Likewise.
14381 * config/m32c/m32c.c: Likewise.
14382 * config/m32r/m32r.c: Likewise.
14383 * config/m68hc11/m68hc11.c: Likewise.
14384 * config/m68k/m68k.c: Likewise.
14385 * config/mcore/mcore.c: Likewise.
14386 * config/mep/mep.c: Likewise.
14387 * config/microblaze/microblaze.c: Likewise.
14388 * config/mips/mips.c: Likewise.
14389 * config/rs6000/rs6000.c: Likewise.
14390 * config/rx/rx.c: Likewise.
14391 * config/sh/sh.c: Likewise.
14392 * config/sol2.h: Likewise.
14393 * config/sparc/sparc.c: Likewise.
14394 * config/spu/spu.c: Likewise.
14395 * config/stormy16/stormy16.c: Likewise.
14396 * config/v850/v850.c: Likewise.
14398 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14400 * simplify-rtx.c (simplify_binary_operation_1): Handle
14401 (xor (and A B) C) case when B and C are both constants.
14403 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14405 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14407 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14410 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14412 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14414 PR rtl-optimization/48156
14415 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14416 assume df and df_lr are not NULL.
14418 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14421 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14422 between a call and its CALL_ARG_LOCATION note.
14424 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14427 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14428 between a call and its corresponding CALL_ARG_LOCATION note.
14430 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14432 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14433 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14434 * haifa-sched.c (setup_ref_regs): Ditto.
14435 * caller-save.c (add_used_regs_1): Ditto.
14436 * dse.c (look_for_hardregs): Ditto.
14437 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14438 * sched-rgn.c (check_live_1): Ditto.
14440 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14442 * c-decl.c (diagnose_mismatched_decls): Give an error for
14443 redefining a typedef with variably modified type.
14445 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14447 * c-decl.c (grokfield): Don't allow typedefs for structures or
14448 unions with no tag by default.
14449 * doc/extend.texi (Unnamed Fields): Update.
14451 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14453 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14454 Rewrite using indirect functions.
14455 (lwp_slwpcb): Ditto.
14456 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14457 (avx_vinsertf128<mode>): Ditto.
14459 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14461 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14464 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14466 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14467 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14469 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14471 PR rtl-optimization/48170
14472 * gcse.c (hoist_code): Remove bogus asserts.
14474 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14476 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14477 computation for prologue/epilogue.
14479 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14481 * Makefile.in (check-consistency): Remove.
14483 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14486 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14487 arange_table_in_use is 0, but either text_section_used or
14488 cold_text_section_used is true. Don't call it if
14489 !info_section_emitted.
14491 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14493 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14494 FUNCTION_VALUE_REGNO_P): Remove.
14495 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14497 * config/avr/avr.c (avr_ret_register): Make static inline.
14498 (avr_function_value_regno_p): New function.
14499 (avr_libcall_value): Make static. Add 'func' argument.
14500 (avr_function_value): Make static. Rename 'func' argument to
14501 'fn_decl_or_type', forward it to avr_libcall_value. Call
14502 avr_ret_register function instead of RET_REGISTER macro.
14503 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14505 2011-03-18 Jason Merrill <jason@redhat.com>
14508 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14510 2011-03-18 Richard Guenther <rguenther@suse.de>
14512 * doc/install.texi (--enable-gold): Remove.
14513 (--with-plugin-ld): Document.
14514 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14516 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14518 PR middle-end/47790
14519 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14520 again after expansion changes.
14522 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14524 * combine.c (try_combine): Do simplification only call of
14525 subst() on i2 even when i1 is present. Update comments.
14527 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14529 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14530 and UNSPEC_PCREL_SYMOFF.
14532 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14534 * config/s390/s390.md: Use define_c_enum for the unspec constant
14537 2011-03-18 Richard Henderson <rth@redhat.com>
14538 Jakub Jelinek <jakub@redhat.com>
14541 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14542 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14544 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14546 PR middle-end/47725
14547 * combine.c (cant_combine_insn_p): Don't check zero/sign
14548 extended hard registers.
14550 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14552 PR middle-end/47725
14553 * combine.c (cant_combine_insn_p): Check zero/sign extended
14556 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14558 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14559 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14560 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14561 Change return type to bool.
14562 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14564 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14567 * var-tracking.c (prepare_call_arguments): If CALL target
14568 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14569 pc instead of looking it up using cselib_lookup and use
14570 Pmode for it if x has VOIDmode.
14571 * dwarf2out.c (gen_subprogram_die): If also both first and
14572 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14575 * function.c (assign_parms): For data.passed_pointer parms
14576 use MEM of data.entry_parm instead of data.entry_parm itself
14577 as DECL_INCOMING_RTL.
14578 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14579 also when passed and declared mode is the same, DECL_RTL
14580 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14583 2011-03-16 Jeff Law <law@redhat.com>
14585 PR rtl-optimization/37273
14586 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14587 handle them like argument loads from stack slots. Do not double
14588 count memory for memory constants and argument loads from stack slots.
14590 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14593 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14595 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14598 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14600 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14603 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14605 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14606 Clear call_arg_locations and call_arg_loc_last always.
14608 PR middle-end/48152
14609 * var-tracking.c (prepare_call_arguments): If argument needs to be
14610 passed by reference, adjust argtype and mode.
14612 2011-03-17 Richard Guenther <rguenther@suse.de>
14614 PR middle-end/48134
14615 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14616 a value make sure to fold the statement.
14618 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14621 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14622 return condition with !cfun->calls_alloca.
14624 2011-03-17 Richard Guenther <rguenther@suse.de>
14627 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14628 origin for decls in other ltrans units.
14629 (input_varpool_node): Likewise.
14631 2011-03-17 Richard Guenther <rguenther@suse.de>
14633 PR middle-end/48165
14634 * tree-object-size.c (compute_object_offset): Properly return
14635 the offset operand of MEM_REFs as sizetype.
14637 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14639 PR rtl-optimization/48141
14640 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14641 * dse.c: Include params.h.
14642 (active_local_stores_len): New variable.
14643 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14645 (record_store, check_mem_read_rtx): Decrease it when removing
14647 (scan_insn): Likewise. Increase it when adding to chain, if it
14648 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14649 set active_local_stores to NULL before the addition.
14650 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14652 PR rtl-optimization/48141
14653 * dse.c (record_store): If no positions are needed in an insn
14654 that cannot be deleted, at least unchain it from active_local_stores.
14656 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14659 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14660 (lookup_type_die_strip_naming_typedef): ... here.
14661 (get_context_die): Use it.
14662 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14663 the anonymous struct named by the naming typedef.
14665 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14668 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14669 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14671 2011-03-16 Jeff Law <law@redhat.com>
14673 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14674 check for operands of conditional. Allow type to be a pointer.
14676 2011-03-16 Richard Guenther <rguenther@suse.de>
14678 PR tree-optimization/48149
14679 * fold-const.c (fold_binary_loc): Fold
14680 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14682 2011-03-16 Richard Guenther <rguenther@suse.de>
14684 PR tree-optimization/26134
14685 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14686 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14687 (non_rewritable_mem_ref_base): Handle complex type component
14688 accesses, constrain offsets for vector and complex extracts
14691 2011-03-16 Richard Guenther <rguenther@suse.de>
14693 PR tree-optimization/48146
14694 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14695 operands avoiding the need for renaming.
14697 2011-03-16 Richard Guenther <rguenther@suse.de>
14699 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14700 constant folding. Move MEM_REF canonicalization first.
14701 Rely on fold_const_aggregate_ref for initializer folding.
14702 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14704 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14706 PR middle-end/48136
14707 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14708 arg0/arg1 or their arguments are always fold converted to matching
14711 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14714 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14717 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14718 Handle in-tree gold.
14719 (ld_vers): Extract binutils version for gold.
14720 (gcc_cv_ld_hidden): Handle gold here.
14721 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14722 * configure: Regenerate.
14723 * config.in: Regenerate.
14724 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14725 -fuse-linker-plugin otherwise.
14726 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14727 (LINK_COMMAND_SPEC): Use it.
14728 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14730 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14732 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14733 * calls.c: Remove debug.h include.
14734 (emit_call_1): Don't call virtual_call_token debug hook.
14735 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14736 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14737 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14738 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14739 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14740 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14741 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14742 dwarf2out_virtual_call): Remove.
14743 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14744 copy_call_info and virtual_call hooks.
14745 (dwarf2out_init): Don't initialize vcall_insn_table,
14746 debug_dcall_section and debug_vcall_section.
14747 (prune_unused_types): Don't mark nodes from dcall_table.
14748 (dwarf2out_finish): Don't output dcall or vcall tables.
14749 * final.c (final_scan_insn): Don't call direct_call or
14750 virtual_call debug hooks.
14751 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14752 virtual_call_token, copy_call_info and virtual_call hooks.
14753 (debug_nothing_uid): Remove prototype.
14754 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14755 copy_call_info and virtual_call hooks.
14756 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14757 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14758 * debug.c (do_nothing_debug_hooks): Likewise.
14759 (debug_nothing_uid): Remove.
14760 * doc/invoke.texi (-fenable-icf-debug): Remove.
14761 * common.opt (-fenable-icf-debug): Likewise.
14763 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14764 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14765 call's MEM. Handle functions returning aggregate through a hidden
14766 first pointer. For virtual calls add clobbered pc to call arguments
14768 * dwarf2out.c (gen_subprogram_die): Emit
14769 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14773 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14774 * rtl.h (ENTRY_VALUE_EXP): Define.
14775 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14776 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14777 * print-rtl.c (print_rtx): Likewise.
14778 * gengtype.c (adjust_field_rtx_def): Likewise.
14779 * var-tracking.c (vt_add_function_parameter): Adjust
14780 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14781 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14782 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14783 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14784 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14786 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14787 Call var_location debug hook even on CALL_INSNs.
14788 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14789 * rtl.def (ENTRY_VALUE): New.
14790 * dwarf2out.c: Include cfglayout.h.
14791 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14792 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14793 (struct call_arg_loc_node): New type.
14794 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14795 tail_call_site_count): New variables.
14796 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14797 DW_TAG_GNU_call_site_parameter.
14798 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14799 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14800 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14801 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14802 and DW_AT_GNU_all_source_call_sites.
14803 (mem_loc_descriptor): Handle ENTRY_VALUE.
14804 (add_src_coords_attributes): Don't add enything if
14805 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14806 (dwarf2out_abstract_function): Save and clear call_arg_location,
14807 call_site_count and tail_call_site_count around dwarf2out_decl call.
14808 (gen_call_site_die): New function.
14809 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14810 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14811 (dwarf2out_function_decl): Clear call_arg_locations,
14812 call_arg_loc_last, set call_site_count and tail_call_site_count
14813 to -1 and free block_map.
14814 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14815 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14816 followed by any real instructions.
14817 (dwarf2out_begin_function): Set call_site_count and
14818 tail_call_site_count to 0.
14819 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14820 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14821 attempt to force a DIE for it and worst case remove the attribute.
14822 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14823 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14825 * var-tracking.c: Include tm_p.h.
14826 (vt_stack_adjustments): For calls call note_register_arguments.
14827 (argument_reg_set): New variable.
14828 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14829 ensure the VALUE is resolved.
14830 (call_arguments): New variable.
14831 (prepare_call_arguments): New function.
14832 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14833 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14834 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14835 always use the best expression.
14836 (vt_expand_loc): Add ignore_cur_loc argument.
14837 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14838 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14839 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14840 note for all calls.
14841 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14842 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14843 argument. Don't call cselib_preserve_only_values and
14844 cselib_reset_table.
14845 (note_register_arguments): New function.
14846 (vt_initialize): Compute argument_reg_set. Call
14847 vt_add_function_parameters before processing basic blocks instead of
14848 afterwards. For calls call prepare_call_arguments before calling
14849 cselib_process_insn.
14850 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14851 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14852 (var-tracking.o): Depend on $(TM_P_H).
14853 * cfglayout.h (insn_scope): New prototype.
14854 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14855 * cfglayout.c (insn_scope): No longer static.
14856 * insn-notes.def (CALL_ARG_LOCATION): New.
14857 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14858 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14859 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14860 nothing for DECL_EXTERNAL BLOCK_VARS.
14862 2011-03-16 Alan Modra <amodra@gmail.com>
14865 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14866 create invalid offset address for vsx splat insn.
14867 * config/rs6000/predicates.md (splat_input_operand): New.
14868 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14870 2011-03-15 Xinliang David Li <davidxl@google.com>
14873 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14874 (normalize_preds): New function.
14875 (is_use_properly_guarded): Normalize def predicates.
14877 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14880 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14881 in the output template.
14883 2011-03-15 Richard Guenther <rguenther@suse.de>
14885 PR middle-end/47650
14886 * tree-pretty-print.c (dump_function_declaration): Properly
14887 dump unprototyped and varargs function types.
14889 2011-03-15 Richard Guenther <rguenther@suse.de>
14891 PR tree-optimization/13954
14892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14895 2011-03-15 Richard Guenther <rguenther@suse.de>
14897 PR tree-optimization/48037
14898 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14899 selects into BIT_FIELD_REFs.
14900 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14903 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14905 PR tree-optimization/48129
14906 * builtins.c (fold_builtin_snprintf): Convert to type of
14907 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14908 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14910 2011-03-15 Richard Guenther <rguenther@suse.de>
14912 PR tree-optimization/41490
14913 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14914 value but with VUSE.
14915 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14917 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14918 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14919 * tree-tailcall.c (find_tail_calls): Ignore returns.
14921 2011-03-15 Richard Guenther <rguenther@suse.de>
14923 PR middle-end/48031
14924 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14925 or variable-indexed array accesses when in gimple form.
14927 2011-03-15 Richard Guenther <rguenther@suse.de>
14929 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14931 2011-03-15 Alan Modra <amodra@gmail.com>
14934 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14935 presume symbol_refs without a symbol_ref_decl are suitably
14936 aligned, nor other trees we may see here. Handle anchor symbols.
14937 (legitimate_constant_pool_address_p): Comment. Add mode param.
14938 Check cmodel=medium addresses. Adjust all calls.
14939 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14940 creating cmodel=medium optimized access to locals.
14941 * config/rs6000/constraints.md (R): Pass QImode to
14942 legitimate_constant_pool_address_p.
14943 * config/rs6000/predicates.md (input_operand): Pass mode to
14944 legitimate_constant_pool_address_p.
14945 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14948 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14951 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14952 64-bit constants being loaded into registers other than GPRs such
14953 as loading 0 into a VSX register.
14955 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14957 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14959 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14961 PR middle-end/47917
14962 * builtins.c (fold_builtin_snprintf): New function.
14963 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14964 (fold_builtin_4): Likewise.
14966 PR middle-end/38878
14967 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14968 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14969 and C - X == X also strip nops from +/-/p+ operand.
14970 When optimizing -X == C, fold C to arg0's type.
14973 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14974 emit it as add_AT_int instead of add_AT_unsigned.
14976 2011-03-14 Tom Tromey <tromey@redhat.com>
14978 * unwind-dw2.c: Include sys/sdt.h if it exists.
14979 (_Unwind_DebugHook): Use STAP_PROBE2.
14980 * config.in, configure: Rebuild.
14981 * configure.ac: Check for sys/sdt.h.
14983 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14985 * config/i386/i386.md (ROUND_FLOOR): New constant.
14986 (ROUND_CEIL): Ditto.
14987 (ROUND_TRUNC): Ditto.
14988 (ROUND_MXCSR): Ditto.
14989 (ROUND_NO_EXC): Ditto.
14990 (rint<mode>2): Use new defines instead of numerical constants.
14991 (floor<mode>2): Ditto.
14992 (ceil<mode>2): Ditto.
14993 (btrunc<mode>2): Ditto.
14994 * config/i386/i386-builtin-types.def: Define ROUND function type
14996 * config/i386/i386.c (enum ix86_builtins): Add
14997 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14998 (struct builtin_description): Add
14999 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15000 (ix86_expand_sse_round): New static function.
15001 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15003 (ix86_builtin_vectorized_function): Handle
15004 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15006 2011-03-14 Tom Tromey <tromey@redhat.com>
15008 * c-parser.c (c_parser_asm_string_literal): Clear
15009 warn_overlength_strings.
15011 2011-03-14 Tom Tromey <tromey@redhat.com>
15013 * c-parser.c (disable_extension_diagnostics): Save
15014 warn_overlength_strings.
15015 (restore_extension_diagnostics): Restore warn_overlength_strings.
15017 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15019 * BASE-VER: Change to 4.7.0.
15021 2011-03-14 Richard Guenther <rguenther@suse.de>
15023 PR middle-end/48098
15024 * tree.c (build_vector_from_val): Adjust assert to requirements
15027 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15030 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15032 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15034 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15035 terms of target_flags_explicit. Adjust copyright year.
15037 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15038 * config/rs6000/t-freebsd: New file. Add override for
15041 2011-03-13 Chris Demetriou <cgd@google.com>
15043 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15044 (-fno-diagnostics-show-option): this, to reflect current default.
15045 (-Werror=): Update text about -fno-diagnostics-show-option.
15047 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15050 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15051 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15052 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15053 mode is not V2DImode or V2DFmode.
15054 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15055 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15056 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15058 (movdi_internal64): Likewise.
15060 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15062 PR tree-optimization/47127
15063 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15065 (set_cloog_options): Same.
15066 (scop_to_clast): Same.
15067 (print_clast_stmt): Do not call cloog_state_malloc and
15069 (print_generated_program): Same.
15071 * graphite-clast-to-gimple.h (cloog_state): Declared.
15072 (scop_to_clast): Adjust declaration.
15073 * graphite.c (cloog_state): Defined here.
15074 (graphite_initialize): Call cloog_state_malloc.
15075 (graphite_finalize): Call cloog_state_free.
15077 2011-03-11 Jason Merrill <jason@redhat.com>
15079 * attribs.c (lookup_attribute_spec): Take const_tree.
15082 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15084 * config/sparc/sparc.c (sparc_option_override): Use
15085 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15087 2011-03-11 Richard Guenther <rguenther@suse.de>
15089 PR tree-optimization/48067
15090 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15091 multiplication result will be only used once on the target
15094 2011-03-11 Richard Guenther <rguenther@suse.de>
15096 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15098 2011-03-11 Richard Guenther <rguenther@suse.de>
15101 * tree.c (find_decls_types_r): Do not walk types only reachable
15102 from IDENTIFIER_NODEs.
15104 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15106 PR middle-end/48044
15107 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15108 all vnode->force_output nodes as needed.
15110 2011-03-11 Jason Merrill <jason@redhat.com>
15113 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15114 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15116 2011-03-11 Martin Jambor <mjambor@suse.cz>
15118 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15121 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15123 PR tree-optimization/48063
15124 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15125 inline functions called once if !tree_can_inline_p (node->callers).
15127 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15129 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15131 * config/score/score3.c: Delete.
15132 * config/score/score3.h: Delete.
15133 * config/score/mul-div.S: Delete.
15134 * config/score/sfp-machine.h: Add new file.
15135 * config/score/constraints.md: Add new file.
15136 * config/score/t-score-softfp: Add new file.
15137 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15138 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15139 (score7_extra_constraint): Delete.
15140 (score7_option_override): Remove unused code.
15141 * config/score/score.c: Remove score3 and score5 define and code.
15142 * config/score/score.h: Remove score3 and score5 define and code.
15143 * config/score/score.md: Remove score3 template and unusual insn.
15144 * config/score/score.opt: Remove score3 and score5 options.
15146 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15148 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15149 when _HPUX_SOURCE is defined.
15150 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15152 2011-03-10 Jason Merrill <jason@redhat.com>
15155 * stor-layout.c (layout_type): Don't set structural equality
15156 on arrays of incomplete type.
15157 * tree.c (type_hash_eq): Handle comparing them properly.
15159 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15162 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15163 result mode matches original rtl mode.
15165 2011-03-10 Nick Clifton <nickc@redhat.com>
15167 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15168 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15170 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15172 PR rtl-optimization/47866
15173 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15174 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15175 if target wasn't scalar.
15176 * function.c (assign_stack_temp_for_type): Assert that neither
15177 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15178 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15180 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15182 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15184 * config/s390/s390-protos.h (s390_label_align): New prototype.
15185 * config/s390/s390.c (s390_label_align): New function.
15186 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15188 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15191 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15192 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15193 (output_vec_const_move): Ditto.
15195 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15197 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15198 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15199 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15200 Change 'rclass' argument and result type to reg_class_t.
15201 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15203 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15205 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15206 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15207 (TARGET_MEMORY_MOVE_COST): Define.
15208 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15210 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15213 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15216 PR tree-optimization/48022
15217 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15220 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15223 * var-tracking.c (find_use_val): Return NULL for
15224 cui->sets && cui->store_p BLKmode MEMs.
15226 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15228 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15230 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15231 xstormy16_print_operand_address): Remove.
15232 * config/stormy16/stormy16.c (xstormy16_print_operand,
15233 xstormy16_print_operand_address): Make static.
15234 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15236 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15239 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15240 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15243 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15246 * cfgloopmanip.c (fix_bb_placements): Return immediately
15247 if FROM is BASE_LOOP's header.
15249 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15251 * gimplify.c (gimplify_function_tree): Fix building calls
15252 to __builtin_return_address.
15254 2011-03-07 Alan Modra <amodra@gmail.com>
15256 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15257 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15258 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15259 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15261 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15262 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15263 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15264 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15265 * config/rs6000/rs6000.c
15266 (rs6000_elf_end_indicate_exec_stack): Rename to..
15267 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15268 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15269 (rs6000_file_start): ..here.
15270 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15271 file scope variables.
15272 (call_ABI_of_interest): New function.
15273 (init_cumulative_args): Set above vars when function return value
15274 is a float, vector, or small struct.
15275 (rs6000_function_arg_advance_1): Likewise for function args.
15276 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15277 references float args.
15279 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15281 * doc/cfg.texi: Remove "See" before @ref.
15282 * doc/invoke.texi: Likewise.
15284 2011-03-05 Jason Merrill <jason@redhat.com>
15286 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15288 2011-03-05 Anthony Green <green@moxielogic.com>
15290 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15292 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15294 PR rtl-optimization/47899
15295 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15296 to flow_loop_nested_p when moving the loop upward.
15298 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15301 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15303 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15305 PR tree-optimization/47967
15306 * ipa-cp.c (build_const_val): Return NULL instead of creating
15307 VIEW_CONVERT_EXPR for mismatching sizes.
15308 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15309 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15310 give up on versioning.
15312 2011-03-05 Alan Modra <amodra@gmail.com>
15315 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15316 full cmodel medium/large lo_sum + high addresses.
15318 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15320 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15321 pool references in UNSPEC_LTREL_OFFSET.
15323 2011-03-04 Jan Hubicka <jh@suse.cz>
15326 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15327 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15328 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15330 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15331 cgraph_add_thunk): Add node pointers.
15332 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15333 associated to right node.
15334 (input_node): Update use of cgraph_same_body_alias
15335 and cgraph_add_thunk.
15337 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15339 * config/i386/i386.opt (mprefer-avx128): New flag.
15340 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15341 modes when the flag -mprefer-avx128 is on.
15343 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15345 * dwarf2out.c (compare_loc_operands): Fix address handling.
15347 2011-03-04 Alan Modra <amodra@gmail.com>
15349 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15351 2011-03-04 Richard Guenther <rguenther@suse.de>
15353 PR middle-end/47968
15354 * expmed.c (extract_bit_field_1): Prefer vector modes that
15355 vec_extract patterns can handle.
15357 2011-03-04 Richard Guenther <rguenther@suse.de>
15359 PR middle-end/47975
15360 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15362 2011-03-04 Richard Henderson <rth@redhat.com>
15364 * explow.c (emit_stack_save): Remove 'after' parameter.
15365 (emit_stack_restore): Likewise.
15366 * expr.h: Update to match.
15367 * builtins.c, calls.c, stmt.c: Likewise.
15368 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15369 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15370 * function.c (expand_function_end): Insert the emit_stack_save
15371 sequence before parm_birth_insn instead of after.
15373 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15375 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15376 (ssse3_pmaddubsw128): Ditto.
15377 (ssse3_pmaddubsw): Ditto.
15379 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15381 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15383 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15386 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15387 on TYPE_SIZE_UNIT if it is a DECL.
15390 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15391 first operand is not is_gimple_mem_ref_addr, try to fold it.
15392 If the operand still isn't is_gimple_mem_ref_addr, clear
15395 2011-03-03 Richard Guenther <rguenther@suse.de>
15397 PR middle-end/47283
15398 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15400 (refs_may_alias_p_1): For release branches return true if
15401 we are confused by our input.
15403 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15405 * config/s390/s390.c (s390_function_value): Rename to ...
15406 (s390_function_and_libcall_value): ... this.
15407 (s390_function_value): New function.
15408 (s390_libcall_value): New function.
15409 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15410 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15411 target macro definitions.
15412 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15414 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15416 * config/i386/freebsd64.h (CC1_SPEC): Define.
15417 * config/i386/linux64.h (CC1_SPEC): Define.
15418 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15420 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15422 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15424 * config/stormy16/stormy16.c: Include reload.h.
15425 (xstormy16_memory_move_cost): New function.
15426 (TARGET_MEMORY_MOVE_COST): Define.
15428 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15430 PR rtl-optimization/47925
15431 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15432 with side effects. Remove the more-specific check for volatile asms.
15434 2011-03-02 Alan Modra <amodra@gmail.com>
15437 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15438 toc relative addresses for valid offsets.
15440 2011-03-01 Richard Guenther <rguenther@suse.de>
15442 PR tree-optimization/47890
15443 * tree-vect-loop.c (get_initial_def_for_induction): Set
15444 related stmt properly.
15446 2011-03-01 Richard Guenther <rguenther@suse.de>
15449 * lto-streamer.c (lto_record_common_node): Also register
15450 the canonical type.
15452 2011-03-01 Richard Guenther <rguenther@suse.de>
15455 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15456 Do not stream DECL_ABSTRACT_ORIGIN.
15457 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15458 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15459 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15460 Do not stream DECL_ABSTRACT_ORIGIN.
15461 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15462 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15464 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15466 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15467 FUNCTION_VALUE_REGNO_P): Remove.
15468 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15469 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15470 Add 'outgoing' argument.
15471 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15473 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15474 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15476 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15479 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15480 (lookup_filename): Likewise.
15481 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15483 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15484 Jakub Jelinek <jakub@redhat.com>
15486 PR middle-end/47893
15487 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15488 (assign_stack_local_1): Change last argument type to int.
15489 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15490 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15491 don't record padding space into frame_space_list nor use those areas.
15492 (assign_stack_local): Adjust caller.
15493 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15494 of assign_stack_local, pass 0 as last argument.
15495 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15498 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15501 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15502 Use target address_mode and pointer_mode hooks instead of hardcoded
15503 Pmode and ptr_mode. Handle some simple cases of extending if
15504 POINTERS_EXTEND_UNSIGNED < 0.
15505 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15506 Call convert_debug_memory_address.
15507 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15508 convert_debug_memory_address.
15510 PR middle-end/46790
15511 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15512 * configure: Regenerated.
15513 * config.in: Regenerated.
15514 * varasm.c (default_function_section): Return NULL
15515 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15517 2011-02-28 Martin Jambor <mjambor@suse.cz>
15519 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15520 the description to match the printed values.
15522 2011-02-28 Richard Guenther <rguenther@suse.de>
15524 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15525 of the copied scope tree.
15527 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15529 * doc/extend.texi (Function Attributes): Avoid deeply (and
15530 wrongly) nested tables.
15532 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15534 PR middle-end/47903
15535 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15536 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15537 r isn't op0 nor op1.
15539 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15541 * config/avr/avr.md: Remove magic comment for emacs.
15543 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15546 * config/avr/avr.c (avr_option_override): Use error on bad options.
15547 (avr_help): New function.
15548 (TARGET_HELP): Define.
15550 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15553 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15554 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15556 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15558 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15559 (ARM Options): Ditto.
15560 (i386 and x86-64 Options): Ditto.
15561 (RX Options): Ditto.
15562 (SPARC Options): Ditto.
15564 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15566 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15567 FreeBSD 6 and later. Generally use cpu generic.
15569 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15571 * doc/cpp.texi: Update copyright years.
15573 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15576 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15578 2011-02-25 Jon Beniston <jon@beniston.com>
15581 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15582 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15583 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15584 (lm32_block_move_inline): Add type cast to remove warning.
15585 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15586 (gen_int_relational): Move declarations to start of function.
15588 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15590 PR tree-optimization/45470
15591 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15592 can throw internally only.
15593 * tree-vect-stmts.c (vectorizable_call): Likewise.
15595 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15597 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15598 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15599 * config/stormy16/stormy16-protos.h
15600 (xstormy16_preferred_reload_class): Remove.
15601 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15602 static. Change 'rclass' argument and return type to reg_class_t.
15603 (TARGET_PREFERRED_RELOAD_CLASS,
15604 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15606 2011-02-24 Richard Guenther <rguenther@suse.de>
15608 * lto-streamer-in.c (input_bb): Do not find referenced vars
15609 in debug statements.
15611 2011-02-23 Jason Merrill <jason@redhat.com>
15613 * common.opt (fabi-version): Document v5 and v6.
15615 2011-02-23 Richard Guenther <rguenther@suse.de>
15617 PR tree-optimization/47849
15618 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15620 2011-02-23 Jie Zhang <jie@codesourcery.com>
15622 * opts-common.c (decode_cmdline_option): Print empty string
15623 argument as "" in decoded->orig_option_with_args_text.
15624 * gcc.c (execute): Print empty string argument as ""
15625 in the verbose output.
15626 (do_spec_1): Keep empty string argument.
15628 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15630 * config.gcc: Declare score-* and crx-* obsolete.
15632 2011-02-23 Jie Zhang <jie@codesourcery.com>
15634 PR rtl-optimization/47763
15635 * web.c (web_main): Ignore naked clobber when replacing register.
15637 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15639 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15642 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15645 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15647 2011-02-22 Mike Stump <mikestump@comcast.net>
15649 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15651 * configure: Regenerate.
15653 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15655 PR rtl-optimization/46002
15656 * ira-color.c (update_copy_costs): Change class intersection
15657 test to reg_class_contents[] test of 'hard_regno'.
15659 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15661 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15662 than Driver option.
15663 * config/hpux11.opt (mt): Likewise.
15664 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15665 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15666 * config/vax/elf.opt (mno-asm-pic): Likewise.
15667 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15669 2011-02-21 Mike Stump <mikestump@comcast.net>
15672 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15673 tree so we can get save the type.
15674 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15675 for CFString instead of trying to use past the end of the builtins.
15676 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15677 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15678 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15679 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15680 Rename to darwin_builtin_cfstring.
15681 (darwin_init_cfstring_builtins): Return the built type.
15683 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15686 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15687 (_mm256_insert_epi64): Use _mm_insert_epi64.
15689 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15691 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15692 * config/stormy16/stormy16-protos.h
15693 (xstormy16_mode_dependent_address_p): Remove.
15694 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15695 Make static. Change return type to bool. Change argument type to
15696 const_rtx. Remove dead code.
15697 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15699 2011-02-21 Richard Guenther <rguenther@suse.de>
15702 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15703 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15704 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15706 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15707 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15709 2011-02-20 Richard Guenther <rguenther@suse.de>
15712 * tree.c (free_lang_data_in_decl): Clean builtins from
15713 the TU decl BLOCK_VARS.
15715 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15719 * haifa-sched.c (fix_tick_ready): Skip tick computation
15722 2011-02-19 Richard Guenther <rguenther@suse.de>
15725 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15726 Remove lazy BLOCK_VARS streaming.
15727 (lto_input_ts_block_tree_pointers): Likewise.
15728 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15730 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15732 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15734 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15736 * config/i386/biarch32.h, config/i386/mach.h,
15737 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15739 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15742 * config/i386/i386.md (peephole2 for shift and plus): Use
15743 operands[1] original mode in the first insn.
15745 2011-02-18 Mike Stump <mikestump@comcast.net>
15747 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15749 2011-02-18 Jan Hubicka <jh@suse.cz>
15751 PR middle-end/47788
15752 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15753 to zero when the function is not inlinable at all.
15755 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15757 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15758 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15759 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15760 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15761 * config/pa/t-pa64: Likewise.
15762 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15764 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15767 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15769 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15772 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15774 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15776 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15777 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15778 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15779 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15780 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15781 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15782 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15783 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15784 m32r_legitimate_address_p): New functions.
15785 * config/m32r/constraints.md (constraint "S"): Don't use
15786 STORE_PREINC_PREDEC_P.
15787 (constraint "U"): Don't use LOAD_POSTINC_P.
15789 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15791 PR rtl-optimization/46178
15792 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15793 compute ira_hard_regno_cover_class[].
15795 2011-02-18 Richard Guenther <rguenther@suse.de>
15798 * lto-streamer.h (lto_global_var_decls): Declare.
15799 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15800 statics for global var processing.
15802 2011-02-18 Richard Guenther <rguenther@suse.de>
15804 PR tree-optimization/47737
15805 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15806 edge dominance check.
15808 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15811 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15812 avoid invalid rtx sharing.
15814 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15816 * doc/cpp.texi (Obsolete Features): Add background on the
15817 origin of assertions.
15819 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15821 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15823 * config/darwin.c (output_objc_section_asm_op): Added support for
15825 (is_objc_metadata): New.
15826 (darwin_objc2_section): New.
15827 (darwin_objc1_section): New.
15828 (machopic_select_section): Added support for ABI v1 and v2.
15829 (darwin_emit_objc_zeroed): New.
15830 (darwin_output_aligned_bss): Detect objc metadata and treat it
15832 (darwin_asm_output_aligned_decl_common): Same.
15833 (darwin_asm_output_aligned_decl_local): Same.
15834 * config/darwin-sections.def: Updated for ABI v1 and v2.
15835 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15836 compiling Objective-C code for the NeXT runtime, default to using
15837 ABI version 0 for 32-bit, and version 2 for 64-bit.
15839 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15841 * common.opt (optimize_fast): New Variable.
15842 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15843 instead of local variable ofast.
15845 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15847 * doc/invoke.texi (fobjc-abi-version): Documented.
15848 (fobjc-nilcheck): Documented.
15849 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15852 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15855 * common.opt (export-dynamic): New Driver option.
15856 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15858 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15860 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15862 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15863 Jan Hubicka <jh@suse.cz>
15867 * cfgexpand.c (account_used_vars_for_block): Remove.
15868 (estimated_stack_frame_size): Use referenced vars.
15869 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15870 that were referenced in the original function. Test src_fn
15871 rather than cfun. Drop redundant get_var_ann.
15872 (setup_one_parameter): Drop redundant get_var_ann.
15873 (declare_return_variable): Likewise.
15874 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15875 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15876 * ipa-inline.c (compute_inline_parameters): Do not compute
15877 disregard_inline_limits here.
15878 (compute_inlinable_for_current, pass_inlinable): New.
15879 (pass_inline_parameters): Require PROP_referenced_vars.
15880 * cgraphunit.c (cgraph_process_new_functions): Don't run
15881 compute_inline_parameters explicitly unless function is in SSA form.
15882 (cgraph_analyze_function): Set .disregard_inline_limits.
15883 * tree-sra.c (convert_callers): Compute inliner parameters
15884 only for functions already in SSA form.
15886 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15888 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15889 -mlittle-endian-data.
15891 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15893 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15894 -mno-fpu, not -fpu and -no-fpu.
15895 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15896 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15898 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15901 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15902 input reload with PLUS RTX.
15904 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15906 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15907 of InverseVar(MDMX).
15909 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15911 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15914 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15916 * config/mn10300/mn10300.opt (mno-crt0): New.
15918 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15920 * config/m68k/uclinux.opt (static-libc): New Driver option.
15922 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15924 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15926 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15928 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15929 %{muser-extend-enabled}.
15931 2011-02-16 Richard Guenther <rguenther@suse.de>
15933 PR tree-optimization/47738
15934 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15935 the TODO from tree_predictive_commoning.
15937 2011-02-15 Jeff Law <law@redhat.com>
15940 2011-01-25 Jeff Law <law@redhat.com>
15942 PR rtl-optimization/37273
15943 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15944 handle them like argument loads from stack slots. Do not double
15945 count memory for memory constants and argument loads from stack slots.
15947 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15949 PR middle-end/47725
15950 * combine.c (cant_combine_insn_p): Revert the last change.
15952 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15955 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15956 mode for vector constants. Remove code that checks for TImode.
15958 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15962 * cgraph.h (compute_inline_parameters): Return void.
15963 * ipa-inline.c (compute_inline_parameters): Adjust.
15965 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15969 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15971 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15972 * ipa-inline.c (compute_inline_parameters): Adjust.
15974 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15978 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15979 Adjust all users. Pass FN to...
15980 * tree-flow-inline.h (first_referenced_var): ... this. Add
15982 * ipa-struct-reorg.c: Adjust.
15983 * tree-dfa.c: Adjust.
15984 * tree-into-ssa.c: Adjust.
15985 * tree-sra.c: Adjust.
15986 * tree-ssa-alias.c: Adjust.
15987 * tree-ssa-live.c: Adjust.
15988 * tree-ssa.c: Adjust.
15989 * tree-ssanames.c: Adjust.
15990 * tree-tailcall.c: Adjust.
15992 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15996 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15997 Adjust all callers.
15998 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15999 * tree-flow-inline.h: Adjust.
16000 * gimple-pretty-print.c: Adjust.
16001 * tree-into-ssa.c: Adjust.
16002 * tree-ssa.c: Adjust.
16003 * cfgexpand.c: Adjust.
16005 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16007 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16008 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16009 (EXTRA_CONSTRAINT): Delete.
16010 * config/iq2000/constraints.md: New file.
16011 * config/iq2000/iq2000.md: Include it.
16012 (define_insn ""): Delete.
16013 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16014 unsupported constraint letters from patterns.
16015 (call_value, call_value_internal1): Likewise.
16016 (call_value_multiple_internal1): Likewise.
16018 2011-02-15 Nick Clifton <nickc@redhat.com>
16020 * config/mn10300/mn10300.c: Include tm-constrs.h.
16021 (struct liw_data): New data structure describing an LIW candidate
16023 (extract_bundle): Use struct liw_data. Allow small integer
16024 operands for some instructions.
16025 (check_liw_constraints): Use struct liw_data. Remove swapped
16026 parameter. Add comments describing the checks. Fix bug when
16027 assigning the source of liw1 to the source of liw2.
16028 (liw_candidate): Delete. Code moved into extract_bundle.
16029 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16031 * config/mn10300/predicates.md (liw_operand): New predicate.
16032 Allows registers and small integer constants.
16033 * config/mn10300/constraints.md (O): New constraint. Accetps
16034 integers in the range -8 to +7 inclusive.
16035 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16036 for moving a small integer into a register. Give this alternative
16038 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16039 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16040 using the J,K,L and M constraints,
16041 (liw): Remove SI mode on second operands to allow for HI and QI
16043 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16046 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16048 PR middle-end/47725
16049 * combine.c (cant_combine_insn_p): Check zero/sign extended
16052 2011-02-15 Richard Guenther <rguenther@suse.de>
16054 PR tree-optimization/47743
16055 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16056 for a non-type-compatible VN lookup bail out.
16058 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16060 * config/fr30/constraints.md: New file.
16061 * config/fr30/fr30.md: Include it.
16062 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16063 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16064 (EXTRA_CONSTRAINT): Delete.
16066 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16068 * config/frv/constraints.md: New file.
16069 * config/frv/predicates.md: Include it.
16070 * config/frv/frv.c (reg_class_from_letter): Delete.
16071 (frv_option_override): Don't initialize it.
16072 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16073 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16074 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16075 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16076 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16077 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16078 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16079 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16080 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16081 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16082 (REG_CLASS_FROM_CONSTRAINT): Delete.
16084 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16086 PR middle-end/47581
16087 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16088 if frame size is 0 in a leaf function.
16090 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16093 * config/alpha/host-osf.c: New file.
16094 * config/alpha/x-osf: New file.
16095 * config.host (alpha*-dec-osf*): Use it.
16097 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16099 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16100 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16101 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16102 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16104 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16106 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16108 * config/stormy16/constraints.md: New file.
16109 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16110 Use satisfies_constraint_Q and satisfies_constraint_R.
16111 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16113 (xstormy16_legitiamte_address_p): Declare.
16114 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16115 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16116 (EXTRA_CONSTRAINT): Delete.
16117 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16119 (xstormy16_extra_constraint_p): Delete.
16121 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16123 PR tree-optimization/46494
16124 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16125 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16126 (pass_rtl_loop_done): Add TODO_verify_flow.
16127 * fwprop.c (pass_rtl_fwprop): Likewise.
16128 * modulo-sched.c (pass_sms): Likewise.
16129 * tree-ssa-dom.c (pass_dominator): Likewise.
16130 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16131 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16132 (pass_tree_loop_done): Likewise.
16133 * tree-ssa-pre.c (execute_pre): Likewise.
16134 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16135 * tree-ssa-sink.c (pass_sink_code): Likewise.
16136 * tree-vrp.c (pass_vrp): Likewise.
16138 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16140 * config/v850/constraints.md: New file.
16141 * config/v850/v850.md: Include it.
16142 * config/v850/predicates.md (reg_or_0_operand): Use
16143 satisfies_constraint_G.
16144 (special_symbolref_operand): Use satisfies_constraint_K.
16145 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16146 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16147 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16148 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16149 (EXTRA_CONSTRAINT): Delete.
16150 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16151 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16152 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16154 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16157 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16160 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16162 * config/mcore/constraints.md: New file.
16163 * config/mcore/mcore.md: Include it.
16164 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16165 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16166 (REG_CLASS_FROM_LETTER): Delete.
16167 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16168 insn_const_int_ok_for_constraint.
16169 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16170 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16171 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16172 (EXTRA_CONSTRAINT): Delete.
16174 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16177 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16178 (IS_SIGHANDLER): Define.
16179 (sparc64_is_sighandler): New function, split off from
16180 sparc64_fallback_frame_state.
16181 (sparc_is_sighandler): New function, split off from
16182 sparc_fallback_frame_state.
16183 (sparc64_fallback_frame_state): Merge with ...
16184 (sparc_fallback_frame_state): ... this into ...
16185 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16186 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16187 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16188 stack instead of hardcoded offsets.
16190 2011-02-14 Andriy Gapon <avg@freebsd.org>
16193 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16195 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16197 * configure: Regenerate.
16199 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16202 * gcc.c (asm_options): Correct spec matching --target-help.
16204 2011-02-12 Martin Jambor <mjambor@suse.cz>
16206 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16207 to gimple call error.
16209 2011-02-12 Mike Stump <mikestump@comcast.net>
16211 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16212 comments in backslash regions.
16214 2011-02-12 Mike Stump <mikestump@comcast.net>
16215 Jakub Jelinek <jakub@redhat.com>
16216 Iain Sandoe <iains@gcc.gnu.org>
16219 * dwarf2out.c (output_cfa_loc): When required, apply the
16220 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16221 (output_loc_sequence): Likewise.
16222 (output_loc_operands_raw): Likewise.
16223 (output_loc_sequence_raw): Likewise.
16224 (output_cfa_loc): Likewise.
16225 (output_loc_list): Suppress register number adjustment when
16226 calling output_loc_sequence()
16227 (output_die): Likewise.
16229 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16231 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16233 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16234 xtensa_memory_move_cost): New functions.
16235 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16237 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16240 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16241 in the current directory.
16242 * configure: Rebuilt.
16244 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16246 * config/darwin.c (darwin_override_options): Add a hunk missed
16247 from the commit of r168571. Trim comment line lengths and
16248 correct indents of the preceding block.
16250 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16252 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16255 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16257 * common.opt (nostartfiles): New Driver option.
16259 2011-02-11 Xinliang David Li <davidxl@google.com>
16261 PR tree-optimization/47707
16262 * tree-chrec.c (convert_affine_scev): Keep type precision.
16264 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16266 PR tree-optimization/47420
16267 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16269 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16271 PR rtl-optimization/47614
16272 * rtl.h (check_for_inc_dec): Declare.
16273 * dse.c (check_for_inc_dec): Externalize...
16274 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16275 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16277 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16280 * gcc.c (main): Do not compile inputs if there were errors in
16282 * opts-common.c (read_cmdline_option): Check for wrong language
16283 after other error checks.
16285 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16287 * cgraph.c: Fix comment typos.
16288 * cgraph.h: Likewise.
16289 * cgraphunit.c: Likewise.
16290 * ipa-cp.c: Likewise.
16291 * ipa-inline.c: Likewise.
16292 * ipa-prop.c: Likewise.
16293 * ipa-pure-const.c: Likewise.
16294 * ipa-ref.c: Likewise.
16295 * ipa-reference.c: Likewise.
16297 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16300 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16302 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16305 * doc/sourcebuild.texi (Require Support): Document
16306 dg-require-ascii-locale.
16308 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16310 * doc/lto.texi (Write summary): Fix missing parentheses.
16312 2011-02-10 DJ Delorie <dj@redhat.com>
16314 * config/m32c/m32c.c (m32c_option_override): Disable
16315 -fcombine-stack-adjustments until flag value tracking and compare
16316 optimization can be rewritten.
16318 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16320 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16322 (PROCESSOR_DEFAULT64): Likewise.
16324 2011-02-10 Richard Henderson <rth@redhat.com>
16326 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16327 change from 2011-02-03.
16328 * config/rx/rx.c (flags_from_code): Likewise.
16329 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16330 is valid, n/pz otherwise.
16331 (rx_select_cc_mode): Return CCmode if Y is not zero.
16333 2011-02-10 Richard Guenther <rguenther@suse.de>
16335 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16337 2011-02-10 Richard Guenther <rguenther@suse.de>
16339 PR tree-optimization/47677
16340 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16342 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16345 * combine.c (make_compound_operation): Only change shifts into
16346 multiplication for SCALAR_INT_MODE_P.
16348 2011-02-10 Jie Zhang <jie@codesourcery.com>
16352 2011-02-05 Jie Zhang <jie@codesourcery.com>
16354 * web.c (entry_register): Don't clobber the number of the
16355 first uninitialized reference in used[].
16357 2011-02-09 Richard Guenther <rguenther@suse.de>
16359 PR tree-optimization/47664
16360 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16363 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16367 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16369 (PROCESSOR_DEFAULT64): Same.
16370 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16372 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16374 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16376 2011-02-09 Martin Jambor <mjambor@suse.cz>
16378 PR middle-end/45505
16379 * tree-sra.c (struct access): New flags grp_scalar_read and
16380 grp_scalar_write. Changed description of assignment read and write
16382 (dump_access): Dump new flags, reorder all of them.
16383 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16384 to detect multiple scalar reads.
16385 (analyze_access_subtree): Use the new scalar read write flags instead
16386 of the old flags. Adjusted comments.
16388 2011-02-08 DJ Delorie <dj@redhat.com>
16391 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16394 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16396 * config/m68k/uclinux.opt: New.
16397 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16399 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16401 * config/cris/elf.opt (sim): New Driver option.
16403 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16405 * config/xtensa/elf.opt: New.
16406 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16408 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16410 * config/vax/elf.opt: New.
16411 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16413 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16415 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16417 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16419 * config/gnu-user.opt: New.
16420 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16421 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16422 *-*-uclinux*): Use gnu-user.opt.
16424 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16426 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16427 * config/i386/gnu.h (CPP_SPEC): Likewise.
16429 2011-02-08 Ian Lance Taylor <iant@google.com>
16431 * common.opt (fcx-limited-range): Add SetByCombined flag.
16432 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16433 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16434 (fassociative-math, freciprocal-math): Likewise.
16435 (funsafe-math-optimizations): Likewise.
16436 * opth-gen.awk: Handle SetByCombined.
16437 * optc-gen.awk: Likewise.
16438 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16439 (set_unsafe_math_optimizations_flags): Likewise.
16440 * doc/options.texi (Option properties): Document SetByCombined.
16442 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16444 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16445 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16446 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16447 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16448 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16450 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16452 PR tree-optimization/46834
16453 PR tree-optimization/46994
16454 PR tree-optimization/46995
16455 * graphite-sese-to-poly.c (used_outside_reduction): New.
16456 (detect_commutative_reduction): Call used_outside_reduction.
16457 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16458 translate_scalar_reduction_to_array only when at least one
16459 loop-phi/close-phi tuple has been detected.
16461 2011-02-08 Richard Guenther <rguenther@suse.de>
16463 PR middle-end/47639
16464 * tree-vect-generic.c (expand_vector_operations_1): Update
16466 (expand_vector_operations): ... not here. Cleanup EH info
16467 and the CFG if required.
16469 2011-02-08 Richard Guenther <rguenther@suse.de>
16471 PR tree-optimization/47641
16472 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16473 require type compatibility.
16475 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16477 * gimple-low.c (lower_function_body): Don't remove the location of
16478 the return statement here.
16479 (lower_gimple_return): Do it here instead but only if the return
16480 statement is actually used twice.
16482 2011-02-08 Richard Guenther <rguenther@suse.de>
16484 PR tree-optimization/47632
16485 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16486 unused up_to_stmt parameter, return whether cfg-cleanup is
16487 necessary, remove EH info properly.
16488 (forward_propagate_into_gimple_cond): Adjust caller.
16489 (forward_propagate_into_cond): Likewise.
16490 (forward_propagate_comparison): Likewise.
16491 (tree_ssa_forward_propagate_single_use_vars): Make
16492 forward_propagate_comparison case similar to the two others.
16494 2011-02-08 Nick Clifton <nickc@redhat.com>
16496 * config/mn10300/mn10300.opt (mliw): New command line option.
16497 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16498 (liw_bundling): New automaton.
16499 (liw): New attribute.
16500 (liw_op): New attribute.
16501 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16502 (movsi_internal): Add LIW attributes.
16503 (andsi3): Likewise.
16504 (iorsi3): Likewise.
16505 (xorsi3): Likewise.
16506 (addsi3): Separate register and immediate alternatives.
16507 Add LIW attributes.
16508 (subsi3): Likewise.
16510 (aslsi3): Likewise.
16511 (lshrsi3): Likewise.
16512 (ashrsi3): Likewise.
16513 (liw): New pattern.
16514 * config/mn10300/mn10300.c (liw_op_names): New
16515 (mn10300_print_operand): Handle 'W' operand descriptor.
16516 (extract_bundle): New function.
16517 (check_liw_constraints): New function.
16518 (liw_candidate): New function.
16519 (mn10300_bundle_liw): New function.
16520 (mn10300_reorg): New function.
16521 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16522 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16523 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16524 __LIW__ or __NO_LIW__.
16525 * doc/invoke.texi: Describe the -mliw command line option.
16527 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16529 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16530 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16531 pthread_mutex_unlock): Remove.
16532 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16533 * config/pa/t-pa64: Likewise.
16534 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16535 shared libc if not linking against libpthread.
16536 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16538 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16541 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16542 on 10.6 and later to ensure that we always use the unwinder from
16543 the system. Only add -no_compact_unwind when tarteting darwin
16546 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16549 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16550 (vec_interleave_lowv2sf): Ditto.
16551 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16552 (vec_extract_oddv2sf): Ditto.
16554 2011-02-07 Mike Stump <mikestump@comcast.net>
16557 Add __ieee_divdc3 entry point.
16558 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16560 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16561 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16562 * config/darwin.c (darwin_rename_builtins): Add.
16563 * config/darwin-protos.h (darwin_rename_builtins): Add.
16565 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16568 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16571 2011-02-07 Mike Stump <mikestump@comcast.net>
16573 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16575 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16578 * config/avr/libgcc.S (exit): Move .endfunc
16580 2011-02-07 Richard Guenther <rguenther@suse.de>
16582 PR tree-optimization/47615
16583 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16584 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16585 (run_scc_vn): Initialize it.
16586 (visit_reference_op_load): Use it.
16587 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16589 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16591 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16592 DImode trapping arithmetic libfuncs.
16594 2011-02-07 Richard Guenther <rguenther@suse.de>
16596 PR tree-optimization/47621
16597 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16599 (execute_update_addresses_taken): ... here. Make it more
16600 conservative in what we accept.
16602 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16604 * config/sparc/freebsd.h (ASM_SPEC): Define.
16605 * config/sparc/vxworks.h (ASM_SPEC): Define.
16607 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16609 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16611 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16613 * doc/invoke.texi: Remove reference to compiler internals from
16614 user documentation.
16616 * reg-notes.def: Remove REG_VALUE_PROFILE.
16617 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16619 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16621 PR middle-end/47610
16622 * varasm.c (default_section_type_flags): If decl is NULL,
16623 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16625 2011-02-05 Jie Zhang <jie@codesourcery.com>
16628 * web.c (entry_register): Don't clobber the number of the
16629 first uninitialized reference in used[].
16631 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16633 PR tree-optimization/46194
16634 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16635 (build_classic_dist_vector_1): Do not represent classic distance
16636 vectors when the access functions are variating in different loops.
16638 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16640 * config/mips/iris6.opt: New.
16641 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16643 2011-02-04 Richard Henderson <rth@redhat.com>
16644 Steve Ellcey <sje@cup.hp.com>
16647 * config/ia64/predicates.md (mux1_brcst_element): New.
16648 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16649 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16650 (ia64_unpack_sign): New.
16651 (ia64_expand_unpack): Rewrite using new routines.
16652 (ia64_expand_widen_sum): Ditto.
16653 (ia64_expand_dot_prod_v8qi): Ditto.
16654 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16655 routines, add endian check.
16656 (pmpy2_even): Rename from pmpy2_r, add endian check.
16657 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16658 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16659 (vec_widen_smult_hi_v4hi): Ditto.
16660 (vec_widen_umult_lo_v4hi): Ditto.
16661 (vec_widen_umult_hi_v4hi): Ditto.
16662 (mulv2si3): Change endian checks.
16663 (sdot_prodv4hi): Rewrite with new calls.
16664 (udot_prodv4hi): New.
16665 (vec_pack_ssat_v4hi): Add endian check.
16666 (vec_pack_usat_v4hi): Ditto.
16667 (vec_pack_ssat_v2si): Ditto.
16668 (max1_even): Rename from max1_r, add endian check.
16669 (max1_odd): Rename from max1_l, add endian check.
16670 (*mux1_rev): Format change.
16671 (*mux1_mix): Ditto.
16672 (*mux1_shuf): Ditto.
16673 (*mux1_alt): Ditto.
16674 (*mux1_brcst_v8qi): Use new predicate.
16675 (vec_extract_evenv8qi): Remove endian check.
16676 (vec_extract_oddv8qi): Ditto.
16677 (vec_interleave_lowv4hi): Format change.
16678 (vec_interleave_highv4hi): Ditto.
16679 (mix2_even): Rename from mix2_r, add endian check.
16680 (mix2_odd): Rename from mux2_l, add endian check.
16681 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16682 (vec_extract_evenodd_helper): Format change.
16683 (vec_extract_evenv4hi): Remove endian check.
16684 (vec_extract_oddv4hi): Remove endian check.
16685 (vec_interleave_lowv2si): Format change.
16686 (vec_interleave_highv2si): Format change.
16687 (vec_initv2si): Remove endian check.
16688 (vecinit_v2si): Add endian check.
16689 (reduc_splus_v2sf): Add endian check.
16690 (reduc_smax_v2sf): Ditto.
16691 (reduc_smin_v2sf): Ditto.
16692 (vec_initv2sf): Remove endian check.
16693 (fpack): Add endian check.
16694 (fswap): Add endian check.
16695 (vec_interleave_highv2sf): Add endian check.
16696 (vec_interleave_lowv2sf): Add endian check.
16697 (fmix_lr): Add endian check.
16698 (vec_setv2sf): Format change.
16699 (*vec_extractv2sf_0_be): Use shift to extract operand.
16700 (*vec_extractv2sf_1_be): New.
16701 (vec_pack_trunc_v4hi): Add endian check.
16702 (vec_pack_trunc_v2si): Format change.
16704 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16706 PR inline-asm/23200
16707 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16708 do bb, locus and block comparison and disallow loads if it is not set.
16709 (stmt_is_replaceable_p): New function.
16710 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16712 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16713 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16715 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16717 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16719 * config/rs6000/xilinx.opt: New.
16720 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16722 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16724 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16726 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16728 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16729 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16730 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16731 secondary_reload_info, xtensa_secondary_reload): Remove.
16732 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16733 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16734 (xtensa_preferred_reload_class): Make static. Change return and
16735 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16736 Use CONST_DOUBLE_P predicate.
16737 (xtensa_preferred_output_reload_class): New function.
16738 (xtensa_secondary_reload): Make static.
16740 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16742 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16743 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16744 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16746 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16748 PR middle-end/31490
16749 * output.h (SECTION_RELRO): Define.
16750 (SECTION_MACH_DEP): Adjust.
16751 (get_variable_section): New prototype.
16752 * varpool.c (varpool_finalize_named_section_flags): New function.
16753 (varpool_assemble_pending_decls): Call it.
16754 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16755 * cgraphunit.c (cgraph_output_in_order): Call
16756 varpool_finalize_named_section_flags.
16757 * varasm.c (get_section): Allow section flags conflicts between
16758 relro and read-only sections if the section hasn't been declared yet.
16759 Set SECTION_OVERRIDE after diagnosing section type conflict.
16760 (get_variable_section): No longer static.
16761 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16762 readonly sections that need relocations.
16763 (decl_readonly_section_1): New function.
16764 (decl_readonly_section): Use it.
16767 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16768 Steve Ellcey <sje@cup.hp.com>
16770 PR middle-end/31490
16771 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16772 if section attribute used.
16774 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16776 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16777 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16778 (darwin_init_sections): Remove assertion.
16780 2011-02-03 Nick Clifton <nickc@redhat.com>
16782 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16784 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16785 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16786 instead of "n" and "pz".
16787 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16790 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16793 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16794 fma, expand FMA_EXPR as fma{,f,l} call.
16797 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16798 copy them into a unsigned char variable and pass address of it to
16799 lto_output_data_stream.
16802 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16803 around backend_init_target and lang_dependent_init_target calls.
16804 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16805 (verify_cgraph_node): Don't call set_cfun here. Use
16806 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16807 Set error_found for incorrectly represented calls to thunks.
16809 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16812 PR rtl-optimization/43494
16813 * rtl.h (for_each_inc_dec_fn): New type.
16814 (for_each_inc_dec): Declare.
16815 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16816 (for_each_inc_dec_find_inc_dec): New fn.
16817 (for_each_inc_dec_find_mem): New fn.
16818 (for_each_inc_dec): New fn.
16819 * dse.c (struct insn_size): Remove.
16820 (replace_inc_dec, replace_inc_dec_mem): Remove.
16821 (emit_inc_dec_insn_before): New fn.
16822 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16823 (canon_address): Pass mem modes to cselib_lookup.
16824 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16825 (cselib_lookup_from_insn): Likewise.
16826 (cselib_subst_to_values): Likewise.
16827 * cselib.c (find_slot_memmode): New var.
16828 (cselib_find_slot): New fn. Use it instead of
16829 htab_find_slot_with_hash everywhere.
16830 (entry_and_rtx_equal_p): Use find_slot_memmode.
16831 (autoinc_split): New fn.
16832 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16833 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16834 Deal with autoinc. Special-case recursion into MEMs.
16835 (cselib_hash_rtx): Likewise.
16836 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16837 address and MEM modes.
16838 (cselib_subst_to_values): Add memmode, pass it on.
16840 (cselib_lookup): Add memmode argument, pass it on.
16841 (cselib_lookup_from_insn): Add memmode.
16842 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16843 (struct cselib_record_autoinc_data): New.
16844 (cselib_record_autoinc_cb): New fn.
16845 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16846 mode to cselib_lookup. Reset autoinced REGs here instead of...
16847 (cselib_process_insn): ... here.
16848 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16850 (add_uses): Likewise, also to cselib_subst_to_values.
16851 (add_stores): Likewise.
16852 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16853 cselib_subst_to_values.
16854 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16855 * gcse.c (do_local_cprop): Adjusted.
16856 * postreload.c (reload_cse_simplify_set): Adjusted.
16857 (reload_cse_simplify_operands): Adjusted.
16858 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16860 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16862 PR tree-optimization/45122
16863 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16864 unsafe assumptions when there's more than one loop exit.
16866 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16869 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16870 Document using vector double with the load/store builtins, and
16871 that the load/store builtins always use Altivec instructions.
16873 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16874 to use altivec memory instructions, even on VSX.
16875 (vector_altivec_store_<mode>): Ditto.
16877 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16880 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16881 V2DF, V2DI support to load/store overloaded builtins.
16883 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16884 altivec load/store builtins for V2DF/V2DI types.
16886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16887 set avoid indexed addresses on power6 if -maltivec.
16888 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16889 vector_altivec_load/vector_altivec_store builtins.
16890 (altivec_expand_st_builtin): Ditto.
16891 (altivec_expand_builtin): Add VSX memory builtins.
16892 (rs6000_init_builtins): Add V2DI types to internal types.
16893 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16894 load/store builtins.
16895 (rs6000_address_for_altivec): Insure memory address is appropriate
16898 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16899 vec_vsx_ld and vec_vsx_st.
16900 (vsx_store_<mode>): Ditto.
16902 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16903 variables to hold long long types for VSX vector memory builtins.
16904 (RS6000_BTI_unsigned_long_long): Ditto.
16905 (long_long_integer_type_internal_node): Ditti.
16906 (long_long_unsigned_type_internal_node): Ditti.
16908 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16909 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16910 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16912 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16914 (vec_vsx_st): Ditto.
16916 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16918 * config/pa/pa-hpux10.opt: New.
16919 * config/hpux11.opt (pthread): New Driver option.
16920 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16921 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16923 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16925 * config/ia64/vms.opt: New.
16926 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16928 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16931 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16932 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16933 generator functions.
16934 (vsx_floatuns<VSi><mode>2): Ditto.
16935 (vsx_fix_trunc<mode><VSi>2): Ditto.
16936 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16938 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16940 * config/i386/djgpp.opt (posix): New Driver option.
16942 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16944 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16945 Move to the unsupported targets list.
16947 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16949 PR rtl-optimization/47525
16950 * df-scan.c: Update copyright years.
16951 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16952 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16954 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16956 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16957 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16958 (ASM_OUTPUT_ASCII): Remove.
16959 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16961 2011-02-02 Jeff Law <law@redhat.com>
16963 PR middle-end/47543
16964 * reload.c (find_reloads_address): Handle reg+d address where both
16965 components are invalid by reloading the entire address.
16967 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16968 Richard Guenther <rguenther@suse.de>
16970 PR tree-optimization/40979
16972 * passes.c (init_optimization_passes): After LIM call copy_prop
16973 and DCE to clean up.
16974 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16976 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16978 PR tree-optimization/47576
16979 PR tree-optimization/47555
16980 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16981 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16982 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16983 * tree-scalar-evolution.c (follow_ssa_edge): Use
16984 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16986 2011-02-02 Richard Guenther <rguenther@suse.de>
16988 PR tree-optimization/47566
16989 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16991 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16995 * tree-inline.c (declare_return_variable): Remove unused caller
17000 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17001 * cfgexpand.c (account_used_vars_for_block): Use them.
17002 * tree-nrv.c (tree_nrv): Likewise.
17003 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17004 (dump_scope_block): Likewise.
17005 (remove_unused_locals): Likewise.
17009 * tree-inline.c (declare_return_variable): Add result decl to
17010 local decls only once.
17011 * gimple-low.c (record_vars_into): Mark newly-created variables
17014 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17020 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17022 (no_real_insns_p, schedule_block, set_priorities): Drop special
17023 treatment of boundary debug insns.
17024 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17025 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17026 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17027 (BOUNDARY_DEBUG_INSN_P): Likewise.
17028 (SCHEDULE_DEBUG_INSN_P): Likewise.
17029 * sched-rgn.c (init_ready_list): Drop special treatment of
17030 boundary debug insns.
17031 * final.c (rest_of_clean_state): Clear notes' BB.
17033 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17035 * config/openbsd.opt (assert=): New Driver option.
17037 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17039 * config/i386/nto.opt: New.
17040 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17042 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17044 * config/i386/netware.opt: New.
17045 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17047 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17049 * config/interix.opt (posix): New Driver option.
17051 2011-02-01 DJ Delorie <dj@redhat.com>
17053 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17055 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17058 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17060 PR tree-optimization/47561
17061 * toplev.c (process_options): Print the Graphite flags. Add
17062 flag_loop_flatten to the list of options requiring Graphite.
17064 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17066 * config/i386/cygming.opt (posix): New Driver option.
17068 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17070 * config/arm/vxworks.opt: New.
17071 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17073 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17075 * config/alpha/elf.opt: New.
17076 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17077 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17079 2011-02-01 Richard Guenther <rguenther@suse.de>
17081 PR tree-optimization/47559
17082 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17083 store-motion on references that can throw.
17085 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17087 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17088 * tree-pass.h (TDF_CSELIB): New macro.
17089 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17090 cselib_lookup): Check for it rather than for TDF_DETAILS.
17092 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17095 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17096 is HOST_BIT_BUCKET.
17098 * opts.c (finish_options): Don't add x_aux_base_name if it is
17101 2011-02-01 Richard Guenther <rguenther@suse.de>
17103 PR tree-optimization/47555
17105 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17107 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17109 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17112 * config/lm32/t-lm32: Add multilib for all CPU options.
17114 2011-02-01 Richard Guenther <rguenther@suse.de>
17116 PR tree-optimization/47541
17117 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17118 sure to have a field at offset zero.
17120 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17122 * config/arc/arc.opt (EB, EL): New Driver options.
17124 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17126 * config/alpha/osf5.opt: New.
17127 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17129 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17131 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17133 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17135 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17136 -floop-interchange.
17137 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17138 is an alias of -floop-interchange and that it requires the
17139 Graphite infrastructure.
17140 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17141 flag_loop_interchange based on the value of flag_tree_loop_linear.
17143 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17144 Richard Guenther <rguenther@suse.de>
17146 PR tree-optimization/47538
17147 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17148 type instead of r1type, except for comparisons. For right
17149 shifts and comparisons punt if there are mismatches in
17150 sizetype vs. non-sizetype types.
17152 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17154 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17157 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17159 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17161 * configure: Regenerate.
17163 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17165 * configure.ac (gcc_cv_ld_static_option): Define.
17166 (gcc_cv_ld_dynamic_option): Define.
17167 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17169 (HAVE_LD_STATIC_DYNAMIC): Update message.
17170 (LD_STATIC_OPTION): Define.
17171 (LD_DYNAMIC_OPTION): Define.
17172 * configure: Regenerate.
17173 * config.in: Regenerate.
17174 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17175 HAVE_LD_STATIC_DYNAMIC]: Use them.
17177 2011-01-31 Nick Clifton <nickc@redhat.com>
17179 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17180 registers inside interrupt handlers if the handler is not a leaf
17183 2011-01-31 Nick Clifton <nickc@redhat.com>
17185 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17186 reg_renumber returning an INVALID_REGNUM.
17188 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17191 * doc/install.texi: Document host options discarded when cross
17192 configuring target libraries.
17194 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17197 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17200 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17202 (no_real_insns_p, schedule_block, set_priorities): Drop special
17203 treatment of boundary debug insns.
17204 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17205 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17206 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17207 (BOUNDARY_DEBUG_INSN_P): Likewise.
17208 (SCHEDULE_DEBUG_INSN_P): Likewise.
17209 * sched-rgn.c (init_ready_list): Drop special treatment of
17210 boundary debug insns.
17211 * final.c (rest_of_clean-state): Clear notes' BB.
17213 2011-01-31 Alan Modra <amodra@gmail.com>
17215 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17216 toc relative expressions as we do in print_operand_address.
17218 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17220 * doc/extend.texi: Follow spelling conventions.
17221 * doc/invoke.texi: Fix a typo.
17223 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17225 * config/hpux11.opt: New.
17226 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17227 ia64*-*-hpux*): Use hpux11.opt.
17229 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17231 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17234 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17236 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17239 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17241 * doc/install.texi (Binaries): Remove outdated reference for
17242 Motorola 68HC11/68HC12 downloads.
17244 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17246 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17249 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17252 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17255 2011-01-28 Ahmad Sharif <asharif@google.com>
17257 * value-prof.c (check_counter): Corrected error message.
17259 2011-01-29 Jie Zhang <jie@codesourcery.com>
17261 * config/arm/arm.c (arm_legitimize_reload_address): New.
17262 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17263 arm_legitimize_reload_address.
17264 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17266 2011-01-28 Ian Lance Taylor <iant@google.com>
17268 * godump.c (go_define): Ignore macros whose definitions include
17269 two adjacent operands.
17271 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17274 * varasm.c (force_const_mem): Store copy of x in desc->constant
17275 instead of x itself.
17276 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17277 itself into REG_EQUAL note.
17279 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17281 * config/freebsd.opt (posix, rdynamic): New Driver options.
17283 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17285 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17286 -Bstatic/-Bdynamic.
17287 * configure: Regenerate.
17289 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17291 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17292 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17294 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17296 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17297 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17298 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17299 (s390_preferred_reload_class): Make static. Change return and
17300 'rclass' argument type to reg_class_t.
17302 2011-01-27 Jan Hubicka <jh@suse.cz>
17304 PR middle-end/46949
17305 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17306 (process_function_and_variable_attributes): Check defined weakrefs.
17308 2011-01-27 Martin Jambor <mjambor@suse.cz>
17310 PR tree-optimization/47228
17311 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17312 build_ref_for_offset.
17314 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17316 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17318 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17320 PR rtl-optimization/46856
17321 * postreload.c (reload_combine_recognize_const_pattern): Do not
17322 separate cc0 setter and user on cc0 targets.
17324 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17327 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17328 passed a VOID_TYPE expression, immediately emit an error and
17329 return error_mark_node.
17331 2011-01-26 Jeff Law <law@redhat.com>
17333 PR rtl-optimization/47464
17334 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17335 rather than may_trap_p as needed.
17337 2011-01-26 DJ Delorie <dj@redhat.com>
17339 PR rtl-optimization/46878
17340 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17341 setter/user dependency as well.
17343 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17345 PR rtl-optimization/44469
17346 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17347 after removing trivially dead basic blocks.
17349 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17351 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17352 * config/frv/frv.h (LINK_SPEC): Likewise.
17353 * config/i386/netware.h (LINK_SPEC): Likewise.
17354 * config/m68k/linux.h (ASM_SPEC): Likewise.
17355 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17356 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17357 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17358 * config/sparc/linux.h (ASM_SPEC): Likewise.
17359 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17360 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17362 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17364 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17365 * config/frv/frv.h (ASM_SPEC): Likewise.
17366 * config/m68k/linux.h (ASM_SPEC): Likewise.
17367 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17368 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17369 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17370 * config/sparc/linux.h (ASM_SPEC): Likewise.
17371 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17372 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17374 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17376 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17377 * config/frv/frv.h (LINK_SPEC): Likewise.
17378 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17380 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17382 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17383 * config/frv/frv.h (ASM_SPEC): Likewise.
17384 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17385 * config/m68k/linux.h (ASM_SPEC): Likewise.
17386 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17387 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17388 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17389 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17390 * config/sparc/linux.h (ASM_SPEC): Likewise.
17391 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17392 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17393 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17395 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17398 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17400 (vec_extract_evenodd_help): Ditto.
17401 (vec_extract_evenv4hi): Ditto.
17402 (vec_extract_oddv4hi): Ditto.
17403 (vec_interleave_lowv2si): Ditto.
17404 (vec_interleave_highv2si): Ditto.
17405 (vec_extract_evenv2si): Ditto.
17406 (vec_extract_oddv2si: Ditto.
17407 (vec_pack_trunc_v2si): Ditto.
17409 2011-01-22 Jan Hubicka <jh@suse.cz>
17412 * cgraph.h (cgraph_local_info): New field can_change_signature.
17413 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17414 signature can change.
17415 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17417 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17418 (cgraph_function_versioning): We can not change signature of functions
17419 that don't allow that.
17420 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17421 (lto_input_node): Likewise.
17422 * ipa-inline.c (compute_inline_parameters): Compute
17423 local.can_change_signature.
17424 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17425 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17426 functions that can not change signature.
17427 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17428 init_cumulative_args): Do not use local calling conventions
17429 for functions that can not change signature.
17431 2011-01-22 Jan Hubicka <jh@suse.cz>
17433 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17435 2011-01-26 Richard Guenther <rguenther@suse.de>
17437 PR tree-optimization/47190
17438 * cgraphunit.c (process_common_attributes): New function.
17439 (process_function_and_variable_attributes): Use it.
17441 2011-01-26 Richard Guenther <rguenther@suse.de>
17444 * cgraphbuild.c (record_eh_tables): Record reference to personality
17447 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17450 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17451 non-debug insns from moving up.
17453 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17456 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17457 t-dlldir{,-x} fragment for build and add it to tmake_file.
17458 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17459 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17460 * config/i386/t-dlldir: New file.
17461 (SHLIB_DLLDIR): Define.
17462 * config/i386/t-dlldir-x: New file.
17463 (SHLIB_DLLDIR): Define.
17464 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17465 (SHLIB_INSTALL): Use it.
17467 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17470 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17471 lower bound of the allowed Thumb-2 coprocessor load/store
17472 index range to -256. Add explaining comment.
17474 2011-01-25 Ian Lance Taylor <iant@google.com>
17476 * godump.c (go_define): Improve lexing of macro expansion to only
17477 accept expressions which match Go spec.
17479 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17482 * tree.c (handle_dll_attribute): Handle it.
17483 * doc/extend.texi (@item dllexport): Mention it.
17484 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17486 2011-01-25 Ian Lance Taylor <iant@google.com>
17488 PR tree-optimization/26854
17489 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17490 (decl_jump_unsafe): Move higher in file, with no other change.
17491 (bind): Set has_jump_unsafe_decl if appropriate.
17492 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17493 (check_earlier_gotos): Likewise.
17494 (c_check_switch_jump_warnings): Likewise.
17496 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17498 * doc/invoke.texi (Warning Options): Add missing hyphen.
17499 (-fprofile-dir): Minor grammatical fixes.
17500 (-fbranch-probabilities): Likewise.
17502 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17506 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17508 (no_real_insns_p, schedule_block, set_priorities): Drop special
17509 treatment of boundary debug insns.
17510 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17511 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17512 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17513 (BOUNDARY_DEBUG_INSN_P): Likewise.
17514 (SCHEDULE_DEBUG_INSN_P): Likewise.
17515 * sched-rgn.c (init_ready_list): Drop special treatment of
17516 boundary debug insns.
17517 * final.c (rest_of_clean-state): Clear notes' BB.
17519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17521 * Makefile.in (LAMBDA_H): Removed.
17522 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17523 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17524 lambda-trans.o, and tree-loop-linear.o.
17525 (lto-symtab.o): Remove dependence on LAMBDA_H.
17526 (tree-loop-linear.o): Remove rule.
17527 (lambda-mat.o): Same.
17528 (lambda-trans.o): Same.
17529 (lambda-code.o): Same.
17530 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17531 (tree-vect-slp.o): Same.
17532 * hwint.h (gcd): Moved here.
17533 (least_common_multiple): Same.
17534 * lambda-code.c: Removed.
17535 * lambda-mat.c: Removed.
17536 * lambda-trans.c: Removed.
17537 * lambda.h: Removed.
17538 * tree-loop-linear.c: Removed.
17539 * lto-symtab.c: Do not include lambda.h.
17540 * omega.c (gcd): Removed.
17541 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17542 * tree-data-ref.c (print_lambda_vector): Moved here.
17543 (lambda_vector_copy): Same.
17544 (lambda_matrix_copy): Same.
17545 (lambda_matrix_id): Same.
17546 (lambda_vector_first_nz): Same.
17547 (lambda_matrix_row_add): Same.
17548 (lambda_matrix_row_exchange): Same.
17549 (lambda_vector_mult_const): Same.
17550 (lambda_vector_negate): Same.
17551 (lambda_matrix_row_negate): Same.
17552 (lambda_vector_equal): Same.
17553 (lambda_matrix_right_hermite): Same.
17554 * tree-data-ref.h: Do not include lambda.h.
17555 (lambda_vector): Moved here.
17556 (lambda_matrix): Same.
17557 (dependence_level): Same.
17558 (lambda_transform_legal_p): Removed declaration.
17559 (lambda_collect_parameters): Same.
17560 (lambda_compute_access_matrices): Same.
17561 (lambda_vector_gcd): Same.
17562 (lambda_vector_new): Same.
17563 (lambda_vector_clear): Same.
17564 (lambda_vector_lexico_pos): Same.
17565 (lambda_vector_zerop): Same.
17566 (lambda_matrix_new): Same.
17567 * tree-flow.h (least_common_multiple): Removed declaration.
17568 * tree-parloops.c (lambda_trans_matrix): Moved here.
17569 (LTM_MATRIX): Same.
17570 (LTM_ROWSIZE): Same.
17571 (LTM_COLSIZE): Same.
17572 (LTM_DENOMINATOR): Same.
17573 (lambda_trans_matrix_new): Same.
17574 (lambda_matrix_vector_mult): Same.
17575 (lambda_transform_legal_p): Same.
17576 * tree-pass.h (pass_linear_transform): Removed declaration.
17577 * tree-ssa-loop.c (tree_linear_transform): Removed.
17578 (gate_tree_linear_transform): Removed.
17579 (pass_linear_transform): Removed.
17580 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17581 flag_loop_interchange.
17583 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17585 PR tree-optimization/47265
17586 PR tree-optimization/47443
17587 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17588 if name still has some uses.
17590 2011-01-25 Martin Jambor <mjambor@suse.cz>
17592 PR tree-optimization/47382
17593 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17594 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17596 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17598 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17599 sjlj_except_unwind_info.
17601 2011-01-25 Richard Guenther <rguenther@suse.de>
17603 PR tree-optimization/47426
17604 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17605 visible functions results escape.
17607 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17610 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17611 (arm_get_frame_offsets): Use it.
17613 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17614 Jakub Jelinek <jakub@redhat.com>
17616 PR tree-optimization/47271
17617 * tree-if-conv.c (bb_postdominates_preds): New.
17618 (if_convertible_bb_p): Call bb_postdominates_preds.
17619 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17620 (predicate_scalar_phi): Call bb_postdominates_preds.
17622 2011-01-25 Nick Clifton <nickc@redhat.com>
17624 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17625 * config/rx/rx.c (rx_function_value): Likewise.
17626 (rx_promote_function_mode): Likewise.
17627 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17628 in order to make it legitimate.
17629 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17630 make sure that the first operand is the same as the result register.
17631 (addsi3_unspec): Delete.
17632 (subdi3): Do not accept immediate operands.
17633 (subdi3_internal): Likewise.
17635 2011-01-25 Jeff Law <law@redhat.com>
17637 PR rtl-optimization/37273
17638 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17639 handle them like argument loads from stack slots. Do not double
17640 count memory for memory constants and argument loads from stack slots.
17642 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17644 PR tree-optimization/47427
17645 PR tree-optimization/47428
17646 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17647 coalesce if the new root var would be TREE_READONLY.
17649 2011-01-25 Richard Guenther <rguenther@suse.de>
17651 PR middle-end/47414
17652 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17653 correct type for TBAA.
17655 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17657 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17658 (close_phi_written_to_memory): Call for_each_index with
17659 dr_indices_valid_in_loop.
17661 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17663 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17664 when it is initialized.
17666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17668 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17669 call to graphite_find_data_references_in_stmt.
17670 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17671 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17672 call to graphite_find_data_references_in_stmt.
17673 (analyze_drs_in_stmts): Same.
17674 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17675 in which the scalar analysis of indices is performed.
17676 (create_data_ref): Same. Update call to dr_analyze_indices.
17677 (find_data_references_in_stmt): Update call to create_data_ref.
17678 (graphite_find_data_references_in_stmt): Same.
17679 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17681 (create_data_ref): Same.
17682 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17683 call to create_data_ref.
17685 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17687 * graphite-sese-to-poly.c (build_poly_scop): Move
17688 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17690 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17692 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17693 VAR_DECL, PARM_DECL, and RESULT_DECL.
17695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17697 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17698 in a reduction PBB.
17699 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17700 that have already been marked as PBB_IS_REDUCTION.
17702 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17704 * graphite-scop-detection.c (same_close_phi_node): New.
17705 (remove_duplicate_close_phi): New.
17706 (make_close_phi_nodes_unique): New.
17707 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17709 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17711 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17712 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17713 of both data references to be the same.
17715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17717 * graphite-dependences.c (build_lexicographical_constraint): Remove
17718 the gdim parameter.
17719 (build_lexicographical_constraint): Adjust call to
17720 ppl_powerset_is_empty.
17721 (dependence_polyhedron): Same.
17722 (graphite_legal_transform_dr): Same.
17723 (graphite_carried_dependence_level_k): Same.
17724 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17726 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17730 * graphite-sese-to-poly.c
17731 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17732 (close_phi_written_to_memory): New.
17733 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17738 * doc/install.texi: Update the expected version number of PPL to 0.11.
17739 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17740 #if PPL_VERSION_MINOR < 11.
17742 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17744 * graphite-dependences.c: Include graphite-cloog-util.h.
17745 (new_poly_ddr): Inlined into dependence_polyhedron.
17746 (free_poly_ddr): Moved close by new_poly_ddr.
17747 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17748 Early return NULL when ppl_powerset_is_empty returns true.
17749 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17750 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17751 (graphite_legal_transform_dr): Call new_poly_ddr.
17752 (graphite_carried_dependence_level_k): Same.
17753 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17754 (dot_transformed_deps_stmt_1): Removed.
17755 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17756 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17757 (dot_deps_1): Call dot_deps_2.
17758 * Makefile.in (graphite-dependences.o): Add missing dependence on
17759 graphite-cloog-util.h.
17761 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17763 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17764 (build_lexicographical_constraint): Same.
17765 (dependence_polyhedron_1): Same.
17766 (graphite_legal_transform_dr): Same.
17767 (graphite_carried_dependence_level_k): Same.
17768 * graphite-ppl.c (ppl_powerset_is_empty): New.
17769 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17770 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17774 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17775 the "a followed by b" relation and document it.
17777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17779 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17780 iteration when the bag of constraints is empty.
17782 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17784 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17786 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17788 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17789 nest and two loop depths as parameters.
17790 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17791 lst_perfect_nestify.
17793 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17795 * graphite-dependences.c (print_pddr): Call
17796 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17798 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17800 * graphite-ppl.c (debug_gmp_value): New.
17801 * graphite-ppl.h (debug_gmp_value): Declared.
17803 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17805 * doc/install.texi: Document availability of cloog-0.16.
17807 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17809 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17810 invalid postdominance info.
17812 2011-01-24 Jan Hubicka <jh@suse.cz>
17815 * doc/extend.texi (weak pragma): Drop claim that it must
17816 appear before definition.
17817 * varasm.c (merge_weak, declare_weak): Only sanity check
17818 that DECL is not output at a time it is declared weak.
17820 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17822 * machmode.def: Fixed comments.
17824 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17826 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17828 2011-01-24 Paul Koning <ni1d@arrl.net>
17830 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17833 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17836 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17837 (block_info): Add scanned and prev.
17838 (move_or_delete_vzeroupper_2): Return if the basic block
17839 has been scanned and the upper 128bit state is unchanged
17840 from the last scan.
17841 (move_or_delete_vzeroupper_1): Return true if the exit
17843 (move_or_delete_vzeroupper): Visit basic blocks using the
17844 work-list based algorithm based on vt_find_locations in
17847 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17849 2011-01-24 Nick Clifton <nickc@redhat.com>
17851 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17852 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17853 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17854 then define __v850e1__.
17855 * doc/invoke.texi: Document -mv850es.
17857 2011-01-24 Richard Henderson <rth@redhat.com>
17859 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17860 compound unordered comparisons.
17861 * config/rx/rx.c (rx_split_fp_compare): Remove.
17862 * config/rx/rx-protos.h: Update.
17863 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17864 (cbranchsf4): Don't call rx_split_fp_compare.
17865 (*cbranchsf4): Use rx_split_cbranch.
17866 (*cmpsf): Don't accept "i" constraint.
17867 (*conditional_branch): Only valid after reload.
17868 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17870 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17873 * config/rs6000/altivec.md (vector constant splitters): Add
17874 support for creating vector single precision constants if -mvsx is
17875 used and we would create the constant using Altivec primitives.
17877 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17878 Richard Sandiford <rdsandiford@googlemail.com>
17880 PR rtl-optimization/47166
17881 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17882 mechanism for PRE_MODIFY and POST_MODIFY.
17883 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17886 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17888 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17890 2011-01-22 Jan Hubicka <jh@suse.cz>
17893 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17895 2011-01-22 Jan Hubicka <jh@suse.cz>
17897 PR tree-optimization/43884
17899 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17900 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17902 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17904 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17905 * config/s390/s390.c (s390_register_move_cost,
17906 s390_memory_move_cost): New.
17907 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17909 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17911 PR middle-end/47401
17912 * except.c (sjlj_assign_call_site_values): Move setting the
17913 crtl->uses_eh_lsda flag to ...
17914 (sjlj_mark_call_sites): ... here.
17915 (sjlj_emit_function_enter): Support NULL dispatch label.
17916 (sjlj_build_landing_pads): In a function with no landing pads
17917 that still has must-not-throw regions, generate code to register
17918 a personality function with empty LSDA.
17920 2011-01-21 Richard Henderson <rth@redhat.com>
17922 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17924 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17926 * compare-elim.c: New file.
17927 * Makefile.in (OBJS-common): Add it.
17928 (compare-elim.o): New.
17929 * common.opt (fcompare-elim): New.
17930 * opts.c (default_options_table): Add OPT_fcompare_elim.
17931 * tree-pass.h (pass_compare_elim_after_reload): New.
17932 * passes.c (init_optimization_passes): Add it.
17933 * recog.h: Protect against re-inclusion.
17934 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17935 * doc/invoke.texi (-fcompare-elim): Document it.
17936 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17937 * doc/tm.texi: Rebuild.
17939 2011-01-22 Nick Clifton <nickc@redhat.com>
17941 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17942 rx_split_fp_compare.
17944 2011-01-22 Nick Clifton <nickc@redhat.com>
17946 * config/rx/rx.md (UNSPEC_CONST): New.
17947 (deallocate_and_return): Wrap the amount popped off the stack in
17948 an UNSPEC_CONST in order to stop it being rejected by
17949 -mmax-constant-size.
17950 (pop_and_return): Add a "(return)" rtx.
17951 (call): Drop the immediate operand.
17952 (call_internal): Likewise.
17953 (call_value): Likewise.
17954 (call_value_internal): Likewise.
17955 (sibcall_internal): Likewise.
17956 (sibcall_value_internal): Likewise.
17957 (sibcall): Likewise. Generate an explicit call using
17959 (sibcall_value): Likewise.
17960 (mov<>): FAIL if a constant operand is not legitimate.
17961 (addsi3_unpsec): New pattern.
17963 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17964 (ok_for_max_constant): New function.
17965 (gen_safe_add): New function.
17966 (rx_expand_prologue): Use gen_safe_add.
17967 (rx_expand_epilogue): Likewise.
17968 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17971 2011-01-21 Jeff Law <law@redhat.com>
17973 PR tree-optimization/47053
17974 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17975 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17976 statements are deleted.
17977 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17978 is nonempty, then purge dead edges and cleanup the CFG.
17980 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17983 Temporarily revert:
17984 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17986 * tree-dfa.c (create_var_ann): Mark variable as used.
17988 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17990 PR middle-end/45566
17991 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17992 notes from other section in hot/cold partitioning even if
17993 last_action is -3. Increment call_site_base.
17995 PR rtl-optimization/47366
17996 * fwprop.c (forward_propagate_into): Return bool. If
17997 any changes are made, -fnon-call-exceptions is used and
17998 REG_EH_REGION note is present, call purge_dead_edges
17999 and return true if it purged anything.
18000 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18001 any EH edges were purged.
18003 2011-01-21 Jeff Law <law@redhat.com>
18005 PR rtl-optimization/41619
18006 * caller-save.c (setup_save_areas): Break out code to determine
18007 which hard regs are live across calls by examining the reload chains
18008 so that it is always used.
18009 Eliminate code which checked REG_N_CALLS_CROSSED.
18011 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18013 PR tree-optimization/47355
18014 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18015 NOP has non-debug uses beyond PHIs in new_bb.
18017 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18020 * cfgexpand.c (account_used_vars_for_block): Only account vars
18021 that are annotated as used.
18022 (estimated_stack_frame_size): Don't set TREE_USED.
18023 * tree-dfa.c (create_var_ann): Mark variable as used.
18025 2011-01-21 Richard Guenther <rguenther@suse.de>
18027 PR middle-end/47395
18028 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18030 2011-01-21 Richard Guenther <rguenther@suse.de>
18032 PR tree-optimization/47365
18033 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18034 (vn_reference_lookup_pieces): Adjust.
18035 (vn_reference_lookup): Likewise.
18036 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18037 (vn_reference_lookup_3): Only look through kills if in
18038 VN_WALKREWRITE mode.
18039 (vn_reference_lookup_pieces): Adjust.
18040 (vn_reference_lookup): Likewise.
18041 (visit_reference_op_load): Likewise.
18042 (visit_reference_op_store): Likewise.
18043 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18044 (compute_avail): Likewise.
18045 (eliminate): Likewise.
18047 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18049 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18050 DECL_IGNORED_P non-reg vars if they are used.
18052 PR tree-optimization/47391
18053 * varpool.c (const_value_known_p): Return false if
18056 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18059 * config/i386/i386.c (ix86_local_alignment): Handle
18060 case for va_list_type_node is nil.
18061 (ix86_canonical_va_list_type): Likewise.
18063 2011-01-21 Alan Modra <amodra@gmail.com>
18065 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18066 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18068 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18070 * config/arm/arm.md (define_attr type): Rename f_load
18071 and f_store to f_fpa_load and f_fpa_store. Update.
18072 (write_conflict): Deal with rename fallout.
18073 (*push_fp_multi): Likewise.
18074 * config/arm/fpa.md (f_load): Use f_fpa_load.
18075 (f_store): Use f_fpa_store.
18076 (*movsf_fpa): Likewise.
18077 (*movdf_fpa): Likewise.
18078 (*movxf_fpa): Likewise.
18079 (*thumb2_movsf_fpa): Likewise.
18080 (*thumb2_movdf_fpa): Likewise.
18081 (*thumb2_movxf_fpa): Likewise.
18082 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18083 f_loadd and f_stored.
18084 (*thumb2_movdi_vfp): Likewise.
18085 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18086 (*thumb2_movsi_vfp): Likewise.
18087 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18088 Use f_loads instead of f_load.
18089 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18091 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18093 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18094 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18095 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18096 (xtensa_mode_dependent_address_p): New function.
18097 (constantpool_address_p): Make static. Change return type to bool.
18098 Change argument type to const_rtx. Use CONST_INT_P predicate.
18100 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18103 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18105 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18108 * cfgexpand.c (expand_debug_expr): Instead of generating
18109 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18112 2011-01-20 Richard Guenther <rguenther@suse.de>
18114 PR middle-end/47370
18115 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18116 the pointer operand of MEM_REFs.
18118 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18120 PR tree-optimization/46130
18121 * ipa-split.c (consider_split): If return_bb contains non-virtual
18122 PHIs other than for retval or if split_function would not adjust it,
18125 2011-01-20 Richard Guenther <rguenther@suse.de>
18127 PR tree-optimization/47167
18128 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18129 Revert previous change, only avoid enumeral type changes.
18131 2011-01-19 Mike Stump <mikestump@comcast.net>
18133 * doc/tm.texi.in (BRANCH_COST): Englishify.
18134 * doc/tm.texi (BRANCH_COST): Likewise.
18136 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18139 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18140 (gen_scheduled_generic_parms_dies): New functions.
18141 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18142 generation for the end of CU compilation.
18143 (dwarf2out_finish): Generate template parameters DIEs here.
18145 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18148 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18149 debug bind stmt on merge edges.
18151 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18155 * function.c (instantiate_expr): Instantiate incoming rtl of
18156 implicit arguments, and recurse on VALUE_EXPRs.
18157 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18158 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18160 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18162 * c-parser.c (c_parser_for_statement): Initialize
18163 collection_expression.
18165 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18167 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18169 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18171 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18172 (LINK_SHLIB_SPEC): Don't use %(link_path).
18173 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18175 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18177 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18178 (NO_SHARED_LIB_SUPPORT): Remove.
18179 (LINK_SHLIB_SPEC): Remove one conditional definition.
18181 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18183 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18185 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18186 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18187 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18188 %{call_shared} and conditionals on these options not being passed.
18189 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18192 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18194 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18197 * ipa-split.c: Spelling fixes.
18199 2011-01-19 Richard Henderson <rth@redhat.com>
18201 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18202 (*mulsi3): Likewise.
18204 * longlong.h [__mn10300__] (count_leading_zeros): New.
18205 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18206 [__mn10300__] (add_ssaaaa, subddmmss): New.
18207 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18208 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18210 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18212 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18214 2011-01-19 Richard Henderson <rth@redhat.com>
18216 * config/mn10300/mn10300.md (addsi3_flags): New.
18217 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18218 (subsi3_flags, subc_internal, subdi3): New.
18219 (subdi3_internal, *subdi3_degenerate): New.
18220 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18222 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18223 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18224 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18225 * config/mn10300/mn10300-protos.h: Update.
18226 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18227 (return_ret): Likewise. Rename from return_internal_regs.
18228 (return_internal): Remove.
18230 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18231 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18232 (mn10300_legitimate_constant_p): Likewise.
18233 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18234 (mn10300_frame_size): New.
18235 (mn10300_expand_prologue): Use it.
18236 (mn10300_expand_epilogue): Likewise.
18237 (mn10300_initial_offset): Likewise.
18238 * config/mn10300/mn10300-protos.h: Update.
18239 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18240 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18241 (prologue, epilogue, return_internal): Tidy output code.
18242 (mn10300_store_multiple_operation, return): Likewise.
18243 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18244 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18245 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18246 (load_pic, am33_load_pic): New.
18247 (mn10300_load_pic0, mn10300_load_pic1): New.
18249 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18250 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18251 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18252 (cc_flags_for_mode, cc_flags_for_code): New.
18253 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18254 overflow flag is not valid. Validate that the flags we need
18255 for the comparison are valid.
18256 (mn10300_output_cmp): Remove.
18257 (mn10300_output_add): New.
18258 (mn10300_select_cc_mode): Use cc_flags_for_code.
18259 (mn10300_split_cbranch): New.
18260 (mn10300_match_ccmode): New.
18261 (mn10300_split_and_operand_count): New.
18262 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18264 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18265 (addsi3): ... here. Use mn10300_output_add.
18266 (*addsi3_flags): New.
18267 (*am33_subsi3, *mn10300_subsi3): Merge...
18268 (subsi3): ... here. Use attribute isa.
18269 (*subsi3_flags): New.
18270 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18272 (*am33_andsi3, *mn10300_andsi3): Merge...
18273 (andsi3): ... here.
18274 (*andsi3_flags): New.
18275 (andsi3 splitters): New.
18276 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18277 (iorsi3): ... here.
18278 (*iorsi3_flags): New.
18279 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18280 (xorsi3): ... here.
18281 (*xorsi3_flags): New.
18282 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18283 (one_cmplsi2): ... here.
18284 (*one_cmplsi2_flags): New.
18285 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18286 instead of "dax" in constraints. Use mn10300_split_cbranch.
18287 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18288 use matching constraints to eliminate a self-comparison.
18289 (*integer_conditional_branch): Rename from integer_conditional_branch.
18290 Use int_mode_flags to match CC_REG.
18291 (*cbranchsi4_btst, *btstsi): New.
18292 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18293 mn10300_split_cbranch.
18294 (*am33_cmpsf): Rename from am33_cmpsf.
18295 (*float_conditional_branch): Rename from float_conditional_branch.
18296 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18297 (zero_extendqisi2): ... here.
18298 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18299 (zero_extendhisi2): ... here.
18300 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18301 (extendqisi2): ... here.
18302 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18303 (extendhisi2): ... here.
18304 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18305 (ashlsi3): ... here.
18306 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18307 (lshrsi3): ... here.
18308 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18309 (ashrsi3): ... here.
18310 (consecutive add peephole): Remove.
18311 * config/mn10300/predicates.md (label_ref_operand): New.
18312 (int_mode_flags): New.
18313 (CCZN_comparison_operator): New.
18315 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18316 (throughput_42_latency_43): New reservation.
18317 (mulsidi3, umulsidi3): New expanders.
18318 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18319 the MDR register to allocation; separately allocate the low and
18320 high parts of the DImode result.
18321 (umulsidi3_internal): Similarly.
18322 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18323 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18324 (udivsi3, umodsi3): Remove.
18325 (udivmodsi4, divmodsi4): New expanders.
18326 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18327 (*divmodsi4): Simiarly.
18328 (ext_internal): New.
18330 * config/mn10300/constraints.md ("z"): New constraint.
18331 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18332 (FIXED_REGISTERS): Don't fix MDR.
18333 (CALL_USED_REGSITERS): Reformat nicely.
18334 (REG_ALLOC_ORDER): Add MDR.
18335 (enum regclass): Add MDR_REGS.
18336 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18337 (IRA_COVER_CLASSES): Add MDR_REGS.
18338 (REGNO_REG_CLASS): Handle MDR_REG.
18339 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18340 (mn10300_register_move_cost): Likewise.
18341 * config/mn10300/mn10300.md (MDR_REG): New.
18342 (*movsi_internal): Handle moves to/from MDR_REGS.
18344 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18346 (mn10300_secondary_reload): Tidy combination reload classes.
18347 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18348 addresses for AM33. Allow symbolic offsets for reg+imm.
18349 (mn10300_regno_in_class_p): New.
18350 (mn10300_legitimize_reload_address): New.
18351 * config/mn10300/mn10300.h (enum reg_class): Remove
18352 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18353 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18354 SP_OR_GENERAL_REGS.
18355 (REG_CLASS_NAMES): Update to match.
18356 (REG_CLASS_CONTENTS): Likewise.
18357 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18358 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18359 (REGNO_IN_RANGE_P): Remove.
18360 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18361 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18362 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18363 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18364 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18365 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18366 (REGNO_GENERAL_P): New.
18367 (HAVE_POST_MODIFY_DISP): New.
18368 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18369 (LEGITIMIZE_RELOAD_ADDRESS): New.
18370 * config/mn10300/mn10300-protos.h: Update.
18372 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18373 DATA_REGS for AM33 stack-pointer destination.
18374 (mn10300_preferred_output_reload_class): Likewise.
18375 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18376 into a form appropriate for ...
18377 (TARGET_SECONDARY_RELOAD): New.
18378 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18379 * config/mn10300/mn10300-protos.h: Update.
18380 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18381 reload_insi; use the "A" constraint for the scratch; handle AM33
18382 moves of sp to non-address registers.
18384 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18385 (*movqi_internal): ... here.
18386 (*am33_movhi, *mn10300_movhi): Merge into...
18387 (*movhi_internal): ... here.
18388 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18389 as the source/destination of moves from/to SP.
18390 (movsf): Only allow for AM33-2.
18391 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18392 any integer constant constraint. Only allow for AM33-2. Tidy
18393 all of the alternative outputs.
18394 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18395 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18397 (udivsi3, umodsi3): New patterns for MN103 only.
18399 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18401 * doc/tm.texi.in: Spell out that a lack of register class unions
18403 * doc/tm.texi: Regenerate.
18405 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18407 PR rtl-optimization/47337
18408 * dce.c (check_argument_store): New function.
18409 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18411 PR tree-optimization/47290
18412 * tree-eh.c (infinite_empty_loop_p): New function.
18413 (cleanup_empty_eh): Use it.
18415 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18418 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18419 (a64_expand_widen_sum): Ditto.
18420 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18421 (vec_extract_evenodd_help): Ditto.
18422 (vec_extract_evenv4hi): Ditto.
18423 (vec_extract_oddv4hi): Ditto.
18424 (vec_extract_evenv2si): Ditto.
18425 (vec_extract_oddv2si): Ditto.
18426 (vec_extract_evenv2sf): Ditto.
18427 (vec_extract_oddv2sf): Ditto.
18428 (vec_pack_trunc_v4hi: Ditto.
18429 (vec_pack_trunc_v2si): Ditto.
18430 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18431 (vec_interleave_highv8qi): Ditto.
18433 (vec_extract_oddv8qi): Ditto.
18434 (vec_interleave_lowv4hi): Ditto.
18435 (vec_interleave_highv4hi): Ditto.
18436 (vec_interleave_lowv2si): Ditto.
18437 (vec_interleave_highv2si): Ditto.
18439 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18441 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18442 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18443 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18444 (pa_c_mode_for_suffix): New.
18445 (TARGET_EXPAND_BUILTIN): Define.
18446 (TARGET_C_MODE_FOR_SUFFIX): Define.
18447 (pa_builtins): Define.
18448 (pa_init_builtins): Register __float128 type and init new support
18450 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18451 * config/pa/quadlib.c (_U_Qfcopysign): New.
18453 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18455 PR middle-end/46894
18456 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18457 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18460 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18462 PR tree-optimization/47179
18463 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18464 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18466 2011-01-18 Richard Guenther <rguenther@suse.de>
18468 PR rtl-optimization/47216
18469 * emit-rtl.c: Include tree-flow.h.
18470 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18471 of replicating it with different semantics.
18472 * Makefile.in (emit-rtl.o): Adjust.
18474 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18476 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18477 (cortex_a9_dp): Handle neon types correctly.
18479 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18481 PR rtl-optimization/47299
18482 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18483 subtarget. Use normal multiplication if both operands are constants.
18484 * expmed.c (expand_widening_mult): Don't try to optimize constant
18485 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18488 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18490 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18491 spacing after 'e.g.', typos, comma, hyphenation.
18493 2011-01-17 Richard Henderson <rth@redhat.com>
18495 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18496 (rx_restricted_mem_operand): New.
18497 (rx_shift_operand): Use register_operand.
18498 (rx_source_operand, rx_compare_operand): Likewise.
18499 * config/rx/rx.md (addsi3_flags): New expander.
18500 (adddi3): Rewrite as expander.
18501 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18502 (subsi3_flags): New expander.
18503 (subdi3): Rewrite as expander.
18504 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18506 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18507 (rx_init_builtins): Remove sat builtin.
18508 (rx_expand_builtin): Likewise.
18509 * config/rx/rx.md (ssaddsi3): New.
18510 (*sat): Rename from sat. Represent the CC_REG input.
18512 * config/rx/predicates.md (rshift_operator): New.
18513 * config/rx/rx.c (rx_expand_insv): Remove.
18514 * config/rx/rx-protos.h: Update.
18515 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18516 operand to the canonical position.
18517 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18518 (*bitclr, *bitclr_in_memory): Similarly.
18519 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18520 (insv): Retain the zero_extract in the expansion.
18522 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18523 (bswaphi2, bitinvert, revw): Likewise.
18525 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18526 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18527 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18528 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18529 (bitset, bitset_in_memory): Likewise.
18530 (bitinvert, bitinvert_in_memory): Likewise.
18531 (bitclr, bitclr_in_memory): Likewise.
18532 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18533 (rx_strend, rx_cmpstrn): Likewise.
18534 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18535 (bitop peep2 patterns): Remove.
18537 * config/rx/rx.c (rx_match_ccmode): New.
18538 * config/rx/rx-protos.h: Update.
18539 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18540 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18541 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18542 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18543 (fix_truncsfsi2, floatsisf2): Likewise.
18544 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18545 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18546 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18547 (*subsi3_flags, *xorsi3_flags): New.
18549 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18551 * config/rx/rx.c (rx_print_operand): Remove workaround for
18552 unsplit comparison operations.
18554 * config/rx/rx.md (movsicc): Split after reload.
18555 (*movsicc): Merge *movsieq and *movsine via match_operator.
18556 (*stcc): New pattern.
18558 * config/rx/rx.c (rx_float_compare_mode): Remove.
18559 * config/rx/rx.h (rx_float_compare_mode): Remove.
18560 * config/rx/rx.md (cstoresi4): Split after reload.
18561 (*sccc): New pattern.
18563 * config/rx/predicates.md (label_ref_operand): New.
18564 (rx_z_comparison_operator): New.
18565 (rx_zs_comparison_operator): New.
18566 (rx_fp_comparison_operator): New.
18567 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18568 Validate that the flags are set properly for the comparison.
18569 (rx_gen_cond_branch_template): Remove.
18570 (rx_cc_modes_compatible): Remove.
18571 (mode_from_flags): New.
18572 (flags_from_code): Rename from flags_needed_for_conditional.
18573 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18574 (rx_select_cc_mode): Likewise.
18575 (rx_split_fp_compare): New.
18576 (rx_split_cbranch): New.
18577 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18578 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18579 (*cbranchsf4): Similarly.
18580 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18581 match_operator and rx_split_cbranch.
18582 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18583 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18584 (*cmpsi): Rename from cmpsi.
18585 (*tstsi): Rename from tstsi.
18586 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18587 (*conditional_branch): Rename from conditional_branch.
18588 (*reveresed_conditional_branch): Remove.
18589 (b<code>): Remove expander.
18590 * config/rx/rx-protos.h: Update.
18592 * config/rx/rx.c (rx_compare_redundant): Remove.
18593 * config/rx/rx.md (cmpsi): Don't use it.
18594 * config/rx/rx-protos.h: Update.
18596 * config/rx/rx-modes.def (CC_F): New mode.
18597 * config/rx/rx.c (rx_select_cc_mode): New.
18598 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18599 * config/rx/rx-protos.h: Update.
18601 2011-01-17 Richard Henderson <rth@redhat.com>
18603 * except.c (dump_eh_tree): Fix stray ; after for statement.
18605 2011-01-17 Richard Guenther <rguenther@suse.de>
18607 PR tree-optimization/47313
18608 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18609 handling before copying the body. Properly deal with
18610 by-reference result in SSA form.
18612 2011-01-17 Ian Lance Taylor <iant@google.com>
18615 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18616 (struct_value_alias_set): Don't define.
18617 (sparc_option_override): Don't set sparc_sr_alias_set and
18618 struct_value_alias_set.
18619 (save_or_restore_regs): Use gen_frame_mem rather than calling
18621 (sparc_struct_value_rtx): Likewise.
18623 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18626 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18627 (_mm_maskstore_pd): Likewise.
18628 (_mm_maskload_ps): Likewise.
18629 (_mm_maskstore_ps): Likewise.
18630 (_mm256_maskload_pd): Change mask to __m256i.
18631 (_mm256_maskstore_pd): Likewise.
18632 (_mm256_maskload_ps): Likewise.
18633 (_mm256_maskstore_ps): Likewise.
18635 * config/i386/i386-builtin-types.def: Updated.
18636 (ix86_expand_special_args_builtin): Likewise.
18638 * config/i386/i386.c (bdesc_special_args): Update
18639 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18640 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18641 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18642 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18644 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18645 Use <avxpermvecmode> on mask register.
18646 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18648 2011-01-17 Olivier Hainque <hainque@adacore.com>
18649 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18650 Eric Botcazou <ebotcazou@adacore.com>
18653 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18654 if <= USHRT_MAX in 32-bit mode.
18656 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18658 * doc/install.texi (Configuration, Specific): Wrap long
18659 lines in examples. Allow line wrapping in long options
18660 and URLs where beneficial for PDF output.
18662 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18664 * config/mips/mips.c (mips_classify_symbol): Don't return
18665 SYMBOL_PC_RELATIVE for nonlocal labels.
18667 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18669 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18671 2011-01-15 Jan Hubicka <jh@suse.cz>
18673 PR tree-optimization/47276
18674 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18675 declarations as needed.
18677 2011-01-15 Martin Jambor <mjambor@suse.cz>
18679 * common.opt (fdevirtualize): New flag.
18680 * doc/invoke.texi (Option Summary): Document it.
18681 * opts.c (default_options_table): Add devirtualize flag.
18682 * ipa-prop.c (detect_type_change): Return immediately if
18683 devirtualize flag is not set.
18684 (detect_type_change_ssa): Likewise.
18685 (compute_known_type_jump_func): Likewise.
18686 (ipa_analyze_virtual_call_uses): Likewise.
18688 2011-01-14 Martin Jambor <mjambor@suse.cz>
18690 PR tree-optimization/45934
18691 PR tree-optimization/46302
18692 * ipa-prop.c (type_change_info): New type.
18693 (stmt_may_be_vtbl_ptr_store): New function.
18694 (check_stmt_for_type_change): Likewise.
18695 (detect_type_change): Likewise.
18696 (detect_type_change_ssa): Likewise.
18697 (compute_complex_assign_jump_func): Check for dynamic type change.
18698 (compute_complex_ancestor_jump_func): Likewise.
18699 (compute_known_type_jump_func): Likewise.
18700 (compute_scalar_jump_functions): Likewise.
18701 (ipa_analyze_virtual_call_uses): Likewise.
18702 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18706 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18707 * config/i386/i386.opt (msse5): New Alias.
18709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18711 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18712 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18713 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18714 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18716 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18718 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18720 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18721 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18722 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18723 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18725 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18727 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18729 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18731 2011-01-14 Mike Stump <mikestump@comcast.net>
18733 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18734 * config/fr30/fr30.md: Likweise
18735 (movsi_push): Likewise.
18736 (movsi_pop): Likewise.
18737 (enter_func): Likewise.
18738 * config/moxie/moxie.md (movsi_push): Likewise.
18739 (movsi_pop): Likewise.
18741 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18743 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18744 %{no_archive} %{exact_version}.
18745 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18746 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18747 %{no_archive} %{exact_version}.
18748 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18749 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18750 * config/mips/vxworks.h: Likewise.
18752 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18754 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18756 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18758 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18759 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18763 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18768 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18770 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18771 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18773 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18774 Don't handle -shlib.
18776 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18778 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18779 (CC1_SPEC): Don't handle -profile.
18781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18783 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18784 * config/mips/mips.h (CC1_SPEC): Likewise.
18786 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18788 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18789 * config/mips/mips.h (CC1_SPEC): Likewise.
18791 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18793 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18794 * config/m32r/linux.h (LINK_SPEC): Likewise.
18795 * config/mips/linux.h (LINK_SPEC): Likewise.
18796 * config/mips/linux64.h (LINK_SPEC): Likewise.
18797 * config/sparc/linux.h (LINK_SPEC): Likewise.
18798 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18799 LINK_SPEC): Likewise.
18800 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18802 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18804 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18806 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18810 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18811 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18813 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18815 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18817 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18819 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18820 supports -Bstatic/-Bdynamic.
18821 * configure: Regenerate.
18823 2011-01-14 Jan Hubicka <jh@suse.cz>
18824 Jack Howarth <howarth@bromo.med.uc.edu>
18827 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18828 when checking debug_info_level. Test write_symbols instead of
18829 debug_hooks->var_location when setting flag_var_tracking_uninit.
18831 2011-01-14 Richard Guenther <rguenther@suse.de>
18833 PR tree-optimization/47179
18834 * target.def (ref_may_alias_errno): New target hook.
18835 * targhooks.h (default_ref_may_alias_errno): Declare.
18836 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18837 (default_ref_may_alias_errno): New function.
18838 * target.h (struct ao_ref_s): Declare.
18839 * tree-ssa-alias.c: Include target.h.
18840 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18841 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18842 (targhooks.o): Likewise.
18843 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18844 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18846 2011-01-14 Richard Guenther <rguenther@suse.de>
18848 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18850 2011-01-14 Richard Guenther <rguenther@suse.de>
18852 PR tree-optimization/47280
18853 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18854 return CFG changes.
18855 (tree_ssa_forward_propagate_single_use_vars): Deal with
18856 CFG changes from associate_plusminus.
18858 2011-01-14 Richard Guenther <rguenther@suse.de>
18860 PR middle-end/47281
18862 2011-01-11 Richard Guenther <rguenther@suse.de>
18864 PR tree-optimization/46076
18865 * tree-ssa.c (useless_type_conversion_p): Conversions from
18866 unprototyped to empty argument list function types are useless.
18868 2011-01-14 Richard Guenther <rguenther@suse.de>
18870 PR tree-optimization/47286
18871 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18873 2011-01-14 Martin Jambor <mjambor@suse.cz>
18875 PR middle-end/46823
18876 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18878 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18880 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18881 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18882 * config/xtensa/xtensa.c (xtensa_libcall_value,
18883 xtensa_function_value_regno_p): New functions.
18884 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18886 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18889 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18891 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18892 New function prototype.
18893 * config/i386/winnt.c (i386_pe_assemble_visibility):
18894 Warn only if attribute was specified by user.
18896 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18899 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18901 (floatunsdidf2_fcfidu): Ditto.
18903 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18905 * config/s390/s390.c (print_operand_address): Replace 'error' with
18906 'output_operand_lossage'.
18907 (print_operand): Likewise.
18909 2011-01-13 Jeff Law <law@redhat.com>
18911 PR rtl-optimization/39077
18912 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18913 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18914 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18915 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18916 * gcse.c (prune_insertions_deletions): New function.
18917 (compute_pre_data): Use it.
18919 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18922 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18924 (prune_unused_types_mark): Use it.
18926 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18928 PR rtl-optimization/45352
18929 * sel-sched.c: Update copyright years.
18930 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18931 in the advancing loop when we have issued issue_rate insns.
18933 2011-01-12 Richard Henderson <rth@redhat.com>
18935 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18936 (TARGET_MD_ASM_CLOBBERS): New.
18938 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18939 (TARGET_DELEGITIMIZE_ADDRESS): New.
18941 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18942 (clzsi2, *bsch): New patterns.
18944 * config/mn10300/mn10300.md (INT): New mode iterator.
18945 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18947 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18948 flag_split_wide_types.
18950 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18951 (mn10300_trampoline_init): Rewrite without a template, an immediate
18952 load and a direct branch.
18953 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18955 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18957 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18958 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18959 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18960 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18962 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18965 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18968 2011-01-12 Jan Hubicka <jh@suse.cz>
18971 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18972 (PLUGIN_COND_CLOSE): New macro.
18973 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18975 2011-01-12 Richard Guenther <rguenther@suse.de>
18978 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18979 register variables in a MEM_REF.
18981 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18983 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18984 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18985 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18986 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18987 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18988 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18989 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18990 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18991 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18992 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18993 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18994 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18995 * config/gnu-user.h: New. Copied from linux.h.
18996 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18997 GNU_USER_TARGET_STARTFILE_SPEC.
18998 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18999 GNU_USER_TARGET_ENDFILE_SPEC.
19000 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19001 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19002 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19003 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19004 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19005 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19006 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19007 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19008 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19009 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19010 * config/arm/linux-eabi.h (CC1_SPEC): Use
19011 GNU_USER_TARGET_CC1_SPEC.
19012 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19013 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19014 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19015 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19016 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19017 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19018 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19019 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19021 2011-01-12 Richard Guenther <rguenther@suse.de>
19024 * doc/invoke.texi (ffast-math): Document it is turned on
19027 2011-01-12 Jan Hubicka <jh@suse.cz>
19029 PR tree-optimization/47233
19030 * opts.c (common_handle_option): Disable ipa-reference with profile
19033 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19035 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19038 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19040 * c-parser.c (c_lex_one_token): Updated and reindented some
19041 comments. No changes in code.
19043 2011-01-11 Ian Lance Taylor <iant@google.com>
19045 * godump.c (go_output_var): Don't output the variable if there is
19046 already a type with the same name.
19048 2011-01-11 Ian Lance Taylor <iant@google.com>
19050 * godump.c (go_format_type): Don't generate float80.
19052 2011-01-11 Richard Henderson <rth@redhat.com>
19054 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19055 declaration. Rewrite for both speed and size.
19056 (mn10300_address_cost_1): Remove.
19057 (mn10300_register_move_cost): New.
19058 (mn10300_memory_move_cost): New.
19059 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19060 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19061 extensions, shifts, BSWAP, CLZ.
19062 (mn10300_wide_const_load_uses_clr): Remove.
19063 (TARGET_REGISTER_MOVE_COST): New.
19064 (TARGET_MEMORY_MOVE_COST): New.
19065 * config/mn10300/mn10300-protos.h: Update.
19066 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19068 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19069 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19070 * config/mn10300/mn10300-protos.h: Update.
19071 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19072 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19073 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19074 (*test_int_bitfield, *test_byte_bitfield): Remove.
19075 (*bit_test, *subreg_bit_test): Remove.
19076 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19078 * config/mn10300/constraints.md ("c"): Rename from "A".
19079 ("A", "D"): New constraint letters.
19080 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19081 (fmssf4, fnmasf4, fnmssf4): Likewise.
19083 * config/mn10300/mn10300.md (isa): New attribute.
19084 (enabled): New attribute.
19086 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19087 (abssf2, negsf2): Define only for hardware fp.
19088 (sqrtsf2): Reformat.
19089 (addsf3, subsf3, mulsf3): Merge expander and insn.
19091 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19092 (DEBUGGER_AUTO_OFFSET): Remove.
19093 (DEBUGGER_ARG_OFFSET): Remove.
19095 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19096 Emit register stores with the same offsets as the hardware.
19097 (mn10300_store_multiple_operation): Don't check that the register
19098 save offsets are monotonic.
19099 * config/mn10300/mn10300-protos.h: Update.
19101 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19103 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19104 in terms of the value on the stack, not the MDR register.
19106 2011-01-11 Jan Hubicka <jh@suse.cz>
19110 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19111 (symbol_alias_set_destroy, symbol_alias_set_contains,
19112 propagate_aliases_backward): Declare.
19113 * lto-streamer-out.c (struct sets): New sturcture.
19114 (trivally_defined_alias): New function.
19115 (output_alias_pair_p): Rewrite.
19116 (output_unreferenced_globals): Fix output of alias pairs.
19117 (produce_symtab): Likewise.
19118 * ipa.c (function_and_variable_visibility): Set weak alias destination
19120 * varasm.c (symbol_alias_set_t): Remove.
19121 (symbol_alias_set_destroy): Export.
19122 (propagate_aliases_forward, propagate_aliases_backward): New functions
19124 (compute_visible_aliases): ... this one; remove.
19125 (trivially_visible_alias): New
19126 (trivially_defined_alias): New.
19127 (remove_unreachable_alias_pairs): Rewrite.
19128 (finish_aliases_1): Reorganize code checking if alias is defined.
19129 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19132 2011-01-11 Richard Guenther <rguenther@suse.de>
19134 PR tree-optimization/46076
19135 * tree-ssa.c (useless_type_conversion_p): Conversions from
19136 unprototyped to empty argument list function types are useless.
19138 2011-01-11 Richard Guenther <rguenther@suse.de>
19140 PR middle-end/45235
19141 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19142 volatile MEMs as MEM_READONLY_P.
19144 2011-01-11 Richard Guenther <rguenther@suse.de>
19146 PR tree-optimization/47239
19147 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19149 2011-01-11 Jeff Law <law@redhat.com>
19151 PR tree-optimization/47086
19152 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19153 IVs from statements that might throw.
19155 2011-01-10 Jan Hubicka <jh@suse.cz>
19158 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19160 2011-01-10 Jan Hubicka <jh@suse.cz>
19163 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19164 when correcting profile.
19166 2011-01-10 Jan Hubicka <jh@suse.cz>
19169 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19170 DECL_FINI_PRIORITY.
19171 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19172 Restore DECL_FINI_PRIORITY.
19174 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19176 * doc/gimple.texi: Fix quoting of multi-word return values in
19177 @deftypefn statements. Ensure presence of return value. Wrap
19178 overlong @deftypefn lines.
19179 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19180 descriptions of removed functions.
19181 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19182 of multi-word return value in @deftypefn statement.
19184 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19186 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19187 (Conditional Expressions, Logical Operators)
19188 (Statement and operand traversals): Do not indent smallexample
19189 code. Fix duplicate function argument in example.
19191 2011-01-10 Jeff Law <law@redhat.com>
19193 PR tree-optimization/47141
19194 * ipa-split.c (split_function): Handle case where we are
19195 returning a value and the return block has a virtual operand phi.
19197 2011-01-10 Jan Hubicka <jh@suse.cz>
19199 PR tree-optimization/47234
19200 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19201 (pass_feedback_split_functions): Declare.
19202 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19204 * ipa-split.c (gate_split_functions): Update comments; disable
19205 split-functions for profile_arc_flag and branch_probabilities.
19206 (gate_feedback_split_functions): New function.
19207 (execute_feedback_split_functions): New function.
19208 (pass_feedback_split_functions): New global var.
19210 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19213 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19214 calling gimple_call_set_cannot_inline.
19216 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19218 * config/darwin-sections.def: Remove unused section.
19220 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19223 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19225 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19228 * c-parser.c (c_parser_declaration_or_fndef): Improved
19231 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19233 * config/i386/winnt.c (i386_pe_start_function): Make sure
19234 to switch back to function's section.
19236 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19240 * plugin.c: Move include of dlfcn.h from here...
19241 * system.h: ... to here.
19243 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19245 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19247 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19248 two extra empty pages in PDF output.
19250 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19253 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19254 for error recovery purposes behave as if it was not specified so
19255 that the default type is usd.
19257 2011-01-07 Jan Hubicka <jh@suse.cz>
19259 PR tree-optmization/46469
19260 * ipa.c (function_and_variable_visibility): Clear needed flags on
19261 nodes with external decls; handle weakrefs merging correctly.
19263 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19265 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19268 2011-01-07 Jan Hubicka <jh@suse.cz>
19270 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19271 and no longer claim that gold is required for linker plugin.
19272 * configure: Regenerate.
19273 * gcc.c (PLUGIN_COND): New macro.
19274 (LINK_COMMAND_SPEC): Use it.
19275 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19276 * config.in (HAVE_LTO_PLUGIN): New.
19277 * configure.ac (--with-lto-plugin): New parameter; autodetect
19280 2011-01-07 Jan Hubicka <jh@suse.cz>
19282 PR tree-optimization/46367
19283 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19284 when we can update original.
19285 (cgraph_mark_inline_edge): Sanity check.
19286 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19288 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19290 * config/spu/spu.h (ASM_COMMENT_START): Define.
19292 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19295 * gcc.c (%>S): New.
19296 (SWITCH_KEEP_FOR_GCC): Likewise.
19297 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19298 (do_spec_1): Handle "%>".
19300 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19302 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19305 * config/i386/i386.c (ix86_delegitimize_address): If
19306 simplify_gen_subreg fails, return orig_x.
19309 * value-prof.c (gimple_stringop_fixed_value): Handle
19310 lhs of the call properly.
19312 2011-01-07 Jan Hubicka <jh@suse.cz>
19315 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19317 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19319 * target.def (function_switched_text_sections): New hook.
19320 * doc/tm.texi: Regenerated.
19321 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19322 * final.c (default_function_switched_text_sections): New.
19323 (final_scan_insn): Call function_switched_text_sections when a
19324 mid-function section change occurs.
19325 * output.h (default_function_switched_text_sections): Declare.
19326 * config/darwin-protos.h (darwin_function_switched_text_sections):
19328 * config/darwin.c (darwin_function_switched_text_sections): New.
19329 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19331 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19333 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19334 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19335 the secondary code fragment when outputting for DWARF == 2.
19337 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19339 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19340 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19342 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19343 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19345 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19348 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19349 when it is not empty.
19351 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19354 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19355 (case ${target}): Add btver1.
19356 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19357 -march=native recognize btver1 processors.
19358 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19359 btver1 def_and_undef
19360 * config/i386/i386.c (struct processor_costs btver1_cost): New
19362 (m_BTVER1): New definition.
19363 (m_AMD_MULTIPLE): Includes m_BTVER1.
19364 (initial_ix86_tune_features): Add btver1 tune.
19365 (processor_target_table): Add btver1 entry.
19366 (static const char *const cpu_names): Add btver1 entry.
19367 (software_prefetching_beneficial_p): Add btver1.
19368 (ix86_option_override_internal): Add btver1 instruction sets.
19369 (ix86_issue_rate): Add btver1.
19370 (ix86_adjust_cost): Add btver1.
19371 * config/i386/i386.h (TARGET_BTVER1): New definition.
19372 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19373 (enum processor_type): Add PROCESSOR_BTVER1.
19374 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19376 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19379 * config/i386/i386.c (legitimize_tls_address)
19380 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19381 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19382 (tls_initial_exec_64_sun): New pattern.
19384 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19386 * doc/invoke.texi (Overall Options): Improve wording and markup
19387 of the description of -wrapper.
19389 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19391 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19392 rdynamic, threads): New Driver options.
19394 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19397 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19398 if coming from .tdata.
19399 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19401 2011-01-06 Jan Hubicka <jh@suse.cz>
19404 * collect2.c (main): Do not enable LTOmode when plugin is active.
19406 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19409 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19410 --version output if supported.
19411 * configure: Regenerate.
19413 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19415 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19418 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19421 * c-convert.c (convert): When converting a complex expression
19422 other than COMPLEX_EXPR to a different complex type, ensure
19423 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19424 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19425 when converting COMPLEX_TYPE.
19427 2011-01-06 Ira Rosen <irar@il.ibm.com>
19429 PR tree-optimization/47139
19430 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19431 only the last reduction value is used outside the loop. Update
19434 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19436 * config/rtems.opt: New.
19437 * config.gcc (*-*-rtems*): Use rtems.opt.
19439 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19441 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19442 processors do not support 3DNow instructions.
19444 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19446 * config/spu/spu.c (spu_option_override): Set parameter
19447 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19449 2011-01-05 Jan Hubicka <jh@suse.cz>
19451 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19452 at the command line.
19454 2011-01-05 Martin Jambor <mjambor@suse.cz>
19457 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19458 deltas on streamed outgoing edges.
19459 (output_node_opt_summary): Output info for outgoing edges only when
19460 the node is in new parameter set.
19461 (output_cgraph_opt_summary): New parameter set, passed to the two
19462 aforementioned functions. Update its forward declaration and its
19465 2011-01-05 Tom Tromey <tromey@redhat.com>
19467 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19468 operator to c_finish_omp_atomic.
19469 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19470 (build_unary_op): Update.
19471 (build_modify_expr): Update.
19472 (build_asm_expr): Update.
19474 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19476 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19477 newly inserted insns.
19478 (pad_bb): Likewise.
19479 (spu_emit_branch_hint): Likewise.
19480 (insert_hbrp_for_ilb_runout): Likewise.
19481 (spu_machine_dependent_reorg): Call df_finish_pass after
19482 schedule_insns returns.
19484 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19486 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19488 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19490 PR tree-optimization/47005
19491 * tree-sra.c (struct access): Add 'non_addressable' bit.
19492 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19493 (decide_one_param_reduction): Return 0 if the parameter is passed by
19494 reference and one of the accesses in the group is non_addressable.
19496 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19498 PR tree-optimization/47056
19499 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19500 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19501 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19503 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19505 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19506 initializer. Skip view conversions from aggregate types.
19508 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19511 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19513 2011-01-04 Philipp Thomas <pth@suse.de>
19515 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19518 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19520 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19521 on empty epilogue sequences.
19523 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19525 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19526 non-static): New Driver options.
19528 2011-01-04 Jie Zhang <jie@codesourcery.com>
19531 * gcc.c (default_compilers[]): Set combinable field to 0
19532 for all assembly languages.
19534 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19536 * config/mips/loongson3a.md: New file.
19537 * config/mips/mips.md: Include loongson3a.md.
19538 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19541 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19543 PR middle-end/47017
19544 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19545 instead of convert_memory_address_addr_space on the base expression.
19547 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19549 * config/spu/spu.c (spu_option_override): Update error text
19550 for bad -march= / -mtune= values.
19552 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19554 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19555 if branch-hint optimization will be performed.
19557 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19559 PR tree-optimization/47148
19560 * ipa-split.c (split_function): Convert arguments to
19561 DECL_ARG_TYPE if possible.
19563 PR tree-optimization/47155
19564 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19565 when computing uns.
19567 PR rtl-optimization/47157
19568 * combine.c (try_combine): If undobuf.other_insn becomes
19569 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19570 and set *new_direct_jump_p too.
19572 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19574 PR tree-optimization/47021
19575 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19577 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19579 * gcc.c (process_command): Update copyright notice dates.
19580 * gcov.c (print_version): Likewise.
19581 * gcov-dump.c (print_version): Likewise.
19582 * mips-tfile.c (main): Likewise.
19583 * mips-tdump.c (main): Likewise.
19585 2011-01-03 Martin Jambor <mjambor@suse.cz>
19587 PR tree-optimization/46801
19588 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19589 aggregate fields start at byte boundary instead of the bit-field flag.
19591 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19594 * gcc.c (main): Revert revision 168407.
19596 2011-01-03 Martin Jambor <mjambor@suse.cz>
19598 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19600 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19602 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19603 vector optab to expand vector/scalar shift, update gimple to vector.
19605 2011-01-03 Martin Jambor <mjambor@suse.cz>
19607 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19610 2011-01-03 Martin Jambor <mjambor@suse.cz>
19612 PR tree-optimization/46984
19613 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19615 (cgraph_create_indirect_edge): Fixed line length.
19616 (cgraph_indirect_call_info): Declare.
19617 (cgraph_make_edge_direct) Update declaration.
19618 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19619 (cgraph_create_indirect_edge): Use it.
19620 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19622 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19623 the new thunk_delta representation.
19624 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19626 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19627 (ipa_read_indirect_edge_info): Likewise.
19628 * lto-cgraph.c (output_edge_opt_summary): New function.
19629 (output_node_opt_summary): Call it on all outgoing edges.
19630 (input_edge_opt_summary): New function.
19631 (input_node_opt_summary): Call it on all outgoing edges.
19633 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19636 * gcc.c (main): Don't check have_o when settting combine_inputs.
19638 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19640 * regrename.c: Add general comment describing the pass.
19641 (struct du_head): Remove 'length' field.
19642 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19643 (regrename_optimize): Do not sort chains. Rework comments, add others.
19644 Force renaming to the preferred class (if any) in the first pass and do
19645 not consider registers that belong to it in the second pass.
19646 (create_new_chain): Do not set 'length' field.
19647 (scan_rtx_reg): Likewise.
19649 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19651 PR tree-optimization/47140
19652 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19653 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19654 to bit_value_binop.
19656 PR rtl-optimization/47028
19657 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19658 parm_birth_insn instead of at the beginning of first bb.
19660 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19662 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19663 Remove the word "see" before "@pxref".
19664 * doc/rtl.texi: Remove the word "see" before "@pxref".
19666 2011-01-01 Jan Hubicka <jh@suse.cz>
19668 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19671 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19674 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19677 Copyright (C) 2011 Free Software Foundation, Inc.
19679 Copying and distribution of this file, with or without modification,
19680 are permitted in any medium without royalty provided the copyright
19681 notice and this notice are preserved.